skip to content

When store APs lose their WAN link to a head-office CAPWAP controller, what keeps working on tunnelled versus locally bridged WLANs, and why?

level: seniorimportance: should knowfreq 27%

answer

  1. where the frame leaves the AP
  2. retransmissions and keep-alives give up
  3. admission lives on the controller
  4. the secondary controller list
  5. fallback when the primary returns

basics

~20 s

Tunnelled WLANs stop at once, because every user frame must reach the controller. Locally bridged WLANs can keep forwarding store traffic, but controller-run steps such as 802.1X and key management fail unless the AP has a local fallback.

solid answer

~50 s

The AP notices the loss when its control-channel retransmissions run out or data-channel keep-alives stop, tears down its DTLS session and returns to discovering a controller, trying any secondary ACs it knows. On a **tunnelled** WLAN (Split MAC, or Local MAC with an 802.3 tunnel) the distribution point was at head office, so all user traffic stops, including traffic between two devices in the same store. On a **locally bridged** WLAN the data path never left the store, so connected clients may keep working. But CAPWAP does not define what an AP does without a controller, and its 802.11 binding puts association decisions, 802.1X/EAP and key management on the AC, so new joins, roams and re-authentications fail unless the AP has a local fallback. When the WAN returns, `WTP Fallback`, enabled by default, moves APs back to the primary: a second disruption to plan for.

go deeper

for a junior

Recall that a tunnelled WLAN sends user traffic to the controller and a locally bridged one does not, so only the second can keep store traffic local.

for a middle

Explain how the AP detects controller loss in CAPWAP and why admission still depends on the controller when traffic is bridged locally.

for a senior

Diagnose an outage per SSID: what stopped, why new joins fail, what the fallback to the primary will do, and how you would test the design beforehand.

for a principal

Decide which store services must survive a WAN loss and design forwarding, local admission and controller redundancy to meet that, at a cost the estate can carry.

## The scenario A retailer runs 400 small stores. Each store has a few APs that join, over CAPWAP, an **Access Controller (AC)** at head office. A store's WAN link fails for an hour. Which store devices keep working depends on two things: **where user frames leave the wireless system**, and **which steps of a client's connection the controller performs**. ## How the AP notices, and what CAPWAP does next RFC 5415 defines the AP's (the WTP's) side of losing its controller: 1. In the Run state the WTP sends an **Echo Request** whenever its `EchoInterval` timer expires (30 seconds by default), and retransmits unanswered control messages with back-off. 2. It also sends **Data Channel Keep-Alive** packets on the data channel (every 30 seconds by default). If none comes back within `DataChannelDeadInterval`, at most 240 seconds, it tears down the session. 3. When retransmissions reach `MaxRetransmit` or the data channel is declared dead, the WTP moves to **DTLS Teardown** and then back towards **Discovery**. 4. It tries the controllers it knows: those configured with a priority (primary, secondary and so on) and any alternates an AC listed in an earlier Discovery Response. 5. When a controller answers, it joins again. If that controller expects a different firmware image, the WTP switches to it, downloading it first if it does not already hold it, and **resets**, which lengthens the outage. CAPWAP stops there. It **does not define a standalone mode**: whether radios stay up and what they can still do while no controller answers is the implementation's behaviour. ## Tunnelled WLANs: the data path ran through head office - In **Split MAC**, and in **Local MAC with an 802.3 tunnel**, the distribution service sits on the controller. Every user frame goes up the tunnel and back. - With the WAN down there is **no path at all**, even between a handheld and a printer on the same AP: the frame would have hairpinned through head office. - New clients cannot associate either, because association is processed by, or must be approved by, the controller. ## Locally bridged WLANs: the data stays, admission may not - With **Local MAC and local bridging**, the AP puts user frames straight onto the store LAN. Clients already connected, holding keys the AP already has, can keep exchanging store-local traffic if the implementation keeps the radios up. - RFC 5416 still requires the AP to **forward association requests** to the controller and keeps **802.1X/EAP and RSNA key management on the AC**. A new client, a client moving to another store AP, or a client due to re-authenticate needs the controller. - That applies to WPA2-Personal as well as Enterprise: under the binding, the key exchange that installs a client's keys runs on the AC, so a pre-shared key alone does not keep the store admitting clients. - Only an implementation's **local fallback** (the AP admitting and keying clients itself while the controller is unreachable) closes that gap, and it must be configured and tested, not assumed. ## What happens during the outage | During the WAN outage | Tunnelled WLAN | Locally bridged, binding only | Locally bridged with AP local fallback | |---|---|---|---| | Store-local traffic, clients already connected | Stops | Can continue if radios stay up | Continues | | New client joins | Fails | Fails | Works if authentication is reachable locally | | Client moves between store APs | Fails | Fails | Works within the fallback's limits | | Configuration, radio management, monitoring | Stop | Stop | Stop | ## When the WAN returns - Each AP rejoins a controller. With **WTP Fallback** enabled, which RFC 5415 makes the default, an AP serving from a secondary AC disconnects and rejoins its primary once it detects it. That is a second disruption; schedule it or disable automatic fallback and move APs back deliberately. - Keep firmware versions aligned on primary and secondary controllers so a rejoin does not trigger an image download and reset. ## Designing the store network for this RFC 5418, CAPWAP's 802.11 threat analysis, notes that for branch sites with only APs managed from a central controller, **local bridging is often the best choice** for user data because of latency and link capacity. A store design built on that: 1. Bridges store user traffic (payments, handhelds, staff devices) locally. 2. Tunnels only SSIDs whose traffic must reach head office, accepting that they die with the WAN. 3. Configures and documents the AP's behaviour without a controller, including how clients are admitted then. 4. Provides a secondary controller at a second site, in each AP's priority list. 5. Proves it: block UDP 5246 and 5247 toward head office at one pilot store, then test connected clients, a new join, a move between APs and the rejoin.

  • Why do two devices in the same store lose contact on a tunnelled WLAN when only the WAN failed?
    Because the distribution service lives on the controller. A frame from a handheld to the store printer goes up the CAPWAP tunnel to head office and back down. Remove the head-office path and there is no path at all, even though both devices sit metres apart on the same AP.
  • What should you expect when the WAN comes back?
    Each AP rediscovers and rejoins a controller. With WTP Fallback enabled, RFC 5415's default, an AP on a secondary AC moves back to its primary when it detects it, which is a second disruption. If the controller expects a different firmware image, the AP switches to it during join, downloading it if needed, and resets, so keep versions aligned across controllers.
  • How do you prove a store design survives before a real outage tests it?
    Simulate it in a pilot store: block UDP 5246 and 5247 toward head office at the store router and check connected clients, a new client on each SSID, a client moving between two store APs, and the rejoin when the block lifts. Record the timings and repeat after software upgrades, because behaviour without a controller is implementation-specific.

  • Locally bridged WLANs are completely unaffected when the controller becomes unreachable.
  • A tunnelled WLAN keeps working inside the store because the AP caches forwarding decisions.
  • CAPWAP defines a standalone mode in which APs take over authentication automatically.
  • WPA2-Personal SSIDs always keep admitting new clients, since no RADIUS server is involved.
  • When the WAN returns, APs simply stay on whichever controller they reached last.