Course contents

Unit 6: OMP and service routingLesson 6.3 (3 of 6 in this unit)38 of 62 in the Cisco SD-WAN course

OMP route attributes and operational significance

How to read the originator, TLOC, preference, tag and status codes on an OMP route, and which one to change to steer traffic.

Intermediate · 9 min read

You'll learn to read the main attributes and status codes of an OMP route and say which attribute to change to steer a prefix.

Technical definition

OMP route attribute is a field carried with an OMP route that describes where it came from and how to use it. Some attributes identify the route, such as the originator and TLOC. Others influence selection, such as the preference. Status codes show what the receiving device did with the route.

Reading one route

An OMP route is a prefix plus a bundle of attributes. Some say who owns the prefix, some say where to send traffic, some influence which of several routes wins, and some record what the receiver did with it. Sorting the attributes into those groups makes a long output easier to read.

Diagram
Five groups of attributes
Five groups of attributes

An OMP route carries identity attributes such as the VPN and the originator, the next hop as a TLOC, selection attributes such as preference and origin, a tag as a label, and status codes that record the result.

OMP route
  • IdentityVPN,originator
  • Next hopTLOC: system IP,color, encap
  • Selectionpreference,origin, metric
  • Labeltag, forpolicy use
  • Resultstatuscodes
Only some of these attributes change which route wins. The tag and the status codes do not.
Diagram
Attributes you will see
Attributes you will see
AttributeMeaningUse when troubleshooting
VPNService VPN that the prefix belongs toConfirms the segment
OriginatorSystem IP of the router that advertised itIdentifies the site that owns the prefix
TLOCSystem IP, colour and encapsulation to send toMatches against the TLOC table
PreferenceHigher is preferred among otherwise equal routesSteer traffic by raising or lowering it
TagA label with no meaning to OMP itselfMark routes for policy or loop prevention
Origin protocol and metricHow the prefix first entered OMP (connected, static, OSPF, BGP)Explains why a path was chosen
Status codesWhat the receiver did with the routeShows chosen, installed, resolved or a problem
The names and exact set of fields differ between releases and between commands.
Diagram
Read a route in this order
Read a route in this order

Start with the originator to find the site, then the TLOC to find the next hop, then the preference to see how it competes, and finally the status codes to see what the receiver did.

  1. Originatorwhich siteowns it
  2. TLOCwhere trafficis sent
  3. Preferencehow itcompetes
  4. Statuswhat thereceiver did
The status codes come last because they summarise everything before them.

Status codes

Diagram
Common status codes
Common status codes
CodeMeaning
CChosen: selected as best
IInstalled: placed in the routing table
RResolved: its TLOC is reachable
UUnresolved: no usable path to its TLOC
InvInvalid: rejected as not valid
RedRedistributed from another source
RejRejected by policy
C,I,R is the healthy state. Other codes depend on the release; check its command reference.
Diagram
Healthy and unhealthy
Healthy and unhealthy

Compare two status results.

C,I,RChosen, installedand resolved
UTLOC not reachablecannot forward
Look at the last code first.
Diagram
First check for each status
First check for each status
StatusWhat it tells youFirst check
C,I,RChosen, installed and resolvedNothing to fix at this layer; look at the forwarding path
R onlyResolved but not chosenAnother route beat it; compare the preference of both
UUnresolved: the TLOC is not reachableThe TLOC table and the tunnel to that TLOC
RejRejected by policyThe control policy applied to this site
InvInvalidThe advertisement itself and the originator
Codes and wording depend on the release. Check the command reference for yours.
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 detail
vpn 10  prefix 192.168.10.0/24
  originator   10.255.1.1
  tloc         10.255.1.1 mpls ipsec
  preference   100
  tag          none
  status       C,I,R
The route came from HUB-01 (10.255.1.1), points to its mpls TLOC, has preference 100 and no tag, and is healthy. Real output has more fields and a different layout.
Diagram
Which attribute to change
Which attribute to change
GoalAttributeNote
Prefer one hub for a prefixRoute preferenceSet higher on the route that should win
Prefer one transport of a siteTLOC preferenceSet on the TLOC of the transport to prefer
Mark routes so they are not redistributed backTagA label only; it does not change selection
Keep a prefix away from some sitesA control policy that rejects itApplied to the sites that should not learn it
Where each value is set differs between releases: in a policy, in a template or on the device. The attribute decides the effect.
  • To make one of two paths win, change its preference, not its tag.
  • If a code other than C,I,R appears, check the TLOC table before the policy.
  • Use the originator to find which site to investigate.

A worked case: a tag used as a preference

Two hubs, HUB-01 and HUB-02, both advertise 192.168.10.0/24. The design says HUB-01 should carry the traffic and HUB-02 should be the standby. An engineer set the value 200 on HUB-01's route, believing it raised the preference. Users then reported that half of the flows to the prefix arrive through HUB-02. The routes as the branch sees them show what was actually changed.

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            ORIGINATOR   TLOC              PREF  TAG   STATUS
10   192.168.10.0/24   10.255.1.1   10.255.1.1 mpls   100   200   C,I,R
10   192.168.10.0/24   10.255.1.2   10.255.1.2 mpls   100   none  C,I,R
Both routes are chosen, installed and resolved, so traffic is shared between the two hubs. The value 200 is in the tag column. The preference of HUB-01's route is still 100, the same as HUB-02's. A tag has no influence on selection, so the two routes compete equally.
Diagram
Evidence from the case
Evidence from the case

Half of the flows reach the standby hub. Both routes are chosen. HUB-01's route carries a tag of 200 and a preference of 100, the same as HUB-02. The tag does not influence selection, so the preference was not raised.

  1. SymptomHalf of the flows use HUB-02HUB-02 should be the standby
  2. RoutesBoth show C,I,RBoth resolve, so both are used
  3. Attribute200 is in the tag columnPreference is 100 on both routes
  4. FixRaise the preference of HUB-01's routeRead the routes again
The routes show the change in the wrong column. Read the attribute, not the number.

The repair is to set the preference of HUB-01's route to 200 where the hub's advertisements are set, in a control policy or in the hub's configuration, depending on how the network was built. After the change the branch should show HUB-01 as C,I,R and HUB-02 as R only: still resolved and ready to take over, but not chosen while HUB-01 is available.

policy lists prefix-list HUB-LANS ip-prefix 192.168.10.0/24 ! site-list HUB-01-SITE site-id 1 ! ! control-policy PREFER-HUB-01 sequence 10 match route prefix-list HUB-LANS ! action accept set preference 200 ! ! ! default-action accept ! ! apply-policy site-list HUB-01-SITE control-policy PREFER-HUB-01 in ! !

Controller policy in outline: routes for the hub prefix received from the HUB-01 site get preference 200 and everything else is accepted unchanged. Built in the policy builder in the Manager; the layout, the site ID and the direction differ between networks and releases.

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            ORIGINATOR   TLOC              PREF  TAG   STATUS
10   192.168.10.0/24   10.255.1.1   10.255.1.1 mpls   200   200   C,I,R
10   192.168.10.0/24   10.255.1.2   10.255.1.2 mpls   100   none  R
HUB-02 stays resolved, which is what a standby needs. Its route is not installed until HUB-01's route is withdrawn or becomes unresolved.

The table replays the case and a few variations through a simplified model: only resolved routes compete, the highest preference wins, and routes that tie share the flows evenly.

Diagram
Which hub gets the flows
Which hub gets the flows
CaseFlows to HUB-01 / HUB-02 (of 1,000)Status of each route
Start of the case: both preference 100, HUB-01 tag 200500 / 500Both C,I,R: the tag changed nothing
HUB-01 tag changed to 300, preferences still 100500 / 500Both C,I,R: a different tag is still only a label
After the fix: HUB-01 preference 2001,000 / 0HUB-01 C,I,R and HUB-02 R only
Both hubs set to preference 200500 / 500Both C,I,R: equal preference again
HUB-01 preference 200 but its TLOC unresolved0 / 1,000HUB-01 U and HUB-02 C,I,R: an unresolved route cannot win
Worked out by script with a simplified model. Real selection has more steps, real sharing follows a flow hash and is only roughly even, and the equal-cost limit of the device applies. Check the release documentation for the full order.

Learn more: OMP Route TypesEligible Routes, Preference and Resolution

Test yourself

Predict · scenario 1

Two paths to a prefix are otherwise equal. You want HUB-01 preferred. Which attribute do you change?

Predict · scenario 2

HUB-01's route shows preference 100 and tag 200. HUB-02's route shows preference 100 and no tag. Which hub is preferred?

Predict · scenario 3

After a fix, HUB-02's route shows R and HUB-01's shows C,I,R. What does R alone on HUB-02 mean?

Predict · scenario 4

An OMP route shows the status U. What does that mean?

Predict · scenario 5

HUB-01's route has preference 100 and tag 300. HUB-02's route has preference 100 and no tag. Both resolve. How are flows shared?

Predict · scenario 6

HUB-01's route has preference 200 and shows U. HUB-02's route has preference 100 and shows R. Which hub carries the traffic?

Predict · scenario 7

After the fix, HUB-01's route has preference 200 and HUB-02's has 100, and both resolve. Out of 1,000 flows, how many go to HUB-02?

FAQ

What is the difference between preference and tag?
Preference influences which route is chosen. A tag is a label that carries no preference of its own. It is used by policies, or to mark routes so redistribution does not loop.
Does a higher preference win?
Yes, a higher OMP route preference is preferred. Treat the full selection order as a topic for the release documentation, because several steps come before preference.
What does the originator show?
The system IP of the WAN Edge that first advertised the route into OMP. It is not the Controller that relayed it.