skip to content

Scanning & Association

The steps between seeing an SSID and a working link: beacons, probe request/response, open-system authentication, and association. Interviewers use it to localize a join failure to one exchange.

on this pageshow

explore

questions

6

On an 802.11 network, which frame exchanges does a laptop complete between seeing an SSID and sending its first data, and in what order?

level: juniorimportance: must knowfreq 52%

answer

  1. four stages, fixed order
  2. find, prove nothing, join, key
  3. two Authentication frames, then association
  4. status code and association ID
  5. EAPOL only until keys exist

basics

~20 s

An 802.11 station finds the network from a beacon or probe response, completes 802.11 authentication (two open-system frames, or SAE on WPA3-Personal), then an association request and response; on a protected network a key handshake follows before user data flows.

solid answer

~40 s

There are four stages. **Discovery**: the station hears the AP's **Beacon** (passive scanning) or sends a **Probe Request** and gets a **Probe Response** (active scanning). **802.11 authentication**: on open, WPA2 and WPA3-Enterprise networks this is **open-system authentication**, two Authentication frames that admit any station and prove nothing; WPA3-Personal replaces it with SAE. **Association**: the station sends an **Association Request** with its capabilities, rates and chosen security suite, and the AP answers with a **status code** and, on success, an **association ID**. **Keys**: on a WPA2 or WPA3 network the AP passes only EAPOL frames until the keys are installed; Enterprise networks run 802.1X first, then the four-way handshake. Only then does the laptop send DHCP, so "no IP address" can be a failure at any stage.

go deeper

for a junior

Recall the four stages in order: discovery by beacon or probe, open-system authentication, association with an association ID, then the key handshake on protected networks.

for a middle

Explain what each step carries: the RSN element in beacons and association requests, the status code and AID in the response, and why only EAPOL frames pass until keys exist.

for a senior

Use the sequence to localise a failure: which frame was sent, which status or reason code came back, and why an associated client can still lack an IP address.

for a principal

Treat the sequence as the contract between clients and infrastructure: know which stage each policy you set (security suite, admission, PMF) acts on, so a policy change predicts where refusals will appear.

## The join in one picture A Wi-Fi client does not simply "connect". Before an **802.11 station** (any device with a Wi-Fi radio) can send a single IP packet through an **access point (AP)**, it walks through a fixed sequence of **management frames**, the frame class 802.11 uses to set up and tear down links rather than to carry user data. Each stage has its own frames and its own way of failing, which is why interviewers start here. 1. **Discovery (scanning).** The station learns that a network with a given **SSID** (the network name) exists, on which channel, at which **BSSID** (the MAC address of the AP's radio), with which data rates, capabilities and security settings. 2. **802.11 authentication.** A short exchange of Authentication frames moves the station from "unknown" to "authenticated" in the AP's station table. 3. **Association.** The station asks to join the AP's basic service set, and the AP accepts or refuses with a status code. 4. **Key establishment (protected networks only).** On WPA2 and WPA3 networks the keys that encrypt user traffic are agreed and installed. Only after the last stage does the laptop send its first DHCP request and get an IP address. ## Stage by stage **Discovery.** APs transmit a **Beacon** frame at a fixed interval; hostapd, the open-source reference AP implementation, defaults to `beacon_int=100` time units of 1.024 ms, about ten beacons a second. A station that listens on a channel and waits for beacons is doing **passive scanning**. A station can also send a **Probe Request** and collect **Probe Responses**, which is **active scanning**. Both beacons and probe responses carry the SSID, the supported rates, a capability field and, on protected networks, the **RSN element** that advertises the accepted ciphers and authentication methods. **Authentication.** On open networks, WPA2 networks and WPA3-Enterprise networks this is **open-system authentication**: the station sends an Authentication frame with algorithm number 0 and transaction number 1, and the AP replies with transaction number 2 and a status code. No credential is checked. The step exists because the original standard placed authentication before association; the older **Shared Key** algorithm depended on WEP and was retired with it, its job taken over by the key handshake that follows association. WPA3-Personal replaces open-system authentication with **SAE**, carried in the same Authentication frames. **Association.** The station sends an **Association Request** carrying its capability information, its listen interval, the SSID, its supported rates and, on a protected network, an RSN element naming the cipher and authentication method it chose. The AP replies with an **Association Response** carrying a **status code** (0 means success) and, on success, an **association ID (AID)**. **Keys.** On a WPA2 or WPA3 network the AP's 802.1X **controlled port** stays closed after association, and only EAPOL frames pass. On an Enterprise network an 802.1X exchange with an authentication server comes first; then the **four-way handshake** derives and installs the session keys. Those mechanisms are covered with WLAN security. For the join, what matters is that they come after association. ## The trace an engineer expects to see | # | Direction | Frame | What it establishes | |---|---|---|---| | 1 | AP -> all | Beacon (or Probe Request and Probe Response) | the SSID is here, with these rates and security | | 2 | STA -> AP | Authentication, transaction 1 | the station asks to authenticate | | 3 | AP -> STA | Authentication, transaction 2, status 0 | the station is authenticated | | 4 | STA -> AP | Association Request | capabilities, rates, chosen security suite | | 5 | AP -> STA | Association Response, status 0, AID | the station is associated | | 6 | both | EAPOL frames (802.1X on Enterprise networks, then the four-way handshake) | keys installed, controlled port opens | | 7 | STA -> network | DHCP | an IP address | ## Why the order matters - **Each stage is a gate.** A station that asks to associate without having authenticated is refused; hostapd answers it with a Deauthentication frame. - **Failures leave fingerprints.** A missing probe response, a non-zero status in an Authentication or Association Response, or a deauthentication shortly after association each point to a different stage. - **802.11 "authenticated" is not "authorised".** Open-system authentication admits anyone. The real proof of identity on a protected network is the 802.1X exchange or the key handshake after association, or SAE on WPA3-Personal. - **"Connected" in the operating system is not "online".** A client can be associated and keyed and still have no IP address because of a DHCP or VLAN problem above the radio link. Knowing this sequence turns "the Wi-Fi does not work" into a precise question: which of these frames was sent, and which one never got a successful answer?

  • Why does 802.11 keep open-system authentication if it checks nothing?
    The 802.11 state machine requires an authenticated state before association, and the original design expected a real algorithm there. When Shared Key authentication was retired along with WEP, open system remained as the formality that satisfies the state machine, while real security moved after association (802.1X and the four-way handshake) or into the Authentication frames themselves (SAE on WPA3-Personal).
  • What changes in the join sequence on a WPA3-Personal network?
    Discovery and association look the same, but the two open-system Authentication frames are replaced by SAE's commit and confirm exchange, still carried in Authentication frames before association. The four-way handshake still runs after association, using the key that SAE produced, before the controlled port opens for user data.

  • Open-system authentication checks the Wi-Fi password.
  • In 802.11, association comes before authentication.
  • Once the OS shows connected, the device must already have an IP address.
  • The four-way handshake runs before the station associates.
  • Clients can only find networks by waiting for beacons.
open as a page

On an 802.11 WLAN, one laptop sees the corp-example SSID but never gets an IP address; how do you find which join exchange failed?

level: seniorimportance: must knowfreq 36%

basics

~20 s

Walk the join in order using AP logs, client logs or a capture: no probe response, a non-zero status in the authentication or association response, a teardown right after association during key setup, or a completed join with no DHCP reply.

open as a page

In 802.11, how does passive scanning on beacons differ from active scanning with probe requests, and why does a hidden SSID still answer some probes?

level: middleimportance: should knowfreq 34%

basics

~20 s

Passive scanning listens on each channel for beacons; active scanning sends probe requests, wildcard or naming an SSID, and collects probe responses. A hidden SSID blanks the name in beacons and ignores wildcard probes, but still answers probes that name it.

open as a page

In 802.11 association, what does the station's request carry, what does the access point check before answering, and how does reassociation differ?

level: middleimportance: should knowfreq 24%

basics

~20 s

An 802.11 Association Request carries capabilities, listen interval, SSID, supported rates and, when protected, the RSN element with the chosen suites; the AP validates them and replies with a status code and association ID. Reassociation adds the current AP's address.

open as a page

As WLAN lead, teams keep requesting their own SSIDs, some hidden; what SSID policy would you set, weighing what each extra SSID costs on the air?

level: principalimportance: should knowfreq 18%

basics

~20 s

Keep a small set of SSIDs, one per distinct security model rather than per team, because every SSID on every radio beacons and answers probes; segment users behind the SSID instead, and refuse hidden SSIDs, which cost compatibility and buy no security.

open as a page

In 802.11, what are the three station states, which frame classes does each allow, and how do deauthentication and disassociation move a station?

level: middleimportance: nice to knowfreq 16%

basics

~20 s

An 802.11 station is unauthenticated (State 1, class 1 frames only), authenticated (State 2, adding class 2 association frames) or associated (State 3, adding class 3 data). Disassociation returns it to State 2; deauthentication to State 1.

open as a page