Configuring BFD for LDP LSPs

You can configure Bidirectional Forwarding Detection (BFD) for LDP LSPs. The BFD protocol is a simple hello mechanism that detects failures in a network. Hello packets are sent at a specified, regular interval. A neighbor failure is detected when the router stops receiving a reply after a specified interval. BFD works with a wide variety of network environments and topologies. The failure detection timers for BFD have shorter time limits than the failure detection mechanisms of static routes, providing faster detection.

An error is logged whenever a BFD session for a path fails. The following shows how BFD for LDP LSP log messages might appear:

RPD_LDP_BFD_UP: LDP BFD session for FEC  10.255.16.14/32 is up
RPD_LDP_BFD_DOWN: LDP BFD session for FEC  10.255.16.14/32 is down

You can also configure BFD for RSVP LSPs, as described in Configuring BFD for MPLS IPv4 LSPs.

To enable BFD for LDP LSPs, include the oam and bfd-liveness-detection statements:

oam {bfd-liveness-detection {detection-time threshold milliseconds;ecmp;failure-action {remove-nexthop;remove-route;}holddown-interval seconds;ingress-policy ingress-policy-name;minimum-interval milliseconds;minimum-receive-interval milliseconds;minimum-transmit-interval milliseconds;multiplier detection-time-multiplier;no-adaptation;transmit-interval {minimum-interval milliseconds;threshold milliseconds;}}fec fec-address;lsp-ping-interval seconds;periodic-traceroute {disable;exp exp-value;fanout fanout-value;frequency minutes;paths number-of-paths;retries retry-attempts;source address;ttl ttl-value;wait seconds;}}

You can enable BFD for the LDP LSPs associated with a specific forwarding equivalence class (FEC) by configuring the FEC address using the fec option at the [edit protocols ldp] hierarchy level. Alternatively, you can configure an Operation Administration and Management (OAM) ingress policy to enable BFD on a range of FEC addresses. For more information, see Configuring OAM Ingress Policies for LDP.

You cannot enable BFD LDP LSPs unless their equivalent FEC addresses are explicitly configured or OAM is enabled on the FECs using an OAM ingress policy. If BFD is not enabled for any FEC addresses, the BFD session will not come up.

You can configure the oam statement at the following hierarchy levels:

The oam statement includes the following options:

The bfd-liveness-detection statement includes the following options: