Course contents

Unit 2: Advanced OMP and TLOCLesson 2.1 (1 of 8 in this unit)6 of 63 in the Advanced Cisco SD-WAN course

OMP state and update processing

Read an OMP route table as the output of an ordered pipeline: the order of operations, the status legend, stale routes and timers, policy before the path limit, and the size of Controller state.

Advanced · 24 min read

You'll learn to read an OMP route table as the output of an ordered pipeline, explain why a stale route loses before preference is compared, and estimate how much route state a Controller holds and has to update.

Technical definition

OMP route state is the condition a route is in at a given moment: received, usable, stale, chosen, installed, filtered by policy or advertised. A Controller passes every route through the same ordered checks, and the status codes in the command output show where each route stands.

A route table is a snapshot of a pipeline

An engineer reads show omp routes and sees several lines for one prefix. The usual first move is to compare the preference column and pick the biggest number. That works until a route with a high preference is not the one in use. The table is the end of a sequence of checks, and each line carries a status code that says how far that route got. Reading the sequence first makes the codes and the surprises easy to explain.

Diagram
A list of routes against a pipeline
A list of routes against a pipeline

Reading the table as a list suggests that the biggest preference value wins. Reading it as a pipeline means asking which ordered check removed or ranked each route, and the status code shows the answer.

A list of routesread the preference,pick the biggest
A pipelineordered checks decidewhich routes survive
The status code is the trace of the pipeline for each route.

The order of operations on a Controller

Cisco publishes a troubleshooting document on OMP best-path selection (document 217479, revision 4.0 of April 2026). Its authors tested the scenarios on Controller software 20.4.1 and 20.6.1, so later releases and other platforms can differ. The document gives one ordered list that runs from the first ranking test to the path limit. The list is useful because it puts the steps that most engineers learn separately, ranking, outbound policy and the send path limit, in one sequence.

Diagram
Four stages on the way to an edge
Four stages on the way to an edge

The Controller receives routes from edges and peers, ranks them with the best-path steps, removes the ones that the outbound control policy rejects, and then advertises no more than the send path limit.

  1. Receiveroutes from edgesand from peers
  2. Rankbest-path stepsorder the routes
  3. Filteroutbound policyremoves rejects
  4. Limitsend path limitcaps the paths
The path limit counts only what survived the policy.
Diagram
The eleven steps as the document lists them
The eleven steps as the document lists them
StepQuestion askedWhat winsNote
1 Stale stateIs the route current?A route that is not staleA stale route ranks below every current one, whatever its preference
2 ResolvabilityCan the next-hop TLOC be reached?ReachableA pass or fail test, so the document gives no direction
3 Route preferenceHow strongly was the route advertised?Highest valueCovered in the best-path lesson
4 TLOC preferenceHow strongly is this transport preferred?Highest valueCompared only after route preference ties
5 Origin codeWhat kind of route was it at its origin?Best code in the listed orderThe document lists the codes from Connected and Static through the routing protocols to Unknown and gives no numbers
6 Route sourceDid an edge or another Controller send it?The edge-sourced routeApplies on a Controller
7 Origin metricWhat was the metric at the origin?Lowest valueA tie-breaker that sorts and does not remove routes
8 System IPWhich sender has the lowest System IP?Lowest addressThe earlier lesson left the direction open; this document says lowest
9 TLOC identifierTLOC address, then colour, then encapsulationLowest valueThe last ranking step
10 Outbound policyDoes the control policy toward this edge reject it?A route that is not rejectedRejected routes are removed before the limit
11 Send path limitHow many paths may go to this edge?The first routes in order, up to the limitCounts only the routes that survived step 10
Order and directions as printed in Cisco document 217479 (revision 4.0, 28 April 2026), tested by its authors on 20.4.1 and 20.6.1. The document lists no administrative distance step; the best-path lesson counts that check under usable. The send path limit default and the equal-cost install limit are not stated on the page, so read them on the device.

Steps 1 and 2 decide whether a route takes part, steps 3 to 9 rank it, and steps 10 and 11 decide whether the ranked route is passed on. A change that works on one stage cannot repair a fault on another, which is why a raised preference does nothing for a stale route.

Reading the status legend

The output of show omp routes in the document prints a legend of twelve codes. Some are familiar from the earlier OMP lessons. Others, such as stale, staged and on-demand inactive, appear in the situations that trigger the most questions. Grouping the codes by what they report helps in remembering them.

Diagram
Twelve codes in four families
Twelve codes in four families

Decision codes report whether a route was chosen, installed, resolved or unresolved. History codes report stale, staged and on-demand inactive. Filter codes report rejected, invalid and looped. Origin codes report redistributed and extranet.

  1. DecisionC chosen, I installedR resolved, U TLOC unresolved
  2. HistoryS stale, Stg stagedIA on-demand inactive
  3. FilteredRej rejected, Inv invalidL looped
  4. OriginRed redistributedExt extranet
The legend is a flat list. The families are a study aid.
Diagram
The legend, with a first question for each code
The legend, with a first question for each code
CodePrinted meaningWhere it is coveredFirst question when it shows
CChosenBest-path selectionDid it win, or tie with another route?
IInstalledEligible routes and resolutionIs it also resolved?
RResolvedEligible routes and resolutionWhich route beat it, if it is not chosen?
UTLOC unresolvedOMP route attributesIs there a working tunnel to that TLOC?
SStaleThis lesson and blackholesIs the control connection to the originator lost?
StgStagedNot explained on the pages readLook it up in the command reference for the release
IAOn-demand inactiveOn-demand tunnelsIs the on-demand tunnel idle by design?
InvInvalidOMP route attributesIs the advertisement itself valid?
RejRejectedOMP route attributesWhich control policy rejected it?
LLoopedRedistribution, tags and loopsDid the route come back to its own site?
RedRedistributedOMP route typesWhich protocol did it come from?
ExtExtranetInter-VPN route leakingWas the route leaked from another VPN?
Printed meanings from the legend in Cisco document 217479; the legend in document 218089 prints the same twelve codes. The last column is study advice and not documentation, and neither page explains the staged code. Codes and wording vary with the release.

Timers that decide how long state lives

Route state does not disappear when a peer does. The control connection has a hold time, and the routes of a lost peer are kept for a graceful restart period so that traffic keeps moving while the peer returns. The Manager API publishes these timers with defaults. The table shows the schema for release 26.2. The plain reading in the last column is taken from the field names and is not defined in the sources read, so it is marked as assumed.

Diagram
OMP timers in the release 26.2 schema
OMP timers in the release 26.2 schema
TimerDefaultRangePlain reading (assumed)
Hold time300 seconds0 to 65,535How long a peer may stay silent before the session is declared down
Graceful restart timer43,200 seconds (12 hours)1 to 31,556,952How long the routes of a lost peer are kept as stale
End-of-RIB timer300 seconds1 to 3,600A wait related to the end-of-RIB marker; the role is not confirmed
Advertisement interval1 second0 to 65,535Spacing between route advertisements; not confirmed
Defaults and ranges from the Cisco DevNet Manager API schema for the OMP timers, release 26.2. The Cisco routing guide for releases 26.x and later agrees on the graceful restart timer and the end-of-RIB timer, states that graceful restart is enabled by default, and gives hold time defaults that differ by release: 60 seconds before 20.12.1, 300 seconds from 20.12.1 to 20.15.x, 5,400 seconds in 20.16.x and 300 seconds from 20.18. The lab configuration in Cisco document 217479 uses no graceful-restart, so it can be turned off. The keepalive timer and the side each timer applies to were not confirmed. Read the configured values from the device.
Diagram
From a lost connection to a removed route
From a lost connection to a removed route

The control connection is lost. The hold time runs, and when it ends the peer is treated as down and its routes turn stale. The routes rank below every current route while the graceful restart timer runs, and they are removed when it ends if the peer has not returned.

  1. Lossthe controlconnection drops
  2. Hold timesilence istolerated
  3. Stalekept, rankedlast
  4. Removedif the peerhas not returned
Two timers in series, under the assumed readings.

A worked case: preference 200 and still not used

HUB-01 carries route preference 200 for 10.20.1.0/24 and HUB-02 carries 100, so BR-02 should use HUB-01. After a change window on HUB-01's WAN link, the users at BR-02 report that traffic goes to HUB-02. HUB-01's tunnels to the branches are up, which makes the engineer suspect a preference that did not apply. The table on the Controller says otherwise.

Example output written for this lesson, simplified; real output has more fields and a different layout
Controller#show omp routes 10.20.1.0/24
VPN  PREFIX         ORIGINATOR  TLOC COLOR    ROUTE-PREF  STATUS
10   10.20.1.0/24   10.255.1.1  mpls          200         S,R
10   10.20.1.0/24   10.255.1.1  biz-internet  200         S,R
10   10.20.1.0/24   10.255.1.2  mpls          100         C,I,R
10   10.20.1.0/24   10.255.1.2  biz-internet  100         C,I,R
HUB-01's two routes show S for stale. HUB-02's two routes are chosen. The Controller has lost its OMP session with HUB-01, but the data tunnels to HUB-01 stayed up, so BFD looks healthy. The stale routes rank below the current ones at step 1, and the preference of 200 is not compared.
Diagram
Evidence from the case
Evidence from the case

HUB-01 routes show S for stale and carry route preference 200. HUB-02 routes show C, I and R and carry route preference 100. The data tunnels to HUB-01 are up. The control connection from HUB-01 to the Controller is down. Raising the preference on HUB-01 changes nothing, because the stale step is compared first.

  1. HUB-01 routesPreference 200, status SStale, so ranked last
  2. HUB-02 routesPreference 100, status C,I,RCurrent, so chosen
  3. Data planeTunnels to HUB-01 are upBFD cannot show the fault
  4. First fixRaise preference on HUB-01No effect: stale is compared first
  5. Real fixRestore HUB-01 to ControllerRoutes turn current again
The preference was correct. The state of the routes was not.

The repair is on the control path, not on the policy: restore the OMP session between HUB-01 and the Controller. The routes then become current, rank first on preference again, and traffic returns to HUB-01. The next table shows how long the stale routes would have stayed if HUB-01 had not returned.

Diagram
Timeline from the loss of the session (computed)
Timeline from the loss of the session (computed)
EventExample timeElapsed since the loss
The OMP session between HUB-01 and the Controller is lost14:05:000
The hold time of 300 seconds ends, HUB-01 is treated as down and its routes turn stale14:10:005 minutes
Traffic for 10.20.1.0/24 moves to HUB-0214:10:00 or soon afterAbout 5 minutes
The graceful restart timer of 43,200 seconds ends and the stale routes are removed02:10:00 on the next day12 hours 5 minutes
Computed by script from the release 26.2 defaults, with the two timers assumed to run one after the other and the routes assumed to turn stale when the hold time ends. The sources read do not confirm either assumption, and the real timers may differ, so read the configured values and repeat the arithmetic.

Policy before the limit, and where a route came from

The last two steps of the list decide which of the ranked routes an edge receives. In document 217479 the outbound control policy runs first and removes the routes it rejects. The send path limit then keeps the first routes that are left. With four equal routes, two hubs with two transports each, the result depends on both settings and on the order they run in.

One caution applies. Cisco document 218089, updated in August 2022 and written from a lab with Controllers on release 20.6.3, describes a failover case in which the four best routes are chosen first and the outbound policy then rejects them. That reads as the limit running first, the opposite of the order above. The two notes are not reconciled here, so the order on a given release is best confirmed with a test, which the lesson on path limits and backup paths sets out.

Diagram
Four equal routes, four outcomes
Four equal routes, four outcomes

With a send path limit of 2 and no policy, the two HUB-01 routes are advertised, because the lowest System IP is ranked first. With the same limit and a policy that rejects HUB-01, the two HUB-02 routes are advertised. With a limit of 4, all four are advertised. With a limit of 1, one HUB-01 route is advertised.

Four equal routes
  • Limit 2both HUB-01routes
  • Limit 2, policyrejects HUB-01:both HUB-02 routes
  • Limit 4all fourroutes
  • Limit 1one HUB-01route
The limit is applied to the routes that remain after the policy.
Diagram
What reaches BR-02 (computed)
What reaches BR-02 (computed)
SettingRoutes advertised to BR-02Why
Limit 2, no policyHUB-01 mpls, HUB-01 biz-internetHUB-01 has the lowest System IP, 10.255.1.1, so its routes are first
Limit 2, policy rejects HUB-01HUB-02 mpls, HUB-02 biz-internetThe rejects are removed first, so HUB-02 fills the limit
Limit 4, no policyAll four routesThe limit is not reached
Limit 1, no policyOne HUB-01 routeWhich of the two depends on the TLOC tie-break at step 9
For contrast: limit first, then policyNoneNot the order printed in document 217479; HUB-01 would fill the limit and the policy would then remove both
Worked out by script with a simplified model: equal routes through step 7, then lowest System IP, with the policy applied before the limit as document 217479 describes. The last row shows why the order matters; document 218089 can be read as describing that order for one failover case. Which HUB-01 route comes first at limit 1 is not decided here.
Diagram
Four surprises that the document explains
Four surprises that the document explains
SurpriseWhat it meansWhere to look
A route has the chosen code and is not advertisedThe limit and the policy come after the rankingshow omp routes with the prefix and advertised detail
A site does not receive its own prefix backSplit horizon, so there is no faultNothing to fix
A Controller holds two copies of a route, one from an edge and one from another ControllerThe edge-sourced copy wins, so the Controller leaves its Controller-learned copy out of what it sends to an edgeshow omp routes with the prefix and detail
An edge receives both routes of a prefixIt is connected to two Controllers, and each one advertisesThe number of control connections per edge
Behaviour described in Cisco document 217479 for the releases it tested. The commands named there are show omp routes with a prefix and the detail option, the advertised detail option, and show omp tlocs ip with the received option. The document also uses a debug of the OMP policy decisions for a prefix, which writes to a log on the Controller; use it in a lab or a change window and not on a busy production Controller.

How much state a Controller holds and updates

Every extra route is state that a Controller stores for each edge it serves and re-sends when the route changes. A small model shows the scale. Assume 1,000 sites, of which 2 are hubs, one service VPN, and every edge connected to this Controller. Each of the 998 branches advertises 40 prefixes through 2 TLOCs, which makes 80 routes per branch. The 2 hubs both advertise the same 50 data-centre prefixes, which makes 4 routes per prefix. The sizes are invented for the model.

Diagram
Full advertisement against a hub-and-spoke policy
Full advertisement against a hub-and-spoke policy

With full advertisement, every branch learns the prefixes of every other branch. With a control policy that gives branches only the hub prefixes, each branch learns the data-centre prefixes alone, and branch traffic crosses a hub.

Full advertisementeach branch learnsevery other branch
Hub-and-spoke policyeach branch learnsonly the hub prefixes
The policy cuts the state by moving the work to the hub path.
Diagram
Entries the Controller sends (computed, invented sizes)
Entries the Controller sends (computed, invented sizes)
Design and send path limitTo one branchTo all 1,000 edges
Full advertisement, limit 139,93039,930,000
Full advertisement, limit 279,86079,860,000
Full advertisement, limit 479,96079,960,000
Hub-and-spoke policy, limit 15050,000
Hub-and-spoke policy, limit 2100100,000
Hub-and-spoke policy, limit 4200200,000
Computed by script. A branch prefix has 2 routes and a data-centre prefix has 4, so the limit changes little in a full advertisement beyond 2, and a branch sees 997 other branches. The model counts route entries and not OMP messages, because the sources read do not say how entries are packed. The Controller itself receives 80,040 routes from the edges. Sizes are invented, and real limits come from the platform datasheet and release notes.

A second question is what happens when a site flaps. Every change has to reach each edge that holds the route. A branch with 80 routes that flaps under a full advertisement has to be updated on 999 edges. Under the hub-and-spoke policy it reaches only the 2 hubs. A hub flap costs the same under either design, because every branch needs the hub routes.

Diagram
Entries to update when one site flaps (computed, invented sizes)
Entries to update when one site flaps (computed, invented sizes)
Site that flapsRoutes that changeEntries, full advertisementEntries, hub-and-spoke policy
One branch80 (40 prefixes, 2 TLOCs)79,920 (999 edges)160 (2 hubs)
One hub100 (50 prefixes, 2 TLOCs)99,900 (999 edges)99,900 (999 edges)
Computed by script as changed routes times receiving edges, with a send path limit of at least 2 so that every route is sent. A branch flap is about 500 times cheaper under the policy. The saving is paid for by branch-to-branch traffic crossing a hub, which is a design decision and not a free gain.

Learn more: Best-Path Selection: Preference and Tie-BreakersOMP Peers and ExchangesEligible Routes and ResolutionQuiet Blackholes and TLOC Resolution

Test yourself

Predict · scenario 1

In the Cisco order of operations read for this lesson, which check comes first?

Predict · scenario 2

At the Controller, HUB-01's routes for a prefix are stale and carry route preference 200. HUB-02's routes are current and carry route preference 100. Which routes are preferred?

Predict · scenario 3

Under the order printed in Cisco document 217479, the send path limit is 2 and the outbound policy toward BR-02 rejects HUB-01's routes. HUB-01 has the lower System IP. Which routes does BR-02 receive?

Predict · scenario 4

A route at BR-02 shows the code IA. What does the legend print for it?

Predict · scenario 5

The OMP session is lost at 14:05:00. The hold time is 300 seconds and the graceful restart timer is 43,200 seconds, run one after the other, and the peer does not return. When are the stale routes removed?

Predict · scenario 6

Which of these is NOT a step in the Cisco order of operations read for this lesson?

Predict · scenario 7

In the model, a branch receives 79,960 entries under a full advertisement with a limit of 4, and 200 under a hub-and-spoke policy. About how much smaller is the second figure?

Predict · scenario 8

A Controller holds two copies of a prefix, one sent by an edge and one sent by another Controller. Which copy wins, and what is the effect?

FAQ

Does a chosen route reach every edge?
No. In the Cisco document read, the outbound control policy and the send path limit come after the ranking steps, so a route can carry the chosen code and still not be advertised to a given edge. Check the advertised routes on the Controller as well as the table.
Where is administrative distance in the order?
The Cisco document read lists no administrative distance step in its order of operations. Other references mention it as a local check on an edge. Treat it as separate from the Controller ranking, and confirm the behaviour in the documentation for the release in use.
Is a stale route removed as soon as a peer is lost?
No. It is kept for the graceful restart period so that traffic can continue, and it ranks below every route that is not stale. The default in the release 26.2 configuration schema is 43,200 seconds, which is 12 hours, but the value in use has to be read from the configuration.
Which timer values apply to a given network?
The values in this lesson come from the Manager API schema for release 26.2. The Cisco routing guide for releases 26.x and later lists the hold time default by release: 60 seconds before 20.12.1, 300 seconds from 20.12.1 to 20.15.x, 5,400 seconds in 20.16.x and 300 seconds from 20.18, with IOS XE values of 5,400 seconds in 17.16.x and 300 seconds from 17.18.1. Defaults therefore differ between releases, so read the configured values from the device or the template before using them in a calculation.
Is route state the same on an edge and on a Controller?
Not exactly. The order of operations in the document read describes a Controller. An edge also depends on its own tunnels, so a route can be resolved on a Controller and unresolved at an edge. The lesson on eligible routes covers the edge side.