< Home

Configuring BFD for LSP

Context

To ensure reliability of LDP LSPs between SPEs on the core ring, configure BFD to detect LDP LSPs quickly.

Procedure

  • Configure SPEs.

    The following uses the configuration of Core_SPE1 on the core ring as an example. The configurations of Core_SPE2 and Core_SPE3 are similar to the configuration of Core_SPE1, and are not mentioned here.

    bfd SPE1toSPE2 bind ldp-lsp peer-ip 172.16.0.3 nexthop 172.17.4.9 interface Eth-Trunk4    //Enable static BFD to detect the LDP LSP between SPE1 and SPE2.
     discriminator local 317    //Set the local discriminator. The local discriminator of the local system must be the same as the remote discriminator of the remote system.
     discriminator remote 137    //Set the remote discriminator.
     detect-multiplier 8    //Set the local detection multiplier of BFD.
     min-tx-interval 3    //Set the minimum interval at which the local device sends BFD packets to 3.3 ms.
     min-rx-interval 3    //Set the minimum interval at which the local device receives BFD packets to 3.3 ms.
     process-pst    //Allow BFD sessions to change the PST to speed up switchovers.
     commit    //Commit the BFD session configuration.
    #
    bfd SPE1toSPE3 bind ldp-lsp peer-ip 172.16.0.4 nexthop 172.17.4.3 interface Eth-Trunk5    //Enable static BFD to detect the LDP LSP between SPE1 and SPE3.
     discriminator local 32
     discriminator remote 23
     detect-multiplier 8
     min-tx-interval 3
     min-rx-interval 3
     process-pst
     commit
    #

Checking the Configuration

  • Run the display bfd session all for-lsp command to check the BFD for LSP session status. Using Core_SPE1 as an example, if BFD sessions with the tunnel type being S_LDP_LSP are all in Up state, BFD for LSP sessions have been set up successfully.

    [Core_SPE1]display bfd session all for-lsp
    --------------------------------------------------------------------------------
    Local Remote     PeerIpAddr      State     Type         InterfaceName           
    --------------------------------------------------------------------------------
    32    23         172.16.0.4      Up        S_LDP_LSP    Eth-Trunk4               
    317   137        172.16.0.3      Up        S_LDP_LSP    Eth-Trunk5              
    --------------------------------------------------------------------------------
         Total UP/DOWN Session Number : 2/0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic