OcNOS-SP : Segment Routing Guide : Segment Routing Configuration Guide : Configuring OSPF Intra-Area Segment Routing : Segment Routing MPLS OAM
Segment Routing MPLS OAM
Segment Routing Operations, Administration, and Maintenance (OAM) helps service providers to monitor label-switched paths (LSPs) and quickly isolate forwarding problems to assist with fault detection and troubleshooting in the network.
The Segment Routing OAM feature provides support for FEC (forwarding equivalence classes) LSP Ping and Traceroute, IGP prefix SID FEC type, and partially IGP adjacency-SID FEC.
The following are the main benefits of Segment Routing-OAM Support:
Operations: Network monitoring and fault management.
Administration: Network discovery and planning.
Maintenance: Corrective and preventive activities, minimize occurrences and impact of failures.
Segment Routing Ping
The MPLS LSP ping feature is used to check the connectivity between ingress and egress of LSP. MPLS LSP ping uses MPLS echo request and reply messages, similar to Internet Control Message Protocol (ICMP) echo request and reply messages, to validate an LSP.
Segment routing ping is an extension of the MPLS LSP ping to perform the connectivity verification on the segment routing control plane.
Segment Routing ping can use either generic FEC type or SR control-plane FEC type (ISIS-SR or OSPF-SR)
Segment Routing Traceroute
The MPLS LSP traceroute is used to isolate the failure point of an LSP. It is used for hop-by-hop fault localization and path tracing. The MPLS LSP traceroute feature relies on the expiration of the Time to Live (TTL) value of the packet that carries the echo request.
Similar to segment routing ping, you can initiate the segment routing traceroute operation only when Segment Routing control plane is available at the originator
Segment Routing traceroute can use either generic FEC type or SR control-plane FEC type (OSPF-SR or ISIS-SR).
Kindly refer Figure 4-4
Validation
These examples show how to use segment routing ping to test the connectivity of a segment routing control plane and segment routing trace to trace LSP of specified Prefix SID.
Ping with other options
PE1#ping mpls ospf-sr ipv4 10.0.1.33/32
Sending 5 MPLS Echos to 2.32.0.0, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
!
!
!
!
!
 
Success Rate is 100.00 percent (5/5)
Detail
PE1#ping mpls ospf-sr ipv4 10.0.1.33/32 detail
Sending 5 MPLS Echos to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
! seq_num = 1 10.0.1.33 1.10 ms
! seq_num = 2 10.0.1.33 0.61 ms
! seq_num = 3 10.0.1.33 0.58 ms
! seq_num = 4 10.0.1.33 0.59 ms
! seq_num = 5 10.0.1.33 0.58 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 0.58/0.84/1.10
Destination
PE1#ping mpls ospf-sr ipv4 10.0.1.33/32 destination 127.1.0.1 detail
Sending 5 MPLS Echos to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
! seq_num = 1 10.0.1.33 0.69 ms
! seq_num = 2 10.0.1.33 0.61 ms
! seq_num = 3 10.0.1.33 0.45 ms
! seq_num = 4 10.0.1.33 0.56 ms
! seq_num = 5 10.0.1.33 0.52 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 0.45/0.57/0.69
Source
PE1#ping mpls ospf-sr ipv4 10.0.1.33/32 source 10.0.1.11
Sending 5 MPLS Echos to 2.32.0.0, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
!
!
!
!
!
 
Success Rate is 100.00 percent (5/5)
Flags
PE1#ping mpls ospf-sr ipv4 10.0.1.33/32 destination 127.1.0.1 flags detail
Sending 5 MPLS Echos to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
! seq_num = 1 10.0.1.33 0.63 ms
! seq_num = 2 10.0.1.33 0.58 ms
! seq_num = 3 10.0.1.33 0.65 ms
! seq_num = 4 10.0.1.33 0.56 ms
! seq_num = 5 10.0.1.33 0.56 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 0.56/0.61/0.65
Timeout
PE1#ping mpls ospf-sr ipv4 10.0.1.33/32 timeout 500 detail
Sending 5 MPLS Echos to 10.0.1.33, timeout is 500 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
! seq_num = 1 10.0.1.33 0.89 ms
! seq_num = 2 10.0.1.33 0.61 ms
! seq_num = 3 10.0.1.33 0.59 ms
! seq_num = 4 10.0.1.33 0.62 ms
! seq_num = 5 10.0.1.33 0.63 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 0.59/0.74/0.89
Force-explicit-null
PE1#ping mpls ospf-sr ipv4 10.0.1.33/32 force-explicit-null detail
Sending 5 MPLS Echos to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
! seq_num = 1 10.0.1.33 0.81 ms
! seq_num = 2 10.0.1.33 0.54 ms
! seq_num = 3 10.0.1.33 0.51 ms
! seq_num = 4 10.0.1.33 0.57 ms
! seq_num = 5 10.0.1.33 0.74 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 0.51/0.66/0.81
Reply-mode
PE1#ping mpls ospf-sr ipv4 10.0.1.33/32 reply-mode 2 detail
Sending 5 MPLS Echos to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
! seq_num = 1 10.0.1.33 0.91 ms
! seq_num = 2 10.0.1.33 0.73 ms
! seq_num = 3 10.0.1.33 0.62 ms
! seq_num = 4 10.0.1.33 0.70 ms
! seq_num = 5 10.0.1.33 0.57 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 0.57/0.74/0.91
Repeat
PE1#ping mpls ospf-sr ipv4 10.0.1.33/32 repeat 5 detail
Sending 5 MPLS Echos to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
! seq_num = 1 10.0.1.33 0.80 ms
! seq_num = 2 10.0.1.33 0.71 ms
! seq_num = 3 10.0.1.33 0.58 ms
! seq_num = 4 10.0.1.33 0.56 ms
! seq_num = 5 10.0.1.33 0.54 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 0.54/0.67/0.80
Interval
PE1#ping mpls ospf-sr ipv4 10.0.1.33/32 interval 10 detail
Sending 5 MPLS Echos to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
! seq_num = 1 10.0.1.33 0.74 ms
! seq_num = 2 10.0.1.33 0.62 ms
! seq_num = 3 10.0.1.33 0.56 ms
! seq_num = 4 10.0.1.33 0.62 ms
! seq_num = 5 10.0.1.33 0.64 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 0.56/0.65/0.74
TTL
PE1#ping mpls ospf-sr ipv4 10.0.1.33/32 ttl 225 detail
Sending 5 MPLS Echos to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
! seq_num = 1 10.0.1.33 0.76 ms
! seq_num = 2 10.0.1.33 0.67 ms
! seq_num = 3 10.0.1.33 0.70 ms
! seq_num = 4 10.0.1.33 0.64 ms
! seq_num = 5 10.0.1.33 0.51 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 0.51/0.63/0.76
Trace with other options
Details
PE1#trace mpls ospf-sr ipv4 10.0.1.33/32 detail
Tracing MPLS Label Switched Path to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
0 10.11.1.1 [Labels: 4 16700]
R 1 10.0.1.1 [Labels: 16700] 0.94 ms
R 2 10.0.1.3 [Labels: 16700] 0.99 ms
! 3 10.0.1.33 0.77 ms
Destination
PE1#trace mpls ospf-sr ipv4 10.0.1.33/32 destination 127.1.0.1 detail
Tracing MPLS Label Switched Path to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
0 10.11.1.1 [Labels: 4 16700]
R 1 10.0.1.1 [Labels: 16700] 0.82 ms
R 2 10.0.1.3 [Labels: 16700] 0.84 ms
! 3 10.0.1.33 0.84 ms
Source
PE1#trace mpls ospf-sr ipv4 10.0.1.33/32 destination 127.1.0.1 source 10.0.1.11 detail
Tracing MPLS Label Switched Path to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
0 10.11.1.1 [Labels: 4 16700]
R 1 10.0.1.1 [Labels: 16700] 0.88 ms
R 2 10.0.1.3 [Labels: 16700] 0.91 ms
! 3 10.0.1.33 0.57 ms
Flags
PE1#trace mpls ospf-sr ipv4 10.0.1.33/32 flags detail
Tracing MPLS Label Switched Path to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
0 10.11.1.1 [Labels: 4 16700]
R 1 10.0.1.1 [Labels: 16700] 0.85 ms
R 2 10.0.1.3 [Labels: 16700] 0.90 ms
! 3 10.0.1.33 0.56 ms
Reply mode
PE1#trace mpls ospf-sr ipv4 10.0.1.33/32 reply-mode 2 detail
Tracing MPLS Label Switched Path to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
0 10.11.1.1 [Labels: 4 16700]
R 1 10.0.1.1 [Labels: 16700] 0.82 ms
R 2 10.0.1.3 [Labels: 16700] 0.91 ms
! 3 10.0.1.33 0.66 ms
Repeat
PE1#trace mpls ospf-sr ipv4 10.0.1.33/32 repeat 100 detail
Tracing MPLS Label Switched Path to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
0 10.11.1.1 [Labels: 4 16700]
R 1 10.0.1.1 [Labels: 16700] 0.76 ms
R 2 10.0.1.3 [Labels: 16700] 0.89 ms
! 3 10.0.1.33 0.72 ms
Interval
PE1#trace mpls ospf-sr ipv4 10.0.1.33/32 interval 100 detail
Tracing MPLS Label Switched Path to 10.0.1.33, timeout is 5 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
0 10.11.1.1 [Labels: 4 16700]
R 1 10.0.1.1 [Labels: 16700] 0.79 ms
R 2 10.0.1.3 [Labels: 16700] 0.98 ms
! 3 10.0.1.33 0.76 ms
Timeout
PE1#trace mpls ospf-sr ipv4 10.0.1.33/32 timeout 300 detail
Tracing MPLS Label Switched Path to 10.0.1.33, timeout is 300 seconds
 
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
 
Type 'Ctrl+C' to abort
 
0 10.11.1.1 [Labels: 4 16700]
R 1 10.0.1.1 [Labels: 16700] 0.94 ms
R 2 10.0.1.3 [Labels: 16700] 0.90 ms
! 3 10.0.1.33 0.70 ms
Last modified date: 10/20/2023