ping mpls

Use this command to start sending MPLS request packets using various parameters as defined below. Ping packets can be configured for LDP, RSVP, L2 circuit, VPLS, L3 VPN, Segment Routing or generic FEC types.

Command Syntax

Copy
 ping mpls (ldp A.B.C.D/M|rsvp (tunnel-name NAME|egress A.B.C.D)|l2-circuit <1-4294967295> peer A.B.C.D/M |vpls <1-10000> peer A.B.C.D/M|l3vpn VRFNAME A.B.C.D/M |ipv4 A.B.C.D/M) ({reply-mode (1|2)|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}|)
ping mpls (l3vpn (VRFNAME A.B.C.D/M X:X::X:X/M source A.B.C.D destination A.B.C.D)) ({timeout <1-500>|ttl <1-255>|repeat <5-5000>|interval <2-20000>|detail}|)
ping mpls (6pe default X:X::X:X/M source A.B.C.D destination A.B.C.D)) ({timeout <1-500>|ttl <1-255>|repeat <5-5000>|interval <2-20000>|detail}|)
ping mpls (| protocol-origin (local | pcep) )(sr-policy SR_POLICY_NAME (| candidate-path CANDIDATE_PATH_ID))({flags|source A.B.C.D | ttl <1-255> | timeout <1-500> | repeat <5-5000>|interval <2-20000> | force-explicit-null | detail}|)
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

ldp

FEC type is LDP

A.B.C.D/M

LDP prefix address

rsvp

FEC type is RSVP

tunnel-name

RSVP tunnel name

NAME

Tunnel name string

egress

RSVP tunnel egress

A.B.C.D

3RSVP tunnel egress address

l2-circuit

FEC type is L2 circuit

<1-4294967295>

L2 circuit ID

peer A.B.C.D/M

IP address of the peer

vpls

FEC type is MPLS VPLS (L2-VPN)

<1-10000>

VPLS instance ID

peer

VPLS peer

A.B.C.D/M

VPLS peer address

l3vpn

FEC type is MPLS VPN (L3-VPN)

VRFNAME

VPN instance name

A.B.C.D./M

VPN prefix

X:X::X:X/M

VPNv6 prefix

6pe

FEC type (6PE)

default

VPN Instance Name (default)

X:X::X:X/M

6PE Prefix

ipv4

FEC type is generic; use for static/SNMP label switched paths

A.B.C.D/M

IPv4 prefix address

Protocol-origin

Protocol origin for SR policy

Local

local originated sr policy

Pcep

Pcep orginated SR policy

SR policy

SR policy ping

SR_POLICY_NAME

Policy name

Candidate-path

Candidate path

CANDIDATE_PATH_ID

Candidate path id

reply-mode

Reply mode, one of

1

Do not reply

2

Reply via UDP/IP packet (default)

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

repeat

Repeat sending of ping packets

<5-5000>

Number of pings to send

interval

Interval between ping packets, in milliseconds

<2-20000>

Interval value

timeout

Time to wait before rejecting the probe as a failure, in seconds

<1-500>

Timeout value

force-explicit-null

Force Explicit NULL label

detail

Print detailed output of the ping

Defaults

TTL value is 255.

Timeout value is 60 seconds.

Command Mode

Privileged execution mode

Applicability

This command was introduced before OcNOS version 1.3. The SR ping command was introduced in OcNOS version 4.1.

Example

Copy
#ping mpls ipv4 10.10.0.0/24 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
 
#ping mpls l2-circuit 3 peer 192.0.2.0/32 reply-mode 2 flags destination 127.1.3.4 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
 
#ping mpls l3vpn vrfa 10.10.0.0/24 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
 
#ping mpls ldp 10.10.0.0/24 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
 
#ping mpls rsvp egress 1.2.3.5 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
 
#ping mpls rsvp tunnel-name tun1 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
 
#ping mpls vpls 2 peer 10.10.0.0 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
 
# ping mpls sr-policy LSP3_R1_R4_R2 detail
# ping mpls ospf-sr ipv4 2.2.2.2/32 detail
# ping mpls isis-sr ipv4 2.2.2.2/32 detail
 
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 200.0.0.1 2.02 ms
! seq_num = 2 200.0.0.1 2.00 ms
! seq_num = 3 200.0.0.1 1.93 ms
! seq_num = 4 200.0.0.1 2.14 ms
! seq_num = 5 200.0.0.1 1.78 ms
 
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 1.78/1.96/2.14