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.
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 } ]
Parameter | Description | Value |
---|---|---|
vc-type |
Specifies the encapsulation type of a local PW. |
Encapsulation types supported:
|
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.
|
-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. |
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: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:
<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
<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
<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
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:
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:
|
x data bytes, press CTRL_C to break | Length of the sent Echo Request packet. |