Sub topic 7
Access points, SSIDs and BSSIDs
This chapter assumes you know what a network and an IP address are, and that you can tell a router, a switch and an access point apart. It also assumes you have read the chapter on channels. Here you learn the names Wi-Fi uses for the pieces of a wireless network, and how to read them in a scan.
The access point and the BSS
An access point (AP) is a device that bridges radio traffic to a wired network. It sits on one channel at a time (per radio) and relays frames between its wireless clients and the wired side.
An AP and the clients associated with it form a Basic Service Set (BSS). The BSS is the basic unit of an 802.11 network. All traffic in a BSS passes through the AP, even when two clients in the same BSS talk to each other.
SSID versus BSSID
Two names identify a network, and they work at different levels.
| Name | Full name | What it is | Example |
|---|---|---|---|
| SSID | Service Set Identifier | A text name of up to 32 bytes that people choose and see | `HomeNet` |
| BSSID | Basic Service Set Identifier | The 48-bit MAC address of one AP radio, used on that BSS | `aa:bb:cc:11:22:33` |
The SSID is a label. Many APs can share it, and it is not unique. The BSSID identifies exactly one BSS, so it is what a client uses to address a specific AP.
A dual-band AP usually has one BSSID per radio and per SSID. It therefore appears as several BSSIDs in a scan, even though it is one physical box.
One SSID, many APs
When several APs broadcast the same SSID and connect to the same wired network, they form an Extended Service Set (ESS). To a user it looks like one network. A client can move between the APs, which is the basis of roaming (covered in a later chapter).
Neighboring APs in one ESS should use different channels where possible, so they do not compete for the same airtime.
Reading SSIDs and BSSIDs in a scan
On Linux, iw shows the BSSID, frequency, signal and SSID of nearby networks.
sudo iw dev wlan0 scan | grep -E '^BSS|freq:|signal:|SSID:'Each result begins with a BSS line that holds the BSSID. A typical block looks like this:
BSS aa:bb:cc:11:22:33(on wlan0)
freq: 2412
signal: -52.00 dBm
SSID: HomeNetFrequency 2412 MHz is channel 1. If you see HomeNet listed three times with different BSSIDs, you are looking at either several APs or several radios of one AP.
Common errors
- Treating the SSID as unique. Two unrelated neighbors can both use
linksysorHome. A client that trusts only the name may try to join the wrong network. - Assuming a hidden SSID is secure. Hiding only leaves the name out of beacons. The name still appears in probe requests and association frames, so it is easy to recover.
- Counting BSSIDs as APs. One AP with several radios and SSIDs shows many BSSIDs.
Exercise
A scan shows CafeWifi four times, with four different BSSIDs, on channels 1, 6, 11 and 36. Can you say it is four separate access point devices? What does this layout suggest?
Show answer
No. Each BSSID is one radio and SSID combination, so you cannot tell the number of devices from the count. The layout is most likely an ESS in which several APs, or dual-band APs, share one SSID. Channels 1, 6 and 11 are non-overlapping 2.4 GHz channels, and 36 is a 5 GHz channel.