Sub topic 12
802.11b, a and g: the first generations
This chapter assumes you know what a band, a channel and a 20 MHz channel width are, and that you can read short Python. It covers the three standards that set the pattern for later Wi-Fi generations.
Where they fit
The Wi-Fi Alliance later gave generation names to 802.11n, ac and ax (Wi-Fi 4, 5 and 6). It never officially named b, a and g. People sometimes call them Wi-Fi 1, 2 and 3, but those labels are informal.
Comparison
| Standard | Band | Channel width | Modulation | Max rate |
|---|---|---|---|---|
| 802.11b | 2.4 GHz | 22 MHz (about 20) | DSSS/CCK | 11 Mbps |
| 802.11a | 5 GHz | 20 MHz | OFDM | 54 Mbps |
| 802.11g | 2.4 GHz | 20 MHz | OFDM (and DSSS/CCK for b) | 54 Mbps |
802.11b
802.11b used direct-sequence spread spectrum (DSSS). Each bit is spread across a wider signal, which resists noise. The rate steps down as the signal weakens: 11, 5.5, 2 and 1 Mbps. Because its channels are wide compared with the 5 MHz channel spacing, only channels such as 1, 6 and 11 avoid overlapping. That is where the habit comes from.
802.11a
802.11a moved to 5 GHz and introduced OFDM (orthogonal frequency-division multiplexing). OFDM splits a channel into many narrow subcarriers that are sent in parallel. Its rates run 6, 9, 12, 18, 24, 36, 48 and 54 Mbps. The 5 GHz band had less interference and many more non-overlapping channels. The costs were shorter range, since higher frequencies lose more signal to walls, and equipment that did not work with 2.4 GHz devices. Early 5 GHz hardware was also more expensive, so 802.11a saw little consumer adoption.
802.11g
802.11g brought OFDM and 54 Mbps to 2.4 GHz. It was backward compatible with 802.11b, so an old b client could join a g network.
That compatibility has a cost. A b device cannot decode OFDM, so it cannot hear g transmissions. When a b client is present, the access point makes g clients use a protection mechanism, usually a short CTS-to-self or RTS/CTS exchange sent at a b-compatible rate. This adds overhead to every transmission, and g throughput drops noticeably.
Raw rate is not throughput
The headline rate is the speed of the radio link, not what an application sees. This sketch computes the airtime for one 1500-byte packet at the raw rate only.
def airtime_us(payload_bytes, rate_mbps):
"""Microseconds to send the payload at the raw rate, ignoring all overhead."""
return payload_bytes * 8 / rate_mbps
for name, rate in [("802.11b", 11), ("802.11a/g", 54)]:
print(name, round(airtime_us(1500, rate), 1), "us")
# 802.11b 1090.9 us
# 802.11a/g 222.2 usReal transmissions also pay for preambles, acknowledgements and waiting periods. Chapter later in this series on real throughput returns to this.
Exercise
Why does adding one 802.11b client to an 802.11g network reduce speeds for the g clients?
Show answer
The b client cannot decode OFDM, so the access point enables a protection mechanism (CTS-to-self or RTS/CTS at a b-compatible rate) before g transmissions. That overhead, plus the b client's slow transmissions using more airtime, reduces throughput for everyone on the channel.