The mpls oam l2vc loss-measure oam-packet loss-ratio command configures alarm thresholds on a PW for the OAM packet loss ratio.
By default, the alarm threshold for the OAM packet loss ratio is 0.
mpls oam l2vc loss-measure oam-packet loss-ratio threshold1 threshold1-value threshold2 threshold2-value peer-ip peer-ip vc-id vc-id vc-type vc-type
mpls oam l2vc loss-measure oam-packet loss-ratio { threshold1 threshold1-value | threshold2 threshold2-value } peer-ip peer-ip vc-id vc-id vc-type vc-type
Parameter | Description | Value |
---|---|---|
threshold2 threshold2-value |
Sets alarm threshold 2. |
The value is an integer ranging from 0 to 100, in percentage. |
peer-ip peer-ip |
Specifies the destination IP address of a PW. |
The value is in dotted decimal notation. |
vc-id vc-id |
Specifies the PW ID. |
The value is an integer ranging from 1 to 4294967295. |
vc-type vc-type |
Specifies the type of a remote L2VC. |
Encapsulation types supported:
|
threshold1 threshold1-value |
Sets alarm threshold 1. |
The value is an integer ranging from 0 to 100, in percentage. |
Usage Scenario
When configuring OAM packet loss ratio detection on a PW, you can run the mpls oam ingress loss-measure oam-packet loss-ratio command to configure alarm thresholds. If the detected packet loss ratio exceeds a specified alarm threshold, an alarm is reported.
Two alarm thresholds can be configured. If the packet loss ratio exceeds alarm threshold 1 but does not reach alarm threshold 2, alarms are reported based on alarm threshold 1. If the packet loss ratio exceeds alarm threshold 2, alarms are reported based on both alarm thresholds 1 and 2. Alarm threshold 1 can be set to a small value, and its associated alarms are informational only. Alarm threshold 2 must be set to a value greater than alarm threshold 1, and its associated alarms must be cleared.Configuration Impact
After the mpls oam bidirectional-tunnel loss-measure oam-packet loss-ratio command is run, the system detects the packet loss ratio. If the packet loss ratio exceeds a specified alarm threshold, SD1-NEAR or SD2-NEAR alarms are reported. When an alarm is generated, APS is triggered on the protection ring. After the alarm is cleared, an APS switchback is triggered.
Precautions
You must configure alarm thresholds based on the actual link status.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls oam [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] mpls l2vc 2.2.2.2 100 [*HUAWEI-GigabitEthernet0/1/0] quit [*HUAWEI] mpls-oam [*HUAWEI-mpls-oam] mpls oam l2vc loss-measure oam-packet loss-ratio threshold2 50 peer-ip 2.2.2.2 vc-id 100 vc-type ethernet