ping vpls [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -r reply-mode | -exp exp-value | -v | -g ] * vsi vsi-name { peer peer-address [ negotiate-vc-id vc-id ] [ control-word [ remote remote-address remote-pw-id [ sender sender-address ] ] ] | local-site-id remote-site-id } [ bypass -si { interface-name | interface-type interface-number } ]
ping vpls [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -r reply-mode | -exp exp-value | -v | -g ] * vsi vsi-name local-site-id remote-site-id [ control-word ] [ bypass -si { interface-name | interface-type interface-number } ]
Parameter | Description | Value |
---|---|---|
-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 a 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 of 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 period for MPLS Echo Request packets to be sent. |
The value is an integer ranging from 0 to 65535, in milliseconds. The default value is 2000.
|
-r reply-mode |
Specifies the mode in which the peer returns an MPLS Echo Reply packet. |
The value is an integer ranging from 1 to 4. Each mode is described as follows:
Currently, only values 1, 2, and 4 are supported. |
-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. |
-v |
Displays detailed output information. |
- |
-g |
Performs the test using MPLS fragments. |
- |
vsi vsi-name |
Specifies the name of a VSI to be checked. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. |
peer peer-address |
Specifies an IP address for a peer. |
The value is in dotted decimal notation. |
negotiate-vc-id vc-id |
Specifies a PW ID for a local PE. |
The value is an integer ranging from 1 to 4294967295. Note the following points when configuring VPLS:
|
control-word |
Indicates that the control word is encapsulated into a packet. When detecting an MS-PW, you can specify control-word. |
- |
remote remote-address |
Specifies the destination address of a remote LDP session. |
The value is in dotted decimal notation. |
remote-pw-id |
Specifies the ID of a remote PW. |
The value is an integer ranging from 1 to 4294967295. |
sender sender-address |
Specifies a source 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. |
local-site-id |
Specifies the ID of the local CE. |
The value is an integer ranging from 0 to 65534. |
remote-site-id |
Specifies the ID of the remote CE. |
The value is an integer ranging from 0 to 65534. |
bypass |
Forwards packets through a specified public backup LSP of a VPLS PW. If bypass is specified on the inbound interface, packets from the initiator are forwarded through the public backup LSP. If the response end supports backup LSP detection, packets are forwarded through the public backup LSP; otherwise, the response end replies in the specified -r mode. In a hybrid load balancing scenario, if multiple backup LSPs exist, packets are forwarded through a randomly selected LSP rather than any specified backup LSP. If reply packets are transmitted through an application-plane control channel, the PEs at both ends of a PW must have protection paths configured. Otherwise, when the peer PE does not have any public backup LSP, PW ping reply packets cannot be returned. |
- |
-si interface-name |
Specifies the name of a simulated inbound interface. |
- |
interface-type |
Specifies the type of a simulated inbound interface. |
- |
interface-number |
Specifies the number of a simulated inbound interface. |
- |
Usage Scenario
To monitor PW connectivity on a VPLS network, run the ping vpls command.
Prerequisites
Basic VPLS network configurations are complete.
<HUAWEI> ping vpls -s 2000 -g vsi a2 peer 3.3.3.9
PW PING : FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 2 : 2000 data bytes, press CTRL_C to break
Reply from 3.3.3.9: bytes=2000 Sequence=1 time=60 ms
Reply from 3.3.3.9: bytes=2000 Sequence=2 time=50 ms
Reply from 3.3.3.9: bytes=2000 Sequence=3 time=60 ms
Reply from 3.3.3.9: bytes=2000 Sequence=4 time=60 ms
Reply from 3.3.3.9: bytes=2000 Sequence=5 time=60 ms
- -- FEC: FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 50/58/60 ms
<HUAWEI> ping vpls vsi a2 peer 10.1.1.1 bypass -si GigabitEthernet0/1/1 PW PING : FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID =2 : 100 data bytes, press CTRL_C to break Reply from 10.1.1.1: bytes=100 Sequence=1 time=60 ms Reply from 10.1.1.1: bytes=100 Sequence=2 time=50 ms Reply from 10.1.1.1: bytes=100 Sequence=3 time=60 ms Reply from 10.1.1.1: bytes=100 Sequence=4 time=60 ms Reply from 10.1.1.1: bytes=100 Sequence=5 time=60 ms - -- FEC: FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 50/58/60 ms
<HUAWEI> ping vpls vsi v1 1 2
PW PING FEC: L2 VPN ENDPOINT. Sender VEID = 1, Remote VEID = 2 : 100 data bytes, press CTRL_C to break
Reply from 10.1.1.2: bytes=100 Sequence=1 time=5 ms
Reply from 10.1.1.2: bytes=100 Sequence=2 time=3 ms
Reply from 10.1.1.2: bytes=100 Sequence=3 time=3 ms
Reply from 10.1.1.2: bytes=100 Sequence=4 time=2 ms
Reply from 10.1.1.2: bytes=100 Sequence=5 time=3 ms
- -- 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 = 2/3/5 ms
<HUAWEI> ping vpls vsi a2 peer 10.1.1.1
PW PING : FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 2 : 100 data bytes, press CTRL_C to break
Reply from 10.1.1.1: bytes=100 Sequence=1 time=60 ms
Reply from 10.1.1.1: bytes=100 Sequence=2 time=50 ms
Reply from 10.1.1.1: bytes=100 Sequence=3 time=60 ms
Reply from 10.1.1.1: bytes=100 Sequence=4 time=60 ms
Reply from 10.1.1.1: bytes=100 Sequence=5 time=60 ms
- -- FEC: FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 50/58/60 ms
Item | Description |
---|---|
Type | PW type. |
ID | ID of the PW. |
packet(s) transmitted | Number of transmitted echo request packets. |
packet(s) received | Number of received echo reply packets. |
packet loss | Percentage of the number of non-response packets to the total number of response packets. |
round-trip min/avg/max | Minimum, average, and maximum response time. |
Sender VEID | ID of the CE at the transmit end. |
Remote VEID | ID of the remote CE. |
bytes | Length of the response packet. |
Sequence | Sequence number of a response packet. |
time | Response time, in the unit of ms. If no response packet is received after the timeout, "Request time out" is displayed. |