Sub topic 15
802.11n and 802.11ac: Wi-Fi 4 and Wi-Fi 5
This chapter assumes you know what a band, a channel and a channel width are, and that you have met modulation (QAM) and MIMO (multiple antennas) in earlier chapters. It covers the two standards that turned Wi-Fi from a convenience into a primary network: 802.11n, now called Wi-Fi 4, and 802.11ac, now called Wi-Fi 5.
Where these standards fit
The legacy standards (802.11b, a and g) used one antenna chain and 20 MHz channels. Their top rate was 54 Mbit/s. 802.11n (2009) and 802.11ac (2013) raised speed by stacking several techniques, not by finding one trick. Each technique multiplies the others:
- Wider channels (more spectrum per transmission).
- Denser modulation (more bits per symbol).
- More spatial streams (several parallel transmissions on the same channel).
- Lower overhead (less wasted airtime per frame).
| Property | 802.11n (Wi-Fi 4) | 802.11ac (Wi-Fi 5) |
|---|---|---|
| Year | 2009 | 2013 (Wave 1), 2015 (Wave 2) |
| Bands | 2.4 GHz and 5 GHz | 5 GHz only |
| Channel widths | 20, 40 MHz | 20, 40, 80, 160 MHz |
| Highest modulation | 64-QAM | 256-QAM |
| Max spatial streams | 4 | 8 (most devices use 1 to 4) |
| MU-MIMO | No | Yes, downlink only (Wave 2) |
| Beamforming | Optional, several incompatible methods | Standardized sounding method |
| Theoretical peak | 600 Mbit/s | About 6.9 Gbit/s |
Wi-Fi 5 is 5 GHz only. A "Wi-Fi 5" device that also works on 2.4 GHz is using 802.11n there.
What 802.11n changed
MIMO and spatial streams
802.11n introduced MIMO (Multiple Input, Multiple Output) to Wi-Fi. A transmitter with several antennas can send different data on each antenna at the same time, on the same frequency. In a room with reflections, the receiver's antennas see different mixtures of those signals. The receiver solves them apart mathematically. Each independent data flow is a spatial stream.
Antenna configurations are written as TxR:S, for example 3x3:3. This means 3 transmit chains, 3 receive chains and 3 spatial streams. The number of streams is limited by the smaller of the two devices' stream counts. A 3x3 access point talking to a 2x2 phone uses 2 streams.
40 MHz channels
802.11n added channel bonding. The radio joins two adjacent 20 MHz channels into one 40 MHz channel. The channel carries slightly more than double the data of a 20 MHz channel, because the guard band between the two halves also carries subcarriers (108 data subcarriers instead of 2 × 52). On 2.4 GHz, a 40 MHz channel covers a large share of the band, so it is almost never a good idea there. It leaves room for only one non-overlapping channel and overlaps every neighbor.
Other 802.11n features
- Short guard interval. The guard interval is a pause between OFDM symbols that absorbs echoes. 802.11n allows 400 ns instead of 800 ns, which adds about 11 percent to the rate in clean conditions.
- Frame aggregation. Several frames are sent as one transmission (A-MPDU and A-MSDU), so the per-frame overhead (contention, preamble, acknowledgment) is paid once.
- Block acknowledgment. One acknowledgment covers a group of frames.
- Higher coding rate. The code rate 5/6 replaced the 3/4 maximum of earlier standards.
What 802.11ac changed
Wider channels, 5 GHz only
802.11ac works only on 5 GHz because that band has room for 80 and 160 MHz channels. It defines these widths:
- 20, 40 and 80 MHz are mandatory for access points.
- 160 MHz is optional. It can be a single contiguous block, or two separate 80 MHz blocks ("80+80 MHz").
Wider channels need free spectrum. Wide channels on 5 GHz often cross DFS ranges, which brings in radar detection rules (covered in the DFS chapter).
256-QAM
802.11ac added 256-QAM. Each symbol carries 8 bits instead of 6 bits with 64-QAM, so the rate rises by one third. The cost is that the receiver must distinguish many closely spaced points, so it needs a high signal-to-noise ratio. At the edge of coverage, devices fall back to simpler modulation. 256-QAM appears only at short range.
Beamforming and MU-MIMO
802.11ac standardized one beamforming method. The access point sends a sounding frame, the client reports back how the channel looks, and the access point shapes its transmission toward that client. Wave 2 devices added downlink MU-MIMO (multi-user MIMO), in which an access point sends to several clients at once on different spatial streams. Wave 2 MU-MIMO has these limits:
- It works downlink only (access point to clients).
- It serves up to 4 clients in a group.
- Both sides need support, and clients should not be moving fast, since the sounding data goes stale.
How headline rates are calculated
The PHY rate follows from a formula:
rate = data subcarriers × bits per symbol × coding rate × spatial streams ÷ symbol time
The following Python code computes this for the OFDM parameters used by Wi-Fi 4 and Wi-Fi 5.
# Data subcarriers per channel width (HT = 802.11n, VHT = 802.11ac)
DATA_SUBCARRIERS = {
("ht", 20): 52, ("ht", 40): 108,
("vht", 20): 52, ("vht", 40): 108, ("vht", 80): 234, ("vht", 160): 468,
}
def phy_rate_mbps(standard, width, bits_per_symbol, coding, streams, short_gi=False):
"""Return the PHY rate in Mbit/s.
bits_per_symbol: 6 for 64-QAM, 8 for 256-QAM
coding: code rate such as 5/6
"""
symbol_us = 3.6 if short_gi else 4.0 # 3.2 us symbol + 0.8 or 0.4 us guard
subcarriers = DATA_SUBCARRIERS[(standard, width)]
return subcarriers * bits_per_symbol * coding * streams / symbol_us
# 802.11n: 40 MHz, 64-QAM 5/6, 4 streams, short GI -> the 600 Mbit/s maximum
print(round(phy_rate_mbps("ht", 40, 6, 5 / 6, 4, short_gi=True))) # 600
# A typical Wi-Fi 4 laptop: 20 MHz, 64-QAM 5/6, 2 streams, long GI
print(round(phy_rate_mbps("ht", 20, 6, 5 / 6, 2))) # 130
# A common Wi-Fi 5 phone: 80 MHz, 256-QAM 5/6, 2 streams, short GI
print(round(phy_rate_mbps("vht", 80, 8, 5 / 6, 2, short_gi=True))) # 867
# The 802.11ac maximum used in marketing: 160 MHz, 8 streams
print(round(phy_rate_mbps("vht", 160, 8, 5 / 6, 8, short_gi=True))) # 6933The outputs match the standard's MCS tables. The 600 Mbit/s and 6.9 Gbit/s peaks are not what you will see in use. Few devices have more than 2 streams, and no consumer client has 8.
Reading product labels
Marketing labels such as "AC1200" or "N300" add up the rates of all radios in the access point. They do not describe what one client can get. For example, AC1200 means roughly 300 Mbit/s on 2.4 GHz plus 867 Mbit/s on 5 GHz. A single client can use only one band at a time, so it never sees 1200.
The useful details are the stream count (for example 2x2), the supported widths and whether MU-MIMO is present.
Compatibility and common errors
- Mixed-mode slowdowns. If an old 802.11b or g client joins a 2.4 GHz network, 802.11n devices must use protection mechanisms (for example RTS/CTS or CTS-to-self), which cost airtime for every device. Disabling old rates on the access point helps.
- 40 MHz on 2.4 GHz. Many access points offer it by default. In a crowded building it causes overlap and often lowers real throughput.
- TKIP and slow speeds. Wi-Fi 4 and later require AES-based encryption for their full rates. Using WPA with TKIP can cap a link at legacy speeds on some devices.
- Mismatched streams. A 4x4 access point does not speed up a 1x1 client. The client's single stream stays the limit. The gain comes from better signal quality and serving other clients.
- Wide channels with weak signal. An 80 MHz channel spreads the same transmit power across more spectrum. Its range is shorter than that of a 20 MHz channel, and noise in a wider channel also reduces the signal-to-noise ratio.
Checking what your link is using
On Linux, iw shows the negotiated rate, which reveals the standard, width and stream count in use.
iw dev wlan0 linkA line such as rx bitrate: 866.7 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 2 tells you the link is 802.11ac (VHT), at MCS 9 (256-QAM, 5/6), 80 MHz wide, with 2 spatial streams and a short guard interval. A line such as tx bitrate: 144.4 MBit/s MCS 15 20MHz short GI with no VHT prefix is 802.11n (HT). MCS 15 on HT means 2 streams, 64-QAM 5/6.
Exercise
A Wi-Fi 5 phone has 2 spatial streams and connects to an access point on an 80 MHz channel using 256-QAM with a 5/6 code rate and a short guard interval. Using the formula in this chapter, what is the PHY rate? Then estimate real throughput, and say what the rate becomes if the access point must fall back to a 40 MHz channel.
Show answer
With 234 data subcarriers, 8 bits per symbol, a 5/6 code rate and 2 streams, the rate is 234 × 8 × 5/6 × 2 ÷ 3.6 µs = about 867 Mbit/s. Real throughput at 50 to 65 percent is about 430 to 560 Mbit/s. On 40 MHz, there are 108 data subcarriers, so the rate is 108 × 8 × 5/6 × 2 ÷ 3.6 µs = 400 Mbit/s. The rate drops in proportion to the data subcarriers (108 against 234), a little under half.
Exercise
A home access point is set to 40 MHz on 2.4 GHz, and a neighbor's network uses channel 6. Why might real throughput be worse than with a 20 MHz channel on channel 1, and which standard feature lets a client avoid the problem entirely?
Show answer
A 40 MHz channel on 2.4 GHz covers roughly 40 MHz of a band that has only about 70 MHz usable, so it overlaps channel 6 and every other neighbor. The overlapping transmissions force devices to defer to each other and cause collisions, which reduces airtime. A 20 MHz channel on channel 1 avoids the overlap. A client can avoid 2.4 GHz altogether by using 802.11ac on 5 GHz, where 20, 40 and 80 MHz channels have many non-overlapping positions.