Related Documentation
- ACX, M, MX, T Series
- Configuring BFD for LDP LSPs
- ACX, M, MX, PTX, T Series
- Configuring Link Protection on Interfaces Used by LSPs
- Configuring Fast Reroute
- ACX, M, PTX, T Series
- Configuring Graceful Restart for Point-to-Multipoint LSPs
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- graceful-restart (Protocols OSPF)
BFD-Triggered Local Repair for Rapid Convergence
Understanding BFD-Triggered Local Protection
The time it takes for a network to converge following a link or node failure can vary dramatically based on a number of factors, including network size, the protocols used, and network design. However, while each particular convergence event is different, the process of convergence is essentially consistent. The failure is detected, the failure is reported (flooded) in the network, an alternate path is found for traffic, and the forwarding plane is updated to pass traffic on a new path.
This overview discusses how Bidirectional Forwarding Detection (BFD)-triggered local repair contributes to a quicker restoration time for rapid convergence in an MPLS network.
Purpose of BFD-Triggered Local Repair
In Junos OS, general MPLS traffic protection for RSVP-signaled label-switched path (LSP) failures is provided by several complementary mechanisms. These protection mechanisms include local protection (fast reroute, link protection, and node-link protection) and path protection (primary and secondary paths). Local protection in conjunction with path protection can provide minimum packet loss for an LSP, and control the way the LSP is rerouted after a failure. Traditionally, both types of protection rely on fast detection of connectivity failure at the physical level. However, for transmission media without fast physical level detection, Junos OS supports BFD and MPLS ping for fast failure detection.
With links between routers, when a route goes down, the routing protocol process recalculates the next best path. When MPLS fast reroute (FRR) is enabled, ifl messages are flooded to all Flexible PIC Concentrators (FPCs). The edge FPC enables the bypass MPLS LSP tunnel. Lastly, all routes are repaired and sent through the bypass MPLS LSP tunnel. The amount of time it takes to repair all routes is proportional to the number of routes.
This repair scenario becomes more difficult when a switch lies between two links. See Figure 1.
Figure 1: Topology with BFD-Triggered Local Repair

When a link goes down at the remote end, the failure is not detected at the local end until the interior gateway protocol (IGP) goes down. To wait for the routing protocol process to recalculate the next best path takes too much time.
With BFD-triggered local repair enabled, the Packet Forwarding Engine completes the repair first, using the bypass MPLS LSP tunnel (that is preconfigured and installed), then informs the routing protocol process to recalculate a new route. By doing this, when the primary MPLS LSP tunnel goes down, the FPC can intermittently and immediately divert traffic to the FPC with the bypass MPLS LSP tunnel.
Using local repair in this way achieves a faster restoration time of less than 50 ms.
Configuring BFD-Triggered Local Repair
BFD-triggered local repair is not configurable, but is part of the default configuration.
BFD-triggered local repair works within the legacy Junos OS features MPLS-FRR, BFD for IGP, and loop-free alternates (LFAs).
Disabling BFD-Triggered Local Repair
By default, BFD-triggered local repair is enabled for all routing interfaces. If desired, you can disable BFD-triggered local repair at the [edit routing-options] hierarchy level.
Disabling BFD-Triggered Local Repair
To explicitly disable BFD-triggered local repair:
- Include the no-bfd-triggered-local-repair statement
at the [edit routing-options] hierarchy level:
user@host# set no-bfd-triggered-local-repair
- (Optional) Verify your configuration settings before committing
them by using the show routing-options command.
user@host# run show routing-options
Confirm your configuration by issuing the show routing-options command.
![]() | Note: When you disable this feature, you must also restart routing by including the graceful-restart statement for the IGP. For example, for OSPF, this is accomplished by including the graceful-restart statement at the [edit protocols ospf] hierarchy level. |
Related Documentation
- ACX, M, MX, T Series
- Configuring BFD for LDP LSPs
- ACX, M, MX, PTX, T Series
- Configuring Link Protection on Interfaces Used by LSPs
- Configuring Fast Reroute
- ACX, M, PTX, T Series
- Configuring Graceful Restart for Point-to-Multipoint LSPs
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- graceful-restart (Protocols OSPF)
Published: 2012-11-29
Related Documentation
- ACX, M, MX, T Series
- Configuring BFD for LDP LSPs
- ACX, M, MX, PTX, T Series
- Configuring Link Protection on Interfaces Used by LSPs
- Configuring Fast Reroute
- ACX, M, PTX, T Series
- Configuring Graceful Restart for Point-to-Multipoint LSPs
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- graceful-restart (Protocols OSPF)