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.
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.
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.
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.
- Receiveroutes from edgesand from peers
- Rankbest-path stepsorder the routes
- Filteroutbound policyremoves rejects
- Limitsend path limitcaps the paths
| Step | Question asked | What wins | Note |
|---|---|---|---|
| 1 Stale state | Is the route current? | A route that is not stale | A stale route ranks below every current one, whatever its preference |
| 2 Resolvability | Can the next-hop TLOC be reached? | Reachable | A pass or fail test, so the document gives no direction |
| 3 Route preference | How strongly was the route advertised? | Highest value | Covered in the best-path lesson |
| 4 TLOC preference | How strongly is this transport preferred? | Highest value | Compared only after route preference ties |
| 5 Origin code | What kind of route was it at its origin? | Best code in the listed order | The document lists the codes from Connected and Static through the routing protocols to Unknown and gives no numbers |
| 6 Route source | Did an edge or another Controller send it? | The edge-sourced route | Applies on a Controller |
| 7 Origin metric | What was the metric at the origin? | Lowest value | A tie-breaker that sorts and does not remove routes |
| 8 System IP | Which sender has the lowest System IP? | Lowest address | The earlier lesson left the direction open; this document says lowest |
| 9 TLOC identifier | TLOC address, then colour, then encapsulation | Lowest value | The last ranking step |
| 10 Outbound policy | Does the control policy toward this edge reject it? | A route that is not rejected | Rejected routes are removed before the limit |
| 11 Send path limit | How many paths may go to this edge? | The first routes in order, up to the limit | Counts only the routes that survived step 10 |
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.
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.
- DecisionC chosen, I installedR resolved, U TLOC unresolved
- HistoryS stale, Stg stagedIA on-demand inactive
- FilteredRej rejected, Inv invalidL looped
- OriginRed redistributedExt extranet
| Code | Printed meaning | Where it is covered | First question when it shows |
|---|---|---|---|
| C | Chosen | Best-path selection | Did it win, or tie with another route? |
| I | Installed | Eligible routes and resolution | Is it also resolved? |
| R | Resolved | Eligible routes and resolution | Which route beat it, if it is not chosen? |
| U | TLOC unresolved | OMP route attributes | Is there a working tunnel to that TLOC? |
| S | Stale | This lesson and blackholes | Is the control connection to the originator lost? |
| Stg | Staged | Not explained on the pages read | Look it up in the command reference for the release |
| IA | On-demand inactive | On-demand tunnels | Is the on-demand tunnel idle by design? |
| Inv | Invalid | OMP route attributes | Is the advertisement itself valid? |
| Rej | Rejected | OMP route attributes | Which control policy rejected it? |
| L | Looped | Redistribution, tags and loops | Did the route come back to its own site? |
| Red | Redistributed | OMP route types | Which protocol did it come from? |
| Ext | Extranet | Inter-VPN route leaking | Was the route leaked from another VPN? |
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.
| Timer | Default | Range | Plain reading (assumed) |
|---|---|---|---|
| Hold time | 300 seconds | 0 to 65,535 | How long a peer may stay silent before the session is declared down |
| Graceful restart timer | 43,200 seconds (12 hours) | 1 to 31,556,952 | How long the routes of a lost peer are kept as stale |
| End-of-RIB timer | 300 seconds | 1 to 3,600 | A wait related to the end-of-RIB marker; the role is not confirmed |
| Advertisement interval | 1 second | 0 to 65,535 | Spacing between route advertisements; not confirmed |
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.
- Lossthe controlconnection drops
- Hold timesilence istolerated
- Stalekept, rankedlast
- Removedif the peerhas not returned
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.
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 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.
- HUB-01 routesPreference 200, status SStale, so ranked last
- HUB-02 routesPreference 100, status C,I,RCurrent, so chosen
- Data planeTunnels to HUB-01 are upBFD cannot show the fault
- First fixRaise preference on HUB-01No effect: stale is compared first
- Real fixRestore HUB-01 to ControllerRoutes turn current again
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.
| Event | Example time | Elapsed since the loss |
|---|---|---|
| The OMP session between HUB-01 and the Controller is lost | 14:05:00 | 0 |
| The hold time of 300 seconds ends, HUB-01 is treated as down and its routes turn stale | 14:10:00 | 5 minutes |
| Traffic for 10.20.1.0/24 moves to HUB-02 | 14:10:00 or soon after | About 5 minutes |
| The graceful restart timer of 43,200 seconds ends and the stale routes are removed | 02:10:00 on the next day | 12 hours 5 minutes |
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.
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.
- Limit 2both HUB-01routes
- Limit 2, policyrejects HUB-01:both HUB-02 routes
- Limit 4all fourroutes
- Limit 1one HUB-01route
| Setting | Routes advertised to BR-02 | Why |
|---|---|---|
| Limit 2, no policy | HUB-01 mpls, HUB-01 biz-internet | HUB-01 has the lowest System IP, 10.255.1.1, so its routes are first |
| Limit 2, policy rejects HUB-01 | HUB-02 mpls, HUB-02 biz-internet | The rejects are removed first, so HUB-02 fills the limit |
| Limit 4, no policy | All four routes | The limit is not reached |
| Limit 1, no policy | One HUB-01 route | Which of the two depends on the TLOC tie-break at step 9 |
| For contrast: limit first, then policy | None | Not the order printed in document 217479; HUB-01 would fill the limit and the policy would then remove both |
| Surprise | What it means | Where to look |
|---|---|---|
| A route has the chosen code and is not advertised | The limit and the policy come after the ranking | show omp routes with the prefix and advertised detail |
| A site does not receive its own prefix back | Split horizon, so there is no fault | Nothing to fix |
| A Controller holds two copies of a route, one from an edge and one from another Controller | The edge-sourced copy wins, so the Controller leaves its Controller-learned copy out of what it sends to an edge | show omp routes with the prefix and detail |
| An edge receives both routes of a prefix | It is connected to two Controllers, and each one advertises | The number of control connections per edge |
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.
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.
| Design and send path limit | To one branch | To all 1,000 edges |
|---|---|---|
| Full advertisement, limit 1 | 39,930 | 39,930,000 |
| Full advertisement, limit 2 | 79,860 | 79,860,000 |
| Full advertisement, limit 4 | 79,960 | 79,960,000 |
| Hub-and-spoke policy, limit 1 | 50 | 50,000 |
| Hub-and-spoke policy, limit 2 | 100 | 100,000 |
| Hub-and-spoke policy, limit 4 | 200 | 200,000 |
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.
| Site that flaps | Routes that change | Entries, full advertisement | Entries, hub-and-spoke policy |
|---|---|---|---|
| One branch | 80 (40 prefixes, 2 TLOCs) | 79,920 (999 edges) | 160 (2 hubs) |
| One hub | 100 (50 prefixes, 2 TLOCs) | 99,900 (999 edges) | 99,900 (999 edges) |
Learn more: Best-Path Selection: Preference and Tie-BreakersOMP Peers and ExchangesEligible Routes and ResolutionQuiet Blackholes and TLOC Resolution
Test yourself
In the Cisco order of operations read for this lesson, which check comes first?
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?
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?
A route at BR-02 shows the code IA. What does the legend print for it?
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?
Which of these is NOT a step in the Cisco order of operations read for this lesson?
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?
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?