mpls oam bidirectional-tunnel

Function

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.

Format

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 }

Parameters

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:

  • ptn-mode: allows a local device to communicate with a PTN device.
  • router-mode: allows a local device to communicate with a router.
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:

  • per-second: Indicates that BDI packets are sent every second.
  • detect-freq: Indicates that the interval at which BDI packets are sent is the same as that at which testing packets are sent.
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.

Views

MPLS-OAM view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tpoam write

Usage Guidelines

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:

  • cv: enables MPLS OAM to send CV packets every second. CV detection applies to a highly reliable network on which MPLS OAM only detects faults.
  • ffd: enables MPLS OAM to send FFD packets at specific intervals. A 3.3 ms interval is used to monitor LSP connectivity and perform a protection switchover if a fault occurs. A 100 ms interval is selected to monitor LSP performance.

    overtime parameter: specifies the time that elapses before the egress receives OAM packets from the ingress. If no packet is received after the time specified by overtime elapses, the egress considers that a link fault occurs. Set a large value for a network with a heavy load.

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.

Example

# Configure MPLS OAM to monitor the connectivity of static bidirectional co-routed LSPs.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >