ping vc

Function

The ping vc command checks PW connectivity on a VPWS network and locates faults, such as forwarding entry loss or errors when the PW is Up.

Format

ping vc vc-type pw-id [ peer-address ] [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v | -g ] * control-word [ remote remote-ip-address peer-pw-id [ sender sender-address ] ] [ ttl ttl-value ] [ pipe | uniform ] [ bypass -si { interface-name | interface-type interface-number } ]

ping vc vc-type pw-id [ peer-address ] [ -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 ] [ bypass -si { interface-name | interface-type interface-number } ]

ping vc vc-type pw-id [ peer-address ] [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v | -g ] * normal [ no-control-word ] [ remote remote-ip-address peer-pw-id ] [ ttl ttl-value ] [ pipe | uniform ] [ bypass -si { interface-name | interface-type interface-number } ]

Parameters

Parameter Description Value
vc-type

Specifies the encapsulation type of a local PW.

Encapsulation types supported:
  • Other encapsulation types:
    • cep: This encapsulation type is used for CEP services.
    • ethernet: This encapsulation type is used when Ethernet packets do not carry VLAN information.
    • ip-interworking: This encapsulation type is used for interworking between Huawei devices.
    • ip-layer2: This encapsulation type is used for interworking between Huawei devices and non-Huawei devices.
    • vlan: This encapsulation type is used when Ethernet packets carry VLAN information.
pw-id

Specifies the ID of a local PW.

The value is an integer ranging from 1 to 4294967295.

peer-address

Specifies the peer LSR ID of the local PW.

The value is in dotted decimal notation.

-c echo-number

Specifies the number of MPLS echo request packets to be sent.

When network quality is not high, more packets can be sent to check network quality based on a packet loss ratio.

The value is an integer ranging from 1 to 4294967295. The default value is 5.

-m time-value

Specifies the time to wait before the next MPLS echo request packet is sent.

When network quality is not high, set the value greater than or equal to 2000 milliseconds.

The value is an integer ranging from 1 to 10000 in milliseconds. The default value is 2000.

  • m time-value must be greater than or equal to -t timeout-value.
-s data-bytes

Specifies the number of bytes in MPLS echo request packets to be sent.

The value is an integer ranging from 65 to 9600 in bytes. The default value is 100.

-t timeout-value

Specifies the timeout of MPLS echo request packets to be sent.

The value is an integer ranging from 0 to 65535 in milliseconds. The default value is 2000. - t timeout-value must be less than or equal to -m time-value.

-exp exp-value

Specifies the EXP value in MPLS echo request packets to be sent.

The value is an integer ranging from 0 to 7. The default value is 0.

-r reply-mode

Specifies the mode by which the peer returns an MPLS echo reply packet.

The value is an integer ranging from 1 to 4.

1: no reply.

2: reply with an IPv4 UDP packet.

3: reply with an IPv4 or IPv6 UDP packet carrying the router-alert option. The value 3 is not supported currently.

4: reply through the control channel of the application plane.

The default value is 2.

-v

Displays detailed information.

-

-g

Performs the test using MPLS fragments.

-

control-word

Specifies the control-word mode.

In this mode, if the TTL does not expire when multiple hops exist, the switch node does not send MPLS echo request packets to the CPU. Therefore, you can only ping the egress node of the PW in control word mode.

In this mode, the source end obtains little information about the PW but the ping test has little impact on device performance. Furthermore, the source end cannot obtain information about the downstream of the switch node. This mode is recommended when a great number of MPLS echo request packets are transmitted.

Enable the control word mode for the PW before you ping a VC in control word mode.

-

remote remote-ip-address

Specifies the remote PW address.

The value is in dotted decimal notation.

peer-pw-id

Specifies the remote PW ID.

The value is an integer ranging from 1 to 4294967295.

sender sender-address

Specifies a source IP address. For MS-PW E2E detection, specify a source IP address for the public network device that communicates with the remote PE. The source IP address is usually the IP address of an adjacent superstratum provider edge (SPE) or user-end provider edge (UPE).

The value is in dotted decimal notation.

ttl ttl-value

Specifies a TTL value.

The value is an integer ranging from 1 to 255. The default value is 255.

pipe

Specifies the pipe mode. In this mode, when a probe packet passes through an MPLS domain, the IP TTL value is decreased by 1 only on the ingress and egress nodes. The MPLS domain is used as a next hop.

-

uniform

Specifies the uniform mode. The IP TTL value is decreased by 1 each time a probe packet passes through each hop in the MPLS domain.

-

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 an inbound interface.

Sets the inbound interface of MPLS ECHO-REQUEST packets to simulate a remote device to send packets. It can be used to detect the fault of the packet forwarding path that enters through a specific interface.

-

interface-type

Specifies the type of an inbound interface.

Sets the inbound interface of MPLS echo request packets to simulate a remote device to send packets. It can be used to detect the fault of the packet forwarding path that enters through a specific interface.

-

interface-number

Specifies the number of an inbound interface.

Sets the inbound interface of MPLS echo request packets to simulate a remote device to send packets. It can be used to detect the fault of the packet forwarding path that enters through a specific interface.

-

label-alert

Specifies the label alert mode.

In this mode, the switch node sends MPLS echo request packets to the CPU when multiple hops exist. Therefore, you can ping any switch node of the PW in label alert mode.

In this mode, the source end obtains much information about the PW but device performance deteriorates if a great number of packets are transmitted. This mode is recommended when a small number of MPLS echo request packets are transmitted to obtain details about the switch node.

-

no-control-word

The control word option is disabled.

-

normal

Specifies the TTL mode. No control-word or router-alert option is encapsulated into an MPLS echo request packet. TTL values are used to monitor PW connectivity.

The default is uniform. If normal is specified, a correct TTL value must be set using the ttl ttl-value parameter. If the default TTL value 255 is used, the device will fail to be pinged.

Views

All views

Default Level

0: Visit level

Task Name and Operations

Task Name Operations
sla execute

Usage Guidelines

Usage Scenario

The ping vc command is used to detect PW connectivity on a VPWS network. If a PW is Up, the ping vc command can be used to locate the fault on the PW. For example, a forwarding entry is abnormally lost or incorrect.

The ping vc command can be used to check a PW in the following scenarios:

  • PWE3 VLL PW ping: In the PWE3 VLL networking, a PW ping is initiated to check the connectivity of the PW. A PWE3 VLL PW ping can be performed in control word mode, ttl mode or label alert mode. In a ping test, an echo request message is first sent to the peer PE. After receiving the message, the peer PE abstracts and sends FEC information to the L2VPN module to determine whether the message has reached the egress. If so, an echo reply message is returned.
  • LDP VPLS PW ping: The LDP VPLS PW ping supports only the label alert mode. On a hierarchical virtual private LAN service (HVPLS) network, the LDP VPLS PW ping can only detect SH-PWs. If an optional PW ID is configured and specified, the PW corresponding to the PW ID is detected. If the PW ID is not specified, the PW corresponding to the VSI ID is detected.

    If a PW fault is detected by using the ping vc command, the tracert vc command can be used to locate the fault. Both the ping vc command and the tracert vc command can properly check the connectivity of PWs and locate faults.

Prerequisites

Basic VPWS network configurations are complete.

Configuration Impact

It is recommended that you use the control-word option to monitor the connectivity of an entire PW. Although you can use the label-alert option to monitor an entire circuit, the control-word option must be used to simulate live network forwarding.

Precautions

A ping vc operation terminates when either of the following situations occurs:

  • A message reaches the egress.
  • The TTL in a message expires.

Example

# Run the ping vc command with the control word mode specified to check the connectivity of an Ethernet PW.
<HUAWEI> ping vc ethernet 100 control-word
   PW PING : FEC 128 PSEUDOWIRE (NEW). Type = ethernet, ID = 100 : 100 data bytes, press CTRL_C to break
    Reply from 10.10.10.10: bytes=100 Sequence=1 time = 140 ms    
    Reply from 10.10.10.10: bytes=100 Sequence=2 time = 40 ms    
    Reply from 10.10.10.10: bytes=100 Sequence=3 time = 30 ms    
    Reply from 10.10.10.10: bytes=100 Sequence=4 time = 50 ms    
    Reply from 10.10.10.10: bytes=100 Sequence=5 time = 50 ms 
- -- FEC: FEC 128 PSEUDOWIRE (NEW). Type = ethernet, ID = 100 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 30/62/140 ms
# Run the ping vc command with the normal mode specified to check the connectivity of a VLAN PW.
<HUAWEI> ping vc vlan 53 normal  ttl 1
   PW PING : FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 53 : 100 data bytes, press CTRL_C to break
    Reply from 2.2.2.2: bytes=100 Sequence=1 time = 8 ms
    Reply from 2.2.2.2: bytes=100 Sequence=2 time = 1 ms
    Reply from 2.2.2.2: bytes=100 Sequence=3 time = 1 ms
    Reply from 2.2.2.2: bytes=100 Sequence=4 time = 1 ms
    Reply from 2.2.2.2: bytes=100 Sequence=5 time = 1 ms
- -- FEC : FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 53 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 1/2/8 ms
# Run the ping vc command to check the connectivity of a bypass PW on simulated inbound interface GigabitEthernet0/1/11.1.
<HUAWEI> ping vc vlan 100 control-word  bypass -si GigabitEthernet0/1/11.1
   PW PING : FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 100 : 100 data bytes, press CTRL_C to break
   Reply from 1.1.1.9: bytes=100 Sequence=1 time=3 ms
   Reply from 1.1.1.9: bytes=100 Sequence=2 time=3 ms
- -- FEC : FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 100 ping statistics ---
  2 packet(s) transmitted
  2 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 3/3/3 ms
Table 1 Description of the ping vc command output
Item Description
PW PING : FEC 128 PSEUDOWIRE (NEW). Type = x,

PW type.

ID = x :

PW ID.

Reply from x.x.x.x: bytes=x Sequence=x ttl=x time=x ms Return Code x, Subcode x

Response from the destination host to each Echo Request packet, including:

  • bytes: length of the ICMP Echo Reply message.
  • sequence: sequence number of the ICMP Echo Reply message.
  • time: response time, in milliseconds.

If no response packet is received after the timeout period expires, the message "Request time out" is displayed.

FEC: FEC

Statistics collected after a ping test is performed on the destination host, including:

  • packet(s) transmitted: number of sent Echo Request packets.
  • packet(s) received: number of received Echo Reply packets.
  • % packet loss: percentage of the number of unacknowledged packets to the total number of response packets.
  • round-trip min/avg/max: minimum, average, and maximum response time.
x data bytes, press CTRL_C to break

Length of the sent Echo Request packet.

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