Course contents

Unit 11: Lifecycle and deep troubleshootingLesson 11.6 (6 of 7 in this unit)56 of 63 in the Advanced Cisco SD-WAN course

Software upgrades, compatibility and rollback

Upgrade the fabric in waves: the controller-first compatibility rule, a recorded baseline, install, activate and confirm on an edge, and a rollback prepared for each layer.

Advanced · 18 min read

You'll learn to plan an SD-WAN upgrade as staged waves, apply the compatibility rule between controllers and edges, record a baseline, use install, activate and confirm correctly, and choose the rollback that fits each layer.

Technical definition

A staged SD-WAN upgrade moves the fabric to a new software release in a planned order, with a check between steps. The controllers move before the edges, a pilot site moves before the groups, the new image on an edge is confirmed only after the control connections and tunnels come back, and every layer has a way back that was prepared before the change started.

An upgrade is a staged change

An SD-WAN fabric is several kinds of device that depend on one another: the Manager, the Validator, the Controller and the edges. For some time during an upgrade they run different releases, and that mixed state is where most of the risk sits. The method is the same for every release: check, back up, install, activate, verify and only then confirm, one layer and one group at a time.

Diagram
Six steps for each device group
Six steps for each device group

Check compatibility, back up and record a baseline, install the image, activate it, verify against the baseline, then confirm.

  1. Checknotes andcompatibility
  2. Back upand recorda baseline
  3. Installimage copied,not running
  4. Activaterestart onnew image
  5. Verifycompare withthe baseline
  6. Confirmnew image isthe default
Install does not change what the device runs. Activate does. Confirm makes the new image permanent.

The rest of the lesson takes each part in turn. The earlier lifecycle lesson in the first SD-WAN course gives the short version of the order; this one adds the compatibility rule, the baseline, the confirm timer, the wave plan and a rollback for each layer.

Compatibility comes first

Two questions have to be answered from the release notes before anything is installed. Which releases can the controllers run together, and which edge releases do those controller releases support? The general rule is that the controllers run the same release as the edges or a newer one. An edge that is newer than its controllers is outside the supported order and can fail to build or hold its control connection.

Diagram
Which release is ahead matters
Which release is ahead matters

Controllers on the same release or newer than the edges is the supported order. An edge ahead of its controllers is outside it and may lose its control connection.

Controllers newerEdges on an older orthe same releaseSupported order
Edge newerControllers behindthe edgeOutside the order
This is why the edges are the last layer to move, and why a pilot edge must wait until the controllers are done.
Diagram
Compatibility checks before the change
Compatibility checks before the change
CheckWhy it mattersWhere to look
Controller and edge releasesControllers must be at the edges' release or newerRelease notes and compatibility information
Platform supportA router model may not support the target releaseHardware support list for the release
Features in useA template can use a feature the target release changes or removesRelease notes: new, changed and removed features
Upgrade pathSome jumps need an intermediate releaseUpgrade guide for the release
Disk spaceAn image cannot install without free space on the deviceStorage on each device before the copy
The rules differ between releases. Read the notes for the exact releases you are moving between.

Record a baseline before the first change

A pilot only proves something if you know what normal looked like. Write down a few counts before the change and compare the same counts after each wave. The counts are cheap to take, and they turn a vague feeling that the network seems fine into a measured result.

Diagram
The baseline is taken twice
The baseline is taken twice

Before the change, run the checks and save the output with the date. After each wave, run the same checks and compare them line by line with the saved copy.

Before the changeRun the five checksSave the output, dated
After each waveRun the same checksCompare line by line
The same commands are used both times, so any difference comes from the change and not from a different way of looking.
Diagram
The baseline to record
The baseline to record
ItemCommand or pageCompare after the change
Control connectionsshow sdwan control connectionsSame peers, state up
Tunnel sessionsshow sdwan bfd summarySessions up equals the baseline
Learned routesshow sdwan omp summaryRoutes received and installed match
Software stateshow sdwan softwareRight image active, one confirmed
Application checksA voice call and a business application testQuality as before
Save the output with the date. The same commands are the verification after each wave.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show sdwan bfd summary
SESSIONS-TOTAL  SESSIONS-UP  SESSIONS-MAX  SESSIONS-FLAP
4               4            4             0
Four tunnel sessions, all up, none flapping. After the upgrade the same router should show the same four sessions. If it shows three, the next question is which transport lost its tunnel, not whether the upgrade worked.

Take the safety copies at the same time. Back up the Manager configuration database and copy the file off the server. For controllers that run as virtual machines, take a snapshot of each one. These are the only way back for a controller, so check that they exist before the first activation.

Install, activate and confirm on an edge

Three words describe what an image on an edge can be. Installed means the file is on the device but the router is not running it. Activated means the router restarted on it. Confirmed means it is the default image, so a restart brings the router back on it. Between activation and confirmation the router is on trial: if its control connections do not return within a timer, it goes back to the previous default.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show sdwan software
VERSION    ACTIVE  DEFAULT  PREVIOUS  CONFIRMED  TIMESTAMP
20.9.4.1   true    true     false     user       2026-09-14T08:02:11
20.12.3    false   false    false     -          2026-11-07T01:15:40
Two images are installed. The older one is active, the default and confirmed. The newer one is only installed, so the router still runs the old release. Nothing has changed for users yet.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show sdwan software
VERSION    ACTIVE  DEFAULT  PREVIOUS  CONFIRMED  TIMESTAMP
20.9.4.1   false   true     true      user       2026-09-14T08:02:11
20.12.3    true    false    false     -          2026-11-07T01:15:40
After activation the router runs the new release, but it is not the default and it is not confirmed. The old image is marked as the previous one and is still the default. This is the trial state, and it ends one of two ways: the control connections return and the new image is confirmed, or the timer runs out and the router returns to the old image.
Diagram
The trial after activation
The trial after activation

The router restarts on the new image, brings up its control connections and tunnels, and is then confirmed. If the control connections do not return in time, it reverts to the old image.

  1. Activaterestart on thenew image
  2. Reconnectcontrol connectionscome back up
  3. Tunnelssessions returnto the baseline
  4. Confirmnew image becomesthe default
Confirm only after the verify step. Confirming too early removes the safety net.
request platform software sdwan software upgrade-confirm

One example of confirming an image from the CLI of an IOS XE SD-WAN router. Most engineers confirm from the Manager's software upgrade page, and the command name differs between platforms and releases, so copy the exact form from the guide for your release.

Install is the slow part, and it does not change what the router runs, so it can be done well before the change window. How long it takes depends on two limits: the speed of each branch link, and the share of the Manager's uplink that each copy gets when the Manager serves the image. The table uses example numbers, not measurements: a 600 MB image, branch links of 20 Mbps, and 200 Mbps of Manager uplink shared by every copy running at once, for 60 edges.

Diagram
Copy time for 60 edges (example numbers)
Copy time for 60 edges (example numbers)
Copies at onceTime for all 60 edgesEach copy runs atWhat limits it
1240 min20 MbpsThe branch link
460 min20 MbpsThe branch link
1024 min20 MbpsBoth limits meet
1224 min16.7 MbpsThe Manager uplink
2424 min8.3 MbpsThe Manager uplink
Assumed: 600 MB image, 20 Mbps branch links, 200 Mbps shared Manager uplink. Totals were computed by script. Real figures depend on the transport, the image size and where the image is served from.

Past ten copies at once the total stays at 24 minutes, because 60 images of 600 MB through 200 Mbps take that long however the copies are grouped. The plan can therefore copy ten at a time, start the copies well before the window, and run them outside business hours, since a copy also uses the link that carries user traffic. Activation stays in the small waves described next.

Move in waves, with a gate between them

The order inside the edges matters as much as the order of the layers. A wave is a group of devices that move together, followed by a gate: the checks that must pass before the next wave starts. A wave that fails stops the plan while it is still small.

Diagram
Waves from controllers to edges
Waves from controllers to edges

The Manager, Validator and Controller move first, one device at a time. Then a pilot edge, then small groups of edges by role, with the hub sites handled one at a time.

Upgrade plan
  • Controllersone deviceat a time
  • Pilot edgeone easy,low-risk site
  • Edge groupsby role, withone of each model
  • Hubsone hub at atime, quiet hours
Every wave ends with the same gate: baseline checks, then confirm, then the next wave.
Diagram
Waves and their gates
Waves and their gates
WaveWhat movesGate before the next wave
1Manager, then Validator, then ControllersEvery edge still shows its control connections up
2One pilot edgeBaseline matches, then confirm; watch for a full business day
3A small group of branches with mixed modelsCounts match for each site, no new alarms
4Remaining branches in groupsSame gate for each group
5Hubs, one at a time, in a quiet windowSpokes keep their tunnels to the other hub
Dual-router sites move one router at a time, so the site keeps a working path while the first one restarts.

Hubs deserve their own wave because every spoke has a tunnel to them. Move one hub while the other carries the traffic, confirm it, then move the second. A dual-hub design only protects the sites if the hubs are not restarted together.

A worked case: the pilot that reverted by itself

The plan moves the fabric from 20.9.4.1 to 20.12.3. At 01:20 the engineer activates the new image on the pilot edge BR-02 before the controllers have been upgraded, because the pilot window was free. Ten minutes later the router is back on 20.9.4.1 and the Manager reports the upgrade as failed.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show sdwan control connections
PEER TYPE  SYSTEM IP     SITE ID  LOCAL COLOR   STATE
vmanage    10.255.0.10   1        biz-internet  connect
vsmart     10.255.0.11   1        biz-internet  connect
During the trial the router stays in connect state and does not reach up. The path and the certificates did not change, so those are unlikely causes. The only thing that changed is the release on this one device, and it is now newer than both controllers.
Diagram
Evidence from the case
Evidence from the case

The pilot edge was activated before the controllers were upgraded. Its control connections stayed in connect. The timer expired and the router went back to the old image.

  1. Change20.12.3 activated on BR-02Controllers still on 20.9.x
  2. During the trialControl connections stay in connectPath and certificates unchanged
  3. After the timerRouter returned to 20.9.4.1New image still installed, not active
  4. CauseEdge newer than its controllersLayers upgraded out of order
The revert was the safety net working. The error was the order, not the image.

The repair is to put the order right. Upgrade the controllers first, verify every edge against the baseline, then activate the image on BR-02 again. The new image is still installed, so no copy is needed. Write the lesson into the plan too: the controller wave has a gate, and no edge is activated until it has passed.

Rolling back each layer

A rollback is a decision with a time limit, set before the change starts. The way back differs by layer, and only the edges have an automatic one.

Diagram
Four layers, four ways back
Four layers, four ways back

An edge on trial returns by itself when the timer runs out. A confirmed edge activates the previous image. A controller needs a snapshot or a rebuild. The Manager needs a database backup.

Rollback
  • Edge on trialthe timer returnsthe old image
  • Edge confirmedactivate theprevious image
  • Controllerrestore snapshot,or rebuild
  • Managerrestore thedatabase backup
Only the edge on trial has an automatic way back. Every other way back depends on what was prepared.
Diagram
The way back for each layer
The way back for each layer
LayerWay backPrepared before the change
Edge, not yet confirmedThe timer returns the router to the previous default imageA reachable control path for the check
Edge, already confirmedActivate the previous image if it is still installedKeep the old image on the device until the wave is done
ControllerRestore the virtual machine snapshot, or rebuild and restore the backupA snapshot and a copied backup for every controller
ManagerRestore the database backup on a Manager at the right releaseA tested backup file kept off the server
A controller has no timer. If the snapshot or the backup was not taken, there is no quick way back.

Set the decision point in the plan: if the verify step has not passed by a stated time, undo the change and investigate afterwards. A plan that has no time limit tends to turn a failed activation into a long night of small tries.

After the upgrade: first checks for common symptoms

When something looks wrong after a wave, read it from the bottom of the stack upwards. A fault at an early step explains the later ones, so the control connections are checked before the tunnels, and the tunnels before an application complaint.

Diagram
Read a symptom in this order
Read a symptom in this order

Check the control connections first, then the tunnel sessions, then the learned routes, then policy and templates, and last the application tests.

  1. Controlconnectionsup first
  2. Tunnelssessions vsbaseline
  3. RoutesOMP countsmatch
  4. Policytemplates andAAR classes
  5. Applicationcall and apptests
Each step depends on the one before it. A failure at an early step usually explains the ones after it.
Diagram
Symptoms and the first check
Symptoms and the first check
SymptomFirst checkCommon cause
Edge returns to the old imageControl connections during the trial; the release of the controllersEdge ahead of its controllers, or a lost control path
Image will not installFree storage on the device and the image for that modelNo space, or an image for another platform
Template push fails after the upgradeFeature support for the new release in the templateA feature or option changed in the target release
One transport lost its tunnelsBaseline tunnel count per transport, then the peer sideA transport setting that did not return as before
Application quality is worseThe application checks from the baseline, then the AAR pathA policy or class that was applied differently after the restart
Compare against the baseline first. A difference from the baseline is evidence; a feeling is not.

Learn more: Backup and Lifecycle ManagementSD-WAN Root-Cause FrameworkController and Certificate Failures

Test yourself

Predict · scenario 1

You plan to upgrade the fabric. Which order fits the compatibility rule?

Predict · scenario 2

An edge activated a new image, and its control connections stay in connect until the timer runs out. What happens next, and what is the best first check?

Predict · scenario 3

A controller virtual machine was upgraded and fails to start correctly. No snapshot was taken. What is the situation?

Predict · scenario 4

After a wave, BFD sessions at one site show 3 up where the baseline showed 4. What is the correct reading?

Predict · scenario 5

Sixty edges must receive a 600 MB image from the Manager. Each branch link is 20 Mbps and the Manager uplink of 200 Mbps is shared by every copy (example numbers). The engineer raises the copies running at once from 12 to 24. What happens to the total copy time?

Predict · scenario 6

A branch has two WAN Edge routers. The first has been activated and is on trial. When can the second router be activated?

Predict · scenario 7

In the worked case the pilot edge reverted by itself and the 20.12.3 image is still installed on it. The controllers have now been upgraded. What is the best next step?

FAQ

Why do the controllers move before the edges?
An edge can only use features that its controllers understand. A controller that runs an older release than the edges it serves may not support what those edges send, so the supported order keeps the controllers at the same release as the edges or newer. Check the release notes for the exact rule in your versions.
What does the confirm step protect against?
After an edge activates a new image it runs on a trial basis. If the control connections do not come back within a timer, the router returns to the previous default image by itself. Confirming marks the new image as the default, so confirm only after control connections and tunnels are healthy.
Can a controller be rolled back like an edge?
Not by a timer. A controller has no automatic return to the old image, so the way back is prepared first: a snapshot of the virtual machine and a backup of the configuration database. Take both before the change, and upgrade one controller at a time so another one keeps serving the edges.
How many sites should the pilot include?
One or two sites that are easy to reach and low in business risk, ideally of the same platform and transport design as the sites that follow. A pilot proves the image and the process, so a site that nobody can reach on the day is a poor choice.