skip to content

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%

answer

  1. listen versus ask
  2. beacon interval and channel dwell
  3. zero-length SSID element
  4. hidden blanks beacons, not responses
  5. name in clear in association request

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.

solid answer

~50 s

With **passive scanning** the station tunes to each channel and waits for **Beacon** frames, which APs send at a fixed interval (hostapd's default `beacon_int=100` time units, about 102 ms). With **active scanning** it sends a **Probe Request**, either a *wildcard* with a zero-length SSID element that any AP may answer or a *directed* one naming an SSID, and collects **Probe Responses**, addressed to the asking station and carrying the same SSID, rates, capability and RSN information as a beacon. Active scanning is quicker per channel; passive scanning costs dwell time but transmits nothing. A **hidden SSID** (hostapd's `ignore_broadcast_ssid=1`) sends an empty SSID in beacons and ignores wildcard probes, yet answers a directed probe with its name in the probe response, and clients send the name in their association request, so hiding is not a security control.

go deeper

for a junior

Recall that beacons advertise a network and probes ask for one, and that a hidden SSID is not a way to secure a network.

for a middle

Explain wildcard against directed probes, what beacons and probe responses carry, and exactly what a hidden-SSID setting changes and what it leaves untouched.

for a senior

Show how discovery problems present: a profile that no longer matches the RSN element, APs deliberately not answering probes, and the probe airtime that SSIDs and clients add on a busy channel.

for a principal

Weigh scanning behaviour in policy: refuse hidden SSIDs, keep SSID counts low because each one multiplies beacons and probe responses, and know which client populations scan aggressively.

## Two ways to find an access point Before an **802.11 station** can join a network it has to learn which **access points (APs)** are within range, on which channels, with which **SSID** (network name) and which settings. The standard gives it two methods, and real clients mix both. - **Passive scanning.** The station tunes its radio to a channel and listens for **Beacon** frames. Every AP radio sends a beacon for each SSID it serves at a fixed interval. In hostapd, the open-source reference AP implementation, that interval is `beacon_int`, default 100 time units of 1.024 ms, roughly 102 ms. To be sure it has heard every AP, the station must stay on each channel for about one beacon interval, so a sweep across many channels is slow, but the station transmits nothing. - **Active scanning.** The station transmits a **Probe Request** on a channel and waits briefly for **Probe Responses**. APs answer immediately, so the dwell per channel is short and a sweep is faster, at the price of extra management frames on the air. ## What the discovery frames carry | Frame | Sent by | Addressed to | Notable contents | |---|---|---|---| | Beacon | AP, periodically | broadcast | timestamp, beacon interval, capability information, SSID, supported rates, RSN element, Traffic Indication Map | | Probe Request | station | usually broadcast | SSID element (zero length or a name), supported rates, the station's capabilities | | Probe Response | AP, on request | the asking station | the same core fields as a beacon, without the Traffic Indication Map | The **capability information** field says, among other things, whether the network is an infrastructure network (the ESS bit) and whether it requires protection (the Privacy bit). The **RSN element** lists the cipher suites and authentication and key-management methods the network accepts. A client compares these with its saved profile before it even tries to authenticate, so a mismatch here means the client never sends a single Authentication frame. ## Wildcard and directed probe requests 1. A **wildcard probe** carries an SSID element of length zero. It means "any network here, please answer", and every AP that is willing replies, typically with one probe response for each SSID it advertises. 2. A **directed probe** carries a specific SSID. Only an AP serving that name answers. Clients use wildcard probes to build a list of nearby networks and directed probes to look for networks they already know. Both are sent unprotected, because the station has no keys yet. ## Hidden SSIDs A **hidden SSID** is a configuration, not a protocol mode. hostapd describes its `ignore_broadcast_ssid` setting this way: - `ignore_broadcast_ssid=0` (default): the SSID appears in beacons and the AP answers wildcard probes. - `ignore_broadcast_ssid=1`: beacons carry an empty, zero-length SSID, and probe requests for the broadcast SSID are ignored. - `ignore_broadcast_ssid=2`: the SSID bytes are cleared to zero but the original length is kept, for clients that cannot cope with an empty SSID; wildcard probes are still ignored. In every mode the AP still answers a probe that names its SSID exactly, and that probe response carries the real name. The client must also put the SSID in its **Association Request**. The name therefore crosses the air in clear whenever a legitimate client joins, which is why hiding an SSID is not a security control: confidentiality and access control come from WPA2 or WPA3, not from the beacon. Hiding also changes client behaviour. A client configured for a hidden network cannot wait for it to appear in a beacon, so it has to send directed probes for that name, and it may keep doing so wherever it goes, announcing the name of the network it belongs to. ## Operational consequences - **Discovery problems look like "network not found".** A client that cannot hear beacons on a channel it supports, or whose probes go unanswered, never reaches authentication. - **Probe traffic is real airtime.** Every wildcard probe typically draws one response per SSID from every AP in range, so many SSIDs and many probing clients add up on a busy channel. - **Some APs deliberately stay quiet.** hostapd can ignore probes below a signal threshold (`rssi_ignore_probe_request`) or skip responses to broadcast probes when its station table is full (`no_probe_resp_if_max_sta`), which a troubleshooter must remember before blaming the radio. - **Hidden SSIDs cost compatibility and buy nothing.** Some clients handle them poorly, and the operator gains no protection. The short version an interviewer wants: passive scanning listens, active scanning asks, and a hidden SSID removes the advertisement but never the name.

  • Why might a client prefer active scanning when it needs to move to another AP quickly, and what does that cost?
    APs answer a probe at once, so a client spends only a short dwell on each channel instead of waiting about a beacon interval, which matters when it must find a new AP fast. The cost is airtime: every probe draws a probe response per SSID from every matching AP on that channel, so many clients probing on a busy channel add a steady load of management frames.
  • What is the difference between hostapd's ignore_broadcast_ssid=1 and ignore_broadcast_ssid=2?
    With `1`, hostapd sends a zero-length SSID in beacons and ignores probe requests for the broadcast SSID. With `2`, it keeps the SSID's original length but clears every byte to zero, for clients that do not cope with an empty SSID, and still ignores broadcast probes. In both modes it answers a probe that names its SSID exactly.

Passive scanning is reading the departures board; active scanning is asking the information desk. A hidden SSID takes its line off the board and ignores "what is leaving today?", but the desk still answers "is flight 102 here?" out loud, so anyone standing nearby hears the name.

  • Hiding the SSID stops anyone nearby from learning the network name.
  • A hidden SSID answers no probe requests at all.
  • Probe responses are broadcast to every station, just like beacons.
  • Passive scanning finds every AP faster than active scanning.
  • A hidden SSID can stand in for WPA2 or WPA3 protection.