Sub topic 5
Overlap and interference: why 1, 6 and 11
This chapter assumes you know what a band, a channel and a center frequency are, and that you can read short Python and shell snippets. It explains why some 2.4 GHz channels collide and others don't.
Channels are closer together than they are wide
In the 2.4 GHz band, channel center frequencies sit 5 MHz apart. A classic 20 MHz Wi-Fi channel occupies about 20 MHz of spectrum. Neighboring channel numbers therefore share most of their frequency range. Channel 1 is centered at 2412 MHz and channel 2 at 2417 MHz, so a transmitter on one of them also lands energy on the other.
Two channels are treated as non-overlapping when their centers are at least one channel width apart. For 20 MHz channels, that means a spacing of at least 20 MHz. In practice the transmit mask has soft edges, so many guides use 25 MHz as a safer spacing. Five channel numbers apart gives 25 MHz.
def channel_center_mhz_24(channel):
return 2407 + 5 * channel # channels 1-13 only
def overlaps_24(ch_a, ch_b, width_mhz=20):
"""Treat two same-width channels as overlapping if their centers are closer than the width."""
spacing = abs(channel_center_mhz_24(ch_a) - channel_center_mhz_24(ch_b))
return spacing < width_mhz
print(overlaps_24(1, 6)) # False: centers are 25 MHz apart
print(overlaps_24(1, 4)) # True: centers are 15 MHz apart
print(overlaps_24(6, 11)) # False: centers are 25 MHz apartWhy 1, 6 and 11
Starting at channel 1 and stepping by five gives channels 1, 6 and 11. These three fit inside the band in regions that allow channels up to 11, and each pair is 25 MHz apart. Channel 13 is available in many regions, but 1, 6 and 11 remain the common choice because they work everywhere and because everyone uses them.
Co-channel and adjacent-channel interference
There are two kinds of interference, and they behave differently.
| Type | Situation | Effect |
|---|---|---|
| Co-channel | Two access points use the same channel | Devices hear each other's frames and take turns, using CSMA/CA. Airtime is shared, but nothing is corrupted. |
| Adjacent-channel | Two access points use partly overlapping channels, such as 1 and 3 | Devices cannot decode each other, so the other network looks like noise. Frames are corrupted and retransmitted. |
Co-channel interference is the lesser problem, because Wi-Fi is designed to share a channel politely. Adjacent-channel interference is worse, because the radios cannot coordinate. This is why a crowded band is better served by several networks on channel 6 than by one on channel 5 and another on channel 7.
Seeing it on your own network
A scan shows which channels your neighbors use.
# Show the current connection (interface name may differ, for example wlp2s0)
iw dev wlan0 link
# List nearby networks with their frequency, signal level and SSID
sudo iw dev wlan0 scan | grep -E 'freq:|signal:|SSID:'Convert each freq: value back to a channel number. Count how many strong signals (for example, above -70 dBm) share your channel or sit within four channel numbers of it.
Exercise
An access point uses channel 4 and a neighbor uses channel 6. Do they overlap with 20 MHz channels? Which type of interference results, and what would you change?
Show answer
Their centers are 2427 and 2437 MHz, 10 MHz apart, which is less than 20 MHz, so they overlap. This is adjacent-channel interference. Move one access point to channel 1, 6 or 11 so the two networks either share a channel (co-channel) or sit 25 MHz apart.