skip to content

How does 802.11r Fast BSS Transition let a client roam without repeating 802.1X, and what do the PMK-R0 and PMK-R1 key holders hold?

level: middleimportance: should knowfreq 27%

answer

  1. one full login per mobility domain
  2. keys prepared per AP
  3. R0 key holder, then R1
  4. over the air or over the DS
  5. new PTK during reassociation

basics

~20 s

802.11r runs the full 802.1X login once per mobility domain and derives a PMK-R0, from which each access point gets its own PMK-R1. On a roam, client and target AP derive a fresh PTK from that PMK-R1 during reassociation, skipping EAP.

solid answer

~40 s

**Fast BSS Transition** (802.11r-2008) splits the key hierarchy so the expensive work happens once. The first association in a **mobility domain** (APs sharing one SSID and one 2-octet MDID) is a full one: 802.1X/EAP, or PSK or SAE. From its result the **R0 key holder** (R0KH) derives a **PMK-R0**, and from that each AP, acting as an **R1 key holder** (R1KH), receives a **PMK-R1** bound to its own identity and the client's address. When the client roams, it and the target AP exchange nonces inside FT authentication and reassociation frames, either directly **over the air** or relayed by the current AP **over the DS**, and both derive a new PTK from the PMK-R1. No EAP round trip to the authentication server and no separate four-way handshake happen at the new AP.

go deeper

for a junior

Recall the one-line idea: the full login happens once, and later roams use keys prepared for each access point in advance.

for a middle

Explain the mobility domain, the PMK-R0 and PMK-R1 holders, what each key is bound to, and the difference between over the air and over the DS.

for a senior

Show operational judgment: pull timeouts when an R0 key holder is unreachable, domain boundaries that force full logins, and how a capture proves FT was used.

for a principal

Weigh where the R0 key holder should live and how far one mobility domain should stretch against the blast radius of a key-distribution failure.

## The problem it solves On a WPA2- or WPA3-Enterprise network, joining an access point (AP) normally means a full **802.1X/EAP** exchange through the authentication server, then the **four-way handshake** that installs fresh traffic keys. Doing all of that again at every AP makes each roam take long enough to break a voice or video stream. **Fast BSS Transition** (FT), defined in **802.11r-2008**, moves the expensive part to the first association and makes each later roam a short local exchange. ## The mobility domain FT works only between APs in one **mobility domain**: a group of APs in the same ESS (same SSID) that share a **Mobility Domain ID** (MDID), a 2-octet value. APs advertise it in the **Mobility Domain element** in beacons and probe responses. In hostapd, the open-source reference AP, it is `mobility_domain` (example `a1b2`). The first association a client makes inside a domain is the **initial mobility domain association**, and it is a full one. Leaving the domain means doing a full association again. ## The key hierarchy | Key | Derived from | Held by | Scope | |---|---|---|---| | **XXKey** | Second 256 bits of the EAP MSK; or the PSK; or the SAE PMK | Client and R0KH | One login | | **PMK-R0** | XXKey, the SSID, MDID, R0KH-ID and client address | **R0 key holder** (R0KH) and client | One mobility domain | | **PMK-R1** | PMK-R0, the R1KH-ID and client address | **R1 key holder** (R1KH, one per AP) and client | One AP and one client | | **PTK** | PMK-R1, both nonces, the BSSID and client address | Target AP and client | One association | The derivations above are as hostapd's source documents them. In hostapd, the R0KH-ID is the AP's `nas_identifier`, and the R1KH-ID (`r1_key_holder`) defaults to the BSSID. The **PMK-R0** stays with its key holder (the client derives its own copy); what moves between APs is a **PMK-R1**, which is useless at any other AP because it is bound to that AP's identity. ## The roam itself **Over the air** (the client talks to the target directly on its channel): 1. Client sends an **Authentication** frame using the FT algorithm to the target AP, carrying its nonce and the PMK-R0 name. 2. Target AP obtains the matching PMK-R1, answers with its own nonce, and both derive the PTK. 3. Client sends a **Reassociation Request** proving it holds the key; the target answers with a **Reassociation Response** and installs keys. Traffic resumes. **Over the DS** (the current AP relays): 1. While still on its current AP, the client sends an **FT Request** action frame naming the target. 2. The current AP forwards it to the target over the distribution system (the wired side); the **FT Response** comes back the same way. 3. The client moves to the target's channel and completes with Reassociation Request and Response. hostapd enables over-the-DS by default (`ft_over_ds=1`); over the air needs no separate switch. ## Getting the PMK-R1 to the target - **Pull** (hostapd's default): the target asks the R0KH for the PMK-R1 when the client arrives. hostapd waits `rkh_pull_timeout` (default 1000 ms) and retries, so an unreachable R0KH turns a fast roam into a slow or failed one. - **Push**: with `pmk_r1_push=1`, the R0KH sends a PMK-R1 to every configured R1KH as soon as a new PMK-R0 exists. - The `r0kh` and `r1kh` lists name the APs allowed to request and receive keys, each with a shared key protecting the transfer. - For FT with a PSK, hostapd's `ft_psk_generate_local=1` lets the target derive the response locally, since every AP already knows the PSK. ## What FT does not change - **Who may join.** The first login is a full 802.1X, PSK or SAE exchange with the same identities and credentials; FT only reuses its result. - **Who decides to roam.** The client still chooses when and where; FT only makes the move cheaper. - **Discovery.** FT does not shorten scanning; that is what 802.11k neighbor reports are for. - **Key freshness.** Every roam still produces a new PTK from fresh nonces, so traffic keys are never reused between APs. ## How to tell it is in use - The AP's RSN element lists an **FT AKM**: 00-0F-AC:3 (FT over 802.1X), 00-0F-AC:4 (FT with PSK) or 00-0F-AC:9 (FT with SAE). - The client's association request selects that AKM and includes the Mobility Domain element. - On a roam, the capture shows FT authentication or FT action frames followed by a reassociation, with **no EAP** and no four-way handshake at the target.

  • What happens when an FT client roams to an AP in a different mobility domain?
    Fast BSS Transition is not available across domains, because the target cannot obtain a PMK-R1 derived from the client's PMK-R0. The client sees a different MDID in the target's Mobility Domain element and performs a new initial mobility domain association: full 802.1X (or PSK or SAE) and the four-way handshake, creating a new PMK-R0. That is why the domain should cover the whole area clients walk through.
  • Why might an operator turn off FT over the DS (hostapd's ft_over_ds=0)?
    Over the DS depends on the current AP relaying the FT Request to the target across the wired side and getting the response back before the client moves. If that path is slow, or the target cannot be reached, the request fails. Over the air is self-contained between client and target and needs no separate switch, so operators who see over-the-DS failures disable it. hostapd enables it by default.

  • 802.11r sends the client's PMK-R0 to every AP in the domain.
  • With 802.11r the very first association also skips the 802.1X exchange.
  • Fast BSS Transition works between any two APs broadcasting the same SSID.
  • 802.11r still runs a separate four-way handshake after every roam.
  • Over the DS means the client roams without reassociating to the target.