212
the session status. On Quanta switches, OSPF and BGP can use BFD for monitoring of their neighbors'
availability in the network and for fast detection of connection faults with them.
BFD uses a simple 'hello' mechanism that is similar to the neighbor detection components of some well-
known protocols. It establishes an operational session between a pair of network devices to detect a two-
way communication path between them and serves information regarding it to the user applications. The
pair of devices transmits BFD packets between them periodically, and if one stops receiving peer packets
within detection time limit it considers the bidirectional path to have failed. It then notifies the application
protocol using its services.
BFD allows each device to estimate how quickly it can send and receive BFD packets to agree with its
neighbor upon how fast detection of failure could be done.
BFD can operate between two devices on top of any underlying data protocol (network layer, link layer,
tunnels, etc.) as payload of any encapsulating protocol appropriate for the transmission medium. The
implementation works with IPv4 and IPv6 networks and supports IPv4/v6 address-based encapsulations.
7.8.1. Configuring BFD
The following command sequence enables BFD and configures session parameters:
1. First, globally enable BFD:
(Switch)#configure
(Switch) (Config)# feature bfd
2. Configure session settings. These can be configured globally or on a per-interface basis.
(Switch) (Config)#bfd interval 100 min_rx 200 multiplier 5 (Switch) (Config)#bfd slow-timer
1000
ï‚·
The argument
interval
refers to the desired minimum transmit interval, the minimum interval
that the user wants to use while transmitting BFD control packets (in ms).
ï‚·
The argument
min_rx
refers to the required minimum receive interval, the minimum interval
at which the system can receive BFD control packets (in ms).
ï‚·
The argument
multiplier
specifies the number of BFD control packets to be missed in a row to
declare a session down.
ï‚·
The
slow-timer
command sets up the BFD required echo receive interval preference value (in
ms). This value determines the interval the asynchronous sessions use for BFD control packets
when the echo function is enabled. The slow-timer value is used as the new control packet
interval, while the echo packets use the configured BFD intervals.
3. Configure BGP to use BFD for fast detection of faults between neighboring devices.