Sub topic 12
MIMO, spatial streams and beamforming
This chapter assumes you know what channel width, modulation and MCS rates are from the earlier chapters. It also assumes you can read simple Python. It covers how several antennas let one radio link carry more data, and how an access point (AP) aims its signal at a client.
What MIMO means
MIMO stands for multiple-input, multiple-output. A MIMO radio has several transmit and receive antennas that work at the same time on the same channel. Radio waves bounce off walls, furniture and people, so a signal reaches the receiver along many paths. Older single-antenna designs treated this multipath effect as noise. MIMO uses it.
A MIMO radio can use its antennas in three ways:
- Spatial multiplexing sends different data on each antenna at the same moment. The receiver uses the differences between paths to separate the data again. Each independent data flow is a spatial stream.
- Diversity sends the same data several ways. This improves reliability at a given distance and does not raise the peak rate.
- Beamforming adjusts the timing and strength of each antenna's signal so the waves add up at the receiver.
Reading the antenna notation
Vendors write MIMO capability as TxR:S, for example 3x3:2. The first number is transmit chains, the second is receive chains, and the third is the number of spatial streams the radio supports.
The number of streams on a link is limited by the smaller side. A 4x4 AP talking to a 2x2 phone uses at most 2 streams. Antenna count is not the same as stream count. A device can have three antennas and still support only two streams.
How streams multiply the rate
Each stream carries its own symbols, so the PHY rate scales almost linearly with the stream count. For one stream, the rate is the number of data subcarriers, times bits per subcarrier, times the coding rate, divided by the OFDM symbol duration. The code below applies this formula to three standards.
def phy_rate_mbps(data_subcarriers, bits_per_symbol, coding_rate, streams, symbol_us):
"""PHY rate in Mbps: bits per OFDM symbol across all streams, divided by symbol time."""
bits_per_symbol_total = data_subcarriers * bits_per_symbol * coding_rate * streams
return round(bits_per_symbol_total / symbol_us, 1)
# 802.11n, 20 MHz: 52 data subcarriers, 64-QAM (6 bits), rate 5/6, 4.0 us symbol
print(phy_rate_mbps(52, 6, 5 / 6, 1, 4.0)) # 65.0
print(phy_rate_mbps(52, 6, 5 / 6, 2, 4.0)) # 130.0
# 802.11ac, 80 MHz: 234 data subcarriers, 256-QAM (8 bits), rate 5/6, 4.0 us symbol
print(phy_rate_mbps(234, 8, 5 / 6, 1, 4.0)) # 390.0
print(phy_rate_mbps(234, 8, 5 / 6, 2, 4.0)) # 780.0
# 802.11ax, 80 MHz: 980 data subcarriers, 1024-QAM (10 bits), rate 5/6, 13.6 us symbol
print(phy_rate_mbps(980, 10, 5 / 6, 1, 13.6)) # 600.5The 2-stream 802.11ac result, 780 Mbps, matches the familiar 80 MHz figure from the standard's rate tables. A short guard interval would raise it slightly.
Streams across the generations
| Standard | Max streams in the standard | Multi-user MIMO |
|---|---|---|
| 802.11n (Wi-Fi 4) | 4 | None |
| 802.11ac (Wi-Fi 5) | 8 | Downlink only, from Wave 2 |
| 802.11ax (Wi-Fi 6/6E) | 8 | Downlink and uplink |
| 802.11be (Wi-Fi 7) | 16 | Downlink and uplink |
Real products are far below these limits. Phones and laptops are usually 1x1 or 2x2. Consumer APs are usually 2x2 to 4x4.
Single-user and multi-user MIMO
In SU-MIMO, the AP sends all its streams to one client at a time. The other clients wait their turn, so airtime is still shared.
In MU-MIMO, the AP sends different streams to different clients in the same transmission. For example, a 4-stream AP can send 2 streams to one laptop and 1 each to two phones. This needs several things to hold at once:
- The AP has more antennas than any single client.
- The clients support MU-MIMO.
- The clients are in different directions from the AP, so their signals can be separated.
When these conditions fail, the AP falls back to SU-MIMO. The gain is therefore uneven. You see it with many modern clients spread around a room, and you do not see it with one distant laptop.
Beamforming
Beamforming focuses energy toward a particular client. The AP transmits the same signal from several antennas with small phase and amplitude changes. At the client the copies add constructively, which raises the signal-to-noise ratio. A better signal-to-noise ratio supports a higher MCS rate or a longer range.
Beamforming needs to know the channel. In the explicit method, introduced as an option in 802.11n and standard in 802.11ac, the AP first runs a sounding exchange:
The sounding takes airtime. Channels change when people move, so the AP must repeat it, and the overhead can cancel the benefit for small frames or fast-moving clients.
Common errors and limits
- Counting antennas as streams. Three visible antennas do not mean a 3-stream link. Check the
TxR:Svalue. - Expecting the AP's stream count on every client. A 4x4 AP gives a 1x1 phone one stream. The extra chains help only through diversity, beamforming and MU-MIMO.
- Expecting gains in a clean line of sight. Spatial multiplexing needs multipath. Streams are hard to separate in an open field or a very short link.
- Expecting beamforming to help everyone. Beacons and other broadcast frames cannot be aimed at one client, so they go out unsteered. Beamforming also helps nothing if the client cannot hear the AP.
- Forgetting the reverse direction. A strong AP does not fix a weak client transmitter. Uplink range is often limited by the phone.
Checking streams on Linux
You can see the negotiated rate and MCS for your link with iw:
iw dev wlan0 link
iw dev wlan0 station dump | grep -E 'tx bitrate|rx bitrate'A line such as tx bitrate: 866.7 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 2 tells you the standard (VHT is 802.11ac), the MCS, the width and the number of spatial streams (NSS, here 2). Interface names vary, for example wlp2s0.
Exercise
An 802.11ac AP is 4x4:4 and a laptop is 2x2:2. Both use an 80 MHz channel at 256-QAM with coding rate 5/6 and a 4.0 microsecond symbol. Using 234 data subcarriers, what is the highest PHY rate of this link, and which side limits it?
Show answer
The link can use at most min(4, 2) = 2 streams, so the laptop limits it. The rate is 234 x 8 x 5/6 x 2 / 4.0 = 780 Mbps. The AP's extra two chains can still help through beamforming and diversity, but they cannot add streams for this laptop.