< Home

ping mac-8021ag

Function

The ping mac-8021ag command enables 802.1ag MAC ping to detect connectivity faults between a MEP and an RMEP or a MIP in an MA.

Format

All views except the MA view:

ping mac-8021ag mep mep-id mep-id md md-name ma ma-name { mac mac-address | remote-mep mep-id mep-id } [ -c count | interface interface-type interface-number | -s packetsize | -t timeout | -p priority-value ] *

MA view

ping mac-8021ag mep mep-id mep-id { md md-name ma ma-name { mac mac-address | remote-mep mep-id mep-id } | mac mac-address | remote-mep mep-id mep-id } [ -c count | interface interface-type interface-number | -s packetsize | -t timeout | -p priority-value ] *

Parameters

Parameter

Description

Value

mep mep-id mep-id Specifies the ID of a MEP. The MEP must have been created using the mep mep-id command. The value is an integer that ranges from 1 to 8191.
md md-name Specifies the name of an MD. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?).
ma ma-name Specifies the name of an MA. The value is a string of 1 to 43 case-sensitive characters without spaces, hyphens (-), and question marks (?). The total length of the names of the MA and MD must be within 44 characters.
mac mac-address
Specifies the MAC address of the destination node. The destination node can be a MEP or MIP. mac-address specifies the MP's MAC address.
NOTE:
An MP's MAC address can be a bridge MAC address or the MAC address of the interface where the MP is configured. The MAC address depends on the configured MP address model:
  • If the shared MP address model is configured, an MP uses a bridge MAC address as its own MAC address.

  • If the independent MP address model is configured, an MP uses the MAC address of the interface where the MP is configured.

The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. The value cannot be a broadcast or multicast MAC address.
remote-mep mep-id mep-id Specifies the ID of an RMEP. The value is an integer that ranges from 1 to 8191.
-c count Specifies the number of ping attempts. The value is an integer that ranges from 1 to 4294967295. The default value is 5.
interface-type interface-number Specifies the outbound interface on the local device for sending ping packets.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-
-s packetsize Specifies the size of a ping packet. The value is an integer that ranges from 95 to 9000, in bytes. The default value is 95.
-t timeout Specifies the timeout interval for waiting for a response packet. The value is an integer that ranges from 1 to 65535, in milliseconds. The default value is 2000 ms.
-p priority-value Specifies the priority of ping packets. The value is an integer that ranges from 0 to 7. The default value is the same as the 802.1p priority of 802.1ag packets specified in the MA view.

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

Similar to ping, 802.1ag MAC ping enables the local device to send test packets and wait for a response to check whether the destination device is reachable. In addition, the ping operation time can be calculated at the transmit end for network performance analysis.

A device is usually configured with multiple MDs and MAs. To accurately detect connectivity of a link between two or more devices, perform either of the following operations:
  • Run the ping mac-8021ag command in the MA view.
    • Run the ping mac-8021ag command without md md-name ma ma-name specified to check connectivity of links in a specified MA.

    • Run the ping mac-8021ag command with md md-name and ma ma-name specified to check connectivity of links based on the configured MA and MD.

  • Run the ping mac-8021ag command in all views except the MA view to check connectivity of links based on the configured MA and MD.

Prerequisites

  • The MA has been associated with a VLAN.

  • The MEP has been configured in the MA.

Precautions

802.1ag MAC ping is initiated by the local MEP in the MA and destined for a MEP or a MIP of the same level on other devices. The source node and the destination node can be located in different MAs.

If the outbound interface is specified, it cannot be configured with an inward-facing MEP.

Example

# Ping the MIP with a bridge MAC address of 0001-0300-0204 twice on the MEP in ma1 and set the size of ping packets to 112 bytes.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] ping mac-8021ag mep mep-id 1 mac 0001-0300-0204 -c 2 -s 112
Pinging 0001-0300-0204 with 112 bytes of data: 
Reply from 0001-0300-0204: bytes = 112 time = 9ms
Reply from 0001-0300-0204: bytes = 112 time = 11ms
Packets: Sent = 2, Received = 2, Lost = 0  <0% Lost >
Minimum = 9ms, Maximum = 11ms, Average = 10ms
Table 1 Description of the ping mac-8021ag command output

Item

Description

Reply from 0001-0300-0204: bytes = 112 time = 9ms

Size and response time of ping packets sent by the destination device.

When the response time is less than 1 ms, "time < 1ms" is displayed.

Packets: Sent = 2, Received = 2, Lost = 0 <0% Lost >

Number of sent ping packets, number of received reply packets, and number and percentage of discarded packets.

Minimum

Minimum round-trip time (RTT).

Maximum

Maximum RTT.

Average

Average RTT.

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