PIM fast reroute (FRR) is a multicast traffic protection mechanism that allows PIM-SM/PIM-SSM-capable devices to set up both primary and backup shortest path trees (SPTs) for multicast receivers. PIM FRR enables a device to switch traffic to the backup SPT within 50 ms after the primary link or a node on the primary link fails, thus minimizing multicast traffic loss.
SPT setup relies on unicast routes. If a link or node failure occurs, a new SPT can be set up only after unicast routes are converged. This process is time-consuming and may cause severe multicast traffic loss.
PIM FRR resolves these issues. It allows a device to search for a backup FRR route based on unicast routing information and send the PIM Join message of a multicast receiver along both the primary and backup routes, setting both primary and backup SPTs. The cross node of the primary and backup links can receive one copy of a multicast flow from each of the links. Each device's forwarding plane permits the multicast traffic on the primary link and discards that on the backup link. However, the forwarding plane starts permitting multicast traffic on the backup link as soon as the primary link fails, thus minimizing traffic loss.
PIM FRR supports fast SPT switchovers only in IPv4 PIM-SSM or PIM-SM. In extranet scenarios, PIM FRR supports only source VPN, not receiver VPN entries.
PIM FRR implementation involves three steps:
Setup of primary and backup SPTs for a multicast receiver
Each PIM-SM/PIM-SSM device adds the inbound interface information to the (S, G) entry of the receiver, and then searches for a backup FRR route based on unicast routing information. After a backup FRR route is discovered, each device adds the backup route's inbound interface information to the (S, G) entry so that two routes become available from the source to the multicast group requested by the receiver. Each device then sends a PIM Join message along both the primary and backup routes to set up two SPTs. Figure 1 shows the process of setting up two SPTs for a multicast receiver.
Fault detection and traffic protection
After the primary and backup SPTs are set up, each multicast device on the primary link receives two copies of a multicast flow. Their forwarding planes permit the multicast traffic on the primary link and discard that on the backup link. If the primary link or a node on the primary link fails, the forwarding plane starts permitting the traffic on the backup link as soon as it detects the failure. Table 1 describes PIM FRR implementation before and after link or node failure occurs.
Failure Type |
Before a Failure Occurs |
After a Failure Occurs |
---|---|---|
Local primary link |
In Figure 2, DeviceA permits the multicast traffic on the primary link and discards that on the backup link. |
In Figure 3, DeviceA permits the multicast traffic on the backup link (DeviceB -> DeviceD -> DeviceA) immediately after the local primary link fails. |
Node |
In Figure 4, DeviceA permits the multicast traffic on the primary link and discards that on the backup link. |
In Figure 5, DeviceA permits the multicast traffic on the backup link (DeviceC -> DeviceD -> DeviceA) immediately after DeviceB fails on the primary link. |
Remote primary link |
In Figure 6, DeviceA permits the multicast traffic on the primary link and discards that on the backup link. |
In Figure 7, DeviceA permits the multicast traffic on the backup link (DeviceC -> DeviceD -> DeviceA) immediately after Device A detects the remote primary link failure. |
Traffic switchback
After the link or node failure is resolved, PIM detects a route change at the protocol layer, starts route switchback, and then smoothly switches traffic back to the primary link.
PIM FRR relies on IGP FRR to compute both primary and backup routes. However, a live network may encounter backup route computation failures on some nodes due to the increase of network nodes. Therefore, if IGP FRR cannot fulfill route computation independently on a network, deploy IP FRR to work jointly with IGP FRR. The following example uses a ring network.
In a PIM FRR scenario on a non-ECMP network, the devices between the multicast source and receivers must be Huawei devices with PIM FRR configured.
On the ring network shown in Figure 8, DeviceC connects to a multicast receiver. The primarily multicast traffic link for this receiver is DeviceC -> DeviceB -> DeviceA. To compute a backup route for the link DeviceD -> DeviceC, IGP FRR requires that the cost of link DeviceD -> DeviceA be less than the cost of link Device C-> DeviceA plus the cost of link DeviceD -> DeviceC. That is, the cost of link DeviceD -> DeviceE -> DeviceF -> DeviceA must be less than the cost of link DeviceC -> DeviceA plus the cost of link DeviceD -> DeviceC. This ring network does not meet this requirement; therefore, IGP FRR cannot compute a backup route for link DeviceD -> DeviceC.
Before a link or node failure occurs, DeviceC permits the multicast traffic on the primary link and discards that on the backup link. After a link or node failure (between DeviceB and DeviceC for example) occurs, DeviceC permits the multicast traffic on the backup link immediately after detecting the failure.
PIM FRR helps improve the reliability of multicast services and minimize service loss for users.
PIM FRR has the following limitations: