BFD
In this section:
- Bidirectional Forwarding Detection OverviewBidirectional Forwarding Detection (BFD) is a lightweight hello protocol, with little system overhead, used to rapidly detect link faults without overloading the system. BFD improves network performance by using hardware acceleration for sending packets, resulting in less overheard on the control CPU. BFD works by checking that a device is alive, thus providing rapid detection of the failure of a forwarding path and minimizing traffic loss. BFD can detect the failure of the forwarding plane in a sub-second time interval that is user-configurable.
- BFD Session StatesThe following are states through which a BFD session can move:
- BFD in a Stacking SystemThe configuration of a BFD session occurs on the unit where the TX port, or next hop, resides. The TX port is known once the ARP, or the next hop in the case of a multihop BFD session, is resolved.
- BFD High Availability SupportBFD is deployed in the stacking setup where units take up active, standby, and member roles, as illustrated in the following figure. When a failover occurs and the active unit fails or goes through a switchover, the standby unit takes over as active. Therefore, BFD-enabled routes are available for forwarding both during and post switchover.
- Micro-BFDMicro-BFD sessions are BFD sessions running on member links of the LAG. Micro-BFD sessions provide BFD with the ability to verify link continuity for every LAG member link. Micro-BFD helps to guarantee the detection of physical member link failures, as well as the overall LAG interface failure. A single micro-BFD session runs on each member link of the LAG for every enabled address family.
- BFD Session Configuration Where Next Hop is
a VE InterfaceBFD session configurations in the micro controller use only a local port number as the TX port parameter. When the TX port, or next hop, for the BFD session is part of a VE interface with a physical port, the session is configured on one port for the VLAN. ARP resolution for the peer allocates the actual outgoing port to use.
- BFD Session Configuration Where Next Hop is a LAG Interface
- BFD Considerations and LimitationsConsider the following when configuring BFD:
- Holdover TimerThe holdover time interval for a BFD session is configured at the application or protocol level. An application or protocol pushes the configured holdover time interval to the BFD controller that keeps track of the holdover time per application or protocol per session.
- BFD Support for OSPFBFD support for OSPFv2 and OSPFv3 can be configured so that OSPF is a registered protocol with BFD. When BFD support for OSPF is configured, forwarding path detection failure messages are received from BFD. BFD sessions can rapidly detect link faults and notify OSPF so that it quickly responds to network topology changes. BFD support for OSPF is disabled by default.
- BFD Support for BGPBFD support for BGP4 and BGP4+ can be configured so that BGP is a registered protocol with BFD, and forwarding path detection failure messages are received from BFD. BFD for BGP is disabled by default. When BFD support for BGP is enabled, BFD rapidly detects faults on links between BGP peers and reports faults to BGP. BFD for BGP is supported for both single-hop and multihop iBGP and eBGP sessions with IPv4 or IPv6 neighbors. BFD for BGP is supported for both the default VRF and nondefault VRF instances.
- BFD for Static RoutesUnlike routing protocols such as OSPF and BGP, static routing has no method of fault detection or peer discovery. BFD for IPv4 andPlease confirm updateIPv6 static routes provides rapid detection of failure in the bidirectional forwarding path between BFD peers.
- BFD Configuration Examples
- Displaying BFD Information