The loss-measure single-ended-synthetic send command configures on-demand single-ended synthetic loss measurement (SLM).
Only the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.
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 ]
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:
|
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. |
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.
# 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