Course contents

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

Deep OMP troubleshooting: trace a missing route

Follow one prefix from its source through the Controller to a branch in five checkpoints, read the codes and commands at each, and find the checkpoint where it is lost with the fewest checks.

Advanced · 20 min read

You'll learn to trace a route that is missing at a branch through five checkpoints, choose the command and the device that give evidence at each one, and find the checkpoint where the route is lost with the fewest checks.

Technical definition

Route trace is the method of following one prefix from the router that originates it, through the Controller, to the router that should use it, and asking at each checkpoint whether the route is still present. The first checkpoint where it is absent is where the fault is, and the cause is read from the codes and the configuration at that checkpoint.

Start at the source, not at the complaint

A user at BR-02 cannot reach a new network at BR-01. The first reflex is to open BR-02 and look at its route table. That check is fine, but all it can say is that the route is absent, and it does not say where it was lost. The route passes through several hands on its way: the router that advertises it, the Controller that ranks and filters it, and the router that finally installs it. A trace asks the same question at each of those places, and the answer changes from present to absent at exactly one point.

Diagram
Start at the symptom or at the source
Start at the symptom or at the source

Starting at the branch with the complaint shows only that the route is absent. Starting at the source and the Controller shows the last place that has the route, so the fault is between that place and the next.

At the symptomthe route is absent,the cause is unknown
At the sourcethe last place thathas the route
The Controller splits the path into two halves with one command.
Diagram
Checks needed to find a fault at one of five checkpoints (computed)
Checks needed to find a fault at one of five checkpoints (computed)
MethodWorst caseAverage
Start at the branch and step back toward the source5 checks3.8 checks
Start at the source and step forward5 checks3.0 checks
Check the middle first, then the half that holds the fault3 checks2.4 checks
Computed by script for five checkpoints, one fault, each position equally likely, a route that is present at every checkpoint before the fault and absent from the fault onward, and a check that says only present or absent. The assumptions are simple on purpose; real faults can also add or remove routes in the middle, such as an aggregate.

Five checkpoints and what each one proves

The path of a route can be cut into five checkpoints that follow the order of operations in the earlier lessons. At each checkpoint the route is either present or absent, and each has one place where the evidence is read.

Diagram
Five checkpoints from origin to branch
Five checkpoints from origin to branch

The route first has to enter OMP at the originating router. The Controller has to accept it through its inbound control policy, rank it, and advertise it to the branch through the outbound policy and the path limit. The branch has to resolve it and install it.

  1. Enteradvertised intoOMP at the source
  2. Acceptinbound policyon the Controller
  3. Rankstale, preferenceand tie-breakers
  4. Advertiseoutbound policyand path limit
  5. Installresolved TLOC,route in the VRF
A route that is absent at one checkpoint is absent at every later one.
Diagram
The checkpoints, the question and the command
The checkpoints, the question and the command
CheckpointQuestionWhere and what to runAbsent means
EnterDoes the source put the prefix into OMP?At the source, the prefix in the VRF table; on the Controller, show omp routes with the vpn and the received optionThe prefix did not leave the source, or its source was not advertised
AcceptDoes an inbound control policy reject it?On the Controller, show running-config policy control-policy and show running-config apply-policyA sequence or the default action rejects it on arrival
RankIs it chosen, and does it rank above the others?On the Controller, show omp routes with the prefix and the detail option, and the status codesIt is stale, outranked or looped
AdvertiseWas it sent to this branch?On the Controller, show omp routes with the vpn and the advertised detail optionAn outbound policy rejected it or the path limit was filled first
InstallIs the TLOC reachable and the route in the VRF?At the branch, show sdwan omp routes with the vpn, show sdwan omp tlocs, show sdwan bfd sessions and show ip route vrf with the VPNThe route is unresolved, or it is in OMP and not in the routing table
Command names as they appear in the Cisco documents read: the troubleshooting document 217479 (tested on 20.4.1 and 20.6.1), the preferred-route note 218112 (cEdge 17.3.3, Controller 20.4.2) and the active and standby note 220341 (17.6.3a, Controller 20.6.3). The exact options vary by release, so check the command reference.

From what you see to a likely cause

When a checkpoint shows the route absent, the status codes at the neighbouring checkpoint and a short list of causes narrow the search. Four families cover most cases.

Diagram
Four reasons a route is missing at the branch
Four reasons a route is missing at the branch

The route did not enter OMP, a policy filtered it, the ranking or the path limit left it out, or it arrived but could not be resolved or installed.

Route missing at the branch
  • Not enteredthe source was notadvertised into OMP
  • Filteredan inbound or outboundcontrol policy
  • Left outstale, outrankedor past the path limit
  • UnusableTLOC unresolved ornot installed
Each reason has a different checkpoint and a different place to fix it.
Diagram
Evidence and likely cause
Evidence and likely cause
What you seeLikely causeWhere to fix it
The prefix is in the source VRF and absent from the Controller's received routesThat kind of source is not advertised into OMP; connected, static, BGP and external OSPF routes are not advertised by default in the 26.x guideThe advertise settings of the VPN on the source router
Present in the Controller's received routes and absent from its tableA sequence of the inbound control policy or its default action rejects itThe control policy and the site list it is applied to, on the Controller
In the Controller's table with the chosen code and absent from the advertised view for the branchThe outbound control policy rejected it, or the send path limit was filled by other routesThe outbound sequences, the path limit and the preferences of the competing routes
In the Controller's table with the stale codeThe control connection to the originating router is lost and its routes are heldThe control path of the originator, not the policy
In the branch's OMP table with the unresolved codeThe TLOC cannot be reached, or the tunnel to it is downThe TLOC table, BFD sessions and the transport
In the branch's OMP table as chosen, installed and resolved, and traffic still failsThe fault is past the overlay: the next hop, the service side or a data policyThe far-end service VPN, as in the quiet blackholes lesson
Codes as printed in the legend of Cisco document 217479 (C chosen, I installed, R resolved, S stale, U TLOC unresolved). The causes are a study aid based on the order of operations and the Cisco notes; they are not a complete list. A control policy stays on the Controller, so the policy rows are read there.
Diagram
Which device holds which evidence
Which device holds which evidence

The originating router holds the local routing table and its advertise settings. The Controller holds the received routes, the control policy, the ranked table and the advertised view per branch. The branch holds the OMP table it received, the TLOC and BFD state and its routing table.

  1. Source routerLocal routing tableAdvertise settings per VPN
  2. ControllerReceived, ranked, advertisedControl policy and where applied
  3. Branch routerOMP table as receivedTLOC, BFD and the VRF table
Control policy cannot be read on the edge routers, so the Controller is the main witness.

A worked case: the new network that nobody can reach

BR-01 (site 101) adds a new LAN, 10.30.1.0/24, on a VLAN interface in VPN 10. Users at BR-02 (site 102) cannot reach it, although every older BR-01 network works. The route is absent at BR-02, which fits any of the four families, so the trace goes to the Controller first, the middle of the path.

Example output written for this lesson, simplified; real output has more fields and a different layout
Controller#show omp routes vpn 10 10.30.1.0/24 received
VPN  PREFIX         FROM PEER    ORIGINATOR  TLOC COLOR    STATUS
(no entries)
The Controller has not received the prefix from BR-01 at all. That removes the policy and the ranking from the search, because nothing arrived to be filtered or ranked, and it points at the source or at the session between the source and the Controller. The older BR-01 prefixes are still present, so the session is up.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show ip route vrf 10 10.30.1.0 255.255.255.0
Routing entry for 10.30.1.0/24
  Known via "connected", distance 0, metric 0 (connected, via interface)
  Routing Descriptor Blocks:
  * directly connected, via Vlan30
The new network exists at BR-01 and was learned as a connected route. The older LANs of BR-01 are learned from BGP, and the VPN 10 settings of BR-01 advertise BGP into OMP and nothing else. In the 26.x guide connected routes are not advertised into OMP by default, so this prefix did not leave BR-01.
Diagram
Evidence from the case
Evidence from the case

At the branch the route is absent. At the Controller the received view has no entry for the prefix. At the source the prefix is in the VPN 10 table as a connected route, and the advertise settings of the VPN cover BGP only. The prefix did not enter OMP.

  1. BR-02Route absentSymptom, cause unknown
  2. ControllerNo entry receivedPolicy and ranking ruled out
  3. BR-01Connected route in VPN 10Advertise covers BGP only
  4. FixAdvertise the connected routeVerify at BR-02
Two checks, one at the middle and one at the source, found the checkpoint.

The repair is to advertise connected routes for VPN 10 on BR-01, or to move the new network into the routing protocol that BR-01 already advertises. Before switching connected advertisement on, list the connected networks in that VPN, because every one of them could enter OMP, including a transit or management network that was not meant to be advertised. A prefix filter on the advertisement, where the release offers one, keeps the change to the one network. Then repeat the trace at BR-02 to confirm that the route arrived and installed.

Diagram
Routes from BR-01 in the Controller table (computed, invented sizes)
Routes from BR-01 in the Controller table (computed, invented sizes)
StatePrefixes advertisedRoutes at 2 TLOCs each
Before: 5 BGP networks advertised, 1 connected network not510
After: connected advertisement added for the new network612
Computed by script as prefixes times 2 TLOCs. The prefix counts are invented for the case and the table counts route entries and not OMP messages. If connected advertisement also brings in other connected networks of the VPN, the count rises with them, which is why the connected list is read first.

The case needed two checks and one look at the configuration, against the five that a walk from the branch can take. The Controller's received view did the work: a route absent there is absent for a reason on the source side, and a route present there but absent from its table or its advertised view points to the policy.

Learn more: OMP State and Update ProcessingRoute Policy, Summarization and PreferenceLayered Root-Cause FrameworkOMP and BFD Route and Tunnel Fault Isolation

Test yourself

Predict · scenario 1

A fault sits at exactly one of five checkpoints, and each check says only whether the route is present. In the worst case, how many checks does it take when the middle is checked first and the half with the fault is searched next?

Predict · scenario 2

According to the Cisco notes read, where should a centralized control policy be read?

Predict · scenario 3

BR-01 advertises BGP into OMP in VPN 10 and nothing else. A new LAN on BR-01 is a connected interface. What happens to its prefix, with the defaults of the 26.x guide?

Predict · scenario 4

A route is in the Controller's table with the codes C, I and R but is absent at BR-02. Which checkpoint is the most likely cause?

Predict · scenario 5

A route at BR-02 shows the code U. What is the best next check?

Predict · scenario 6

Which command from the Cisco notes shows what the Controller advertises for a VPN?

Predict · scenario 7

Before switching on connected advertisement for VPN 10 on BR-01, which check is sensible?

Predict · scenario 8

The Cisco troubleshooting document uses a debug of the OMP policy decisions for one prefix. What is a sensible way to use it?

FAQ

Where does a route trace start?
At the router that should originate the route, with a check that the prefix is in its own routing table, and then at the Controller. Starting at the branch with the complaint shows only that the route is absent. The Controller shows whether the route ever arrived, and that splits the path into two halves.
Why read control policy on the Controller?
Cisco's notes keep centralized control policy on the Controller. It is not pushed to the edge routers, and one of the notes says that the policy commands run on an edge do not show it. The configuration and the applied policy have to be read on the Controller.
Does the chosen code mean the route reached the branch?
No. In the Cisco document read, the outbound control policy and the send path limit come after the ranking, so a route can be chosen on the Controller and still not be advertised to a given branch. The advertised view on the Controller shows what was sent.
Is the debug command safe to run?
The Cisco troubleshooting document uses a debug of the OMP policy decisions for one prefix, which writes to a log file on the Controller. Debug output has a cost on a busy Controller, so it belongs in a lab or a change window, with the log read afterwards and the debug switched off.
Do the commands differ between releases?
They can. The commands in this lesson are as the Cisco notes name them, for the releases those notes were tested on, from 17.3 and 20.3 up to 20.6 on the edge and Controller. The routing guide for releases 26.x and later was read for the defaults only. Check the command reference for the release in use.