The ping meg command enables the loopback function to monitor the connectivity of an MPLS-TP link in a specified MEG.
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). |
- |
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:
Prerequisites
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.<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
<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