- Cisco BGP Overview
- BGP 4
- Configuring a Basic BGP Network
- BGP 4 Soft Configuration
- BGP Support for 4-byte ASN
- IPv6 Routing: Multiprotocol BGP Extensions for IPv6
- IPv6 Routing: Multiprotocol BGP Link-Local Address Peering
- IPv6 Multicast Address Family Support for Multiprotocol BGP
- Configuring Multiprotocol BGP (MP-BGP) Support for CLNS
- Connecting to a Service Provider Using External BGP
- BGP Route-Map Continue
- BGP Route-Map Continue Support for Outbound Policy
- Removing Private AS Numbers from the AS Path in BGP
- Configuring BGP Neighbor Session Options
- BGP Neighbor Policy
- BGP Dynamic Neighbors
- BGP Support for Next-Hop Address Tracking
- BGP Restart Neighbor Session After Max-Prefix Limit Reached
- BGP Support for Dual AS Configuration for Network AS Migrations
- Configuring Internal BGP Features
- BGP VPLS Auto Discovery Support on Route Reflector
- BGP FlowSpec Route-reflector Support
- BGP Flow Specification Client
- BGP NSF Awareness
- BGP Graceful Restart per Neighbor
- BGP Support for BFD
- IPv6 NSF and Graceful Restart for MP-BGP IPv6 Address Family
- BGP Link Bandwidth
- iBGP Multipath Load Sharing
- BGP Multipath Load Sharing for Both eBGP and iBGP in an MPLS-VPN
- Loadsharing IP Packets over More Than Six Parallel Paths
- BGP Policy Accounting
- BGP Policy Accounting Output Interface Accounting
- BGP Cost Community
- BGP Support for IP Prefix Import from Global Table into a VRF Table
- BGP Support for IP Prefix Export from a VRF Table into the Global Table
- BGP per Neighbor SoO Configuration
- Per-VRF Assignment of BGP Router ID
- BGP Next Hop Unchanged
- BGP Support for the L2VPN Address Family
- BGP Event-Based VPN Import
- BGP Best External
- BGP PIC Edge for IP and MPLS-VPN
- Detecting and Mitigating a BGP Slow Peer
- Configuring BGP: RT Constrained Route Distribution
- Configuring a BGP Route Server
- BGP Diverse Path Using a Diverse-Path Route Reflector
- BGP Enhanced Route Refresh
- Configuring BGP Consistency Checker
- BGP—Origin AS Validation
- BGP MIB Support
- BGP 4 MIB Support for Per-Peer Received Routes
- BGP Support for Nonstop Routing (NSR) with Stateful Switchover (SSO)
- BGP NSR Auto Sense
- BGP NSR Support for iBGP Peers
- BGP Graceful Shutdown
- BGP — mVPN BGP sAFI 129 - IPv4
- BGP-MVPN SAFI 129 IPv6
- BFD—BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
- BGP Attribute Filter and Enhanced Attribute Error Handling
- BGP Additional Paths
- BGP-Multiple Cluster IDs
- BGP-VPN Distinguisher Attribute
- BGP-RT and VPN Distinguisher Attribute Rewrite Wildcard
- VPLS BGP Signaling
- Multicast VPN BGP Dampening
- BGP—IPv6 NSR
- BGP-VRF-Aware Conditional Advertisement
- BGP—Selective Route Download
- BGP—Support for iBGP Local-AS
- eiBGP Multipath for Non-VRF Interfaces (IPv4/IPv6)
- L3VPN iBGP PE-CE
- BGP NSR Support for MPLS VPNv4 and VPNv6 Inter-AS Option B
- BGP-RTC for Legacy PE
- BGP PBB EVPN Route Reflector Support
- BGP Monitoring Protocol
- VRF Aware BGP Translate-Update
- BGP Support for MTR
- BGP Accumulated IGP
- BGP MVPN Source-AS Extended Community Filtering
- BGP AS-Override Split-Horizon
- BGP Support for Multiple Sourced Paths Per Redistributed Route
- Finding Feature Information
- Restrictions for BFD—BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
- Information About BFD - BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
- How to Configure BFD - BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
- Configuration Examples for BFD - BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
- Additional References
- Feature Information for BFD—BGP Multihop Client Support, cBit (IPv4/IPv6), and Strict Mode
BFD—BGP Multihop Client
Support, cBit (IPv4 and IPv6), and Strict Mode
The BFD—BGP Multihop Client Support feature enables Border Gateway Protocol (BGP) to use multihop Bidirectional Forwarding Detection (BFD) support, which improves BGP convergence as BFD detection and failure times are faster than the Interior Gateway Protocol (IGP) convergence times in most network topologies.
The BFD—BGP cBIT feature allows BGP to determine if BFD failure is dependent or independent of the Control Plane. This allows BGP greater flexibility in handling BFD down events.
- Finding Feature Information
- Restrictions for BFD—BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
- Information About BFD - BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
- How to Configure BFD - BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
- Configuration Examples for BFD - BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
- Additional References
- Feature Information for BFD—BGP Multihop Client Support, cBit (IPv4/IPv6), and Strict Mode
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Restrictions for BFD—BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
-
For BGP IPv4 and BGP IPv6 peering sessions only, multihop BFD support is available for BGP for address-family IPv4 and IPv6 unicast.
-
For multihop BGP sessions using IPv6 Link Local addresses, BFD multihop support is not available.
-
Currently BFD Hardware offload is not supported for multihop BFD sessions and so C-bit will not be set for multihop sessions.
-
Multihop BFD for IPv6 Virtual Routing and Forwarding (VRF) is not supported.
-
BGP session attribute for BFD does not change dynamically when BGP session changes from single-hop to multihop, hence you need to clear the existing BGP session to reinitiate multihop BFD session.
Information About BFD - BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
BFD—BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
BFD is a detection protocol that is designed to provide fast forwarding path failure detection times for all media types, encapsulations, topologies, and routing protocols. In addition to fast forwarding path failure detection, BFD provides a consistent failure detection method for network administrators. Because the network administrator can use BFD to detect forwarding path failures at a uniform rate, rather than the variable rates for different routing protocol hello mechanisms, network profiling and planning is easier, and reconvergence time is consistent and predictable. The main benefit of implementing BFD for BGP is a significantly faster reconvergence time. For internal BGP (iBGP) sessions and external BGP (eBGP) sessions that are either single hop or multihop, BGP can use of the multihop BFD support to help improve the BGP convergence because BFD detection and failure times are faster than the IGP convergence times in most of the network topologies. BGP needs the support of multihop BFD as described in RFC5882, Generic Application of Bidirectional Forwarding Detection (BFD).
BGP by default will purge the routes received from a specific peer when a BFD down event occurs and BFD informs BGP about it. The cBit in BFD determines whether BFD is dependent or independent of the Control Plane. Clients like BGP, whose peers are enabled with fast fall over feature with BFD support, can use this BFD cBit support to provide a more deterministic mechanism to do nonstop forwarding (NSF) when BGP graceful restart is enabled along with BFD fast-fallover support for BGP sessions.
When BGP is using BFD for the fast fallover feature for remote connectivity detection, BFD can detect some of those failures. If BFD is independent of the control plane, a BFD session failure means that data cannot be forwarded anymore (due to link control failures) and so the BGP graceful restart procedures should be aborted to avoid traffic black holes. On the other hand, when BFD is dependent on the control plane, a BFD failure cannot be separated out from the other events taking place in the control plane. When the control plane crashes, a switchover happens and BFD restarts. It is best for the clients (like BGP) to avoid any aborts due to the graceful restart taking place.
The table below describes the handling of BFD down events by BGP.
BFD Down Event |
Failure—Control Plane Independent? |
BGP Action for NSF (when GR and BFD are enabled) |
---|---|---|
BGP control plane detection failure enabled |
Yes |
Purge Routes |
BGP control plane detection failure enabled |
No |
Carry on NSF and keep stale routes in Routing Information Base (RIB) |
BGP control plane detection failure disabled (the default behavior) |
Yes |
Purge Routes |
BGP control plane detection failure disabled (the default behavior) |
No |
Purge Routes |
BGP session establishment works independently from BFD state change, except for fast fall-over detection, that is, inaccessible next-hop and cause best path re-calculation. This means that the BGP session could be established while BFD state is down or dampened, even with neighbor fail-over bfd configured.
From the XE 3.17S release the new optional keyword strict-mode is introduced, which does not allow BGP session to become established, if BFD is in down state. When BFD is dampened or down the routing protocol states or sessions cannot come up.
How to Configure BFD - BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
Configuring BFD—BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
Note | The multihop BFD minimum detection time should be higher than IGP convergence times in your network to ensure that down events are not mistakenly identified during reconvergences, causing multihop BGP sessions to flap. |
1.
enable
2.
configure
terminal
3.
router
bgp
autonomous-system-number
4.
neighbor
ip-address
remote-as
autonomous-system-number
5.
neighbor
ip-address
update-source
interface-type interface-number
6.
neighbor
ip-address
remote-as
autonomous-system-number
7.
neighbor
ip-address
ebgp-multihop
ttl
8.
neighbor
ip-address
fall-over
bfd
[multi-hop|single-hop] [check-control-plane-failure]
[ strict-mode]
9.
end
DETAILED STEPS
Configuration Examples for BFD - BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
Example: Configuring BFD—BGP Multihop Client Support, cBit (IPv4/IPv6), and Strict Mode
R1 e0/0 ---------------e0/0 R2 Router 1 configuration hostname R1 ! bfd map ipv4 2.2.2.2/32 1.1.1.1/32 mh1 ! bfd-template multi-hop mh1 interval min-tx 50 min-rx 50 multiplier 3 ! interface Loopback1 ip address 1.1.1.1 255.255.255.255 ip ospf 1 area 0 ! interface Ethernet0/0 ip address 10.0.0.1 255.255.255.0 ip ospf 1 area 0 ! router ospf 1 ! router bgp 1 neighbor 2.2.2.2 remote-as 1 neighbor 2.2.2.2 update-source Loopback1 neighbor 2.2.2.2 fall-over bfd multi-hop check-control-plane-failure strict-mode ! address-family ipv4 neighbor 2.2.2.2 activate exit-address-family ! Router 2 configuration: hostname R2 ! bfd map ipv4 1.1.1.1/32 2.2.2.2/32 mh1 bfd-template multi-hop mh1 interval min-tx 50 min-rx 50 multiplier 3 ! interface Loopback1 ip address 2.2.2.2 255.255.255.255 ip ospf 1 area 0 ! interface Ethernet0/0 ip address 10.0.0.2 255.255.255.0 ip ospf 1 area 0 ! router ospf 1 ! router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 update-source Loopback1 neighbor 1.1.1.1 fall-over bfd multi-hop check-control-plane-failure strict-mode ! address-family ipv4 neighbor 1.1.1.1 activate exit-address-family !
Verifying BFD—BGP Multihop Client Support, cBit (IPv4 and IPv6), and Strict Mode
The following examples show how to verify if BFD is enabled on the neighbor, peer-group.
R801-ASBR#sh ip bgp neighbor 11.1.0.2 BGP neighbor is 11.1.0.2, remote AS 65000, external link Fall over configured for session BFD is configured. BFD peer is Up. Using BFD to detect fast fallover (single-hop) in strict-mode. BGP version 4, remote router ID 10.10.10.10 BGP state = Established, up for 00:04:12 Last read 00:00:49, last write 00:00:24, hold time is 180, keepalive interval is 60 seconds …
If BFD is up and running, the following is displayed:
Fall over configured for session BFD is configured. BFD peer is Up. Using BFD to detect fast fallover (single-hop) in strict-mode (will be verified). …
If BFD is not up and running, the following is displayed:
Fall over configured for session BFD is configured. BFD peer is Down. Using BFD to detect fast fallover (single-hop) in strict-mode.
Additional References
Related Documents
Related Topic |
Document Title |
---|---|
Cisco IOS commands |
|
BGP commands |
Technical Assistance
Description |
Link |
---|---|
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. |
Feature Information for BFD—BGP Multihop Client Support, cBit (IPv4/IPv6), and Strict Mode
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Feature Name |
Releases |
Feature Information |
---|---|---|
BFD—BGP Multihop Client Support and cBit (IPv4/IPv6) |
15.2(4)S Cisco IOS XE Release 3.6S Cisco IOS XE Release 3.7S |
The BFD—BGP Multihop Client Support feature enables Border Gateway Protocol (BGP) to use multihop Bidirectional Forwarding Detection (BFD) support, which improves BGP convergence as BFD detection and failure times are faster than the Interior Gateway Protocol (IGP) convergence times in most of network topologies. The BFD—BGP cBIT feature allows BGP to determine if BFD failure is dependent or independent of the Control Plane. This allows BGP greater flexibility in handling BFD down events. In Cisco IOS XE Release 3.7S, support was added for the Cisco ASR 903 router. The following commands were modified: neighbor fall-over and show ip bgp neighbors. |
BFD—BGP Multihop Client Support, cBit (IPv4/IPv6), and Strict Mode |
Cisco IOS XE Release 3.17S |
In Cisco IOS XE Release 3.17S, the following command was modified: neighbor ip-address fall-over bfd [multi-hop|single-hop] [check-control-plane-failure] [ strict-mode] . |