Upon completion of this extended tutorial, students will be able to:
IEEE 802.11, commonly known as Wi‑Fi, is the most widely deployed wireless LAN standard. This tutorial provides an in‑depth exploration of its architecture, frame structure, and medium access mechanisms. We begin with the basic components (BSS, ESS, AP) and then dissect the MAC layer: CSMA/CA, backoff, inter‑frame spacing, and RTS/CTS. We cover the frame types (management, control, data) and the procedures for association, authentication, and roaming. We also examine power‑saving mechanisms and the evolution from 802.11a/b/g to the latest 802.11be (Wi‑Fi 7). Advanced topics include MU‑MIMO, OFDMA, and spatial reuse. The tutorial concludes with a performance analysis using the Bianchi model and real‑world case studies. This extended version includes rigorous theoretical derivations, advanced technical content, and a wealth of assessment questions.
The 802.11 MAC frame has the following general format (in bytes):
| Frame Control (2) | Duration (2) | Address 1 (6) | Address 2 (6) | Address 3 (6) | Sequence Control (2) | Address 4 (6) | QoS (2) | HT (4) | Frame Body (0–2304) | FCS (4) |
|---|
Not all fields are present in all frames. The Frame Control field contains: protocol version, type (management, control, data), subtype, ToDS/FromDS bits, more fragments, retry, power management, more data, protected frame, and order.
The default access method is the Distributed Coordination Function (DCF), which uses CSMA/CA.
After sensing the channel idle for DIFS, the station chooses a random backoff counter from [0, CW] where CW starts at CW_min and doubles on each collision (up to CW_max). The counter decrements when the channel is idle; when it reaches zero, the station transmits. This provides collision avoidance.
RTS/CTS is an optional four‑frame handshake (RTS, CTS, Data, ACK). It reserves the medium for the duration of the data frame and its ACK. Stations that hear either RTS or CTS set their NAV for that duration, reducing collisions from hidden terminals. The overhead is acceptable for large data frames.
| Standard | Year | Frequency | Max PHY Rate | Key Features |
|---|---|---|---|---|
| 802.11 | 1997 | 2.4 GHz | 2 Mbps | FHSS, DSSS, infrared |
| 802.11b | 1999 | 2.4 GHz | 11 Mbps | DSSS, CCK |
| 802.11a | 1999 | 5 GHz | 54 Mbps | OFDM |
| 802.11g | 2003 | 2.4 GHz | 54 Mbps | OFDM (backward compatible with b) |
| 802.11n (Wi‑Fi 4) | 2009 | 2.4/5 GHz | 600 Mbps | MIMO, 40 MHz channels, frame aggregation |
| 802.11ac (Wi‑Fi 5) | 2013 | 5 GHz | 6.93 Gbps | MU‑MIMO, 80/160 MHz, 256‑QAM |
| 802.11ax (Wi‑Fi 6) | 2019 | 2.4/5/6 GHz | 9.6 Gbps | OFDMA, target wake time, BSS coloring, 1024‑QAM |
| 802.11be (Wi‑Fi 7) | 2024 | 2.4/5/6 GHz | 46 Gbps | 320 MHz, 4096‑QAM, multi‑link operation |
The Bianchi model provides a Markov chain analysis of the DCF backoff. The key results are the saturation throughput S as a fraction of the channel time. The probability τ that a station transmits in a random slot, and the probability p that a transmission collides, are determined by the backoff parameters CW_min, CW_max, and the number of stations n.
The model yields equations:
\[ \tau = \frac{2}{1 + CW_{min} + p \cdot CW_{min} \sum_{i=0}^{m-1} (2p)^i} \]
\[ p = 1 - (1 - \tau)^{n-1} \]
These can be solved numerically to find throughput.
The throughput S is:
\[ S = \frac{P_s P_{tr} E[P]}{(1-P_{tr})\sigma + P_{tr} P_s T_s + P_{tr}(1-P_s) T_c} \]
A university deploys 802.11ax with OFDMA and BSS coloring to serve 200 students per lecture hall. OFDMA reduces contention by allocating RUs to stations, and MU‑MIMO allows simultaneous transmissions to multiple devices, achieving aggregate throughput of >1 Gbps.
A smart home with 20 IoT devices uses 802.11ax TWT to schedule wake times, reducing battery consumption by 40% and improving airtime efficiency.
A corporate campus uses 802.11r and 802.11k for fast roaming, ensuring VoIP calls remain uninterrupted as users move between APs.
Test your understanding of 802.11 architecture and operation.
Q1. What does BSS stand for, and what are its two main types?
BSS = Basic Service Set. The two types are Infrastructure BSS (with AP) and Independent BSS (IBSS, ad‑hoc).
Q2. Explain the difference between physical and virtual carrier sensing in 802.11.
Physical carrier sensing uses CCA to detect energy on the channel. Virtual carrier sensing uses the NAV, a timer set by the Duration field in frames (or RTS/CTS) to indicate how long the medium will be busy.
Q3. What is the purpose of the RTS/CTS handshake?
RTS/CTS reserves the medium for a data transmission, mitigating the hidden terminal problem by notifying all stations within range of either the sender or receiver to set their NAV and defer.
Q4. List the three main frame types in 802.11 and give an example of each.
Management (Beacon, Association Request), Control (RTS, CTS, ACK), Data (Data frame, A‑MPDU).
Q5. What is the role of the Distribution System (DS) in an ESS?
The DS interconnects multiple APs in an ESS, allowing stations to roam between BSSs while maintaining network connectivity.
Q6. Explain the binary exponential backoff algorithm used in DCF.
After a collision, the station doubles its Contention Window (CW) up to CW_max and picks a random backoff count from [0, CW]. This reduces the probability of repeated collisions.
Q7. What is the difference between DIFS and SIFS?
SIFS is the shortest inter‑frame space, used for high‑priority frames (ACK, CTS). DIFS is longer and used for data frames before backoff. SIFS < PIFS < DIFS.
Q8. What is the maximum data rate of 802.11ac using 160 MHz and 256‑QAM?
802.11ac with 160 MHz, 256‑QAM (8 bits/sym), 5/6 coding, and short GI gives up to 6.93 Gbps (with 8 spatial streams).
Q9. How does OFDMA improve efficiency over the traditional CSMA/CA?
OFDMA divides the channel into resource units (RUs) that can be allocated to different stations simultaneously, reducing contention and overhead, and improving spectral efficiency in dense scenarios.
Q10. What is Target Wake Time (TWT) and what is its benefit?
TWT allows stations to schedule wake times with the AP, reducing power consumption by enabling longer sleep periods and also reducing contention by coordinating transmissions.
Q11. Explain the concept of BSS Coloring in 802.11ax.
BSS Coloring assigns a color to each BSS. Stations can detect the color in the PHY header; if the color matches its own BSS and the signal is weak, it may ignore the transmission and transmit simultaneously, improving spatial reuse.
Q12. What is the difference between association and authentication in 802.11?
Authentication verifies the identity of the station (e.g., via 802.1X or PSK). Association establishes a logical connection with the AP, allowing data exchange.
Q13. How does the NAV (Network Allocation Vector) work?
The NAV is a timer set by the Duration field in frames (or RTS/CTS). Stations update their NAV and defer transmission until the timer expires, thereby reserving the medium.
Q14. What are the main enhancements of 802.11be (Wi‑Fi 7) over 802.11ax?
Wi‑Fi 7 introduces 320 MHz channel bandwidth, 4096‑QAM, multi‑link operation (MLO), and enhanced MU‑MIMO for higher throughput (up to 46 Gbps).
Q15. Explain the PS‑Poll power‑saving mechanism.
A station in power‑save mode indicates its sleep state in its frame headers. The AP buffers its frames. The station wakes up at the next beacon and sends a PS‑Poll to retrieve buffered frames.
Q16. What is the maximum number of spatial streams supported in 802.11ac and 802.11ax?
802.11ac supports up to 8 spatial streams. 802.11ax also supports up to 8 streams, with improved MU‑MIMO.
Q17. How does frame aggregation (A‑MPDU) improve efficiency?
A‑MPDU aggregates multiple MAC SDUs into a single large frame, reducing the overhead of MAC headers, ACKs, and contention, thereby increasing throughput.
Q18. What is the purpose of the Duration field in 802.11 frames?
The Duration field indicates the time (in microseconds) that the medium will be busy after the current frame. It is used to set the NAV for virtual carrier sensing.
Q19. Compare the throughput performance of 802.11n vs 802.11ac.
802.11n (Wi‑Fi 4) uses up to 4 streams and 40 MHz, achieving 600 Mbps. 802.11ac (Wi‑Fi 5) uses up to 8 streams, 80/160 MHz, and higher modulation (256‑QAM), achieving up to 6.93 Gbps.
Q20. Explain the concept of "spatial reuse" in 802.11ax.
Spatial reuse allows overlapping BSSs to transmit concurrently if they can tolerate the interference, using BSS coloring and dynamic CCA thresholds to determine when it is safe to transmit.
Q21. What is the difference between a Probe Request and a Beacon frame?
Beacons are broadcast periodically by APs to announce the BSS parameters. Probe Requests are sent by stations to actively search for APs; APs respond with Probe Responses.
Q22. How does the 802.11 DCF ensure fair access among stations?
The random backoff and exponential increase of the contention window on collisions provide a probabilistic fair access, as stations that have recently transmitted are more likely to have larger backoff values, allowing others to gain access.
Q23. What is the role of the Sequence Control field in 802.11 frames?
The Sequence Control field contains the sequence number and fragment number, used for duplicate detection and reassembly of fragments.
Q24. What is the maximum frame size in 802.11 (without aggregation)?
Maximum MSDU size is 2304 bytes (with some implementations supporting up to 7935 bytes for A‑MSDU). The maximum MPDU size is 2304 bytes plus overhead.
Q25. Explain how 802.11r (Fast BSS Transition) reduces handoff latency.
802.11r uses pre‑authentication and caching of PMK (Pairwise Master Key) to reduce the time required for full authentication and association during roaming, achieving handoff times < 50 ms.
Apply your knowledge to these 802.11 performance and design problems.
Exercise 1: In an 802.11 BSS, there are 5 stations. CW_min = 15, CW_max = 1023. Calculate the probability of collision in a slot for a given transmission probability τ. Assume τ = 0.05. What is the collision probability?
Collision probability p = 1 - (1 - τ)^(n-1) = 1 - (0.95)^4 = 1 - 0.8145 = 0.1855 ≈ 18.6%.
Exercise 2: A station has a data frame of 1500 bytes to send. The PHY rate is 100 Mbps. The overhead (PLCP preamble, headers, ACK, SIFS, DIFS) totals 200 µs. What is the effective throughput (goodput) for a single station (no collisions)?
Transmission time = 1500×8 / 100e6 = 120 µs. Total access time = DIFS + backoff (average) + data + SIFS + ACK. Assuming backoff average = 5 slots × 20 µs = 100 µs. Total time = 200 (overhead) + 120 = 320 µs (plus backoff 100 µs → 420 µs). Effective throughput = 1500×8 / 420e-6 = 28.57 Mbps. Actual will be lower due to contention and collisions.
Exercise 3: In an 802.11n network with 2 spatial streams and 40 MHz channel, the data rate is 300 Mbps. If the MAC efficiency is 70%, what is the actual throughput? If there are 10 stations equally contending, estimate the throughput per station.
Actual throughput = 300 × 0.7 = 210 Mbps (aggregate). With 10 stations, ideal fair share = 21 Mbps per station, but collisions reduce this further.
Exercise 4: Explain how RTS/CTS improves throughput when hidden terminals are present. Calculate the overhead of RTS/CTS for a 1500‑byte frame at 54 Mbps. RTS/CTS frames are 20 bytes each. SIFS = 16 µs, DIFS = 34 µs, slot = 9 µs.
Without RTS/CTS, collisions waste channel time. With RTS/CTS, overhead: RTS (20×8/54e6 = 2.96 µs) + SIFS + CTS (2.96 µs) + SIFS + data + SIFS + ACK. For 1500 bytes data = 222 µs. Total with RTS/CTS = 2.96+16+2.96+16+222+16+ (ACK) 20×8/54e6=2.96 → ~278 µs. Without RTS/CTS, just data+ACK ~ 222+16+2.96=241 µs. But collisions may occur; RTS/CTS prevents long data collisions, so for large frames it is beneficial.
Exercise 5: A station uses a backoff counter of 7. The slot time is 9 µs. The channel is idle for 3 slots, then busy for 4 slots, then idle for 2 slots. How much time until the backoff reaches zero? Assume all slots are idle when sensed.
The backoff decrements only during idle slots. It decremented 3+2=5 slots, so remaining = 7-5 = 2 slots. It needs 2 more idle slots. Total idle slots = 7. The time = 7 × 9 = 63 µs of idle slots, but the busy periods also consume time. The station will count only idle slots; it will wait through the busy periods (4 slots time) without decrementing. So total time = (3+4+2) slots = 9 slots total (including busy) but backoff counts only idle: 5 idle decrements used, 2 remaining, so it will wait an additional 2 idle slots. Total time from start = (3+4+2+2) slots = 11 slots × 9 = 99 µs.
Exercise 6: In 802.11ac, a frame is transmitted using 80 MHz, 3 spatial streams, 256‑QAM, and short GI. What is the PHY data rate? (Use MCS 8 for 3 streams.)
MCS 8 (256‑QAM, 5/6 coding) with 80 MHz and 3 streams gives 234 data subcarriers × 3 streams × 8 bits/sym × 5/6 × (symbol rate) (typically 4 µs symbol + 0.4 GI → 3.6 µs for short GI? Actually, calculation: 802.11ac MCS 8 at 80 MHz, 3 streams: data rate = 234 × 3 × 8 × 5/6 / (symbol time 3.6 µs) ≈ 1300 Mbps. Check: standard says 1300 Mbps for 3 streams, 80 MHz, MCS 8.
Exercise 7: A BSS uses 802.11ax with OFDMA. The channel is 20 MHz, divided into 8 Resource Units (RUs) of 26 subcarriers each. If 8 stations each transmit a small packet, what is the improvement in airtime efficiency compared to CSMA/CA where they would contend?
With CSMA/CA, 8 stations would contend, causing overhead (backoff, collisions) and possibly sequential transmissions. With OFDMA, they can transmit simultaneously on different RUs, reducing total airtime to the duration of one packet plus preamble. The improvement factor is roughly the number of RUs (8) assuming perfect scheduling, but with overhead for multi‑user transmission.
Exercise 8: Explain the difference between Downlink MU‑MIMO and Uplink MU‑MIMO. Which one is more challenging and why?
Downlink MU‑MIMO: AP transmits to multiple stations simultaneously using different spatial streams. Uplink MU‑MIMO: multiple stations transmit to the AP simultaneously. Uplink is more challenging because stations are distributed and need precise synchronisation and power control; also channel estimation is more difficult due to multiple transmitters.
Exercise 9: A mobile device is roaming between two APs in an ESS. Describe the scanning and reassociation process. What parameters influence the handoff latency?
Scanning: active (Probe Request) or passive (Beacon listening). Then Authentication (or re‑authentication) and Reassociation. Latency depends on scan duration, authentication time (RTT to RADIUS server), association time, and security key exchange (4‑way handshake). With 802.11r, the key exchange is optimised.
Exercise 10: In a dense Wi‑Fi environment, what is the benefit of BSS coloring? Provide a scenario.
BSS coloring allows stations in overlapping BSSs to differentiate transmissions. If a station detects a frame with a different color and the signal level is below a threshold, it may ignore the virtual carrier sensing and transmit simultaneously, increasing spatial reuse. Scenario: Two adjacent offices with separate APs; BSS color enables concurrent transmissions without contention.
Exercise 11: Calculate the effective throughput for 802.11ax with 1024‑QAM, 80 MHz, 2 streams, code rate 3/4. Use a MAC efficiency of 75%.
PHY data rate for 2 streams, 80 MHz, MCS 11 (1024‑QAM, 3/4) is ~2400 Mbps (approx.). With 75% efficiency, throughput ≈ 1800 Mbps. Actual depends on overhead, contention, etc.
Exercise 12: A station wants to send a VoIP packet of 200 bytes every 20 ms. The Wi‑Fi network uses DCF with no aggregation. Estimate the maximum number of VoIP calls that can be supported with good quality (assuming 50% airtime utilisation). The PHY rate is 54 Mbps, MAC overhead is 100 µs per frame.
Transmission time = 200×8 / 54e6 = 29.6 µs. Total airtime per frame = 29.6 + 100 = 129.6 µs. Each call sends 50 packets/sec (20 ms). Airtime per call = 50 × 129.6 µs = 6.48 ms/s. With 50% capacity (500 ms/s), maximum calls = 500/6.48 ≈ 77 calls. This is optimistic; actual may be lower due to collisions and backoff.
Independent study and in‑depth analysis.
HW1. Derive the Bianchi model for 802.11 DCF throughput. Explain the assumptions and the final throughput expression.
Assumptions: saturation conditions, ideal channel, n stations, no hidden terminals. The model uses a Markov chain for the backoff stage. The probability τ that a station transmits in a slot is solved from equations involving p (collision probability). The throughput is S = (P_s P_tr L) / ((1-P_tr)σ + P_tr P_s T_s + P_tr(1-P_s) T_c). This is widely used to analyse performance.
HW2. Compare the CSMA/CA with RTS/CTS and without RTS/CTS in terms of throughput for different packet sizes. Derive the crossover point where RTS/CTS becomes beneficial.
For small packets, the overhead of RTS/CTS is significant, and the benefit is low. For large packets, the risk of long collisions due to hidden terminals is high, so RTS/CTS improves throughput. The crossover occurs when the time saved by avoiding data collisions exceeds the RTS/CTS overhead. Typically, for packets > 500 bytes, RTS/CTS is recommended.
HW3. Research the IEEE 802.11e (EDCA) and compare its QoS capabilities with DCF. How does the AIFS and TXOP improve prioritisation?
EDCA introduces 4 access categories (ACs) with different AIFS and CW parameters. Higher priority traffic has shorter AIFS and smaller CW, giving it more frequent access. TXOP (Transmission Opportunity) allows a station to send multiple frames in a burst, reducing overhead.
HW4. Analyse the impact of the number of stations on the saturation throughput of 802.11 DCF using the Bianchi model. Describe the behaviour at low and high load.
At low n, throughput increases with n as more stations contribute to channel utilisation. At high n, collisions increase, reducing throughput. The maximum throughput is achieved at an intermediate n where the channel is optimally utilised.
HW5. Explain the concept of "frame aggregation" (A‑MPDU and A‑MSDU) and how it improves throughput in 802.11n/ac/ax. What are the trade‑offs?
A‑MPDU aggregates multiple MPDUs into a single PHY frame, reducing MAC overhead. A‑MSDU aggregates multiple MSDUs into one MPDU. Trade‑offs: increased latency (last packet must wait), increased error rate (larger frame more susceptible), and need for Block ACK.
HW6. Describe the 802.11 power‑saving mechanisms in detail. Compare PS‑Poll, U‑APSD, and TWT. Which is most suitable for IoT devices?
PS‑Poll: station wakes at beacon, sends PS‑Poll to retrieve buffered data. U‑APSD: station triggers delivery when it has data to send. TWT: negotiated scheduled wake times. TWT is most energy‑efficient for IoT as it allows long sleep intervals and predictable scheduling.
HW7. Compare the performance of 802.11ac and 802.11ax in a dense stadium environment. How do MU‑MIMO and OFDMA help?
In dense environments, 802.11ax improves performance through OFDMA (allocating RUs to multiple users) and MU‑MIMO (serving multiple users simultaneously). It also uses BSS coloring to reduce interference. 802.11ac is limited to SU‑MIMO and does not have OFDMA, so it suffers from contention overhead.
HW8. Derive the maximum number of stations that can be supported in an 802.11 BSS with a given throughput requirement. Use the Bianchi model and specify assumptions.
Given target throughput per station S, the total throughput is n × S. Using the Bianchi model, we can solve for the maximum n that yields total throughput (aggregate) and ensure each station gets S. The solution involves solving the fixed‑point equations for τ and p.
HW9. Explain the operation of the 802.11 Block ACK mechanism. How does it improve efficiency for aggregated frames?
Block ACK allows a station to acknowledge multiple frames in a single ACK frame. The sender sends a Block ACK Request (BAR) after a burst of frames, and the receiver replies with a Block ACK bitmap. This reduces the number of ACK frames and overhead, improving efficiency for large transfers.
HW10. Research the concept of "multi‑link operation" (MLO) in 802.11be. How does it enhance throughput and latency?
MLO allows a device to operate on multiple frequency bands (2.4, 5, 6 GHz) simultaneously, aggregating bandwidth and providing load balancing. It can also improve latency by using the best link for each packet and enabling fast fallback.
HW11. Write a critical evaluation of the claim that "802.11ax will solve the Wi‑Fi congestion problem." Discuss the limitations and the role of other technologies (e.g., 5G NR‑U).
802.11ax significantly improves efficiency in dense environments, but it cannot completely eliminate congestion due to finite spectrum and coexistence with legacy devices. Network densification, spectrum allocation (6 GHz), and technologies like 5G NR‑U (shared spectrum) are needed to scale capacity.
HW12. Analyse the security implications of the 802.11 management frames. Why are they vulnerable to spoofing, and how does 802.11w (Management Frame Protection) address this?
Management frames (Deauthentication, Disassociation) are unencrypted in legacy 802.11, making them vulnerable to spoofing (DoS attacks). 802.11w adds protection to these frames using robust management frame protection, including encryption and integrity checks.
This extended tutorial covered the architecture and operation of IEEE 802.11 WLANs, including:
Understanding these fundamentals is essential for designing, deploying, and troubleshooting Wi‑Fi networks. The next tutorial will address Wireless LAN Security and Deployment.
© COMP347 – Unit 7: Wireless and Mobile Networks (Extended Tutorial 4)