The mpls oam egress command configures MPLS OAM parameters on the egress of an LSP.
The undo mpls oam egress command deletes MPLS OAM parameters configured on the egress 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 egress uses OAM auto protocol extension; the reverse LSP is in share mode; the interval at which BDI packets are sent is the same as the interval between sending OAM detection packets.
mpls oam egress { lsp-name lsp-name | lsr-id ingress-lsr-id tunnel-id tunnel-id } [ type { cv | ffd frequency { 3 | 10 | 20 | 50 | 100 | 200 | 500 } } ] [ backward-lsp { tunnel-type tunnel-number | tunnel-name } [ share | private ] ] [ bdi-frequency bdi-frep-value ]
mpls oam egress { lsp-name lsp-name | lsr-id ingress-lsr-id tunnel-id tunnel-id } auto-protocol [ overtime over-time ] [ backward-lsp { tunnel-type tunnel-number | tunnel-name } [ share | private ] ] [ bdi-frequency bdi-frep-value ]
undo mpls oam egress { lsp-name lsp-name | lsr-id ingress-lsr-id tunnel-id tunnel-id }
Parameter | Description | Value |
---|---|---|
lsp-name lsp-name |
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 ingress-lsr-id |
Specifies the LSR ID of the ingress of an LSP to be monitored. |
The value is in dotted decimal notation. |
tunnel-id tunnel-id |
Specifies the tunnel ID of the bound LSP to be monitored. |
The value is an integer ranging from 1 to 65535. |
type |
Indicates the type of OAM detection packets. This parameter takes effect only when the auto-protocol parameter is not set. |
- |
cv |
Indicates that the type of OAM detection packets is CV. |
- |
ffd |
Indicates that the type of OAM detection packets is FFD. |
- |
frequency |
Indicates that the interval between sending FFD packets. |
The value is 3, 10, 20, 50, 100, 200 and 500 in milliseconds. |
backward-lsp |
Specifies the tunnel ID of a reverse LSP. |
- |
tunnel-type tunnel-number |
Specifies the tunnel type and number. |
- |
tunnel-name |
Specifies the tunnel name of a reverse LSP. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
share |
Indicates that a reverse LSP works in shared mode. That is, the reverse LSP can be shared by multiple LSPs. |
- |
private |
Indicates that a reverse LSP works in private mode. After a reverse LSP works in private mode, the reverse LSP cannot be bound to other LSPs. |
- |
bdi-frequency |
Indicates the interval at which BDI packets are sent. |
- |
auto-protocol |
Enables OAM auto protocol extension. |
- |
overtime over-time |
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). |
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 egress, run the mpls oam egress command.
Prerequisites
MPLS OAM has been globally enabled using the mpls oam command.
Precautions
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls oam [*HUAWEI-mpls] quit [*HUAWEI] mpls oam egress lsr-id 1.1.1.1 tunnel-id 100 type cv
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls oam [*HUAWEI-mpls] quit [*HUAWEI] mpls oam egress lsr-id 1.1.1.1 tunnel-id 100 auto-protocol