OcNOS-SP : Segment Routing Guide : Segment Routing Configuration Guide : Configuring ISIS Segment Routing : Segment Routing Ping and Traceroute
Segment Routing Ping and Traceroute
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 Trace
The MPLS LSP traceroute is used to isolate the failure point of an LSP. It is used for hop-by-hop fault locali-zation 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).
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.
Detail
PE1#ping mpls isis-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.33.1.1 2.41 ms
! seq_num = 2 10.33.1.1 1.06 ms
! seq_num = 3 10.33.1.1 1.11 ms
! seq_num = 4 10.33.1.1 1.67 ms
! seq_num = 5 10.33.1.1 1.07 ms
 
Success Rate is 100.00 percent (5/5) round-trip min/avg/max = 1.06/1.74/2.41
Destination
PE1#ping mpls isis-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.33.1.1 1.60 ms
! seq_num = 2 10.33.1.1 1.22 ms
! seq_num = 3 10.33.1.1 1.37 ms
! seq_num = 4 10.33.1.1 1.38 ms
! seq_num = 5 10.33.1.1 1.52 ms
 
Success Rate is 100.00 percent (5/5) round-trip min/avg/max = 1.22/1.41/1.60
 
Source
PE1#ping mpls isis-sr ipv4 10.0.1.33/32 destination 127.1.0.1 source 10.0.1.11 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.33.1.1 1.97 ms
! seq_num = 2 10.33.1.1 1.26 ms
! seq_num = 3 10.33.1.1 1.50 ms
! seq_num = 4 10.33.1.1 1.46 ms
! seq_num = 5 10.33.1.1 1.35 ms
 
Success Rate is 100.00 percent (5/5) round-trip min/avg/max = 1.26/1.62/1.97
 
PE1#ping mpls isis-sr ipv4 10.0.1.33/32 ?
destination Destination
detail detailed output
flags Validate Fec
force-explicit-null Force Explicit NULL label
interval Interval
repeat Count
reply-mode Reply-mode
source source
timeout Timeout of ping
ttl Time-to-live
<cr>
PE1#ping mpls isis-sr ipv4 10.0.1.33/32 flags ?
destination Destination
detail detailed output
force-explicit-null Force Explicit NULL label
interval Interval
repeat Count
reply-mode Reply-mode
source source
timeout Timeout of ping
ttl Time-to-live
<cr>
PE1#ping mpls isis-sr ipv4 10.0.1.33/32 flags de?
destination Destination
detail detailed output
PE1#ping mpls isis-sr ipv4 10.0.1.33/32 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.33.1.1 1.76 ms
! seq_num = 2 10.33.1.1 1.20 ms
! seq_num = 3 10.33.1.1 1.32 ms
! seq_num = 4 10.33.1.1 1.06 ms
! seq_num = 5 10.33.1.1 1.23 ms
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 1.06/1.41/1.76

PE1#ping mpls isis-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.33.1.1 2.12 ms
! seq_num = 2 10.33.1.1 1.41 ms
! seq_num = 3 10.33.1.1 1.55 ms
! seq_num = 4 10.33.1.1 1.60 ms
! seq_num = 5 10.33.1.1 1.37 ms
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 1.37/1.75/2.12

PE1#ping mpls isis-sr ipv4 10.0.1.33/32 repeat 10 detail
Sending 10 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.33.1.1 2.46 ms
! seq_num = 2 10.33.1.1 1.73 ms
! seq_num = 3 10.33.1.1 1.61 ms
! seq_num = 4 10.33.1.1 1.74 ms
! seq_num = 5 10.33.1.1 1.98 ms
! seq_num = 6 10.33.1.1 1.59 ms
! seq_num = 7 10.33.1.1 1.75 ms
! seq_num = 8 10.33.1.1 2.07 ms
! seq_num = 9 10.33.1.1 1.83 ms
! seq_num = 10 10.33.1.1 1.82 ms
Success Rate is 100.00 percent (10/10)
round-trip min/avg/max = 1.59/2.02/2.46

PE1#ping mpls isis-sr ipv4 10.0.1.33/32 interval 10000 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.33.1.1 1.81 ms
! seq_num = 2 10.33.1.1 2.02 ms
! seq_num = 3 10.33.1.1 1.90 ms
! seq_num = 4 10.33.1.1 1.83 ms
! seq_num = 5 10.33.1.1 6.84 ms
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 1.81/4.32/6.84

PE1#ping mpls isis-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.33.1.1 2.21 ms
! seq_num = 2 10.33.1.1 1.50 ms
! seq_num = 3 10.33.1.1 1.34 ms
! seq_num = 4 10.33.1.1 1.61 ms
! seq_num = 5 10.33.1.1 1.36 ms
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 1.34/1.78/2.21
=======================
TRACEROUTE
=======================

PE1#trace mpls isis-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: 17500]
R 1 10.11.1.2 [Labels: ] 2.00 ms
! 2 10.33.1.1 2.31 ms
PE1#trace mpls isis-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: 17500]
R 1 10.11.1.2 [Labels: ] 1.22 ms
! 2 10.33.1.1 1.61 ms

PE1#trace mpls isis-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: 17500]
R 1 10.11.1.2 [Labels: ] 1.26 ms
! 2 10.33.1.1 1.74 ms

PE1#trace mpls isis-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: 17500]
R 1 10.11.1.2 [Labels: ] 0.98 ms
! 2 10.33.1.1 1.35 ms

PE1#trace mpls isis-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: 17500]
R 1 10.11.1.2 [Labels: ] 1.34 ms
! 2 10.33.1.1 1.87 ms

PE1#trace mpls isis-sr ipv4 10.0.1.33/32 repeat 10 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: 17500]
R 1 10.11.1.2 [Labels: ] 1.22 ms
! 2 10.33.1.1 1.73 ms

PE1#trace mpls isis-sr ipv4 10.0.1.33/32 interval 1000 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: 17500]
R 1 10.11.1.2 [Labels: ] 1.04 ms
! 2 10.33.1.1 1.83 ms
 
Last modified date: 06/27/2023