Unit 7: IPsec and BFD·Lesson 7.3 (3 of 5 in this unit)·44 of 62 in the Cisco SD-WAN course
TLOC-based tunnel discovery and eligibility
Which TLOC pairs form tunnels, the colour, policy and NAT checks, and how to compare the TLOC and BFD tables.
Intermediate · 9 min read
You'll learn to explain which TLOC pairs are eligible for a tunnel, and use the TLOC and BFD tables to find why a pair is missing.
Technical definition
Tunnel eligibility is the set of conditions under which two TLOCs will build a data tunnel. The WAN Edge learns remote TLOCs from the Controller, then forms tunnels only to those that match colour and encapsulation rules, are allowed by policy and can be reached across the transport.
From TLOC list to tunnels
Diagram
Eligibility checks
Each pair passes several tests.
1LearnTLOC from Controller
2Matchcolour, restrict, encapsulation
3Allowpolicy and topology
4ReachNAT and firewall permit
A failure at any step leaves the pair without a tunnel.
Diagram
Why a pair might have no tunnel
Cause
How to confirm
TLOC never learned
show sdwan omp tlocs
Colour or restrict mismatch
Compare colours and restrict on both ends
Different encapsulation
Compare encapsulation in the TLOC entries
Hidden by hub-and-spoke policy
Review the topology control policy
Blocked by NAT or firewall
show sdwan bfd sessions, firewall logs
Work down the list; the first match explains the gap.
Diagram
Known versus working
Learned TLOCs and live sessions are different lists.
TLOC tableWhat could be built
vs
BFD tableWhat is working
Compare them to find the gap.
Count the TLOCs in the first table that should pair with a local TLOC, and compare with the sessions in the second. Each missing session has one of the causes above. In a two-by-two example with restrict, two pairs are expected, and the others are excluded by design rather than by a fault.
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 mpls ipsec 10.255.0.11 C,I,R
ipv4 10.255.1.1 biz-internet ipsec 10.255.0.11 C,I,R
Two TLOCs of HUB-01 are known to BR-01. Whether a tunnel exists to each depends on the checks above. The columns are illustrative.
BR-01 knows HUB-01's two TLOCs but has only one BFD session. What do you check first?
Predict · scenario 2
Why might two spokes send traffic through a hub?
FAQ
Does a learned TLOC always mean a tunnel?
No. The TLOC must also be allowed by restrict and policy, and the two ends must be able to reach each other through NAT and firewalls.
Why would two spokes not form a direct tunnel?
A hub-and-spoke control policy can hide spoke TLOCs from each other, so spokes send through the hub. Without such a policy, spokes can build direct tunnels.
What does NAT change?
A WAN Edge behind NAT learns its public address and port, and peers use those. Some combinations of NAT types on both ends cannot form a direct tunnel, which is why the NAT lesson matters.