Example: Configuring Data MDTs and Provider Tunnels Operating in Any-Source Multicast Mode

This example shows how to configure data multicast distribution trees (MDTs) in a Draft Rosen Layer 3 VPN operating in any-source multicast mode. This example is based on the Junos implementation of RFC 4364, BGP/MPLS IP Virtual Private Networks (VPNs) and based on Section Two of the IETF Internet draft draft-rosen-vpn-mcast-06.txt, Multicast in MPLS/BGP VPNs (expires April 2004).

Requirements

Before you begin:

Overview

By using data multicast distribution trees (MDTs) in a Layer 3 VPN, you can prevent multicast packets from being flooded unnecessarily to specified provider edge (PE) routers within a VPN group. This option is primarily useful for PE routers in your Layer 3 VPN multicast network that have no receivers for the multicast traffic from a particular source.

When a PE router that is directly connected to the multicast source (also called the source PE) receives Layer 3 VPN multicast traffic that exceeds a configured threshold, a new data MDT tunnel is established between the PE router connected to the source site and its remote PE router neighbors.

The source PE advertises the new data MDT group as long as the source is active. The periodic announcement is sent over the default MDT for the VRF. Because the data MDT announcement is sent over the default tunnel, all the PE routers receive the announcement. Neighbors that do not have receivers for the multicast traffic ignore the new tunnel. Conversely, neighbors that do have receivers for the multicast traffic send a PIM join message for the new group. The source PE encapsulates the VRF multicast traffic using the new data MDT group and stops the packet flow over the default multicast tree. If the multicast traffic level drops back below the threshold, the data MDT is torn down automatically and traffic flows back across the default multicast tree.

By default, automatic creation of data MDTs is disabled.

Because data MDTs apply to VPNs and VRF routing instances, you cannot configure MDT statements in the master routing instance.

This example includes the following configuration options:

Figure 51 shows a default MDT.

Figure 51: Default MDT

Image g040607.gif

Figure 52 shows a data MDT.

Figure 52: Data MDT

Image g040608.gif

Configuration

CLI Quick Configuration

To quickly configure data MDTs and provider tunnels, copy the following commands into a text file, remove any line breaks, and then paste the commands into the CLI.

[edit]set routing-instances vpn-A pim mdt group-range 227.0.0.0/8set routing-instances vpn-A pim mdt threshold group 224.4.4.4/32 source 10.10.20.43/32 rate 10set routing-instances vpn-A pim mdt tunnel-limit 10

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 data MDTs:

  1. Configure the group range.

    [edit]user@host# edit routing-instances vpn-A pimmdt[edit routing-instances vpn-A pim mdt]user@host# set group-range 227.0.0.0/8
  2. Configure a data MDT-creation threshold for a multicast group and source.

    [edit routing-instances vpn-A pim mdt]user@host# set threshold group 224.4.4.4 source 10.10.20.43 rate 10
  3. Configure a tunnel limit.
    [edit routing-instances vpn-A pim mdt]user@host# set tunnel-limit 10
  4. If you are done configuring the device, commit the configuration.

    [edit routing-instances vpn-A pim mdt]user@host# commit

Verification

You can monitor the operation of data MDTs by running the show pim mdt command. This command displays either the outgoing tunnels (the tunnels initiated by the local PE router), the incoming tunnels (tunnels initiated by the remote PE routers), or both.

You can trace the operation of data MDTs by including the mdt detail flag in the [edit protocols pim traceoptions] configuration. When this flag is set, all the mt interface-related activity is logged in trace files.

Related Topics