Sub topic 11
Modulation, OFDM and MCS rates
This chapter assumes you know what a channel and a channel width are, and that signal strength is measured in dBm. It explains how a Wi-Fi radio turns bits into a signal, and how the "MCS" number in a link report maps to a data rate.
From bits to radio waves
A radio carries data by changing a property of a carrier wave. Modulation is the name for that change. Wi-Fi changes two properties at once: the amplitude (strength) and the phase (timing offset) of the wave. This is called quadrature amplitude modulation, or QAM. Each distinct combination of amplitude and phase is a point on a grid called a constellation. Each point stands for a fixed group of bits.
The more points on the grid, the more bits each transmitted symbol carries. A symbol is one such amplitude and phase combination, held for a short moment. More points also sit closer together, so noise can push a received point onto its neighbor.
| Modulation | Bits per symbol | Introduced with |
|---|---|---|
| BPSK | 1 | 802.11a/g |
| QPSK | 2 | 802.11a/g |
| 16-QAM | 4 | 802.11a/g |
| 64-QAM | 6 | 802.11a/g |
| 256-QAM | 8 | 802.11ac (Wi-Fi 5) |
| 1024-QAM | 10 | 802.11ax (Wi-Fi 6) |
| 4096-QAM | 12 | 802.11be (Wi-Fi 7) |
Dense constellations need a clean signal. As a rough guide, the lowest rates work at a signal-to-noise ratio (SNR) of a few dB. The highest need 30 dB or more. Exact thresholds depend on the chip.
Coding rate
Radios also add error-correcting bits. The coding rate is the fraction of transmitted bits that are real data. A rate of 5/6 means 5 of every 6 bits are data and 1 is redundancy. A rate of 1/2 means half the bits are redundancy, which survives more noise but carries less data.
OFDM: many slow carriers
Orthogonal frequency-division multiplexing (OFDM) splits a channel into many narrow subcarriers. Each subcarrier carries its own QAM symbol at the same time. Because each subcarrier is slow, echoes from walls (multipath) smear a symbol only a little. A guard interval, a short pause between symbols, absorbs the echoes.
Key numbers:
- In 802.11a/g/n/ac, subcarriers are spaced 312.5 kHz apart. A symbol lasts 3.2 µs plus a 0.8 µs guard interval (long GI), or 0.4 µs (short GI). This gives 4.0 µs or 3.6 µs per symbol.
- In 802.11ax, subcarriers are spaced 78.125 kHz apart. The symbol is four times longer (12.8 µs) and the guard interval is 0.8, 1.6 or 3.2 µs.
- Only some subcarriers carry data. The rest are pilots (reference tones) and guard tones at the channel edges.
| Channel width | Data subcarriers (a/g) | (n) | (ac) | (ax) |
|---|---|---|---|---|
| 20 MHz | 48 | 52 | 52 | 234 |
| 40 MHz | n/a | 108 | 108 | 468 |
| 80 MHz | n/a | n/a | 234 | 980 |
| 160 MHz | n/a | n/a | 468 | 1960 |
MCS: a code for modulation plus coding
A Modulation and Coding Scheme (MCS) index is a shorthand for one modulation and coding rate pair. A higher index means a faster but more fragile setting.
| MCS | Modulation | Coding rate | Standard |
|---|---|---|---|
| 0 | BPSK | 1/2 | n and later |
| 1 | QPSK | 1/2 | n and later |
| 2 | QPSK | 3/4 | n and later |
| 3 | 16-QAM | 1/2 | n and later |
| 4 | 16-QAM | 3/4 | n and later |
| 5 | 64-QAM | 2/3 | n and later |
| 6 | 64-QAM | 3/4 | n and later |
| 7 | 64-QAM | 5/6 | n and later |
| 8 | 256-QAM | 3/4 | ac and later |
| 9 | 256-QAM | 5/6 | ac and later |
| 10 | 1024-QAM | 3/4 | ax and later |
| 11 | 1024-QAM | 5/6 | ax and later |
Wi-Fi 7 adds MCS 12 and 13 with 4096-QAM.
Computing a data rate
The PHY rate (the raw rate on the air) follows from the pieces above:
rate = data subcarriers × bits per symbol × coding rate × spatial streams ÷ symbol time
from fractions import Fraction
def phy_rate_mbps(data_subcarriers, bits_per_symbol, coding_rate, streams, symbol_us):
"""PHY rate in Mbit/s. Bits per microsecond equals Mbit/s."""
bits_per_symbol_total = data_subcarriers * bits_per_symbol * coding_rate * streams
return float(bits_per_symbol_total / Fraction(str(symbol_us)))
cases = [
("11a, 54 Mbit/s", 48, 6, Fraction(3, 4), 1, "4.0"),
("11n 20 MHz MCS 7, SGI", 52, 6, Fraction(5, 6), 1, "3.6"),
("11ac 80 MHz MCS 9, SGI", 234, 8, Fraction(5, 6), 1, "3.6"),
("11ax 80 MHz MCS 11", 980, 10, Fraction(5, 6), 1, "13.6"),
]
for name, sd, bps, rate, nss, tsym in cases:
print(f"{name}: {phy_rate_mbps(sd, bps, rate, nss, tsym):.1f} Mbit/s")The output is 54.0, 72.2, 433.3 and 600.5 Mbit/s. These match the published values for one spatial stream. For 802.11ax the symbol time is 12.8 µs plus a 0.8 µs guard interval, which is 13.6 µs.
Reading MCS in a link report
On Linux, iw dev wlan0 link prints the rate the radio is using right now:
tx bitrate: 866.7 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 2Decode it with the formula. The line shows 802.11ac, 256-QAM at 5/6, an 80 MHz channel, a short guard interval and two spatial streams. That gives 2 × 433.3 = 866.7 Mbit/s.
The way MCS is numbered differs by standard. In 802.11n (HT), the index also encodes the stream count, so MCS 0–7 use one stream and MCS 8–15 use two. In 802.11ac and later, the MCS stays 0–9 (or higher) and the stream count is reported separately as NSS.
Rate adaptation
The access point and client pick an MCS per frame, based on recent success. If frames are lost, they step down to a sturdier MCS. At a lower MCS, the same data occupies the air for longer. One client stuck at MCS 0 can therefore consume a large share of airtime that all other clients on the channel need.
Exercise
Exercise
An 802.11ax client uses a 20 MHz channel (234 data subcarriers), MCS 7 (64-QAM, coding rate 5/6), 2 spatial streams and a 0.8 µs guard interval (13.6 µs symbol time). What is the PHY rate?
Show answer
Bits per symbol across both streams = 234 × 6 × 5/6 × 2 = 2340. Divide by 13.6 µs: 2340 ÷ 13.6 ≈ 172.1 Mbit/s.
Exercise
A link report shows "VHT-MCS 4, 80MHz, VHT-NSS 1". What modulation and coding rate is in use, and why might the client have chosen it instead of MCS 9?
Show answer
MCS 4 is 16-QAM with coding rate 3/4. The client most likely sees a weaker or noisier signal, such as being far from the access point or facing interference, so it dropped to a sturdier MCS to avoid frame loss.