This document describes methods for efficient Cisco AP image upgrades over WANs, addressing latency and reliability challenges.
Regular image upgrades are essential for Cisco Access Points (AP), but performing these over high-latency Wide Area Network (WAN) links to remote sites can be challenging. The standard CAPWAP image download method, while effective in local networks, can be slow and potentially less reliable over WANs. This section explores why this occurs and outlines alternative and enhanced methods designed for efficient remote upgrades.
The fundamental process for AP image upgrade via CAPWAP is defined in RFC 5415, Section 9.1. This mechanism allows the Wireless LAN Controller (WLC) to serve the new AP image directly to the connected APs over the CAPWAP tunnel. For each Image Data Request message (RFC 5415, Section 9.1.1) containing a chunk of firmware data, the WLC waits for a corresponding Image Data Response acknowledgment (RFC 5415, Section 9.1.2) from the AP before sending the next chunk.
The image illustrates the image transfer process between the AP and WLC while the AP is in run state.
AP Image Transfer Process Flow
As observed, the WLC sends Image Data Request messages containing chunks of the firmware image data. The AP acknowledges receipt of these chunks by sending Image Data Response messages. This exchange continues until the entire image is transferred.
For each Image Data Request message, a corresponding Image Data Response message is expected as an acknowledgment. This means the AP must wait for each image packet to arrive, acknowledge it, and then wait for the next packet. This introduces slowness in image download in WAN environments.
Consider an example: If the Round Trip Time (RTT) between the AP and WLC is 100ms, this effectively limits the transfer rate to approximately 10 packets per second. If each packet size is 1000 Bytes, this translates to a maximum throughput of 10 KB/sec. If the AP image is 50MB, the theoretical minimum time to complete the transfer is approximately 5120 seconds. This illustrates that even if significant bandwidth is available, the CAPWAP image download can feel slow due to this stop-and-wait acknowledgment mechanism. This effect is less noticeable in local image transfers where the WLC and AP are part of the same campus network and latency is minimal.
Caution: A lossy WAN link can potentially lead to image corruption. See Cisco bug ID CSCwf09053
for more information on this.
To mitigate these limitations inherent in the standard CAPWAP control path transfer mechanism, particularly in high-latency or bandwidth-constrained WAN environments, three enhancements were introduced.
This feature enhances the speed of CAPWAP-based image downloads specifically for Office Extend Access Points (OEAP) or Teleworker APs. It addresses the limitation of the standard CAPWAP control channel having a single window, which requires acknowledgment for every packet before sending the next, slowing down transfers over high-latency links. This enhancement adds support for multiple sliding windows for control packets.
Impact of CAPWAP Window Size
The efficiency of the CAPWAP image download process over the control channel is significantly influenced by the configured window size, especially across high-latency links.
With CAPWAP Window Size = 1 (Default/Standard): The packet flow exhibits a strict stop-and-wait behavior. For each Image Data Request packet sent by the WLC, the WLC pauses and waits for an Image Data Response acknowledgment from the AP before sending the next packet.
CAPWAP Image Upgrade Flow with Window Size 1
With CAPWAP Window Size = N (for example, 10): The packet flow demonstrates a sliding window mechanism. By allowing multiple packets to be in flight over the link before requiring an acknowledgment, the sliding window effectively masks the latency.
CAPWAP Image Upgrade Flow with Window Size 20
Configure an AP Profile and set CAPWAP window size:
configure terminal ap-profile capwap window size <- Between 3 to 20 (try to stay under 10)
end
Associate the AP profile to a site tag and apply to APs (similar to steps 2 and 3 in Efficient Image Upgrade, ensuring the correct ap-profile is linked via the site tag).
show ap profile name detailed | in indo <- View CAPWAP window size in an AP profile
show capwap client rcb | in Window <- View CAPWAP status and modes for a specific AP(Look for CAPWAP Sliding Window and Active Window Size)
show ap config general | in indo <- View AP configuration details(Shows Capwap Active Window Size)
Note: While primarily documented for OEAP, this enhancement has also been observed to function for regular FlexConnect APs. However, this has not been fully tested/ supported for FlexConnect deployments.
Efficient Image Upgrade is an optimized method specifically designed for FlexConnect APs, particularly useful in branch office deployments with limited WAN bandwidth. This method minimizes WAN load by designating a primary AP within a site tag to download the image from the controller, and then allowing other subordinate APs in the same site tag to download the image from the primary AP via TFTP. The primary AP is one AP per model per Site Tag.
Enable Predownload in Flex Profile:
configure terminal wireless profile flex <flex-profile-name> predownload <- Enables the Efficient Image Upgrade option. end
Configure a Site Tag and Associate Flex Profile:
configure terminal wireless tag site <site-name> flex-profile <flex-profile-name> <- Ensure 'no local-site' is configured if not already, for Flexconnect mode end
Attach Policy Tag and Site Tag to AP(s):
configure terminal ap <ap-mac-address> <- Use wired MAC address policy-tag <policy-tag-name> site-tag <site-tag-name> rf-tag <rf-tag-name> end
Trigger Predownload to a Site Tag:
enable ap image predownload site-tag <site-tag-name> start
show ap primary list <- Display list of primary APs
show ap image <- Display predownload status of APs: (Initially shows 'Predownloading', then 'Complete')
show ap name <ap-name> image <- Display image details for a specific AP
show capwap client rcb <- Check if Flex efficient image upgrade is enabled on the AP console
The OOB HTTPs-Based AP Image Download is an enhanced method introduced in Cisco IOS® XE Dublin 17.11.1 to improve AP image upgrade performance by transferring images outside the standard CAPWAP control path. A key advantage and safety net is its automatic fallback to standard in-band CAPWAP download if the HTTPs download fails.
The OOB HTTPs method leverages the standard TCP and the HTTPs for image transfer. Unlike the stop-and-wait mechanism of the CAPWAP control channel, TCP inherently uses a sliding window mechanism that allows for efficient bulk data transfer over high-latency links.
This method utilizes an webserver (nginx) running on the controller to serve AP images directly to the APs over HTTPs. This bypasses the limitations of CAPWAP control path for large file transfers, offering a potentially faster and more flexible download mechanism.
This method is beneficial for accelerating AP image upgrades, particularly in large deployments or remote sites where the latency and bandwidth limitations of the CAPWAP control tunnel can make traditional in-band downloads time-consuming.
The packet capture shows the WLC acting as an HTTPs server and the AP as an HTTPs client initiating a standard TCP connection over port 8443 and file download.
HTTPS Based Image Upgrade Packet Flow
Enable the HTTPS upgrade method:
configure terminal ap upgrade method https end
Configure a custom HTTPS port (Optional - default is 8443):
configure terminal ap file-transfer https port <port_number> end
show ap upgrade method <- Check global HTTPS method status
show ap file-transfer https summary <- View configured and operational HTTPS file transfer port
show ap name <AP NAME> config general | sec Upgrade <- Check if a specific AP supports OOB capability (Look for "AP Upgrade Out-Of-Band Capability : Enabled")
show wireless stats ap image-download <- View the method used for recent downloads (Check the Method column)
show platform software yang-management process <- Verify nginx server status
Caution: It is important to be aware of security advisories related to file uploads, such as Cisco IOS XE Wireless Controller Software Arbitrary File Upload Vulnerability Always ensure your WLC software is up-to-date with the latest security patches.
This method involves directly accessing the AP CLI via console or SSH and initiating the image download from a TFTP or SFTP server. This is useful for troubleshooting specific APs, upgrading APs that are not currently joined to a controller, or to load a debug image provided by TAC.
Find the AP image:
This process actually loads the AP image directly onto the AP. In the case of WLC based upgrade, the WLC takes care of selecting the right image for the AP from the WLC image bundle. Here, manual selection is necessary.
The AP image version uses a different naming convention than the WLC image naming convention.
Navigate to the link Supported Access Points in Cisco Catalyst 9800 Series Wireless Controller Software Releases
Supported Access Points in Cisco Catalyst 9800 Series Wireless Controller Software Releases
Wireless AP Compatibility Matrix
The first column describes the CCO image of the 9800 WLC. The third column lists the respective image version and the fourth column lists the supported access points for that version. Assume the need to install the AP image on AP 9130 for version 17.12.4. Checking the table shows the AP image name is15.3(3)JPQ3 and 9130 is listed as a supported model.
The next step is to navigate to software.cisco.com and get the image from the AP download folder.
Downloads Home/ Wireless / Access Points / Catalyst 9130AX Series Access Points / Catalyst 9130AXI Access Point / Lightweight AP Software- 15.3.3-JPQ3(ED)
Software Download - Catalyst 9130AXI Access Point
AP Image Location
Warning: The download path differs based on the AP model and AP image version.
archive download-sw /no-reload tftp:/// <- Using TFTP:
archive download-sw /no-reload sftp:/// Username: <SFTP_USER> Password: <SFTP_PASSWORD> <- Using SFTP:
reload <- Restart CAPWAP process after download:
Tip: WLAN Poller is a tool that can be used to create scripts to manually upgrade multiple APs. Find the WLAN Poller at this location. WLAN Poller
Choose the method that best aligns with your AP operating mode, network conditions, WLC software version, and the scale of your upgrade operation to ensure a smooth and efficient process for your remote APs.
While the standard CAPWAP image download method is suitable for local networks, remote AP deployments over WAN links benefit significantly from optimized upgrade techniques. Understanding the limitations of standard CAPWAP over high latency helps in choosing the right approach. The CAPWAP Image Download Time Enhancement improves performance for OEAP/Teleworker APs, Efficient Image Upgrade optimizes FlexConnect deployments by reducing WAN load, and Out-of-Band HTTPs offers a faster alternative for supported platforms. The manual TFTP/SFTP method remains a valuable tool for troubleshooting and specific scenarios.
AP Image Download Time Enhancement (OEAP or Teleworker Only)
Cisco Access Points Supported in Cisco Wireless Controller Platform Software Releases
Migrate from AireOS WLC to Catalyst 9800 with WLANPoller
| Revision | Publish Date | Comments |
|---|---|---|
3.0 |
27-Nov-2026
|
Updated the recommendation about CAPWAP window size |
2.0 |
27-Jul-2025
|
few minor updates around out of band HTTPS download as well as AP manual image download |
1.0 |
23-Jun-2025
|
Initial Release |