Course menu

Course 7: Wireless for CCNALesson 2.2 (6 of 10 in this course)61 of 127 in the CCNA series

802.11 frames and joining a WLAN

The 802.11 header and its four addresses, management, control and data frames, CSMA/CA, and the join sequence.

Intermediate · 13 min read

What you will learn

After this lesson, you can read the main fields of an 802.11 header, name the three frame types and their common subtypes, explain CSMA/CA, and list the steps a client takes to join a WLAN.

  • 802.11 header
  • Frame types
  • CSMA/CA
  • Probe, auth, association

An 802.11 frame is the Layer 2 unit Wi-Fi sends over the air. Its header has up to four MAC addresses, because a frame may pass through an access point between its source and destination. Management frames build and end connections, control frames manage access to the medium, and data frames carry user traffic.

In simple terms: A Wi-Fi frame is like an Ethernet frame with extra address lines, because the access point in the middle is a stop on the way, not just a cable.

A real-life situation

A packet capture from a laptop shows hundreds of frames before any user data appears: beacons, probes, authentication, association, then a four-message key exchange. Then, for every data frame, a tiny ACK. None of that exists on Ethernet. Wi-Fi shares one open radio medium, so it needs extra frames to find networks, join them safely and take turns.

The 802.11 header

Frame control2 bytestype, subtype, To DS / From DS
Duration / ID2 byteshow long the air is reserved
Address 16 bytesreceiver
Address 26 bytestransmitter
Address 36 bytesBSSID, source or destination
Sequence control2 bytesspots retransmitted duplicates
Address 46 bytesonly AP to AP
QoS control2 bytespriority (WMM)
HT control4 bytesoptional
Frame body0–7951 bytesthe payload, often encrypted
FCS4 byteserror check (CRC-32)
The 802.11 data frame. Rows are grouped for reading, not drawn to scale. Address 4 is present only between APs (wireless bridges and mesh), QoS control only in QoS data frames, HT control only in some high-throughput frames.

On Ethernet, a frame has a source and a destination. On Wi-Fi the AP sits in the middle, so the header also names the radio that sends this hop (transmitter) and the one that should receive it (receiver). Two bits in Frame Control, To DS and From DS (DS = distribution system, the wired network), say which way the frame is going and so what each address means:

DirectionTo DS / From DSAddress 1Address 2Address 3
Client → AP → wired network1 / 0BSSID (the AP)ClientFinal destination
Wired network → AP → client0 / 1ClientBSSID (the AP)Original source
Management frames0 / 0ReceiverTransmitterBSSID

Three types of frame

TypePurposeCommon subtypes
ManagementFind, join and leave a WLANBeacon, probe request/response, authentication, association request/response, reassociation, disassociation, deauthentication
ControlManage access to the airACK, RTS (request to send), CTS (clear to send), block ACK, PS-Poll
DataCarry user trafficData, QoS data, null data (to signal power saving)

Taking turns: CSMA/CA

All devices in a cell share one channel, and a radio can't listen while it transmits, so Wi-Fi avoids collisions instead of detecting them:

  1. Listen. Is anyone transmitting? The radio checks the air and its NAV timer, set from the Duration field of frames it has heard.
  2. Wait. When the air is free, wait a fixed gap (DIFS), then a random backoff, so two waiting devices don't start together.
  3. Send the frame.
  4. Get an ACK. The receiver replies after a short gap (SIFS). No ACK means a lost frame: retry with a longer backoff.

Two clients on opposite sides of an AP may not hear each other (the hidden node problem). Optionally, a client first sends a short RTS; the AP answers with a CTS that every client hears, and they all stay quiet for the time it announces.

Joining a WLAN

A client finds networks passively by listening for beacons, or actively by sending probe requests. Then it joins in a fixed order:

Laptopclient
AP1SSID Staff, channel 36
  1. BeaconHere is SSID Staff, my data rates and my security (WPA2/WPA3).Beacon from AP1 to Laptop.
  2. Is Staff here? What do you support?Probe from Laptop to AP1.Probe
  3. Probe respYes: here are my capabilities.Probe resp from AP1 to Laptop.
  4. Authentication802.11 open authentication: just a formality. Real security comes later.
  5. Please authenticate me (open system).Auth from Laptop to AP1.Auth
  6. AuthSuccess.Auth from AP1 to Laptop.
  7. AssociationThe client asks to join; the AP accepts and gives it an association ID (AID).
  8. Please associate me; here are my capabilities.Assoc req from Laptop to AP1.Assoc req
  9. Assoc respAccepted, your AID is 1.Assoc resp from AP1 to Laptop.
  10. Security802.1X/EAP (Enterprise) or nothing extra (Personal), then the four-way handshake creates the encryption keys.
  11. EAPOL 1–4Four-way handshake: both sides prove they know the key and derive fresh session keys.EAPOL 1–4 from AP1 to Laptop.
  12. ConnectedEncrypted data frames can flow; the client now asks DHCP for an IP address.
A laptop joining the Staff WLAN on AP1. With WPA2/WPA3-Personal the four-way handshake follows association directly; with Enterprise, 802.1X authentication through RADIUS comes first.

Why it works this way

Radio is a shared, unreliable medium where anyone in range can listen. That explains the design: beacons and probes because there is no cable to show what is connected; acknowledgements because frames are often lost; collision avoidance because collisions can't be heard; and a key exchange because anyone could capture the frames.

Common mistakes

  • Thinking 802.11 open authentication is security. It authenticates nothing; WPA2/WPA3 provides security.
  • Assuming Address 1 is always the destination. It is the receiver of this hop, often the AP.
  • Confusing CSMA/CA (Wi-Fi, avoids collisions) with CSMA/CD (old half-duplex Ethernet, detects them).

💡 Exam tip: know the three frame types with an example each (beacon, ACK, data) and the join order: probe → authentication → association → security handshake.

Key takeaways

✅ Key takeaways
  • The 802.11 header has up to four addresses; To DS and From DS set what each one means.
  • Management frames join and leave, control frames manage the air, data frames carry traffic.
  • CSMA/CA: listen, wait a random backoff, send, expect an ACK. RTS/CTS helps with hidden nodes.
  • Joining: beacon or probe, open authentication, association, then 802.1X and/or the four-way handshake.

Check yourself

Predict · scenario 1

Which frame type is a beacon?

Predict · scenario 2

A laptop sends a frame through an AP to a server on the wired network. What is Address 1?

Predict · scenario 3

In what order does a client join a WPA2-Personal WLAN?

Predict · scenario 4

Why does Wi-Fi use collision avoidance rather than detection?

FAQ

Why does Wi-Fi acknowledge every frame when Ethernet doesn't?
A wireless sender can't hear a collision while it is transmitting, and frames are often lost to interference. So the receiver confirms every unicast frame with an ACK, and the sender retransmits if none arrives.
What does a wired device see when a laptop sends to it through an AP?
The AP converts the 802.11 frame into an Ethernet frame. The server sees an ordinary Ethernet frame from the laptop's MAC address; the wireless details disappear at the AP (or at the WLC with lightweight APs).