< Home

bfd all-interfaces (OSPF)

Function

The bfd all-interfaces command enables bidirectional forwarding detection (BFD) in an OSPF process and sets the parameter values of a BFD session.

The undo bfd all-interfaces command disables BFD in an OSPF process or restores the default parameter values of a BFD session.

By default, the BFD function in an OSPF process is disabled.

Format

bfd all-interfaces enable

bfd all-interfaces { min-rx-interval receive-interval | min-tx-interval transmit-interval | detect-multiplier multiplier-value } *

undo bfd all-interfaces enable

undo bfd all-interfaces { min-rx-interval | min-tx-interval | detect-multiplier } *

Parameters

Parameter Description Value

enable

Enables BFD.

-

min-rx-interval receive-interval

Specifies the expected minimum interval for receiving BFD packets from the peer.

The value is an integer ranging from 100 to 1000, in milliseconds. The default value is 1000.

min-tx-interval transmit-interval

Specifies the minimum interval for sending BFD packets to the peer.

The value is an integer ranging from 100 to 1000, in milliseconds. The default value is 1000.

detect-multiplier multiplier-value

Specifies the local detection multiplier.

The value of multiplier-value ranges from 3 to 50. The default value is 3.

Views

OSPF view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run this command to enable BFD and configure BFD session parameters. Faults between adjacent devices, therefore, are quickly detected, OSPF is instructed to recalculate routes, and OSPF convergence speeds up. When the OSPF neighbor relationship goes Down, the BFD session between OSPF neighbors is dynamically deleted.

After OSPF establishes a BFD session, the default parameter value is used. BFD session parameters can also be modified as required.

  • Actual interval at which BFD packets are transmitted on the local devices = Max { configured interval transmit-interval at which BFD packets are transmitted, configured interval receive-interval at which BFD packets are received on the peer device }
  • Actual interval at which BFD packets are received on the local devices = Max { configured interval transmit-interval at which BFD packets are transmitted on the peer device, configured interval receive-interval at which BFD packets are received on the local device }
  • Actual time for detecting BFD packets = Actual interval at which BFD packets are received on the local device x Configured detection multiplier multiplier-value

For example:

  • On the local device, the configured interval at which BFD packets are transmitted is 200 ms; the interval at which BFD packets are received is set to 300 ms; the detection multiplier is 4.
  • On the peer device, the configured interval at which BFD packets are transmitted is 100 ms; the interval at which BFD packets are received is 600 ms; the detection multiplier is 5.

Then:

  • On the local device, the actual interval at which BFD packets are transmitted is 600 ms calculated by using the formula max {200 ms, 600 ms}; the interval at which BFD packets are received is 300 ms calculated by using the formula max {100 ms, 300 ms}; the detection period is 1500 ms calculated by multiplying 300 ms by 5.
  • On the peer device, the actual interval at which BFD packets are transmitted is 300 ms calculated by using the formula max {100 ms, 300 ms}, the actual interval at which BFD packets are received is 600 ms calculated by using the formula max {200 ms, 600 ms}, and the detection period is 2400 ms calculated by multiplying 600 ms by 4.

Prerequisites

Before configuring BFD for OSPF, BFD must have been enabled globally using the bfd command.

After BFD in the OSPF process is enabled using the bfd all-interfaces enable command, OSPF establish BFD sessions only with neighbors whose status is Full.

Follow-up Procedure

  • Configure a BFD session on a specified interface.

    If you need to configure BFD on specified interfaces, or global BFD for OSPF is configured but some interface need to be quicker to find link faults, you can configure BFD on specified interfaces using the ospf bfd command.

  • An interface is prevented from dynamically creating a BFD session.

    If you do not want to enable BFD on specified interfaces, you can disable the interfaces from dynamically creating BFD sessions using the ospf bfd block command.

Precautions

The bfd all-interfaces command and the ospf bfd block command are mutually exclusive.

Example

# Enable BFD in the OSPF process, and set the minimum sending to 400 ms.

<sysname> system-view
[sysname] bfd
[sysname-bfd] quit
[sysname] ospf 1 
[sysname-ospf-1] bfd all-interfaces enable
[sysname-ospf-1] bfd all-interfaces min-tx-interval 400

# Bind the status of all the interfaces in the OSPF process to the BFD status.

<sysname> system-view
[sysname] bfd
[sysname-bfd] quit
[sysname] ospf 1
[sysname-ospf-1] bfd all-interfaces enable
[sysname-ospf-1] bfd all-interfaces frr-binding
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >