ping meg

Function

The ping meg command enables the loopback function to monitor the connectivity of an MPLS-TP link in a specified MEG.

Format

ping meg meg-name [ { mip ttl ttl-number { mip-id mip-id-value | node-id node-id-value } [ if-num if-numvalue ] } | -c count-value | packet-size size-value | -t timeout-value ] * [ request-tlv ]

Parameters

Parameter Description Value
meg-name

Specifies the name of a MEG.

The value is a string of 1 to 14 case-sensitive characters, spaces not supported.

mip

Indicates a MIP to be monitored.

-

ttl ttl-number

Specifies the number of hops of the route to the destination of a probe packet.

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

mip-id mip-id-value

Specifies the ID of the destination MIP to be monitored.

The value is an integer ranging from 1 to 8191.

node-id node-id-value

Specifies the ID of a node.

The value is in dotted decimal notation.

if-num if-numvalue

Specifies the interface index of the destination node to be monitored.

The value is an integer ranging from 0 to 4294967295.

-c count-value

Specifies the number of sent probe packets.

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

packet-size size-value

Specifies the size of a ping packet.

The value is an integer ranging from 64 to 1500.

-t timeout-value

Specifies the timeout period for waiting for a response packet, in milliseconds.

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

request-tlv

Specifies the request type-length-value (TLV).

-

Views

All views

Default Level

0: Visit level

Task Name and Operations

Task Name Operations
tpoam execute

Usage Guidelines

Usage Scenario

The ping meg command is the most common tool that is used to test MPLS-TP network connectivity. It uses loopback packets to monitor:

  • Availability of a remote device
  • Round-trip delay in communication between MEPs
  • Loss of ping packets

    After the ping meg command is run on a MEP to monitor bidirectional link connectivity, the MEP sends a unicast ETH-LB frame carrying a request. If no reply to the unicast ETH-LB frame is received within an interval specified by timeout-value, the link between the MEP and RMEP is considered disconnected.

Prerequisites

  • A MEG and an ME have been created.
  • An ME has been created on the MIP for ping MIP. Ping MIP can be initiated only on a MEP. A MIP can only respond to packets from the MEP and cannot be an initiator.

Precautions

If the transmission speed is slow, increase the timeout period to wait for a response packet.

Ping MIP can monitor static bidirectional co-routed LSPs and multi-segment PWs only.

Example

# Enable the loopback function to monitor the connectivity of the link in a MEG named abc with the MIP, TTL value of 1, node ID of 2.2.2.2, and request-tlv specified.
<HUAWEI> ping meg abc mip ttl 1 node-id 2.2.2.2 request-tlv

PING abc: 93 data bytes, press CTRL_C to break
    Reply from abc: bytes=93, Sequence=1 time=70 ms
    Reply from abc: bytes=93, Sequence=2 time=60 ms
    Reply from abc: bytes=93, Sequence=3 time=50 ms
    Reply from abc: bytes=93, Sequence=4 time=50 ms
    Reply from abc: bytes=93, Sequence=5 time=80 ms
  --- ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max 50/62/80 ms
# Enable the loopback function to monitor the connectivity of the link in a MEG named test.
<HUAWEI> ping meg test
  PING test: 9 data bytes, press CTRL_C to break
    Reply from test: bytes=9, Sequence=1 time=290 ms
    Reply from test: bytes=9, Sequence=2 time=60 ms
    Reply from test: bytes=9, Sequence=3 time=20 ms
    Reply from test: bytes=9, Sequence=4 time=120 ms
    Reply from test: bytes=9, Sequence=5 time=130 ms
  --- ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max 20/123/290 ms
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >