Example: Configuring Ingress PE Redundancy

This example shows how to configure one PE as part of a backup PE group to enable ingress PE redundancy for multicast traffic streams.

Requirements

Before you begin:

Overview

This feature provides PE redundancy when P2MP LSPs are configured for multicast distribution. When P2MP LSPs are used for multicast traffic, the PE is a single point of failure. One way to provide redundancy is by broadcasting duplicate streams from multiple PEs, thus doubling the bandwidth requirements for each stream. This feature implements redundancy between two or more PEs by designating a primary and one or more backup PEs for each configured stream. The solution depends on the configuration of a full mesh of P2P LSPs between the primary and backup PEs. These LSPs are configured with Bidirectional Forwarding Detection (BFD) running on top of them. BFD is used on the backup PEs to detect failure on the primary and elect a new designated forwarder for the stream.

A full mesh is required so that each member of the group can make an independent decision about the health of the other PEs and determine the designated forwarder for the group. The key concept in a backup PE group is that of a designated PE. A designated PE is a PE which forwards data on the static route. All other PEs in the backup PE group do not forward any data on the static route. This allows you to have one designated forwarder. If the designated forwarder goes down, another PE takes over as the designated forwarder, thus allowing the traffic flow to continue uninterrupted.

Each PE in the backup PE group makes its own local decision regarding the designated forwarder. Thus there is no inter-PE communication regarding designated forwarder. A PE computes the designated forwarder based on the IP address of all PEs and the connectivity status of other PEs. Connectivity status is determined based on the state of BFD session on the P2P LSP to a PE.

A PE chosen is as the designated forwarder if it satisfies the following conditions:

Because all PEs have P2P LSPs to each other, each PE can determine the UP state of each other PE. Thus all PEs converge to the same designated forwarder.

If the designated forwarder PE goes down, then all other PEs lose connectivity with the designated forwarder, and their BFD session goes down. Consequently, other PEs then choose another designated forwarder. The new forwarder starts forwarding traffic. Thus, the traffic loss is limited to the failure detection time, which is the BFD session detection time.

When a PE that was the designated forwarder goes down and then comes back up, all other PEs recognize this fact, rerun the designated forwarder algorithm, and choose the PE as the designated forwarder. Consequently, the backup designated forwarder stops forwarding traffic. Thus, traffic switches back to the most eligible designated forwarder.

This example includes the following statements:

Configuration

CLI Quick Configuration

To quickly configure ingress PE redundancy, copy the following commands into a text file, remove any line breaks, and then paste the commands into the CLI.

[edit]set policy-options policy-statement no-rpf from route-filter 225.1.1.1/32 exact set policy-options policy-statement no-rpf then reject set protocols mpls label-switched-path backup_PE1 to 10.255.16.61 set protocols mpls label-switched-path backup_PE1 oam bfd-liveness-detection minimum-interval 500 set protocols mpls label-switched-path backup_PE1 oam bfd-liveness-detection multiplier 3 set protocols mpls label-switched-path backup_PE1 associate-backup-pe-groups set protocols mpls label-switched-path dest1 to 10.255.16.57 set protocols mpls label-switched-path dest1 p2mp p2mp-lsp set protocols mpls label-switched-path dest2 to 10.255.16.55 set protocols mpls label-switched-path dest2 p2mp p2mp-lsp set protocols mpls interface all set protocols mpls interface fxp0.0 disable set routing-options static route 1.1.1.1/32 p2mp-lsp-next-hop p2mp-lsp set routing-options static route 1.1.1.1/32 backup-pe-group g1 set routing-options static route 225.1.1.1/32 p2mp-lsp-next-hop p2mp-lsp set routing-options static route 225.1.1.1/32 backup-pe-group g1 set routing-options multicast rpf-check-policy no-rpf set routing-options multicast interface fe-1/3/3.0 enable set routing-options multicast backup-pe-group g1 backups 10.255.16.61 set routing-options multicast backup-pe-group g1 local-address 10.255.16.59

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 ingress PE redundancy:

  1. Configure the multicast settings.

    [edit]user@host# edit routing-options multicast[edit routing-options multicast]user@host# set rpf-check-policy no-rpf[edit routing-options multicast]user@host# set interface fe-1/3/3.0 enable
  2. Configure the RPF policy.

    [edit]user@host# edit policy-options policy-statement no-rpf[edit policy-options policy-statement no-rpf]user@host# set from route-filter 225.1.1.1/32 exact[edit policy-options policy-statement no-rpf]user@host# set then reject[edit policy-options policy-statement no-rpf]user@host# exit
  3. Configure the backup PE group.

    [edit routing-options multicast]user@host# set backup-pe-group g1 backups 10.255.16.61[edit routing-options multicast]user@host# set backup-pe-group g1 local-address 10.255.16.59[edit routing-options multicast]user@host# exit
  4. Configure the static routes for the P2MP LSPs backup PE group.

    [edit]user@host# edit routing-options static[edit routing-options static]user@host# set route 1.1.1.1/32 p2mp-lsp-next-hop p2mp-lsp[edit routing-options static]user@host# set route 1.1.1.1/32 backup-pe-group g1[edit routing-options static]user@host# set route 225.1.1.1/32 p2mp-lsp-next-hop p2mp-lsp[edit routing-options static]user@host# set route 225.1.1.1/32 backup-pe-group g1[edit routing-options static]user@host# exit
  5. Configure the MPLS interfaces.

    [edit]user@host# edit protocols mpls[edit protocols mpls]user@host# set interface all [edit protocols mpls]user@host# set interface fxp0.0 disable
  6. Configure the LSP to the redundant router.

    [edit protocols mpls]user@host# set label-switched-path backup_PE1 to 10.255.16.61[edit protocols mpls]user@host# set label-switched-path backup_PE1 oam bfd-liveness-detection minimum-interval 500[edit protocols mpls]user@host# set label-switched-path backup_PE1 oam bfd-liveness-detection multiplier 3[edit protocols mpls]user@host# set label-switched-path backup_PE1 associate-backup-pe-groups
  7. Configure LSPs to two traffic destinations.

    [edit protocols mpls]user@host# set label-switched-path dest1 to 10.255.16.57[edit protocols mpls]user@host# set label-switched-path dest1 p2mp p2mp-lsp[edit protocols mpls]user@host# set label-switched-path dest2 to 10.255.16.55[edit protocols mpls]user@host# set label-switched-path dest2 p2mp p2mp-lsp[edit protocols mpls]user@host# exit
  8. If you are done configuring the device, commit the configuration.

    [edit protocols mpls]user@host# commit

Results

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

user@host# show policypolicy-statement no-rpf {from {route-filter 225.1.1.1/32 exact;}then reject;}
user@host# show protocolsmpls {label-switched-path backup_PE1 {to 10.255.16.61;oam {bfd-liveness-detection {minimum-interval 500;multiplier 3;}}associate-backup-pe-groups;}label-switched-path dest1 {to 10.255.16.57;p2mp p2mp-lsp;}label-switched-path dest2 {to 10.255.16.55;p2mp p2mp-lsp;}interface all;interface fxp0.0 {disable;}}
user@host# show routing-optionsstatic {route 1.1.1.1/32 {p2mp-lsp-next-hop p2mp-lsp;backup-pe-group g1;}route 225.1.1.1/32 {p2mp-lsp-next-hop p2mp-lsp;backup-pe-group g1;}}multicast {rpf-check-policy no-rpf;interface fe-1/3/3.0 enable;backup-pe-group g1 {backups 10.255.16.61;local-address 10.255.16.59;}}

Verification

To verify the configuration, run the following commands: command.

Related Topics