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.
delay-measure one-way send mep mep-id { mac mac-address | remote-mep mep-id } interval { 1000 | 10000 } count count-value
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. |
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.
If remote-mep mep-id is specified in the delay-measure one-way mep command, the following configurations must be completed:
Run the remote-mep command in the MA view to create an RMEP.
Run the mep ccm-send enable command in the MA view to enable the local MEP in the MA to send CCMs.
Run the remote-mep ccm-receive enable command in the MA view to enable the MEP to receive CCMs from the RMEP in the same MA.
Precautions
One-way frame delay measurement can be implemented only after the MEP synchronizes the time with its RMEP.
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.
# 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