Wi-Fi: 802.11 Frames, Media Access, Channels, Wi-Fi 6 and 7, and WPA3
How Wi-Fi carries IP: 802.11 frames and their four addresses, power saving, sharing the air with backoff and RTS/CTS, QoS, channels and bands, how rates are computed up to Wi-Fi 7, and security from WEP to WPA3.
kvi5hnuCode Sprout team member25 min readOn this page
Wi-Fi is the IEEE 802.11 family of standards for wireless LANs. To IP, a Wi-Fi interface looks like Ethernet: it has a 48-bit MAC address, it carries IPv4 and IPv6 packets, and ARP and Neighbor Discovery work the same way. Under that surface, almost everything differs. The medium is shared radio, frames are often lost, a station can't hear its own collisions, and anyone in range can listen. This article covers what's specific to 802.11 and what has changed up to Wi-Fi 7.
Stations, access points and the distribution system
The usual setup is an infrastructure network. Client devices, called stations (STAs), associate with an access point (AP). An AP and its stations form a basic service set (BSS), identified by a BSSID, which is normally the AP radio's MAC address. Several APs with the same network name (SSID, service set identifier) and a common wired network form an extended service set (ESS). The network behind the APs, usually Ethernet, is the distribution system (DS). Stations can roam from one AP to another within the ESS.
Two other modes exist: ad hoc (an independent BSS of stations without an AP, now rare) and mesh (802.11s, covered at the end).
The current base standard is 802.11-2024, which rolls in the earlier amendments. The Wi-Fi Alliance's generation names map to amendments:
| Name | Amendment | Year | Bands |
|---|---|---|---|
| (Wi-Fi 1) | 802.11b | 1999 | 2.4 GHz |
| (Wi-Fi 2, 3) | 802.11a, 802.11g | 1999, 2003 | 5 GHz, 2.4 GHz |
| Wi-Fi 4 | 802.11n (High Throughput) | 2009 | 2.4, 5 GHz |
| Wi-Fi 5 | 802.11ac (Very High Throughput) | 2013 | 5 GHz |
| Wi-Fi 6 / 6E | 802.11ax (High Efficiency) | 2021 | 2.4, 5, 6 GHz (6E) |
| Wi-Fi 7 | 802.11be (Extremely High Throughput) | 2024 | 2.4, 5, 6 GHz |
| Wi-Fi 8 | 802.11bn (Ultra High Reliability) | draft, expected about 2028 | 2.4, 5, 6 GHz |
802.11 frames
Every 802.11 frame starts with a Frame Control field that gives its type and subtype and a set of flags. There are three types:
- Management frames set up and maintain the association: beacons, probe requests and responses, authentication, association, reassociation, disassociation and deauthentication.
- Control frames coordinate access to the medium: RTS and CTS (request to send and clear to send, explained below), acknowledgments (ACK) and block ACKs.
- Data frames carry the payload, such as IP packets.

The lab container has no radio, and the Linux Wi-Fi simulator module isn't available in it:
modprobe: FATAL: Module mac80211_hwsim not found in directory /lib/modules/6.12.76-linuxkit
(no Wi-Fi radio or simulator in the lab container: the frames below are built with scapy)
So the lab built typical frames with scapy (a Python library for building packets), wrote them to a capture file and decoded them with tshark, exactly as a capture from a real monitor-mode interface (a card set to capture raw 802.11 frames, see Common questions) would be decoded. The capture holds a beacon, an RTS/CTS exchange, a data frame and its ACK, a reply, and a frame between two APs:
# frame DS bits bytes
1 Beacon - 98
2 RTS - 16
3 CTS - 10
4 QoS Data To DS 62
5 ACK - 10
6 QoS Data From DS 62
7 QoS Data To DS + From DS 68
The lengths don't include the 4-byte FCS (frame check sequence, the CRC from article 14), which this capture format leaves out.
Management frames: beacons and scanning
An AP sends a beacon about every 102.4 ms (100 time units of 1024 µs) to announce its network. Here is the lab's beacon, trimmed to the main fields:
IEEE 802.11 Beacon frame, Flags: ........
Type/Subtype: Beacon frame (0x0008)
Destination address: Broadcast
Source address: 02:00:00:00:a0:01
BSS Id: 02:00:00:00:a0:01
0000 0000 0001 .... = Sequence number: 1
IEEE 802.11 Wireless Management
Timestamp: 123456789
Beacon Interval: 0.102400 [Seconds]
.... .... .... ...1 = ESS capabilities: Transmitter is an AP
.... .... ...1 .... = Privacy: Data confidentiality required
Tag: SSID parameter set: "lab-net"
Tag: Supported Rates 1(B), 2(B), 5.5(B), 11(B), 6, 9, 12, 18, [Mbit/sec]
Tag: Extended Supported Rates 24, 36, 48, 54, [Mbit/sec]
Tag: DS Parameter set: Current Channel: 6
Current Channel: 6
Tag: RSN Information
Group Cipher Suite type: AES (CCM) (4)
Pairwise Cipher Suite type: AES (CCM) (4)
Auth Key Management (AKM) type: SAE (SHA256) (8)
.... .... .1.. .... = Management Frame Protection Required: True
A beacon carries:
- A timestamp: the AP's 64-bit microsecond clock, which stations use to keep their own clocks in step (the time synchronization function, TSF), so they all know when the next beacon is due.
- The beacon interval and capability bits: this is an AP (ESS), and the network requires encryption (Privacy).
- A list of information elements (tagged fields): the SSID, the supported rates (the element holds at most eight, so the rest go in an extended element;
(B)marks the basic rates every station must support), the channel, and an RSN (robust security network) element describing the security: here AES-CCMP for encryption, SAE for authentication (that is, WPA3-Personal) and management frame protection required. The security section below explains these names.
Stations find networks by passive scanning (listening for beacons on each channel) or active scanning (sending a probe request, to which APs reply with a probe response that carries much the same information). Then the station authenticates and associates. Newer amendments add many more elements to beacons, describing each newer generation's capabilities, neighbor APs and more. Real beacons are often 300 bytes or larger.
Hidden networks don't put their SSID in beacons, but stations that know them send it in every probe request, so hiding an SSID doesn't hide the network.
Data frames and the four addresses
A wireless frame often passes through an AP that is neither its source nor its destination. Two bits in Frame Control, To DS and From DS, say which way the frame is going, and they decide what each address field means:
| To DS | From DS | Meaning | Address 1 | Address 2 | Address 3 | Address 4 |
|---|---|---|---|---|---|---|
| 0 | 0 | Management, ad hoc | Destination | Source | BSSID | - |
| 1 | 0 | Station to AP | BSSID (AP) | Source (station) | Destination | - |
| 0 | 1 | AP to station | Destination (station) | BSSID (AP) | Source | - |
| 1 | 1 | AP to AP (WDS, wireless distribution system) or mesh | Receiver | Transmitter | Destination | Source |
Address 1 is always the receiver over the air, and Address 2 is always the transmitter, which is the address that gets the ACK. The lab's station 02:00:00:00:5a:01 sent an IP packet toward its router 02:00:00:00:0d:01 through the AP 02:00:00:00:a0:01:
Type/Subtype: QoS Data (0x0028)
.... ..01 = DS status: Frame from STA to DS via an AP (To DS: 1 From DS: 0) (0x1)
.000 0000 0010 1100 = Duration: 44 microseconds
Receiver address: 02:00:00:00:a0:01
Transmitter address: 02:00:00:00:5a:01
Destination address: 02:00:00:00:0d:01
Source address: 02:00:00:00:5a:01
BSS Id: 02:00:00:00:a0:01
0000 1010 0010 .... = Sequence number: 162
.... .... .... 0000 = TID: 0
The reply comes back with From DS set, and the addresses rearranged:
.... ..10 = DS status: Frame from DS to a STA via AP(To DS: 0 From DS: 1) (0x2)
Receiver address: 02:00:00:00:5a:01
Transmitter address: 02:00:00:00:a0:01
Destination address: 02:00:00:00:5a:01
Source address: 02:00:00:00:0d:01
BSS Id: 02:00:00:00:a0:01
When both bits are set, the frame travels between two wireless devices of the infrastructure, for example a wireless bridge or mesh link, and needs all four addresses:
.... ..11 = DS status: WDS (AP to AP) or Mesh (MP to MP) Frame (To DS: 1 From DS: 1) (0x3)
Receiver address: 02:00:00:00:a0:02
Transmitter address: 02:00:00:00:a0:01
Destination address: 02:00:00:00:0d:01
Source address: 02:00:00:00:5a:01
The AP converts between 802.11 and Ethernet frames. On the wired side, the router sees an ordinary Ethernet frame from the station's MAC address, as if the station were plugged in. The data frame's body starts with an LLC/SNAP header (aa aa 03 00 00 00 followed by the EtherType, 08 00 for IPv4) rather than a plain EtherType, as the raw bytes show. Reading from the start: 88 01 is Frame Control (88 means QoS data, and 01 sets To DS), 2c 00 is the duration, 0x002c = 44 µs, stored low byte first, and then come the three 6-byte addresses:
0000 88 01 2c 00 02 00 00 00 a0 01 02 00 00 00 5a 01 ..,...........Z.
0010 02 00 00 00 0d 01 20 0a 00 00 aa aa 03 00 00 00 ...... .........
0020 08 00 45 00 00 1c 00 01 00 00 40 01 8e 73 c0 00 ..E.......@..s..
The Sequence Control field holds a 12-bit sequence number and a 4-bit fragment number. The receiver uses them to discard duplicates, which happen whenever an ACK is lost and the sender retransmits. A Retry flag in Frame Control marks retransmissions. QoS data frames add a QoS Control field, whose TID (traffic identifier) gives the traffic's priority.
Control frames: ACKs, RTS and CTS
A sender can't detect a collision while it transmits, because its own signal drowns out everything else. So 802.11 makes the receiver confirm each unicast frame: an ACK is sent a short, fixed time (SIFS, the short interframe space) after a frame arrives intact. If no ACK comes, the sender assumes the frame was lost and retransmits. Broadcast and multicast frames are never acknowledged, which is one reason they're less reliable on Wi-Fi.
RTS/CTS deals with the hidden terminal problem. Stations A and C can both hear the AP but not each other, so carrier sense can't stop them from transmitting at the same time and colliding at the AP. Before a large frame, A sends a short request to send (RTS). The AP answers with clear to send (CTS), which C hears even though it can't hear A. Both frames carry a duration: how long, in microseconds, the medium will be busy for the rest of the exchange. Every station that hears either frame stays silent for that time. In the capture, the CTS and ACK lines have no source address: those frames carry only a receiver address, to keep them short:
2 0.003107 02:00:00:00:5a:01 → 02:00:00:00:a0:01 802.11 16 Request-to-send, Flags=........
3 0.003139 → 02:00:00:00:5a:01 802.11 10 Clear-to-send, Flags=........
5 0.003164 → 02:00:00:00:5a:01 802.11 10 Acknowledgement, Flags=........
frame 2: duration (NAV) 300 µs, 16 bytes
frame 3: duration (NAV) 256 µs, 10 bytes
frame 5: duration (NAV) 0 µs, 10 bytes
The RTS reserved 300 µs, enough for the CTS, the data frame, the ACK and the short gaps between them. The CTS repeats the remaining time (256 µs). The data frame carries 44 µs (enough for its ACK), and the ACK carries 0 because the exchange is over. RTS/CTS costs time, so it's normally used only for frames above a size threshold (iw phy phy0 set rts 2347 turns it effectively off). It's also used as a protection mechanism, so that older stations which can't decode newer modulations still know to keep quiet.
Fragmentation and aggregation
802.11 can fragment a frame into pieces, each acknowledged separately, so a noisy link loses a small fragment instead of the whole frame. It's rarely enabled today because aggregation works better.
Since 802.11n, the fixed costs of each transmission (backoff, preamble, ACK) are shared by sending many packets at once:
- An A-MSDU (aggregated MAC service data unit) packs several packets into one 802.11 frame with one header and one FCS. It's compact, but one bit error spoils the whole aggregate.
- An A-MPDU (aggregated MAC protocol data unit) sends many complete 802.11 frames back to back in one transmission, each with its own header and FCS. The receiver answers with one block ACK, a bitmap of which subframes arrived, and the sender resends only the damaged ones.
The two can be combined, and aggregate sizes grew with each generation: 802.11n allowed A-MPDUs of 64 KB with a 64-frame block ACK window, Wi-Fi 6 raised the window to 256 frames and Wi-Fi 7 to 1024. Without aggregation, the multi-gigabit rates below would be impossible, since a 1500-byte packet takes only a few microseconds at those rates, less than the fixed overhead.
Power saving
A battery-powered station saves power by turning its radio off. It sets the Power Management bit in a frame to tell the AP it's going to sleep, and the AP then buffers frames for it. Each beacon includes a traffic indication map (TIM), a bitmap of stations with buffered frames. A sleeping station wakes up for beacons (or every few beacons) and, if its bit is set, asks the AP for its frames. The cost is delay: traffic to a sleeping station waits up to a beacon interval or more, which shows up as erratic ping times to phones.
Newer mechanisms improve on this. U-APSD (unscheduled automatic power save delivery, part of 802.11e) lets a station collect its buffered frames whenever it sends, which suits voice calls. Target wake time (TWT), from Wi-Fi 6, lets a station and the AP agree on exactly when the station will wake, so IoT (Internet of Things) devices such as sensors can sleep for long periods.
Sharing the medium
Only one station in range can transmit successfully on a channel at a time, so 802.11 needs a way to take turns without a central controller. The basic method is the distributed coordination function (DCF), a form of carrier sense multiple access with collision avoidance (CSMA/CA).
Carrier sense, physical and virtual
A station checks two things before sending:
- Physical carrier sense, or clear channel assessment (CCA): is the radio detecting an 802.11 signal or enough energy on the channel?
- Virtual carrier sense: the network allocation vector (NAV), a countdown timer each station sets from the Duration field of every frame it hears. While the NAV is nonzero, the station treats the medium as busy, even if it hears nothing, which is how the RTS/CTS reservation works.
Backoff
If the medium has been idle for a fixed interval (DIFS, the DCF interframe space), a station may send. If it was busy, the station waits until it becomes idle, then waits DIFS, then counts down a random number of slots chosen from 0 to the contention window (CW). The countdown pauses whenever the medium becomes busy again. Whoever reaches zero first transmits, and the others freeze their counters and continue later, so stations that have waited longest get priority. If a frame isn't acknowledged, the sender doubles CW (from 15 up to 1023 for OFDM radios, the modern modulation explained under rates below) before retrying, which spreads out stations that keep colliding. After a success, CW goes back to the minimum.
On 5 and 6 GHz OFDM radios, a slot is 9 µs and SIFS 16 µs, so DIFS is 34 µs. These fixed times are a large share of the airtime for small frames, which is why aggregation matters so much.
QoS: EDCA access categories
The enhanced distributed channel access (EDCA) method from 802.11e (part of the hybrid coordination function, HCF) gives traffic classes different chances. Frames are sorted into four access categories by their 802.1D priority (the same 3-bit values as the VLAN tag's PCP, article 15, usually derived from the IP DSCP, article 25):
| Access category | Priorities | Typical use | Wait before backoff | Contention window |
|---|---|---|---|---|
| Voice (AC_VO) | 6, 7 | Calls | Shortest | Smallest |
| Video (AC_VI) | 4, 5 | Video streams | Short | Small |
| Best effort (AC_BE) | 0, 3 | Most traffic | Normal | Normal |
| Background (AC_BK) | 1, 2 | Bulk downloads, backups | Longest | Largest |
Each category waits a different number of slots (its AIFS, arbitration interframe space) and draws from a different contention window, so voice usually wins. A station that wins gets a transmission opportunity (TXOP) and may send several frames in a row. Wi-Fi Multimedia (WMM) is the Wi-Fi Alliance name for this, and every modern device supports it.
Wi-Fi 6 and 7: scheduling instead of contention
Contention works poorly with dozens of busy stations. Wi-Fi 6 added tools for the AP to schedule transmissions:
- OFDMA divides a channel into resource units so the AP can send to, or receive from, several stations in one transmission.
- Multi-user MIMO (MU-MIMO; MIMO, multiple-input multiple-output, uses several antennas to send several streams at once, as explained below), downlink since Wi-Fi 5 and uplink since Wi-Fi 6, sends separate streams to several stations at once using multiple antennas.
- BSS coloring tags frames with a 6-bit color per BSS, so a station can ignore weaker frames from a neighboring network with a different color instead of always deferring to them.
Wi-Fi 7 added multi-link operation (MLO): a device can use links on several bands at once (say 5 and 6 GHz) as one connection, for more throughput or for lower latency by sending on whichever link is free. It also made preamble puncturing (skipping a busy 20 MHz piece of a wide channel, only optional in Wi-Fi 6) a mandatory feature, and added the ability to give one station several resource units.
The physical layer: channels and rates
Bands and channels
Wi-Fi uses unlicensed spectrum in three bands:

- 2.4 GHz: channels are numbered 1 to 13 (14 in Japan for old 802.11b) with centers 5 MHz apart (channel 1 is 2412 MHz), but each signal is about 20 MHz wide. Only three channels, usually 1, 6 and 11, don't overlap. Range is best, but the band is crowded, and Bluetooth and microwave ovens share it.
- 5 GHz: many more 20 MHz channels (36, 40, 44 and so on), which can be bonded into 40, 80 or 160 MHz channels. Some channels require dynamic frequency selection (DFS): the AP must listen for radar and move away if it detects any.
- 6 GHz: opened for Wi-Fi from 2020 onward, with up to 1200 MHz in the United States and less in many other regions (500 MHz in the European Union, for example). Only Wi-Fi 6E and later devices can use it, so there are no slow legacy stations, and wide 160 and 320 MHz channels fit.
Which channels and transmit powers are allowed depends on the country. On Linux, iw reg get shows the regulatory domain in effect, and iw list lists the channels the card can use.
How rates are computed
Since 802.11a/g, Wi-Fi has used OFDM: the channel is split into many narrow subcarriers, each carrying a few bits per symbol. The rate for one spatial stream is:
data subcarriers × bits per subcarrier × code rate ÷ symbol duration
Wider channels give more subcarriers. Denser modulation (QAM, quadrature amplitude modulation: 64-QAM carries 6 bits, 256-QAM 8, 1024-QAM 10, 4096-QAM 12) packs more bits into each, but needs a cleaner signal, so it works only close to the AP. The code rate is the share of bits that are data rather than error correction. MIMO sends several spatial streams over multiple antennas at once. Each combination of modulation and code rate is an MCS (modulation and coding scheme) index. The lab computed the peak rates of each generation:
standard name width best modulation 1 stream max streams all streams
802.11a/g Wi-Fi 2/3 20 MHz 64-QAM 3/4 54 Mb/s 1 54 Mb/s
802.11n Wi-Fi 4 40 MHz 64-QAM 5/6 150 Mb/s 4 600 Mb/s
802.11ac Wi-Fi 5 160 MHz 256-QAM 5/6 867 Mb/s 8 6.9 Gb/s
802.11ax Wi-Fi 6/6E 160 MHz 1024-QAM 5/6 1,201 Mb/s 8 9.6 Gb/s
802.11be Wi-Fi 7 320 MHz 4096-QAM 5/6 2,882 Mb/s 16 46.1 Gb/s

For example, Wi-Fi 6 at 80 MHz has 980 data subcarriers. With 1024-QAM at code rate 5/6 and a 13.6 µs symbol (12.8 µs plus a 0.8 µs guard interval), one stream gives 980 × 10 × 5/6 ÷ 13.6 µs ≈ 600 Mb/s. Wi-Fi 6 also made each symbol four times longer than Wi-Fi 5 with four times as many subcarriers, which handles echoes better outdoors.
These are PHY rates (PHY is short for physical layer): the speed while a frame is being transmitted. Contention, preambles, ACKs and retransmissions take a large share of airtime, so TCP throughput is often half the PHY rate or less, and it's shared among everyone on the channel. Phones usually have two spatial streams, and the maximums of 8 or 16 streams exist only in the standards. Wi-Fi 8 doesn't raise the peak rate. It aims at reliability: steadier throughput and latency at range and in busy networks, and coordination between neighboring APs.
Wi-Fi security
Radio can't be confined to a building, so encryption and authentication are essential.
- WEP (Wired Equivalent Privacy, 1999) used the RC4 cipher with a static key and a short initialization vector. It was broken badly by 2001: its keys can be recovered from captured traffic in minutes. Never use it.
- WPA (Wi-Fi Protected Access, 2003) was an interim fix that ran TKIP (the Temporal Key Integrity Protocol) on WEP-era hardware. TKIP is deprecated too, and Wi-Fi 4 and later don't allow it for high rates.
- WPA2 (2004, 802.11i) introduced the Robust Security Network (RSN) with CCMP (Counter Mode CBC-MAC Protocol), based on the AES (Advanced Encryption Standard) cipher. After authentication, a 4-way handshake between station and AP proves both know the pairwise master key and derives fresh per-session keys. With a pre-shared key (WPA2-Personal), anyone who captures one handshake can try passwords offline, so weak passwords are crackable. The 2017 KRACK (key reinstallation) attacks also showed how flawed implementations could be tricked into reusing keys.
- WPA3 (2018) fixes the main weaknesses:
- SAE (simultaneous authentication of equals, a password-authenticated key exchange) replaces the PSK handshake in WPA3-Personal, so captured traffic can't be used to guess the password offline, and old traffic stays safe even if the password leaks later.
- Protected management frames (802.11w) are mandatory, which stops forged deauthentication frames from kicking stations off.
- WPA3-Enterprise has an optional 192-bit mode using GCMP-256 (AES in Galois/Counter Mode).
- Enhanced Open (OWE, opportunistic wireless encryption) encrypts open networks such as cafés without a password, though it doesn't authenticate the AP.
The 6 GHz band and Wi-Fi 7 certification require WPA3 (or OWE for open networks). Enterprise networks authenticate each user with 802.1X and EAP (the Extensible Authentication Protocol) against a RADIUS server, a central login server, instead of a shared password (article 81).
Two more features matter in practice. Fast roaming (802.11r), with neighbor reports (802.11k) and transition management (802.11v), lets a station move between APs without repeating the full authentication. MAC address randomization: phones and laptops now use a random, locally administered MAC address per network (and sometimes change it over time) so they can't be tracked from network to network. This breaks old practices like MAC address allow-lists and fixed DHCP reservations by MAC address (where the address server always gives one device the same IP address).
Mesh networking (802.11s)
802.11s lets APs connect to each other wirelessly and forward frames over several hops, forming a mesh. Mesh stations discover peers, authenticate with SAE, and choose paths with a routing protocol at the MAC layer, the Hybrid Wireless Mesh Protocol (HWMP), which picks paths based on an airtime metric rather than hop count. Mesh data frames set both To DS and From DS and add a Mesh Control field with a time-to-live and, when needed, extra addresses, up to six in all.
Linux supports 802.11s (iw dev wlan0 set type mp), and it's used in community networks. Most consumer "mesh Wi-Fi" systems use vendor protocols or the Wi-Fi Alliance's EasyMesh to manage their APs, with ordinary four-address frames for the backhaul, rather than full 802.11s.
Common questions
Is Wi-Fi Ethernet?
No, but it's designed to look like it to the layers above. Both use 48-bit MAC addresses from the same space, and an AP bridges between them. The framing, medium access, acknowledgments and security are all different.
Why is my Wi-Fi much slower than the link rate my laptop shows?
The link rate is the PHY rate during a frame. Contention, preambles, ACKs, retransmissions and other stations' traffic all take airtime. Expect TCP throughput of about half the link rate in good conditions, and much less with weak signals or a busy channel.
Should I use 2.4, 5 or 6 GHz?
Use 5 or 6 GHz when the signal is good: there are more channels, less interference and wider channels. 2.4 GHz goes further through walls but is crowded and limited to three 20 MHz channels. With Wi-Fi 7 multi-link operation, a device can use several bands at once.
Does hiding the SSID or filtering MAC addresses make a network secure?
No. Hidden SSIDs appear in clients' probe requests and association frames, and MAC addresses are sent unencrypted in every frame header, so an attacker can copy an allowed one. Use WPA3 (or WPA2 with a long random password) instead.
Why do some devices fail to connect after an upgrade to WPA3?
Old devices may support only WPA2. Many APs offer a transition mode that accepts both WPA2-PSK and WPA3-SAE on one SSID. It keeps old devices working but gives up some of WPA3's protection, since an attacker can still target the WPA2 side.
Why is ping to my phone sometimes 100 ms or more on an idle LAN?
Power saving. The phone's radio sleeps between beacons, and the AP holds frames for it until it wakes and checks the beacon's traffic map. As soon as the phone is busy, the delay disappears.
What is the MTU of a Wi-Fi link?
1500 bytes, the same as Ethernet. 802.11 itself allows a frame body of up to 2304 bytes, and aggregates are much larger, but an AP bridges frames to and from Ethernet, so stations and APs use Ethernet's 1500-byte MTU to keep the two sides compatible.
Why does a capture on my laptop's Wi-Fi interface show Ethernet headers, not 802.11 ones?
In normal (managed) mode, the driver converts received 802.11 frames to Ethernet framing before the kernel sees them, and converts outgoing frames the other way, so Wireshark or tcpdump shows ordinary Ethernet II frames. You see 802.11 headers, beacons, ACKs and RTS/CTS only with an interface in monitor mode (for example iw dev wlan0 set type monitor on Linux, or Wireless Diagnostics' sniffer on macOS), which not every card and driver supports.
Do Wi-Fi frames have a TTL?
Ordinary frames don't, just like Ethernet. Mesh (802.11s) frames do: the Mesh Control field has a TTL because mesh forwarding can loop like routing.
Summary
- 802.11 stations associate with an AP. The AP's MAC address is the BSSID, the network name is the SSID, and APs with one SSID on a common wired network form an ESS.
- Frames are management (beacons, probes, association), control (RTS, CTS, ACK, block ACK) or data. To DS and From DS decide the meaning of up to four address fields: Address 1 is always the receiver and Address 2 the transmitter.
- The receiver ACKs each unicast frame, and the sender retransmits if the ACK doesn't arrive. Sequence numbers remove duplicates. Broadcasts aren't acknowledged.
- DCF (CSMA/CA) combines physical carrier sense with the NAV set from Duration fields, random backoff and a doubling contention window. RTS/CTS solves hidden terminals. EDCA's four access categories favor voice and video.
- Aggregation (A-MSDU, A-MPDU with block ACK) spreads fixed costs over many packets. Power save mode buffers frames at the AP and announces them in the beacon's TIM. Wi-Fi 6 adds TWT, OFDMA and BSS coloring. Wi-Fi 7 adds 320 MHz channels, 4096-QAM and multi-link operation.
- Peak PHY rates follow from subcarriers × bits × code rate ÷ symbol time × streams: about 1.2 Gb/s per stream for Wi-Fi 6 at 160 MHz and 2.9 Gb/s for Wi-Fi 7 at 320 MHz. Real throughput is much lower and shared.
- WEP and TKIP are broken. WPA2 uses AES-CCMP. WPA3 adds SAE, mandatory protected management frames, and OWE for open networks. Clients randomize MAC addresses per network.
- 802.11s mesh routes frames between APs with HWMP and a TTL.
Practice questions
1. A frame has To DS = 1, From DS = 0, Address 1 = 02:00:00:00:a0:01, Address 2 = 02:00:00:00:5a:01 and Address 3 = 02:00:00:00:0d:01. Who sent it, which device receives it over the air, and where is it ultimately going?
Answer
The station 02:00:00:00:5a:01 sent it to its AP, 02:00:00:00:a0:01 (Address 1, the BSSID), and it's going to 02:00:00:00:0d:01 on the distribution system, for example the router. The AP forwards it there as an Ethernet frame from 02:00:00:00:5a:01.
2. Station A can hear the AP but not station C, and C can hear the AP but not A. Why can't carrier sense prevent their collisions, and how does RTS/CTS help?
Answer
Carrier sense works only for transmissions a station can hear, and A and C can't hear each other, so both may send at once and collide at the AP (the hidden terminal problem). With RTS/CTS, A asks the AP first, and the AP's CTS, which C does hear, carries a duration. C sets its NAV and stays silent until the exchange is over.
3. Compute the PHY rate of one Wi-Fi 5 spatial stream at 80 MHz (234 data subcarriers) with 256-QAM at code rate 5/6 and a 3.6 µs symbol (short guard interval). What would two streams give?
Answer
234 × 8 × 5/6 ÷ 3.6 µs = 1560 bits ÷ 3.6 µs ≈ 433.3 Mb/s for one stream, and about 866.7 Mb/s for two. That second figure is the common "867 Mb/s" rate of two-stream Wi-Fi 5 laptops.
4. Why does 802.11 acknowledge every unicast frame, while Ethernet doesn't?
Answer
On radio, losses from interference, fading and collisions are common, and a transmitter can't detect a collision while it's sending. A quick link-layer ACK lets the sender retransmit within microseconds, instead of leaving the loss for TCP to discover much later. Wired Ethernet's error rate is so low that link-layer ACKs would only add overhead.
5. You need three access points in a building on 2.4 GHz. Which channels do you choose, and why not 1, 2 and 3?
Answer
1, 6 and 11. Channel centers are only 5 MHz apart, but each signal is about 20 MHz wide, so channels 1, 2 and 3 overlap almost completely and interfere without being able to coordinate. Channels 1, 6 and 11 are far enough apart not to overlap. APs that share one channel at least hear each other and take turns.
6. What two weaknesses of WPA2-Personal does WPA3-Personal's SAE fix?
Answer
First, with WPA2-PSK, an attacker who captures one 4-way handshake can test passwords offline as fast as their hardware allows. SAE requires an online exchange for each guess. Second, with WPA2-PSK, anyone who later learns the password can decrypt previously captured traffic. SAE gives forward secrecy: each session's keys can't be derived from the password and a recording.
Previous: Bridges and Switches: MAC Learning, Spanning Tree and Its Successors
Next: PPP and PPPoE: Point-to-Point Links and Broadband Sessions

More in TCP/IP Course
Quiz: TCP/IP Delicate Details
Twenty-five questions on the details that catch out experienced engineers: sequence numbers for SYN and FIN, TIME_WAIT versus tcp_fin_timeout, Karn's algorithm, socket buffer doubling, even and odd ephemeral ports, IPv6 checksums and fragmentation, negative DNS caching, and capture filter traps.
Quiz: TCP/IP Interview Questions
Thirty-three networking questions of the kind asked in developer, SRE and network engineering interviews: what happens when you load a URL, TCP versus UDP, handshakes, closing and TIME_WAIT, subnetting, NAT, DNS, MTU problems, congestion, TLS and QUIC, and debugging slow or failing connections.
Quiz: TCP/IP Course Final Exam (All Parts)
The final exam for the TCP/IP course: thirty questions across all fourteen parts, from packets and addressing through Ethernet, ARP, IP, DHCP, NAT, ICMP, UDP, DNS, TCP connections, reliability, congestion control, security, QUIC and troubleshooting.
Quiz: Modern Transports and Troubleshooting (TCP/IP Part 14)
Review modern transports and troubleshooting: QUIC packets, handshakes, 0-RTT, streams and connection migration, HTTP/3, Multipath TCP, SCTP multihoming, and a layered method for diagnosing real network faults.
Discussion
Sign in to ask a question or share what you learned.