Example: Configuring a Multicast Flow Map

This example shows how to configure a flow map to prevent certain forwarding cache entries from aging out, thus allowing for faster failover from one source to another. Flow maps enable you to configure bandwidth variables and multicast forwarding cache timeout values for entries defined by the flow map policy.

Requirements

Before you begin:

Overview

Flow maps are typically used for fast multicast source failover when there are multiple sources for the same group. For example, when one video source is actively sending the traffic, the forwarding states for other video sources are timed out after a few minutes. Later, when a new source starts sending the traffic again, it takes time to install a new forwarding state for the new source if the forwarding state is not already there. This switchover delay is worsened when there are many video streams. Using flow maps with longer timeout values or permanent cache entries helps reduce this switchover delay.

Note: The permanent forwarding state must exist on all routing devices in the path for fast source switchover to function properly.

This example includes the following statements:

Configuration

CLI Quick Configuration

To quickly configure a flow map, copy the following commands and paste the commands into the CLI.

[edit]set policy-options prefix-list permanentEntries1 232.1.1.0/24 set policy-options policy-statement policyForFlow1 from source-address-filter 11.11.11.11/32 exact set policy-options policy-statement policyForFlow1 from prefix-list-filter permanentEntries1 orlonger set policy-options policy-statement policyForFlow1 then accept set routing-options multicast flow-map flowMap1 policy policyForFlow1 set routing-options multicast flow-map flowMap1 bandwidth 2m set routing-options multicast flow-map flowMap1 bandwidth adaptive set routing-options multicast flow-map flowMap1 redundant-sources 10.11.11.11 set routing-options multicast flow-map flowMap1 redundant-sources 10.11.11.12 set routing-options multicast flow-map flowMap1 forwarding-cache timeout never non-discard-entry-only

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 a flow map:

  1. Configure the flow map policy.

    [edit]user@host# edit policy-options[edit policy-options]user@host# set prefix-list permanentEntries1 232.1.1.0/24[edit policy-options]user@host# set policy policyForFlow1 from source-address-filter 11.11.11.11/32 exact[edit policy-options]user@host# set policy policyForFlow1 from prefix-list-filter permanentEntries1 orlonger[edit policy-options]user@host# set policy policyForFlow1 then accept
  2. Apply the flow map policy.

    [edit]user@host# edit routing-options[edit routing-options]user@host# set multicast flow-map flowMap1 policy policyForFlow1
  3. Configure permanent forwarding entries (that is, the entries never time out). Enable entries in the pruned state to time out.

    [edit]user@host# edit routing-options[edit routing-options]user@host# set multicast flow-map flowMap1 forwarding-cache timeout never non-discard-entry-only
  4. Configure the flow map bandwidth to be adaptive with a default starting bandwidth of 2 Mbps.

    [edit]user@host# edit routing-options[edit routing-options]user@host# set multicast flow-map flowMap1 bandwidth 2m adaptive
  5. Specify backup sources.

    [edit]user@host# edit routing-options[edit routing-options]user@host# set multicast flow-map flowMap1 redundant-sources [ 10.11.11.11 10.11.11.12 ]
  6. If you are done configuring the device, commit the configuration.

    [edit routing-instances]user@host# commit

Results

Confirm your configuration by entering the show policy-options and show routing-options commands.

user@host# show policy-optionsprefix-list permanentEntries1 {232.1.1.0/24;}policy-statement policyForFlow1 {from {source-address-filter 11.11.11.11/32 exact;prefix-list-filter permanentEntries1 orlonger;}then accept;}
user@host# show routing-optionsmulticast {flow-map flowMap1 {policy policyForFlow1;bandwidth 2m adaptive;redundant-sources [ 10.11.11.11 10.11.11.12 ];forwarding-cache {timeout never non-discard-entry-only;}}}

Verification

To verify the configuration, run the following commands:

Related Topics