WLAN SCANNING (ACTIVE & PASSIVE)
What is Scanning?
Scanning is a mechanism to find out APs within range. If STA finds required AP in scan list , then it can be sure that target AP is alive. So STA proceed for connection if needed.
Is Scanning is STA or AP Feature?
In general Scanning is performed by the client or station to get list of APs. But AP can also do scan.
In this Blog we will discuss about STA scanning feature only.
How many types of Scanning are there in 802.11?
There are two types of scanning are there...
1) Active Scanning.
2) Passive Scanning.
Scenario:
Let's assume there are three APs (2.4Ghz) and one client/STA is there.
AP1 [Broadcast SSID, Channel 1]
AP2 [Broadcast SSID, Channel 11]
AP3 [Hidden SSID, so does not broadcast SSID, Channel 1]
Active Scanning:
1. STA sends probe request on first channel 1 of 2.4Ghz band.
There are two types of probe request
In general Probe request is broadcast packet. This means whoever gets this probe request, may (Except hidden SSID AP ex: AP3) reply with probe response to STA.
Probe request can be unicast to particular AP. This type of probe request is called directed probe request.
Let's think our STA sends broadcast probe request.
2. Now AP1, AP2, AP3 can see this broadcast probe request. So, AP1 replies with probe response frame to STA.
3. STA sends 802.11 ACK to AP1.
4. Now, STA continues to send probe request on channel 2,3,4...11 (or 12,13 if supported). STA receives probe response from AP2 when probe request was sent on channel 11.
If STA supports 5Ghz, then STA also perform active scan starting from channel 36 to 165 (Depending on supported channel).
5. At last STA collects all AP probe response and make scan list. This is implementation depended that STA can do scan on all channels or only one channel [Directed Probe Request] or non-overlapping channels only.
Comments
Post a Comment