OcNOS-SP : Segment Routing Guide : Segment Routing Command Reference : Segment Routing Commands : trace mpls
trace mpls
Use this command to isolate the failure point of an LSP. This command 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.
You can initiate the segment routing traceroute operation only when the segment routing control plane is available at the originator. Use this command to check connectivity if an LSP traverses entirely through a segment routing domain
Command Syntax
trace mpls (ospf-sr | isis-sr )(ipv4 A.B.C.D/M | sr-policy SR_POLICY_NAME candidate-path CANDIDATE_PATH_ID)({reply-mode (2|3)|flags | destination A.B.C.D| source A.B.C.D | ttl <1-255> | timeout <1-500> | repeat <5-5000>| interval <2-20000> | force-explicit-null | detail}|)
Parameters
ospf-sr
OSPF
isis-sr
ISIS
ipv4
IPv4 address
A.B.C.D/M
IPv4 prefix address
SR_POLICY_NAME
Segment routing policy name
CANDIDATE_PATH_ID
 
Candidate path identifier
reply-mode
Reply mode
2
Reply via UDP/IP packet (default)
3
Reply via UDP/IP packet with router alert
flags
Validate FEC stack
destination
Destination address
A.B.C.D
IPv4 address of the destination
source
Source address
A.B.C.D
IPv4 address of the source
ttl
Trace packet Time-to-live
<1-255>
Trace packet TTL value
timeout
Time to wait before rejecting the probe as a failure
<1-500>
Timeout in seconds
repeat
Repeat sending of ping packets
<5-5000>
Number of pings to send
interval
Interval between ping packets
<2-20000>
Interval in milliseconds
force-explicit-null
 
Force Explicit Null label
detail
Print detailed output of the ping
Defaults
Default TTL is 255.
Default timeout is 60 seconds.
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#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 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
 
0 10.11.1.1 [Labels: 4 16500]
R 1 10.0.1.1 [Labels: 16500] 0.97 ms
1 10.11.1.1 [Labels: 4 16500]
! 2 10.0.1.33 3.90 ms
Last modified date: 10/20/2023