Course contents

Unit 3: Underlay, overlay and TLOCLesson 3.6 (6 of 7 in this unit)19 of 27 in the Cisco SD-WAN course

TLOC components and transport reachability

BR-01 has one system IP but two WAN transports. Why does the Controller show two TLOCs, and why can four possible transport pairs produce only two working tunnels? Separate the transport identity from the address used to reach it.

Intermediate · 14 min read

You'll learn to name the three parts of a TLOC, work out how many TLOCs a router advertises, explain what a colour does and what restrict changes, and say what has to be true before a tunnel to a TLOC comes up.

Technical definition

TLOC (transport locator) is the identity of one WAN Edge's attachment to one transport in a Cisco SD-WAN fabric. It is made of three things: the router's system IP, the colour of the transport, and the encapsulation (IPsec or GRE). Routes in the overlay point at TLOCs, and tunnels are built between them.

One router, two doors onto the WAN

Two transports give two TLOCs and several tunnels
Two transports give two TLOCs and several tunnelsBR-01 has two WAN interfaces, one on the biz-internet colour and one on the mpls colour. Each is a separate TLOC: the system IP 10.255.2.1 with that colour and encapsulation. HUB-01 has the same two colours. Tunnels form between TLOCs of matching colour by default, so BR-01 and HUB-01 get one tunnel over the internet and one over MPLS.BR-01system IP 10.255.2.1HUB-01system IP 10.255.1.1biz-internetmplsTLOC 1: 10.255.2.1biz-internet, ipsecTLOC 2: 10.255.2.1mpls, ipsec

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Colour describes the transport, not the interface. Two interfaces with the same colour on one router are two TLOCs of the same colour, and which tunnels form depends on whether the colours can reach each other.

BR-01 is a branch with two WAN links: an MPLS circuit and a business internet line. After it is onboarded, the Controller lists two TLOCs for BR-01, although the router has one system IP, 10.255.2.1. That difference between one router and two TLOCs is what this lesson explains, because service-route next hops and data tunnels refer to transport identities rather than only to router names. This lesson uses one IPsec encapsulation on each of two configured transport interfaces.

One device identity, two IPsec transport identities
One device identity, two IPsec transport identitiesBR-01 has system IP 10.255.2.1. Gi1 uses 203.0.113.10/30 on the internet and forms the TLOC 10.255.2.1, biz-internet, ipsec. Gi2 uses 172.16.1.2/30 on MPLS and forms the TLOC 10.255.2.1, mpls, ipsec. This lab uses one IPsec encapsulation per transport. Interface addresses are endpoint attributes, not the system-IP element of the tuple.InternetMPLSBR-01System IP10.255.2.1Gi1 · internet port203.0.113.10/30Gi2 · MPLS port172.16.1.2/3010.255.2.1 · biz-internet · ipsec10.255.2.1 · mpls · ipsec

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Each tuple names a transport attachment. The port addresses tell peers where packets can travel; they do not replace the system IP in the tuple.

Gi1 is the internet-facing port, addressed 203.0.113.10/30. Gi2 is the MPLS-facing port, addressed 172.16.1.2/30. Both belong to BR-01, whose system IP is 10.255.2.1. The colour distinguishes the attachments; IPsec identifies the encapsulation used in this lab.

The three parts of a TLOC

The three parts of a TLOC
The three parts of a TLOCPart; What it is; BR-01 example. System IP: The router's identity in the fabric, set once and the same for every transport. Not a substitute for the transport interface address. 10.255.2.1 Colour: A label for the transport, chosen from a fixed list. Decides how the router connects (public or private) and what policy can refer to. mpls or biz-internet Encapsulation: The tunnel format: IPsec (the usual choice) or GRE. ipsecPartWhat it isBR-01 exampleSystem IPThe router's identity in the fabric,set once and the same for everytransport. Not a substitute for thetransport interface address.10.255.2.1ColourA label for the transport, chosenfrom a fixed list. Decides how therouter connects (public or private)and what policy can refer to.mpls or biz-internetEncapsulationThe tunnel format: IPsec (the usualchoice) or GRE.ipsec

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Read each row across: the left box names the item, the others describe it.

So BR-01's two TLOCs are (10.255.2.1, mpls, ipsec) and (10.255.2.1, biz-internet, ipsec). Each one also carries attributes that other routers need: local/private and mapped/public endpoint addresses and ports, preference, weight and encryption information. Here private/public are field names: without NAT, their values can be the same. Public IP in a display does not prove an address is globally routable. These ride inside the TLOC route that the router advertises.

The three parts of a TLOC
The three parts of a TLOCSystem IP, colour and encapsulation.TLOCSystem IPwhich routerColourwhich transportEncapsulationIPsec or GRE

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Together they identify one tunnel endpoint.

The tuple identifies the TLOC; endpoint attributes describe how to reach it. A changed NAT mapping need not change the system-IP/colour/encapsulation tuple, but peers still need the updated mapping and a permitted path. A colour change does change the tuple. The two-TLOC count is this lab’s assumption, not a universal count of physical cables: additional encapsulations and specialised transport designs need their own accounting.

From interface to tunnel

From interface to tunnel
From interface to tunnelThe transport interface becomes a TLOC and the TLOC pairs with a remote TLOC.Interfacewith colourTLOCadvertised in OMPPairwith a remote TLOCTunnelBFD up

On small screens, swipe sideways or focus the diagram and use the arrow keys.

BFD then checks the tunnel.
  1. Two transport interfaces, two TLOCs. With one IPsec encapsulation per enabled transport here, the two tuples are (10.255.2.1, mpls, ipsec) and (10.255.2.1, biz-internet, ipsec).
  2. BR-01 advertises them. It sends both TLOC routes to CTRL-01 over its secure control connection. TLOC routes are OMP routes, covered in a later lesson.
  3. The Controller distributes them. HUB-01 learns BR-01's TLOCs and BR-01 learns HUB-01's, subject to any control policy.
  4. Tunnels form between TLOC pairs. Eligible, reachable endpoint pairs can build IPsec tunnels, with BFD (Bidirectional Forwarding Detection) monitoring those data paths. A learned TLOC alone does not guarantee a working tunnel. The Controller is not in this path.

Colours

A colour is one of a fixed set of names. They fall into two groups, and the group decides which of a router's addresses other routers use to reach it.

Why colours matter for pairing
Why colours matter for pairingColours decide which TLOCs try to connect.Same colourConnectDifferent colourConnect unless restricted(public to private differ)vs

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Public to public usually connects, restricted ones do not.
Colours
ColoursGroup; Colours; Typical endpoint choice. Private: mpls, metro-ethernet, private1 to private6 Private endpoint fields when both ends use private colours in the ordinary no-NAT design Public: biz-internet, public-internet, lte, 3g, default, red, green, blue, gold, silver, bronze, custom1 to custom3 Public endpoint fields when one or both colours are public; these may be unchanged if no NAT existsGroupColoursTypical endpoint choicePrivatempls, metro-ethernet, private1 toprivate6Private endpoint fields when bothends use private colours in theordinary no-NAT designPublicbiz-internet, public-internet, lte,3g, default, red, green, blue, gold,silver, bronze, custom1 to custom3Public endpoint fields when one orboth colours are public; these may beunchanged if no NAT exists

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Read each row across: the left box names the item, the others describe it.

A colour is only a label. It does not describe an IP subnet, and the fabric does not check that a transport called mpls really is MPLS. Choose colours that match how the transport behaves (is it behind NAT?) and that your policies can use, such as preferring mpls for voice.

Endpoint selection also has same-site and carrier-setting cases; colour alone is not a complete NAT design. For this lesson, the branch and hub have different site IDs and no NAT on the shown transports. Verify actual private/public fields and the BFD destination rather than guessing from the word public.

What restrict changes

Without restrict, colour mismatch alone does not exclude a candidate pair. Reachability, encapsulation, topology and other policy still apply. Adding restrict to a tunnel interface limits that TLOC to tunnels with TLOCs of the same colour. It is the usual way to keep a private MPLS transport from carrying tunnels to an internet-only site's TLOCs, and to stop a pointless number of tunnels from forming.

BR-01 TLOCHUB-01 TLOCNo restrictRestrict on both mpls TLOCs
mplsmplsCandidateCandidate
biz-internetbiz-internetCandidateCandidate
mplsbiz-internetCandidateExcluded
biz-internetmplsCandidateExcluded
Count candidate pairs before counting working tunnels
Count candidate pairs before counting working tunnelsBR-01 and HUB-01 each have mpls and biz-internet IPsec TLOCs. Without restrict, up to four local-remote pairs can be candidates. With restrict on both MPLS TLOCs, the two mixed-colour pairs are excluded, leaving at most two candidates. Eligibility does not prove endpoint reachability or working IPsec and BFD.Without restrictBR-01HUB-01mplsmplsbiz-internetbiz-internetUp to 4 candidate pairsRestrict on both MPLS TLOCsBR-01HUB-01mplsmplsbiz-internetbiz-internetUp to 2 candidate pairs×

On small screens, swipe sideways or focus the diagram and use the arrow keys.

This two-transport example assumes compatible IPsec encapsulation and permitted topology. Routing, policy, NAT/firewalls and BFD still decide which candidate paths become usable.

The solid paths join matching colours. The left diagram’s dashed paths are additional mixed-colour candidates; on the right they are excluded by MPLS restrict. The circles represent TLOC endpoints, not extra routers. These are eligibility diagrams, not measured tunnel states.

The settings that define a TLOC

system system-ip 10.255.2.1 site-id 101 exit sdwan interface GigabitEthernet1 tunnel-interface encapsulation ipsec color biz-internet exit exit interface GigabitEthernet2 tunnel-interface encapsulation ipsec color mpls restrict exit exit

Global-configuration identification excerpt for IOS XE Catalyst SD-WAN 17.x, not a complete bootstrap. The router is already onboarded; transport addressing/routes, matching Tunnel interfaces and allowed services are prerequisites, omitted here. Confirm exact model/image support. Most networks push this from SD-WAN Manager templates or configuration groups instead of typing it. Gi1 is the internet line and Gi2 the MPLS circuit.

The system IP and site ID belong to the router; the tunnel interface lines give each transport its colour and encapsulation. Changing or removing the transport’s SD-WAN configuration disrupts its TLOC and dependent paths; do not use removal as a live troubleshooting shortcut. In a Manager-managed deployment, change the approved template/configuration group rather than assuming direct CLI edits will persist.

Checking what the fabric sees

Checking TLOCs
Checking TLOCsCheck what the controllers have learned.show sdwan omp tlocsTLOCs the router knowsshow sdwan bfd sessionsTunnels that are upshow sdwan control local-propertiesLocal TLOC settings

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Compare with the local interface.
Example output
BR-01#show sdwan omp tlocs
TLOC                                  PUBLIC IP      PUBLIC PORT  PREF  WEIGHT  STATUS
10.255.2.1   mpls          ipsec     172.16.1.2     12346        0     1       C,Red,R
10.255.2.1   biz-internet  ipsec     203.0.113.10   12346        0     1       C,Red,R
10.255.1.1   mpls          ipsec     172.16.1.1     12346        0     1       C,I,R
10.255.1.1   biz-internet  ipsec     198.51.100.20  12346        0     1       C,I,R
BR-01's own two TLOCs and HUB-01's two. The status letters mean chosen (C), installed (I), redistributed (Red) and resolved (R). The endpoint columns are advertised attributes, not the tuple itself. In this no-NAT example public and private endpoint values coincide. Which address peers use depends on colour and topology, so compare actual BFD destination fields as well. Preference 0 and weight 1 are example settings; output layout varies by release.
Example output
BR-01#show sdwan bfd sessions
SYSTEM IP    SITE  STATE  SOURCE COLOR  REMOTE COLOR  SOURCE IP     DST PUBLIC IP  PORT   ENCAP  MULT  INTERVAL  UPTIME
10.255.1.1   10    up     mpls          mpls          172.16.1.2    172.16.1.1     12346  ipsec  7     1000      2:01:10:05
10.255.1.1   10    up     biz-internet  biz-internet  203.0.113.10  198.51.100.20  12346  ipsec  7     1000      2:01:10:02
Two sessions to HUB-01, not four: restrict is set on the MPLS interfaces at both ends, so the mixed-colour pairs do not form. This example shows multiplier 7 and interval 1000 ms. They illustrate a nominal missed-probe window of about seven seconds, not a guaranteed failure-detection or convergence time. Check actual effective settings and release behaviour rather than assuming these are universal defaults.

What has to be true before a tunnel comes up

Before a tunnel comes up
Before a tunnel comes upSeveral things must be true.Control connection upController knows the TLOCTLOC advertisedThe peer has learned itTransport reachableIP path between the endpointsPolicy allows itNot blocked by restrict or policy

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Check them in order.
  1. The transport interface works. It is up, has an address and a route to the remote transport address in VPN 0. Without this, nothing above it can work.
  2. The router has control connections. Normal TLOC advertisement uses OMP over Controller connections. During control loss, previously learned information may be retained according to release and graceful-restart settings; inspect current state instead of assuming immediate deletion.
  3. The remote TLOC is known and allowed. The colours are compatible (restrict), and no control policy hides the TLOC from this router.
  4. IPsec and BFD come up. NAT, a firewall or an MTU problem on the transport can block the tunnel packets even when everything else looks right.
  5. The TLOC is resolved when a route needs it. A route whose next hop is a TLOC with no working tunnel is shown as unresolved and is not used.
What has to be true before a tunnel comes up
What has to be true before a tunnel comes upSymptom; Look at; Common cause. A TLOC is missing from the Controller's list: show sdwan control connections on the router Missing/incorrect TLOC configuration, an inactive transport, or an OMP advertisement/policy problem; inspect local properties and Controller receipt TLOC present, no BFD session to the remote one: show sdwan bfd sessions, the colours at both ends An ineligible pair, policy, encapsulation mismatch or endpoint-path failure; confirm the exact tuple and actual BFD state BFD session flaps: Underlay path, MTU, NAT timeouts Packet loss or a firewall dropping the tunnel ports Route shown unresolved: The next-hop TLOC and its BFD state The only tunnel to that TLOC is downSymptomLook atCommon causeA TLOC is missing fromthe Controller's listshow sdwan control connections on therouterMissing/incorrect TLOC configuration,an inactive transport, or an OMPadvertisement/policy problem; inspectlocal properties and ControllerreceiptTLOC present, no BFDsession to the remoteoneshow sdwan bfd sessions, the coloursat both endsAn ineligible pair, policy,encapsulation mismatch orendpoint-path failure; confirm theexact tuple and actual BFD stateBFD session flapsUnderlay path, MTU, NAT timeoutsPacket loss or a firewall droppingthe tunnel portsRoute shown unresolvedThe next-hop TLOC and its BFD stateThe only tunnel to that TLOC is down

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Read each row across: the left box names the item, the others describe it.

Mistakes that cost an afternoon

  • Treating the system IP as an interface address and looking for it in the underlay routing table. It is a fabric identity, not a transport address.
  • Reading a colour as a property of the link. Two branches that call the same kind of line by different colours will not reach each other if restrict is set.
  • Treating a product of TLOC counts as a measured tunnel count. It is only a candidate-pair upper bound in this simple two-site model; reachability, policy, restrict and deployment features can reduce it.
  • Changing a colour on a live router without a plan: it is a different TLOC, so tunnels and any policy naming the old colour change with it.

Verify identity before changing policy

show sdwan control local-properties show sdwan omp tlocs show sdwan bfd sessions

Privileged EXEC on the existing IOS XE Catalyst SD-WAN 17.x lab. Compare local transport/private/public endpoints, the remote system-IP/colour/encapsulation tuple and its BFD path. These read-only commands do not repair a missing route or configuration.

Record both tuples and the two same-colour BFD sessions. In an isolated lab with an approved fault, compare the same remote tuple before and after restoring a missing endpoint route or the specific filtering rule that was changed. Keep restrict and unrelated security rules in place. Recovery is evidence only after BFD returns and the intended service route and a permitted application work in both directions.

If a mapping or transport endpoint changes, recheck the advertised address/port and observed BFD destination. If a colour changes, the old and new tuples are different identities; review policy references and return the approved configuration through Manager. Do not remove tunnel configuration or clear every control peer simply to refresh the display.

Technical references: Cisco IOS XE 17.x TLOC guide and Cisco Catalyst SD-WAN design guide. The figures, configurations and output are authored teaching examples, not device captures.

Test yourself on TLOCs

Predict · scenario 1

A WAN Edge has system IP 10.255.2.1 and three active transport interfaces, each using only IPsec, with colours mpls, biz-internet and lte. How many TLOCs does it advertise?

Predict · scenario 2

Which of these is NOT part of a TLOC?

Predict · scenario 3

BR-01 and HUB-01 each have mpls and biz-internet TLOCs, and restrict is configured on every TLOC. With no other exclusions, what is the maximum number of eligible pairs?

Predict · scenario 4

show sdwan omp tlocs on BR-01 lists HUB-01's two TLOCs, but show sdwan bfd sessions shows no session to HUB-01 on the mpls colour. The underlay is fine. What do you check next?

FAQ

Is a TLOC the same as the WAN interface's IP address?
No. The TLOC uses the router's system IP, which is the same for every transport on that router. The interface's own addresses (private, and public if there is NAT) travel inside the TLOC route as attributes, so other routers know where to send the tunnel packets.
Does a colour have to match a real property of the link?
No. A colour is a label you choose from a fixed list. It tells the fabric whether the transport is public or private and lets policy refer to a transport by name. Nothing checks that biz-internet is really the internet.
How many tunnels does a branch with two TLOCs build to a hub with two TLOCs?
At most four candidate pairs in this two-by-two IPsec example. Restrict on both MPLS TLOCs excludes the mixed-colour pairs, leaving at most two. Policy, transport reachability, NAT/firewalls and IPsec/BFD can reduce the working count further.