Course contents

Unit 9: Monitoring and troubleshootingLesson 9.4 (4 of 5 in this unit)56 of 62 in the Cisco SD-WAN course

OMP/BFD route and tunnel fault isolation

Following a missing prefix or tunnel through control, OMP, TLOC resolution, BFD and forwarding to the first place it fails.

Advanced · 14 min read

You'll learn to follow a missing prefix or tunnel through OMP and BFD to the first point where it disappears, and name the likely cause at that point.

Technical definition

Fault isolation is the practice of narrowing a symptom to one place in a known path. In Cisco SD-WAN the path of a user packet depends on four things in order: control connections, a route learned over OMP, a TLOC that resolves and has a BFD session up, and a forwarding decision on the edge. The first one that fails is the fault.

The case

Users at BR-01 (LAN 192.168.20.0/24) cannot reach a server at HUB-01 (LAN 192.168.10.0/24) in service VPN 10. The server is up. The lesson follows the path in the order a packet needs it, and at each step says what a good and a bad answer looks like.

Diagram
Path of a user packet
Path of a user packet

Control, route, TLOC, BFD, forwarding.

  1. Controlconnections up
  2. Routeprefix received
  3. TLOCresolved
  4. BFDsession up
  5. Forwardpolicy, MTU
A fault at one stage hides the stages after it.

Step 1 and 2: control and route

Confirm the Controller connection is up, then look for the prefix in OMP. If the prefix is absent, the question becomes who should have advertised it and who may have blocked it.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan omp routes 192.168.10.0/24
(no routes found for 192.168.10.0/24 in vpn 10)
The prefix is not present. Three places can explain this: HUB-01 is not advertising it, the Controller is filtering it through a control policy, or BR-01 is in a different VPN. Check HUB-01's own omp routes advertised, then the policy on the Controller, then the VPN of BR-01's LAN interface. The message text is an example.
Diagram
Prefix not received
Prefix not received

Source, filter or segment.

Prefix is missing
  • Sourcenot advertisedno redistribution
  • Filtercontrol policysite list
  • Segmentwrong VPNleaking missing
Check the source first; it is the cheapest test.

Step 3: the route is there but unresolved

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan omp routes 192.168.10.0/24
VPN  PREFIX            FROM PEER    TLOC                       STATUS
10   192.168.10.0/24   10.255.0.11  10.255.1.1 mpls ipsec      Inv,U
The route arrived, but the status codes are Inv and U: invalid and unresolved. The edge has no usable tunnel to the TLOC 10.255.1.1 mpls. This is not a routing fault. Look at the TLOC and BFD state for that colour. Status code letters and meaning depend on the release.
Diagram
Route versus tunnel
Route versus tunnel

A route needs a tunnel to be usable.

ResolvedTLOC reachableRoute installed
UnresolvedNo tunnel to TLOCRoute not usable
Unresolved means the route is known but the tunnel is not.

Step 4: BFD

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan bfd sessions
SYSTEM IP    SITE ID  STATE  SOURCE COLOR  REMOTE COLOR  TRANSITIONS
10.255.1.1   100      down   mpls          mpls          7
10.255.1.1   100      up     biz-internet  biz-internet  0
The mpls session to HUB-01 is down and has flapped 7 times, but the biz-internet session is up. The route points to the mpls TLOC only, so the route cannot be used even though another tunnel exists. Fix the mpls path, or let policy accept the biz-internet TLOC.
Diagram
BFD down: common causes
BFD down: common causes
CauseHow to confirm
Underlay path or provider fault on that transportPing the remote transport address from that interface
Firewall or ACL blocking the tunnel portsCompare the permitted UDP ports with the tunnel ports in use; see the NAT, DNS and firewall lesson
NAT changed the address or portCompare the public address in the TLOC with the one expected
Colours that cannot form a tunnel (restrict)Check the tunnel interface restrict setting on both ends
Encapsulation or key mismatchCheck both ends use the same encapsulation, and look at the error counters
Port numbers and counter names vary by release. Use Cisco's firewall port list for yours.

Worked example: count the sessions before reading the routes

A missing BFD session is a more specific symptom than an unreachable server, so count sessions first. In the course lab, HUB-01 has mpls and biz-internet, BR-01 has both, and BR-02 has biz-internet only. Sessions form between the same colours, so each edge has one session for every colour it shares with HUB-01. The colours and site roles are lab examples, and a design with restrict settings or other colour pairs changes the count.

Diagram
Expected BFD sessions to HUB-01 (computed)
Expected BFD sessions to HUB-01 (computed)
EdgeColours shared with HUB-01Sessions expectedIf one session drops
BR-01mpls, biz-internet2One colour is left. Traffic can use it if the route for that TLOC is advertised and resolved
BR-02biz-internet1No tunnel to HUB-01 is left, so the routes behind HUB-01 show Inv,U and the site loses the path
Computed from the colours in the lab. The count on the edge is the first number to compare with the output of show sdwan bfd sessions.

If the count on an edge is lower than the table says, ask three questions in this order. First, was the session ever expected, or do the two ends share no colour? Second, is the control connection up on that colour, because a TLOC that the Controller has not received usually cannot form a tunnel? Third, is the remote TLOC advertised, which show sdwan omp tlocs shows? Only after those three do the underlay, NAT and firewall causes in the table above come into play.

The same table explains why BR-02 is more exposed than BR-01. One transport means one session, so a single BFD failure removes the path, and the unresolved status on its routes is a symptom of a missing second colour as well as of a fault.

Is the remote TLOC even advertised?

When a session is missing, the TLOC list on the edge shows whether the remote end's TLOC for that colour reached it at all. If it did not, no tunnel can form, whatever the underlay is doing.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan omp tlocs
ADDRESS FAMILY  TLOC IP      COLOR         ENCAP  FROM PEER    STATUS
ipv4            10.255.1.1  biz-internet  ipsec  10.255.0.11  C,I,R
Only the biz-internet TLOC of HUB-01 is listed. The mpls TLOC is absent, which matches the single BFD session and means the fault sits before BFD: HUB-01 does not advertise that colour, the Controller does not hold it, or a policy filters it. Check the control connection on HUB-01's mpls interface first. Status letters differ by release.

How quickly BFD notices a dead tunnel

A BFD session is declared down after the hello interval multiplied by the multiplier passes without a reply. The table shows a few combinations. Defaults differ between releases and designs, so read the values in your own configuration before relying on any of them.

Diagram
Detection time for some BFD settings (computed)
Detection time for some BFD settings (computed)
Hello intervalMultiplierDetection timeTrade-off
1000 ms77 secondsTolerant of short loss, slow to react
1000 ms33 secondsReacts faster, more flaps on a lossy path
500 ms63 secondsSame detection time, twice the hello traffic
200 ms30.6 secondsVery fast, easy to trigger by a brief loss
Detection time is hello interval times multiplier. A short time helps traffic move off a dead path sooner, and it also turns a brief loss of packets into a flap.
Diagram
Fault isolation in order
Fault isolation in order
QuestionCommand on the edgeA good answerIf the answer is bad
Are the control connections up?show sdwan control connectionsUp to the Controller and Validator on each colourFix control first; the rest depends on it
Did the prefix arrive?show sdwan omp routes <prefix>The route is listed for the right VPNCheck the source, then filters, then the VPN
Did the remote TLOC arrive?show sdwan omp tlocsA TLOC for every colour the remote end usesCheck that colour's control connection at the remote end
Is a tunnel up to the TLOC?show sdwan bfd sessionsState up for each shared colourWork through the BFD down causes
Does traffic pass?ping, then show the policy and MTUSmall and large packets both passCheck data policy, ACL and MTU
Run the questions top to bottom and stop at the first bad answer. Command spelling and output differ between releases.

Step 5: BFD is up, traffic still fails

If the route is resolved and the BFD session is up, the overlay is working. The fault is now in what happens to a packet. Check the service-side route and next hop for the VRF, any data policy or ACL that matches the traffic, and the MTU for larger packets. A ping with small packets that works while a file transfer stalls is the classic sign of an MTU problem.

Diagram
Overlay is fine, traffic is not
Overlay is fine, traffic is not
ClueLikely causeCheck
Small ping works, large transfer stallsMTU or fragmentationPing with the do-not-fragment bit; compare tunnel MTU and TCP MSS
Only one application failsData policy or ACLshow sdwan policy from-vsmart; interface ACLs
Traffic leaves, no reply returnsReturn route missing at the far siteLook at the remote site's OMP and VRF routes
Only one direction worksAsymmetric policy or routeCompare both directions' path and policy
Work one clue at a time.

Learn more: End-to-End Prefix PropagationForwarding, MTU and Tunnel Encapsulation

Test yourself

Predict · scenario 1

A remote prefix shows status Inv,U on BR-01. What does this tell you?

Predict · scenario 2

BFD sessions to HUB-01 are up on both colours, the route is resolved, and a large file transfer stalls while small pings work. What is the likely cause?

Predict · scenario 3

A route is absent on BR-01. Which step do you take before changing any policy?

Predict · scenario 4

In the lab, how many BFD sessions to HUB-01 should BR-02 show, given that BR-02 has only biz-internet?

Predict · scenario 5

BR-02's only session to HUB-01 goes down. What happens to the routes behind HUB-01 on BR-02?

Predict · scenario 6

show sdwan omp tlocs on BR-01 lists only the biz-internet TLOC of HUB-01, and there is one BFD session. What does the missing TLOC tell you?

Predict · scenario 7

A BFD hello interval is 500 ms and the multiplier is 6. How long before a silent tunnel is declared down?

Predict · scenario 8

In the isolation order, which check comes straight after confirming the prefix arrived?

Predict · scenario 9

BR-01 shows one BFD session to HUB-01 where the lab expects two. Which question comes first?

FAQ

Why start at the control connection when the symptom is a missing route?
Because a router that has lost its Controller connection receives no new OMP updates and eventually ages out what it learned. A missing route can be a side effect of a control fault, so rule it out first.
Can BFD be up while traffic fails?
Yes. BFD proves that packets can pass between two TLOCs. It does not test the LAN, an ACL, a data policy or an MTU limit for larger packets.
Why does a BFD session show many transitions?
Each time the session goes down and comes back up, the transition count rises. A count that keeps growing on one colour points at an unstable path on that transport, such as loss, a flapping link or a NAT binding that expires, and not at the overlay design.
What does a route in unresolved state mean?
The edge has the route but cannot use the TLOC it points to, usually because no BFD session or tunnel exists to that TLOC. The route cannot be installed until the TLOC resolves.