Frame Exploration: Association Frames

Association Frames are the last two frames before the STA can connect to the BSS and begin .1x authentication or the 4 way handshake when using PSK. There are two (different) frames as opposed to the two similar frames (with different sequence numbers) in the Authentication exchange. A STA will always send an Association request to an AP. This can be helpful when trying to discern between a STA and BSS in a packet capture if the addresses of each device are not known.You will also find the target BSS in a request frame but not a response frame. Like Authentication frames these are also sent at the minimum required rate for that particular BSS. 

Association Request

Since the AP already sent out its full list of capabilities in the Probe Response frame, the STA now sends out its full capabilities in the Association Request. With this information the AP now knows if the STA will be able to participate in this BSS or not.

Below are two screenshots quickly showing how much additional information is sent by the client in a Probe Request vs an Association Request

(Probe Request)


(Association Request)

 

Association Response
 
The Response is the second frame of the exchange. Here the AP will list the settings in use for this BSS. Other than configurations on the BSS the most important piece of this puzzle is whether or not the Association was successful. This can be found in Element 2 of the capture as seen below.

If for any reason the association fails there will be a failure code listed here as well. The list as documented in the 802.11-2020 standard is widely available online and can be used to further troubleshoot any issues. We also find the AID (Association ID) here which helps differentiate individual STA's in the BSS. 

After this, one of three things will happen. If no security is enabled the STA will now be able to Tx using this BSS. If PSK is enabled the two devices will perform the 4 way handshake (WPA/WPA2). If 802.1x is enabled the devices will go through the EAP security exchange with the Authentication Server, Authenticator (AP) and Supplicant (STA).

Feel free to download and view the frames I used for this post here.

Comments

Popular posts from this blog

Capturing Roaming Events

IoT and Smart Home Devices: Part 1

Frame Exploration: Authentication Frames