[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Detecting Peer Reachability with BFD
You can configure a Bidirectional Forwarding Detection
(BFD) session with a BGP neighbor or peer group to determine relatively
quickly whether the neighbor or peer group is reachable. For more
information on BFD, see JUNOSe IP Services Configuration Guide.
BFD is supported only for single-hop IBGP and EBGP sessions with either
IPv4 or IPv6 neighbors in the core or within a VRF. BFD is not supported
for multi-hop BGP sessions (IBGP multi-hop or EBGP multi-hop). BFD
behavior is identical for IBGP and EBGP single-hop sessions, and for
IPv4 and IPv6 neighbors.
When you configure BFD for a BGP session, the normal
BGP keepalive mechanism is not disabled. Unless you configure BGP
not to do so, BGP still sends keepalive messages and brings the BGP
session down if the holdtimer expires.
When you configure this feature, BGP requests BFD
to start a BFD protocol session as soon as the BGP session enters
the established state. BGP allows the BFD protocol session to come
up only when the source address of received BFD packets matches the
destination address of the BGP neighbor. When the BFD protocol session
comes up, BGP logs this event and reports the session in subsequent show commands. If the BFD protocol session goes down,
BGP immediately brings down the BGP session and takes all associated
actions.
Whenever a BGP session leaves the established state,
BGP requests BFD to stop the BFD protocol session. BGP also requests
BFD to bring the BFD protocol session down and inform BGP if the local
interface goes down.
To enable a BGP session to come up even if the
remote peer does not support BFD or has not been configured to use
BFD, the following behavior applies:
- The BGP session can come up when the BFD protocol session
is not yet up.
- The BGP session can stay up even when the BFD protocol
session never comes up.
You can specify a desired rate for receiving BFD
packets from the peer, transmitting them to the peer, or both, by
setting a desired time interval between the packets. The actual timer
values can be different as a result of other applications requesting
BFD protocol sessions on the same interface with different timer values,
as a result of timer value negotiation between the local and remote
BFD speakers, or both.
In the following example, the router is configured
to send BFD packets to peer 10.25.43.1 with a minimum interval of
450 milliseconds between the packets, and to accept BFD packets from
the peer only with the same minimum interval:
- host1(config)#router bgp 100
- host1(config-router)#neighbor 10.25.43.1 bfd-liveness-detection minimum-interval 450
neighbor bfd-liveness-detection
- Use to enable BGP to detect whether a neighbor is unreachable
by means of a BFD protocol session to the neighbor.
- The peers in a BGP adjacency use the configured values
to negotiate the actual transmit intervals for BFD packets.
- You can use the minimum-transmit-interval keyword to specify the interval at which the local peer proposes
to transmit BFD control packets to the remote peer. The default value
is 300 milliseconds.
- You can use the minimum-receive-interval keyword to specify the minimum interval at which the local peer
must receive BFD control packets from the remote peer. The default
value is 300 milliseconds.
- You can use the minimum-interval keyword to specify the same value for both of those intervals. Configuring
a minimum interval has the same effect as configuring the minimum
receive interval and the minimum transmit interval to the same value.
The default value is 300 milliseconds.
- You can use the multiplier keyword
to specify the detection multiplier value. The calculated BFD liveness
detection interval can be different on each peer. The multiplier value
is roughly equivalent to the number of packets that can be missed
before the BFD session is declared to be down. The default value is
3.
- For details on liveness detection negotiation, see JUNOSe IP Services Configuration Guide.
- You can change the BFD liveness detection parameters at
any time without stopping or restarting the existing session; BFD
automatically adjusts to the new parameter value. However, no changes
to BFD parameters take place until the values resynchronize with each
peer.
- If you specify a BGP peer group by using the peerGroupName argument, all the members of the peer group
inherit the characteristic configured with this command unless it
is overridden for a specific peer.
- This command takes effect immediately.
- The BGP session does not flap when you enable BFD for
a session that is already up or change the BFD timer values for an
established session.
- If you remove the BFD configuration while the BGP sessions
and the BFD protocol session are up, then the BGP session may flap
because the remote BGP speaker cannot detect why the BFD session went
down.
- Use the no version to disable
BFD liveness detection for the neighbor. Use the default version to remove the explicit configuration from the peer or peer
group and reestablish inheritance of the feature configuration.
- See neighbor bfd-liveness-detection.
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]