mpls oam ingress

Function

The mpls oam ingress command configures MPLS OAM parameters on the ingress of an LSP.

The undo mpls oam ingress command deletes MPLS OAM parameters configured on the ingress of an LSP.

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, the reverse tunnel works in shared mode.

Format

mpls oam ingress { tunnelType tunnelNum | tunnelName } [ type { cv | ffd frequency { 3 | 10 | 20 | 50 | 100 | 200 | 500 } } ] [ backward-lsp { share | lsp-name lsp-name-value | lsr-id ip_addr tunnel-id rev-tunnel-id } ] [ compatibility-mode compati-mode-val ] [ bdi-frequency bdi-frep-value ] [ exp exp-value ]

undo mpls oam ingress { tunnelType tunnelNum | tunnelName }

Parameters

Parameter Description Value
tunnelType tunnelNum

Specifies the tunnel type and number.

-

type

Indicates the type of OAM detection packets.

By default, the type of detection packets is cv and the interval between sending CV packets is 1 second.

cv

Indicates that the type of OAM detection packets is CV.

-

ffd

Indicates that the type of OAM detection packets is FFD.

-

frequency

Specifies the interval between sending FFD packets.

The value is 3, 10, 20, 50, 100, 200 or 500, in milliseconds.

If the egress does not receive OAM packets within a period of 3 times the specified interval, the egress considers the connection to the ingress faulty.

backward-lsp

Indicates the working mode of a reverse LSP. The working mode can be share or private. In private mode, a reverse LSP can be specified by either lsp-name lsp-name or lsr-id rev-ingress-lsr-id tunnel-id rev-tunnel-id.

-

share

Indicates that a reverse LSP works in shared mode.

-

lsp-name lsp-name-value

Specifies the name of a static bidirectional CR-LSP.

The value is a string of 1 to 19 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 ip_addr

Specifies the LSR ID of the ingress on a reverse LSP.

-

tunnel-id rev-tunnel-id

Specifies the tunnel ID of a reverse LSP.

The value is an integer and the value range is 1 to 65535.

compatibility-mode

Indicates the compatibility mode.

-

compati-mode-val

Indicates the router/PTN communication mode.

The values are as follows:

  • router-mode
  • ptn-mode
bdi-frequency

Indicates the interval at which BDI packets are sent.

-

bdi-frep-value

Indicates that the interval at which BDI packets are sent is the same as that between sending OAM detection packets.

Indicates that BDI packets are sent every second.

The values are as follows:

  • per-second
  • detect-freq
exp exp-value

Specifies a forwarding priority for packets.

The value is an integer ranging from 0 to 7. A larger value indicates a higher priority. The default value is 7.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tpoam write

Usage Guidelines

Usage Scenario

The MPLS OAM mechanism effectively detects and locates MPLS link faults. The MPLS OAM mechanism also triggers a protection switchover after detecting a fault. To configure MPLS OAM to monitor an LSP, you must configure MPLS OAM parameters on the ingress and egress. To configure MPLS OAM parameters on the ingress, run the mpls oam ingress command.

Prerequisites

MPLS OAM has been globally enabled using the mpls oam command.

Follow-up Procedure

Run the mpls oam ingress enable command to enable OAM.

Example

# Configure MPLS OAM parameters on tunnel 10 interface as follows: Set the type of OAM detection packets to FFD and set the interval between sending FFD packets to 100 milliseconds.
<HUAWEI> system-view
[~HUAWEI] interface tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol mpls te
[*HUAWEI-Tunnel10] quit
[*HUAWEI] mpls
[*HUAWEI-mpls] mpls oam
[*HUAWEI-mpls] quit
[*HUAWEI] mpls oam ingress Tunnel 10 type ffd frequency 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >