Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring PIM Make-Before-Break Join Load Balancing

Understanding the PIM Automatic Make-Before-Break Join Load-Balancing Feature

The PIM automatic make-before-break (MBB) join load-balancing feature introduces redistribution of PIM joins on equal-cost multipath (ECMP) links, with minimal disruption of traffic, when an interface is added to an ECMP path.

The existing PIM join load-balancing feature enables distribution of joins across ECMP links. In case of a link failure, the joins are redistributed among the remaining ECMP links, and traffic is lost. The addition of an interface causes no change to this distribution of joins unless the clear pim join-distribution command is used to load-balance the existing joins to the new interface. If the PIM automatic MBB join load-balancing feature is configured, this process takes place automatically.

The feature can be enabled by using the automatic statement at the [edit protocols pim join-load-balance] hierarchy level. When a new neighbor is available, the time taken to create a path to the neighbor (standby path) can be configured by using the standby-path-creation-delay seconds statement at the [edit protocols pim] hierarchy level. In the absence of this statement, the standby path is created immediately, and the joins are redistributed as soon as the new neighbor is added to the network. For a join to be moved to the standby path in the absence of traffic, the idle-standby-path-switchover-delay seconds statement is configured at the [edit protocols pim] hierarchy level. In the absence of this statement, the join is not moved until traffic is received on the standby path.

Example: Configuring PIM Make-Before-Break Join Load Balancing

This example shows how to configure the PIM make-before-break (MBB) join load-balancing feature.

Requirements

This example uses the following hardware and software components:

  • Three routers that can be a combination of M Series Multiservice Edge Routers (M120 and M320 only), MX Series 5G Universal Routing Platforms, or T Series Core Routers (TX Matrix and TX Matrix Plus only).

  • Junos OS Release 12.2 or later.

Before you configure the MBB feature, be sure you have:

  • Configured the device interfaces.

  • Configured an interior gateway protocol (IGP) for both IPv4 and IPv6 routes on the devices (for example, OSPF and OSPFv3).

  • Configured multiple ECMP interfaces (logical tunnels) using VLANs on any two routers (for example, Routers R1 and R2).

Overview

Junos OS provides a PIM automatic MBB join load-balancing feature to ensure that PIM joins are evenly redistributed to all upstream PIM neighbors on an equal-cost multipath (ECMP) path. When an interface is added to an ECMP path, MBB provides a switchover to an alternate path with minimal traffic disruption.

Topology

In this example, three routers are connected in a linear manner between source and receiver. An IGP protocol and PIM sparse mode are configured on all three routers. The source is connected to Router R0, and five interfaces are configured between Routers R1 and R2. The receiver is connected to Router R2, and PIM automatic MBB join load balancing is configured on Router R2.

Figure 1 shows the topology used in this example.

Figure 1: Configuring PIM Automatic MBB Join Load BalancingConfiguring PIM Automatic MBB Join Load Balancing

Configuration

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

Router R0 (Source)

Router R1 (RP)

Router R2 (Receiver)

Configuring PIM MBB Join Load Balancing

Step-by-Step Procedure

The following example requires that you navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide.

To configure PIM MBB join load balancing across the setup:

  1. Configure PIM sparse mode on all three routers.

  2. Configure Router R1 as the RP.

  3. Configure the RP static address on non-RP routers (R0 and R2).

  4. Configure the Multicast Listener Discovery (MLD) group for ECMP interfaces on Router R2.

  5. Configure the PIM MBB join load-balancing feature on the receiver router (Router R2).

Results

From configuration mode, confirm your configuration by entering the show protocols command. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

Verification

Verifying Interface Configuration

Purpose

Verify that the configured interfaces are functional.

Action

Send 100 (S,G) joins from the receiver to Router R2 . From the operational mode of Router R2, run the show pim interfaces command.

The output lists all the interfaces configured for use with the PIM protocol. The Stat field indicates the current status of the interface. The DR address field lists the configured IP addresses. All the interfaces are operational. If the output does not indicate that the interfaces are operational, reconfigure the interfaces before proceeding.

Meaning

All the configured interfaces are functional in the network.

Verifying PIM

Purpose

Verify that PIM is operational in the configured network.

Action

From operational mode, enter the show pim statistics command.

The V2 Hello field lists the number of PIM hello messages sent and received. The V2 Join Prune field lists the number of join messages sent before the join-prune-timeout value is reached. If both values are nonzero, PIM is functional.

Meaning

PIM is operational in the network.

Verifying the PIM Automatic MBB Join Load-Balancing Feature

Purpose

Verify that the PIM automatic MBB join load-balancing feature works as configured.

Action

To see the effect of the MBB feature on Router R2:

  1. Run the show pim interfaces operational mode command before disabling an interface.

    The JoinCnt(sg/*g) field shows that the 100 joins are equally distributed among the five interfaces.

  2. Disable the ge-1/0/7.5 interface.

  3. Run the show pim interfaces command to check if load balancing of joins is taking place.

    The JoinCnt(sg/*g) field shows that the 100 joins are equally redistributed among the four active interfaces.

  4. Add the removed interface on Router R2.

  5. Run the show pim interfaces command to check if load balancing of joins is taking place after enabling the inactive interface.

    The JoinCnt(sg/*g) field shows that the 100 joins are equally distributed among the five interfaces.

    Note:

    This output should resemble the output in Step 1.

Meaning

The PIM automatic MBB join load-balancing feature works as configured.