Computer Networking › Section G · Wireless and mobile networks › Topic G.2

Wireless LANs: 802.11

Wi-Fi, the IEEE 802.11 family, is how most laptops and phones reach the internet indoors. This topic follows a station as it finds an access point, takes turns on a shared radio channel and gets its frames safely to a router.

One family, many generations

Every Wi-Fi generation shares the same frame format and medium access rules, and newer access points still serve older devices; the physical layer is what changes. 802.11b (1999) and 802.11g (2003) used 2.4 GHz. 802.11n (2009), Wi-Fi 4, added 5 GHz and MIMO, several antennas sending parallel streams. 802.11ac, Wi-Fi 5 (2013), widened channels. 802.11ax, Wi-Fi 6, finalised by the IEEE in 2021, added OFDMA, splitting one transmission among several stations; Wi-Fi 6E is the same technology in the 6 GHz band. 802.11be, Wi-Fi 7, approved by the IEEE in September 2024, adds 320 MHz channels, 4096-QAM and multi-link operation. As of 2026, 802.11bn (Wi-Fi 8) is still a draft.

Access points, BSSs and SSIDs

The building block of 802.11 is the basic service set (BSS): an access point (AP) and the stations associated with it. Each station and AP radio has a 6-byte MAC address, as Ethernet adapters do. The AP is cabled to a switch or router; at home all three usually share one box. An administrator gives the AP a network name, its service set identifier (SSID), and a channel. A campus covers a wide area with many APs sharing one SSID. Stations can also form an ad hoc network with no AP, but everyday Wi-Fi is almost always infrastructure mode.

Finding and joining an access point

In the 2.4 GHz band, channels are 5 MHz apart but each signal is about 20 MHz wide, so in the United States channels 1, 6 and 11 are the usual non-overlapping trio. To find networks, a station listens on each channel for beacon frames, which APs send carrying their SSID and MAC address (passive scanning), or broadcasts a probe request and collects probe responses (active scanning). The device chooses an AP, typically the strongest. It sends an association request, receives an association response, authenticates, and uses DHCP to get an IP address on the AP's subnet. Authentication and encryption belong to "Securing wireless LANs and cellular networks".

No collision detection, so acknowledge everything

802.11 cannot abort a frame on hearing a collision, as Ethernet's CSMA/CD did. A transmitter's own signal swamps anything it receives, and hidden terminals and fading mean some collisions are never heard by the sender at all. So a station sends each frame in full and the receiver confirms success: when a frame passes its CRC check, the receiver waits a short interframe space (SIFS) and returns an ACK. With no ACK in time, the sender retransmits, giving up after a set number of retries.

CSMA/CA step by step

Because colliding frames are sent in full, 802.11 works to avoid collisions, with carrier sense multiple access with collision avoidance (CSMA/CA). 1. A station that finds the channel idle waits a distributed interframe space (DIFS) and, if still idle, transmits. 2. If the channel is busy, it picks a random backoff count of slots and, once the channel has been idle for a DIFS, counts down one per idle slot, freezing whenever the channel turns busy. 3. At zero it sends the whole frame and awaits an ACK. 4. With no ACK, it returns to step 2 with a doubled range for the count.

Worked example: two stations back off

Stations A and B wait while C transmits. At 5 GHz a slot is 9 µs, SIFS 16 µs and DIFS 34 µs. A draws 5 slots, B draws 3, and C's frame ends at t = 0. 1. Both wait a DIFS, to 34 µs, then count. 2. B reaches zero at 34 + 3 × 9 = 61 µs and transmits. 3. A has counted 3, hears B and freezes with 2 left. 4. B's 300 µs frame ends at 361 µs; after a SIFS the AP's 30 µs ACK runs from 377 to 407 µs. 5. A waits a DIFS, to 441 µs, counts 2 slots and transmits at 459 µs. Check: no collision, and A kept the slots it had counted.

RTS and CTS for hidden terminals

Carrier sense fails when stations are hidden from each other, so 802.11 offers an optional reservation. Before a long data frame, the sender transmits a short request to send (RTS) stating the time needed for the CTS, data and ACK. The AP replies with a clear to send (CTS), which every station in the AP's range hears, hidden ones included, and they stay silent for that duration. A collision can still hit an RTS, but it wastes microseconds, not a whole data frame. Stations use RTS/CTS only above an RTS threshold, often set so high that it is never used.

The 802.11 frame

The payload, usually an IP datagram, may be up to 2,312 bytes in the original standard, followed by a 32-bit CRC. A sequence number lets the receiver discard duplicates sent after a lost ACK, and a duration field carries the reservation time. The frame control field holds the type and subtype (data, ACK, RTS, beacon), To-AP and From-AP bits that say how to read the addresses, and a power-management bit. There are up to four address fields: address 1 is the wireless receiver, address 2 the wireless transmitter, and address 3 the router interface beyond the AP. Address 4 is used only when APs relay frames to each other wirelessly.

Worked example: addresses through an AP

Laptop H (MAC 02:00:00:00:00:0A) sends a datagram to its router R (02:00:00:00:00:0C) through access point P (02:00:00:00:00:0B). An AP works at the link layer and never reads IP addresses. 1. H's 802.11 frame has address 1 = P, the radio receiver; address 2 = H, the transmitter; address 3 = R, the real destination. 2. P converts it to an Ethernet frame from H to R, taking R from address 3. 3. R's reply reaches P as an Ethernet frame from R to H. 4. P sends an 802.11 frame with address 1 = H, address 2 = P and address 3 = R. Check: the router never needs to know an AP exists.

Roaming, rate adaptation and sleep

When several APs share one IP subnet, a laptop moving away from one AP finds another with the same SSID, re-associates, and keeps its IP address and TCP connections; the switch learns the new path from the laptop's next frame, and 802.11r speeds up re-authentication. Many devices adapt their rate, dropping to a more robust modulation after missed ACKs and trying a faster one after a run of successes. To save battery, a station sets the power-management bit and sleeps; the AP buffers its frames and lists waiting stations in its beacons, by default every 100 time units of 1.024 ms, or 102.4 ms.

Common mistakes to avoid

First, thinking 802.11 detects collisions as old Ethernet did; it avoids them and relies on ACKs. Second, assuming RTS/CTS is always used: it is optional and reserved for long frames. Third, restarting the backoff after a busy period instead of resuming the frozen count. Fourth, treating the AP as a router; it is a link-layer relay, which is why address 3 exists. Fifth, calling Wi-Fi 6E a new protocol rather than Wi-Fi 6 in the 6 GHz band.

Key takeaways

802.11 generations share frames and CSMA/CA while the physical layer improves: Wi-Fi 4 to 7 are 802.11n, ac, ax and be, across 2.4, 5 and 6 GHz. A BSS is an AP and its stations, named by an SSID. Stations scan for beacons or send probes, associate, then use DHCP. Senders wait a DIFS, back off with frozen counters, and need an ACK after a SIFS. RTS/CTS reserves the channel against hidden terminals. Frames carry receiver, transmitter and router-interface addresses. Same-subnet roaming keeps the IP address; stations adapt rates and sleep between beacons.

Flashcards

Flashcard

Wi-Fi 6E

802.11ax (Wi-Fi 6) extended into the 6 GHz band

Same protocol, new band.

Test your understanding

Question 1 of 5

Why does an 802.11 receiver send an ACK for every correctly received data frame?

Question 2 of 5

Station A has a backoff count of 6 slots. After counting down 4 idle slots it hears another station transmit. What does A do?

Question 3 of 5

In an RTS/CTS exchange, how does a station hidden from the sender learn to stay quiet?

Question 4 of 5

A laptop sends a datagram to its router through an access point. In the 802.11 frame the laptop transmits, what is address 3?

Question 5 of 5

What is the difference between Wi-Fi 6 and Wi-Fi 6E?

← Previous topicNext topic →