No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

S1720, S2700, S5700, and S6720 V200R011C10

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Y.1731 Configuration Commands

Y.1731 Configuration Commands

Command Support

S1720GFR does not support Y.1731.

ais enable

Function

The ais enable command enables alarm indication signal (AIS) in an MA.

The undo ais enable command disables AIS in an MA.

By default, AIS is disabled.

NOTE:

Only the S5720HI, S5720EI, S6720EI, S6720S-EI, S1720X-E, S1720X, S5710-X-LI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, S6720S-SI, S5700S-28X-LI-AC, and S5700S-52X-LI-AC support this command.

Format

ais enable

undo ais enable

Parameters

None

Views

MD view, MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In MD nesting scenarios, if a MEP in a low-level MD detects a fault, the MEP sends a trap to the NMS. After a certain period, a MEP in the MD of a higher level also detects the fault and sends the same trap to the NMS. Enable the AIS function in low-level and high-level MDs to suppress the MEP of the high-level MD from sending traps to the NMS.

Precautions

The ais enable command can be used on only the device running IEEE Standard 802.1ag-2007.

When the device processes many AIS packets, the CPU usage will become high. When the device is enabled with AIS, it is recommended that nestling layers in an MD should be reduced and the number of interfaces associated with VLANs in an MA should be reduced.

Prerequisites

An MD has been created using the cfm md command and an MA has been created using the ma command.

Example

# Create an MD named md1, create an MA named ma1 in the MD, and enable the AIS function in ma1.

<HUAWEI> system-view
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] ais enable
Related Topics

ais interval

Function

The ais interval command sets the interval at which a MEP in an MA sends AIS PDUs to a MEP in a high-level MA.

The undo ais interval command restores the default interval.

By default, the interval at which AIS PDUs are sent is 1s.

NOTE:

Only the S5720HI, S5720EI, S6720EI, S6720S-EI, S1720X-E, S1720X, S5710-X-LI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, S6720S-SI, S5700S-28X-LI-AC, and S5700S-52X-LI-AC support this command.

Format

ais interval interval-value

undo ais interval

Parameters

Parameter Description Value
interval-value Specifies the interval at which AIS PDUs are sent. The value is an integer that ranges from 1 to 60, in seconds.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In MD nesting scenarios, if a MEP in a low-level MD detects a fault, the MEP sends a trap to the NMS. After a certain period, a MEP in the MD of a higher level also detects the fault and sends the same trap to the NMS. You can enable the AIS function in low-level and high-level MDs to suppress the MEP of the high-level MD from sending traps to the NMS. After AIS is enabled, set the interval at which AIS PDUs are sent according to the networking.

Precautions

The ais interval command can be used on only the device running IEEE Standard 802.1ag-2007.

Prerequisites

An MD has been created using the cfm md command, an MA has been created using the ma command, and AIS has been enabled using the ais enable command.

Example

# Create an MD named md1, create an MA named ma1 in the MD, and set the interval at which AIS PDUs are sent in ma1 to 60s.

<HUAWEI> system-view
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] ais interval 60
Related Topics

ais level

Function

The ais level command sets the level of AIS PDUs to be sent by a MEP in an MA.

The undo ais level command deletes the level of AIS PDUs to be sent by a MEP in an MA.

NOTE:

Only the S5720HI, S5720EI, S6720EI, S6720S-EI, S1720X-E, S1720X, S5710-X-LI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, S6720S-SI, S5700S-28X-LI-AC, and S5700S-52X-LI-AC support this command.

Format

ais level level-value

undo ais level

Parameters

Parameter Description Value
level-value Specifies the level of AIS PDUs to be sent. The value is an integer that ranges from 0 to 7.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In MD nesting scenarios, if a MEP in a low-level MD detects a fault, the MEP sends a trap to the NMS. After a certain period, a MEP in the MD of a higher level also detects the fault and sends the same trap to the NMS. You can enable the AIS function in low-level and high-level MDs to suppress the MEP of the high-level MD from sending traps to the NMS. After AIS is enabled, set the level of AIS PDUs to be sent according to the networking.

Precautions

The ais level command can be used on only the device running IEEE Standard 802.1ag-2007.

Prerequisites

An MD has been created using the cfm md command, an MA has been created using the ma command, and AIS has been enabled using the ais enable command.

Example

# Create an MD named md1, create an MA named ma1 in the MD, and set the level of AIS PDUs to be sent to 2 in ma1.

<HUAWEI> system-view
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] ais level 2
Related Topics

ais suppress-alarm

Function

The ais suppress-alarm command enables alarm suppression on the device.

The undo ais suppress-alarm command disables alarm suppression on the device.

By default, alarm suppression is disabled on the device.

NOTE:

Only the S5720HI, S5720EI, S6720EI, S6720S-EI, S1720X-E, S1720X, S5710-X-LI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, S6720S-SI, S5700S-28X-LI-AC, and S5700S-52X-LI-AC support this command.

Format

ais suppress-alarm

undo ais suppress-alarm

Parameters

None

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In MD nesting scenarios, after a MEP in a high-level MD receives an AIS PDU, the MEP does not send an alarm to the NMS. If the MEP does not receive any AIS PDU within the period 3.5 times as long as the interval at which AIS PDUs are sent, the alarm suppression function is disabled automatically on the local device.
  • If a MEP detects a link fault and sends an alarm to the NMS before receiving an AIS PDU, run the ais suppress-alarm command to enable the alarm suppression function. The MEP sends only an alarm indicating that the link fault is rectified if the MEP detects that the link fault is rectified.

  • If a MEP does not detect a link fault before receiving an AIS PDU, after the ais suppress-alarm command is used to enable the alarm suppression function, the MEP does not send an alarm to the NMS if the MEP detects a link fault.

Precautions

The ais suppress-alarm command can be used on only the device running IEEE Standard 802.1ag-2007.

Prerequisites

An MD has been created using the cfm md command, an MA has been created using the ma command, and AIS has been enabled using the ais enable command.

Example

# Create an MD named md1, create an MA named ma1 in the MD, and enable alarm suppression in ma1.

<HUAWEI> system-view
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] ais suppress-alarm
Related Topics

ais vlan

Function

The ais vlan command sets the range of VLANs to which the MEP of an MA sends AIS PDUs.

The undo ais vlan command cancels the configuration.

NOTE:

Only the S5720HI, S5720EI, S6720EI, S6720S-EI, S1720X-E, S1720X, S5710-X-LI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, S6720S-SI, S5700S-28X-LI-AC, and S5700S-52X-LI-AC support this command.

Format

ais vlan vid { low-vid [ to high-vid ] } &<1-10> mep mep-id

ais vlan pe-vid pe-vid ce-vid { low-ce-vid [ to high-ce-vid ] } &<1-10> mep mep-id

undo ais vlan vid { low-vid [ to high-vid ] } &<1-10> mep mep-id

undo ais vlan pe-vid pe-vid ce-vid { low-ce-vid [ to high-ce-vid ] } &<1-10> mep mep-id

undo ais vlan [ vid | pe-vid pe-vid ] mep mep-id

Parameters

Parameter Description Value
pe-vid pe-vid Specifies the VLAN ID in the outer tag of a VLAN frame. The value is an integer that ranges from 1 to 4094.
ce-vid low-ce-vid Specifies the lower limit of the VLAN ID in the inner tag of a VLAN frame. The value is an integer that ranges from 1 to 4094.
high-ce-vid Specifies the upper limit of the VLAN ID in the inner tag of a VLAN frame. The value is an integer that ranges from 1 to 4094.
vid low-vid Specifies the lower limit of the VLAN ID in an AIS PDU. The value is an integer that ranges from 1 to 4094.
high-vid Specifies the upper limit of the VLAN ID in an AIS PDU. The value is an integer that ranges from 1 to 4094.
mep mep-id Specifies the ID of a MEP. The ID identifies a MEP. The MEP ID must be unique in an MA and in a VLAN. The value is an integer that ranges from 1 to 8191.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run the ais vlan command to set the range of VLANs to which the AIS PDUs to be sent. This prevents the MEP from sending AIS PDUs to all VLANs and reduces the load of the system.

Precautions

The ais vlan command can be used on only the device running IEEE Standard 802.1ag-2007.

If the ais vlan command is run more than once, all configurations take effect.

Prerequisites

An MD has been created using the cfm md command, an MA has been created using the ma command, and AIS has been enabled using the ais enable command.

Example

# Create an MD named md1, create an MA named ma1 in the MD, and set the outer VLAN ID in outgoing AIS PDUs to 10 and set the inner VLAN ID range to 1 to 100.

<HUAWEI> system-view
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] ais vlan pe-vid 10 ce-vid 1 to 100 mep 1

# Create an MD named md1, create an MA named ma1 in the MD, and set the range of VLANs to which AIS PDUs are to be sent to 1 to 100 in ma1.

<HUAWEI> system-view
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] ais vlan vid 1 to 100 mep 1
Related Topics

delay-measure one-way continual

Function

The delay-measure one-way continual command configures proactive one-way frame delay measurement.

The undo delay-measure one-way continual command cancels the configuration.

By default, proactive one-way frame delay measurement is not configured in an MA.

Format

delay-measure one-way continual send mep mep-id { mac mac-address | remote-mep mep-id } interval 1000

undo delay-measure one-way continual send [ mep mep-id ]

Parameters

Parameter Description Value
mep mep-id Specifies the ID of a MEP. The value is an integer that ranges from 1 to 8191.
mac mac-address Specifies the MAC address of an RMEP. -
remote-mep mep-id Specifies the ID of an RMEP. The value is an integer that ranges from 1 to 8191.
interval 1000 Specifies the interval at which DM frames are sent. The value is 1000, in milliseconds.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Proactive OAM indicates that OAM actions are carried out continuously.

One-way frame delay measurement is implemented between two MEPs by exchanging DM frames. A MEP periodically sends DM frames carrying TxTimeStampf. After receiving a DM frame, the RMEP parses TxTimeStampf and compares this value with RxTimef (the time when the 1DM frame was received). The RMEP calculates the one-way frame delay based on these values using the following formula: Frame delay = RxTimef - TxTimeStampf

When clocks of the MEPs at both ends of a link are synchronized, the delay-measure one-way continual command can be used to implement proactive one-way frame delay measurement for a VLAN.

To implement proactive one-way frame delay measurement, specify the RMEP ID or destination MAC address, and interval at which DM frames are sent:
  • If the local MEP has not learned the RMEP MAC address, you must specify the destination MAC address for frame delay measurement.

  • If the local MEP has learned the RMEP MAC address, you can specify the RMEP ID for frame delay measurement.

Prerequisites

The command takes effect only after the following configurations are completed:

  • Run the cfm version standard command in the system view to specify IEEE Standard 802.1ag-2007 for CFM.

  • Run the cfm enable (system view) command to enable CFM globally.

  • Run the cfm md command in the system view to create an MD.

  • Run the ma command in the MD view to create an MA.

  • Run the mep mep-id command in the MA view to create an inward-facing MEP.

If remote-mep mep-id is specified in the delay-measure one-way continual command, the following configurations must be completed:

Precautions

  • IEEE 802.1ag has two versions: IEEE 802.1ag Draft 7 and IEEE Standard 802.1ag-2007. This command can be used only on the device running IEEE Standard 802.1ag-2007.

  • One-way frame delay measurement can be implemented only after the MEP synchronizes the time with its RMEP.

If the configuration changes during on-demand statistics, you can view only the pre-change statistics results. You are advised to run the command for on-demand statistics again for query.

Example

# In a VLAN, enable proactive one-way frame delay measurement and set the destination MAC address to 01-22-33 and the interval at which DM frames are sent to 1000 ms.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 2
[HUAWEI-md-md1-ma-ma1] delay-measure one-way continual send mep 1 mac 01-22-33 interval 1000

# In a VLAN, enable proactive one-way frame delay measurement and set the RMEP ID to 2 and the interval at which DM frames are sent to 1000 ms.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 2
[HUAWEI-md-md1-ma-ma1] delay-measure one-way continual send mep 1 remote-mep 2 interval 1000

delay-measure one-way continual receive

Function

The delay-measure one-way continual receive command configures the RMEP to receive DM frames to implement proactive one-way frame delay measurement.

The undo delay-measure one-way continual receive command cancels the configuration.

By default, the RMEP enabled with proactive one-way frame delay measurement in an MA is not configured to receive DM frames.

Format

delay-measure one-way continual receive mep mep-id

undo delay-measure one-way continual receive [ mep mep-id ]

Parameters

Parameter Description Value
mep mep-id Specifies the ID of a MEP. The value is an integer that ranges from 1 to 8191.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command is used in the VLAN scenario to enable the RMEP to receive DM frames to implement proactive one-way frame delay measurement.

Prerequisites

The command takes effect only after the following configurations are completed:

  • Run the cfm version standard command in the system view to specify IEEE Standard 802.1ag-2007 for CFM.

  • Run the cfm enable (system view) command to enable CFM globally.

  • Run the cfm md command in the system view to create an MD.

  • Run the ma command in the MD view to create an MA.

  • Run the mep mep-id command in the MA view to create an inward-facing MEP.

Precautions

After the configuration is complete, the remote device can receive DMMs to implement proactive one-way frame delay measurement.

IEEE 802.1ag has two versions: IEEE 802.1ag Draft 7 and IEEE Standard 802.1ag-2007. This command can be used only on the device running IEEE Standard 802.1ag-2007.

Example

# Configure the RMEP to receive DM frames in a VLAN.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md2
[HUAWEI-md-md2] ma ma2
[HUAWEI-md-md2-ma-ma2] map vlan 2
[HUAWEI-md-md2-ma-ma2] mep mep-id 2 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md2-ma-ma2] delay-measure one-way continual receive mep 2

delay-measure one-way send

Function

The delay-measure one-way send command configures on-demand one-way frame delay measurement.

By default, on-demand one-way frame delay measurement is not configured in an MA.

Format

delay-measure one-way send mep mep-id { mac mac-address | remote-mep mep-id } interval { 1000 | 10000 } count count-value

Parameters

Parameter Description Value
mac mac-address Specifies the MAC address of an RMEP. -
remote-mep mep-id Specifies the ID of an RMEP. The value is an integer that ranges from 1 to 8191.
interval Specifies the interval at which DM frames are sent. The value is 1000 or 10000, in milliseconds.
count count-value Specifies the one-way frame delay measurement count.
NOTE:

count-value must be configured. There is no default value.

The value is an integer that ranges from 1 to 60.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On-demand OAM indicates that OAM actions are initiated by manual configuration in a limited period of time. On-demand OAM may cause singular or periodic OAM actions during the diagnostic period. DM frames can be used for on-demand OAM to test the link delay.

One-way frame delay measurement is implemented between two MEPs by exchanging DM frames. A MEP periodically sends DM frames carrying TxTimeStampf. After receiving a DM frame, the RMEP parses TxTimeStampf and compares this value with RxTimef (the time when the 1DM frame was received). The RMEP calculates the one-way frame delay based on these values using the following formula: Frame delay = RxTimef - TxTimeStampf

Prerequisites

The command takes effect only after the following configurations are completed:

  • Run the cfm version standard command in the system view to specify IEEE Standard 802.1ag-2007 for CFM.

  • Run the cfm enable (system view) command to enable CFM globally.

  • Run the cfm md command in the system view to create an MD.

  • Run the ma command in the MD view to create an MA.

  • In a VLAN, outward-facing MEPs are supported. Perform the following operation to create a MEP in the MA view:
    • Run the mep mep-id command with outward specified to create an outward-facing MEP.

If remote-mep mep-id is specified in the delay-measure one-way mep command, the following configurations must be completed:

Precautions

  • One-way frame delay measurement can be implemented only after the MEP synchronizes the time with its RMEP.

  • To implement one-way frame delay measurement, specify the RMEP ID or destination MAC address, interval at which DM frames are sent, and measurement count:
    • If the local MEP has not learned the RMEP MAC address, you must specify the destination MAC address for one-way frame delay measurement.

    • If the local MEP has learned the RMEP MAC address, you can specify the RMEP ID for one-way frame delay measurement.

  • IEEE 802.1ag has two versions: IEEE 802.1ag Draft 7 and IEEE Standard 802.1ag-2007. This command can be used only on the device running IEEE Standard 802.1ag-2007.

If the configuration changes during on-demand statistics, you can view only the pre-change statistics results. You are advised to run the command for on-demand statistics again for query.

Example

# In a VLAN, enable one-way frame delay measurement and set the destination MAC address to 01-22-33, interval at which DM frames are sent to 10000 ms, and measurement count to 60.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 2
[HUAWEI-md-md1-ma-ma1] delay-measure one-way send mep 1 mac 01-22-33 interval 10000 count 60

# In a VLAN, enable one-way frame delay measurement and set the RMEP ID to 2, interval at which DM frames are sent to 10000 ms, and measurement count to 60.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 2
[HUAWEI-md-md1-ma-ma1] delay-measure one-way send mep 1 remote-mep 2 interval 10000 count 60

delay-measure one-way receive

Function

The delay-measure one-way receive command enables the RMEP to receive DM frames to implement one-way frame delay measurement.

The undo delay-measure one-way receive command cancels the configuration.

By default, the RMEP is not enabled to receive DM frames.

Format

delay-measure one-way receive mep mep-id

undo delay-measure one-way receive [ mep mep-id ]

Parameters

Parameter Description Value
mep mep-id Specifies the ID of a MEP. The value is an integer that ranges from 1 to 8191.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command is used in a VLAN to enable the RMEP to receive DM frames to implement one-way frame delay measurement.

Prerequisites

The command takes effect only after the following configurations are completed:

  • Run the cfm version standard command in the system view to specify IEEE Standard 802.1ag-2007 for CFM.

  • Run the cfm enable (system view) command to enable CFM globally.

  • Run the cfm md command in the system view to create an MD.

  • Run the ma command in the MD view to create an MA.

  • Run the mep mep-id command in the MA view to create an inward-facing MEP.

Precautions

IEEE 802.1ag has two versions: IEEE 802.1ag Draft 7 and IEEE Standard 802.1ag-2007. This command can be used only on the device running IEEE Standard 802.1ag-2007.

Example

# Configure the RMEP to receive DM frames in a VLAN.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md3
[HUAWEI-md-md3] ma ma3
[HUAWEI-md-md3-ma-ma3] map vlan 10
[HUAWEI-md-md3-ma-ma3] mep mep-id 3 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md3-ma-ma3] delay-measure one-way receive mep 3

delay-measure one-way threshold

Function

The delay-measure one-way threshold command sets the alarm threshold for one-way frame delay measurement.

The undo delay-measure one-way threshold command cancels the configuration.

Format

delay-measure one-way threshold threshold-value

undo delay-measure one-way threshold

Parameters

Parameter Description Value
threshold-value Specifies the alarm threshold for one-way frame delay measurement. The value is an integer that ranges from 1 to 4294967295, in microseconds.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The delay-measure one-way threshold command sets an alarm threshold for one-way frame delay measurement between a MEP and an RMEP. When the one-way frame delay exceeds the alarm threshold, an alarm is generated.

Precautions

IEEE 802.1ag has two versions: IEEE 802.1ag Draft 7 and IEEE Standard 802.1ag-2007. This command can be used only on the device running IEEE Standard 802.1ag-2007.

This command is applicable to VLANs.

NOTE:

Before setting the alarm threshold, you must correctly configure the MD and MA.

Example

# Set the alarm threshold for one-way frame delay measurement in the VLAN to 10.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] delay-measure one-way threshold 10

delay-measure two-way continual

Function

The delay-measure two-way continual command configures proactive two-way frame delay measurement.

The undo delay-measure two-way continual command cancels the configuration.

By default, proactive two-way frame delay measurement is not configured in an MA.

Format

delay-measure two-way continual send mep mep-id { mac mac-address | remote-mep mep-id } interval 30000

undo delay-measure two-way continual send [ mep mep-id ]

Parameters

Parameter Description Value
mep mep-id Specifies the ID of a MEP. The value is an integer that ranges from 1 to 8191.
mac mac-address Specifies the MAC address of an RMEP. -
remote-mep mep-id Specifies the ID of an RMEP. The value is an integer that ranges from 1 to 8191.
interval 30000 Indicates that the interval at which DMMs are sent is 30000 ms. The value is 30000, in milliseconds.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Proactive OAM indicates that OAM actions are carried out continuously.

Two-way frame delay measurement is performed by a local MEP to send a DMM to its RMEP and then receive a DMR from the RMEP. After the two-way frame delay measurement is configured, a MEP periodically sends DMMs carrying TxTimeStampf (the time when the DMM was sent). After receiving the DMM, the RMEP replies with a DMR. The DMR carries RxTimeStampf (the time when the DMM was received) and TxTimeStampb (the time when the DMR was sent). The value in every field of the DMM is copied to the DMR except that the source and destination MAC addresses were interchanged. Upon receiving the DMR, the MEP calculates the two-way frame delay by using the following formula: Frame delay = (RxTimeb - TxTimeStampf) - (TxTimeStampb - RxTimeStampf)

When clocks of the MEPs at both ends of a link are not synchronized, the delay-measure two-way continual command can be used to implement proactive two-way frame delay measurement for a VLAN.

To implement proactive two-way frame delay measurement, you need to specify the RMEP ID or destination MAC address, interval at which DMMs are sent, and measurement count:
  • If the local MEP has not learned the RMEP MAC address, you must specify the destination MAC address for two-way frame delay measurement.

  • If the local MEP has learned the RMEP MAC address, you can specify the RMEP ID for two-way frame delay measurement.

Prerequisites

The command takes effect only after the following configurations are completed:

  • Run the cfm version standard command in the system view to specify IEEE Standard 802.1ag-2007 for CFM.

  • Run the cfm enable (system view) command to enable CFM globally.

  • Run the cfm md command in the system view to create an MD.

  • Run the ma command in the MD view to create an MA.

  • Run the mep mep-id command with inward specified in the MA view to create an inward-facing MEP.

If remote-mep mep-id is specified in the delay-measure two-way continual command, the following configurations need to be completed in addition to the preceding configurations:

Precautions

IEEE 802.1ag has two versions: IEEE 802.1ag Draft 7 and IEEE Standard 802.1ag-2007. This command can be used only on the device running IEEE Standard 802.1ag-2007.

Example

# In a VLAN, enable proactive two-way frame delay measurement and set the destination MAC address to 01-22-33 and the interval at which DMMs are sent to 30s.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 2
[HUAWEI-md-md1-ma-ma1] delay-measure two-way continual send mep 1 mac 01-22-33 interval 30000

# In a VLAN, enable proactive two-way frame delay measurement and set the RMEP ID to 2 and the interval at which DMMs are sent to 30s.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 2
[HUAWEI-md-md1-ma-ma1] delay-measure two-way continual send mep 1 remote-mep 2 interval 30000

delay-measure two-way continual send test-id

Function

The delay-measure two-way continual send test-id command configures two-way proactive frame delay measurement (DM).

The undo delay-measure two-way continual send test-id command deletes the configuration.

By default, two-way proactive frame DM is not configured in an MA.

NOTE:

Only the S5720HI supports this command.

Format

delay-measure two-way continual send test-id test-id interval { 1000 | 10000 | 15000 | 30000 } [ packet-size packet-size ]

undo delay-measure two-way continual send test-id test-id

Parameters

Parameter Description Value
test-id Specifies the ID of a test instance. The value is an integer ranging from 1 to 4294967295.
interval { 1000 | 10000 | 15000 | 30000 } Specifies the interval at which DMMs are sent.
Enumerated value, in milliseconds:
  • 1000
  • 10000
  • 15000
  • 30000
packet-size packet-size Specifies the size of the sent packets. The value is an integer ranging from 64 to 1518, in bytes. The default value is 64.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In VLAN scenarios, to implement two-way proactive frame DM, run the delay-measure two-way continual command. This command does not take effect in point-to-multipoint link scenarios. To implement two-way proactive frame DM for point-to-multipoint links, run the delay-measure two-way continual send test-id command.

Prerequisites

A test instance has been created using the test-id command in the MA view.

Precautions

The delay-measure two-way continual send test-id and delay-measure two-way continual commands are mutually exclusive.

Example

# Configure two-way proactive frame DM with the test instance of 1 and DMM transmission interval of 30s.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 2
[HUAWEI-md-md1-ma-ma1] mep ccm-send enable
[HUAWEI-md-md1-ma-ma1] remote-mep ccm-receive enable
[HUAWEI-md-md1-ma-ma1] test-id 1 mep 1 remote-mep 2
[HUAWEI-md-md1-ma-ma1] delay-measure two-way continual send test-id 1 interval 30000

delay-measure two-way delay-threshold test-id

Function

The delay-measure two-way delay-threshold test-id command configures alarm thresholds for two-way proactive frame delay measurement (DM).

The undo delay-measure two-way delay-threshold test-id command deletes the alarm thresholds configured for two-way proactive frame DM.

By default, no alarm thresholds are configured for two-way proactive frame DM.

NOTE:

Only the S5720HI supports this command.

Format

delay-measure two-way delay-threshold test-id test-id upper-limit upper-limit lower-limit lower-limit

undo delay-measure two-way delay-threshold test-id test-id [ upper-limit upper-limit lower-limit lower-limit ]

Parameters

Parameter Description Value
test-id Specifies the ID of a test instance. The value is an integer ranging from 1 to 4294967295.
upper-limit upper-limit Specifies an upper alarm threshold for two-way proactive frame DM. The value is an integer ranging from 0 to 4294967295, in microseconds.
lower-limit lower-limit Specifies a lower alarm threshold for two-way proactive frame DM. The value is an integer ranging from 0 to 4294967295, in microseconds. The lower alarm threshold must be less than the upper alarm threshold.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure upper and lower alarm thresholds for two-way proactive frame DM that monitors link quality, run the delay-measure two-way delay-threshold test-id command. After configuring upper and lower alarm thresholds, you can obtain data (such as the number of times that a threshold-crossing event occurs) within a sampling period to monitor network performance.

Prerequisites

A test instance has been created using the test-id command in the MA view.

Precautions

Thresholds can be configured only for two-way proactive frame DM and cannot be configured for two-way on-demand frame DM.

Example

# Set lower and upper alarm thresholds for two-way proactive frame DM in VLAN scenarios to 200 microseconds and 400 microseconds, respectively.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 2
[HUAWEI-md-md1-ma-ma1] mep ccm-send enable
[HUAWEI-md-md1-ma-ma1] remote-mep ccm-receive enable
[HUAWEI-md-md1-ma-ma1] test-id 1 mep 1 remote-mep 2
[HUAWEI-md-md1-ma-ma1] delay-measure two-way delay-threshold test-id 1 upper-limit 400 lower-limit 200

delay-measure two-way send

Function

The delay-measure two-way send command configures on-demand two-way frame delay measurement.

By default, on-demand two-way frame delay measurement is not configured in an MA.

Format

delay-measure two-way send mep mep-id { mac mac-address | remote-mep mep-id } interval { 1000 | 10000 } count count-value

Parameters

Parameter Description Value
mep mep-id Specifies the ID of a MEP. The value is an integer that ranges from 1 to 8191.
mac mac-address Specifies the MAC address of an RMEP. -
remote-mep mep-id Specifies the ID of an RMEP. The value is an integer that ranges from 1 to 8191.
interval Specifies the interval at which DMMs are sent. The value is 1000 or 10000, in milliseconds.
count count-value Specifies the number of sent DMMs. The value is an integer that ranges from 1 to 60.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On-demand OAM indicates that OAM actions are initiated by manual configuration in a limited period of time. On-demand OAM may cause singular or periodic OAM actions during the diagnostic period. DM frames can be used for on-demand OAM to test the link delay.

Two-way frame delay measurement is performed by a local MEP to send a DMM to its RMEP and then receive a DMR from the RMEP. After the two-way frame delay measurement is configured, a MEP periodically sends DMMs carrying TxTimeStampf (the time when the DMM was sent). After receiving the DMM, the RMEP replies with a DMR. The DMR carries RxTimeStampf (the time when the DMM was received) and TxTimeStampb (the time when the DMR was sent). The value in every field of the DMM is copied to the DMR except that the source and destination MAC addresses were interchanged. Upon receiving the DMR, the MEP calculates the two-way frame delay by using the following formula: Frame delay = (RxTimeb - TxTimeStampf) - (TxTimeStampb - RxTimeStampf)

Prerequisites

The command takes effect only after the following configurations are completed:

  • Run the cfm version standard command in the system view to specify IEEE Standard 802.1ag-2007 for CFM.

  • Run the cfm enable (system view) command to enable CFM globally.

  • Run the cfm md command in the system view to create an MD.

  • Run the ma command in the MD view to create an MA.

If remote-mep mep-id is specified in this command, the following configurations need to be completed in addition to the preceding configurations:

Precautions

  • IEEE 802.1ag has two versions: IEEE 802.1ag Draft 7 and IEEE Standard 802.1ag-2007. This command can be used only on the device running IEEE Standard 802.1ag-2007.

  • To implement on-demand two-way frame delay measurement, you need to specify the RMEP ID or destination MAC address, interval at which DMMs are sent, and measurement count:
    • If the local MEP has not learned the RMEP MAC address, you must specify the destination MAC address for two-way frame delay measurement.

    • If the local MEP has learned the RMEP MAC address, you can specify the RMEP ID for two-way frame delay measurement.

If the configuration changes during on-demand statistics, you can view only the pre-change statistics results. You are advised to run the command for on-demand statistics again for query.

Example

# In a VLAN, enable on-demand two-way frame delay measurement and set the destination MAC address to 01-22-33, interval at which DMMs are sent to 10000 ms, and measurement count to 60.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] delay-measure two-way send mep 1 mac 01-22-33 interval 10000 count 60

# In a VLAN, enable on-demand two-way frame delay measurement and set the RMEP ID to 2, interval at which DMMs are sent to 10000 ms, and measurement count to 60.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] delay-measure two-way send mep 1 remote-mep 2 interval 10000 count 60

delay-measure two-way receive

Function

The delay-measure two-way receive command enables the RMEP to receive DMMs to implement two-way frame delay measurement.

The undo delay-measure two-way receive command cancels the configuration.

By default, the RMEP in an MA is not enabled to receive DMMs.

Format

delay-measure two-way receive mep mep-id

undo delay-measure two-way receive [ mep mep-id ]

Parameters

Parameter Description Value
mep mep-id Specifies the ID of a MEP. The value is an integer that ranges from 1 to 8191.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command is used to enable the RMEP to receive DMMs to implement proactive or on-demand two-way frame delay measurement. This command is used in a VLAN where an outward-facing MEP is configured with two-way frame delay measurement.

Prerequisites

The command takes effect only after the following configurations are completed:

  • Run the cfm version standard command in the system view to specify IEEE Standard 802.1ag-2007 for CFM.

  • Run the cfm enable (system view) command to enable CFM globally.

  • Run the cfm md command in the system view to create an MD.

  • Run the ma command in the MD view to create an MA.

  • Run the remote-mep command in the MA view to create an RMEP.

Precautions

IEEE 802.1ag has two versions: IEEE 802.1ag Draft 7 and IEEE Standard 802.1ag-2007. This command can be used only on the device running IEEE Standard 802.1ag-2007.

Example

# Enable the RMEP to receive DMMs in the MA ma1 and MD md1, with the VLAN ID as 100.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 0/0/1 outward
[HUAWEI-md-md1-ma-ma1] delay-measure two-way receive mep 1

delay-measure two-way receive test-id

Function

The delay-measure two-way receive test-id command enables an Remote Maintenance Association End Point (RMEP) to receive Delay Measure Messages (DMMs) for two-way frame delay measurement (DM).

The undo delay-measure two-way receive test-id command disables an RMEP from receiving DMMs for two-way frame DM.

By default, the RMEP in an Maintenance Association (MA) is disabled from receiving DMMs.

NOTE:

Only the S5720HI supports this command.

Format

delay-measure two-way receive test-id test-id

undo delay-measure two-way receive [ test-id test-id ]

Parameters

Parameter Description Value
test-id Specifies the ID of a test instance. The value is an integer ranging from 1 to 4294967295.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After running the delay-measure two-way continual send test-id or delay-measure two-way send test-id command to enable a MEP to send DMMs for two-way frame DM, run the delay-measure two-way receive test-id command to enable the RMEP to receive DMMs.

Prerequisites

A test instance has been created using the test-id command in the MA view.

Precautions

The delay-measure two-way receive test-id and delay-measure two-way receive commands are mutually exclusive.

Example

# Enable the RMEP to receive DMMs for two-way frame DM with the test instance of 1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 2
[HUAWEI-md-md1-ma-ma1] test-id 1 mep 1 remote-mep 2
[HUAWEI-md-md1-ma-ma1] delay-measure two-way receive test-id 1

delay-measure two-way send test-id

Function

The delay-measure two-way send test-id command configures on-demand two-way frame delay measurement based on the test instance.

NOTE:

Only the S5720HI supports this command.

Format

delay-measure two-way send test-id test-id interval { 1000 | 10000 } count count [ packet-size packet-size ]

Parameters

Parameter Description Value
test-id Specifies the ID of a test instance. The value is an integer ranging from 1 to 4294967295.
interval { 1000 | 10000 } Specifies the interval at which DMMs are sent. The value is either 1000 or 10000, expressed in milliseconds.
count count Specifies the number of times that DMMs are sent. The value is an integer ranging from 1 to 60.
packet-size packet-size Specifies the size of the sent packets. The value is an integer ranging from 64 to 1518, in bytes. The default value is 64.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In VLAN scenarios, to implement two-way on-demand frame DM, run the delay-measure two-way send command. This command does not take effect in point-to-multipoint link scenarios.

To implement two-way on-demand frame DM for point-to-multipoint links, run the delay-measure two-way send test-id command.

Prerequisites

A test instance has been created using the test-id command in the MA view.

Precautions

The delay-measure two-way send test-id and delay-measure two-way send commands are mutually exclusive.

If the configuration changes during on-demand statistics, you can view only the pre-change statistics results. You are advised to run the command for on-demand statistics again for query.

Example

# Configure two-way frame DM with the test instance ID of 1, DMM transmission interval of 10s, and measurement times of 60.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 2
[HUAWEI-md-md1-ma-ma1] remote-mep ccm-receive enable
[HUAWEI-md-md1-ma-ma1] test-id 1 mep 1 remote-mep 2
[HUAWEI-md-md1-ma-ma1] delay-measure two-way send test-id 1 interval 10000 count 60

delay-measure two-way threshold

Function

The delay-measure two-way threshold command sets the alarm threshold for two-way frame delay measurement.

The undo delay-measure two-way threshold command cancels the configuration.

Format

delay-measure two-way threshold threshold-value

undo delay-measure two-way threshold

Parameters

Parameter Description Value
threshold-value Specifies the alarm threshold for two-way frame delay measurement. The value is an integer that ranges from 1 to 4294967295, in microseconds.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command is applicable to VLANs. You can set the alarm threshold for two-way frame delay measurement on the MEP or RMEP. When the two-way delay exceeds the alarm threshold, an alarm is generated.

Precautions

IEEE 802.1ag has two versions: IEEE 802.1ag Draft 7 and IEEE Standard 802.1ag-2007. This command can be used only on the device running IEEE Standard 802.1ag-2007.

NOTE:

Before setting the alarm threshold, you must correctly configure the MD and MA.

Example

# Set the alarm threshold for two-way frame delay measurement in the VLAN to 10.

<HUAWEI> system-view
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] delay-measure two-way threshold 10

delay-measure two-way trigger if-down

Function

The delay-measure two-way trigger if-down command triggers an interface to go ETHOAM down when the delay or delay variation based on a test instance ID exceeds a specified threshold.

The undo delay-measure two-way trigger if-down command restores the default configuration.

By default, an interface is not triggered to go ETHOAM down when the delay or delay variation based on a test instance ID exceeds a specified threshold.

NOTE:

Only the S5720HI supports this command.

Format

delay-measure two-way { delay-threshold | variation-threshold } test-id test-id trigger if-down

undo delay-measure two-way { delay-threshold | variation-threshold } test-id test-id trigger if-down

Parameters

Parameter Description Value
delay-threshold Indicates that an interface is triggered to go ETHOAM down when the delay exceeds a specified threshold. -
variation-threshold Indicates that an interface is triggered to go ETHOAM down when the delay variation exceeds a specified threshold. -
test-id test-id Specifies the ID of a test instance. The value is an integer that ranges from 1 to 4294967295.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When no service is bound to the MA, the interface where the MEP resides is an Eth-Trunk interface's primary member interface. To ensure the quality of the primary link, run the delay-measure two-way trigger if-down command on the interface where the MEP resides. If the delay or delay variation based on a test instance ID exceeds the threshold configured using the delay-measure two-way delay-threshold test-id or delay-measure two-way variation-threshold test-id command, the primary link has poor quality. In this case, the interface is triggered to go ETHOAM down, triggering an active/standby Eth-Trunk link switchover.

Prerequisites

A test instance has been created using the test-id command in the MA view.

Example

# Trigger the Eth-Trunk member interface GE 0/0/1 to go Down when the two-way delay based on a test instance ID of 2 exceeds a specified threshold.

<HUAWEI> system-view
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] mep mep-id 8 interface gigabitethernet 0/0/1 outward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 9
[HUAWEI-md-md1-ma-ma1] test-id 2 mep 8 remote-mep 9
[HUAWEI] interface eth-trunk 1
[HUAWEI-Eth-Trunk1] quit
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] eth-trunk 1
[HUAWEI-GigabitEthernet0/0/1] delay-measure two-way delay-threshold test-id 2 trigger if-down

delay-measure two-way variation-threshold test-id

Function

The delay-measure two-way variation-threshold test-id command configures variation thresholds for two-way proactive frame delay measurement (DM).

The undo delay-measure two-way variation-threshold test-id command deletes the variation thresholds configured for two-way proactive frame DM.

By default, no variation thresholds are configured for two-way proactive frame DM.

NOTE:

Only the S5720HI supports this command.

Format

delay-measure two-way variation-threshold test-id test-id upper-limit upper-limit lower-limit lower-limit

undo delay-measure two-way variation-threshold test-id test-id [ upper-limit upper-limit lower-limit lower-limit ]

Parameters

Parameter Description Value
test-id Specifies the ID of a test instance. The value is an integer ranging from 1 to 4294967295.
upper-limit upper-limit Specifies an upper variation threshold for two-way proactive frame DM. The value is an integer ranging from 0 to 4294967295, in microseconds.
lower-limit lower-limit Specifies a lower variation threshold for two-way proactive frame DM. The value is an integer ranging from 0 to 4294967295, in microseconds. The lower variation threshold must be less than the upper variation threshold.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure upper and lower variation thresholds for two-way proactive frame DM that monitors link quality, run the delay-measure two-way variation-threshold test-id command. After configuring upper and lower variation thresholds, you can obtain data (such as the number of times that a threshold-crossing event occurs) within a sampling period to monitor network performance.

Prerequisites

A test instance has been created using the test-id command in the MA view.

Precautions

The configured threshold makes sense only after the practive measurement is configured.

Example

# Set lower and upper variation thresholds for two-way proactive frame DM in VLAN scenarios to 200 microseconds and 400 microseconds, respectively.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 2
[HUAWEI-md-md1-ma-ma1] mep ccm-send enable
[HUAWEI-md-md1-ma-ma1] remote-mep ccm-receive enable
[HUAWEI-md-md1-ma-ma1] test-id 1 mep 1 remote-mep 2
[HUAWEI-md-md1-ma-ma1] delay-measure two-way variation-threshold test-id 1 upper-limit 400 lower-limit 200

display snmp-agent trap feature-name eoam-y1731 all

Function

The display snmp-agent trap feature-name eoam-y1731 all command displays the status of all traps of the Y.1731 module.

Format

display snmp-agent trap feature-name eoam-y1731 all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The Simple Network Management Protocol (SNMP) is a network management standard widely used on the TCP/IP network. It uses a central computer (a network management station) that runs network management software to manage network elements. The SNMP agent reports trap messages to the network management station so that the network management station can obtain the network status in a timely manner, and the network administrator can take measures accordingly.

The display snmp-agent trap feature-name eoam-y1731 all command displays the following information:
  • Trap names supported by the Y.1731 module. The trap names are the same as the trap names specified by the snmp-agent trap enable feature-name eoam-y1731 trap-name trap-name command. Each trap name corresponds to a network element abnormality.

  • Trap status of the Y.1731 module. You can check whether the trap is reported based on the trap name.

Prerequisites

SNMP has been enabled. See snmp-agent.

Example

# Display all traps of the Y.1731 module (S5720HI is used as an example).

<HUAWEI> display snmp-agent trap feature-name eoam-y1731 all
------------------------------------------------------------------------------
Feature name: EOAM-Y1731
Trap number : 10
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
hwCfmVlanOnewayDelay            off                     on
hwCfmVlanOnewayDelayRecovery    off                     on
hwCfmVlanTwowayDelay            off                     on
hwCfmVlanTwowayDelayRecovery    off                     on
hwY1731AisDefectAlarm           off                     on
hwY1731AisDefectAlarmRecovery   off                     on
hwY1731AisExceedMaxPktNum       off                     on
hwY1731AisExceedMaxPktNumCleared
                                off                     on
hwY1731TestIdStatistic          off                     on
hwY1731TestIdStatisticClear     off                     on

# Display all traps of the Y.1731 module (S6720EI is used as an example).

<HUAWEI> display snmp-agent trap feature-name eoam-y1731 all
------------------------------------------------------------------------------
Feature name: EOAM-Y1731                    
Trap number : 8         
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status 
hwCfmVlanOnewayDelay            off                     on                  
hwCfmVlanOnewayDelayRecovery    off                     on                  
hwCfmVlanTwowayDelay            off                     on                  
hwCfmVlanTwowayDelayRecovery    off                     on                  
hwY1731AisDefectAlarm           off                     on                  
hwY1731AisDefectAlarmRecovery   off                     on                  
hwY1731AisExceedMaxPktNum       off                     on                  
hwY1731AisExceedMaxPktNumCleared
                                off                     on         
Table 12-70  Description of the display snmp-agent trap feature-name eoam-y1731 all command output

Item

Description

Feature name

Name of the module that the trap belongs to.

Trap number

Number of traps.

Trap name

Name of the trap:
  • hwCfmVlanOnewayDelay: one-way delay alarm

  • hwCfmVlanOnewayDelayRecovery: one-way delay clear alarm

  • hwCfmVlanTwowayDelay: two-way delay alarm

  • hwCfmVlanTwowayDelayRecovery: two-way delay clear alarm

  • hwY1731AisDefectAlarm: AIS alarm

  • hwY1731AisDefectAlarmRecovery: AIS clear alarm

  • hwY1731AisExceedMaxPktNum: alarm for the number of AIS PDUs that exceeds the maximum value

  • hwY1731AisExceedMaxPktNumCleared: clear alarm for the number of AIS PDUs that exceeds the maximum value

  • hwY1731TestIdStatistic: alarm for Y.1731 performance statistics based on the test instance

  • hwY1731TestIdStatisticClear: clear alarm for Y.1731 performance statistics based on the test instance

Default switch status

Default status of the trap function:
  • on: The trap function is enabled.
  • off: The trap function is disabled.

Current switch status

Status of the trap function:
  • on: The trap function is enabled.
  • off: The trap function is disabled.

To configure the status of the trap, run the snmp-agent trap enable feature-name eoam-y1731 command.

display y1731 statistic-type

Function

The display y1731 statistic-type command displays performance statistics collected through Y.1731.

Format

display y1731 statistic-type { oneway-delay | twoway-delay } md md-name ma ma-name [ count count-value ]

display y1731 statistic-type single-synthetic-loss test-id test-id [ count count-value ] (Only the S5720HI supports this commmand.)

display y1731 statistic-type twoway-delay test-id test-id [ count count-value ] (Only the S5720HI supports this commmand.)

Parameters

Parameter Description Value
oneway-delay Displays the statistics about the one-way delay. -
twoway-delay Displays the statistics about the two-way delay. -
md md-name Specifies the name of an MD. The value is a string of 1 to 43 characters without spaces, "-", or "?". Different MDs on a device cannot have the same name.
ma ma-name Specifies the name of an MA. The value is a string of characters without spaces, "-", or "?". The total length of the names of the MA and MD must be within 44 characters. Different MAs in an MD cannot have the same name.
count count-value Specifies the number of statistics entries to be displayed. If the parameter is not specified, the command output displays all the statistics. The value is an integer ranging from 1 to 60.
test-id test-id Specifies the ID of a test instance. The value is an integer ranging from 1 to 4294967295.
single-synthetic-loss Displays the statistics about the single-ended SLM. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run this command to view the statistics about single-ended SLM, one-way frame delay, or two-way frame delay.

Prerequisites

This command can be used only after CFM is globally enabled through the cfm enable (system view) command.

Precautions

Currently, IEEE 802.1ag has two versions: IEEE 802.1ag Draft 7 and IEEE Standard 802.1ag-2007. This command is supported only by IEEE Standard 802.1ag-2007.

Example

# Display the statistics about the one-way frame delay in the MA ma1 in the MD md1.

<HUAWEI> display y1731 statistic-type oneway-delay md md1 ma ma1
Latest one-way delay statistics:
--------------------------------------------------------------------------------
Index    Delay(usec)    Delay variation(usec)
--------------------------------------------------------------------------------
    1          10000                        -
    2          10000                        0
    3          10000                        0
    4          10000                        0
    5          10000                        0
    6          10000                        0
    7          10000                        0
    8          10000                        0
    9          10000                        0
   10          10000                        0
   11          10000                        0
   12          40000                    30000
   13          10000                    30000
   14          10000                        0
   15          10000                        0
   16          10000                        0
   17          10000                        0
--------------------------------------------------------------------------------
Average delay(usec) :      11764    Average delay variation(usec) :       3750
Maximum delay(usec) :      40000    Maximum delay variation(usec) :      30000
Minimum delay(usec) :      10000    Minimum delay variation(usec) :          0
Table 12-71   Description of the display y1731 statistic-type command output

Item

Description

Latest one-way delay statistics

Statistics about the one-way frame delay.

Index

Measurement index.

Delay(usec)

One-way delay, in microseconds.

Delay variation(usec)

One-way delay variation, in microseconds.

Average delay(usec)

Average one-way delay, in microseconds.

Average delay variation(usec)

Average one-way delay variation, in microseconds.

Maximum delay(usec)

Maximum one-way delay, in microseconds.

Maximum delay variation(usec)

Maximum one-way delay variation, in microseconds.

Minimum delay(usec)

Minimum one-way delay, in microseconds.

Minimum delay variation(usec)

Minimum one-way delay variation, in microseconds.

# Display the statistics about the two-way frame delay in the MA ma2 in the MD md2.

<HUAWEI> display y1731 statistic-type twoway-delay md md2 ma ma2
Latest two-way delay statistics:
--------------------------------------------------------------------------------
Index    Delay(usec)    Delay variation(usec)
--------------------------------------------------------------------------------
    1              0                        -
    2              0                        0
    3              0                        0
    4              0                        0
    5              0                        0
    6              0                        0
    7              0                        0
    8              0                        0
    9              0                        0
   10              0                        0
--------------------------------------------------------------------------------
Average delay(usec) :          0    Average delay variation(usec) :          0
Maximum delay(usec) :          0    Maximum delay variation(usec) :          0
Minimum delay(usec) :          0    Minimum delay variation(usec) :          0
Table 12-72   Description of the display y1731 statistic-type command output

Item

Description

Latest two-way delay statistics

Statistics about the two-way frame delay.

Index

Measurement index.

Delay(usec)

Two-way delay, in microseconds.

Delay variation(usec)

Two-way delay variation, in microseconds.

Average delay(usec)

Average two-way delay, in microseconds.

Average delay variation(usec)

Average two-way delay variation, in microseconds.

Maximum delay(usec)

Maximum two-way delay, in microseconds.

Maximum delay variation(usec)

Maximum two-way delay variation, in microseconds.

Minimum delay(usec)

Minimum two-way delay, in microseconds.

Minimum delay variation(usec)

Minimum two-way delay variation, in microseconds.

# Display statistics about proactive single-ended SLM with the test ID of 2.

<HUAWEI> display y1731 statistic-type single-synthetic-loss test-id 2
--------------------------------------------------------------------------------
Index       L-send R-send L-recv Unack  L-loss R-loss L-loss-ratio R-loss-ratio
--------------------------------------------------------------------------------
667         1000   1000   1000   0           0      0      0.0000%      0.0000%
668         1000   1000   1000   0           0      0      0.0000%      0.0000%
669         1000   1000   1000   0           0      0      0.0000%      0.0000%
670         1000   1000   1000   0           0      0      0.0000%      0.0000%
671         1000   1000   1000   0           0      0      0.0000%      0.0000%
672         1000   1000   1000   0           0      0      0.0000%      0.0000%
673         1000   1000   1000   0           0      0      0.0000%      0.0000%
674         1000   1000   1000   0           0      0      0.0000%      0.0000%
675         1000   1000   1000   0           0      0      0.0000%      0.0000%
676         1000   1000   1000   0           0      0      0.0000%      0.0000%
677         1000   1000   1000   0           0      0      0.0000%      0.0000%
678         1000   1000   1000   0           0      0      0.0000%      0.0000%
679         1000   1000   1000   0           0      0      0.0000%      0.0000%
680         1000   1000   1000   0           0      0      0.0000%      0.0000%
681         1000   1000   1000   0           0      0      0.0000%      0.0000%
682         1000   1000   1000   0           0      0      0.0000%      0.0000%
683         1000   1000   1000   0           0      0      0.0000%      0.0000%
684         1000   1000   1000   0           0      0      0.0000%      0.0000%
-------------------------------------------------------------------------------
Average Local-loss  :          0    Average Local-loss Ratio  :         0.0000%
Maximum Local-loss  :          0    Maximum Local-loss Ratio  :         0.0000%
Minimum Local-loss  :          0    Minimum Local-loss Ratio  :         0.0000%
Average Remote-loss :          0    Average Remote-loss Ratio :         0.0000%
Maximum Remote-loss :          0    Maximum Remote-loss Ratio :         0.0000%
Minimum Remote-loss :          0    Minimum Remote-loss Ratio :         0.0000%
Table 12-73  Description of the display y1731 statistic-type command output

Item

Description

Index

Measurement index.

L-send

Number of SLM frames sent by the local MEP in each statistics collection period

R-send

Number of SLR frames sent by the remote MEP in each statistics collection period

L-recv

Number of SLR frames received on the local MEP in each statistics collection period

Unack

Number of SLM frames that fail to be responded to

L-loss

Number of SLM frames lost on the local MEP in each statistics collection period

R-loss

Number of SLR frames lost on the remote MEP in each statistics collection period

L-loss-ratio

Frame loss ratio on the local MEP in each statistics collection period

R-loss-ratio

Frame loss ratio on the remote MEP in each statistics collection period

Average Local-loss

Average number of frames dropped by the local MEP

Average Local-loss Ratio

Average frame loss ratio on the local MEP

Maximum Local-loss

Maximum number of frames dropped by the local MEP

Maximum Local-loss Ratio

Maximum frame loss ratio on the local MEP

Minimum Local-loss

Minimum number of frames dropped by the local MEP

Minimum Local-loss Ratio

Minimum frame loss ratio on the local MEP

Average Remote-loss

Average number of frames dropped by the remote MEP

Average Remote-loss Ratio

Average frame loss ratio on the remote MEP

Maximum Remote-loss

Maximum number of frames dropped by the remote MEP

Maximum Remote-loss Ratio

Maximum frame loss ratio on the remote MEP

Minimum Remote-loss

Minimum number of frames dropped by the remote MEP

Minimum Remote-loss Ratio

Minimum frame loss ratio on the remote MEP

# Display on-demand single-ended SLM statistics.
<HUAWEI> display y1731 statistic-type single-synthetic-loss test-id 1
Measurement Start Time : 2014-05-23 16:32:13-08:00 
--------------------------------------------------------------------------------
Index       L-send R-send L-recv Unack  L-loss R-loss L-loss-ratio R-loss-ratio
--------------------------------------------------------------------------------
1           10     10     10     0           0      0      0.0000%      0.0000%
--------------------------------------------------------------------------------
Average Local-loss  :          0    Average Local-loss Ratio  :         0.0000%
Maximum Local-loss  :          0    Maximum Local-loss Ratio  :         0.0000%
Minimum Local-loss  :          0    Minimum Local-loss Ratio  :         0.0000%
Average Remote-loss :          0    Average Remote-loss Ratio :         0.0000%
Maximum Remote-loss :          0    Maximum Remote-loss Ratio :         0.0000%
Minimum Remote-loss :          0    Minimum Remote-loss Ratio :         0.0000%
Table 12-74  Description of the display y1731 statistic-type command output

Item

Description

Measurement Start Time

Date and time when on-demand one-way SLM starts

Index

Measurement index.

L-send

Number of frames sent by a local MEP in each statistics collection period

R-send

Number of frames replied by a remote MEP in each statistics collection period

L-recv

Number of frames received by a local MEP in each statistics collection period

Unack

Number of frames to which no frames are replied

L-loss

Number of frames dropped by a local MEP in each statistics collection period

R-loss

Number of frames dropped by a remote MEP in each statistics collection period

L-loss-ratio

Frame loss ratio on the local MEP in each statistics collection period

R-loss-ratio

Frame loss ratio on the remote MEP in each statistics collection period

Average Local-loss

Average number of frames dropped by the local MEP

Average Local-loss Ratio

Average frame loss ratio on the local MEP

Maximum Local-loss

Maximum number of frames dropped by the local MEP

Maximum Local-loss Ratio

Maximum frame loss ratio on the local MEP

Minimum Local-loss

Minimum number of frames dropped by the local MEP

Minimum Local-loss Ratio

Minimum frame loss ratio on the local MEP

Average Remote-loss

Average number of frames dropped by the remote MEP

Average Remote-loss Ratio

Average frame loss ratio on the remote MEP

Maximum Remote-loss

Maximum number of frames dropped by the remote MEP

Maximum Remote-loss Ratio

Maximum frame loss ratio on the remote MEP

Minimum Remote-loss

Minimum number of frames dropped by the remote MEP

Minimum Remote-loss Ratio

Minimum frame loss ratio on the remote MEP

# Display statistics about on-demand two-way frame delay measurement.
<HUAWEI> display y1731 statistic-type twoway-delay test-id 1
Measurement Start Time : 2017-07-29 08:43:12
Latest two-way delay statistics:
--------------------------------------------------------------------------------
Index    Delay(usec)    Delay variation(usec)
--------------------------------------------------------------------------------
    1            202                        -
    2            237                       35
    3            219                       18
    4            234                       15
    5            243                        9
    6            262                       19
    7            263                        1
    8            245                       18
    9            229                       16
   10            237                        8
--------------------------------------------------------------------------------
Average delay(usec) :        237    Average delay variation(usec) :         15
Maximum delay(usec) :        263    Maximum delay variation(usec) :         35
Minimum delay(usec) :        202    Minimum delay variation(usec) :          1
Table 12-75  Description of the display y1731 statistic-type command output

Item

Description

Measurement Start Time

Date and time when on-demand two-way frame delay measurement starts.

Latest two-way delay statistics

Statistics about two-way frame delay.

Index

Measurement index.

Delay(usec)

Two-way frame delay, in microseconds.

Delay variation(usec)

Two-way frame delay variation, in microseconds.

Average delay(usec)

Average two-way frame delay, in microseconds.

Maximum delay(usec)

Maximum two-way frame delay, in microseconds.

Minimum delay(usec)

Minimum two-way frame delay, in microseconds.

Average delay variation(usec)

Average two-way frame delay variation, in microseconds.

Maximum delay variation(usec)

Maximum two-way frame delay variation, in microseconds.

Minimum delay variation(usec)

Minimum two-way frame delay variation, in microseconds.

display y1731 test-info

Function

The display y1731 test-info command displays information about test instances for Y.1731 statistics collection.

NOTE:

Only the S5720HI supports this command.

Format

display y1731 test-info [ test-id test-id ]

Parameters

Parameter Description Value
test-id test-id Displays information about a specified test instance. The value is an integer ranging from 1 to 4294967295.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view information about test instances for Y.1731 statistics collection, run the display y1731 test-info command.

Example

# Display information about test instance 1 for Y.1731 statistics collection on a device.

<HUAWEI> display y1731 test-info test-id 1
-----------------------------------------------------------
 TestId 1 information:
-----------------------------------------------------------
 MD Name                      : md1
 MA Name                      : ma
 MEP ID                       : 1
 Local Mac                    : 0000-1382-4569
 Remote MEP ID                : 2
 Bind Mac                     : --
 Send Mac                     : --
 8021p                        : --
 Uplink 8021p                 : --
 Downlink 8021p               : --
 Single LM                    : disabled
 Single LM Interval           : --
 Single LM Count              : --
 Single LM Receive            : disabled
 OneWay DM                    : disabled
 OneWay DM Interval           : --
 OneWay DM Count              : --
 OneWay DM Packet Size        : --
 OneWay DM Receive            : disabled
 TwoWay DM                    : disabled
 TwoWay DM Interval           : --
 TwoWay DM Count              : --
 TwoWay DM Packet Size        : --
 TwoWay DM Receive            : disabled
 Single SLM                   : continual
 Single SLM Interval          : 10ms
 Single SLM SendingCount      : 10
 Single SLM SendTimeout       : 5s
 Single SLM Receive           : disabled
 Single SLM RecvTimeout       : --
Table 12-76  Description of the display y1731 test-info command output

Item

Description

TestId 1 information

Information about test instance 1.

MD Name

Name of the MD.

MA Name

Name of the MA.

MEP ID

MEP ID.

Local Mac

Local MAC address.

Remote MEP ID

RMEP ID.

Bind Mac

MAC address of the RMEP.

Send Mac

MAC address carried in frames.

8021p

802.1p priority value specified in a specified test instance.

To set the 802.1p priority value specified in a specified test instance, run the test-id command.

Uplink 8021p

Priority value of upstream packets.

The switch does not support this function.

Downlink 8021p

Priority value of downstream packets.

The switch does not support this function.

Single LM

Whether Y.1731 packet sending is enabled for single-ended frame LM.
  • enabled
  • disabled

The switch does not support single-ended frame loss measurement based on test instances.

Single LM Interval

Interval at which Y.1731 packets are sent for single-ended frame LM.

The switch does not support single-ended frame loss measurement based on test instances.

Single LM Count

Number of Y.1731 packets that are to be sent for single-ended frame LM.

The switch does not support single-ended frame loss measurement based on test instances.

Single LM Receive

Whether Y.1731 packet receiving is enabled for single-ended frame LM.
  • enabled
  • disabled

The switch does not support single-ended frame loss measurement based on test instances.

OneWay DM

Whether Y.1731 packet sending is enabled for one-way frame DM.
  • enabled
  • disabled

The switch does not support one-way frame delay measurement based on test instances.

OneWay DM Interval

Interval at which Y.1731 packets are sent for one-way frame DM.

The switch does not support one-way frame delay measurement based on test instances.

OneWay DM Count

Number of Y.1731 packets sent for one-way frame DM.

The switch does not support one-way frame delay measurement based on test instances.

OneWay DM Packet Size

Size of Y.1731 packets transmitted for one-way frame DM.

The switch does not support one-way frame delay measurement based on test instances.

OneWay DM Receive

Whether Y.1731 packet receiving is enabled for one-way frame DM.
  • enabled
  • disabled

The switch does not support one-way frame delay measurement based on test instances.

TwoWay DM

Whether Y.1731 packet sending is enabled for two-way frame DM.
  • enabled
  • disabled

To enable Y.1731 packet sending for two-way frame DM, run the delay-measure two-way send test-id or delay-measure two-way continual send test-id command.

TwoWay DM Interval

Interval at which Y.1731 packets are sent for two-way frame DM.

To set the interval at which Y.1731 packets are sent for two-way frame DM, run the delay-measure two-way send test-id or delay-measure two-way continual send test-id command.

TwoWay DM Count

Number of Y.1731 packets sent for two-way frame DM.

To set the number of Y.1731 packets sent for two-way frame DM, run the delay-measure two-way send test-id command.

TwoWay DM Packet Size

Size of Y.1731 packets transmitted for two-way frame DM.

To set the size of Y.1731 packets transmitted for two-way frame DM, run the delay-measure two-way send test-id or delay-measure two-way continual send test-id command.

TwoWay DM Receive

Whether Y.1731 packet receiving is enabled for two-way frame DM.
  • enabled
  • disabled

To enable Y.1731 packet receiving for two-way frame DM, run the delay-measure two-way receive test-id command.

Single SLM

Whether Y.1731 packet sending is enabled for single-ended SLM.
  • enabled
  • disabled

To enable Y.1731 packet sending for single-ended SLM, run the loss-measure single-ended-synthetic send or loss-measure single-ended-synthetic continual send command.

Single SLM Interval

Interval at which SLM frames are sent for single-ended SLM.

To set the interval at which SLM frames are sent for single-ended SLM, run the loss-measure single-ended-synthetic send or loss-measure single-ended-synthetic continual send command.

Single SLM SendingCount

Number of SLM frames to be sent for single-ended SLM within each measurement period.

To set the number of SLM frames to be sent for single-ended SLM within each measurement period, run the loss-measure single-ended-synthetic send or loss-measure single-ended-synthetic continual send command.

Single SLM SendTimeout

Timeout period for the transmit end to receive SLM frames.

To set the timeout period for the transmit end to receive SLM frames, run the loss-measure single-ended-synthetic send or loss-measure single-ended-synthetic continual send command.

Single SLM Receive

Whether SLM frame sending is enabled for single-ended SLM.
  • enabled
  • disabled

To enable SLM frame sending for single-ended SLM, run the loss-measure single-ended-synthetic receive command.

Single SLM RecvTimeout

Timeout period for the receive end to receive SLM frames.

To set the timeout period for the receive end to receive SLM frames, run the loss-measure single-ended-synthetic receive command.

loss-measure single-ended-synthetic continual send

Function

The loss-measure single-ended-synthetic continual send command enables proactive single-ended synthetic loss measurement (SLM).

The undo loss-measure single-ended-synthetic continual send command disables proactive single-ended SLM.

By default, proactive single-ended SLM is disabled.

NOTE:

Only the S5720HI supports this command.

Format

loss-measure single-ended-synthetic continual send test-id test-id interval { 3.3 | 10 | 100 | 1000 | 10000 } [ sending-count count-value ] [ time-out timeout ] [ packet-size packet-size ]

undo loss-measure single-ended-synthetic continual send test-id test-id

Parameters

Parameter Description Value
test-id test-id Specifies the ID of a test instance. The value is an integer that ranges from 1 to 4294967295.
interval { 3.3 | 10 | 100 | 1000 | 10000 } Specifies the interval at which SLM frames are sent.
Enumerated value, in milliseconds:
  • 3.3
  • 10
  • 100
  • 1000
  • 10000
sending-count count-value Specifies the times that SLM frames are sent within each measurement period. The value is an integer ranging from 1 to 1000. The default value is 10.
timeout timeout Specifies the timeout period during which the device waits for a response. The value is an integer ranging from 1 to 10, in seconds. The default value is 5s.
packet-size packet-size Specifies the size of the SLM frames. The value is an integer ranging from 64 to 1518, in bytes. The default value is 64.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To collect accurate frame loss statistics on a point-to-multipoint network, run the loss-measure single-ended-synthetic continual send command to configure proactive single-ended SLM.

Prerequisites

A test instance has been created using the test-id command in the MA view.

Example

# Configure SLM with test id of 1 and statistics collection interval of 10s.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 2
[HUAWEI-md-md1-ma-ma1] test-id 1 mep 1 remote-mep 2
[HUAWEI-md-md1-ma-ma1] loss-measure single-ended-synthetic continual send test-id 1 interval 10

loss-measure single-ended-synthetic local-ratio-threshold test-id

Function

The loss-measure single-ended-synthetic local-ratio-threshold test-id command configures local packet loss ratio thresholds for single-ended synthetic loss measurement (SLM).

The undo loss-measure single-ended-synthetic local-ratio-threshold test-id command deletes the local packet loss ratio thresholds configured for single-ended SLM.

By default, no local packet loss ratio thresholds are configured for single-ended SLM.

NOTE:

Only the S5720HI supports this command.

Format

loss-measure single-ended-synthetic local-ratio-threshold test-id test-id upper-limit upper-limit lower-limit lower-limit

undo loss-measure single-ended-synthetic local-ratio-threshold test-id test-id [ upper-limit upper-limit lower-limit lower-limit ]

Parameters

Parameter Description Value
test-id

Specifies the ID of a test instance.

The value is an integer that ranges from 1 to 4294967295.

upper-limit upper-limit Specifies an upper local packet loss ratio threshold for single-ended SLM. The value is a string of 1 to 8 characters in the format of xxx.xxxx, in percentages.
lower-limit lower-limit Specifies a lower local packet loss ratio threshold for single-ended SLM. The value is a string of 1 to 8 characters in the format of xxx.xxxx, in percentages. The lower local packet loss ratio threshold must be less than the upper local packet loss ratio threshold.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a point-to-multipoint or multipoint-to-multipoint network, run the loss-measure single-ended-synthetic local-ratio-threshold test-id command to configure local packet loss ratio thresholds for single-ended SLM. After configuring upper and lower local packet loss ratio thresholds, you can obtain data (such as the number of times that a threshold-crossing event occurs) within a sampling period to monitor network performance.

Prerequisites

A test instance has been created using the test-id command in the MA view.

Precautions

Thresholds can be configured only for proactive single-ended SLM and cannot be configured for on-demand single-ended SLM.

Example

# Set lower and upper local packet loss ratio thresholds for single-ended SLM to 10.1111 and 11.1111 respectively for test instance 1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 2
[HUAWEI-md-md1-ma-ma1] test-id 1 mep 1 remote-mep 2
[HUAWEI-md-md1-ma-ma1] loss-measure single-ended-synthetic local-ratio-threshold test-id 1 upper-limit 11.1111 lower-limit 10.1111

loss-measure single-ended-synthetic receive

Function

The loss-measure single-ended-synthetic receive command enables a device to receive synthetic loss measurement (SLM) frames for single-ended SLM.

The undo loss-measure single-ended-synthetic receive command disables the device from receiving SLM frames.

By default, no device in a maintenance association (MA) is enabled to receive SLM frames.

NOTE:

Only the S5720HI supports this command.

Format

loss-measure single-ended-synthetic receive test-id test-id [ time-out timeout-value ]

undo loss-measure single-ended-synthetic receive test-id test-id

Parameters

Parameter Description Value
test-id test-id Specifies the ID of a test instance. The value is an integer that ranges from 1 to 4294967295.
time-out timeout-value Specifies the timeout period for the receive end to receive SLM frames. The value is an integer that ranges from 10 to 300, in seconds. The default value is 300.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the loss-measure single-ended-synthetic send command is run to configure on-demand single-ended SLM or the loss-measure single-ended-synthetic continual send command is run to configure proactive single-ended SLM, run the loss-measure single-ended-synthetic receive command to enable the device to receive SLM frames.

Prerequisites

A test instance has been created using the test-id command in the MA view.

Precautions

If you delete or modify the configuration on the receive end more than once, the statistical data may become incorrect. Therefore, do not delete or modify the statistical task after the configuration is complete.

To modify the configuration, disable the device from receiving SLM frames and then perform reconfiguration.

For a proactive single-ended SLM task, set time-out on the receive end to a value greater than the value of interval on the transmit end.

Example

# Configure the remote end to receive SLM frames, set the value of test id to 1, and set the timeout period for the receive end to receive SLM frames to 200s.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 2
[HUAWEI-md-md1-ma-ma1] test-id 1 mep 1 remote-mep 2
[HUAWEI-md-md1-ma-ma1] loss-measure single-ended-synthetic receive test-id 1 time-out 200

loss-measure single-ended-synthetic remote-ratio-threshold test-id

Function

The loss-measure single-ended-synthetic remote-ratio-threshold test-id command configures remote packet loss ratio thresholds for single-ended synthetic loss measurement (SLM).

The undo loss-measure single-ended-synthetic remote-ratio-threshold test-id command deletes the remote packet loss ratio thresholds configured for single-ended SLM.

By default, no remote packet loss ratio thresholds are configured for single-ended SLM.

NOTE:

Only the S5720HI supports this command.

Format

loss-measure single-ended-synthetic remote-ratio-threshold test-id test-id upper-limit upper-limit lower-limit lower-limit

undo loss-measure single-ended-synthetic remote-ratio-threshold test-id test-id [ upper-limit upper-limit lower-limit lower-limit ]

Parameters

Parameter Description Value
test-id

Specifies the ID of a test instance.

The value is an integer ranging from 1 to 4294967295.

upper-limit upper-limit Specifies an upper remote packet loss ratio threshold for single-ended SLM. The value is a string of 1 to 8 characters in the format of xxx.xxxx, in percentages.
lower-limit lower-limit Specifies a lower remote packet loss ratio threshold for single-ended SLM. The value is a string of 1 to 8 characters in the format of xxx.xxxx, in percentages. The lower remote packet loss ratio threshold must be less than the upper remote packet loss ratio threshold.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a point-to-multipoint or multipoint-to-multipoint scenario, you can run this command to configure remote packet loss ratio thresholds for single-ended SLM. After the thresholds are configured, you can obtain data such as the number of times that a threshold-crossing event occurs.

Prerequisites

A test instance has been created using the test-id command in the MA view.

Precautions

Thresholds can be configured only for proactive single-ended SLM and cannot be configured for on-demand single-ended SLM.

Example

# Set lower and upper remote packet loss ratio thresholds for single-ended SLM to 10.1111 and 11.1111 respectively for test instance 1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 2
[HUAWEI-md-md1-ma-ma1] test-id 1 mep 1 remote-mep 2
[HUAWEI-md-md1-ma-ma1] loss-measure single-ended-synthetic remote-ratio-threshold test-id 1 upper-limit 11.1111 lower-limit 10.1111

loss-measure single-ended-synthetic send

Function

The loss-measure single-ended-synthetic send command configures on-demand single-ended synthetic loss measurement (SLM).

NOTE:

Only the S5720HI supports this command.

Format

loss-measure single-ended-synthetic send test-id test-id interval { 3.3 | 10 | 100 | 1000 | 10000 } [ sending-count count-value ] [ time-out time-out-value ] [ packet-size packet-size ] [ measurement-count measurement-count ]

Parameters

Parameter Description Value
test-id test-id Specifies the ID of a test instance. The value is an integer ranging from 1 to 4294967295.
interval { 3.3 | 10 | 100 | 1000 | 10000 } Specifies the interval at which SLM frames are sent.
Enumerated value, in milliseconds:
  • 3.3
  • 10
  • 100
  • 1000
  • 10000
sending-count count-value Specifies the times that SLMs are sent within each measurement period. The value is an integer ranging from 1 to 1000. The default value is 10.
time-out time-out-value Specifies the timeout period during which the device waits for a reply. The value is an integer ranging from 1 to 10, in seconds. The default value is 5s.
packet-size packet-size Specifies the size of the sent packet. The value is an integer ranging from 64 to 1518, in bytes. The default value is 64.
measurement-count measurement-count Specifies the number of measurements. The value is an integer ranging from 1 to 60. The default value is 1.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When implementing frame loss measurement (LM), Maintenance Association End Points (MEPs) exchange ETH-LM frames. However, single-ended frame LM cannot collect accurate frame loss statistics on a point-to-multipoint or multipoint-to-multipoint network. To resolve this issue, configure on-demand single-ended SLM.

Prerequisites

A test instance has been created using the test-id command in the MA view.

Precautions

If the configuration changes during on-demand statistics, you can view only the pre-change statistics results. You are advised to run the command for on-demand statistics again for query.

Example

# Configure single-ended SLM with the test ID of 1, SLM frame transmission interval of 1s, SLM frame transmission times of 10, and timeout period waiting for a reply of 5s.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 2
[HUAWEI-md-md1-ma-ma1] test-id 1 mep 1 remote-mep 2
[HUAWEI-md-md1-ma-ma1] loss-measure single-ended-synthetic send test-id 1 interval 1000 sending-count 10 time-out 5

loss-measure single-ended-synthetic trigger if-down

Function

The loss-measure single-ended-synthetic trigger if-down command triggers an interface to go ETHOAM down when the near- or far-end frame loss ratio based on a test instance ID exceeds a specified threshold.

The undo loss-measure single-ended-synthetic trigger if-down command restores the default configuration.

By default, an interface is not triggered to go ETHOAM down when the near- or far-end frame loss ratio based on a test instance ID exceeds a specified threshold.

NOTE:

Only the S5720HI supports this command.

Format

loss-measure single-ended-synthetic { local-ratio-threshold | remote-ratio-threshold } test-id test-id trigger if-down

undo loss-measure single-ended-synthetic { local-ratio-threshold | remote-ratio-threshold } test-id test-id trigger if-down

Parameters

Parameter Description Value
local-ratio-threshold Indicates that an interface is triggered to go Down when the near-end frame loss ratio exceeds a specified threshold. -
remote-ratio-threshold Indicates that an interface is triggered to go Down when the far-end frame loss ratio exceeds a specified threshold. -
test-id test-id Specifies the ID of a test instance. The value is an integer that ranges from 1 to 4294967295.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When no service is bound to the MA, the interface where the MEP resides is an Eth-Trunk interface's primary member interface. To ensure the quality of the primary link, run the loss-measure single-ended-synthetic trigger if-down command on the interface where the MEP resides. If the near- or far-end frame loss ratio based on a test instance ID exceeds the threshold configured using the loss-measure single-ended-synthetic local-ratio-threshold test-id or loss-measure single-ended-synthetic remote-ratio-threshold test-id command, the primary link has poor quality. In this case, the interface is triggered to go ETHOAM down, triggering a primary/secondary Eth-Trunk link switchover.

Prerequisites

A test instance has been created using the test-id command in the MA view.

Example

# Trigger the Eth-Trunk member interface GE 0/0/1 to go ETHOAM down when the near-end frame loss ratio based on a test instance ID of 2 exceeds a specified threshold.

<HUAWEI> system-view
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] mep mep-id 8 interface gigabitethernet 0/0/1 outward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 9
[HUAWEI-md-md1-ma-ma1] test-id 2 mep 8 remote-mep 9
[HUAWEI] interface eth-trunk 1
[HUAWEI-Eth-Trunk1] quit
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] eth-trunk 1
[HUAWEI-GigabitEthernet0/0/1] loss-measure single-ended-synthetic local-ratio-threshold test-id 2 trigger if-down

ping mac multicast

Function

The ping mac multicast command configures multicast MAC ping in the current MA.

Format

ping mac multicast mep mep-id [ -c count | -p priority-value | -t timeout ] *

Parameters

Parameter Description Value
mep mep-id Specifies the ID of a MEP. The value is an integer ranging from 1 to 8191.
-c count Specifies the number of multicast Loopback Messages (LBMs) to be sent. The value is an integer ranging from 1 to 4294967295. The default value is 3.
-p priority-value Specifies the priority of the multicast LBM. The value is an integer ranging from 0 to 7. The default value is the same as the 802.1p priority of the 802.1ag packets which is specified in MA view (packet-priority).
-t timeout Specifies the timeout period for waiting for a Loopback Reply (LBR). The value is an integer that ranges from 1 to 65535, in milliseconds. By default, the value is 5000 milliseconds.

Views

MA view

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

The destination MAC address of multicast MAC ping is a multicast MAC address. Multicast MAC ping provides two functions, that is, acknowledging faults and discovering RMEPs.
  • Acknowledging faults: Multicast MAC ping provides the fault acknowledgement function similar to that provided by 802.1ag MAC ping. In a multicast MAC ping test, test packets are sent to test whether the path from the local device to the destination device is reachable. Multicast MAC ping can acknowledge the faults of links between multiple MEPs once.

  • Discovering RMEPs: All RMEPs in the MA can be discovered.

    For example, there are three MEPs in an MA: MEP1, MEP2, and MEP3. After multicast MAC ping is configured on MEP1, MEP1 sends multicast LBMs. After MEP2 and MEP3 receive the LBM, they reply with an LBR. The LBR carries the MAC address of MEP2 or MEP3, MEP ID, and delay. Before configuring the remote-mep command on MEP1, you can configure multicast MAC ping to detect all RMEPs in an MA.

Prerequisites

A MEP has been created using the mep mep-id command.

Precautions

IEEE 802.1ag has two versions: IEEE 802.1ag Draft 7 and IEEE Standard 802.1ag-2007. This command can be used only on the device running IEEE Standard 802.1ag-2007. Before using the ping mac multicast command, you must use the cfm version command to set the Ethernet CFM version to IEEE Standard 802.1ag-2007.

Example

# Create an MD named md1, create an MA named ma1 in the MD, and configure multicast MAC ping in ma1.

<HUAWEI> system-view
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md1-ma-ma1] ping mac multicast mep 1 -p 6 –c 1 –t 3
Reply from 0001-0300-0204 mep id 10: time = 9ms
Reply from 0001-0300-0269 mep id 11: time = 11ms
Packets: Sent = 1, Received = 2
Minimum = 9ms, Maximum = 11ms, Average = 10ms
Table 12-77  Description of the ping mac multicast command output

Item

Description

Reply from

MAC address of the RMEP.

mep id

MEP ID.

time

Delay, in millisecond.

Sent

Number of sent multicast LBMs.

Received

Number of received LBRs.

Minimum

Minimum delay, in millisecond.

Maximum

Maximum delay, in millisecond.

Average

Average delay, in millisecond.

Related Topics

reset y1731 statistic-type

Function

The reset y1731 statistic-type command clears statistics collected through Y.1731.

Format

reset y1731 statistic-type { oneway-delay | twoway-delay } md md-name ma ma-name

reset y1731 statistic-type twoway-delay test-id test-id (Only the S5720HI supports this commmand.)

reset y1731 statistic-type single-synthetic-loss test-id test-id (Only the S5720HI supports this commmand.)

Parameters

Parameter Description Value
oneway-delay Clears statistics on the one-way frame delay. -
twoway-delay Clears statistics on the two-way frame delay. -
md md-name Clears statistics on the specified MD. The value must be an existing MD.
ma ma-name Clears statistics on the specified MA. The value must be an existing MA.
test-id test-id Clears statistics on the specified test-id. The value must be an existing test-id.
single-synthetic-loss Clears statistics on the single-ended SLM. -

Views

All views

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To obtain Y.1731 statistics within a specified period of time, run the reset y1731 statistic-type command to delete existing Y.1731 statistics. After a period of time, run the display y1731 statistic-type command to view statistics.

Precautions

The cleared Y.1731 statistics cannot be restored. Exercise caution when you run this command.

Example

# Clear statistics on the one-way frame delay.
<HUAWEI> reset y1731 statistic-type oneway-delay md mdname ma maname 
# Clear statistics on the two-way frame delay.
<HUAWEI> reset y1731 statistic-type twoway-delay md mdname ma maname 

snmp-agent trap enable feature-name eoam-y1731

Function

The snmp-agent trap enable feature-name eoam-y1731 command enables the trap function for the Y.1731 module.

The undo snmp-agent trap enable feature-name eoam-y1731 command disables the trap function for the Y.1731 module.

By default, the trap function is disabled for the Y.1731 module.

Format

snmp-agent trap enable feature-name eoam-y1731 [ trap-name trap-name ]

undo snmp-agent trap enable feature-name eoam-y1731 [ trap-name trap-name ]

Parameters

Parameter Description Value
trap-name trap-name

Specifies the name of a trap.

  • hwcfmvlanonewaydelay: one-way delay alarm

  • hwcfmvlanonewaydelayrecovery: one-way delay clear alarm

  • hwcfmvlantwowaydelay: two-way delay alarm

  • hwcfmvlantwowaydelayrecovery: two-way delay clear alarm

  • hwy1731aisdefectalarm: AIS alarm

  • hwy1731aisdefectalarmrecovery: AIS clear alarm

  • hwy1731aisexceedmaxpktnum: alarm for the number of AIS PDUs that exceeds the maximum value

  • hwy1731aisexceedmaxpktnumcleared: clear alarm for the number of AIS PDUs that exceeds the maximum value

  • hwy1731testidstatistic: alarm for Y.1731 performance statistics based on the test instance

    NOTE:

    Only the S5720HI supports this trap.

  • hwy1731testidstatisticclear: clear alarm for Y.1731 performance statistics based on the test instance

    NOTE:

    Only the S5720HI supports this trap.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

To enable the traps of one or more events, you can specify trap-name.

Example

# Enable the hwcfmvlanonewaydelay trap.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name eoam-y1731 trap-name hwcfmvlanonewaydelay

test-id

Function

The test-id command creates a test instance for Y.1731 statistics collection.

The undo test-id command deletes a test instance.

By default, no test instance is created in an MA for Y.1731 statistics collection.

NOTE:

Only the S5720HI supports this command.

Format

test-id test-id mep mep-id { remote-mep mep-id } [ 8021p 8021p-value ] [ description description ]

undo test-id test-id

Parameters

Parameter Description Value
test-id test-id Specifies the ID of a test instance. The value is an integer ranging from 1 to 4294967295.
mep mep-id Specifies the MEP ID. The value is an integer that ranges from 1 to 8191.
remote-mep mep-id Specifies the RMEP ID. The value is an integer that ranges from 1 to 8191.
8021p 8021p-value Specifies a priority value for packets. The value is an integer that ranges from 0 to 7.
description description Specifies the description of a test instance. The value is a string of 1 to 63 case-sensitive characters without spaces.

Views

MA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To implement single-ended SLM, run the test-id command to create a test instance.

During two-way frame delay measurement in point-to-multipoint scenarios, you need to run this command to configure a test instance.

During two-way frame delay measurement, if the size or priority of outgoing DMMs needs to be specified or there is the high requirement on the detection accuracy, you can run this command to configure a test instance.

Prerequisites

  • A MEP has been created using the mep mep-id command in the MA view.

  • An RMEP has been created using the remote-mep command in the MA view.

Precautions

To configure a test instance, run the set service-mode command in the system view to configure the device to work in enhanced mode before enabling CFM globally.

IEEE 802.1ag has two versions: IEEE 802.1ag Draft 7 and IEEE Standard 802.1ag-2007. This command can be used only on the device running IEEE Standard 802.1ag-2007. Before using the test-id command, you must use the cfm version command to set the Ethernet CFM version to IEEE Standard 802.1ag-2007.

When you run this command in the same MA view to configure multiple test instances, the REMPs of the local MEP must be different switches.

Example

# Configure test instance 200, and specify the MEP ID as 8 and RMEP ID as 9.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 100
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] set service-mode enhanced
Warning: This command will effect forward performance. Continue? [Y/N]:y
[HUAWEI] cfm enable
[HUAWEI] cfm md md1
[HUAWEI-md-md1] ma ma1
[HUAWEI-md-md1-ma-ma1] map vlan 100
[HUAWEI-md-md1-ma-ma1] mep mep-id 8 interface gigabitethernet 0/0/1 inward
[HUAWEI-md-md1-ma-ma1] remote-mep mep-id 9
[HUAWEI-md-md1-ma-ma1] test-id 200 mep 8 remote-mep 9
Translation
Download
Updated: 2019-10-09

Document ID: EDOC1000178165

Views: 47725

Downloads: 1159

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next