ping vpls

Function

The ping vpls command checks PW connectivity on a VPLS network.

Format

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 } ]

Parameters

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.

  • m time-value must be greater than or equal to -t timeout-value.
-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.

  • The minimum packet length is not fixed and depends on command parameter settings.
  • For example, when neither the exp-value parameter nor the bypass parameter is specified, a packet contains a minimum of 65 bytes. If the exp-value parameter is specified, the minimum packet length is increased by 8; if the bypass parameter is specified, the minimum packet length is increased by 12.
-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.

  • t timeout-value must be less than or equal to -m time-value.
-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:

  • 1: no reply
  • 2: reply with an IPv4 or IPv6 UDP packet
  • 3: reply with an IPv4 or IPv6 UDP packet carrying the router-alert option
  • 4: reply through the control channel of the application plane

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:

  • If negotiate-vc-id is not specified in the peer command, the VC ID is unique and equal to the VSI ID. For VPLS ping, you do not need to specify vc-id parameter because the VC is unique when vsi-name parameter and peer-address parameter are specified. The specified vc-id value must be the same as the existing VSI ID.
  • If you specify negotiate-vc-id in the peer command, you must specify vsi-name parameter, peer-address parameter, and vc-id parameter for VPLS ping.
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.

-

Views

All views

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tailmode1 execute

Usage Guidelines

Usage Scenario

To monitor PW connectivity on a VPLS network, run the ping vpls command.

  • To check the status of a PW on a BGP VPLS network, run the following command:

    ping vpls [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * vsi vsi-name local-site-id remote-site-id.
  • To check the status of the public backup LSP of a PW on a VPLS network, run the ping vpls [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * vsi vsi-name peer peer-address [ negotiate-vc-id vc-id ] [ control-word [ remote remote-address remote-pw-id [ sender sender-address ] ] ] [ bypass -si interface-type interface-number ] command.

Prerequisites

Basic VPLS network configurations are complete.

Example

# Check the connectivity of a VPLS service of which the name is
<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
# Check the connectivity of the public backup LSP of a PW on a VPLS network.
<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
# Check the status of a PW on a BGP VPLS network.
<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
# Check PW connectivity on the VPLS network, with the VSI and peer address set to a2 and 10.1.1.1, respectively.
<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
Table 1 Description of the ping vpls command output
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.

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