The mpls oam bidirectional-tunnel command configures MPLS OAM to monitor static bidirectional co-routed LSPs.
The undo mpls oam bidirectional-tunnel command deletes the configuration of MPLS OAM that monitors static bidirectional co-routed LSPs.
This command varies in transport and router modes. For detailed differences, see Differences Between Commands in Transport and Router Modes. This topic describes the command configuration in router mode.
By default, MPLS OAM is not configured to monitor static bidirectional co-routed LSPs.
mpls oam bidirectional-tunnel { tunnel-name | tunnel-type tunnel-number } type { cv | ffd frequency { 3 | 10 | 20 | 50 | 100 | 200 | 500 } } [ auto-protocol [ overtime overtime ] ] [ compatibility-mode compati-mode-val ] [ bdi-frequency bdi-frep-value ] [ exp exp-value ]
undo mpls oam bidirectional-tunnel { tunnel-name | tunnel-type tunnel-number }
Parameter | Description | Value |
---|---|---|
tunnel-name |
Specifies the name of a tunnel interface. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
tunnel-type tunnel-number |
Specifies the type and number of a tunnel interface. |
- |
type |
Indicates the detection type. |
- |
cv |
Enables connectivity verification (CV) detection. CV packets are sent every second. |
- |
ffd |
Enables fast failure detection (FFD). |
- |
frequency |
Specifies the interval at which FFD packets are sent, in milliseconds. |
- |
auto-protocol |
Enables OAM auto protocol extension. |
- |
overtime overtime |
Specifies the timeout period for the OAM auto protocol. overtime specifies the timeout period of waiting for the first packet. After OAM auto protocol extension is enabled, the system waits for receiving the first packet to perform OAM detection. If no packet is received after the specified period of time elapses, a fault is considered to occur. BDI packets are then sent to the ingress. |
The value is an integer ranging from 0 to 255. The step is 30 seconds. The default value is 10, meaning 5 minutes (10 x 30s). |
compatibility-mode |
Specifies a compatibility mode. The same compatibility mode must be configured on two ends of an LSP that OAM monitors. This setting allows different types of devices, such as transport and aggregation devices, to perform MPLS OAM. |
- |
compati-mode-val |
Specifies a compatibility mode. |
The values can be:
|
bdi-frequency |
Specifies the interval at which BDI packets are sent. BDI packets are sent if OAM detects a fault. The default interval is 1s. |
- |
bdi-frep-value |
Specifies the interval at which BDI packets are sent. |
The values can be:
|
exp exp-value |
The value is an integer ranging from 0 to 7. A larger value indicates a higher priority. The default value is 7. |
The value is an integer ranging from 0 to 7. A larger value indicates a higher priority. The default value is 7. |
Usage Scenario
MPLS OAM can monitor the connectivity of static bidirectional co-routed LSPs and is widely used in IPRAN scenarios.
The mpls oam bidirectional-tunnel command can be run to set MPLS OAM parameters as needed. The functionality of this command helps rapidly detect faults to trigger a traffic switchover with minimum traffic loss. Either cv or ffd can be configured to monitor connectivity. Select one as needed:Prerequisites
MPLS and MPLS OAM have been enabled globally, and an LSP to be monitored has been established.
Configuration Impact
MPLS OAM cannot be configured together with BFD or MPLS-TP OAM for a static bidirectional co-routed LSP.
Precautions
MPLS OAM does not support LDP over TE.
If auto-protocol is not configured, the mpls oam bidirectional-tunnel enable command must be run on both the ingress and egress.<HUAWEI> system-view [*HUAWEI] mpls [*HUAWEI-mpls] mpls te [*HUAWEI-mpls] mpls oam [*HUAWEI-mpls] quit [*HUAWEI] interface tunnel 10 [*HUAWEI-Tunnel10] tunnel-protocol mpls te [*HUAWEI-Tunnel10] mpls te signal-protocol cr-static [*HUAWEI-Tunnel10] mpls te bidirectional [*HUAWEI-Tunnel10] quit [*HUAWEI] mpls-oam [*HUAWEI-mpls-oam] mpls oam bidirectional-tunnel Tunnel 10 type cv auto-protocol overtime 30