Sub topic 5
Channel width: bonding 20 MHz channels
This chapter assumes you know what a band and a channel number are, and that 2.4 GHz channels are 5 MHz apart. It covers how Wi-Fi combines 20 MHz channels into wider ones, what that buys, and what it costs.
What channel width means
A Wi-Fi channel is a slice of spectrum. Its width is the size of that slice in MHz. Every 802.11 amendment since 802.11a uses 20 MHz as the basic unit. Later standards bond (combine) adjacent 20 MHz channels into one wider channel. A wider channel carries more OFDM subcarriers at once, so it moves more data per symbol.
| Width | Bonded 20 MHz channels | Introduced by | Noise power vs 20 MHz |
|---|---|---|---|
| 20 MHz | 1 | 802.11a/g | 0 dB |
| 40 MHz | 2 | 802.11n | +3 dB |
| 80 MHz | 4 | 802.11ac | +6 dB |
| 160 MHz | 8 | 802.11ac | +9 dB |
| 320 MHz | 16 | 802.11be | +12 dB |
The last column follows from physics. Thermal noise power is proportional to bandwidth, so doubling the width adds about 3 dB of noise (10·log10(2)). At the same transmit power, a wider channel has a lower signal-to-noise ratio (SNR), which lowers the usable modulation rate and shortens range.
How bonding is arranged
Bonded channels are not arbitrary. Each wider channel is built from fixed, aligned blocks, and one 20 MHz channel inside the block is the primary channel. The primary carries beacons and serves devices that only support 20 MHz. The other 20 MHz channels are secondary channels.
The channel number you see for a wide channel is usually the center channel. The center frequency is the midpoint of the bonded block. For channels 36, 40, 44 and 48 the midpoint is 5210 MHz, which is channel 42. The center channel is a different number from the primary.
The following code finds the aligned block for a primary channel in 5 GHz and its center. It covers the US ranges 36–64, 100–144 and 149–161.
RANGES = ((36, 64), (100, 144), (149, 161))
def bonded_block(primary, width_mhz):
"""Return the 20 MHz channel numbers bonded with `primary` (5 GHz)."""
step = width_mhz // 5 # channel-number span of the block
for start, end in RANGES:
if start <= primary <= end:
first = start + (primary - start) // step * step
last = first + step - 4
if last > end:
raise ValueError("block does not fit in this range")
return list(range(first, last + 1, 4))
raise ValueError(f"channel {primary} not handled")
def block_center_mhz(channels):
freqs = [5000 + 5 * c for c in channels]
return sum(freqs) / len(freqs)
for primary, width in ((44, 40), (44, 80), (36, 160), (157, 80)):
block = bonded_block(primary, width)
center = block_center_mhz(block)
print(primary, width, block, center, (center - 5000) / 5)For primary 44 at 80 MHz it prints the block [36, 40, 44, 48], center 5210.0 MHz and center channel 42.0. For primary 36 at 160 MHz the center channel is 50.
Channel count shrinks as width grows
The spectrum is fixed, so wider channels mean fewer of them. This matters more than the headline rate.
- 2.4 GHz: 13 channels in much of the world, but only three non-overlapping 20 MHz channels (1, 6, 11). A 40 MHz channel uses two of those three slots. It is almost never a good choice in a shared environment. Wi-Fi 4 even has a coexistence mechanism that makes an access point fall back to 20 MHz when it detects neighbors.
- 5 GHz (US): 25 channels of 20 MHz, but only 6 channels of 80 MHz and about 2 of 160 MHz. Most of the wide channels include DFS channels.
- 6 GHz (US, 1200 MHz): 59 channels of 20 MHz, 29 of 40 MHz, 14 of 80 MHz, 7 of 160 MHz and 3 of 320 MHz.
Costs of going wider
- Lower SNR. The 3 dB per doubling noise penalty above means a client at the edge of coverage may get a faster rate at 20 MHz than at 80 MHz.
- More neighbors in your block. The access point senses the whole bonded channel. Transmission needs the secondary channels to be idle too, and a busy neighbor on any one of them can block you.
- Not exactly double the speed. Data subcarriers go from 52 at 20 MHz to 108 at 40 MHz in 802.11n, which is 2.08 times, but overhead, retries and contention stay the same.
- Fewer non-overlapping channels, which forces co-channel sharing in dense buildings.
Since 802.11ac, a transmitter that finds a secondary channel busy can send on a narrower sub-block that includes the primary. This is called dynamic bandwidth. Wi-Fi 6 and Wi-Fi 7 add optional preamble puncturing, which lets a wide channel skip a busy 20 MHz segment instead of dropping to a narrower block.
Checking the width on a real link
On Linux, iw dev wlan0 link shows the link's channel and width, for example 5180 MHz with a rate such as 866.7 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 2. The 80MHz there is the actual negotiated width. The advertised width of the access point and the width used for a particular client can differ, because each client negotiates its own capabilities.
Exercise
An access point uses primary channel 52 with an 80 MHz width in the US 5 GHz band. Which 20 MHz channels are bonded, what is the center frequency, and how much extra noise does the 80 MHz channel have compared with 20 MHz?
Show answer
Channels 52, 56, 60 and 64 are bonded, because the 80 MHz block starts at 52. The center frequency is the midpoint of 5260 and 5320 MHz, which is 5290 MHz (channel 58). The 80 MHz channel has four times the noise bandwidth, so about 6 dB more noise power than a 20 MHz channel.
Exercise
Why is a 40 MHz channel on 2.4 GHz usually a poor choice in a crowded area?
Show answer
Only three 20 MHz channels (1, 6, 11) do not overlap, and a 40 MHz channel consumes two of them. It leaves almost no room for neighbors, so it increases co-channel interference and contention, and the extra noise also reduces SNR.