Example for Configuring MPLS OAM for a Static Bidirectional Co-routed LSP

This section provides an example for configuring MPLS OAM to check the connectivity of a static bidirectional co-routed LSP.

Context

Static bidirectional co-routed LSPs are widely used on transport networks but their OAM capabilities are insufficient to support network management required for public telecom networks. MPLS OAM can be used to detect faults on a static bidirectional co-routed LSP.

On the network shown in Figure 1, establish a static bidirectional co-routed LSP between LSRA and LSRC to carry OAM packets so that any intermediate node can send back a response packet along the original path.

Figure 1 Configuring a static bidirectional co-routed LSP

Interfaces 1 and 2 in this example are GE 0/1/0, GE 0/1/8, respectively.

Figure1 Configuring a static bidirectional co-routed LSP

Table 1 Interfaces and IP addresses

Device

Interface

IP Address

LSRA

Loopback1

1.1.1.1/32

Interfaces1

2.1.1.1/24

LSRB

Loopback1

2.2.2.2/32

Interfaces1

2.1.1.2/24

Interfaces2

3.2.1.1/24

LSRC

Loopback1

3.3.3.3/32

Interfaces2

3.2.1.2/24

Configuration Roadmap

The configuration roadmap is as follows:

  1. Establish a static bidirectional co-routed LSP between LSRA and LSRC.

  2. Enable MPLS OAM globally.

  3. Configure MPLS OAM parameters in MPLS-OAM view on the nodes at both ends of the static bidirectional co-routed LSP.

  4. (Optional) Enable MPLS OAM on the nodes at both ends of the static bidirectional co-routed LSP.

Data Preparation

To complete the configuration, you need the following data:

  • Tunnel interface numbers, tunnel interface IP addresses, destination addresses, and tunnel IDs on LSRA and LSRC

  • Next-hop address and outgoing label on the ingress of the static bidirectional co-routed LSP

  • Inbound interface, next-hop address, and outgoing label on the transit node of the static bidirectional co-routed LSP

  • Inbound interface on the egress of the static bidirectional co-routed LSP

  • OAM detection packet type and interval at which OAM detection packets are sent

Procedure

  1. Configure a static bidirectional co-routed LSP.

    For configuration details, see "Example for Configuring a Static Bidirectional Co-routed CR-LSP" in HUAWEI NetEngine 8000 F SeriesRouter Configuration Guide - MPLS or Configuration Files in this section.

  2. Enable MPLS OAM globally.

    # Enable MPLS OAM globally on LSRA.
    [~LSRA] mpls
    [*LSRA-mpls] mpls oam
    [*LSRA-mpls] commit
    [~LSRA-mpls] quit
    # Enable MPLS OAM globally on LSRC.
    [~LSRC] mpls
    [*LSRC-mpls] mpls oam
    [*LSRC-mpls] commit
    [~LSRC-mpls] quit

  3. Configure MPLS OAM parameters in the MPLS-OAM view on the nodes at both ends of the static bidirectional co-routed LSP.

    # Configure MPLS OAM parameters on LSRA.

    [~LSRA] mpls-oam
    [~LSRA-mpls-oam] mpls oam bidirectional-tunnel Tunnel10 type ffd frequency 10 auto-protocol
    [*LSRA-mpls-oam] commit
    [~LSRA-mpls-oam] quit

    # Configure MPLS OAM parameters on LSRC.

    [~LSRC] mpls-oam
    [~LSRC-mpls-oam] mpls oam bidirectional-tunnel Tunnel20 type ffd frequency 10 auto-protocol
    [*LSRC-mpls-oam] commit
    [~LSRC-mpls-oam] quit

    If the auto-protocol parameter is not configured, Step 4 must be performed.

  4. (Optional) Enable MPLS OAM on the nodes at both ends of the static bidirectional co-routed LSP.

    # Enable LSRA to send OAM detection packets.

    [~LSRA] mpls-oam
    [~LSRA-mpls-oam] mpls oam bidirectional-tunnel enable send Tunnel10
    [*LSRA-mpls-oam] commit
    [~LSRA-mpls-oam] quit

    # Enable LSRC to receive OAM detection packets.

    [~LSRC] mpls-oam
    [~LSRC-mpls-oam] mpls oam bidirectional-tunnel enable receive Tunnel20
    [*LSRC-mpls-oam] commit
    [~LSRC-mpls-oam] quit

  5. Verify the configuration.

    After completing the configuration, run the display mpls oam bidirectional-tunnel command on LSRA to view MPLS OAM information of the static bidirectional co-routed LSP.

    # Check the configuration results on LSRA.

    <HUAWEI> display mpls oam bidirectional-tunnel all verbose
    --------------------------------------------------------------------------------
    
    Total OAM Num:                    1
    Total Start OAM Num:              1
    Total Defect OAM Num:             1
    
    --------------------------------------------------------------------------------
    
    Verbose information about NO.1 OAM
    --------------------------------------------------------------------------------
    
    Bidirectional Tunnel basic information:
    -------------------------------------------------
    Tunnel-name             : Tunnel10
    Lsp signal status       : Up
    Lsp establish type      : Static-cr-lsp
    Lsp ingress lsr-id      : 1.1.1.1
    Lsp tnl-id              : 100
    Lsp incoming Label      : 0
    -------------------------------------------------
    OAM basic information:
    -------------------------------------------------
    OAM Index               : 1
    OAM Select Board        : 9
    OAM Enable Direction    : Send & Receive
    Auto Protocol           : Enable
    Auto Overtime (s)       : 300
    Compatibility Mode      : Router Mode
    -------------------------------------------------
    OAM detect information:
    -------------------------------------------------
    Send Type               : CV
    Send Frequency          : 1 s
    Receive Type            : CV
    Receive Frequency (ms)  : 1 s
    Detect State            : Start
    Defect-type             : dOamFail
    BDI Defect Type         : no alarm
    Bdi-frequency           : Per-second
    Available State         : Available
    Unavailable Time (s)    : 0
    Hardware Error Info     : No error 

Configuration Files

  • LSRA configuration file

    #
    sysname LSRA
    #
    mpls lsr-id 1.1.1.1
    #
    mpls
     mpls te
    #
    bidirectional static-cr-lsp ingress Tunnel10
     forward nexthop 2.1.1.2 out-label 20
     backward in-label 20
    #
    bidirectional static-cr-lsp ingress 0/1/0
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ip address 2.1.1.1 255.255.255.0
     mpls
     mpls te
    #
    interface LoopBack1
     ip address 1.1.1.1 255.255.255.255
    #
    interface Tunnel10
     ip address unnumbered interface LoopBack1
     tunnel-protocol mpls te
     destination 3.3.3.3
     mpls te signal-protocol cr-static
     mpls te tunnel-id 100
     mpls te bidirectional
    #
    ip route-static 2.2.2.2 255.255.255.255 2.1.1.2
    ip route-static 3.3.3.3 255.255.255.255 2.1.1.2
    #
    mpls-oam
     mpls oam bidirectional-tunnel Tunnel10 type ffd frequency 10 auto-protocol 
    # 
    return
    
  • LSRB configuration file

    #
    sysname LSRB
    #
    mpls lsr-id 2.2.2.2
    #
    mpls
     mpls te
    #
    bidirectional static-cr-lsp transit lsp1
     forward in-label 20 nexthop 3.2.1.2 out-label 40
     backward in-label 16 nexthop 2.1.1.1 out-label 20
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ip address 2.1.1.2 255.255.255.0
     mpls
     mpls te
    #
    interface GigabitEthernet0/1/1
     undo shutdown
     ip address 3.2.1.1 255.255.255.0
     mpls
     mpls te
    #
    interface LoopBack1
     ip address 2.2.2.2 255.255.255.255
    #
    ip route-static 1.1.1.1 255.255.255.255 2.1.1.1
    ip route-static 3.3.3.3 255.255.255.255 3.2.1.2
    #
    return
    
  • LSRC configuration file

    #
    sysname LSRC
    #
    mpls lsr-id 3.3.3.3
    #
    mpls
     mpls te
    #
    bidirectional static-cr-lsp egress lsp1
     forward in-label 40 lsrid 1.1.1.1 tunnel-id 100
     backward nexthop 3.2.1.1 out-label 16
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ip address 3.2.1.2 255.255.255.0
     mpls
     mpls te
    #
    interface LoopBack1
     ip address 3.3.3.3 255.255.255.255
    #
    interface Tunnel20
     ip address unnumbered interface LoopBack1
     tunnel-protocol mpls te
     destination 1.1.1.1
     mpls te signal-protocol cr-static
     mpls te tunnel-id 200
     mpls te passive-tunnel
     mpls te binding bidirectional static-cr-lsp egress lsp1
    #               
    ip route-static 1.1.1.1 255.255.255.255 3.2.1.1
    ip route-static 2.2.2.2 255.255.255.255 3.2.1.1
    #
    mpls-oam
     mpls oam bidirectional-tunnel Tunnel20 type ffd frequency 10 auto-protocol
    #
    return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >