Use it when APs fail to join a controller, or when firewalls and MTU must allow CAPWAP control and data.
CAPWAP concepts
CAPWAP (Control and Provisioning of Wireless Access Points) is the tunnel between lightweight APs and the WLC: UDP 5246 for control (DTLS-encrypted) and UDP 5247 for client data.
AP discovery → join (DTLS) → config → data tunnel
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification and output interpretation Verify boundary
Verify AP discovery and join state, controller identity, CAPWAP control uptime and configuration synchronization. If centralized switching is used, verify data-tunnel counters and the controller-side client forwarding path separately. If local switching is used, confirm that CAPWAP control is healthy while client data appears on the expected local VLAN. Underlay reachability, latency/MTU and security-device counters can explain control-channel instability but should be correlated with AP/controller logs. A joined AP is strong evidence for the control tunnel; it is not evidence that every WLAN or client policy is working.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- CAPWAP is the tunnel protocol between lightweight APs and the WLC.
- Control traffic uses UDP 5246 (DTLS-encrypted); data uses UDP 5247.
- If CAPWAP control fails, the AP cannot join and serves no clients.
show ap summary— joined APsshow ap join stats summary— join failuresshow capwap client rcb— AP side (on AP)
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
CAPWAP: how APs and controllers talk
RFC 5415 defines CAPWAP (Control And Provisioning of Wireless Access Points), which lets an Access Controller manage a collection of Wireless Termination Points. It is independent of the radio technology; RFC 5416 binds it to IEEE 802.11. CAPWAP has two channels: a control channel for CAPWAP control messages, secured by DTLS, and a data channel carrying forwarded wireless frames, optionally secured.
Session lifecycle (RFC 5415)
| Phase | What happens |
|---|---|
| Discovery | The AP sends Discovery Requests; controllers reply with Discovery Responses |
| DTLS setup | A DTLS session is established with the chosen controller |
| Join | Join Request and Join Response |
| Image data | Firmware download if the AP's image differs from the controller's |
| Configure | Configuration exchanged |
| Data check | Control and data channel linkage confirmed |
| Run | Normal operation; Echo Requests and Responses keep the session alive |
MAC modes (RFC 5415)
| Mode | Behaviour |
|---|---|
| Split MAC | All Layer 2 wireless data and management frames are carried between AP and controller |
| Local MAC | Data frames bridged locally or tunnelled as 802.3; management frames processed at the AP |
Ports
CAPWAP uses UDP 5246 for control and UDP 5247 for data. Firewalls between APs and controllers must allow both.
WLC# show ap name AP-2F-14 config general | include CAPWAP|DTLS|MTU
CAPWAP Path MTU : 1485
DTLS Encryption State : Disabled
WLC# show wireless stats ap join summary
AP-2F# show capwap client rcb
AdminState : ADMIN_ENABLED
SwVer : 17.15.3.6
NumFilledSlots : 3
Name : AP-2F-14
Location : 2nd floor
MwarName : WLC-9800-1
MwarApMgrIp : 10.100.0.10
DTLS Encryption State: Disabled refers to the data channel; the control channel is always DTLS-protected.
Discovery methods in practice
| Method | Detail |
|---|---|
| DHCP option 43 | Controller address in the AP's DHCP offer |
| DNS | AP resolves CISCO-CAPWAP-CONTROLLER.<domain> |
| Broadcast | Controller in the same subnet |
| Previously joined controllers | Stored in the AP |
Troubleshooting
| Symptom | Check |
|---|---|
| AP never joins | IP address, route to the controller, discovery method, UDP 5246/5247 open |
| AP joins and drops repeatedly | DTLS certificate or time issues, MTU on the path, controller capacity |
| AP stuck downloading | Image transfer over a slow WAN; consider pre-downloading images |
Documented example, not captured output.
Quick reference
CAPWAP (Control And Provisioning of Wireless Access Points) is the protocol between lightweight APs and the WLC. The control channel (UDP 5246) is DTLS-encrypted; the data channel (UDP 5247) tunnels client traffic in local mode and can be encrypted optionally.
| CAPWAP phase | Purpose |
|---|---|
| Discovery | AP finds candidate WLCs |
| DTLS setup | Certificate-based mutual authentication |
| Join | AP registers |
| Image/config download | Matching software and configuration |
| Run | Normal operation |
CAPWAP adds overhead; with path MTU issues, APs and WLC negotiate a lower CAPWAP MTU.
State model and technical mechanics
CAPWAP lets an access point discover and join a controller across an IP network. The control channel carries join, configuration, keepalive and management information and is protected with DTLS in Cisco deployments. A separate CAPWAP data channel can encapsulate client frames when centralized switching is used; local/Flex switching can leave selected client traffic at the AP site even though CAPWAP control remains active. CAPWAP therefore creates an overlay dependency on the routed underlay between AP and controller. Discovery can use locally configured controller information, DHCP/DNS or broadcast/local methods depending on design, but successful discovery is only the beginning of the join sequence and does not show WLAN/client forwarding.
Limits and common misconceptions
CAPWAP is not synonymous with “all wireless traffic tunnels to the controller.” Control remains CAPWAP-based in designs where client data is locally switched. Similarly, ping reachability between AP and controller does not show CAPWAP join, certificates/software compatibility or policy assignment. A CAPWAP control failure also does not automatically mean the RF hardware is down. Treat the routed underlay, CAPWAP control state, WLAN policy and client data path as distinct layers and preserve which one each output actually shows.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Ensure the AP management network has IP reachability, DNS/DHCP options or explicit controller information according to the discovery design. Preserve MTU/path characteristics suitable for CAPWAP and any centrally tunneled client traffic. Define controller preference/redundancy and site tags/policy so an AP that joins the “wrong” controller or policy set is detectable. Where local switching is intended, configure the local VLAN mapping independently from CAPWAP control. Keep firewalls/NAT path behavior compatible with the deployment rather than opening broad rules without understanding which control/data channels cross the boundary.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Wireless → Wireless Architecture → CAPWAP concepts. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc5415.html · confidence 94%Quick lookup tables
CAPWAP concepts · technical reference
Compact wireless mechanics, design and evidence boundaries for fast lookup.
| CAPWAP layer | Reference role |
|---|---|
| Discovery/join | Establish AP-controller relationship |
| Control | Config, keepalive, RF/client management |
| Data | Central tunnel when architecture uses it |
| Underlay | IP path carrying CAPWAP |