Example: Configuring the PIM SPT Threshold Policy

This example shows how to apply a policy that suppresses the transition from the rendezvous-point tree (RPT) rooted at the RP to the shortest-path tree (SPT) rooted at the source.

Requirements

Before you begin:

Overview

Multicast routing devices running PIM sparse mode can forward the same stream of multicast packets onto the same LAN through an RPT rooted at the RP or through an SPT rooted at the source. In some cases, the last-hop routing device needs to stay on the shared RPT to the RP and not transition to a direct SPT to the source. Receiving the multicast data traffic on SPT is optimal but introduces more state in the network, which might not be desirable in some multicast deployments. Ideally, low-bandwidth multicast streams can be forwarded on the SPT, and high-bandwidth streams can use the SPT. This examples shows how to configure such a policy.

This example includes the following settings:

Several points are important when configuring the SPT threshold policy.

Configuration changes to the SPT threshold policy affect how the routing device handles the SPT transition:

Configuration

CLI Quick Configuration

To quickly configure an SPT threshold policy, copy the following commands and paste them into the CLI.

[edit]set policy-options policy-statement spt-infinity-policy term one from route-filter 224.1.1.1/32 exact set policy-options policy-statement spt-infinity-policy term one from source-address-filter 10.10.10.1/32 exact set policy-options policy-statement spt-infinity-policy term one then accept set policy-options policy-statement spt-infinity-policy term two then reject set protocols pim spt-threshold infinity spt-infinity-policy

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Modification of the Junos OS Configuration in Junos OS CLI, Release 10.3.

To configure an SPT threshold policy:

  1. Apply the policy.

    [edit]user@host# edit protocols pim[edit protocols pim]user@host# set spt-threshold infinity spt-infinity-policy[edit protocols pim]user@host# exit
  2. Configure the policy.
    [edit]user@host# edit policy-options policy-statement spt-infinity-policy[edit policy-options policy-statement spt-infinity-policy]user@host# set term one from route-filter 224.1.1.1/32 exact[edit policy-options policy-statement spt-infinity-policy]user@host# set term one from source-address-filter 10.10.10.1/32 exact[edit policy-options policy-statement spt-infinity-policy]user@host# set term one then accept[edit policy-options policy-statement spt-infinity-policy]user@host# set term two then reject[edit policy-options policy-statement spt-infinity-policy]user@host# exitpolicy-statement {
  3. If you are done configuring the device, commit the configuration.

    [edit]user@host# commit
  4. Cause the configuration to take effect.

    [edit]user@host# run clear pim join

Results

Confirm your configuration by entering the show policy-options command and the show protocols command from configuration mode. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

user@host# show policy-optionspolicy-statement spt-infinity-policy {term one {from {route-filter 224.1.1.1/32 exact;source-address-filter 10.10.10.1/32 exact;}then accept;}term two {then reject;}}
user@host# show protocolspim {spt-threshold {infinity spt-infinity-policy;}}

Verification

To verify the configuration, run the show pim join command.

Related Topics