ping vc vpn-instance

Function

The ping vc vpn-instance command detects the connectivity of the LSP between PEs in the BGP networking.

Format

ping vc vpn-instance vpn-instance-name local-ce-id remote-ce-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v | -g ] * { label-alert [ no-control-word ] | control-word } [ bypass -si { interface-name | interface-type interface-number } ]

Parameters

Parameter Description Value
local-ce-id

Specifies the ID of the local CE.

The value is a decimal integer ranging from 0 to 65534.

remote-ce-id

Specifies the ID of the remote CE.

The value is a decimal integer ranging from 0 to 65534

-c echo-number

Specifies the number of the sent Echo Request packets.

The value is a decimal integer that ranges from 1 to 4294967295. The default value is 5.

-m time-value

Indicates the interval for sending Echo Request packets.

The value is a decimal integer that ranges from 1 to 10000, in milliseconds. By default, the value is 2000.

-s data-bytes

Specifies the number of bytes of an Echo Request packet.

The value is a decimal integer ranging from 65 to 9600. By default, the value is 100.

-t timeout-value

Specifies the timeout period for sending Echo Request packets.

The value is a decimal integer ranging from 0 to 65535. By default, the value is 2000.

-exp exp-value

Specifies the EXP value in an Echo Request packet.

The value is an integer ranging from 0 to 7.

-r reply-mode

Specifies the mode of sending Echo Reply packets.

The value is a decimal integer ranging from 1 to 4. By default, the value is 2.

  • 1: indicates no reply.
  • 2: indicates a reply with an IPv4 or IPv6 UDP datagram.
  • 3: indicates a reply with an IPv4 or IPv6 datagram carrying an MPLS router alert label.
  • 4: indicates a reply through the control channel of the application plane.
-v

Displays detailed information.

-

-g

Performs the test using MPLS fragments.

-

label-alert

Indicates that in the case of a multi-segment PW, ping packets are forcibly sent on the transit node. In Label Alert mode, you can ping all transit nodes of a PW.

-

no-control-word

Disables the control word mode.

-

control-word

Indicates that in the case of a multi-segment PW, ping packets are forwarded without being resolved. In the control word mode, you can ping only the egress of the PW. The ping in control word mode can be performed only after the control word of a PW is enabled.

-

bypass

Forwards packets through a specified public bypass LSP of a PW. The packets from the initiator and response end are forwarded through this LSP.

If bypass LSP detection on the specified inbound interface is configured in CLI mode, the packets from the initiator are forwarded through a public bypass LSP. If the response end supports bypass LSP detection and LSP-based response is configured, the packets are forwarded through a public bypass LSP.

-

-si interface-name

Specifies the name of a simulated inbound interface.

Configure an inbound interface for MPLS Echo Request packets, so that you can simulate packet sending on the remote device and check whether the forwarding path of packets entering from the inbound interface is faulty.

-

interface-type

Specifies the type of a simulated inbound interface.

Configure an inbound interface for MPLS Echo Request packets, so that you can simulate packet sending on the remote device and check whether the forwarding path of packets entering from the inbound interface is faulty.

-

interface-number

Specifies the number of a simulated inbound interface.

Configure an inbound interface for MPLS Echo Request packets, so that you can simulate packet sending on the remote device and check whether the forwarding path of packets entering from the inbound interface is faulty.

-

vpn-instance vpn-instance-name

Specifies the VPN name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

0: Visit level

Task Name and Operations

Task Name Operations
sla execute

Usage Guidelines

Usage Scenario

If the control-word is enabled for a PW, it is recommended that you specify the control-word parameter to detect the connectivity of the PW. This ensures that ping packets are transmitted in the same manner as data packets on the PW.

Example

# Run the ping vc vpn-instance command in label-alert mode on the PE to detect the connectivity of the BGP PW.
<HUAWEI> ping vc vpn-instance vpn1 1 2 -v label-alert
PW PING : FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 100 : 100 data bytes, press CTRL_C to break   
    Reply from 4.4.4.4: bytes=100 Sequence=1 time = 110 ms Return Code 3, Subcode 1
    Reply from 4.4.4.4: bytes=100 Sequence=2 time = 90 ms Return Code 3, Subcode 1
    Reply from 4.4.4.4: bytes=100 Sequence=3 time = 60 ms Return Code 3, Subcode 1
    Reply from 4.4.4.4: bytes=100 Sequence=4 time = 60 ms Return Code 3, Subcode 1
    Reply from 4.4.4.4: bytes=100 Sequence=5 time = 90 ms Return Code 3, Subcode 1

  --- FEC: L2 VPN ENDPOINT. Sender VEID = 1, Remote VEID = 2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 60/82/110 ms
Table 1 Description of the ping vc vpn-instance command output
Item Description
FEC

FEC TLV type (L2 VPN ENDPOINT indicates the BGP PW that is negotiated by BGP).

Reply from

IP address of the echo reply packet.

Return Code

Return code of the echo reply packet:

  • 1: Malformed echo request received.
  • 2: One or more of the TLVs was not understood.
  • 3: Replying router is an egress for the FEC at stack-depth.
  • 4: Replying router has no mapping for the FEC at stack-depth.
  • 5: Downstream Mapping Mismatch.
  • 6: Upstream Interface Index Unknown.
  • 7: Reserved.
  • 8: Label switched at stack-depth.
  • 9: Label switched but no MPLS forwarding at stack-depth.
  • 10: Mapping for this FEC is not the given label at stack-depth.
  • 11: No label entry at stack-depth.
  • 12: Protocol not associated with interface at FEC stack-depth.
  • 13: Premature termination of ping due to label stack shrinking to a single label.
Subcode

Subcode of the echo reply packet (indicating the depth of the label stack in the packet).

Sender VEID

ID of the local CE.

Remote VEID

ID of the remote CE.

bytes

Length of the echo reply packet.

Sequence

Sequence number of the echo reply packet.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >