OcNOS-SP : Segment Routing Guide : Segment Routing Command Reference : Segment Routing Commands : ping mpls
ping mpls
Use this command to check the connectivity between ingress and egress of LSP. This command 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 connectivity verification on the segment routing control plane. Use this command to check connectivity if an LSP traverses entirely through a segment routing domain.
You can initiate the segment routing ping operation only when the segment routing control plane is available at the originator.
Command Syntax
ping mpls (ospf-sr | isis-sr) (ipv4 A.B.C.D/M ) ({reply-mode (1|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
reply-mode
Reply mode
1
Do not reply
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
#ping mpls ospf-sr ipv4 10.0.1.33/32 destination 127.1.0.1 flags detail
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
 
! seq_num = 1 0.0.0.0 1.98 ms
! seq_num = 2 0.0.0.0 1.68 ms
! seq_num = 3 0.0.0.0 1.37 ms
! seq_num = 4 0.0.0.0 1.59 ms
! seq_num = 5 0.0.0.0 1.85 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 1.37/1.67/1.98
Last modified date: 10/20/2023