xref: /openwifi/doc/app_notes/ieee80211n.md (revision 5deb8d18f6d13bc809afd5109593e0982888373c)
1
2## IEEE 802.11n (Wi-Fi 4)
3
4The 4th generation of Wi-Fi (i.e. 802.11n-2009) is a generation leap over its predecessor Wi-Fi 3 (i.e. 802.11g-2003). It was coined as high throughput (HT) since it improves both the physical layer and the MAC layer.
5
6### PHY layer improvements
7At the physical layer, 5 major improvements were amended on top of Wi-Fi 3 and this has increased the throughput from 54Mbps to 600Mbps.
8
9#### More subcarriers
10Wi-Fi 3 utilizes 48 OFDM data subcarriers and Wi-Fi 4 increased this number to 52, thereby increasing the throughput to 52/48 * 54Mbps = 58.5Mbps.
11
12![](./subcarriers.png)
13
14#### Forward error correction
15The most efficient coding rate used in Wi-Fi 3 was 3/4 but Wi-Fi increased this value to 5/6 by squeezing more bits. This has increased the throughput to (5/6)/(3/4) * 58.5Mbps = 65Mbps.
16
17#### Guard interval
18As a measure to combat inter-symbol interference (ISA), Wi-Fi 3 utilizes 800nsec of guard interval between consecutive OFDM symbols. Wi-Fi 4 shortens this value to 400nsec, and this has increased the throughput to 4usec/3.6usec * 65Mbps = 72.2Mbps.
19
20![](./guard-interval.png)
21
22#### MIMO
23Wi-Fi 4 was the first to introduce MIMO and standardized 4x4 spatial streams. This has quadrupled the throughput to 4*72.2Mbps = 288.9Mbps.
24
25![](./mimo.png)
26
27#### 40MHz bandwidth
28The last thing Wi-Fi 4 introduced to the physical layer is a 40MHz bandwidth utilizing 108 OFDM data subcarriers. This has increased the throughput to 108/52 * 288.8Mbps = 600 Mbps.
29
30![](./40mhz.png)
31
32### MAC layer improvements
33
34On top of the PHY layer improvements, Wi-Fi 4 also introduced frame aggregation at the MAC layer to ease the medium access contention. Two types of frame aggregation are used in Wi-Fi 4; A-MPDU and A-MSDU. While A-MSDU is efficient in medium occupation, a single packet error will make the whole frame unusable and require complete retransmission. However, A-MPDU aggregates multiple MPDUs by adding headers to each packet and a single packet error only requires single packet retransmission. As such, A-MPDU gained traction.
35
36![](./mpdu-aggr.png)
37
38
39## Supported openwifi 802.11n amendments
40
41- 52 subcarriers
42- 5/6 code rates
43- 400nsec short guard interval.
44
45Current theoretical throughput = 72.2Mbps.
46
47## To be supported openwifi 802.11n amendments
48- Frame aggregation
49
50## Not supported openwifi 802.11n amendments
51
52- MIMO
53- 40MHz bandwidth
54