Sub topic 10
Modulation, OFDM and MCS rates
This chapter assumes you know what a channel and a channel width are. It also assumes you can read short Python.
Modulation: bits on a radio wave
A transmitter carries data by changing a wave's phase and amplitude. Each distinct combination is a symbol. Denser modulation packs more bits into each symbol, but the symbols sit closer together. A receiver needs a strong, clean signal to tell them apart.
| Modulation | Bits per symbol | Typical use |
|---|---|---|
| BPSK | 1 | Weakest signals |
| QPSK | 2 | Low rates |
| 16-QAM | 4 | Mid rates |
| 64-QAM | 6 | Wi-Fi 4 and earlier top rate |
| 256-QAM | 8 | Wi-Fi 5 |
| 1024-QAM | 10 | Wi-Fi 6 |
| 4096-QAM | 12 | Wi-Fi 7 |
OFDM: many slow carriers
Modern Wi-Fi uses OFDM (orthogonal frequency-division multiplexing). It splits a channel into many narrow subcarriers and sends data on all of them at once. A 20 MHz channel in 802.11n has 52 data subcarriers. A 40 MHz channel has 108. Each OFDM symbol lasts 3.2 µs plus a guard interval of 0.8 µs. The guard interval absorbs echoes from reflections.
MCS rates
An MCS (modulation and coding scheme) index bundles a modulation with a coding rate. The coding rate is the share of transmitted bits that are real data. A rate of 5/6 means one bit in six is error-correction overhead. Access points and clients pick the highest MCS the signal can support, and they step down as it weakens.
The PHY rate follows from one formula: data subcarriers × bits per symbol × coding rate × spatial streams ÷ symbol time.
def phy_rate_mbps(subcarriers, bits_per_symbol, coding, streams, symbol_us=4.0):
"""Physical-layer rate in Mbit/s (bits per microsecond equals Mbit/s)."""
return round(subcarriers * bits_per_symbol * coding * streams / symbol_us, 1)
print(phy_rate_mbps(52, 6, 5 / 6, 1)) # 65.0 (802.11n MCS 7, 20 MHz)
print(phy_rate_mbps(52, 6, 5 / 6, 2)) # 130.0 (two streams)
print(phy_rate_mbps(108, 6, 5 / 6, 1)) # 135.0 (40 MHz)MIMO and spatial streams
MIMO (multiple-input, multiple-output) uses several antennas at each end. Reflections make the paths between antennas different. The transmitter can therefore send independent data streams on the same frequency at the same time. Each one is a spatial stream, and the rate scales with the stream count, as the second line of the code shows. Two streams roughly double the rate. The number of streams is limited by the smaller antenna count of the two devices. A phone with two antennas gets at most two streams, even from an eight-antenna access point.
Beamforming
Beamforming shapes the transmitted signals so they add up at the client's location. This raises signal strength there and so allows a higher MCS. The client first sends feedback about the channel, which costs a little airtime.
Exercise
Using the formula in this chapter, what is the PHY rate for 40 MHz (108 data subcarriers), 2 spatial streams, 16-QAM and coding rate 3/4, with a 4 µs symbol?
Show answer
108 × 4 × 0.75 × 2 ÷ 4 = 162 Mbit/s.