Sub topic 14
802.11b, a and g: the first generations
This chapter covers the three amendments that defined early Wi-Fi: 802.11b, 802.11a and 802.11g. It assumes you know what a band, a channel and a 20 MHz channel width are, and that you have seen the idea of modulation as a way to encode bits onto a radio signal. Later chapters build on these three, so the details here explain many behaviors you still see today.
Why the early standards matter
The original 802.11 standard from 1997 offered only 1 and 2 Mbit/s. Three amendments followed within a few years. They set the pattern that later generations reuse: a band, a 20 MHz channel, a modulation scheme and a table of data rates that the radio steps through as conditions change.
| Amendment | Ratified | Band | Channel width | Modulation | Maximum rate |
|---|---|---|---|---|---|
| 802.11b | 1999 | 2.4 GHz | 22 MHz | DSSS / CCK | 11 Mbit/s |
| 802.11a | 1999 | 5 GHz | 20 MHz | OFDM | 54 Mbit/s |
| 802.11g | 2003 | 2.4 GHz | 20 MHz | OFDM (and DSSS/CCK) | 54 Mbit/s |
The Wi-Fi Alliance did not give these amendments generation numbers when they were new. The names Wi-Fi 1, 2 and 3 were applied to them later and are rarely used. You will usually see the letters.
802.11b: cheap and long-ranged
802.11b worked in the 2.4 GHz band and used Direct Sequence Spread Spectrum (DSSS). DSSS spreads each bit across a wider slice of spectrum using a chipping code. Spreading makes the signal tolerant of narrowband noise, which is a good property in a shared, unlicensed band.
The rates are 1, 2, 5.5 and 11 Mbit/s.
- 1 Mbit/s uses DBPSK with an 11-chip Barker code.
- 2 Mbit/s uses DQPSK with the same Barker code.
- 5.5 and 11 Mbit/s use Complementary Code Keying (CCK), which packs more bits into each symbol.
The channel is about 22 MHz wide. Because 2.4 GHz channel centers are 5 MHz apart, this width is why only channels 1, 6 and 11 are usable together in the 20 MHz-style plan. A channel that wide fits poorly into the band, which you saw in the overlap chapter.
The 2.4 GHz band also travels farther and passes through walls better than 5 GHz. That is why 802.11b devices reached cheaply across a house, even though they were slow.
802.11a: fast, but in the wrong place at first
802.11a was ratified at the same time as 802.11b, but it used the 5 GHz band and a different modulation: Orthogonal Frequency Division Multiplexing (OFDM). OFDM splits a 20 MHz channel into 52 narrow subcarriers (48 for data and 4 for pilot signals). Each subcarrier carries a slow stream, and together they reach higher rates with better resistance to multipath reflections.
The eight rates are 6, 9, 12, 18, 24, 36, 48 and 54 Mbit/s. The radio picks one by combining a modulation (BPSK, QPSK, 16-QAM or 64-QAM) with a coding rate (1/2, 2/3 or 3/4). A higher-order modulation carries more bits per symbol but needs a cleaner signal.
802.11a had real advantages: more speed, and a quieter band with many non-overlapping channels. It also had costs. Chips were more expensive. 5 GHz attenuates faster, so range was shorter. And 802.11a was not compatible with 802.11b on the air, because the two used different bands. Home users mostly chose 802.11b, and 802.11a stayed common in business settings.
802.11g: OFDM comes to 2.4 GHz
802.11g (2003) took the 802.11a OFDM design and ran it in the 2.4 GHz band. It reached 54 Mbit/s with the same set of eight OFDM rates. Because it shared the band with 802.11b, it was built to be backward compatible: a g access point could talk to b clients using the older DSSS/CCK rates.
That compatibility has a cost. An 802.11b device cannot decode OFDM, so it cannot tell when a g device is transmitting. To prevent collisions, a g network that has b clients turns on protection mode. Before sending an OFDM frame, the g device first sends a short control frame (RTS/CTS or CTS-to-self) at an 802.11b rate that everyone can decode. That extra frame is overhead, and it is sent at a slow rate, so it uses airtime.
Comparing the three in practice
The following small program models the airtime problem. It computes how long one 1500-byte payload occupies the channel at different rates. It ignores preambles and acknowledgments, so real values are higher, but the ratio shows why slow clients matter.
def airtime_ms(payload_bytes, rate_mbps):
"""Time on the air in milliseconds for the payload alone."""
bits = payload_bytes * 8
return bits / (rate_mbps * 1_000_000) * 1000
rates = {
"802.11b at 1 Mbit/s": 1,
"802.11b at 11 Mbit/s": 11,
"802.11a/g at 6 Mbit/s": 6,
"802.11a/g at 54 Mbit/s": 54,
}
for name, rate in rates.items():
print(f"{name}: {airtime_ms(1500, rate):.2f} ms")Running it prints 12.00 ms at 1 Mbit/s, 1.09 ms at 11 Mbit/s, 2.00 ms at 6 Mbit/s and 0.22 ms at 54 Mbit/s. One frame at 1 Mbit/s blocks the channel for as long as about 54 frames at 54 Mbit/s.
Common errors and gotchas
- Assuming 54 Mbit/s is the speed you get. The headline rate is the signaling rate. Framing, acknowledgments, contention and protection mode reduce the usable throughput to roughly half of it or less. A later chapter covers this in detail.
- Treating 802.11g as a 5 GHz standard. It is 2.4 GHz only. If a device shows 54 Mbit/s on 5 GHz, it is using 802.11a (or a newer standard).
- Forgetting that old clients slow down the cell. Many modern access points let you disable the 1, 2, 5.5 and 11 Mbit/s rates. That removes 802.11b support and stops the protection overhead.
- Mixing up the 22 MHz and 20 MHz widths. 802.11b uses DSSS at about 22 MHz. 802.11g and 802.11a use OFDM at 20 MHz.
- Expecting b and a to interoperate. They share no band, so a b-only device cannot join a 5 GHz-only network.
Checking what a device negotiated
On Linux, iw shows the bit rate in use on the current link. A rate of 11.0 Mbit/s or lower on 2.4 GHz points to a b-style rate. A rate that is a multiple from the OFDM table, such as 24.0 or 54.0 Mbit/s, points to a or g.
# Show the current link, including the transmit bit rate
iw dev wlan0 link
# Show the rates the adapter supports, per band
iw phy | grep -E 'Band|MHz|\* [0-9.]+ Mbps'Exercise
A 2.4 GHz network has one 802.11b client and ten 802.11g clients. Name two reasons why the g clients get lower throughput than they would on a g-only network.
Show answer
First, the access point enables protection mode, so g devices send an extra RTS/CTS or CTS-to-self frame at a slow DSSS rate before their OFDM frames, which adds overhead. Second, the b client sends at 11 Mbit/s or less, so each of its frames occupies the shared channel much longer than a 54 Mbit/s frame, and all clients on the channel wait for it.
Exercise
Why can an 802.11a device not join an 802.11b-only access point, even if both are in the same room?
Show answer
802.11a works only in the 5 GHz band, and 802.11b works only in the 2.4 GHz band. The radios never listen on the same frequencies, and the modulations also differ (OFDM versus DSSS/CCK).