Networking DOCA SDK Documentation

Bidirectional Forwarding Detection for BGP

NVIDIA DOCA™ HBN uses Bidirectional Forwarding Detection (BFD) from the FRRouting (FRR) suite to detect BGP forwarding-path failures. FRR provides BFD through the bfdd daemon.

HBN supports BFD for BGP beginning with HBN 3.0.0. Single-hop BFD uses UDP port 3784, and multihop BFD uses UDP port 4784. Both session types support IPv4 and IPv6. Asynchronous mode is the only supported mode. The BFD echo function is not supported.

Before You Begin

  • Plan the BGP neighbors or peer groups that require BFD and determine whether each session is single-hop or multihop.

  • Replace the profile names, interfaces, IP addresses, autonomous system numbers, and timing values in the examples with deployment-specific values.

  • Use the BFD timing values supported by the installed HBN release and the remote peer.

The command output on this page is an example. Session identifiers, counters, and uptime values vary by environment.

See BFD Example Topology for the topology used by the extended configuration examples.

Configure BFD

BFD configuration consists of two tasks:

  1. Create a BFD profile.

  2. Attach the profile to a BGP neighbor or peer group.

Configure a BFD Profile

Use nv set router bfd profile <profile-name> to configure a profile.

Setting

Description

Range

Default

detect-multiplier

Specifies the detection multiplier.

1–255

3

min-rx-interval

Specifies the minimum interval at which the system can receive BFD control packets.

10–4294967 ms

300 ms

min-tx-interval

Specifies the minimum interval, excluding jitter, at which the system sends BFD control packets.

10–4294967 ms

300 ms

shutdown

Enables or disables the peer.

on or off

off

passive-mode

Prevents the local session from initiating the connection. The session waits for a control packet from the peer before responding.

on or off

off

minimum-ttl

For multihop sessions, specifies the minimum expected TTL of an incoming BFD control packet.

1–254

254

The following example creates profile pf1:

nv set router bfd profile pf1 detect-multiplier 21
nv set router bfd profile pf1 min-rx-interval 100
nv set router bfd profile pf1 min-tx-interval 100
nv set router bfd profile pf1 minimum-ttl 253
nv set router bfd profile pf1 passive-mode on
nv set router bfd profile pf1 shutdown on

Attach a BFD Profile to BGP

Attach the BFD profile to a BGP neighbor or peer group. HBN then creates or updates the corresponding BFD session.

nv set vrf default router bgp neighbor p0_if.100 bfd profile pf1
nv set vrf default router bgp neighbor 6000::23 bfd profile pf1
nv set vrf default router bgp peer-group EBGP_MHOP_V4 bfd profile pf1

Verify BFD Sessions

Use the brief, standard, or detailed view to inspect BFD session state and counters.

Brief View

nv show vrf default router bfd peers --view=brief

MHop - Multihop, Local - Local, Peer - Peer, Interface - Interface, State -
State, Passive - Passive Mode, Time - Up/Down Time, Type - Config Type

LocalId     MHop   Local                      Peer                  Interface  State  Passive  Time        Type
----------  -----  -------------------------  --------------------  ---------  -----  -------  ----------  -------
417705214   True   6.0.0.24                   6.0.0.23                         down   False    6:19:46:05  dynamic
770667106   False  fe80::a288:c2ff:fe2c:5253  fe80::202:ff:fe00:33  p1_if      down   False    0:03:23:27  dynamic
918556010   False  fe80::a288:c2ff:fe2c:5252  fe80::202:ff:fe00:2f  p0_if.100  up     False    6:19:38:53  dynamic
1668048197  True   6000::24                   6000::23                         down   False    6:19:46:05  dynamic
3190546666  False  fe80::a288:c2ff:fe2c:5252  fe80::202:ff:fe00:2f  p0_if.101  up     False    6:19:38:53  dynamic

Standard View

nv show vrf default router bfd peers --view=standard

MHop - Multihop, Local - Local, Peer - Peer, Interface - Interface, State -
State, Passive - Passive Mode, Time - Up/Down Time, Type - Config Type, MinTTL -
Minimum TTL, Multiplier - Detect Multiplier, MinRx - Min Rx Interval, MinTx -
Min Tx Interval, CtrlIn - Control Packet Input, CtrlOut - Control Packet Output

LocalId     MHop   Local                      Peer                  Interface  State  Passive  Time        Type     MinTTL  Multiplier  MinRx  MinTx  CtrlIn   CtrlOut
----------  -----  -------------------------  --------------------  ---------  -----  -------  ----------  -------  ------  ----------  -----  -----  -------  -------
417705214   True   6.0.0.24                   6.0.0.23                         down   False    6:19:46:14  dynamic  251     21          100    100    12517    698545
770667106   False  fe80::a288:c2ff:fe2c:5253  fe80::202:ff:fe00:33  p1_if      down   False    0:03:23:36  dynamic          22          102    102    0        13950
918556010   False  fe80::a288:c2ff:fe2c:5252  fe80::202:ff:fe00:2f  p0_if.100  up     False    6:19:39:02  dynamic          21          100    100    3270251  3448733
1668048197  True   6000::24                   6000::23                         down   False    6:19:46:14  dynamic  251     21          100    100    12373    698358
3190546666  False  fe80::a288:c2ff:fe2c:5252  fe80::202:ff:fe00:2f  p0_if.101  up     False    6:19:39:02  dynamic          22          102    102    3270331  3448614

Detailed View

nv show vrf default router bfd peers --view=detail

MHop - Multihop, Local - Local, Peer - Peer, Interface - Interface, State -
State, RemoteId - Remote ID, Passive - Passive Mode, Time - Up/Down Time, Type -
Config Type, MinTTL - Minimum TTL, Diag - Diagnostic, RemoteDiag - Remote
Diagnostic, Multiplier - Detect Multiplier, MinRx - Min Rx Interval, MinTx - Min
Tx Interval, RemoteMultiplier - Remote Detect Multiplier, RemoteRx - Remote Rx
Interval, RemoteTx - Remote Tx Interval, EchoRx - Echo Rx Interval, EchoTx -
Echo Tx Interval, RemoteEchoRx - Remote Echo Rx Interval, RTTMin - RTT Min,
RTMax - RTT Max, RTTAvg - RTT Avg, CtrlIn - Control Packet Input, CtrlOut -
Control Packet Output, EchoIn - Echo Packet Input, EchoOut - Echo Packet Output,
Up - Session Up, Down - Session Down, Zebra - Zebra Notification

LocalId     MHop   Local                      Peer                  Interface  State  RemoteId  Passive  Time        Type     MinTTL  Diag                       RemoteDiag  Multiplier  MinRx  MinTx  RemoteMultiplier  RemoteRx  RemoteTx  EchoRx  EchoTx  RemoteEchoRx  RTTMin  RTMax  RTTAvg  CtrlIn   CtrlOut  EchoIn  EchoOut  Up  Down  Zebra
----------  -----  -------------------------  --------------------  ---------  -----  --------  -------  ----------  -------  ------  -------------------------  ----------  ----------  -----  -----  ----------------  --------  --------  ------  ------  ------------  ------  -----  ------  -------  -------  ------  -------  --  ----  -----
417705214   True   6.0.0.24                   6.0.0.23                         down   0         False    6:19:46:19  dynamic  251     control-detection-expired  ok          21          100    100    30                300       300       50      0       50            0       0      0       12517    698550   0       0        1   1     3
770667106   False  fe80::a288:c2ff:fe2c:5253  fe80::202:ff:fe00:33  p1_if      down   0         False    0:03:23:41  dynamic          ok                         ok          22          102    102    3                 1000      1000      50      0       0             0       0      0       0        13954    0       0        0   0     1
918556010   False  fe80::a288:c2ff:fe2c:5252  fe80::202:ff:fe00:2f  p0_if.100  up     6         False    6:19:39:07  dynamic          ok                         ok          21          100    100    20                200       200       50      0       0             0       0      0       3270275  3448759  0       0        2   1     5
1668048197  True   6000::24                   6000::23                         down   0         False    6:19:46:19  dynamic  251     control-detection-expired  ok          21          100    100    30                300       300       50      0       50            0       0      0       12373    698363   0       0        1   1     7
3190546666  False  fe80::a288:c2ff:fe2c:5252  fe80::202:ff:fe00:2f  p0_if.101  up     7         False    6:19:39:07  dynamic          ok                         ok          22          102    102    20                200       200       50      0       0             0       0      0       3270354  3448640  0       0        2   1     6

Confirm that expected sessions report up. For sessions that remain down, compare the local and remote addresses, multihop setting, timing values, and peer configuration.

Configuration Examples

Use the child pages for complete HBN, NVIDIA® Cumulus® Linux, host, and route-server configurations and verification output.

Last updated: