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.
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.
- IdentityVPN,originator
- Next hopTLOC: system IP,color, encap
- Selectionpreference,origin, metric
- Labeltag, forpolicy use
- Resultstatuscodes
| Attribute | Meaning | Use when troubleshooting |
|---|---|---|
| VPN | Service VPN that the prefix belongs to | Confirms the segment |
| Originator | System IP of the router that advertised it | Identifies the site that owns the prefix |
| TLOC | System IP, colour and encapsulation to send to | Matches against the TLOC table |
| Preference | Higher is preferred among otherwise equal routes | Steer traffic by raising or lowering it |
| Tag | A label with no meaning to OMP itself | Mark routes for policy or loop prevention |
| Origin protocol and metric | How the prefix first entered OMP (connected, static, OSPF, BGP) | Explains why a path was chosen |
| Status codes | What the receiver did with the route | Shows chosen, installed, resolved or a problem |
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.
- Originatorwhich siteowns it
- TLOCwhere trafficis sent
- Preferencehow itcompetes
- Statuswhat thereceiver did
Status codes
| Code | Meaning |
|---|---|
| C | Chosen: selected as best |
| I | Installed: placed in the routing table |
| R | Resolved: its TLOC is reachable |
| U | Unresolved: no usable path to its TLOC |
| Inv | Invalid: rejected as not valid |
| Red | Redistributed from another source |
| Rej | Rejected by policy |
Compare two status results.
| Status | What it tells you | First check |
|---|---|---|
| C,I,R | Chosen, installed and resolved | Nothing to fix at this layer; look at the forwarding path |
| R only | Resolved but not chosen | Another route beat it; compare the preference of both |
| U | Unresolved: the TLOC is not reachable | The TLOC table and the tunnel to that TLOC |
| Rej | Rejected by policy | The control policy applied to this site |
| Inv | Invalid | The advertisement itself and the originator |
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
| Goal | Attribute | Note |
|---|---|---|
| Prefer one hub for a prefix | Route preference | Set higher on the route that should win |
| Prefer one transport of a site | TLOC preference | Set on the TLOC of the transport to prefer |
| Mark routes so they are not redistributed back | Tag | A label only; it does not change selection |
| Keep a prefix away from some sites | A control policy that rejects it | Applied to the sites that should not learn it |
- 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.
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
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.
- SymptomHalf of the flows use HUB-02HUB-02 should be the standby
- RoutesBoth show C,I,RBoth resolve, so both are used
- Attribute200 is in the tag columnPreference is 100 on both routes
- FixRaise the preference of HUB-01's routeRead the routes again
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.
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
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.
| Case | Flows to HUB-01 / HUB-02 (of 1,000) | Status of each route |
|---|---|---|
| Start of the case: both preference 100, HUB-01 tag 200 | 500 / 500 | Both C,I,R: the tag changed nothing |
| HUB-01 tag changed to 300, preferences still 100 | 500 / 500 | Both C,I,R: a different tag is still only a label |
| After the fix: HUB-01 preference 200 | 1,000 / 0 | HUB-01 C,I,R and HUB-02 R only |
| Both hubs set to preference 200 | 500 / 500 | Both C,I,R: equal preference again |
| HUB-01 preference 200 but its TLOC unresolved | 0 / 1,000 | HUB-01 U and HUB-02 C,I,R: an unresolved route cannot win |
Learn more: OMP Route TypesEligible Routes, Preference and Resolution
Test yourself
Two paths to a prefix are otherwise equal. You want HUB-01 preferred. Which attribute do you change?
HUB-01's route shows preference 100 and tag 200. HUB-02's route shows preference 100 and no tag. Which hub is preferred?
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?
An OMP route shows the status U. What does that mean?
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?
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?
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?