SR OAM Tools
Load top2.sdn.transport.init.cfg in topology1.
#XR1-10
configure
load configs/top2.sdn.transport.init.cfg
commit replace
y
#IOS-XE
config replace bootflash:top2.sdn.transport.init.cfg

Enable MPLS OAM everywhere.
#XR1-11
mpls oam
MPLS ping and traceroute can be used with SR-MPLS. MPLS ping and traceroute are used to verify an MPLS LSP, as basic ping and traceroute can fallback to IP forwarding.
When using SR-MPLS, the router will automatically use the SR Prefix SID FEC type with basic mpls ping and mpls traceroute even though you do not specify it.
MPLS Ping
#XR3
ping mpls ipv4 10.0.0.11/32 source 10.0.0.3 repeat 1

The “more proper” way to do this from the CLI would be to use ping sr-mpls and specifying the target FEC. This produces the exact same LSP Ping as seen above. (FEC type is Prefix SID from ISIS).
#XR3
ping sr-mpls 10.0.0.11/32 source 10.0.0.3 fec-type igp isis repeat 1
If you use ping sr-mpls without the fec-type, it will be a generic fec type instead.
#XR3
ping sr-mpls 10.0.0.11/32 source 10.0.0.3 repeat 1

ping sr-mpls gives us the ability to ping using an SR policy as well. We must specify the endpoint of the policy when using this.

#XR3
ping sr-mpls policy binding-sid 24011 lsp-end-point 10.0.0.11 repeat 1
Finally, we can use a nil-fec type in order to program an arbitrary stack of labels. This can be done with either ping sr-mpls or ping mpls, there is no difference. You must specify the output interface and nexthop.
#XR3
ping sr-mpls nil-fec labels 16004,16002,16011 output interface gi0/0/0/0.101 nexthop 10.1.3.1
ping mpls nil-fec labels 16004,16002,16011 output interface gi0/0/0/0.101 nexthop 10.1.3.1
MPLS Traceroute
Just like with MPLS Ping, MPLS traceroute can be used with either traceroute mpls or traceroute sr-mpls. When traceroute mpls is used, the FEC type is automatically the Prefix SID with the IGP protocol. When using traceroute sr-mpls, the FEC type is generic by default, and you can specify IGP or BGP.
MPLS traceroute simply uses LSP echo requests but with a downstream mapping TLV to allow each hop to verify the correct mapping information upon ingress. (The first hop sends its downstream neighbor’s IP address and label value. The second hop verify this is correct and return its own downstream mapping to be used for the next probe).
#XR3
traceroute mpls ipv4 10.0.0.11/32 source 10.0.0.3
traceroute sr-mpls 10.0.0.11/32 source 10.0.0.3
MPLS traceroute can be multipath aware. Use the following traceroute to see all ECMP paths:
#XR3
traceroute sr-mpls multipath 10.0.0.11/32 source 10.0.0.3 verbose
traceroute mpls multipath ipv4 10.0.0.11/32 source 10.0.0.3 verbose
Just as with the LSP Ping, the benefit of traceroute sr-mpls is the ability to trace and SR policy.
#XR3
traceroute sr-mpls policy binding-sid 24011 lsp-end-point 10.0.0.11 source 10.0.0.3
We can also use a nil-fec type to trace using any arbitrary stack of labels.
#XR3
traceroute sr-mpls nil-fec labels 16004,16002,16011 output interface gi0/0/0/0.101 nexthop 10.1.3.1
traceroute mpls nil-fec labels 16004,16002,16011 output interface gi0/0/0/0.101 nexthop 10.1.3.1
Last updated