The mpls oam egress loss-measure oam-packet loss-ratio command configures alarm thresholds on the egress of an LSP for the OAM packet loss ratio.
By default, the alarm threshold for the OAM packet loss ratio on the egress of an LSP is zero.
mpls oam egress loss-measure oam-packet loss-ratio threshold1 threshold1-value threshold2 threshold2-value { lsp-name lsp-name | lsr-id lsr-id tunnel-id tunnel-id }
mpls oam egress loss-measure oam-packet loss-ratio { threshold1 threshold1-value | threshold2 threshold2-value } { lsp-name lsp-name | lsr-id lsr-id tunnel-id tunnel-id }
Parameter | Description | Value |
---|---|---|
threshold2 threshold2-value |
Configures alarm threshold 2. |
The value is an integer ranging from 0 to 100, in percentage. |
lsp-name lsp-name |
Specifies the name of an LSP. |
The value is a string of 1 to 35 characters, spaces not supported. If quotation marks are used at both ends of an entered character sting, you can enter spaces in the string. |
lsr-id lsr-id |
Specifies the IP address of the egress of an LSP. |
The value is in dotted decimal notation. |
tunnel-id tunnel-id |
Specifies the tunnel ID of an LSP. |
The value is an integer and the value range from 1 to 65535. |
threshold1 threshold1-value |
Configures alarm threshold 1. |
The value is an integer ranging from 0 to 100, in percentage. |
Usage Scenario
When configuring packet loss ratio detection on the egress of an LSP, run the mpls oam egress lost-measure single-ended 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.
Prerequisites
Configuration Impact
After the mpls oam egress lost-measure single-ended loss-ratio command is run, the system detects the packet loss ratio on the egress of an LSP. If the packet loss ratio exceeds alarm threshold 1, an alarm is reported. If the packet loss ratio exceeds alarm threshold 2, an alarm is reported and LSP APS is triggered. After the alarm is cleared, an LSP 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] mpls te [*HUAWEI-mpls] mpls lsr-id 1.1.1.1 [*HUAWEI] interface Tunnel 10 [*HUAWEI-Tunnel10] tunnel-protocol mpls te [*HUAWEI-Tunnel10] mpls te signal-protocol cr-static [*HUAWEI-Tunnel10] mpls te tunnel-id 10 [*HUAWEI-Tunnel10] quit [*HUAWEI] static-cr-lsp egress lsp1 incoming-interface Ethernet 0/1/17 in-label 120 lsrid 1.1.1.1 tunnel-id 10 [*HUAWEI] mpls oam egress lsp-name lsp1 type cv [*HUAWEI] mpls oam egress loss-measure oam-packet loss-ratio threshold1 20 threshold2 80 lsr-id 1.1.1.1 tunnel-id 10