xref: /openwifi/doc/app_notes/ieee80211n.md (revision a6085186d94dfe08b0e09c18c8d4b1b4fe38ea35)
1*a6085186SLina Ceballos<!--
2*a6085186SLina CeballosSPDX-FileCopyrightText: 2019 Jiao Xianjun <[email protected]>
3*a6085186SLina CeballosSPDX-License-Identifier: AGPL-3.0-or-later
4*a6085186SLina Ceballos-->
57b8dedc6Smmehari
67b8dedc6Smmehari## IEEE 802.11n (Wi-Fi 4)
77b8dedc6Smmehari
87b8dedc6SmmehariThe 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.
97b8dedc6Smmehari
10e8b22efaSMichael Mehari### PHY layer improvements
11e8b22efaSMichael MehariAt the physical layer, 5 major improvements were amended on top of Wi-Fi 3 and this has increased the throughput from 54Mbps to 600Mbps.
127b8dedc6Smmehari
137b8dedc6Smmehari#### More subcarriers
147b8dedc6SmmehariWi-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.
157b8dedc6Smmehari
167b8dedc6Smmehari![](./subcarriers.png)
177b8dedc6Smmehari
187b8dedc6Smmehari#### Forward error correction
19e8b22efaSMichael MehariThe 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.
207b8dedc6Smmehari
217b8dedc6Smmehari#### Guard interval
22e8b22efaSMichael MehariAs 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.
237b8dedc6Smmehari
247b8dedc6Smmehari![](./guard-interval.png)
257b8dedc6Smmehari
267b8dedc6Smmehari#### MIMO
27e8b22efaSMichael MehariWi-Fi 4 was the first to introduce MIMO and standardized 4x4 spatial streams. This has quadrupled the throughput to 4*72.2Mbps = 288.9Mbps.
287b8dedc6Smmehari
297b8dedc6Smmehari![](./mimo.png)
307b8dedc6Smmehari
317b8dedc6Smmehari#### 40MHz bandwidth
32e8b22efaSMichael MehariThe 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.
337b8dedc6Smmehari
347b8dedc6Smmehari![](./40mhz.png)
357b8dedc6Smmehari
367b8dedc6Smmehari### MAC layer improvements
377b8dedc6Smmehari
38e8b22efaSMichael MehariOn 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.
397b8dedc6Smmehari
407b8dedc6Smmehari![](./mpdu-aggr.png)
417b8dedc6Smmehari
427b8dedc6Smmehari
43e8b22efaSMichael Mehari## Supported openwifi 802.11n amendments
447b8dedc6Smmehari
457b8dedc6Smmehari- 52 subcarriers
467b8dedc6Smmehari- 5/6 code rates
477b8dedc6Smmehari- 400nsec short guard interval.
487b8dedc6Smmehari
497b8dedc6SmmehariCurrent theoretical throughput = 72.2Mbps.
507b8dedc6Smmehari
51e8b22efaSMichael Mehari## To be supported openwifi 802.11n amendments
52e8b22efaSMichael Mehari- Frame aggregation
53e8b22efaSMichael Mehari
54e8b22efaSMichael Mehari## Not supported openwifi 802.11n amendments
557b8dedc6Smmehari
567b8dedc6Smmehari- MIMO
577b8dedc6Smmehari- 40MHz bandwidth
58