After you configure a virtual private wire service (VPWS) network, use pseudo wire (PW) ping to monitor PW connectivity on the VPWS network.
Before testing pseudo wire (PW) connectivity using the ping vc command, ensure that the VPWS network has been configured correctly.
To check whether a PW on the VPWS network is faulty, run the ping vc command. When the PW is Up, you can locate faults, such as forwarding entry loss or errors.
Table 1 describes check modes and usage scenarios.
To monitor PW connectivity using the control-word mode, run the 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 ] command.
To monitor multi-segment PW connectivity, specify an IP address and a PW ID for the remote PE and a source IP address in the remote remote-ip-address peer-pw-id [ sender sender-address ] command.
To monitor PW connectivity using the label-alert mode, run the 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 ] command.
To monitor PW connectivity using the TTL mode, run the 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 ] command.
To monitor multi-segment PW connectivity, specify an IP address and a PW ID for the remote PE and set a TTL value in the remote remote-ip-address peer-pw-id [ ttl ttl-value ] [ pipe | uniform ] command.
The ping vc command output contains the following information:
Response to each ping VC packet: If no response packet is received after the corresponding timer expires, the message reading "Request time out" is displayed. If a response packet is received, the number of data bytes, packet sequence number, TTL, and response time are displayed.
Final statistics: include the number of sent packets, number of received packets, percentage of sent packets with failed responses, and minimum, maximum, and average response times.
For example:
<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