Configuring Static BFD for SR-MPLS TE Tunnel

This section describes how to configure static BFD for SR-MPLS TE to detect SR-MPLS TE tunnel faults.

Usage Scenario

BFD can be used to monitor to SR-MPLS TE tunnels. If the primary tunnel fails, BFD instructs applications such as VPN FRR to quickly switch traffic, minimizing the impact on services.

Pre-configuration Tasks

Before configuring static BFD for SR-MPLS TE, configure SR-MPLS TE tunnels.

Procedure

  1. Enable BFD globally.
    1. Run system-view

      The system view is displayed.

    2. Run bfd

      BFD is enabled globally, and the BFD view is displayed.

      You can set BFD parameters only after running the bfd command to enable BFD globally.

    3. Run commit

      The configuration is committed.

  2. Set ingress BFD parameters.
    1. Run system-view

      The system view is displayed.

    2. Run bfd sessname-value bind mpls-te interface tunnel-name

      BFD is configured to monitor an SR-MPLS TE tunnel.

    3. Run discriminator local discr-value

      A local discriminator is configured for the BFD session.

    4. Run discriminator remote discr-value

      A remote discriminator is configured for the BFD session.

      This command does not need to be run if a one-arm BFD session is established.

    5. (Optional) Run min-tx-interval tx-interval

      The minimum interval at which the local device sends BFD packets is changed.

      This command cannot be run for a one-arm BFD session.

      Actual local interval at which BFD packets are sent = MAX { Locally configured interval at which BFD packets are sent, Remotely configured interval at which BFD packets are received }

      Actual local interval at which BFD packets are received = MAX { Remotely configured interval at which BFD packets are sent, Locally configured interval at which BFD packets are received }

      Local BFD detection period = Actual local interval at which BFD packets are received x Remotely configured BFD detection multiplier

      For example: If on the local device, the intervals at which BFD packets are sent and received are 200 ms and 300 ms, respectively, and the detection multiplier is 4; on the remote device, the intervals at which BFD packets are sent and received are 100 ms and 600 ms, respectively, and the detection multiplier is 5, then:
      • On the local device, the actual interval for sending BFD packets is 600 ms calculated using the formula MAX {200 ms, 600 ms}, the actual interval for receiving BFD packets is 300 ms calculated using the formula MAX {100 ms, 300 ms}, and the actual detection period is 1500 ms (300 ms × 5).

      • On the remote device, the actual interval between sending BFD packets is 300 ms calculated using the formula MAX {100 ms, 300 ms}, the actual interval between receiving BFD packets is 600 ms calculated using the formula MAX {200 ms, 600 ms}, and the actual detection period is 2400 ms (600 ms × 4).

    6. (Optional) Run min-rx-interval rx-interval

      The minimum interval at which the local device receives BFD packets is changed.

      If a one-arm BFD session is to be established, run the min-echo-rx-interval command to set the minimum interval at which BFD packets are received locally.

    7. (Optional) Run detect-multiplier multiplier

      The local BFD detection multiplier is changed.

    8. Run commit

      The configuration is committed.

  3. Set egress BFD parameters.
    1. Run system-view

      The system view is displayed.

    2. Run bfd sessname-value bind mpls-te interface tunnel-name

      BFD is configured to monitor an SR-MPLS TE tunnel.

    3. Run discriminator local discr-value

      A local discriminator is configured for the BFD session.

    4. Run discriminator remote discr-value

      A remote discriminator is configured for the BFD session.

      This command does not need to be run for a one-arm BFD session.

    5. (Optional) Run min-tx-interval tx-interval

      The minimum interval at which the local device sends BFD packets is changed.

      This command cannot be run for a one-arm BFD session.

      If the reverse link is an IP link, you cannot run this command.

      Actual local interval at which BFD packets are sent = MAX { Locally configured interval at which BFD packets are sent, Remotely configured interval at which BFD packets are received }

      Actual local interval at which BFD packets are received = MAX { Remotely configured interval at which BFD packets are sent, Locally configured interval at which BFD packets are received }

      Local BFD detection period = Actual local interval at which BFD packets are received x Remotely configured BFD detection multiplier

      For example: If on the local device, the intervals at which BFD packets are sent and received are 200 ms and 300 ms, respectively, and the detection multiplier is 4; on the remote device, the intervals at which BFD packets are sent and received are 100 ms and 600 ms, respectively, and the detection multiplier is 5, then:
      • On the local device, the actual interval for sending BFD packets is 600 ms calculated using the formula MAX {200 ms, 600 ms}, the actual interval for receiving BFD packets is 300 ms calculated using the formula MAX {100 ms, 300 ms}, and the actual detection period is 1500 ms (300 ms × 5).

      • On the remote device, the actual interval between sending BFD packets is 300 ms calculated using the formula MAX {100 ms, 300 ms}, the actual interval between receiving BFD packets is 600 ms calculated using the formula MAX {200 ms, 600 ms}, and the actual detection period is 2400 ms (600 ms × 4).

    6. (Optional) Run min-rx-interval rx-interval

      The minimum interval at which the local device receives BFD packets is changed.

      If a one-arm BFD session is to be established, run the min-echo-rx-interval command to set the minimum interval at which BFD packets are received locally.

    7. (Optional) Run detect-multiplier multiplier

      The local BFD detection multiplier is changed.

    8. Run commit

      The configuration is committed.

Checking the Configurations

After configuring static BFD for SR-MPLS TE, check the configurations.
  • Run the display bfd session mpls-te interface interface-type interface-number [ verbose ] command to check BFD session information on the tunnel ingress.
  • Check BFD session information on the tunnel egress.
    • To check all BFD sessions' information, run the display bfd session all [ for-te ] [ verbose ] command.
    • To check static BFD sessions' information, run the display bfd session static [ for-te ] [ verbose ] command.
  • Check BFD statistics.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >