configuration guide - ip multicast

345
HUAWEI NetEngine5000E Core Router V800R002C01 Configuration Guide - IP Multicast Issue 01 Date 2011-10-15 HUAWEI TECHNOLOGIES CO., LTD.

Upload: others

Post on 12-Sep-2021

35 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Configuration Guide - IP Multicast

HUAWEI NetEngine5000E Core RouterV800R002C01

Configuration Guide - IP Multicast

Issue 01

Date 2011-10-15

HUAWEI TECHNOLOGIES CO., LTD.

Page 2: Configuration Guide - IP Multicast

Copyright © Huawei Technologies Co., Ltd. 2011. All rights reserved.No part of this document may be reproduced or transmitted in any form or by any means without prior writtenconsent of Huawei Technologies Co., Ltd. Trademarks and Permissions

and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.All other trademarks and trade names mentioned in this document are the property of their respective holders. NoticeThe purchased products, services and features are stipulated by the contract made between Huawei and thecustomer. All or part of the products, services and features described in this document may not be within thepurchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information,and recommendations in this document are provided "AS IS" without warranties, guarantees or representationsof any kind, either express or implied.

The information in this document is subject to change without notice. Every effort has been made in thepreparation of this document to ensure accuracy of the contents, but all statements, information, andrecommendations in this document do not constitute the warranty of any kind, express or implied.

Huawei Technologies Co., Ltd.Address: Huawei Industrial Base

Bantian, LonggangShenzhen 518129People's Republic of China

Website: http://www.huawei.com

Email: [email protected]

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

i

Page 3: Configuration Guide - IP Multicast

About This Document

Intended AudienceThis document provides the basic concepts, configuration procedures, and configurationexamples in different application scenarios of the IP Multicast feature supported by theNE5000E device.

This document describes how to configure the Basic Configurations feature.

This document is intended for:

l Data configuration engineersl Commissioning engineersl Network monitoring engineersl System maintenance engineers

Related Versions (Optional)The following table lists the product versions related to this document.

Product Name Version

HUAWEI NetEngine5000ECore Router

V800R002C01

Symbol ConventionsThe symbols that may be found in this document are defined as follows.

Symbol Description

Indicates a hazard with a high level of risk, which if notavoided, will result in death or serious injury.

Indicates a hazard with a medium or low level of risk, whichif not avoided, could result in minor or moderate injury.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast About This Document

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

ii

Page 4: Configuration Guide - IP Multicast

Symbol Description

Indicates a potentially hazardous situation, which if notavoided, could result in equipment damage, data loss,performance degradation, or unexpected results.

Indicates a tip that may help you solve a problem or save time.

Provides additional information to emphasize or supplementimportant points of the main text.

Command Conventions (Optional)The command conventions that may be found in this document are defined as follows.

Convention Description

Boldface The keywords of a command line are in boldface.

Italic Command arguments are in italics.

[ ] Items (keywords or arguments) in brackets [ ] are optional.

{ x | y | ... } Optional items are grouped in braces and separated byvertical bars. One item is selected.

[ x | y | ... ] Optional items are grouped in brackets and separated byvertical bars. One item is selected or no item is selected.

{ x | y | ... }* Optional items are grouped in braces and separated byvertical bars. A minimum of one item or a maximum of allitems can be selected.

[ x | y | ... ]* Optional items are grouped in brackets and separated byvertical bars. Several items or no item can be selected.

&<1-n> The parameter before the & sign can be repeated 1 to n times.

# A line starting with the # sign is comments.

Change HistoryUpdates between document issues are cumulative. Therefore, the latest document issue containsall updates made in previous issues.

Changes in Issue 01 (2011-10-15)

The initial commercial release.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast About This Document

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

iii

Page 5: Configuration Guide - IP Multicast

Contents

About This Document.....................................................................................................................ii

1 IP Multicast Configuration..........................................................................................................11.1 IP Multicast Overview........................................................................................................................................21.2 Typical Configuration Scheme...........................................................................................................................5

2 IGMP Configuration.....................................................................................................................82.1 IGMP Overview...............................................................................................................................................102.2 IGMP Features Supported by the NE5000E.....................................................................................................102.3 Configuring Basic IGMP Functions.................................................................................................................11

2.3.1 Enabling Multicast Routing.....................................................................................................................122.3.2 Enabling PIM-SM....................................................................................................................................132.3.3 Enabling IGMP........................................................................................................................................142.3.4 (Optional) Setting an IGMP Version.......................................................................................................152.3.5 (Optional) Configuring an Interface to Statically Join an IGMP Group.................................................152.3.6 (Optional) Setting the Range of Multicast Groups that an Interface Can Join........................................162.3.7 Checking the Configuration.....................................................................................................................16

2.4 Configuring IGMP SSM Mapping...................................................................................................................182.4.1 Enabling SSM Mapping..........................................................................................................................182.4.2 Configuring Static SSM Mapping...........................................................................................................192.4.3 Checking the Configuration.....................................................................................................................20

2.5 Configuring an IGMP Router-Alert Option.....................................................................................................212.5.1 Configuring a Multicast Device to Deny IGMP Packets Without Router-Alert Options.......................222.5.2 Configuring a Multicast Device to Send IGMP Packets Without Router-Alert Options........................232.5.3 Checking the Configuration.....................................................................................................................24

2.6 Configuring an IGMP Querier..........................................................................................................................252.6.1 Configuring an IGMPv1 Querier.............................................................................................................252.6.2 Configuring an IGMPv2/v3 Querier........................................................................................................272.6.3 Checking the Configuration.....................................................................................................................29

2.7 Maintaining IGMP............................................................................................................................................302.7.1 Clearing IGMP Group Information.........................................................................................................302.7.2 Monitoring the Operating Status of IGMP..............................................................................................31

2.8 Configuration Examples...................................................................................................................................312.8.1 Example for Configuring Basic IGMP Functions...................................................................................32

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast Contents

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

iv

Page 6: Configuration Guide - IP Multicast

2.8.2 Example for Configuring IGMP SSM Mapping.....................................................................................36

3 PIM Configuration......................................................................................................................433.1 PIM Overview..................................................................................................................................................453.2 PIM Features Supported by the NE5000E.......................................................................................................473.3 Configuring PIM-SM.......................................................................................................................................49

3.3.1 Enabling Multicast Routing.....................................................................................................................513.3.2 Enabling PIM-SM....................................................................................................................................523.3.3 Configuring a Static RP...........................................................................................................................533.3.4 Configuring a BSR RP............................................................................................................................543.3.5 (Optional) Setting a Multicast Source Address Range............................................................................553.3.6 (Optional) Adjusting Source Registration Parameters............................................................................563.3.7 (Optional) Configuring SPT Switchover Conditions..............................................................................583.3.8 Checking the Configuration.....................................................................................................................59

3.4 Configuring a BSR Boundary...........................................................................................................................613.5 Adjusting BSR RP Parameters.........................................................................................................................62

3.5.1 Adjusting C-RP Parameters.....................................................................................................................633.5.2 Setting a Legal C-RP Address Range......................................................................................................643.5.3 Adjusting C-BSR Parameters..................................................................................................................653.5.4 Setting a Legal BSR Address Range.......................................................................................................663.5.5 Configuring a BSR Administrative Domain...........................................................................................673.5.6 Checking the Configuration.....................................................................................................................68

3.6 Configuring PIM-SSM.....................................................................................................................................693.6.1 Enabling Multicast Routing.....................................................................................................................703.6.2 Enabling PIM-SM....................................................................................................................................713.6.3 Setting an SSM Group Address Range....................................................................................................723.6.4 (Optional) Setting a Multicast Source Address Range............................................................................733.6.5 Checking the Configuration.....................................................................................................................73

3.7 Adjusting Other PIM Parameters.....................................................................................................................753.7.1 Adjusting the Lifetime of a Source..........................................................................................................753.7.2 Adjusting Neighbor Parameters...............................................................................................................763.7.3 Adjusting DR Parameters........................................................................................................................783.7.4 Adjusting Forwarding Parameters...........................................................................................................793.7.5 Adjusting Assert Parameters...................................................................................................................823.7.6 Checking the Configuration.....................................................................................................................83

3.8 Configuring PIM BFD......................................................................................................................................853.8.1 Enabling PIM BFD..................................................................................................................................853.8.2 (Optional) Adjusting BFD Parameters....................................................................................................863.8.3 Checking the Configuration.....................................................................................................................87

3.9 Maintaining PIM...............................................................................................................................................873.9.1 Clearing Statistics of PIM Control Messages..........................................................................................873.9.2 Monitoring the Running Status of PIM...................................................................................................88

3.10 Configuration Examples.................................................................................................................................89

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast Contents

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

v

Page 7: Configuration Guide - IP Multicast

3.10.1 Example for Configuring PIM-SM Intra-domain Multicast..................................................................893.10.2 Example for Configuring a PIM-SM BSR Administrative Domain.....................................................973.10.3 Example for Configuring PIM-SM Security.......................................................................................1053.10.4 Example for Configuring SPT Switchover in a PIM-SM Domain......................................................1133.10.5 Example for Configuring PIM-SSM Multicast...................................................................................122

4 MSDP Configuration................................................................................................................1274.1 MSDP Overview.............................................................................................................................................1294.2 MSDP Features Supported by the NE5000E..................................................................................................1294.3 Configuring PIM-SM Inter-domain Multicast...............................................................................................131

4.3.1 Configuring Intra-AS MSDP Peers.......................................................................................................1324.3.2 Configuring Inter-AS MSDP Peers for BGP Peers...............................................................................1334.3.3 Configuring Inter-AS Static RPF Peers.................................................................................................1344.3.4 Checking the Configuration...................................................................................................................135

4.4 Configuring Anycast RP.................................................................................................................................1364.4.1 Configuring the RP Address on a Loopback Interface..........................................................................1374.4.2 Configuring a Loopback Interface as an RP..........................................................................................1384.4.3 Configuring MSDP Peers on RPs..........................................................................................................1394.4.4 Specifying a Logical RP Address for SA Messages..............................................................................1404.4.5 Checking the Configuration...................................................................................................................141

4.5 Controlling MSDP Peer Connections.............................................................................................................1424.5.1 Closing an MSDP Peer Connection.......................................................................................................1434.5.2 Adjusting the Interval for Retrying to Set Up an MSDP Peer Connection...........................................1434.5.3 Configuring MSDP Peer Authentication...............................................................................................1444.5.4 Checking the Configuration...................................................................................................................145

4.6 Adjusting the Parameters of SA Messages.....................................................................................................1454.6.1 Configuring an SA Cache......................................................................................................................1464.6.2 Configuring Filtering Policies for SA Messages...................................................................................1474.6.3 Checking the Configuration...................................................................................................................149

4.7 Maintaining MSDP.........................................................................................................................................1514.7.1 Clearing Statistics of MSDP Peers........................................................................................................1514.7.2 Clearing (S, G) Information from an SA Cache....................................................................................1514.7.3 Monitoring the Running Status of MSDP.............................................................................................152

4.8 Configuration Examples.................................................................................................................................1524.8.1 Example for Configuring PIM-SM Inter-domain Multicast..................................................................1524.8.2 Example for Configuring Inter-AS Multicast by Using Static RPF Peers............................................1604.8.3 Example for Configuring Anycast RP...................................................................................................165

5 MBGP Configuration................................................................................................................1725.1 MBGP Overview............................................................................................................................................1745.2 MBGP Features Supported by the NE5000E.................................................................................................1745.3 Configuring an MBGP Peer...........................................................................................................................1745.4 Configuring MBGP to Import Local Routes..................................................................................................1765.5 Controlling MBGP Route Advertisement......................................................................................................178

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast Contents

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

vi

Page 8: Configuration Guide - IP Multicast

5.5.1 Summarizing Local MBGP Routes.......................................................................................................1785.5.2 Configuring MBGP to Advertise Default Routes to Peers....................................................................1805.5.3 Configuring MBGP to Advertise the Community Attribute.................................................................1815.5.4 Checking the Configuration...................................................................................................................182

5.6 Controlling MBGP Route Selection...............................................................................................................1825.6.1 Configuring Preferences for MBGP Routes..........................................................................................1835.6.2 Setting a Preferred Value for Routes Learned from an MBGP Peer.....................................................1845.6.3 Setting the Local_Pref Attribute for MBGP Routes..............................................................................1845.6.4 Setting the MED Attribute for MBGP Routes.......................................................................................1855.6.5 Setting the Next_Hop Attribute.............................................................................................................1875.6.6 Setting the AS_Path Attribute...............................................................................................................1885.6.7 Checking the Configuration...................................................................................................................189

5.7 Configuring MBGP Routing Policies.............................................................................................................1905.7.1 Configuring a Route-policy...................................................................................................................1905.7.2 Configuring a Policy for Receiving MBGP Routes..............................................................................1915.7.3 Configuring a Policy for Advertising MBGP Routes............................................................................1935.7.4 Configuring MBGP Soft Resetting........................................................................................................1955.7.5 Checking the Configuration...................................................................................................................196

5.8 Configuring MBGP Load Balancing..............................................................................................................1975.9 Configuring MBGP Route Dampening..........................................................................................................1985.10 Configuring MBGP RRs..............................................................................................................................2005.11 Maintaining MBGP......................................................................................................................................202

5.11.1 Resetting MBGP Connections.............................................................................................................2025.11.2 Clearing MBGP Statistics....................................................................................................................202

5.12 Configuration Examples...............................................................................................................................2035.12.1 Example for Configuring Basic MBGP Functions..............................................................................203

6 IP Multicast Routing Management........................................................................................2126.1 Introduction to IP Multicast Routing Management........................................................................................2136.2 IP Multicast Routing Management Features Supported by the NE5000E.....................................................2136.3 Configuring RPF Routes................................................................................................................................214

6.3.1 Configuring Multicast Static Routes.....................................................................................................2156.3.2 Configuring Multicast Load Splitting....................................................................................................2176.3.3 Checking the Configuration...................................................................................................................218

6.4 Adjusting the Minimum TTL Value for Multicast Forwarding.....................................................................2196.5 Configuration Examples.................................................................................................................................220

6.5.1 Example for Configuring Multicast Static Routes to Change RPF Routes...........................................2206.5.2 Example for Configuring Multicast Static Routes to Connect RPF Routes..........................................2256.5.3 Example for Configuring Multicast Load Splitting...............................................................................229

7 MLD Configuration..................................................................................................................2367.1 MLD Overview...............................................................................................................................................2387.2 MLD Features Supported by the NE5000E....................................................................................................2387.3 Configuring Basic MLD Functions................................................................................................................239

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast Contents

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

vii

Page 9: Configuration Guide - IP Multicast

7.3.1 Enabling IPv6 Multicast Routing..........................................................................................................2407.3.2 Enabling IPv6 PIM-SM.........................................................................................................................2417.3.3 Enabling MLD.......................................................................................................................................2417.3.4 (Optional) Setting an MLD Version......................................................................................................2427.3.5 (Optional) Configuring an Interface to Statically Join an MLD Group................................................2427.3.6 (Optional) Setting the Range of MLD Groups that an Interface Can Join............................................2437.3.7 Checking the Configuration...................................................................................................................244

7.4 Configuring MLD SSM Mapping..................................................................................................................2457.4.1 Enabling the SSM Mapping Function...................................................................................................2467.4.2 Configuring Static SSM Mapping.........................................................................................................2467.4.3 Checking the Configuration...................................................................................................................247

7.5 Configuring an MLD Router-Alert Option....................................................................................................2497.5.1 Configuring a Multicast Device to Deny MLD Packets Without Router-Alert Options......................2497.5.2 Configuring a Multicast Device to Send MLD Packets Without Router-Alert Options.......................2507.5.3 Checking the Configuration...................................................................................................................251

7.6 Configuring an MLD Querier.........................................................................................................................2527.7 Maintaining MLD...........................................................................................................................................256

7.7.1 Clearing MLD Group Information........................................................................................................2567.7.2 Monitoring the Operating Status of MLD.............................................................................................256

7.8 Configuration Examples.................................................................................................................................2577.8.1 Example for Configuring Basic MLD Functions..................................................................................2577.8.2 Example for Configuring MLD SSM Mapping....................................................................................262

8 IPv6 PIM Configuration...........................................................................................................2698.1 IPv6 PIM Overview........................................................................................................................................2718.2 IPv6 PIM Features Supported by the NE5000E.............................................................................................2728.3 Configuring IPv6 PIM-SM.............................................................................................................................274

8.3.1 Enabling IPv6 Multicast Routing..........................................................................................................2758.3.2 Enabling IPv6 PIM-SM.........................................................................................................................2768.3.3 Configuring an Embedded-RP...............................................................................................................2778.3.4 Configuring a Static RP.........................................................................................................................2778.3.5 Configuring a BSR RP..........................................................................................................................2788.3.6 (Optional) Limiting the Range of Multicast Source Addresses............................................................2808.3.7 (Optional) Adjusting Control Parameters for Source Registration.......................................................2808.3.8 (Optional) Configuring SPT Switchover Conditions............................................................................2828.3.9 Checking the Configuration...................................................................................................................283

8.4 Configuring a BSR Boundary (IPv6).............................................................................................................2858.5 Adjusting Dynamic RP Parameters (IPv6).....................................................................................................286

8.5.1 Adjusting C-RP Parameters...................................................................................................................2878.5.2 Setting the Range of Valid C-RP Addresses.........................................................................................2888.5.3 Adjusting C-BSR Parameters................................................................................................................2898.5.4 Setting the Range of Valid BSR Addresses...........................................................................................2908.5.5 Checking the Configuration...................................................................................................................291

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast Contents

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

viii

Page 10: Configuration Guide - IP Multicast

8.6 Configuring IPv6 PIM-SSM...........................................................................................................................2928.6.1 Enabling IPv6 Multicast Routing..........................................................................................................2938.6.2 Enabling IPv6 PIM-SM.........................................................................................................................2948.6.3 Setting an SSM Group Address Range..................................................................................................2948.6.4 (Optional) Limiting the Range of Multicast Source Addresses............................................................2958.6.5 Checking the Configuration...................................................................................................................296

8.7 Adjusting Other IPv6 PIM Parameters...........................................................................................................2978.7.1 Adjusting the Lifetime of a Source........................................................................................................2978.7.2 Adjusting Control Parameters for Maintaining Neighbor Relationships..............................................2988.7.3 Adjusting DR Parameters......................................................................................................................3008.7.4 Adjusting Control Parameters for Forwarding......................................................................................3018.7.5 Adjusting Assert Parameters.................................................................................................................3048.7.6 Checking the Configuration...................................................................................................................305

8.8 Maintaining IPv6 PIM....................................................................................................................................3078.8.1 Resetting Statistics About IPv6 PIM Control Messages.......................................................................3078.8.2 Monitoring the Operating Status of IPv6 PIM......................................................................................307

8.9 Configuration Examples.................................................................................................................................3088.9.1 Example for Configuring IPv6 PIM-SM Intra-domain Multicast.........................................................3088.9.2 Example for Configuring IPv6 PIM-SM Security.................................................................................316

9 IPv6 Multicast Routing Management....................................................................................3259.1 Overview of IPv6 Multicast Routing Management........................................................................................3269.2 IPv6 Multicast Route Management Features Supported by the NE5000E....................................................3269.3 Configuring IPv6 Multicast Load Splitting....................................................................................................3279.4 Controlling the IPv6 Multicast Forwarding Range........................................................................................328

9.4.1 Setting a Minimum TTL Value for IPv6 Multicast Packets..................................................................3299.4.2 Configuring an IPv6 Multicast Forwarding Boundary..........................................................................329

9.5 Configuration Examples.................................................................................................................................3309.5.1 Example for Configuring IPv6 Multicast Load Splitting......................................................................330

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast Contents

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

ix

Page 11: Configuration Guide - IP Multicast

1 IP Multicast Configuration

About This Chapter

This section describes multicast addresses, application and function of multicast protocols, andtypical multicast configurations on an IPv4 network.

1.1 IP Multicast OverviewMulticast is mainly used in a Point to Multi-Point (P2MP) data transmission scenario. It ensuresinformation security on the network and consumes low network bandwidth.

1.2 Typical Configuration SchemeTypical multicast configuration schemes on a network include PIM-SM intra-domain multicast,PIM-SM inter-domain multicast, and PIM-SSM multicast.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 1 IP Multicast Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

1

Page 12: Configuration Guide - IP Multicast

1.1 IP Multicast OverviewMulticast is mainly used in a Point to Multi-Point (P2MP) data transmission scenario. It ensuresinformation security on the network and consumes low network bandwidth.

Currently, the Internet services implemented through IP multicast include IPTV, Video OnDemand (VOD), online meeting, e-learning, and remote medicine.

Basic Concepts of Multicastl Multicast group: Each IP multicast address identifies a multicast group. Any host (or other

receiving device) that joins a multicast group becomes a member of this group and canidentify and receive the IP packets with the destination addresses being the IP multicastaddress of this group.

l Multicast source: The source that takes a multicast group address as the destination addressto forward IP packets is called a multicast source. A multicast source can simultaneouslysend data to multiple multicast groups. Multiple multicast sources can simultaneously senddata to a multicast group.

l Multicast group member: The members of a multicast group are dynamic. Hosts canrandomly join and leave a multicast group on a network. Members may reside in anyposition of the network.A multicast source cannot be a receiver of multicast data or a member of any multicastgroup.

l Multicast router: The router that supports the multicast function on a network is called amulticast router. A multicast router provides the following functions:– Managing group members at the leaf segment network that connects to hosts– Implementing multicast routing and guiding the forwarding of multicast packets

l Multicast distribution tree (MDT): According to the distribution of multicast groupmembers, the multicast routing protocol can set up a tree-type routing architecture toforward multicast packets.– RP tree: The MDT with a Rendezvous Point (RP) as the root and group members as

leaves is called an RP tree (RPT). RPT is only applicable to the Protocol IndependentMulticast-Sparse Mode (PIM-SM).

– SPT: The MDT with the multicast source as the root and group members as leaves iscalled a Shortest Path Tree (SPT). SPT is applicable to the Protocol IndependentMulticast-Dense Mode (PIM-DM), PIM-SM, and Protocol Independent Multicast-Source Specific Multicast (PIM-SSM).

IPv4 Multicast AddressesThe IPv4 multicast addresses are Class D addresses, ranging from 224.0.0.0 to 239.255.255.255.The multicast group address available for multicast services ranges from 224.0.2.0 to239.255.255.255.Table 1-1 lists IPv4 multicast addresses and gives a brief introduction.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 1 IP Multicast Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

2

Page 13: Configuration Guide - IP Multicast

Table 1-1 Range and description of IPv4 multicast addresses

Class D Address Range Description

224.0.0.0 to 224.0.1.255 The addresses in this range are group addresses reserved forlocal links. The Internet Assigned Number Authority (IANA)reserves the addresses in this range for routing protocols, andthese addresses are called permanent multicast groupaddresses. The addresses are used to identify a group ofspecific network devices and these devices are not involved inmulticast forwarding.

224.0.2.0 to231.255.255.255233.0.0.0 to238.255.255.255

The addresses in this range are Any-Source Multicast (ASM)addresses.The addresses in this range are valid on the entire network.

232.0.0.0 to232.255.255.255

The addresses in this range are Source-Specific Multicast(SSM) addresses. This is the default SSM group address range.The addresses in this range are valid on the entire network.

239.0.0.0 to239.255.255.255

The addresses in this range are administration multicastaddresses. This is the default group address range of theBootStrap Router (BSR) administrative domain. Theaddresses in this range are private addresses. Each address isvalid only in the local BSR administrative domain. You canuse the same address in different BSR administrative domains.

IPv4 Multicast ProtocolsTo implement a complete set of IPv4 multicast services, various multicast protocols need to bedeployed on the network to cooperate with each other. Figure 1-1 shows various multicastprotocols and application position of each multicast protocol.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 1 IP Multicast Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

3

Page 14: Configuration Guide - IP Multicast

Figure 1-1 Application position of each IPv4 multicast protocol

Source

PIM

IGMP

AS2

IGMP

User User

MSDPPIM

AS1IPv4 Network IPv4 Network

Table 1-2 IPv4 multicast protocols

Multicast Protocol ApplicationPosition

Function

Internet GroupManagement Protocol(IGMP)

Between hostsand multicastrouters

Connecting hosts to a multicast network:l Implementing the dynamic join and

leaving of members at the host sidel Managing and maintaining the member

relationship at the router side andexchanging information with the upperlayer multicast routing protocols

Protocol IndependentMulticast (PIM)

Between intra-domain multicastrouters

Guiding multicast routing and forwarding:l Creating multicast routes on demandsl Dynamically responding to the changes of

the network topology and maintaining themulticast routing table

l Forwarding packets according to themulticast routing table

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 1 IP Multicast Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

4

Page 15: Configuration Guide - IP Multicast

Multicast Protocol ApplicationPosition

Function

Multicast SourceDiscovery Protocol(MSDP)

Between inter-domain multicastrouters

Sharing the information of inter-domainmulticast sources:l Routers in the domain where the source

resides transmit the local sourceinformation to routers in other domains

l Routers in different domains exchangesource information

1.2 Typical Configuration SchemeTypical multicast configuration schemes on a network include PIM-SM intra-domain multicast,PIM-SM inter-domain multicast, and PIM-SSM multicast.

Multicast routing is based on unicast routes. Therefore, before configuring multicast on anetwork, ensure that unicast routing is normal.

NOTE

Currently, the NE5000E supports PIM-SM, PIM-SSM, and MSDP. The NE5000Es connected to hostsneed to run IGMP-supported system versions.

Configuring PIM-SM Intra-Domain Multicast

Figure 1-2 PIM-SM intra-domain multicast

Source

Multicast

Server

UserB

UserC

Receiver

Receiver

IGMP

IGMP

PIM-SM

PIM-SM PIM-SM

PIM-SM

PIM-SMPIM-SM

PIM-SMIGMP

Receiver

UserA

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 1 IP Multicast Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

5

Page 16: Configuration Guide - IP Multicast

As shown in Figure 1-2, unicast routing on the network is normal and there is only one PIM-SM domain. The configuration sequence is as follows:

1. Enable multicast routing on all multicast routers.2. Enable PIM-SM on all the interfaces of multicast routers.3. Enable IGMP on the interfaces connecting routers to hosts.4. Configure RPs. You can choose to use static RPs or BSR RPs. Alternatively, you can

configure MSDP to implement anycast RP.

Configuring PIM-SM Inter-domain Multicast

Figure 1-3 PIM-SM inter-domain multicast

C-RP2.1

RP4

C-RP3.2

RP1

AS100 AS200

PIM-SM1

PIM-SM2 PIM-SM3

PIM-SM4

MSDP Peers

S Receiver

C-RP2.2 C-RP3.1

As shown in Figure 1-3, unicast routing on the network is normal and there are multiple PIM-SM domains. You can configure MSDP to implement inter-domain multicast in an AS or acrossdifferent ASs. The configuration sequence is as follows:

1. Enable multicast routing on all multicast routers.2. Enable PIM-SM on all router interfaces.3. Enable IGMP on the interface connecting the router to user hosts.4. Divide PIM-SM domains and configure RPs; configure MSDP to implement anycast RP.

l If you choose to use static RPs, you only need to configure the same static RP on therouters in this PIM-SM domain. In this way, the range of this PIM-SM domain isdetermined.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 1 IP Multicast Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

6

Page 17: Configuration Guide - IP Multicast

l If you choose to use BSR RPs, you need to configure BSR boundaries on the interfacesof the routers at the edge of PIM-SM domains to limit the range of the PIM-SM domain.Then, configure C-BSRs and C-RPs in each PIM-SM domain.

5. Set up MSDP peer relationships between RPs in different PIM-SM domains in the sameAS and add these MSDP peers to the same mesh group.

6. Set up MSDP peer relationships between RPs in different ASs. There are two availablemethods:l Set up TCP connections between the RPs through the Boarder Gateway Protocol (BGP).l Specify the RPs as static Reverse Path Forwarding (RPF) peers of each other.

Configuring PIM-SSM MulticastFor PIM-SSM, inter-domain multicast and intra-domain multicast are not involved. Sincereceivers know the location of the multicast source in advance, multicast transmission path canbe directly established with the help of partial PIM-SM functions.

When unicast routing on the network is normal and PIM-SSM needs to be used, the configurationsequence is as follows:

1. Enable multicast routing on all multicast routers.2. Enable PIM-SM on all router interfaces.3. Enable IGMP on the interface connecting the router to user hosts.4. Set the SSM group address range on all routers.

Multicast Route ManagementWhen basic multicast functions on a network are normal, you can perform multicast routemanagement as required. Multicast route management provides the following functions:

l Configuring multicast static routes to change the RPF routesl Configuring multicast load splittingl Configuring multicast multi-topology

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 1 IP Multicast Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

7

Page 18: Configuration Guide - IP Multicast

2 IGMP Configuration

About This Chapter

To manage multicast group members on a local network, configure IGMP on the interface thatconnects a multicast device to a user network segment.

2.1 IGMP OverviewIGMP is used to manage multicast groups and their members on multicast devices.

2.2 IGMP Features Supported by the NE5000EThe supported IGMP features include basic IGMP functions, Router-Alert options, IGMPquerier parameter settings, and SSM mapping.

2.3 Configuring Basic IGMP FunctionsAfter basic IGMP functions are configured on the interfaces connecting multicast devices to thenetwork segments where user hosts reside, user hosts can access a multicast network andmulticast packets can reach the user hosts.

2.4 Configuring IGMP SSM MappingTo ensure that IGMP versions on a multicast device and user hosts are compatible and enablethe multicast device running a higher version of IGMP to provide SSM services for user hostsrunning a lower version of IGMP, configure SSM mapping on the multicast device.

2.5 Configuring an IGMP Router-Alert OptionIn this configuration task, you can configure a device to deny all the IGMP packets withoutRouter-Alert options or send IGMP packets without Router-Alert options.

2.6 Configuring an IGMP QuerierAn IGMP querier is responsible for periodically sending IGMP Query messages on a sharednetwork segment to update group memberships. Interfaces connecting multicast devices to thesame user network segment must use the same IGMP parameters; otherwise, multicast deviceson the network fail to communicate with each other.

2.7 Maintaining IGMPMaintaining IGMP involves resetting IGMP group information, monitoring IGMP operatingstatus, and debugging IGMP.

2.8 Configuration Examples

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

8

Page 19: Configuration Guide - IP Multicast

Configuration examples show you how to configure basic IGMP functions and how to configureIGMP SSM mapping.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

9

Page 20: Configuration Guide - IP Multicast

2.1 IGMP OverviewIGMP is used to manage multicast groups and their members on multicast devices.

Multicast becomes more and more widely applied and an increasing number of hosts need tojoin multicast groups and receive multicast data. How to manage multicast groups and theirmembers on the router becomes an important issue.

In the TCP/IP suite, the Internet Group Management Protocol (IGMP) is used to manage IPv4multicast group members. IGMP is used on the router and directly connected user hosts toestablish and maintain group memberships.

IGMP is a signaling mechanism of hosts towards routers on the leaf network enabled with IPmulticast. IGMP can be divided into two functional parts: at the host side and at the router side.

l To participate in multicast transmission, hosts must be enabled with IGMP. Hosts canrandomly join or leave related multicast groups anytime and anywhere, and the number ofhosts is not limited.

NOTE

The Operating System (OS) of a host determines which IGMP version is supported by the host.

l Using IGMP, a multicast router can know whether there is a multicast receiver (member)of a specified group on the network segment to which each interface of the router isconnected. Each host stores information about only the multicast groups it joins.

At present, IGMP has three versions, IGMPv1 (defined in RFC 1112), IGMPv2 (defined in RFC2236), and IGMPv3 (defined in RFC 3376). All IGMP versions support the Any-SourceMulticast (ASM) model. IGMPv3 can be directly applied to the Source-Specific Multicast(SSM) model, whereas IGMPv1 and IGMPv2 require to use the SSM-Mapping technology tosupport the SSM model.

2.2 IGMP Features Supported by the NE5000EThe supported IGMP features include basic IGMP functions, Router-Alert options, IGMPquerier parameter settings, and SSM mapping.

Basic IGMP Functions

The NE5000E supports the following basic IGMP functions:

l Configuration of IGMPv1, IGMPv2, or IGMPv3l Adding of an interface to a multicast group statically

After an interface is added to a multicast group statically, the system considers that thenetwork segment where the interface resides contains a group member.

l Limit on the range of multicast groups to which an interface can be added

Currently, IGMPv3 supported by the NE5000E can process the following packets:l Packets with group addresses within the SSM group address rangel Packets with group addresses within the ASM group address rangeAll the packets that do not match the preceding conditions are not processed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

10

Page 21: Configuration Guide - IP Multicast

Router-Alert Options

IGMP supports multicast packets without local receivers to be delivered to the upper-layerprotocol for processing by adding Router-Alert options to the packets.

You can determine whether to enable the NE5000E to send IGMP packets with Router-Alertoptions or enable the NE5000E to accept only IGMP packets with Router-Alert options.

IGMP Querier Parameter Settings

IGMPv1 allows the setting of the interval for sending general query messages and the robustnessvariable.

IGMPv2 or IGMPv3 allows the setting of the following parameters:

l Interval for sending IGMP general query messagesl IGMP robustness variablel Maximum response time of IGMP Query messagesl Keepalive time of other IGMP queriersl Interval for sending IGMP last-member query messagesl IGMP prompt leave feature

After receiving a Leave message for a certain multicast group, the interface enabled withprompt leave directly deletes the records of the multicast group without sending a last-member query message.

SSM Mapping

SSM mapping enables multicast devices to provide SSM services for user hosts that run IGMPv1or IGMPv2.

2.3 Configuring Basic IGMP FunctionsAfter basic IGMP functions are configured on the interfaces connecting multicast devices to thenetwork segments where user hosts reside, user hosts can access a multicast network andmulticast packets can reach the user hosts.

Applicable Environment

IGMP runs on the network segment where the router is directly connected to user hosts. It mustbe configured on both the router and user hosts. This section describes how to configure IGMPon the router.

Before configuring IGMP, enable IP multicast routing. IP multicast routing is the preconditionfor configuring all multicast functions. If IP multicast routing is disabled, all multicast-relatedconfigurations are deleted.

IGMP needs to be enabled on the interfaces connected to user hosts. Specify matching IGMPversions for the router and attached user hosts because the packet formats of IGMPv1, IGMPv2,and IGMPv3 are different. The IGMP version at the router side must be of a higher version andbe compatible with the lower version at the host side. Other IGMP-related configurations canbe performed only after IGMP versions are specified.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

11

Page 22: Configuration Guide - IP Multicast

In addition, by configuring interfaces on the router to statically join a multicast group, enablethe router to rapidly respond to users' requests, thereby shortening channel switching time.

To make hosts on the network segment where interfaces of the router reside join specifiedmulticast groups and receive multicast packets for these groups, define an ACL rule as a filterto restrict the range of multicast groups that the hosts can join. This guarantees IGMP security.

Pre-configuration Tasks

Before configuring basic IGMP functions, complete the following tasks:

l Configuring link layer protocol parameters and IP addresses for interfaces to ensure thatthe link layer protocol status of the interfaces is Up

l Configuring a unicast routing protocol to make devices routable

Configuration Procedures

Figure 2-1 Flowchart for configuring basic IGMP functions

Enable multicast routing

Enable PIM-SM

Enable IGMP

Set an IGMP version

Set the range of multicast groupsthat an interface can join

Configure an interface to staticallyjoin an IGMP group

MandatoryprocedureOptional

procedure

2.3.1 Enabling Multicast RoutingEnabling multicast routing on the router is a prerequisite for configuring any multicast features.

Context

The configuration related to the VPN instance is only required on the PE. If the PE has a VPNinstance interface connected to the host, you must perform Steps 3 and 4.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

12

Page 23: Configuration Guide - IP Multicast

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:multicast routing-enable

IP multicast routing is enabled in the public network instance.

CAUTIONRunning the undo multicast routing-enable command will clear all the multicastconfigurations of the public network instance or the VPN instance and terminate the multicastservice running in the instance. If you want to restore the multicast service in the instance, re-configure the related command.

Step 3 (Optional) Run:ip vpn-instance vpn-instance-name

The VPN instance view is displayed.

Step 4 (Optional) Run:ipv4-family

The IPv4 address family is enabled for the VPN instance and the VPN instance IPv4 addressfamily view is displayed.

Step 5 (Optional) Run:route-distinguisher route-distinguisher

An RD is configured for the VPN instance IPv4 address family.

Step 6 (Optional) Run:multicast routing-enable

IP multicast routing is enabled in the VPN instance.

Step 7 Run:commit

The configuration is committed.

----End

2.3.2 Enabling PIM-SMAfter PIM-SM is enabled on the interface connected to other routers, the interface can establishPIM neighbor relationships with the routers.

Procedure

Step 1 Run:system-view

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

13

Page 24: Configuration Guide - IP Multicast

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The interface view is displayed.

Step 3 Run:pim sm

PIM-SM is enabled.

CAUTIONRunning the undo pim sm command will clear PIM neighbor relationships on the interface andterminate the multicast service running on the interface.

Step 4 Run:commit

The configuration is committed.

----End

2.3.3 Enabling IGMPUser hosts can dynamically join multicast groups after IGMP is enabled on the interfacesconnected to user network segments.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The view of the interface connected to a user network segment is displayed.

Step 3 Run:igmp enable

IGMP is enabled.

Step 4 Run:commit

The configuration is committed.

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

14

Page 25: Configuration Guide - IP Multicast

2.3.4 (Optional) Setting an IGMP VersionInterfaces connecting multicast devices to the same user network segment must use the sameIGMP version; otherwise, multicast devices fail to communicate with each other.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The view of the interface connected to a user network segment is displayed.

Step 3 Run:igmp version { 1 | 2 | 3 }

An IGMP version is set for the interface.

By default, IGMPv2 is run on the interface.

Step 4 Run:commit

The configuration is committed.

----End

2.3.5 (Optional) Configuring an Interface to Statically Join an IGMPGroup

After an interface connecting the multicast device to a user network segment is configured tostatically join an IGMP group, the multicast device always considers that the interface has anattached multicast group member and continues forwarding required multicast packets to thisinterface.

ContextIf a user network segment has stable hosts that demand multicast programs, configure theinterface connected to the user network segment to statically join an IGMP group This ensuresthat the interface can rapidly respond to users' requests and shortens channel switching time.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The view of the interface connected to a user network segment is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

15

Page 26: Configuration Guide - IP Multicast

Step 3 Run:igmp static-group group-address [ inc-step-mask { group-mask | group-mask-length } number group-number ] [ source source-address ]

The interface is configured to statically join an IGMP group.

The igmp static-group command must be run on the interfaces connected to user hosts. Theinterface can statically join a single IGMP group or source/group, or multiple IGMP groups orsource/groups.

After the interface is configured to statically join an IGMP group, multicast entries generatedon the router never time out. Therefore, the router keeps forwarding multicast data to theinterface. If the interface no longer needs to receive multicast data for the group, the static IGMPgroup configurations must be deleted manually from the interface.

Step 4 Run:commit

The configuration is committed.

----End

2.3.6 (Optional) Setting the Range of Multicast Groups that anInterface Can Join

After an IGMP group policy is configured on the interfaces connected to user network segments,user hosts can join certain IGMP groups.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The view of the interface connected to a user network segment is displayed.

Step 3 Run:igmp group-policy { acl-number | acl-name acl-name } [ 1 | 2 | 3 ]

The range of multicast groups that the interface can join is set.

By default, hosts can join any multicast group.

Step 4 Run:commit

The configuration is committed.

----End

2.3.7 Checking the ConfigurationAfter basic IGMP functions are configured, check the configurations and operating status ofIGMP and information about IGMP group members.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

16

Page 27: Configuration Guide - IP Multicast

Prerequisite

All basic IGMP function configurations are complete.

Procedurel Run the display igmp [ vpn-instance vpn-instance-name | all-instance ] interface

[ interface-type interface-number | up | down ] [ verbose ] command to view theconfigurations and operating status of IGMP on an interface.

l Run the display igmp [ vpn-instance vpn-instance-name | all-instance ] group [ group-address | interface interface-type interface-number ] * [ static ] [ verbose ] command toview information about IGMP group members.

----End

Example

Run the display igmp interface gigabitethernet 1/0/0 command, and you can see IGMPconfigurations on GE 1/0/0. For example:

<HUAWEI> display igmp interface gigabitethernet 1/0/0Interface information of VPN-Instance: public net Ethernet1/0/0(192.168.101.2): IGMP is enabled Current IGMP version is 2 IGMP state: up IGMP group policy: none IGMP limit: - Value of query interval for IGMP (negotiated): - Value of query interval for IGMP (configured): 60 s Value of other querier timeout for IGMP: 0 s Value of maximum query response time for IGMP: 10 s Querier for IGMP: 192.168.101.2 (this router) Total 1 IGMP Group reported

Run the display igmp group command, and you can see information about the multicast groupsthat interfaces in the public network instance dynamically join. For example:

<HUAWEI> display igmp groupInterface group report information of VPN-Instance: public net GigabitEthernet6/0/1(10.1.6.2): Total 1 IGMP Group reported Group Address Last Reporter Uptime Expires 225.1.1.2 10.1.6.10 00:02:04 00:01:17

Run the display igmp group static command, and you can see information about the multicastgroups that interfaces in the public network instance statically join. For example:

<HUAWEI> display igmp group staticStatic join group information of VPN-Instance: public net Ethernet1/5/0: Total 2 entries Group Address Source Address Expires 226.0.0.1 0.0.0.0 never 226.0.0.2 0.0.0.0 never Pos1/5/1: Total 1 entry Group Address Source Address Expires 226.0.0.6 0.0.0.0 never

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

17

Page 28: Configuration Guide - IP Multicast

2.4 Configuring IGMP SSM MappingTo ensure that IGMP versions on a multicast device and user hosts are compatible and enablethe multicast device running a higher version of IGMP to provide SSM services for user hostsrunning a lower version of IGMP, configure SSM mapping on the multicast device.

Applicable EnvironmentOn a network segment providing multicast SSM services, an interface on a multicast router runsIGMPv3 but user hosts run IGMPv1 or IGMPv2 due to some causes. To enable the multicastrouter to provide SSM services for user hosts, configure SSM mapping on the router.

The SSM mapping function effectively protects multicast sources from being attacked.

Pre-configuration TasksBefore configuring IGMP SSM mapping, complete the following tasks:

l Configuring a unicast routing protocol to make devices routablel Enable multicast routingl 2.3 Configuring Basic IGMP Functions

Configuration Procedures

Figure 2-2 Flowchart for configuring IGMP SSM mapping

Enable the SSM mappingfunction

Configure IGMP SSMmapping

MandatoryprocedureOptional

procedure

2.4.1 Enabling SSM MappingEnabling the SSM mapping function on an interface connecting is a prerequisite for configuringIGMP SSM mapping. The SSM source/group address mapping entries configured on theinterface take effect only after SSM mapping is enabled on the interface.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

18

Page 29: Configuration Guide - IP Multicast

interface interface-type interface-number

The view of the interface connected to a user network segment is displayed.

Step 3 Run:igmp version 3

The IGMP version is set to 3.

To ensure that all user hosts (running any IGMP version) can obtain SSM services, IGMPv3 isrecommended.

Step 4 Run:igmp ssm-mapping enable

The SSM mapping function is enabled.

Step 5 Run:commit

The configuration is committed.

----End

2.4.2 Configuring Static SSM MappingThe SSM mapping function configured on a multicast device connected to a user networksegment allows user hosts that support only IGMPv1 or IGMPv2 to join specific source/groups.It implements IGMP version compatibility on the multicast device and user hosts and enablesthe multicast device to provide SSM services for all the user hosts.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:igmp [ vpn-instance vpn-instance-name ]

The IGMP view is displayed.

Step 3 Run:ssm-mapping group-address { mask | mask-length } source-address

A mapping from an IGMP group to a source is created.

l group-address { mask | mask-length specifies an IGMP group address and mask. By default,the SSM group address range is from 232.0.0.0 to 232.255.255.255. You can run the ssm-policy command to set an SSM group address range out of this range.

l source-address specifies a multicast source address mapped to the IGMP group address.

You can run the ssm-mapping command for several times to map the same IGMP group tomultiple sources.

Step 4 Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

19

Page 30: Configuration Guide - IP Multicast

The configuration is committed.

----End

2.4.3 Checking the ConfigurationAfter IGMP SSM mapping is configured, check information about the groups configured withSSM mapping, SSM mapping rules of a specified group, and SSM mapping status to ensurenormal operating of the SSM mapping function.

PrerequisiteAll IGMP SSM mapping configurations are complete.

Procedurel Run the display igmp [ vpn-instance vpn-instance-name | all-instance ] interface

[ interface-type interface-number | up | down ] [ verbose ] command to view theconfigurations and operating status of IGMP on an interface.

l Run the display igmp [ vpn-instance vpn-instance-name | all-instance ] group [ group-address | interface interface-type interface-number ] * ssm-mapping [ verbose ] commandto view details about IGMP groups configured with SSM mapping.

l Run the display igmp [ vpn-instance vpn-instance-name | all-instance ] ssm-mappinggroup [ group-address ] command to view SSM mapping rules of a specified IGMP group.

l Run the display igmp [ vpn-instance vpn-instance-name | all-instance ] ssm-mappinginterface [ interface-type interface-number ] command to check whether the SSM mappingfunction is enabled on an interface.

----End

ExampleRun the display igmp interface verbose command, and you can see details about IGMPinterfaces in the public network instance. The SSM-Mapping field in the command outputshows whether the SSM mapping function is enabled on an interface. For example:

<HUAWEI> display igmp interface verboseInterface information of VPN-Instance: public net Ethernet3/0/1(192.168.101.1): IGMP is enabled Current IGMP version is 2 IGMP state: up IGMP group policy: none IGMP limit: - Value of query interval for IGMP (negotiated): - Value of query interval for IGMP (configured): 60 s Value of other querier timeout for IGMP: 0 s Value of maximum query response time for IGMP: 10 s Value of last member query time: 2 s Value of last member query interval: 1 s Value of startup query interval: 15 s Value of startup query count: 2 General query timer expiry (hours:minutes:seconds): 00:00:44 Querier for IGMP: 192.168.101.1 (this router) IGMP activity: 4 joins, 0 leaves Robustness (negotiated): - Robustness (configured): 2 Require-router-alert: disabled Send-router-alert: enabled

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

20

Page 31: Configuration Guide - IP Multicast

Ip-source-policy: disabled Prompt-leave: disabled SSM-Mapping: enabled Startup-query-timer-expiry: off Other-querier-present-timer-expiry: off Total 2 IGMP Groups reported

Run the display igmp group ssm-mapping command, and you can see information about theIGMP groups configured with SSM mapping. For example:

<HUAWEI> display igmp group ssm-mapping IGMP SSM mapping interface group report information of VPN-Instance: public net Limited entry of this VPN-Instance: - Ethernet3/0/1(192.168.101.1): Total 1 IGMP SSM-Mapping Group reported Group Address Last Reporter Uptime Expires 232.0.0.1 192.168.101.1 00:00:02 00:02:08

Run the display igmp ssm-mapping group command, and you can see information about theSSM mapping rules of a specified IGMP group. For example:

<HUAWEI> display igmp ssm-mapping groupIGMP SSM-Mapping conversion table of VPN-Instance: public net Total 2 entries 2 entries matched

00001. (10.1.0.2, 225.1.1.0)

00002. (10.1.0.2, 239.255.255.0)

Total 2 entries matched

Run the display igmp ssm-mapping interface command, and you can see information aboutthe interfaces in the public network instance enabled with the SSM mapping function. Forexample:

<HUAWEI> display igmp ssm-mapping interfaceInterface information of VPN-Instance: public net GigabitEthernet3/0/0(192.168.19.2)

2.5 Configuring an IGMP Router-Alert OptionIn this configuration task, you can configure a device to deny all the IGMP packets withoutRouter-Alert options or send IGMP packets without Router-Alert options.

Applicable Environment

Generally, a device sends a packet to the routing protocol layer for processing only if thedestination IP address of the packet is the IP address of a local interface. The destination IPaddress of an IGMP packet is usually a multicast address but not the address of an interface ona multicast device and thus the IGMP packet may fail to be sent to the routing protocol layer forprocessing. Router-Alert options can address such a problem. IGMP packets carrying Router-Alert options need to be sent to the routing protocol layer for processing.

NOTE

For details about Router-Alert options, see RFC 2113.

Pre-configuration Tasks

Before configuring an IGMP Router-Alert option, complete the following tasks:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

21

Page 32: Configuration Guide - IP Multicast

l Configuring a unicast routing protocol to make devices routablel 2.3 Configuring Basic IGMP Functions

Configuration ProceduresChoose one or more configuration tasks (excluding "Checking the Configuration") as needed.

2.5.1 Configuring a Multicast Device to Deny IGMP PacketsWithout Router-Alert Options

If user hosts do not want to receive any IGMP packet without the Router-Alart option, themulticast device directly connected to the user hosts can be configured to deny all the IGMPpackets without Router-Alert options.

ContextBy default, the router does not check whether the received IGMP packets contain Router-Alertoptions, that is, the router accepts and processes all the received IGMP packets.

You can perform configurations either globally or on an interface.

l Global configuration: takes effect on all interfaces.l Configuration on an interface: takes precedence over the global configuration. If the

configuration on an interface is not done, the global configuration is used.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

igmp [ vpn-instance vpn-instance-name ]

The IGMP view is displayed.3. Run:

require-router-alert

The multicast device is configured to accept and process only the IGMP packets withRouter-Alert options and discard those without Router-Alert options.

4. Run:commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

22

Page 33: Configuration Guide - IP Multicast

The view of the interface connected to a user network segment or a switching deviceis displayed.

3. Run:igmp require-router-alert

The interface is configured to accept and process only the IGMP packets with Router-Alert options and discard those without Router-Alert options.

4. Run:commit

The configuration is committed.

----End

2.5.2 Configuring a Multicast Device to Send IGMP PacketsWithout Router-Alert Options

If some IGMP interfaces on the same network need to receive IGMP packets without Router-Alert options, configure the multicast device connected to the user network segment to sendIGMP packets without Router-Alert options.

ContextBy default, the router sends IGMP packets with Router-Alert options.

You can perform configurations either globally or on an interface.

l Global configuration: takes effect on all interfaces.l Configuration on an interface: takes precedence over the global configuration. If the

configuration on an interface is not done, the global configuration is used.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

igmp [ vpn-instance vpn-instance-name ]

The IGMP view is displayed.3. Run:

undo send-router-alert

The device is configured to send IGMP packets without Router-Alert options.4. Run:

commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

23

Page 34: Configuration Guide - IP Multicast

The system view is displayed.2. Run:

interface interface-type interface-number

The view of the interface connected to a user network segment or a switching deviceis displayed.

3. Run:undo igmp send-router-alert

The interface is configured to send IGMP packets without Router-Alert options.4. Run:

commit

The configuration is committed.

----End

2.5.3 Checking the ConfigurationAfter an IGMP Router-Alert option is configured, check the configurations and operating statusof IGMP to ensure normal running of IGMP.

PrerequisiteAll the IGMP Router-Alert option configurations are complete.

Procedurel Run the display igmp [ vpn-instance vpn-instance-name | all-instance ] interface

[ interface-type interface-number | up | down ] [ verbose ] command to view theconfigurations and operating status of IGMP on an interface.

----End

ExampleRun the display igmp interface verbose command, and you can see details about IGMPinterfaces in the public network instance. The command output shows that GE 6/0/0 denies thereceived packets that do not contain Router-Alert options. For example:

<HUAWEI> display igmp interface verboseInterface information of VPN-Instance: public net Ethernet3/0/1(192.168.101.1): IGMP is enabled Current IGMP version is 2 IGMP state: up IGMP group policy: none IGMP limit: - Value of query interval for IGMP (negotiated): - Value of query interval for IGMP (configured): 60 s Value of other querier timeout for IGMP: 0 s Value of maximum query response time for IGMP: 10 s Value of last member query time: 2 s Value of last member query interval: 1 s Value of startup query interval: 15 s Value of startup query count: 2 General query timer expiry (hours:minutes:seconds): 00:00:44 Querier for IGMP: 192.168.101.1 (this router) IGMP activity: 4 joins, 0 leaves

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

24

Page 35: Configuration Guide - IP Multicast

Robustness (negotiated): - Robustness (configured): 2 Require-router-alert: disabled Send-router-alert: enabled Ip-source-policy: disabled Prompt-leave: disabled SSM-Mapping: enabled Startup-query-timer-expiry: off Other-querier-present-timer-expiry: off Total 2 IGMP Groups reported

2.6 Configuring an IGMP QuerierAn IGMP querier is responsible for periodically sending IGMP Query messages on a sharednetwork segment to update group memberships. Interfaces connecting multicast devices to thesame user network segment must use the same IGMP parameters; otherwise, multicast deviceson the network fail to communicate with each other.

Applicable EnvironmentAn IGMP querier is responsible for periodically sending IGMP Query messages on a sharednetwork segment connected to receivers. When receiving a Report message from a groupmember, the querier refreshes group memberships on this network segment. If non-queriers havenot received any general query message within the Keepalive time of other IGMP queriers, theyconsider the current IGMP querier faulty and trigger a new round of querier electionautomatically.

In ADSL dial-up access, the IGMP querier corresponds to only one host because one hostcorresponds to one port. When a receiver frequently joins or leaves multiple multicast groups,like switching among TV channels, enable the prompt leave on the querier.

Pre-configuration TasksBefore configuring an IGMP querier, complete the following tasks:

l Configuring a unicast routing protocol to make devices routablel 2.3 Configuring Basic IGMP Functions

Configuration ProceduresChoose one or more configuration tasks (excluding "Checking the Configuration") as needed.

2.6.1 Configuring an IGMPv1 QuerierConfiguring an IGMPv1 querier involves setting the interval for sending general query messagesand robustness variable.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

25

Page 36: Configuration Guide - IP Multicast

Context

CAUTIONInterfaces connecting multicast devices to the same user network segment must use the sameIGMP parameters; otherwise, multicast devices on the network fail to communicate with eachother.

IGMPv1 queriers are elected by the PIM protocol. You can configure parameters of IGMPv1queriers either globally or on an interface.

l Global configuration: takes effect on all interfaces.l Configuration on an interface: takes precedence over the global configuration. If the

configuration on an interface is not done, the global configuration is used.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

igmp [ vpn-instance vpn-instance-name ]

The IGMP view is displayed.3. Run:

timer query interval

The interval for sending general query messages is set.

By default, the interval is 60 seconds.4. Run:

robust-count robust-value

A robustness variable is set.

By default, the robustness variable of an IGMP querier is 2.5. Run:

commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

The interface view is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

26

Page 37: Configuration Guide - IP Multicast

3. Run:igmp timer query interval

The interval for sending general query messages is set.

By default, the interval is 60 seconds.4. Run:

igmp robust-count robust-value

An IGMP robustness variable is set.

By default, the robustness variable of an IGMP querier is 2.5. Run:

commit

The configuration is committed.

----End

2.6.2 Configuring an IGMPv2/v3 QuerierConfiguring an IGMPv2/v3 querier involves setting the interval for sending general querymessages, robustness variable, maximum response time of Query messages, Keepalive time ofother IGMP queriers, and interval for sending IGMP last-member query messages, andconfiguring group memberships on an interface to never time out and the IGMP prompt leavefunction.

Context

CAUTIONInterfaces connecting multicast devices to the same user network segment must use the sameIGMP parameters; otherwise, multicast devices on the network fail to communicate with eachother.

IGMPv2/v3 queriers are elected by the IGMP protocol. You can configure parameters ofIGMPv2/v3 queriers either globally or on an interface.

l Global configuration: takes effect on all interfaces.l Configuration on an interface: takes precedence over the global configuration. If the

configuration on an interface is not done, the global configuration is used.

NOTE

During the configuration, ensure that the interval for sending general query messages is greater than themaximum response time of Query messages but is smaller than the Keepalive time of other IGMP queriers.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

27

Page 38: Configuration Guide - IP Multicast

2. Run:igmp [ vpn-instance vpn-instance-name ]

The IGMP view is displayed.3. Run:

timer query interval

The interval for sending general query messages is set.

By default, the interval is 60 seconds.4. Run:

robust-count robust-value

An IGMP robustness variable is set.

By default, the robustness variable of an IGMP querier is 2. The greater the robustnessvariable is, the longer timeout period a group has.

When the router starts, the router sends general query messages for the number ofrobust-value times. The sending interval is 1/4 of the interval for sending IGMPgeneral query messages.

After the router receives a Leave message,

– For IGMPv2, the router sends group-specific query messages for the number ofrobust-value times. The sending interval is set by using the lastmember-queryinterval command.

– For IGMPv3, the router sends group-specific or group-and-source-specific querymessages for the number of robust-value times. The sending interval is set by usingthe lastmember-queryinterval query command.

5. Run:max-response-time interval

The maximum response time of IGMP Query messages is set.

By default, the maximum response time of IGMP Query messages is 10 seconds.6. Run:

timer other-querier-present interval

The Keepalive time of other IGMP queriers is set.

The formula used to calculate the Keepalive time of other IGMP queriers is: Keepalivetime of other IGMP queriers = Robustness variable x Interval for sending IGMPgeneral query messages + 1/2 x maximum response time of IGMP Query messages.If the robustness variable, the interval for sending IGMP general query messages, andthe maximum response time of IGMP Query messages are all of default values, theKeepalive time of other IGMP queriers is 125 seconds.

7. Run:lastmember-queryinterval interval

The interval for sending IGMP last-member query messages is set.

By default, the interval for sending IGMP last-member query messages is 1s. Theshorter the interval is, the more sensitive the querier is.

8. Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

28

Page 39: Configuration Guide - IP Multicast

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

The view of the interface connected to a user network segment is displayed.3. Run:

igmp timer query interval

The interval for sending general query messages is set.4. Run:

igmp max-response-time interval

The maximum response time of IGMP Query messages is set.5. Run:

igmp timer other-querier-present interval

The Keepalive time of other IGMP queriers is set.6. Run:

igmp robust-count robust-value

An IGMP robustness variable is set.7. Run:

igmp lastmember-queryinterval interval

The interval for sending IGMP last-member query messages is set.8. Run:

igmp prompt-leave [ group-policy { acl-number | acl-name acl-name } ]

The IGMP prompt leave function is configured on the interface.

By default, IGMP-enabled interfaces send last-member query messages afterreceiving Leave messages for a specific multicast group from hosts. If the IGMPprompt leave function is enabled, the interfaces directly delete the records of themulticast group without sending last-member query messages.

9. Run:commit

The configuration is committed.

----End

2.6.3 Checking the ConfigurationAfter an IGMP querier is configured, check the configurations and operating status of IGMP toensure normal running of IGMP.

PrerequisiteAll IGMP querier configurations are complete.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

29

Page 40: Configuration Guide - IP Multicast

Procedurel Run the display igmp [ vpn-instance vpn-instance-name | all-instance ] interface

[ interface-type interface-number | up | down ] [ verbose ] command to view theconfigurations and operating status of IGMP on an interface.

----End

ExampleRun the display igmp interface verbose command, and you can see detailed IGMP informationon an interface, including parameters of an IGMP querier. For example:<HUAWEI> display igmp interface verboseInterface information of VPN-Instance: public net Ethernet3/0/1(192.168.101.1): IGMP is enabled Current IGMP version is 2 IGMP state: up IGMP group policy: none IGMP limit: - Value of query interval for IGMP (negotiated): - Value of query interval for IGMP (configured): 60 s Value of other querier timeout for IGMP: 0 s Value of maximum query response time for IGMP: 10 s Value of last member query time: 2 s Value of last member query interval: 1 s Value of startup query interval: 15 s Value of startup query count: 2 General query timer expiry (hours:minutes:seconds): 00:00:44 Querier for IGMP: 192.168.101.1 (this router) IGMP activity: 4 joins, 0 leaves Robustness (negotiated): - Robustness (configured): 2 Require-router-alert: disabled Send-router-alert: enabled Ip-source-policy: disabled Prompt-leave: disabled SSM-Mapping: enabled Startup-query-timer-expiry: off Other-querier-present-timer-expiry: off Total 2 IGMP Groups reported

2.7 Maintaining IGMPMaintaining IGMP involves resetting IGMP group information, monitoring IGMP operatingstatus, and debugging IGMP.

2.7.1 Clearing IGMP Group InformationAfter you confirm to clear IGMP group information, use the reset command in the user view.

Context

CAUTIONThe reset igmp command clears information about the IGMP groups that an interfacedynamically joins, which may cause receivers to fail to receive multicast data normally. Exercisecaution when running this command.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

30

Page 41: Configuration Guide - IP Multicast

Procedurel To clear information about the IGMP groups that an interface dynamically joins, run the

following commands in the user view.

– reset igmp [ vpn-instance vpn-instance-name | all-instance ] group { all | interfaceinterface-type interface-number { all | group-address [ mask { group-mask | group-mask-length } ] [ source-address [ mask { source-mask | source-mask-length } ] ] } }

– reset igmp [ vpn-instance vpn-instance-name | all-instance ] group ssm-mapping{ all | interface interface-type interface-number { all | group-address [ mask { group-mask | group-mask-length } ] } }

l To clear information about the IGMP groups that an interface statically joins, run the undoigmp static-group { all | group-address [ inc-step-mask { group-mask | group-mask-length } number group-number ] [ source source-address ] } command in the interfaceview.

----End

2.7.2 Monitoring the Operating Status of IGMPYou can monitor the operating status of IGMP by viewing IGMP group information, SSMmapping information, IGMP-enabled interface information, and IGMP routing tableinformation.

Context

In routine maintenance, run the following commands in any view to view the operating statusof IGMP.

Procedurel Run the display igmp [ vpn-instance vpn-instance-name | all-instance ] group [ group-

address | interface interface-type interface-number ] * [ static ] [ verbose ] command toview IGMP group information on an interface.

l Run the display igmp [ vpn-instance vpn-instance-name | all-instance ] group [ group-address | interface interface-type interface-number ] * ssm-mapping [ verbose ] commandto view IGMP groups configured with SSM mapping.

l Run the display igmp [ vpn-instance vpn-instance-name | all-instance ] interface[ interface-type interface-number | up | down ] [ verbose ] command to view theconfigurations and operating status of IGMP on an interface.

l Run the display igmp [ vpn-instance vpn-instance-name | all-instance ] ssm-mappinggroup [ group-address ] command to view SSM mapping rules of a specified group.

----End

2.8 Configuration ExamplesConfiguration examples show you how to configure basic IGMP functions and how to configureIGMP SSM mapping.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

31

Page 42: Configuration Guide - IP Multicast

2.8.1 Example for Configuring Basic IGMP FunctionsAfter basic IGMP functions are configured on a multicast network, user hosts can steadily receivemulticast data from multicast sources after being configured to statically join multicast groups.

Networking Requirements

CAUTIONOn a single NE5000E, an interface is numbered in the format of slot number/card number/interface number. On an NE5000E cluster, an interface is numbered in the format of chassis ID/slot number/card number/interface number, and a slot is numbered in the format of chassis ID/slot number.

On the network shown in Figure 2-3, multicast services are deployed on the ISP network. AnIGP has been deployed to ensure that unicast routes are available. Hosts on this network wantto receive VOD information with the multicast service. For example, Host A and Host B wantto join multicast group 225.1.1.1 to steadily receive popular programs.

Figure 2-3 Networking diagram of configuring basic IGMP functions

RouterA

RouterB

RouterC

POS2/0/0GE1/0/0

PIM network

POS2/0/0

POS2/0/0

GE1/0/0

GE1/0/0

Ethernet

HostAReceiver

HostB

N1

Leaf network

HostDN2

Ethernet

HostCReceiver

POS2/0/1

POS2/0/2

POS2/0/3

POS1/0/0

RouterD

Device Interface IP Address Device Interface IP AddressRouter A POS 2/0/0 192.168.1.1/24 Router D POS 1/0/0 192.168.4.1/24

GE 1/0/0 10.110.1.1/24 POS 2/0/1 192.168.1.2/24Router B POS 2/0/0 192.168.2.1/24 POS 2/0/2 192.168.2.2/2

GE 1/0/0 10.110.2.1/24 POS 2/0/3 192.168.3.2/24Router C POS 2/0/0 192.168.3.1/24

GE 1/0/0 10.110.2.2/24

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

32

Page 43: Configuration Guide - IP Multicast

PrecautionsWhen configuring basic IGMP functions, note the following points:

l PIM-SM and then IGMP need to be enabled on the interfaces connected to hosts.l Interfaces connected to the same user network segment must use the same IGMP version.

Configuration RoadmapThe configuration roadmap is as follows:

1. Configure IP addresses for interfaces on each router and configure a unicast routingprotocol.

2. Enable multicast routing on all routers that provide multicast services.3. Enable PIM-SM on all interfaces of the multicast routers.4. Enable IGMP on the interfaces connected to hosts.5. Configure GE 1/0/0 on Router A to statically join IGMP group 225.1.1.1 to steadily receive

multicast data.

Data PreparationTo complete the configuration, you need the following data.

l Version numbers of IGMP run on routers and user hostsl Address of the IGMP group that interfaces statically joins

Procedure

Step 1 Configure IP addresses for interfaces on each router and configure a unicast routing protocol.The configuration details are not provided here.

Step 2 Enable multicast on each router and PIM-SM on each interface of the routers.

# Configurations on Routers A, B, and C are similar to those on Router D and therefore theirconfiguration details are not provided here.

[~RouterD] multicast routing-enable[~RouterD] interface pos 1/0/0[~RouterD-Pos1/0/0] pim sm[~RouterD-Pos1/0/0] quit[~RouterD] interface pos 2/0/1[~RouterD-Pos2/0/1] pim sm[~RouterD-Pos2/0/1] quit[~RouterD] interface pos 2/0/2[~RouterD-Pos2/0/2] pim sm[~RouterD-Pos2/0/2] quit[~RouterD] interface pos 2/0/3[~RouterD-Pos2/0/3] pim sm[~RouterD-Pos2/0/3] commit[~RouterD-Pos2/0/3] quit

Step 3 Configure an RP.

# Configure a dynamic RP on Router D.

[~RouterD] pim[~RouterD-pim] c-bsr pos 1/0/0[~RouterD-pim] c-rp pos 1/0/0[~RouterD-pim] commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

33

Page 44: Configuration Guide - IP Multicast

[~RouterD-pim] quit

Step 4 Enable IGMP on the interfaces connected to hosts.

# Configurations on Routers B and C are similar to those on Router A and therefore theirconfiguration details are not provided here.

[~RouterA] interface gigabitethernet 1/0/0[~RouterA-GigabitEthernet1/0/0] igmp enable[~RouterA-GigabitEthernet1/0/0] commit[~RouterA-GigabitEthernet1/0/0] quit

Step 5 Configure GE 1/0/0 on the Router A to statically join IGMP group 225.1.1.1.[~RouterA] interface gigabitethernet 1/0/0[~RouterA-GigabitEthernet1/0/0] igmp static-group 225.1.1.1[~RouterA-GigabitEthernet1/0/0] commit[~RouterA-GigabitEthernet1/0/0] quit

Step 6 Verify the configuration.

# Run the display igmp interface command to view brief IGMP information on the interfacesof the router. For example, IGMP information on GE 1/0/0 of Router B is as follows:

<RouterB> display igmp interfaceInterface information of VPN-Instance: public net GigabitEthernet1/0/0(10.110.2.1): IGMP is enabled Current IGMP version is 2 IGMP state: up IGMP group policy: none IGMP limit: - Value of query interval for IGMP (negotiated): - Value of query interval for IGMP(in seconds): 60 s Value of other querier timeout for IGMP(in seconds): 0 s Value of maximum query response time for IGMP(in seconds): 10 s Querier for IGMP: 10.110.2.1 (this router) Total 1 IGMP Group reported

The command output shows that Router B is a querier. This is because GE 1/0/0 of Router Bhas the lowest IP address among the interfaces connected to the user network segment.

# Run the display pim routing-table command on Router A to check whether GE 1/0/0 hasjoined IGMP group 225.1.1.1 statically. If a (*, 225.1.1.1) entry is generated on Router A, thedownstream interface is GE 1/0/0, and the protocol type is static, GE 1/0/0 has joined IGMPgroup 225.1.1.1 statically. The command output as follows:

<RouterA> display pim routing-tableVPN-Instance: public net Total 1 (*, G) entry; 0 (S, G) entry (*, 225.1.1.1) RP: 192.168.4.1 Protocol: pim-sm, Flag: WC UpTime: 00:12:17 Upstream interface: Pos2/0/0 Upstream neighbor: 192.168.1.1 RPF prime neighbor: 192.168.1.1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet1/0/0 Protocol: igmp, UpTime: 00:12:17, Expires: -

----End

Configuration Filesl Configuration file of Router A

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

34

Page 45: Configuration Guide - IP Multicast

#sysname RouterA#multicast routing-enable#isis 1 network-entity 10.0000.0000.0001.00#interface GigabitEthernet1/0/0 undo shutdown ip address 10.110.1.1 255.255.255.0 pim sm igmp enable igmp static-group 225.1.1.1 isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.1.1 255.255.255.0 pim sm isis enable 1#return

l Configuration file of Router B#sysname RouterB#multicast routing-enable#isis 1 network-entity 10.0000.0000.0002.00#interface GigabitEthernet1/0/0 undo shutdown ip address 10.110.2.1 255.255.255.0 pim sm igmp enable isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.2.1 255.255.255.0 pim sm isis enable 1#return

l Configuration file of Router C#sysname RouterC#multicast routing-enable#isis 1 network-entity 10.0000.0000.0003.00#interface GigabitEthernet1/0/0 undo shutdown ip address 10.110.2.2 255.255.255.0 pim sm igmp enable isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.3.1 255.255.255.0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

35

Page 46: Configuration Guide - IP Multicast

pim sm isis enable 1#return

l Configuration file of Router D#sysname RouterD#multicast routing-enable#isis 1 network-entity 10.0000.0000.0004.00#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.4.1 255.255.255.0 pim sm isis enable 1#interface Pos2/0/1 undo shutdown link-protocol ppp ip address 192.168.1.2 255.255.255.0 pim sm isis enable 1#interface Pos2/0/2 undo shutdown link-protocol ppp ip address 192.168.2.2 255.255.255.0 pim sm isis enable 1#interface Pos2/0/3 undo shutdown link-protocol ppp ip address 192.168.3.2 255.255.255.0 pim sm isis enable 1#return

2.8.2 Example for Configuring IGMP SSM MappingIf user hosts on a network run only IGMPv1 or IGMPv2 and cannot be upgraded to IGMPv3,SSM mapping is required to implement version compatibility between a multicast device(running a higher IGMP version) and user hosts (running lower IGMP versions) and enable themulticast device to provide SSM services for the user hosts. The user hosts can then receivemulticast data from a specified source.

Networking Requirements

CAUTIONOn a single NE5000E, an interface is numbered in the format of slot number/card number/interface number. On an NE5000E cluster, an interface is numbered in the format of chassis ID/slot number/card number/interface number, and a slot is numbered in the format of chassis ID/slot number.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

36

Page 47: Configuration Guide - IP Multicast

On the multicast network shown in Figure 2-4, PIM-SM is run and the SSM mode is configuredto provide multicast services. IGMPv3 is run on the interface connecting the router to the receiverand IGMPv2 is run on the receiver. The IGMP version on the receiver is unable to be upgradedto IGMPv3.

The SSM group address range is set to 232.1.1.0/24 on the current network and Sources 1, 2,and 3 all send multicast data to multicast groups in this range. The receiver, however, wants toreceive multicast data only from Sources 1 and 3.

Figure 2-4 Networking diagram for configuring IGMP SSM mapping

GE1/0/0

Source2

Source1

Receiver

PIM-SM

RouterB

RouterD

RouterC

RouterA

Source3

GE1/0/0GE2/0/0

GE2/0/0

GE3/0/0

GE3/0/0

GE1/0/0GE2/0/0

GE3/0/0

GE2/0/0

GE1/0/0GE3/0/0

Leaf networkLeaf network

Leaf network

DSLAM

Device Interface IP Address Device Interface IP AddressRouter A GE 1/0/0 133.133.1.2/24 Router C GE 1/0/0 133.133.3.2/24

GE 2/0/0 192.168.1.1/24 GE 2/0/0 192.168.3.1/24GE 3/0/0 192.168.4.2/24 GE 3/0/0 192.168.2.2/24

Router B GE 1/0/0 133.133.2.2/24 Router D GE 1/0/0 133.133.4.2/24GE 2/0/0 192.168.1.2/24 GE 2/0/0 192.168.3.2/24GE 3/0/0 192.168.2.1/24 GE 3/0/0 192.168.4.1/24

PrecautionsWhen configuring IGMP SSM mapping, note the following points:

l PIM-SM and then IGMP need to be enabled on the interfaces connected to hosts.l The SSM group address ranges set on all routers in the PIM-SM domain must be consistent.l The SSM source/group address mapping entries configured on the interface take effect only

after SSM mapping is enabled on the interface.

Configuration RoadmapThe configuration roadmap is as follows:

1. Configure IP addresses for interfaces on each router and configure a unicast routingprotocol.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

37

Page 48: Configuration Guide - IP Multicast

2. Enable multicast routing on all routers that provide multicast services.3. Enable PIM-SM on all interfaces of the multicast routers.4. Enable IGMP and SSM mapping on the interface connecting the router to the receiver.5. Set SSM group address ranges on all routers in the PIM-SM domain.6. Configure SSM mapping rules on the router connected to the receiver.

Data PreparationTo complete the configuration, you need the following data.

l SSM group address rangel IP addresses of Sources 1 and 3

Procedure

Step 1 Configure IP addresses for interfaces on each router and configure a unicast routing protocol.The configuration details are not provided here.

Step 2 Enable multicast on each router and PIM-SSM on each interface of the routers.

# Configurations on Routers A, B, and C are similar to those on Router D and therefore theirconfiguration details are not provided here.

[~RouterD] multicast routing-enable[~RouterD] interface gigabitethernet 1/0/0[~RouterD-GigabitEthernet1/0/0] pim sm[~RouterD-GigabitEthernet1/0/0] quit[~RouterD] interface gigabitethernet 2/0/0[~RouterD-GigabitEthernet2/0/0] pim sm[~RouterD-GigabitEthernet2/0/0] quit[~RouterD] interface gigabitethernet 3/0/0[~RouterD-GigabitEthernet3/0/0] pim sm[~RouterD-GigabitEthernet3/0/0] commit[~RouterD-GigabitEthernet3/0/0] quit

Step 3 Enable IGMP and SSM mapping on the interface connecting the router to the receiver.

# Enable IGMP and SSM mapping on GE 1/0/0 of Router D.

[~RouterD] interface gigabitethernet 1/0/0[~RouterD-GigabitEthernet1/0/0] igmp enable[~RouterD-GigabitEthernet1/0/0] igmp version 3[~RouterD-GigabitEthernet1/0/0] igmp ssm-mapping enable[~RouterD-GigabitEthernet1/0/0] commit[~RouterD-GigabitEthernet1/0/0] quit

Step 4 Set SSM group address ranges.

# Set SSM group address ranges to 232.1.1.0/24 on all routers in the PIM-SM domain. Theconfigurations of Routers B, C, and D are similar to those on Router A. Their configurationdetails are not provided here.

[~RouterA] acl number 2000[~RouterA-acl4-basic-2000] rule permit source 232.1.1.0 0.0.0.255[~RouterA-acl4-basic-2000] quit[~RouterA] pim[~RouterA-pim] ssm-policy 2000[~RouterA-pim] commit[~RouterA-pim] quit

Step 5 Configure SSM mapping rules on the router connected to the receiver.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

38

Page 49: Configuration Guide - IP Multicast

# On Router D, map the multicast groups in the range of 232.1.1.0/24 to Sources 1 and 3.

[~RouterD] igmp[~RouterD-igmp] ssm-mapping 232.1.1.0 24 133.133.1.1[~RouterD-igmp] ssm-mapping 232.1.1.0 24 133.133.3.1[~RouterD-igmp] commit[~RouterD-igmp] quit

Step 6 Verify the configuration.

# View information about SSM mapping rules on Router D.

<RouterD> display igmp ssm-mapping groupIGMP SSM-Mapping conversion table of VPN-Instance: public net Total 2 entries 2 entries matched 00001. (133.133.1.1, 232.1.1.0) 00002. (133.133.3.1, 232.1.1.0) Total 2 entries matched

# The command output shows that the receiver joins group 232.1.1.1. Then run the display igmpgroup ssm-mapping command to view source/group information on router D. The commandoutput is as follows:

<RouterD> display igmp group ssm-mappingIGMP SSM mapping interface group report information of VPN-Instance: public net GigabitEthernet1/0/0 (133.133.4.2): Total 1 IGMP SSM-Mapping Group reported Group Address Last Reporter Uptime Expires 232.1.1.1 133.133.4.1 00:01:44 00:00:26<RouterD> display igmp group ssm-mapping verboseInterface group report information of VPN-Instance: public net Limited entry of this VPN-Instance: - GigabitEthernet1/0/0 (133.133.4.2): Total entry on this interface: 1 Limited entry on this interface: - Total 1 IGMP SSM-Mapping Group reported Group: 232.1.1.1 Uptime: 00:01:52 Expires: 00:00:18 Last reporter: 133.133.4.1 Last-member-query-counter: 0 Last-member-query-timer-expiry: off Group mode: exclude Version1-host-present-timer-expiry: off Version2-host-present-timer-expiry: 00:00:17

# Run the display pim routing-table command to view information about the PIM-SM routingtable on Router D. The command output is as follows:

<RouterD> display pim routing-tableVPN-Instance: public net Total 0 (*, G) entry; 2 (S, G) entries (133.133.1.1, 232.1.1.1) Protocol: pim-ssm, Flag:SG_RCVR UpTime: 00:11:25 Upstream interface: GigabitEthernet3/0/0 Upstream neighbor: 192.168.4.2 RPF prime neighbor: 192.168.4.2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet1/0/0 Protocol: ssm-map, UpTime: 00:11:25, Expires:- (133.133.3.1, 232.1.1.1) Protocol: pim-ssm, Flag:SG_RCVR UpTime: 00:11:25 Upstream interface: GigabitEthernet2/0/0 Upstream neighbor: 192.168.3.1 RPF prime neighbor: 192.168.3.1 Downstream interface(s) information:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

39

Page 50: Configuration Guide - IP Multicast

Total number of downstreams: 1 1: GigabitEthernet1/0/0 Protocol: ssm-map, UpTime: 00:11:25, Expires:-

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast routing-enable#acl number 2000 rule permit source 232.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0001.00#interface GigabitEthernet1/0/0 undo shutdown ip address 133.133.1.2 255.255.255.0 pim sm isis enable 1#interface GigabitEthernet2/0/0 undo shutdown ip address 192.168.1.1 255.255.255.0 pim sm isis enable 1#interface GigabitEthernet3/0/0 undo shutdown ip address 192.168.4.2 255.255.255.0 pim sm isis enable 1#pim ssm-policy 2000#return

l Configuration file of Router B#sysname RouterB#multicast routing-enable#acl number 2000 rule permit source 232.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0002.00#interface GigabitEthernet1/0/0 undo shutdown ip address 133.133.2.2 255.255.255.0 pim sm isis enable 1#interface GigabitEthernet2/0/0 undo shutdown ip address 192.168.1.2 255.255.255.0 pim sm isis enable 1#interface GigabitEthernet3/0/0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

40

Page 51: Configuration Guide - IP Multicast

undo shutdown ip address 192.168.2.1 255.255.255.0 pim sm isis enable 1#pim ssm-policy 2000#return

l Configuration file of Router C#sysname RouterC#multicast routing-enable#acl number 2000 rule permit source 232.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0003.00#interface GigabitEthernet1/0/0 undo shutdown ip address 133.133.3.2 255.255.255.0 pim sm isis enable 1#interface GigabitEthernet2/0/0 undo shutdown ip address 192.168.3.1 255.255.255.0 pim sm isis enable 1#interface GigabitEthernet3/0/0 undo shutdown ip address 192.168.2.2 255.255.255.0 pim sm isis enable 1#pim ssm-policy 2000#return

l Configuration file of Router D#sysname RouterD#multicast routing-enable#acl number 2000 rule permit source 232.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0004.00#interface GigabitEthernet1/0/0 undo shutdown ip address 133.133.4.2 255.255.255.0 isis enable 1 pim sm igmp enable igmp version 3 igmp ssm-mapping enable#interface GigabitEthernet2/0/0 undo shutdown ip address 192.168.3.2 255.255.255.0 pim sm

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

41

Page 52: Configuration Guide - IP Multicast

isis enable 1#interface GigabitEthernet3/0/0 undo shutdown ip address 192.168.4.1 255.255.255.0 pim sm isis enable 1#igmp ssm-mapping 232.1.1.0 255.255.255.0 133.133.1.1 ssm-mapping 232.1.1.0 255.255.255.0 133.133.3.1#pim ssm-policy 2000#return

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 2 IGMP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

42

Page 53: Configuration Guide - IP Multicast

3 PIM Configuration

About This Chapter

The PIM protocol is used to implement multicast routing and data forwarding in an AS.

3.1 PIM OverviewProtocol Independent Multicast (PIM) is an intra-domain multicast routing protocol. PIM usesthe existing unicast routing information to perform Reverse Path Forwarding (RPF) check onmulticast packets and create multicast routing entries. PIM can dynamically respond to thechanges of the network topology and maintain the multicast forwarding table.

3.2 PIM Features Supported by the NE5000EThe system supports PIM-SM and PIM-SSM. A device can run normally with default parametersof the system. You are allowed to adjust parameters related to neighbors and forwardingaccording to specific scenarios. In addition, you can configure various filtering policies toenhance the PIM network security.

3.3 Configuring PIM-SMIn a PIM-SM network, any sender can be a multicast source and receivers cannot know thelocation of multicast sources in advance. The RP is a forwarding core in the PIM-SM network.RPs are classified into static RPs and BSR RPs, responsible for collecting multicast sourceinformation and group member information.

3.4 Configuring a BSR BoundaryBefore configuring PIM inter-domain multicast, you need to configure a BSR boundary to dividethe network into multiple PIM-SM domains. Each BSR serves only the local PIM-SM domainand the routers outside the BSR boundary do not take part in BSR messages forwarding in thisPIM-SM domain.

3.5 Adjusting BSR RP ParametersIf a BSR RP is used, you can adjust parameters about C-RPs and C-BSRs as required andconfigure a BSR administrative domain.

3.6 Configuring PIM-SSMThe PIM-SSM model provides the source-specific transmission service for receivers. It isimplemented based on some PIM-SM technologies. In PIM-SSM, there is no need for RPmapping and a dedicated multicast forwarding path is set up directly between the source and thereceiver.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

43

Page 54: Configuration Guide - IP Multicast

3.7 Adjusting Other PIM ParametersYou can adjust neighbor parameters, DR parameters, and forwarding parameters according toactual networking environments.

3.8 Configuring PIM BFDAfter detecting a fault on the peer, BFD immediately notifies the PIM module to trigger a newDR election rather than waits until the neighbor relationship times out. This shortens the periodduring which multicast data transmission is discontinued and thus improves the reliability ofmulticast data transmission.

3.9 Maintaining PIMMaintaining PIM involves resetting PIM statistics, monitoring PIM running status, anddebugging PIM.

3.10 Configuration ExamplesConfiguration examples are provided to tell you how to construct a basic PIM network andconfigure basic functions of PIM.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

44

Page 55: Configuration Guide - IP Multicast

3.1 PIM OverviewProtocol Independent Multicast (PIM) is an intra-domain multicast routing protocol. PIM usesthe existing unicast routing information to perform Reverse Path Forwarding (RPF) check onmulticast packets and create multicast routing entries. PIM can dynamically respond to thechanges of the network topology and maintain the multicast forwarding table.

"Protocol Independent" indicates that the unicast routing protocol that provides unicast routinginformation for PIM can be a static route, Routing Information Protocol (RIP), Open ShortestPath First (OSPF), Intermediate-System to Intermediate-System (IS-IS), or Border GatewayProtocol (BGP). That is, multicast generates multicast routing entries based on a unicast routingtable, regardless of the type of unicast routing protocol.

PIM implements multicast packet forwarding with the help of RPF. The RPF mechanism usesexisting unicast routing information to build a Multicast Distribution Tree (MDT) on a network.When a multicast packet reaches the router, the router performs the RPF check first.

l If the packet passes the RPF check, the router creates a multicast routing entry, and thenforwards the packet.

l If the packet does not pass the RPF check, the router directly discards the packet.

PIM ModePIM has three modes: PIM-SM, PIM-SSM, and PIM-DM. PIM-SM and PIM-DM use the ASMgroup address range and PIM-SSM uses the SSM group address range.

l Protocol Independent Multicast Sparse Mode (PIM-SM)The PIM-SM mode is applicable to a large-scale network with sparsely-located members.The key mechanisms of PIM-SM are neighbor discovery, Designated Router (DR) election,Rendezvous Point (RP) discovery, join, prune, register, and Shortest Path Tree (SPT)switchover.

l Protocol Independent Multicast Source-Specific Multicast (PIM-SSM)In SSM mode, users can know the exact positions of multicast sources in advance.Therefore, users can specify the sources from which they want to receive data when theyjoin multicast groups. PIM-SSM adopts only some of PIM-SM technologies. It does notneed to maintain the RP, construct the RPT, or register the multicast source. An SPT canbe built directly from the source to the receiver's DR.

l Protocol Independent Multicast Dense Mode (PIM-DM)The PIM-DM mode is applicable to a small-scale network with densely-located members.The key mechanisms of PIM-DM are neighbor discovery, flooding, prune, graft, assert,and status refresh.

NOTE

Currently, the NE5000E supports PIM-SM and PIM-SSM.

PIM Routing EntryThe PIM routing table records all PIM routing entries and delivers them to the multicastforwarding table to guide the forwarding of multicast packets. In PIM, there are two types offorwarding entries, that is, (S, G) and (*, G). S indicates the multicast source, G indicates themulticast group, and * indicates any multicast source.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

45

Page 56: Configuration Guide - IP Multicast

l (S, G) is applicable to the multicast packet with S being the source address and G being thegroup address.

l (*, G) is applicable to the multicast packet from any source and with the group addressbeing G.

When a PIM router receives a multicast packet with the source address being S and the groupaddress being G and the packet passes the RPF check, the router forwards the packet accordingto the following rules:

l If the (S, G) entry exists, the router forwards the packet according to the (S, G) entry.l If the (S, G) entry does not exist, the router creates an (S, G) entry according to the (*, G)

entry, and then forwards the packet according to the (S, G) entry.

PIM routing entries contain such information as the multicast source address, multicast groupaddress, upstream interface, upstream neighbor, and downstream interface list to guide packetforwarding. A multicast packet reaches from a unique upstream interface and is forwardedthrough one or multiple downstream interfaces. Figure 3-1 displays the forwarding process ofmulticast packets (with the group address being 225.1.1.1) on Router A.

Figure 3-1 Multicast packet forwarding

Downstreamnetwork segment

Upstream networksegment

GE1/0/010.1.1.1/24

POS2/0/010.1.2.2/24

RouterB

10.1.8.1/24

Source

Host 2Receiver

RouterA

RouterCPOS2/0/0

10.1.2.1/24

GE3/0/010.1.3.1/24

Host 1Receiver

Downstreamnetwork segment

Upstream interfacesDownstream interfaces

Multicast packets

In Figure 3-1, check the PIM routing table on Router A.

<RouterA> display pim routing-table

VPN-instance: public net Total 0 (*, G) entry; 1 (S, G) entry (10.1.8.1, 225.1.1.1)

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

46

Page 57: Configuration Guide - IP Multicast

RP: 2.2.2.2 Protocol: pim-sm, Flag: SPT ACT UpTime: 01:35:25 Upstream interface: Pos2/0/0 Upstream neighbor: 10.1.2.2 RPF prime neighbor: 10.1.2.2 Downstream interface(s) information: Total number of downstreams: 2 1: GigabitEthernet3/0/0 Protocol: igmp, UpTime: 00:03:21, Expires: 00:03:10 2: GigabitEthernet1/0/0 Protocol: pim-sm, UpTime: 00:03:27, Expires: 00:03:15

The information used to guide packet forwarding is as follows:

l Source address: 10.1.8.1l Group address: 225.1.1.1l Upstream interface: POS 2/0/0; Upstream neighbor: 10.1.2.2; RPF neighbor: 10.1.2.2, that

is, Router Bl Downstream interface list: includes interfaces GE 1/0/0 and GE 3/0/0

3.2 PIM Features Supported by the NE5000EThe system supports PIM-SM and PIM-SSM. A device can run normally with default parametersof the system. You are allowed to adjust parameters related to neighbors and forwardingaccording to specific scenarios. In addition, you can configure various filtering policies toenhance the PIM network security.

PIM-SMl Static RP

You can configure the static RPs on all the routers in a PIM-SM domain. If there is a BSRRP in the domain, by default, the BSR RP is preferred; however, you can configure thestatic RP to be used preferentially.

l BSR RPYou can choose several routers in a PIM-SM domain and configure them as Candidate RPs(C-RPs) and Candidate BSR (C-BSRs). Through a uniform election rule, a BSR is elected.The BSR is responsible for collecting C-RP information and elects an RP.

l BSR boundaryYou can configure a BSR boundary on the interface of the router to limit the transmissionof BSR messages and thus divide the PIM-SM domain.

l BSR administrative domainYou can configure multiple BSR administrative domains in a PIM-SM domain. Each BSRadministrative domain maintains a BSR, serving only specific multicast groups. Themulticast groups that do not belong to any BSR administrative domain belong to the globaldomain. The global domain maintains a BSR, serving all the remaining multicast groups.

l C-RP and C-BSR parameter adjustmentYou can adjust C-RP parameters as required, including:– Priority of a C-RP for RP election– Interval for a C-RP to send Advertisement messages– Time period for a BSR to hold the Advertisement messages received from a C-RP

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

47

Page 58: Configuration Guide - IP Multicast

– ACL that defines the valid C-RP address range and the range of multicast groups servedby a C-RP

You can adjust C-BSR parameters as required, including:– Hash mask length of a C-BSR for RP calculation– Priority of a C-BSR for BSR election– Interval for a C-BSR to send BootStrap messages– Time period for a C-BSR to hold the BootStrap messages received from a BSR– ACL that defines the valid BSR address range

l Registration parameter adjustmentYou can adjust parameters used when a multicast source registers with an RP as required,including:– ACL used to filter Register messages– Method of calculating the checksum of Register messages– Holdtime of the register-suppression state– Interval for sending null Register messages

l SPT switchover conditions configurationYou can configure SPT switchover conditions and adjust the interval for checking theforwarding rate of multicast packets.

PIM-SSMWhen hosts join multicast groups, the source from which hosts want to receive data can bespecified and the SSM group address range can be configured as required.

Source Address-based FilteringYou can create an ACL for specifying the valid multicast source address range.

Neighbor Parameter AdjustmentYou can adjust control parameters about PIM neighbors as required, including:

l Interval for sending Hello messagesl Time period for a neighbor to hold the reachable statel Whether to accept the Hello messages with Generation IDsl Priority for DR electionl Neighbor filtering function

Forwarding Parameter AdjustmentYou can adjust control parameters about PIM forwarding as required, including:l Interval for sending Join messagesl Time period for a downstream interface to hold the forwarding statel Ttime for overriding the prune actionl Period for an interface to hold the Assert state

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

48

Page 59: Configuration Guide - IP Multicast

l Join/Prune message filtering

Multi-instance PIMIn multi-instance applications, a multicast router needs to maintain the PIM neighbor table, PIMrouting table, BSR information, and RP-set information for different VPN instances and keepthe information independent between the instances.

When the router receives a data packet, it needs to distinguish which VPN instance the packetbelongs to and forward it based on the multicast routing table of that VPN instance, or createmulticast routing entries related to that VPN instance.

PIM NSRPIM supports non-stop routing (NSR). After this function is enabled, when the active-standbyswitchover of the control plane occurs, the system can restore the services immediately, and thecontrol planes of its neighbors will not sense the switchover. During the active/standbyswitchover of the system's control planes, the system can process new services, such asprocessing new Join messages.

For details of NSR, refer to the HUAWEI NetEngine5000E Feature Description - Reliability.

PIM in Distributed Processing ModeThe PIM module has a core component responsible for calculating and maintaining routingentries. One main control board can start multiple core components. It considers all multicastgroup addresses as a set and divides the set into several subsets according to the hash result ofthe multicast group addresses. Each core component bears one or multiple subsets. The servicecarried by each subset is automatically allocated by the system. In this manner, multicast servicesare distributed and the CPU usage and memory usage are reduced.

3.3 Configuring PIM-SMIn a PIM-SM network, any sender can be a multicast source and receivers cannot know thelocation of multicast sources in advance. The RP is a forwarding core in the PIM-SM network.RPs are classified into static RPs and BSR RPs, responsible for collecting multicast sourceinformation and group member information.

Applicable EnvironmentIn a large-scale network where multicast group members are sparsely located and receivers donot need to specify multicast sources when they join multicast groups, you can configure PIM-SM. An RP is the forwarding core on the PIM-SM network. Group members and the multicastsource converge at the RP.

l After creating an (*, G) entry according to the new IGMP member relationship, thereceiver's DR sends a Join/Prune message to the RP.

l When a multicast source starts to send data to a group, the source's DR unicasts a Registermessage to the RP. After receiving the Register message, the RP decapsulates it and thenforwards the data to other multicast members along the RPT.

l RP switches traffic from the RPT to the SPT, then the RP sends a Register-Stop messageto the source's DR.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

49

Page 60: Configuration Guide - IP Multicast

PIM-SM supports two methods for obtaining the RP.

l Static RPManually configure an RP on each router in the PIM-SM domain. Static RP is applicableto small-scale PIM networks with stable topologies. For the large-scale PIM network,configuring a static RP is complicated. To enhance the robustness and the operationmanagement of the multicast network, the static RP is usually used as the backup of thedynamic RP.

l BSR RPSelect several routers in the PIM-SM domain and configure them as C-RPs and C-BSRs.Then, an RP is automatically elected in the PIM-SM domain.

A multicast group may be in the service ranges of both the BSR RP and static RP. By default,the router preferentially selects the BSR RP unless the static RP is configured to be preferentiallyselected.

It is recommended to configure an RP to serve only one multicast group. Compared with allgroups corresponding to only one RP, this can reduce the load of a single RP and enhance therobustness of the network.

Pre-configuration TasksBefore configuring PIM-SM, complete the following task:

l Configuring a unicast routing protocol to ensure normal unicast routing on the network

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

50

Page 61: Configuration Guide - IP Multicast

Configuration Procedures

Figure 3-2 Flowchart for configuring PIM-SM

MandatoryprocedureOptional

procedure

Use a static RP

Enable multicast routing

Enable PIM-SM

Configure a static RP

Configure a BSR RP

Adjust sourceregistration parameters

Set a multicast sourceaddress range

Use a BSR RP

Enable multicast routing

Enable PIM-SM

Configure a BSR RP

Configure a static RP

Adjust sourceregistration parameters

Set a multicast sourceaddress range

3.3.1 Enabling Multicast RoutingEnabling multicast routing on the router is a prerequisite for configuring any multicast features.

Context

The configuration related to the VPN instance is only required on the PE. If the PE has a VPNinstance interface connected to the host, you must perform Steps 3 and 4.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:multicast routing-enable

IP multicast routing is enabled in the public network instance.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

51

Page 62: Configuration Guide - IP Multicast

CAUTIONRunning the undo multicast routing-enable command will clear all the multicastconfigurations of the public network instance or the VPN instance and terminate the multicastservice running in the instance. If you want to restore the multicast service in the instance, re-configure the related command.

Step 3 (Optional) Run:ip vpn-instance vpn-instance-name

The VPN instance view is displayed.

Step 4 (Optional) Run:ipv4-family

The IPv4 address family is enabled for the VPN instance and the VPN instance IPv4 addressfamily view is displayed.

Step 5 (Optional) Run:route-distinguisher route-distinguisher

An RD is configured for the VPN instance IPv4 address family.

Step 6 (Optional) Run:multicast routing-enable

IP multicast routing is enabled in the VPN instance.

Step 7 Run:commit

The configuration is committed.

----End

3.3.2 Enabling PIM-SMAfter PIM-SM is enabled on the interface connected to other routers, the interface can establishPIM neighbor relationships with the routers.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The interface view is displayed.

Step 3 Run:pim sm

PIM-SM is enabled.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

52

Page 63: Configuration Guide - IP Multicast

CAUTIONRunning the undo pim sm command will clear PIM neighbor relationships on the interface andterminate the multicast service running on the interface.

Step 4 Run:commit

The configuration is committed.

----End

3.3.3 Configuring a Static RPIf you need to manually specify the location of the RP and range of multicast groups that the RPserves, you need to configure the same static RP on all the routers in a PIM-SM domain.

Contextrouters that are not configured with a static RP cannot forward multicast packets in the PIM-SMdomain.

If the network is divided into several PIM-SM domains and the static RP needs to be used, youneed to configure the same static RP on all the routers in one PIM-SM domain to specify therange of each PIM-SM domain.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

Step 3 Run:static-rp rp-address [ basic-acl-number | acl-name acl-name ] [ preferred ]

A static RP is specified.

You can run this command repeatedly to configure multiple static RPs for the router.

l rp-address specifies the static RP address.l basic-acl-number specifies an access control list. Such a list defines the range of the multicast

groups that the static RP serves. When the scopes of multicast groups that multiple static RPsserve overlap, the static RP with the highest IP address acts as the RP.

l preferred indicates that the static RP takes precedence. If C-RPs are configured on thenetwork at the same time and preferred is set, routers prefer the statically specified RP;otherwise, C-RPs are preferred.

Step 4 Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

53

Page 64: Configuration Guide - IP Multicast

The configuration is committed.

----End

3.3.4 Configuring a BSR RPSelect several routers and configure them as C-BSRs and C-RPs. A BSR is elected from C-BSRs. The BSR is responsible for collecting C-RP information and summarizing C-RPinformation into an RP-set. The RP-set is then encapsulated in a BootStrap message andadvertised to all the routers in the PIM domain. According to a uniform election rule, the C-RPselect a BSR RP.

ContextIf a network is divided into several PIM-SM domains and the BSR RP needs to be used, 3.4Configuring a BSR Boundary is required on the interfaces of the routers at the edge of PIM-SM domains to limit the range of each PIM-SM domain. Then, configure C-BSRs and C-RPsin each PIM-SM domain.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

Step 3 Run:c-bsr interface-type interface-number [ hash-length [ priority ] ]

The C-BSR is configured.

l interface-type interface-number specifies the interface where the C-BSR resides. Theinterface must be configured with the PIM-SM.

l hash-length specifies the length of the hash mask.According to the group address G, C-RP address, and the value of hash-length, the routercalculates the hash value of the C-RPs that have the same priority and want to serve G. TheC-RP with the greatest hash value acts as the RP for G.

l priority specifies the C-BSR priority for BSR election. The greater the value, the higher thepriority.In the BSR election, the C-BSR with the highest priority wins. In the case of the same priority,the C-BSR with the highest IP address wins.

Step 4 Run:c-rp interface-type interface-number [ group-policy { basic-acl-number | acl-name acl-name } | priority priority | holdtime hold-interval | advertisement-interval adv-interval ] *

The C-RP is configured.

l interface-type interface-number specifies the interface where the C-RP resides. The interfacemust be configured with PIM-SM.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

54

Page 65: Configuration Guide - IP Multicast

NOTE

If IP address unnumbered is enabled, it is not recommended to configure the interfaces with the sameaddress as C-RPs simultaneously. If the priorities of C-RPs are different, the BSR considers that theC-RP configuration is frequently modified.

l group-policy basic-acl-number specifies that the C-RP serves only the multicast groupsmatching the ACL. By default, the C-RP serves all the multicast groups.

l priority priority specifies the C-RP priority for RP election. The greater the value, the lowerthe priority.The RP election rules are as follows:

– The C-RP with the longest interface address mask wins.

– In case of the same interface address mask, the C-RP with the highest priority wins.

– In case of the same priority, the hash function is used and the C-RP with the greatest hashvalue wins.

– In case of the same priority and the same hash value, the C-RP with the highest IP addresswins.

l holdtime hold-interval specifies the timeout period for the BSR to wait for an Advertisementmessage from the C-RP.

l advertisement-interval adv-interval specifies the interval for the C-RP to sendAdvertisement messages.

Step 5 Run:commit

The configuration is committed.

----End

3.3.5 (Optional) Setting a Multicast Source Address RangeYou can configure multicast source addresses-based filtering policies by creating ACLs. Then,a PIM router forwards only the multicast packets whose source address or source/groupaddresses match the ACLs.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

Step 3 Run:source-policy { acl-number | acl-name acl-name }

The multicast source address range is set.

l If a basic ACL is created, only the multicast packets whose source addresses match the ACLare forwarded.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

55

Page 66: Configuration Guide - IP Multicast

l If an advance ACL is created, only the multicast packets whose source addresses and groupaddresses match the ACL are forwarded.

l If the specified ACL does not exist, no multicast packets can be forwarded.

NOTE

The source-policy command is not applicable to static (S, G) entries.

Step 4 Run:commit

The configuration is committed.

----End

3.3.6 (Optional) Adjusting Source Registration ParametersA new multicast source must register with the RP. You can configure policies of filtering Registermessages on the C-RPs and configure a device to calculate the checksum of each Registermessage according to the header of the Register message. In addition, you can set the holdtimeof the register-suppression state and the interval for sending null Register messages on thesource's DR.

ContextOn a PIM-SM network, the source's DR encapsulates multicast data into Register messages andsends them to the RPs in unicast mode. The RP then decapsulates the message, and forwardsthe extracted multicast data to receivers along the RPT. To prevent the attack of illegal Registermessages, you can configure the RP to accept or deny the Register messages matching certainrules.

After the SPT switchover on the RP is complete, the multicast data reaches the RP along thesource tree in multicast mode. The RP then sends a Register-Stop message to the source's DR.The source's DR stops sending Register messages and enters the register-suppression state.During the register-suppression period, the DR periodically sends a Probe message (null Registermessage) to notify the RP that the multicast source is still in the active state. After the register-suppression period expires, the DR resends Register messages.

The router can work normally with default control parameters. You are allowed to adjustregistration parameters according to the specific networking environment.

NOTE

If there is no special requirement for the network, default parameters are recommended.

Procedurel Controlling the receiving of Register messages on the C-RP

1. Run:system-view

The system view is displayed.2. Run:

pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.3. Run:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

56

Page 67: Configuration Guide - IP Multicast

register-policy { advanced-acl-number | acl-name acl-name }

The policy of filtering Register messages is created.

– If the (S, G) information carried in the Register message is denied by the ACL orthe ACL does not define the operation on this message, the RP discards the Registermessage and hence the multicast source cannot register with the RP.

– If the specified ACL does not exist, the RP denies all the received Registermessages and hence no multicast sources can register with the RP.

4. Run:register-header-checksum

The checksum is calculated only according to the header of a Register message.

By default, the checksum is calculated according to the entire message. The RPdiscards any Register message with an incorrect checksum.

5. Run:commit

The configuration is committed.

l Controlling register suppression on the source's DR

1. Run:system-view

The system view is displayed.

2. Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

3. Run:register-suppression-timeout interval

The holdtime of the register-suppression state is set.

By default, the holdtime of the register-suppression state of the source's DR is 60seconds.

– If interval is set to a smaller value, the RP receives burst multicast data morefrequently.

– If interval is set to a greater value, when the (S, G) entry on the RP times out, thedelay for new receivers to join the multicast group is prolonged.

4. Run:probe-interval interval

The interval for sending Probe messages (null Register messages) is set.

By default, the interval for the source's DR to send Probe messages to the RP is 5s.

5. Run:commit

The configuration is committed.

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

57

Page 68: Configuration Guide - IP Multicast

3.3.7 (Optional) Configuring SPT Switchover ConditionsPIM-SM allows the RP or the receiver's DR to trigger the SPT switchover when the rate ofmulticast packets is high. You can configure SPT switchover conditions and set the interval forchecking the forwarding rate of multicast packets on the receiver's DR.

ContextIn PIM-SM forwarding, each multicast group corresponds to an RPT only. At first, all multicastsources encapsulate data in Register messages, and send the messages to the RP in unicast mode.The RP decapsulates the messages and forwards the data along the RPT.

Forwarding multicast data along an RPT has the following disadvantages:

l The source's DR and the RP need to encapsulate and decapsulate messages.l The forwarding path may not be the shortest path from the source to receivers.l Heavy data traffic increases the load of the RP, which may cause a fault.

The detailed solutions to this problem are as follows:

l SPT switchover triggered by the RPThe RP sends a Join message to the source and establishes a multicast route along theshortest path from the source's DR to the RP. The subsequent multicast packets are directlytransmitted along this path.

l SPT switchover triggered by the receiver's DRThe receiver's DR checks the forwarding rate of multicast data. If finding that the rateexceeds the threshold, the receiver's DR triggers the SPT switchover immediately. Thereceiver's DR then sends a Join message to the source and establishes a multicast routealong the shortest path from the source's DR to the receiver's DR. The subsequent packetsare forwarded along this path.

By default, the RP performs the SPT switchover after receiving the first Register message andthe receiver's DR performs the SPT switchover after receiving the first multicast data packet.The router can work normally with default control parameters. You are allowed to adjust STPswitchover parameters according to the specific networking environment.

NOTE

If there is no special requirement for the network, default values are recommended.

ProcedureStep 1 Run:

system-view

The system view is displayed.

Step 2 Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

Step 3 Run:spt-switch-threshold { traffic-rate | infinity } [ group-policy { basic-acl-number | acl-name acl-name } [ order order-value ] ]

SPT switchover conditions are configured.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

58

Page 69: Configuration Guide - IP Multicast

NOTE

This command takes effect only on every router that may function a receiver's DR. It does not take effecton the RP.

l traffic-rate specifies the rate threshold of the multicast data at which the receiver's DR triggersthe SPT switchover.

NOTE

After traffic-rate is specified, Step 4 is required.

l infinity indicates that the receiver's DR never triggers the SPT switchover. Thus, multicastdata can be transmitted to the receiver only along the RPT.

l group-policy basic-acl-number specifies the range of the multicast groups to which the setrate threshold is applicable. By default, the set threshold is applicable to all multicast groups.

l order order-value is used to adjust the order of the ACLs in the group-policy list. If a groupmatches multiple ACLs, the threshold is selected in the order specified by order-value.

Step 4 (Optional) Run:timer spt-switch interval

The interval for checking the forwarding rate of multicast packets is set.

Step 5 Run:commit

The configuration is committed.

----End

3.3.8 Checking the ConfigurationAfter PIM-SM is configured successfully, you can check information about the BSR, RP, PIMinterface, PIM neighbor, and PIM routing table through commands.

Prerequisite

All configurations of PIM-SM are complete.

Procedurel Run the display pim [ vpn-instance vpn-instance-name | all-instance ] bsr-info command

to check information about the BSR in the PIM-SM domain.

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] interface[ interface-type interface-number ] [ verbose ] command to check information about thePIM interface.

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] neighbor[ interface interface-type interface-number | neighbor-address | verbose ] * command tocheck information about the PIM neighbor.

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] routing-table[ group-address [ mask { group-mask-length | group-mask } ] ] [ source-address [ mask{ source-mask-length | source-mask } ] ] [ outgoing-interface include { interface-typeinterface-number | register | none } ] [ fsm ] command to check information about the PIMrouting table.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

59

Page 70: Configuration Guide - IP Multicast

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] rp-info [ group-address ] command to check information about the RP in the PIM-SM domain.

----End

ExampleRun the display pim bsr-info command, and you can view "Elected BSR Address" and"Candidate BSR Address" in the command output and the "State" field is displayed as "Elected",indicating that the C-BSR is elected as a BSR. For example:

<HUAWEI> display pim bsr-info VPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 10.1.2.2 Priority: 0 Hash mask length: 30 State: Elected Scope: Not scoped Uptime: 00:10:42 Next BSR message scheduled at: 00:00:31 C-RP Count: 1 Candidate AdminScope BSR Count: 0 Candidate BSR Address: 10.1.2.2 Priority: 0 Hash mask length: 30 State: Elected Scope: Not scoped Wait to be BSR: 0

Run the display pim interface command, and you can view that the PIM status of the interfaceis Up and view the number of PIM neighbors on the interface. For example:

<HUAWEI> display pim interfaceVPN-Instance: public net Interface State NbrCnt HelloInt DR-Pri DR-Address GE1/3/0 up 1 30 1 10.1.1.2 GE1/3/1 up 0 30 1 172.168.0.2 (local) GE1/3/2 up 1 30 1 20.1.1.2 Loopback0 up 0 30 1 1.1.1.1 (local)

Run the display pim neighbor command, and you can view the number of PIM neighbors, PIMneighbor addresses, and interfaces that set up PIM neighbor relationships. For example:

<HUAWEI> display pim neighbor VPN-Instance: public net Total Number of Neighbors = 2Neighbor Interface Uptime Expires Dr-Priority BFD-Session10.1.1.2 GE1/3/0 02:50:49 00:01:31 1 N20.1.1.2 GE1/3/2 02:49:39 00:01:42 1 N

Run the display pim routing-table command, and you can view source addresses and groupaddresses of PIM entries and information about the RP, upstream interface, and downstreaminterface. For example:

<HUAWEI> display pim routing-table

VPN-Instance: public net Total 0 (*, G) entry; 1 (S, G) entry

(172.168.0.12, 227.0.0.1) RP: 2.2.2.2 Protocol: pim-sm, Flag: SPT LOC ACT UpTime: 02:54:43 Upstream interface: GigabitEthernet1/3/1 Upstream neighbor: NULL

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

60

Page 71: Configuration Guide - IP Multicast

RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet1/3/2 Protocol: pim-sm, UpTime: 02:54:43, Expires: 00:02:47

Run the display pim rp-info command, and you can view the RP address, RP priority, andaddresses of the groups that the RP serves. "local" indicates that the local router is selected asan RP. For example:

<HUAWEI> display pim rp-info VPN-Instance: public net PIM-SM BSR RP information: Group/MaskLen: 224.0.0.0/4 RP: 2.2.2.2 (local) Priority: 0 Uptime: 03:01:36 Expires: 00:02:29

3.4 Configuring a BSR BoundaryBefore configuring PIM inter-domain multicast, you need to configure a BSR boundary to dividethe network into multiple PIM-SM domains. Each BSR serves only the local PIM-SM domainand the routers outside the BSR boundary do not take part in BSR messages forwarding in thisPIM-SM domain.

Applicable Environment

After a BSR boundary is configured on the interface of the router at the edge of a PIM-SMdomain, BootStrap messages cannot pass through this interface. The interfaces configured withBSR boundaries divide the network into different PIM-SM domains.

In addition, BSR boundaries can be used to isolate the PIM-SM domains from the Internet.

Pre-configuration Tasks

Before configuring a BSR boundary, complete the following tasks:

l Configuring a unicast routing protocol to ensure normal unicast routing on the networkl Enabling multicast routing on all routers and enable PIM-SM on all the interfaces

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The view of the interface on the router at the edge of the PIM-SM domain is displayed.

Step 3 Run:pim bsr-boundary [ incoming ]

A BSR boundary is configured. BSR messages cannot cross the BSR boundary.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

61

Page 72: Configuration Guide - IP Multicast

If incoming is specified, it indicates that the local PIM-SM domain can send BSR messages toall the other PIM-SM domains but cannot receive BSR messages from other PIM-SM domains.

By default, all PIM-SM routers on the network can receive BSR messages.

Step 4 Run:commit

The configuration is committed.

----End

Checking the ConfigurationRun the display pim [ vpn-instance vpn-instance-name | all-instance ] bsr-info command tocheck information about the BSR in each PIM-SM domain.

Follow-up Procedure1. 3.3.4 Configuring a BSR RP for each PIM-SM domain2. Setting up MSDP peer relationships between RPs in PIM-SM domains and 4.3

Configuring PIM-SM Inter-domain Multicast

3.5 Adjusting BSR RP ParametersIf a BSR RP is used, you can adjust parameters about C-RPs and C-BSRs as required andconfigure a BSR administrative domain.

Applicable EnvironmentAt first, each C-BSR considers itself as a BSR and sends BootStrap messages carrying the C-BSR addresses and C-BSR priorities on the entire network. Each router receives the BootStrapmessages sent by all the C-BSRs. The router then compares these messages and elects a BSR.All routers use the same election rule and therefore the elected BSRs are the same.

All routers on the network must know the BSR address. C-RPs send Advertisement messagesto the BSR. An Advertisement message carries the C-RP address, the range of multicast groupsthe C-RP serves, and the C-RP priority. The BSR summarizes these information into an RP-set,encapsulates the RP-set in a BootStrap message, and advertises the message to all the otherrouters on the network. Based on the RP-set, each router calculates routes by using the samerule and elects the RP of this group from the multiple C-RPs to which a specific groupcorresponds.

The router can work normally with default control parameters. You are allowed to adjust BSRRP parameters according to the specific networking environment.

NOTE

If there is no special requirement for the network, default values are recommended.

Pre-configuration TasksBefore adjusting BSR RP parameters, complete the following tasks:

l Configuring a unicast routing protocol to ensure normal unicast routing on the network

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

62

Page 73: Configuration Guide - IP Multicast

l Configuring PIM-SM and using the BSR RP

Configuration ProceduresYou can choose to perform some of the following configuration tasks (except "Checking theConfiguration") according to the applicable environment.

3.5.1 Adjusting C-RP ParametersC-RPs periodically send Advertisement messages to a BSR. The Advertisement messages carryC-RP priorities. You can adjust the C-RP priority, the interval for sending Advertisementmessages, and the holdtime of Advertisement messages on a router configured as a C-RP.

ContextRP election rules are as follows:

l The C-RP with the longest interface address mask wins.l The C-RP with the highest priority wins.l In case of the same priority, hash functions are run. The C-RP with the greatest calculated

value wins.l If all the preceding factors are the same, the C-RP with the highest address wins.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

Step 3 Run:c-rp priority priority

The global priority of the C-RP is set.

The greater the value, the lower the priority. By default, the global priority of the C-RP is 0.

Step 4 Run:c-rp advertisement-interval interval

The interval for the C-RP to send Advertisement messages is set.

By default, the interval is 60 seconds.

Step 5 Run:c-rp holdtime interval

The time period for the BSR to hold the Advertisement messages received from the C-RP is set.

NOTE

This time period must be longer than the interval for the C-RP to send Advertisement messages.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

63

Page 74: Configuration Guide - IP Multicast

The C-RP periodically sends Advertisement messages to the BSR. After receiving theAdvertisement messages, the BSR obtains the Holdtime of the C-RP from the message and startsa timer. If the BSR receives no Advertisement messages within the Holdtime, the BSR considersthe C-RP invalid or unavailable.

By default, the BSR holds the Advertisement messages received from the C-RP for about 150seconds.

Step 6 Run:commit

The configuration is committed.

----End

3.5.2 Setting a Legal C-RP Address RangeYou can create ACL rules on all C-BSRs for filtering C-RP addresses and the addresses of groupsthat C-RPs serve. A BSR accepts the Advertisement messages and adds C-RP information tothe RP-set only when C-RP addresses and the addresses of the groups that C-RPs serve in theAdvertisement messages are within the legal address range. Thus, the C-RP spoofing is avoided.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

Step 3 Run:crp-policy { advanced-acl-number | acl-name acl-name }

The legal C-RP address range and the range of groups that C-RPs serve are limited.

l If C-RP addresses or the addresses of the groups that the C-RPs serve carried in theAdvertisement messages are denied by the ACL or the ACL does not define the operationon the messages, the BSR discards the Advertisement message and hence C-RP informationis not added to the RP-Set.

l If no ACL rule corresponding to the specified advanced-acl-number exists, the BSR alsodenies all the Advertisement messages and C-RP information is not added to the RP-Set.

By default, the BSR does not check the C-RP addresses and the addresses of the groups that theC-RPs serve carried in the received Advertisement message. Thus, all the Advertisementmessages are accepted.

Step 4 Run:commit

The configuration is committed.

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

64

Page 75: Configuration Guide - IP Multicast

3.5.3 Adjusting C-BSR ParametersAt first, each C-BSR considers itself as a BSR and sends BootStrap messages to all the otherrouters on the network. You can adjust the hash mask length of the C-BSR carried in a Bootstrapmessage, the C-RP priority, the interval for sending BootStrap messages, and the holdtime ofBootStrap messages on a router configured as a C-BSR.

ContextBSR election rules are as follows:

l The C-BSR with the highest priority wins.l In case of the same priority, the C-BSR with the highest IP address wins.

Based on the result of the BSR election, a C-BSR performs one of the following operations:

l If the C-BSR wins, it periodically sends BootStrap messages to routers on the network. TheBootStrap messages carry the IP addresses of the C-BSRs and the RP-set information.

l If the C-BSR fails in the election, the C-BSR is suppressed from sending BootStrapmessages.

l When the current BSR becomes faulty, the C-BSRs automatically trigger a new round ofBSR election to prevent service interruption.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

Step 3 Run:c-bsr hash-length hash-length

The global hash mask length of the C-BSR is set.

The hash mask length carried in a BootStrap message is used for RP calculation. By default, theglobal hash mask length of the C-BSR is 30.

Step 4 Run:c-bsr priority priority

The global priority of the C-BSR is set.

The greater the value, the higher the priority. By default, the global priority of the C-BSR is 0.

Step 5 Run:c-bsr interval interval

The interval for the C-BSR to send BootStrap messages is set.

By default, the interval for the C-BSR to send BootStrap messages is 60 seconds.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

65

Page 76: Configuration Guide - IP Multicast

Step 6 Run:c-bsr holdtime interval

The holdtime of the BootStrap messages received by the router from the BSR is set.

NOTE

The holdtime of the BootStrap messages received by the router from the BSR must be longer than theinterval for the C-BSR to send BootStrap messages. Otherwise, the BSR election may be unstable.

The BSR periodically sends a BootStrap message to the routers on the network. After receivingthe BootStrap message, the routers hold the message for a certain time period. During the period,BSR election stops temporarily. If this period expires, a new round of BSR election is triggeredamong C-BSRs.

By default, the router holds the BootStrap message received from the BSR for 130 seconds.

Step 7 Run:commit

The configuration is committed.

----End

3.5.4 Setting a Legal BSR Address RangeYou can create ACL rules on all devices to filter BSR addresses. The devices then receive onlythe BootStrap messages with the source addresses being in the valid BSR address range. Thus,BSR spoofing is avoided.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

Step 3 Run:bsr-policy { basic-acl-number | acl-name acl-name }

A legal BSR address range is set.

l If the source addresses carried in the BootStrap messages are denied by the ACL or the ACLdoes not define the operation on the messages, the routers discard the BootStrap messages.

l If no ACL rule corresponding to the specified basic-acl-number exists, the routers also denyall the BootStrap messages.

By default, the routers do not check the source addresses of BootStrap messages. That is, therouters consider all the received BootStrap messages legal.

Step 4 Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

66

Page 77: Configuration Guide - IP Multicast

The configuration is committed.

----End

3.5.5 Configuring a BSR Administrative DomainBy dividing a PIM-SM network into multiple BSR administrative domains and a global domain,the workload of a single BSR is reduced and private group addresses can be used for providingspecial services for users in specific domains.

ContextBy default, one PIM-SM domain has only one BSR to manage the entire domain.

To manage networks effectively, you need to configure multiple BSR administrative domainsin a PIM-SM network. Each BSR administrative domain maintains only one BSR that serves amulticast group within a specific address range. The multicast group that does not belong to anyBSR administrative domain belongs to the global domain. The global domain maintains a BSRthat serves the other multicast groups.

NOTE

You can adjust the hash mask length and priority of the C-BSR as required:

l Global configuration: See 3.5.3 Adjusting C-BSR Parameters. The global value takes effect in boththe global domain and BSR administrative domains.

l BSR administrative domain configuration: The configuration for the BSR administrative domain takesprecedence over the global configuration. If the configuration for the BSR administrative domain isnot done, the global configuration is used.

l Global domain configuration: The configuration for the global domain takes precedence over the globalconfiguration. If the configuration for the global domain is not done, the global configuration is used.

Procedure

Step 1 Enabling the BSR administrative domain function on all routers1. Run:

system-view

The system view is displayed.2. Run:

pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.3. Run:

c-bsr admin-scope

The BSR administrative domain function is enabled.4. Run:

commit

The configuration is committed.

Step 2 Setting the ranges of multicast groups that C-BSRs in the BSR administrative domain serve andadjusting the hash mask lengths and priorities of the C-BSRs in the BSR administrative domainon all C-BSRs1. Run:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

67

Page 78: Configuration Guide - IP Multicast

system-view

The system view is displayed.

2. Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

3. Run:c-bsr group group-address { mask | mask-length } [ hash-length hash-length | priority priority ] *

The range of the multicast groups that a C-BSR in the BSR administrative domain servesis set and the hash mask length and priority of the C-BSR in the BSR administrative domainare adjusted.

group-address { mask | mask-length } specifies the range of the multicast groups that theC-BSR in the BSR administrative domain serves. The valid multicast groups range from239.0.0.0 to 239.255.255.255. The ranges of multicast groups that C-BSRs in different BSRadministrative domains serve can overlap. The multicast group takes effect only in the localadministrative domain, that is, a private multicast group address is used.

4. Run:commit

The configuration is committed.

Step 3 (Optional) Adjusting the hash mask lengths and priorities of all the C-BSRs in the global domain

1. Run:system-view

The system view is displayed.

2. Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

3. Run:c-bsr global [ hash-length hash-length | priority priority ] *

The hash mask length and priority of a C-BSR in the global domain are adjusted.

4. Run:commit

The configuration is committed.

----End

3.5.6 Checking the ConfigurationAfter BSR RP parameters are adjusted, you can run commands to view BSR and RP information.

Prerequisite

C-BSR parameters are adjusted as required.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

68

Page 79: Configuration Guide - IP Multicast

Procedurel Run the display pim [ vpn-instance vpn-instance-name | all-instance ] bsr-info command

to check information about the BSR in the PIM-SM domain.l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] rp-info [ group-

address ] command to check information about the RP in the PIM-SM domain.

----End

ExampleRun the display pim bsr-info command, and you can view information about the elected BSR.For example:

<HUAWEI> display pim bsr-info VPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 10.1.2.2 Priority: 0 Hash mask length: 30 State: Accept Preferred Scope: Not scoped Uptime: 00:10:42 Next BSR message scheduled at: 00:00:31 C-RP Count: 1 Candidate AdminScope BSR Count: 0 Candidate BSR Address: 10.1.2.2 Priority: 0 Hash mask length: 30 State: Elected Scope: Not scoped Wait to be BSR: 0

Run the display pim rp-info command, and you can view information about the RP address,RP priority, and addresses of the groups that the RP serve. For example:

<HUAWEI> display pim rp-info VPN-Instance: public net PIM-SM BSR RP information: Group/MaskLen: 224.0.0.0/4 RP: 2.2.2.2 (local) Priority: 0 Uptime: 03:01:36 Expires: 00:02:29

3.6 Configuring PIM-SSMThe PIM-SSM model provides the source-specific transmission service for receivers. It isimplemented based on some PIM-SM technologies. In PIM-SSM, there is no need for RPmapping and a dedicated multicast forwarding path is set up directly between the source and thereceiver.

Applicable EnvironmentPIM-SSM adopts some PIM-SM technologies. In PIM-SSM, there is no need for RP mapping,RPT construction, or multicast source registration. In PIM-SSM, the DR is valid only on theshared network segment connected with group members. After knowing the requirements ofusers, the receiver's DR sends a Join message to the multicast source. The Join message is sentupstream hop by hop and (S, G) entries are created correspondingly. As a result, an SPT fromthe router directly connected to the source to the receiver's DR is set up.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

69

Page 80: Configuration Guide - IP Multicast

The SSM model is applicable when the following conditions are met:

l The multicast group that users join is in the SSM group address range.l Users specify the sources when joining a multicast group.l PIM-SM is run between routers.

A network can adopt the PIM-SM and PIM-SSM models simultaneously to provide multicastservices for hosts. PIM-SM, including the RP, is configured on the network and the SSM groupaddress range is adjusted as required. If the groups that hosts join are beyond the SSM groupaddress range, PIM-SM implements multicast data forwarding.

Pre-configuration TasksBefore configuring PIM-SSM, complete the following task:

l Configuring a unicast routing protocol to ensure normal unicast routing on the network

Configuration Procedures

Figure 3-3 Flowchart for configuring PIM-SSM

Enable multicast routing

Enable PIM-SM

Set an SSM groupaddress range

Set a multicast source addressrange

MandatoryprocedureOptional

procedure

3.6.1 Enabling Multicast RoutingEnabling multicast routing on the router is a prerequisite for configuring any multicast features.

ContextThe configuration related to the VPN instance is only required on the PE. If the PE has a VPNinstance interface connected to the host, you must perform Steps 3 and 4.

Procedure

Step 1 Run:system-view

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

70

Page 81: Configuration Guide - IP Multicast

The system view is displayed.

Step 2 Run:multicast routing-enable

IP multicast routing is enabled in the public network instance.

CAUTIONRunning the undo multicast routing-enable command will clear all the multicastconfigurations of the public network instance or the VPN instance and terminate the multicastservice running in the instance. If you want to restore the multicast service in the instance, re-configure the related command.

Step 3 (Optional) Run:ip vpn-instance vpn-instance-name

The VPN instance view is displayed.

Step 4 (Optional) Run:ipv4-family

The IPv4 address family is enabled for the VPN instance and the VPN instance IPv4 addressfamily view is displayed.

Step 5 (Optional) Run:route-distinguisher route-distinguisher

An RD is configured for the VPN instance IPv4 address family.

Step 6 (Optional) Run:multicast routing-enable

IP multicast routing is enabled in the VPN instance.

Step 7 Run:commit

The configuration is committed.

----End

3.6.2 Enabling PIM-SMAfter PIM-SM is enabled on the interface connected to other routers, the interface can establishPIM neighbor relationships with the routers.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

71

Page 82: Configuration Guide - IP Multicast

The interface view is displayed.

Step 3 Run:pim sm

PIM-SM is enabled.

CAUTIONRunning the undo pim sm command will clear PIM neighbor relationships on the interface andterminate the multicast service running on the interface.

Step 4 Run:commit

The configuration is committed.

----End

3.6.3 Setting an SSM Group Address RangePIM-SSM and PIM-SM have different group address ranges. If the group a host joins is in theSSM group address range, PIM-SSM is adopted for multicast data forwarding; otherwise, PIM-SM is adopted. The default SSM group address range is 232.0.0.0/8. You can modify the SSMgroup address range.

Context

CAUTIONEnsure that the SSM group address ranges of all routers on the network are identical. Otherwise,faults may occur on the network.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

Step 3 Run:ssm-policy { basic-acl-number | acl-name acl-name }

The SSM group address range is configured.

Step 4 Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

72

Page 83: Configuration Guide - IP Multicast

The configuration is committed.

----End

3.6.4 (Optional) Setting a Multicast Source Address RangeYou can configure multicast source addresses-based filtering policies by creating ACLs. Then,a PIM router forwards only the multicast packets whose source address or source/groupaddresses match the ACLs.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

Step 3 Run:source-policy { acl-number | acl-name acl-name }

The multicast source address range is set.

l If a basic ACL is created, only the multicast packets whose source addresses match the ACLare forwarded.

l If an advance ACL is created, only the multicast packets whose source addresses and groupaddresses match the ACL are forwarded.

l If the specified ACL does not exist, no multicast packets can be forwarded.

NOTE

The source-policy command is not applicable to static (S, G) entries.

Step 4 Run:commit

The configuration is committed.

----End

3.6.5 Checking the ConfigurationAfter PIM-SSM is configured successfully, you can check information about the PIM interface,PIM neighbor, and PIM routing table through commands.

Prerequisite

All configurations of PIM-SSM are complete.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

73

Page 84: Configuration Guide - IP Multicast

Procedurel Run the display pim [ vpn-instance vpn-instance-name | all-instance ] interface

[ interface-type interface-number ] [ verbose ] command to check information about thePIM interface.

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] neighbor[ interface interface-type interface-number | neighbor-address | verbose ] * command tocheck information about the PIM neighbor.

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] routing-table[ group-address [ mask { group-mask-length | group-mask } ] ] [ source-address [ mask{ source-mask-length | source-mask } ] ] [ outgoing-interface include { interface-typeinterface-number | register | none } ] [ fsm ] command to check information about the PIMrouting table.

----End

ExampleRun the display pim interface command, and you can view that the PIM status of the interfaceis Up and view the number of PIM neighbors on the interface. For example:

<HUAWEI> display pim interfaceVPN-Instance: public net Interface State NbrCnt HelloInt DR-Pri DR-Address GE1/3/0 up 1 30 1 10.1.1.2 GE1/3/1 up 0 30 1 172.168.0.2 (local) GE1/3/2 up 1 30 1 20.1.1.2 Loopback0 up 0 30 1 1.1.1.1 (local)

Run the display pim neighbor command, and you can view the number of PIM neighbors, PIMneighbor addresses, and interfaces that set up PIM neighbor relationships. For example:

<HUAWEI> display pim neighbor VPN-Instance: public net Total Number of Neighbors = 2Neighbor Interface Uptime Expires Dr-Priority BFD-Session 10.1.1.2 GE1/3/0 02:50:49 00:01:31 1 N 20.1.1.2 GE1/3/2 02:49:39 00:01:42 1 N

Run the display pim routing-table command, and you can view source addresses and groupaddresses of PIM entries and information about the upstream interface and downstream interfacelist. For example:

<HUAWEI> display pim routing-table

VPN-Instance: public net Total 0 (*, G) entry; 1 (S, G) entry

(10.110.1.1, 232.1.1.1) Protocol: pim-ssm, Flag: LOC UpTime: 00:02:13 Upstream interface: GigabitEthernet2/0/0 Upstream neighbor: 10.110.1.1 RPF prime neighbor: 10.110.1.1 Downstream interface(s) information: Total number of downstreams: 1 1: Pos1/0/0 Protocol: pim-ssm, UpTime: 00:02:13, Expires: 00:03:17

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

74

Page 85: Configuration Guide - IP Multicast

3.7 Adjusting Other PIM ParametersYou can adjust neighbor parameters, DR parameters, and forwarding parameters according toactual networking environments.

Applicable EnvironmentThe router can work normally with default control parameters. You are allowed to adjustneighbor parameters, DR parameters, and forwarding parameters according to specificnetworking environments.

NOTE

If there is no special requirement for the network, default values are recommended.

Pre-configuration TasksBefore adjusting other PIM parameters, complete the following tasks:

l Configuring a unicast routing protocol to ensure normal unicast routing on the networkl Configuring PIM-SM or configuring PIM-SSM

Configuration ProceduresYou can choose to perform some of the following configuration tasks (except "Checking theConfiguration") according to the applicable environment.

3.7.1 Adjusting the Lifetime of a SourceA multicast device starts a timer for each (S, G) entry. If the multicast device does not receiveany multicast packets from a multicast source within the set lifetime of the multicast source, itconsiders that the (S, G) entry becomes invalid and the multicast source stops sending multicastdata to the multicast group.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.

Step 3 Run:source-lifetime interval

The lifetime of a source is configured.

After receiving a multicast packet from S, the router resets the timer. If the timer times out, the(S, G) entry is considered invalid.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

75

Page 86: Configuration Guide - IP Multicast

Step 4 Run:commit

The configuration is committed.

----End

3.7.2 Adjusting Neighbor ParametersDevices establish neighbor relationships by exchanging Hello messages. PIM neighborparameters include the interval for sending Hello messages, timeout period of the neighborrelationship, whether to deny the Hello messages without Generation IDs, and neighbor filteringpolicies.

ContextYou can set the interval for sending Hello messages and timeout period of the neighborrelationship either globally or on an interface.

l Global configuration: takes effect on all interfaces.l Interface-specific configuration: takes precedence over the global configuration. If no

interface-specific configurations are done, the global configuration is used.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.3. Run:

timer hello interval

The interval for sending Hello messages is set.

By default, the router sends Hello messages every 30 seconds.4. Run:

hello-option holdtime interval

The timeout period of the neighbor relationship is set. If the local router fails to receiveany Hello message from a neighbor after the timeout period expires, it considers thatthe neighbor is unreachable.

NOTE

The interval for the router to send Hello messages must be shorter than the timeout period ofthe neighbor relationship.

By default, the timeout period of the neighbor relationship is 150 seconds.5. Run:

commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

76

Page 87: Configuration Guide - IP Multicast

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

The PIM interface view is displayed.3. Run:

pim timer hello interval

The interval for the interface to send Hello messages is set.

By default, aninterface sends Hello messages every 30 seconds.4. Run:

pim hello-option holdtime interval

The timeout period of the neighbor relationship on the interface is set. If the localrouter fails to receive any Hello message from a neighbor after the timeout periodexpires, the local router considers that the neighbor is unreachable.

NOTE

The interval for the interface to send Hello messages must be shorter than the timeout periodof the neighbor relationship.

By default, the timeout period of the neighbor relationship on an interface is 150seconds.

5. Run:pim require-genid

The interface is configured to accept only the Hello messages with Generation IDfields.

After an interface on the router is enabled with PIM-SM, the router generates a randomnumber as the Generation ID of the Hello message. If the status of the router changes,a new Generation ID is generated. If the router finds that the Hello messages receivedPIM neighbors carry different Generation IDs, it considers that the PIM neighborstatus changes.

By default, the router accepts the Hello messages without Generation ID fields.6. Run:

pim neighbor-policy { basic-acl-number | acl-name acl-name }

A neighbor filtering policy is configured.

The neighbor filtering policy defines the range of valid neighbor addresses. Therouter discards the Hello messages received from the routers beyond this addressrange.

7. Run:commit

The configuration is committed.

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

77

Page 88: Configuration Guide - IP Multicast

3.7.3 Adjusting DR ParametersA source's DR is responsible for sending Register messages to an RP and a receiver's DR isresponsible for sending Join messages to an RP. routers elect a DR by exchanging Hellomessages. The router with the highest priority wins the election. In the case of the same priority,the router with the highest IP address wins the election.

ContextIn PIM-SM, a DR need be elected on the shared network segment to process the registration ofthe local multicast source and group join requests of receivers. DR election is based on prioritiesand IP addresses. The routers elect DR by exchanging Hello messages carrying the priorities ofthemselves.

l On the shared network segment where all routers support the Hello messages carrying DRpriorities, the interface on the router with the highest DR priority is selected as the DR. Inthe case of the same priority, the interface with the highest IP address acts as the DR.

l If any one of the routers does not support the Hello message carrying the DR priority, theinterface with the highest IP address acts as the DR.

You can set the DR priority either globally or on an interface.

l Global configuration: takes effect on all interfaces.l Interface-specific configuration: takes precedence over the global configuration. If no

interface-specific configuration is done, the global configuration is used.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.3. Run:

hello-option dr-priority priority

The priority for DR election is set for all the interfaces on the router.

The greater the value, the higher the priority. By default, the priority for DR electionis 1.

4. Run:commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

78

Page 89: Configuration Guide - IP Multicast

2. Run:interface interface-type interface-number

The PIM interface view is displayed.3. Run:

pim hello-option dr-priority priority

The priority for DR election is set for the interface.

The greater the value, the higher the priority. By default, the priority for DR electionfor an interface is 1.

4. Run:commit

The configuration is committed.

----End

3.7.4 Adjusting Forwarding ParametersThe parameters associated with PIM forwarding include the interval for sending Join/Prunemessages, holdtime of Join/Prune messages, filtering policies of Join/Prune messages, and lan-delay and override-interval of Hello messages.

ContextA multicast router sends Join messages upstream to require to forward multicast data and Prunemessages upstream to require to stop the forwarding of multicast data.

l When the first member of a group appears, the router sends a Join message through theupstream interface to require the upstream router to forward multicast packets to thisnetwork segment.On a PIM-SM network, the router periodically sends Join messages to prevent the RPTbranch from being deleted because of timeout.

l When the last member of a group leaves its group, the router sends a Prune message throughthe upstream interface to request the upstream router to perform the prune action. Afterreceiving the Prune message, the upstream router stops forwarding packets to this networksegment. If other downstream routers exist on this network segment, they must send theJoin message to override the prune action.A Hello message carries the lan-delay and override-interval.– lan-delay indicates the delay in transmitting Prune messages on a shared network

segment.– override-interval indicates the period allowed for overriding the Prune action. If the

routers still need to receive the multicast data, they must send Join messages upstreamwithin the override-interval.

The Prune-Pending Timer (PPT) equals the value of the lan-delay plus the override-interval.PPT indicates the period from the time when the router receives a Prune message from thedownstream interface to the time when the prune action is performed. If the downstreaminterface receives a Join message within the PPT, the prune action is cancelled.

You can set forwarding parameters either globally or on an interface.

l Global configuration: It is valid on each interface.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

79

Page 90: Configuration Guide - IP Multicast

l Interface-specific configuration: takes precedence over the global configuration. If nointerface-specific configuration is done, the global configuration is used.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.3. Run:

timer join-prune interval

The interval for all the interfaces on the router to send Join/Prune messages is set.

By default, all the interfaces on the router send Hello messages every 60 seconds.4. Run:

holdtime join-prune interval

The holdtime carried in the Join/Prune messages to be sent by all the interfaces on therouter is set.

An upstream router determines the period for a downstream interface to hold the joinor prune state based on the holdtime carried in the Join/Prune message received fromthe downstream interface.

Commonly, the holdtime is 3.5 times longer than the interval for all the interfaces tosend Join/Prune messages. By default, the holdtime carried in the Join/Prune messagesto be sent by all the interfaces on the router is 210 seconds.

5. Run:hello-option lan-delay interval

The lan-delay carried in the Hello messages to be sent by all the interfaces on therouter is set.

When the values of lan-delay on all the interfaces of the routers on the shared networksegment are different, the maximum value of these values is used after negotiation.By default, the lan-delay carried in the Hello messages to be sent by all the interfaceson the router is 500 milliseconds.

6. Run:hello-option override-interval interval

The override-interval carried in the Hello messages to be sent by all the interfaces onthe router is set.

When the values of override-interval on all the interfaces of the routers on the sharednetwork segment are different, the maximum value of these values is used afternegotiation. By default, the override-interval carried in the Hello messages to be sentby all the interfaces on the router is 2500 milliseconds.

7. Run:neighbor-check { receive | send }

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

80

Page 91: Configuration Guide - IP Multicast

The neighbor check function is configured.

You can specify both receive and send to enable the PIM neighbor check function forthe received and sent Join/Prune and Assert messages.

8. Run:commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

The PIM interface view is displayed.3. Run:

pim timer join-prune interval

The interval for the interface to send Join/Prune messages is set.

By default, the interface sends Join/Prune messages every 60 seconds.4. Run:

pim holdtime join-prune interval

The holdtime carried in the Join/Prune messages to be sent by the interface is set.

By default, the holdtime carried in the Join/Prune messages to be sent by an interfaceis 210 seconds.

5. Run:pim hello-option lan-delay interval

The lan-delay carried in the Hello messages to be sent by the interface is set.

By default, the lan-delay carried in the Hello messages to be sent by an interface is500 milliseconds.

6. Run:pim hello-option override-interval interval

The override-interval carried in the Hello messages to be sent by the interface is set.

By default, the override-interval carried in the Hello messages to be sent by aninterface is 2500 milliseconds.

7. Run:pim join-policy { { advanced-acl-number | acl-name acl-name } | asm { basic-acl-number | acl-name acl-name } | ssm { advanced-acl-number | acl-name acl-name } }

The policy for filtering join information in Join/Prune messages is created.

The router filters join information in Join/Prune messages based on source addressesor source/group addresses.

8. Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

81

Page 92: Configuration Guide - IP Multicast

The configuration is committed.

----End

3.7.5 Adjusting Assert ParametersWhen multiple multicast data forwarders exist on a shared network segment, the routers elect aunique forwarder through the Assert mechanism. The router that fails in the election preventsits downstream interface from forwarding multicast data within the holdtime of the Assert state.After the holdtime of the Assert state expires, the downstream interface can forward multicastdata.

Context

When the following condition is met, it indicates that other multicast forwarders exist on thenetwork segment.

The interface that receives the multicast packet is a downstream interface in the (S, G) entry onthe local router.

When the router receives an Assert message from another multicast forwarder on the networksegment through the downstream interface at the same time when it sends an Assert messagethrough this interface, the router compares its own condition with the information carried in thereceived Assert message for Assert election.

l If the router wins, the downstream interface retains the forwarding state and continues (S,G) forwarding on the network segment. In this case, the downstream interface is called anAssert winner.

l If the router fails, the downstream interface is prohibited from forwarding multicast packetsand deleted from the downstream interface list of the (S, G) entry. In this case, thedownstream interface is called an Assert loser.All Assert losers can periodically restore multicast packet forwarding, leading to periodicalAssert election.

You can set the holdtime of the Assert state either globally or on an interface.

l Global configuration: takes effect on all interfaces.l Interface-specific configuration: takes precedence over the global configuration. If no

interface-specific configuration is done, the global configuration is used.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.3. Run:

holdtime assert interval

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

82

Page 93: Configuration Guide - IP Multicast

The period for all the interfaces on the router to hold the Assert state is set.4. Run:

commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

The PIM interface view is displayed.3. Run:

pim holdtime assert interval

The period for the interface to hold the Assert state is set.4. Run:

commit

The configuration is committed.

----End

3.7.6 Checking the ConfigurationAfter PIM neighbor parameters, DR parameters, forwarding parameters, or Assert parametersare adjusted, you can check information about the PIM interface, PIM neighbor, and PIM routingtable and statistics about PIM control messages by running commands.

PrerequisitePIM neighbor parameters, DR parameters, forwarding parameters, or Assert parameters areadjusted as required.

Procedurel Run the display pim [ vpn-instance vpn-instance-name | all-instance ] interface

[ interface-type interface-number | up | down ] [ verbose ] command to check informationabout the PIM interface.

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] neighbor[ neighbor-address | interface interface-type interface-number | verbose ] * command tocheck information about the PIM neighbor.

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] routing-table[ group-address [ mask { group-mask-length | group-mask } ] ] [ source-address [ mask{ source-mask-length | source-mask } ] ] [ outgoing-interface include { interface-typeinterface-number | register | none } ] [ fsm ] command to check information about the PIMrouting table.

l Run the display pim control-message counters [ message-type { assert | bsr | crp |hello | join-prune | probe | register | register-stop } ] command to check statistics aboutPIM control messages.

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

83

Page 94: Configuration Guide - IP Multicast

ExampleRun the display pim interface command, and you can view that the PIM status of the interfaceis Up and view the number of PIM neighbors on the interface. For example:

<HUAWEI> display pim interfaceVPN-Instance: public net Interface State NbrCnt HelloInt DR-Pri DR-Address GE1/3/0 up 1 30 1 10.1.1.2 GE1/3/1 up 0 30 1 172.168.0.2 (local) GE1/3/2 up 1 30 1 20.1.1.2 Loopback0 up 0 30 1 1.1.1.1 (local)

Run the display pim neighbor command, and you can view the number of PIM neighbors, PIMneighbor addresses, and interfaces that set up PIM neighbor relationships. For example:

<HUAWEI> display pim neighbor VPN-Instance: public net Total Number of Neighbors = 2Neighbor Interface Uptime Expires Dr-Priority BFD-Session 10.1.1.2 GE1/3/0 02:50:49 00:01:31 1 N 20.1.1.2 GE1/3/2 02:49:39 00:01:42 1 N

Run the display pim routing-table command, and you can view source addresses and groupaddresses of PIM entries and information about the upstream interface and downstream interfacelist. For example:

<HUAWEI> display pim routing-tableVPN-Instance: public net Total 0 (*, G) entry; 1 (S, G) entry

(172.168.0.12, 227.0.0.1) RP: 2.2.2.2 Protocol: pim-sm, Flag: SPT LOC ACT UpTime: 02:54:43 Upstream interface: GigabitEthernet1/3/1 Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet1/3/2 Protocol: pim-sm, UpTime: 02:54:43, Expires: 00:02:47

Run the display pim control-message counters command, and you can view statistics aboutthe received, sent, invalid, and filtered PIM messages. For example:

<HUAWEI> display pim control-message counters interface gigabitethernet1/0/0 VPN-Instance: public net PIM global control-message counters: MessageType Received Sent Invalid Filtered Register 0 0 0 0

Register-Stop 0 0 0 0

Probe 0 0 0 0

C-RP 0 0 0 0

PIM control-message counters for interface: GigabitEthernet1/0/0 MessageType Received Sent Invalid Filtered Assert 0 0 0 0

Graft 0 0 0 0

Graft-Ack 0 0 0 0

Hello 6295 3153 3147 0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

84

Page 95: Configuration Guide - IP Multicast

Join-Prune 3686 0 0 0

State-Refresh 0 0 0 0

BSR 0 0 0 0

3.8 Configuring PIM BFDAfter detecting a fault on the peer, BFD immediately notifies the PIM module to trigger a newDR election rather than waits until the neighbor relationship times out. This shortens the periodduring which multicast data transmission is discontinued and thus improves the reliability ofmulticast data transmission.

Applicable Environment

Generally, if the current DR in a shared network segment is faulty, other PIM neighbors triggersa new round of DR election only after the neighbor relationship times out. The duration that datatransmission is interrupted is not shorter than the timeout period of the neighbor relationship.Generally, it is of second level.

BFD features fast detection of faults, and is up to the millisecond level. BFD can detect statusesof PIM neighbors in the shared network segment. When BFD detects that a peer is faulty, BFDimmediately reports it to PIM. PIM then triggers a new round of DR election without waitingfor the timeout of the neighbor relationship. This shortens the duration of interruption of datatransmission and enhances the reliability of the network.

PIM BFD is also applicable to the assert election in a shared network segment. It can fast respondto the fault of the interface that wins the assert election.

Pre-configuration Tasks

Before adjusting other PIM parameters, complete the following tasks:

l Configuring a unicast routing protocol to ensure normal unicast routing on the networkl Configuring PIM-SMl Enabling BFD Globally

Configuration Procedures

You can choose to perform some of the following configuration tasks (except "Checking theConfiguration") according to the applicable environment.

3.8.1 Enabling PIM BFDEnable PIM BFD on the devices that set up a PIM neighbor relationship.

ContextNOTE

This function is applicable to NBMA interfaces and broadcast interfaces rather than MTunnel interfaces.

Do as follows on PIM routers that set up the neighbor relationship:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

85

Page 96: Configuration Guide - IP Multicast

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The interface view is displayed.

Step 3 Run:pim bfd enable

PIM BFD is enabled.

By default, PIM BFD is disabled.

----End

3.8.2 (Optional) Adjusting BFD ParametersYou can adjust PIM BFD parameters as required. PIM BFD parameters include the minimuminterval for sending and receiving PIM BFD packets and the local detection multiplier.

ContextDo as follows on two PIM routers that set up the neighbor relationship:

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The interface view is displayed

Step 3 Run:pim bfd { min-tx-interval tx-value | min-rx-interval rx-value | detect-multiplier multiplier-value } *

PIM BFD parameters are adjusted.

PIM BFD parameters include the minimum interval for sending PIM BFD messages, theminimum interval for receiving PIM BFD messages, and the local detection multiple.

By default, the min-tx-interval value is 100 ms, the min-rx-interval value is 100 ms, and thedetect-multiplier value is 3.

When the BFD parameters configured for other protocols are the same as those configured forPIM, the configurations of the PIM BFD parameters are affected.

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

86

Page 97: Configuration Guide - IP Multicast

3.8.3 Checking the ConfigurationAfter PIM BFD is configured, you can run the command to check information about PIM BFDsessions.

Procedurel Run the following commands to check information about a PIM BFD session.

– display pim [ vpn-instance vpn-instance-name | all-instance ] bfd session statistics

– display pim [ vpn-instance vpn-instance-name | all-instance ] bfd session[ interface interface-type interface-number | neighbor neighbor-address ] *

----End

Example

Run the display pim all-instance bfd session command, and you can view the information aboutPIM BFD sessions. For example:

<HUAWEI> display pim all-instance bfd session All-instance: Total 4 BFD sessions Created VPN-Instance: public net Total 4 BFD sessions Created Ethernet6/2/2 (10.1.2.2): Total 2 BFD sessions Created Neighbor ActTx(ms) ActRx(ms) ActMulti Local/Remote State 10.1.2.3 20 20 5 8756/8652 Up 10.1.2.4 30 30 3 8754/8423 Up Ethernet2/0/0 (10.20.1.20): Total 2 BFD sessions Created Neighbor ActTx(ms) ActRx(ms) ActMulti Local/Remote State 10.20.1.30 30 30 5 8327/8891 Up 10.20.1.40 50 50 3 8358/8942 Up

3.9 Maintaining PIMMaintaining PIM involves resetting PIM statistics, monitoring PIM running status, anddebugging PIM.

3.9.1 Clearing Statistics of PIM Control MessagesIf you need to re-collect the statistics about PIM control messages, you can reset the existentstatistics. Note that the statistics cannot be restored after you reset them. This operation does notaffect normal running of PIM.

Context

CAUTIONStatistics of PIM control messages on an interface cannot be restored after you clear them. So,confirm the action before you use the command.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

87

Page 98: Configuration Guide - IP Multicast

Procedure

Step 1 After confirming that you need to clear statistics about PIM control messages, run the resetpim [ vpn-instance vpn-instance-name | all-instance ] control-message counters [ interfaceinterface-type interface-number ] command in the user view.

----End

3.9.2 Monitoring the Running Status of PIMYou can monitor the PIM running by checking unicast routes, the BSR, and the RP used by PIM,statistics about PIM control messages, and information about PIM neighbors and the PIM routingtable.

Context

In routine maintenance, you can run the following commands in any view to view the runningof PIM.

Procedurel Run the display pim [ vpn-instance vpn-instance-name | all-instance ] claimed-route

[ source-address ] command in any view to check information about the unicast routes usedby PIM.

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] bsr-info commandin any view to check information about the BSR in the PIM-SM domain.

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] control-message counters [ interface interface-type interface-number | message-type message-type ] * command in any view to check statistics about PIM control messages.

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] interface[ interface-type interface-number ] [ verbose ] command in any view to check informationabout the PIM interface.

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] neighbor[ neighbor-address | interface interface-type interface-number ] [ verbose ] command inany view to check information about the PIM neighbor.

l Run the display pim routing-table command in any view to check information about thePIM routing table.

– display pim [ vpn-instance vpn-instance-name | all-instance ] routing-table [ group-address [ mask { group-mask-length | group-mask } ] ] [ source-address [ mask{ source-mask-length | source-mask } ] ] [ outgoing-interface include { interface-type interface-number | register | none } ] [ fsm ]

– display pim routing-table [ group group-address [ mask { group-mask-length | group-mask } ] ] source source-address [ mask { source-mask-length | source-mask } |outgoing-interface include { interface-type interface-number | register } ] [ fsm ]

l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] rp-info [ group-address ] command in any view to check information about the RP serving the multicastgroup.

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

88

Page 99: Configuration Guide - IP Multicast

3.10 Configuration ExamplesConfiguration examples are provided to tell you how to construct a basic PIM network andconfigure basic functions of PIM.

3.10.1 Example for Configuring PIM-SM Intra-domain MulticastIn an AS with reachable unicast routes, you can enable basic functions of PIM-SM so that hostscan receive multicast data from any multicast source.

Networking Requirements

CAUTIONFor the NE5000E, the interface is numbered as slot number/card number/interface number. Forthe NE5000E cluster, the interface is numbered as chassis ID/slot number/card number/interfacenumber. The slot number is chassis ID/slot ID.

It is required to deploy multicast services on the ISP network shown in Figure 3-4. The integratedInterior Gateway Protocol (IGP) has been deployed on the network. The unicast routes worknormally so that routers can access the Internet. In such a scenario, hosts on the network requireto receive the Video On Demand (VOD) information through multicast services.

Figure 3-4 Networking diagram for configuring PIM-SM intra-domain multicast

RouterA Ethernet

Ethernet

Source

Ethernet

RouterBRouterC

PIM-SM

RouterD

Leaf networks

ReceiverHostA

ReceiverHostB

N1

N2

GE2/0/0

POS1/0/0

GE2/0/0POS2/0/0

POS2/0/0

GE1/0/0

GE3/0/0

POS1/0/0

POS3/0/0

POS1/0/0

POS1/0/0POS4/0/0

POS2/0/0RouterE

POS3/0/0

POS4/0/0

Device Interface IP Address Device Interface IP AddressRouter A POS 1/0/0 192.168.9.1/24 Router D POS 1/0/0 192.168.4.2/24

POS 3/0/0 192.168.1.1/24 POS 2/0/0 192.168.1.2/24GE 2/0/0 10.110.1.1/24 POS 4/0/0 10.110.4.1/24

Router B POS 1/0/0 192.168.2.1/24 GE 3/0/0 10.110.5.1/24GE 2/0/0 10.110.2.1/24 Router E POS 1/0/0 192.168.3.2/24

Router C POS 2/0/0 192.168.3.1/24 POS 2/0/0 192.168.2.2/24

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

89

Page 100: Configuration Guide - IP Multicast

GE 1/0/0 10.110.2.2/24 POS 3/0/0 192.168.9.2/24POS 4/0/0 192.168.4.1/24

Configuration NotesWhen configuring PIM-SM intra-domain multicast, pay attention to the following points:

l PIM-SM and IGMP need to be enabled in sequence on the interfaces connecting therouters to hosts. That is, enable PIM-SM first and then IGMP.

l If the static RP need be used, you need to configure a same static RP on all the routers.l If hosts want to receive multicast data from specific sources, enable PIM-SSM. You must

ensure that the SSM group address ranges set on all the routers are the same.

Configuration RoadmapThe ISP network access the Internet. To simplify service expansion, you can configure PIM-SMto provide multicast services on the network.

1. Configure an IP address for each interface on the routers and configure a unicast routingprotocol.

2. Enable multicast routing on all the multicast routers.3. Enable PIM-SM on all the interfaces of multicast routers.4. Enable IGMP on the interface that directly connects the router to hosts.5. Configure an RP. On a PIM-SM network, the RP is a root node of an RPT. It is

recommended to configure the RP on the router with more multicast flow branches. Asshown in Figure 3-4, Router E is configured as an RP.

6. (Optional) Configure BSR boundaries on the interfaces connected to the Internet. Bootstrapmessages cannot pass through the BSR boundaries and each BSR serves only the localPIM-SM domain. In this manner, multicast services can be controlled effectively.

7. (Optional) Set the same SSM group address range on all the routers. In this manner, themulticast router in the PIM-SM domain provides services only for the multicast groups inthe SSM group address range.

Data PreparationTo complete the configuration, you need the following data:

l Multicast group addressl Multicast source addressl SSM group address range

ProcedureStep 1 Configure an IP address for each interface on the routers and configure a unicast routing protocol.

The detailed configuration procedures are not mentioned here.

Step 2 Enable the multicast function on all the routers and enable PIM-SM on each interface.

# Take Router E as an example. Configurations on Router A, Router B, Router C, and RouterD are similar to those on Router E and hence are not mentioned here.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

90

Page 101: Configuration Guide - IP Multicast

[~RouterE] multicast routing-enable[~RouterE] interface pos 1/0/0[~RouterE-Pos1/0/0] pim sm[~RouterE-Pos1/0/0] quit[~RouterE] interface pos 2/0/0[~RouterE-Pos2/0/0] pim sm[~RouterE-Pos21/0/0] quit[~RouterE] interface pos 3/0/0[~RouterE-Pos3/0/0] pim sm[~RouterE-Pos3/0/0] quit[~RouterE] interface pos 4/0/0[~RouterE-Pos4/0/0] pim sm[~RouterE-Pos4/0/0] commit[~RouterE-Pos4/0/0] quit

Step 3 Enable IGMP on the interfaces connected with hosts.

# Take Router A as an example. Configurations on Router B and Router C are similar to thoseon Router A and hence are not mentioned here.

[~RouterA] interface gigabitethernet 2/0/0[~RouterA-GigabitEthernet2/0/0] igmp enable[~RouterA-GigabitEthernet2/0/0] igmp version 3[~RouterA-GigabitEthernet2/0/0] commit[~RouterA-GigabitEthernet2/0/0] quit

Step 4 Configure an RP.

NOTE

You can configure both the static RP and BSR RP or either of them. If both the static RP and BSR RP areconfigured, the BSR RP is preferred. You can configure the static RP to be used preferentially by specifyingthe keyword preferred in the static-rp rp-address command.

The following shows how to configure both the static RP and BSR RP, with the BSR RP being preferredand the static RP being the backup.

# Configure a BSR RP. You need to perform the following configurations on one or severalrouters in the PIM-SM domain. Here, take Router E as an example to show how to set the servicerange of the RP and how to configure the C-BSR and the C-RP.

[~RouterE] acl number 2000[~RouterE-acl4-basic-2000] rule permit source 225.1.1.0 0.0.0.255[~RouterE-acl4-basic-2000] quit[~RouterE] pim[~RouterE-pim] c-bsr pos 2/0/0[~RouterE-pim] c-rp pos 2/0/0 group-policy 2000 priority 0[~RouterE-pim] commit[~RouterE-pim] quit

# Configure a static RP. You can perform the following configurations on all multicast routers.Take Router E as an example. Configurations on Router A, Router B, Router C, and Router Dare similar to those on Router E and hence are not mentioned here.

[~RouterE] pim[~RouterE-pim] static-rp 192.168.4.1[~RouterE-pim] commit[~RouterE-pim] quit

Step 5 (Optional) Configure a BSR boundary on the interface connecting Router D to the Internet.[~RouterD] interface pos 4/0/0[~RouterD-Pos4/0/0] pim bsr-boundary[~RouterD-Pos4/0/0] commit[~RouterD-Pos4/0/0] quit

Step 6 (Optional) Set the SSM group address range.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

91

Page 102: Configuration Guide - IP Multicast

# Set the SSM group address range to 232.1.1.0/24 on all the routers. Take Router E as anexample. Configurations on Router A, Router B, Router C, and Router D are the same as thoseon Router E and hence are not mentioned here.

[~RouterE] acl number 2001[~RouterE-acl4-basic-2001] rule permit source 232.1.1.0 0.0.0.255[~RouterE-acl4-basic-2001] quit[~RouterE] pim[~RouterE-pim] ssm-policy 2001[~RouterE-pim] commit[~RouterE-pim] quit

Step 7 Verify the configuration.

# Run the display pim interface command to view information about the PIM interfaces on therouters. For example, information about the PIM interface on Router E is as follows:

<RouterE> display pim interfaceVPN-Instance: public netInterface State NbrCnt HelloInt DR-Pri DR-AddressPos1/0/0 up 1 30 1 192.168.3.2Pos3/0/0 up 1 30 1 192.168.9.2Pos4/0/0 up 1 30 1 192.168.4.2Pos2/0/0 up 1 30 1 192.168.2.2

# Run the display pim bsr-info command to view information about the BSRs on the routers.For example, information about the BSRs on Router D and Router E is as follows. Informationabout the C-BSR on Router E is also displayed.

<RouterD> display pim bsr-info VPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 192.168.2.2 Priority: 0 Hash mask length: 30 State: Accept Preferred Scope: Not scoped Uptime: 02:08:57 Expires: 00:01:15 C-RP Count: 1<RouterE> display pim bsr-info VPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 192.168.2.2 Priority: 0 Hash mask length: 30 State: Elected Scope: Not scoped Uptime: 02:25:03 Next BSR message scheduled at: 00:00:57 C-RP Count: 1 Candidate AdminScope BSR Count: 0 Candidate BSR Address: 192.168.2.2 Priority: 0 Hash mask length: 30 State: Elected Scope: Not scoped Wait to be BSR: 0

# Run the display pim rp-info command to view information about the RPs on the routers. Forexample, information about the RPs on Router D andRouter E is as follows:

<RouterD> display pim rp-info VPN-Instance: public net PIM-SM BSR RP information: Group/MaskLen: 225.1.1.0/24 RP: 192.168.2.2 Priority: 0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

92

Page 103: Configuration Guide - IP Multicast

Uptime: 02:27:17 Expires: 00:02:15 PIM SM static RP information: Static RP: 192.168.4.1<RouterE> display pim rp-info VPN-Instance: public net PIM-SM BSR RP information: Group/MaskLen: 225.1.1.0/24 RP: 192.168.2.2 (local) Priority: 0 Uptime: 02:27:27 Expires: 00:02:03 PIM SM static RP information: Static RP: 192.168.4.1 (local)

# Run the display pim routing-table command to view information about the PIM routing tableson the routers. Host A needs to receive the data for multicast group 225.1.1.1/24 and host Bneeds to receive the data sent from source 10.110.5.100/24 to group 232.1.1.1/24. For example,information about the PIM routing tables on Router D andRouter E is as follows:

<RouterD> display pim routing-table

VPN-Instance: public net Total 0 (*, G) entry; 2 (S, G) entries

(10.110.5.100, 225.1.1.1) RP: 192.168.2.2 Protocol: pim-sm, Flag: SPT LOC ACT UpTime: 00:57:20 Upstream interface: GigabitEthernet3/0/0 Upstream neighbor: NULL RPF prime neighbor: 10.110.5.100 Downstream interface(s) information: Total number of downstreams: 1 1: Pos2/0/0 Protocol: pim-sm, UpTime: 00:57:20, Expires: 00:03:02

(10.110.5.100, 232.1.1.1) Protocol: pim-ssm, Flag: LOC UpTime: 00:31:21 Upstream interface: GigabitEthernet3/0/0 Upstream neighbor: NULL RPF prime neighbor: 10.110.5.100 Downstream interface(s) information: Total number of downstreams: 1 1: Pos1/0/0 Protocol: pim-ssm, UpTime: 00:31:21, Expires: 00:03:09<RouterE> display pim routing-table

VPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry

(*, 225.1.1.1) RP: 192.168.2.2 (local) Protocol: pim-sm, Flag: WC UpTime: 00:21:40 Upstream interface: register Upstream neighbor: 192.168.4.2 RPF prime neighbor: 192.168.4.2 Downstream interface(s) information: Total number of downstreams: 1 1: Pos3/0/0 Protocol: pim-sm, UpTime: 00:21:40, Expires: 00:02:43

(10.110.5.100, 232.1.1.1) Protocol: pim-ssm, Flag: UpTime: 00:18:44 Upstream interface: Pos4/0/0 Upstream neighbor: 192.168.4.2

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

93

Page 104: Configuration Guide - IP Multicast

RPF prime neighbor: 192.168.4.2 Downstream interface(s) information: Total number of downstreams: 1 1: Pos1/0/0 Protocol: pim-ssm, UpTime: 00:18:44, Expires: 00:02:43

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast routing-enable#acl number 2001 rule 5 permit source 232.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0001.00#interface GigabitEthernet2/0/0 undo shutdown ip address 10.110.1.1 255.255.255.0 pim sm igmp enable igmp version 3 isis enable 1#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.9.1 255.255.255.0 pim sm isis enable 1#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 192.168.1.1 255.255.255.0 pim sm isis enable 1#pim ssm-policy 2001 static-rp 192.168.4.1#return

l Configuration file of Router B#sysname RouterB#multicast routing-enable#acl number 2001 rule 5 permit source 232.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0002.00#interface GigabitEthernet2/0/0 undo shutdown ip address 10.110.2.1 255.255.255.0 pim sm igmp enable igmp version 3

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

94

Page 105: Configuration Guide - IP Multicast

isis enable 1#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.2.1 255.255.255.0 pim sm isis enable 1#pim ssm-policy 2001 static-rp 192.168.4.1#return

l Configuration file of Router C#sysname RouterC#multicast routing-enable#acl number 2001 rule 5 permit source 232.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0003.00#interface GigabitEthernet1/0/0 undo shutdown ip address 10.110.2.2 255.255.255.0 pim sm igmp enable igmp version 3 isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.3.1 255.255.255.0 pim sm isis enable 1#pim ssm-policy 2001 static-rp 192.168.4.1 #return

l Configuration file of Router D#sysname RouterD#multicast routing-enable#acl number 2001 rule 5 permit source 232.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0004.00#interface GigabitEthernet3/0/0 undo shutdown pim sm isis enable 1 ip address 10.110.5.1 255.255.255.0# interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.4.2 255.255.255.0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

95

Page 106: Configuration Guide - IP Multicast

pim sm isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.1.2 255.255.255.0 pim sm isis enable 1#interface Pos4/0/0 undo shutdown link-protocol ppp ip address 10.110.4.1 255.255.255.0 pim bsr-boundary pim sm isis enable 1#pim ssm-policy 2001 static-rp 192.168.4.1#return

l Configuration file of Router E#sysname RouterE#multicast routing-enable#acl number 2000 rule 5 permit source 225.1.1.0 0.0.0.255#acl number 2001 rule 5 permit source 232.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0005.00#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.3.2 255.255.255.0 pim sm isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.2.2 255.255.255.0 pim sm isis enable 1#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 192.168.9.2 255.255.255.0 pim sm isis enable 1# interface Pos4/0/0 link-protocol ppp ip address 192.168.4.1 255.255.255.0 pim sm isis enable 1#pim ssm-policy 2001 static-rp 192.168.4.1 c-bsr Pos2/0/0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

96

Page 107: Configuration Guide - IP Multicast

c-rp Pos2/0/0 group-policy 2000#return

3.10.2 Example for Configuring a PIM-SM BSR AdministrativeDomain

On a PIM-SM network where a dynamic RP is used, configuring a BSR administrative domainenables C-BSRs to serve groups in a specified group address range.

Networking Requirements

CAUTIONFor the NE5000E, the interface is numbered as slot number/card number/interface number. Forthe NE5000E cluster, the interface is numbered as chassis ID/slot number/card number/interfacenumber. The slot number is chassis ID/slot ID.

As shown in Figure 3-5, multicast services are deployed on the ISP network. An IGP has beendeployed to ensure that unicast routes are available. The ISP network is connected to the Internet.The router must be properly configured so that the hosts on the network can receive VODinformation in multicast mode.

Figure 3-5 Networking diagram for configuring a PIM-SM BSR administrative domain

RouterA Ethernet

Ethernet

Source

Ethernet

RouterBRouterC

PIM-SM

RouterD

Leaf networks

ReceiverHostA

ReceiverHostB

N1

N2

GE2/0/0

POS1/0/0

GE2/0/0POS2/0/0

POS2/0/0

GE1/0/0

GE3/0/0

POS1/0/0

POS3/0/0

POS1/0/0

POS1/0/0POS4/0/0

POS2/0/0RouterE

POS3/0/0

POS4/0/0

Device Interface IP AddressRouter A POS 1/0/0 192.168.9.1/24

POS 3/0/0 192.168.1.1/24GE 2/0/0 10.110.1.1/24

Router B POS 1/0/0 192.168.2.1/24GE 2/0/0 10.110.2.1/24

Router C POS 2/0/0 192.168.3.1/24GE 1/0/0 10.110.2.2/24

Router D POS 1/0/0 192.168.4.2/24POS 2/0/0 192.168.1.2/24

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

97

Page 108: Configuration Guide - IP Multicast

POS 4/0/0 10.110.4.1/24GE 3/0/0 10.110.5.1/24

Router E POS 1/0/0 192.168.3.2/24POS 2/0/0 192.168.2.2/24POS 3/0/0 192.168.9.2/24POS 4/0/0 192.168.4.1/24

PrecautionsWhen configuring a PIM-SM BSR administrative domain, note the following points:

l Unicast routes on the network must be reachable because multicast routing depends onunicast routing.

l Multicast routing needs to be enabled on all routers.l PIM-SM needs to be enabled on the interfaces connecting routers, the interface directly

connecting the router to the multicast source, and the interface directly connecting therouter to hosts.

l If a static RP is used, the static RP configurations on all the routers must be the same.l IGMP of a supported version needs to be run on the router directly connected to hosts. PIM-

SM and IGMP need to be enabled in sequence (that is, first PIM-SM and then IGMP) onthe interface directly connected to hosts; otherwise, the PIM-SM function fails to beconfigured.

l If users need to receive data sent by a specified multicast source, PIM-SSM needs to beenabled and the same SSM group address range needs to be configured on all the routers.

Configuration RoadmapThe ISP network access the Internet. To simplify service expansion, you can configure PIM-SMto provide multicast services on the network.

1. Configure an IP address for each interface on the routers and configure a unicast routingprotocol.

2. Enable multicast routing on all routers providing multicast services.3. Enable PIM-SM on all the interfaces of multicast routers.4. Enable IGMP on the interface that directly connects the router to hosts.5. Configure RPs. An RP is the root node of an RPT on a PIM-SM network. Setting an RP

on the router that has more branches, for example, Router E in Figure 3-5, is recommended.6. (Optional) Set a BSR boundary on the interface connected to the Internet. Bootstrap

messages cannot pass through the BSR boundary. Therefore, the BSR serves only aspecified PIM-SM domain. This increases multicast controllability.

7. (Optional) Configure the same SSM group address range on each router. This enables themulticast routers in the PIM-SM domain to provide services only for multicast groups inthe SSM group address range.

Data PreparationTo complete the configuration, you need the following data:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

98

Page 109: Configuration Guide - IP Multicast

l Multicast group address (225.1.1.1/24)l Multicast source address (10.110.5.100/24)l SSM group address range (232.1.1.0/24)

Procedure

Step 1 Configure an IP address for each interface on the routers and configure a unicast routing protocol.

Step 2 Enable multicast on each device and PIM-SM on each interface of the devices.

# Enable multicast on each router and PIM-SM on each interface of the routers. Theconfigurations of Router B, Router C, Router D, and Router E are similar to those on Router A,and are not provided here.

[~RouterA] multicast routing-enable[~RouterA] interface gigabitethernet 2/0/0[~RouterA-GigabitEthernet2/0/0] pim sm[~RouterA-GigabitEthernet2/0/0] quit[~RouterA] interface pos 1/0/0[~RouterA-Pos1/0/0] pim sm[~RouterA-Pos1/0/0] quit[~RouterA] interface pos 3/0/0[~RouterA-Pos3/0/0] pim sm[~RouterA-Pos3/0/0] commit[~RouterA-Pos3/0/0] quit

Step 3 Enable IGMP on the interface directly connected to hosts. The configuration details are notprovided here.

Step 4 Configure RPs.

NOTE

You can choose to configure both a static RP and a dynamic RP, or only one of them. When both a staticRP and a dynamic RP are configured, the dynamic RP is preferred. You can enable the static RP to bepreferred by setting the keyword preferred in the static-rp rp-address command.

In this example, a static RP and a dynamic RP are configured. The dynamic RP is preferred, and the staticRP functions as the backup of the dynamic RP.

# Configure a dynamic RP. Perform the following configurations on one or more routers in thePIM-SM domain. On Router E, set the range of groups severed by the RP and locations of C-BSRs and C-RPs.

[~RouterE] acl number 2005[~RouterE-acl-basic-2005] rule permit source 225.1.1.0 0.0.0.255[~RouterE-acl-basic-2005] quit[~RouterE] pim[~RouterE-pim] c-bsr pos 3/0/0[~RouterE-pim] c-rp pos 3/0/0 group-policy 2005 priority 0[~RouterE-pim] commit[~RouterE-pim] quit

# Configure a static RP on all multicast routers. In this example, perform the followingconfigurations on Router A, Router B, Router C, Router D, and Router E. The configurationsof Router B, Router C, Router D, and Router E are similar to those on Router A, and are notprovided here.

[~RouterA] pim[~RouterA-pim] static-rp 192.168.2.2[~RouterA-pim] commit[~RouterA-pim] quit

Step 5 (Optional) Configure a BSR boundary on the interface that connects Router D to the Internet.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

99

Page 110: Configuration Guide - IP Multicast

[~RouterD] interface pos 4/0/0[~RouterD-Pos4/0/0] pim bsr-boundary[~RouterD-Pos4/0/0] commit[~RouterD-Pos4/0/0] quit

Step 6 (Optional) Set an SSM group address range.

# Set the SSM group address range to 232.1.1.0/24 on all routers. The configurations ofRouter B, Router C, Router D, and Router E are similar to those on Router A, and are not providedhere.

[~RouterA] acl number 2000[~RouterA-acl-basic-2000] rule permit source 232.1.1.0 0.0.0.255 [~RouterA-acl-basic-2000] quit[~RouterA] pim[~RouterA-pim] ssm-policy 2000[~RouterA-pim] commit[~RouterA-pim] quit

Step 7 Verify the configuration.

# Run the display pim interface command to check information about PIM interfaces on eachrouter. For example, the information about PIM interfaces on Router C is displayed as follows:

<RouterC> display pim interfaceVPN-Instance: public netInterface State NbrCnt HelloInt DR-Pri DR-AddressGE1/0/0 up 0 30 1 10.110.2.2 (local)Pos2/0/0 up 1 30 1 192.168.3.1

# Run the display pim bsr-info command to check BSR information on each router. Forexample, the BSR information on Router A and Router E is displayed as follows (C-BSRinformation is also displayed on Router E):

<RouterA> display pim bsr-infoVPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 192.168.9.2 Priority: 0 Hash mask length: 30 State: Accept Preferred Scope: Not scoped Uptime: 01:40:40 Expires: 00:01:42 C-RP Count: 1<RouterE> display pim bsr-infoVPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 192.168.9.2 Priority: 0 Hash mask length: 30 State: Elected Scope: Not scoped Uptime: 00:00:18 Next BSR message scheduled at :00:01:42 C-RP Count: 1 Candidate AdminScope BSR Count: 0 Candidate BSR Address is: 192.168.9.2 Priority: 0 Hash mask length: 30 State:Elected Scope: Not scoped Wait to be BSR: 0

# Run the display pim rp-info command to check RP information on each router. For example,the RP information on Router A is displayed as follows:

<RouterA> display pim rp-info

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

100

Page 111: Configuration Guide - IP Multicast

VPN-Instance: public net PIM-SM BSR RP information: Group/MaskLen: 225.1.1.0/24 RP: 192.168.9.2 Priority: 0 Uptime: 00:45:13 Expires: 00:02:17 PIM SM static RP information: Static RP: 192.168.2.2

# Run the display pim routing-table command to check the PIM routing table on each router.Host A wants to receive data for multicast group 225.1.1.1/24, and Host B wants to receive datasent by multicast source 10.110.5.100/24 to multicast group 232.1.1.1/24. The command outputis as follows:

<RouterA> display pim routing-tableVPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry(*, 225.1.1.1) RP: 192.168.9.2 Protocol: pim-sm, Flag: WC UpTime: 00:13:46 Upstream interface: Pos1/0/0, Upstream neighbor: 192.168.9.2 RPF neighbor: 192.168.9.2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0, Protocol: igmp, UpTime: 00:13:46, Expires:-(10.110.5.100, 225.1.1.1) RP: 192.168.9.2 Protocol: pim-sm, Flag: SPT ACT UpTime: 00:00:42 Upstream interface: Pos3/0/0 Upstream neighbor: 192.168.1.2 RPF neighbor: 192.168.1.2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: pim-sm, UpTime: 00:00:42, Expires:-<RouterD> display pim routing-tableVPN-Instance: public net Total 0 (*, G) entry; 2 (S, G) entries (10.110.5.100, 225.1.1.1) RP: 192.168.9.2 Protocol: pim-sm, Flag: SPT ACT UpTime: 00:00:42 Upstream interface: GigabitEthernet3/0/0 Upstream neighbor: 10.110.5.100 RPF neighbor: 10.110.5.100 Downstream interface(s) information: Total number of downstreams: 1 1: Pos2/0/0 Protocol: pim-sm, UpTime: 00:00:42, Expires:-(10.110.5.100, 232.1.1.1) Protocol: pim-ssm, Flag: UpTime: 00:01:20 Upstream interface: GigabitEthernet3/0/0 Upstream neighbor: 10.110.5.100 RPF neighbor: 10.110.5.100 Downstream interface(s) information: Total number of downstreams: 1 1: Pos1/0/0 Protocol: pim-ssm, UpTime: 00:01:20, Expires:-<RouterE> display pim routing-tableVPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry (*, 225.1.1.1) RP: 192.168.9.2 (local)

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

101

Page 112: Configuration Guide - IP Multicast

Protocol: pim-sm, Flag: WC UpTime: 00:13:16 Upstream interface: Register Upstream neighbor: 192.168.4.2 RPF neighbor: 192.168.4.2 Downstream interface(s) information: Total number of downstreams: 1 1: Pos3/0/0 Protocol: pim-sm, UpTime: 00:13:16, Expires: 00:03:22(10.110.5.100, 232.1.1.1) Protocol: pim-ssm, Flag: UpTime: 00:01:22 Upstream interface: Pos4/0/0 Upstream neighbor: 192.168.4.2 RPF neighbor: 192.168.4.2 Downstream interface(s) information: Total number of downstreams: 1 1: Pos1/0/0 Protocol: pim-ssm, UpTime: 00:01:22, Expires:-<RouterC> display pim routing-table VPN-Instance: public net Total 1 (S, G) entry (10.110.5.100, 232.1.1.1) Protocol: pim-ssm, Flag: UpTime: 00:01:25 Upstream interface: Pos2/0/0 Upstream neighbor: 192.168.3.2 RPF neighbor: 192.168.3.2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet1/0/0 Protocol: igmp, UpTime: 00:01:25, Expires:-

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#interface GigabitEthernet2/0/0 undo shutdown ip address 10.110.1.1 255.255.255.0 pim sm igmp enable igmp version 3 #interface Pos3/0/0 undo shutdown link-protocol ppp ip address 192.168.1.1 255.255.255.0 pim sm#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.9.1 255.255.255.0 pim sm#ospf 1 area 0.0.0.0 network 10.110.1.0 0.0.0.255

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

102

Page 113: Configuration Guide - IP Multicast

network 192.168.1.0 0.0.0.255 network 192.168.9.0 0.0.0.255#pim ssm-policy 2000 static-rp 192.168.2.2# return

l Configuration file of Router B#sysname RouterB#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#interface GigabitEthernet2/0/0 undo shutdown ip address 10.110.2.1 255.255.255.0 pim sm igmp enable igmp version 3 #interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.2.1 255.255.255.0 pim sm#ospf 1 area 0.0.0.0 network 10.110.2.0 0.0.0.255 network 192.168.2.0 0.0.0.255#pim ssm-policy 2000 static-rp 192.168.2.2# return

l Configuration file of Router C#sysname RouterC#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#interface GigabitEthernet1/0/0 undo shutdown ip address 10.110.2.2 255.255.255.0 pim sm igmp enable igmp version 3 #interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.3.1 255.255.255.0 pim sm#ospf 1 area 0.0.0.0 network 10.110.2.0 0.0.0.255 network 192.168.3.0 0.0.0.255#pim

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

103

Page 114: Configuration Guide - IP Multicast

ssm-policy 2000 static-rp 192.168.2.2# return

l Configuration file of Router D#sysname RouterD#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#interface GigabitEthernet3/0/0 undo shutdown ip address 10.110.5.1 255.255.255.0 pim sm #interface Pos4/0/0 undo shutdown link-protocol ppp ip address 10.110.4.1 255.255.255.0 pim sm pim bsr-boundary#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.1.2 255.255.255.0 pim sm#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.4.2 255.255.255.0 pim sm#ospf 1 area 0.0.0.0 network 10.110.4.0 0.0.0.255 network 10.110.5.0 0.0.0.255 network 192.168.1.0 0.0.0.255 network 192.168.4.0 0.0.0.255#pim ssm-policy 2000 static-rp 192.168.2.2 # return

l Configuration file of Router E#sysname RouterE#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#acl number 2005 rule 5 permit source 225.1.1.0 0.0.0.255#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.3.2 255.255.255.0 pim sm#interface Pos2/0/0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

104

Page 115: Configuration Guide - IP Multicast

undo shutdown link-protocol ppp ip address 192.168.2.2 255.255.255.0 pim sm#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 192.168.9.2 255.255.255.0 pim sm#interface Pos4/0/0 undo shutdown link-protocol ppp ip address 192.168.4.1 255.255.255.0 pim sm#ospf 1 area 0.0.0.0 network 192.168.3.0 0.0.0.255 network 192.168.2.0 0.0.0.255 network 192.168.9.0 0.0.0.255 network 192.168.4.0 0.0.0.255#pim ssm-policy 2000 static-rp 192.168.2.2 c-bsr Pos3/0/0 c-rp Pos3/0/0 group-policy 2005 priority 0# return

3.10.3 Example for Configuring PIM-SM SecurityTo prevent malicious packet attacks, you can configure various filtering policies, for example,setting a valid source address range or a valid C-RP address range, to improve the security ofthe PIM network.

Networking Requirements

CAUTIONFor the NE5000E, the interface is numbered as slot number/card number/interface number. Forthe NE5000E cluster, the interface is numbered as chassis ID/slot number/card number/interfacenumber. The slot number is chassis ID/slot ID.

It is required to deploy multicast services on the ISP network shown in Figure 3-6. The integratedIGP is deployed on the network to implement normal unicast routing. In such a scenario, youcan configure filtering policies on the routers to improve the security of the multicast networkso that hosts can receive secure and reliable multicast data.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

105

Page 116: Configuration Guide - IP Multicast

Figure 3-6 example for configuring PIM-SM security

RouterA Ethernet

Ethernet

Source

Ethernet

RouterBRouterC

PIM-SM

RouterD

Leaf networks

ReceiverHostA

ReceiverHostB

N1

N2

GE2/0/0

POS1/0/0

GE2/0/0POS2/0/0

POS2/0/0

GE1/0/0

GE3/0/0

POS1/0/0

POS3/0/0

POS1/0/0

POS1/0/0POS4/0/0

POS2/0/0RouterE

POS3/0/0

Device Interface IP Address Device Interface IP AddressRouterA POS 1/0/0 192.168.9.1/24 RouterD POS 1/0/0 192.168.4.2/24

POS 3/0/0 192.168.1.1/24 POS 2/0/0 192.168.1.2/24GE 2/0/0 10.110.1.1/24 GE 3/0/0 10.110.5.1/24

RouterB POS 1/0/0 192.168.2.1/24 RouterE POS 1/0/0 192.168.3.2/24GE 2/0/0 10.110.2.1/24 POS 2/0/0 192.168.2.2/24

RouterC POS 2/0/0 192.168.3.1/24 POS 3/0/0 192.168.9.2/24GE 1/0/0 10.110.2.2/24 POS 4/0/0 192.168.4.1/24

Configuration NotesWhen configuring PIM security, pay attention to the following points:

l PIM-SM and IGMP need to be enabled in sequence on the interfaces connecting therouters to hosts. That is, enable PIM-SM first and then IGMP.

l The range of multicast groups that each C-RP serves and the valid C-RP address range canbe set only on the C-BSR.

l Source address-based and BSR address-based filtering policies need be configured on allthe routers.

l Policies for filtering Register messages need be configured on all C-RPs.l Policies for filtering Join/Prune messages are commonly configured on the last-hop

routers.

Configuration RoadmapConfigure PIM-SM to implement the multicast functions on the network. The filtering policiesof ensuring PIM network security include setting the valid ranges of the source address, BSRaddress, and RP address, and filtering Register messages, Join/Prune message, and PIMneighbors.

1. Configure an IP address for each interface on the routers and configure a unicast routingprotocol.

2. Enable multicast routing on all the multicast routers.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

106

Page 117: Configuration Guide - IP Multicast

3. Enable PIM-SM on all the interfaces of multicast routers.4. Enable IGMP on the routers connected to hosts.5. Configure C-BSRs and C-RPs if the BSR RP needs to be used.6. Set the range of multicast groups that each C-RP serves on the C-BSR.7. Create a policy for filtering Register messages on the C-RP to avoid the attacks of the

Register messages carrying illegal multicast source information.8. Create source address-based filtering policies on all the routers to deny all the multicast

packets from illegal sources.9. Create BSR address-based filtering policies on all the routers to avoid BSR spoofing.

Data PreparationTo complete the configuration, you need the following data:

l Multicast group addressl IP address of the multicast sourcel ACL rules for defining various filtering policies

Procedure

Step 1 Configure an IP address for each interface on the routers and configure a unicast routing protocol.

Step 2 Enable the multicast function on all the routers and enable PIM-SM on each interface.

# Take Router A as an example. Configurations on Router B, Router C, Router D, and RouterE are similar to those on Router A and hence are not mentioned here.

[~RouterA] multicast routing-enable[~RouterA] interface gigabitethernet 2/0/0[~RouterA-GigabitEthernet2/0/0] pim sm[~RouterA-GigabitEthernet2/0/0] quit[~RouterA] interface pos 1/0/0[~RouterA-Pos1/0/0] pim sm[~RouterA-Pos1/0/0] quit[~RouterA] interface pos 3/0/0[~RouterA-Pos3/0/0] pim sm[~RouterA-Pos3/0/0] commit[~RouterA-Pos3/0/0] quit

Step 3 Enable IGMP on the interfaces connected to hosts.

# Take Router A as an example. Configurations on Router B and Router C are similar to thoseon Router A and hence are not mentioned here.

[~RouterA] interface gigabitethernet 2/0/0[~RouterA-GigabitEthernet2/0/0] igmp enable[~RouterA-GigabitEthernet2/0/0] igmp version 3[~RouterA-GigabitEthernet2/0/0] commit[~RouterA-GigabitEthernet2/0/0] quit

Step 4 Configure C-BSRs and C-RPs.

# Configure a C-BSR and a C-RP on Router E.

[~RouterE] pim[~RouterE-pim] c-bsr pos 2/0/0[~RouterE-pim] c-rp pos 2/0/0[~RouterE-pim] commit[~RouterE-pim] quit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

107

Page 118: Configuration Guide - IP Multicast

Step 5 Set the range of multicast groups that each C-RP serves and the valid C-RP address range onthe C-BSR.

# Set the range of multicast groups that each C-RP serves and the valid C-RP address range onRouter E.

[~RouterE] acl number 3000[~RouterE-acl4-advance-3000] rule permit ip source 192.168.2.2 0 destination 225.1.1.0 0.0.0.255[~RouterE-acl4-advance-3000] quit[~RouterE] pim[~RouterE-pim] crp-policy 3000[~RouterE-pim] commit[~RouterE-pim] quit

Step 6 Create a policy for filtering Register messages on the C-RP.

# Create a policy for filtering Register messages on Router E.

[~RouterE] acl number 3001[~RouterE-acl4-advance-3001] rule permit ip source 10.110.5.0 0.0.0.255 destination 225.1.1.0 0.0.0.255[~RouterE-acl4-advance-3001] quit[~RouterE] pim[~RouterE-pim] register-policy 3001[~RouterE-pim] commit[~RouterE-pim] quit

Step 7 Create source address-based and BSR address-based filtering policies on all the routers.

# Take Router E as an example. Configurations on Router A, Router B, Router C, and RouterD are similar to those on Router E and hence are not mentioned here.

[~RouterE] acl number 2000[~RouterE-acl4-basic-2000] rule permit source 10.110.5.0 0.0.0.255[~RouterE-acl4-basic-2000] quit[~RouterE] acl number 2001[~RouterE-acl4-basic-2001] rule permit source 192.168.2.0 0.0.0.255[~RouterE-acl4-basic-2001] quit[~RouterE] pim[~RouterE-pim] source-policy 2000[~RouterE-pim] bsr-policy 2001[~RouterE-pim] commit[~RouterE-pim] quit

Step 8 Verify the configuration.

# Run the display pim bsr-info command to view information about the BSR on the router. TheBSR address matches the filtering rule. For example, information about the BSRs on Router DandRouter E is as follows:

<RouterD> display pim bsr-info VPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 192.168.2.2 Priority: 0 Hash mask length: 30 State: Accept Preferred Scope: Not scoped Uptime: 21:56:56 Expires: 00:02:01 C-RP Count: 1<RouterE> display pim bsr-info VPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 192.168.2.2 Priority: 0 Hash mask length: 30

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

108

Page 119: Configuration Guide - IP Multicast

State: Elected Scope: Not scoped Uptime: 21:57:15 Next BSR message scheduled at: 00:00:14 C-RP Count: 1 Candidate AdminScope BSR Count: 0 Candidate BSR Address: 192.168.2.2 Priority: 0 Hash mask length: 30 State: Elected Scope: Not scoped Wait to be BSR: 0

# Run the display pim rp-info command to view information about the RPs on the routers. TheRP address matches the filtering rule. For example, information about the RPs on Router DandRouter E is as follows:

<RouterD> display pim rp-info VPN-Instance: public net PIM-SM BSR RP infomation: Group/MaskLen: 224.0.0.0/4 RP: 192.168.2.2 Priority: 0 Uptime: 01:27:21 Expires: 00:02:11<RouterE> display pim rp-info VPN-Instance: public net PIM-SM BSR RP infomation: Group/MaskLen: 224.0.0.0/4 RP: 192.168.2.2 (local) Priority: 0 Uptime: 01:29:10 Expires: 00:02:20

# Run the display pim routing-table command to view information about the PIM routing tableson the routers. Hosts can receive multicast data from a valid multicast source. Multicast source10.110.5.100 sends multicast data and Host A needs to receive the data for multicast group225.1.1.1/24 and host B needs to receive the data for group 225.1.1.2/24. For example,information about the PIM routing tables on Router D andRouter E is as follows:

<RouterD> display pim routing-table

VPN-Instance: public net Total 0 (*, G) entry; 2 (S, G) entries

(10.110.5.100, 225.1.1.1) RP: 192.168.2.2 Protocol: pim-sm, Flag: SPT ACT UpTime: 00:57:20 Upstream interface: GigabitEthernet3/0/0 Upstream neighbor: 10.110.5.100 RPF prime neighbor: 10.110.5.100 Downstream interface(s) information: Total number of downstreams: 1 1: Pos2/0/0 Protocol: pim-sm, UpTime: 00:57:20, Expires: 00:03:02

(10.110.5.100, 225.1.1.2) RP: 192.168.2.2 Protocol: pim-sm, Flag: SPT ACT UpTime: 01:56:45 Upstream interface: GigabitEthernet3/0/0 Upstream neighbor: 10.110.5.100 RPF prime neighbor: 10.110.5.100 Downstream interface(s) information: Total number of downstreams: 1 1: Pos1/0/0 Protocol: pim-sm, UpTime: 01:56:45, Expires: 00:02:43

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

109

Page 120: Configuration Guide - IP Multicast

<RouterE> display pim routing-table

VPN-Instance: public net Total 2 (*, G) entries; 1 (S, G) entry

(*, 225.1.1.1) RP: 192.168.2.2 (local) Protocol: pim-sm, Flag: WC UpTime: 00:21:40 Upstream interface: register Upstream neighbor: 192.168.4.2 RPF prime neighbor: 192.168.4.2 Downstream interface(s) information: Total number of downstreams: 1 1: Pos3/0/0 Protocol: pim-sm, UpTime: 00:21:40, Expires: 00:02:43

(*, 225.1.1.2) RP: 192.168.2.2 (local) Protocol: pim-sm, Flag: WC UpTime: 00:21:40 Upstream interface: register Upstream neighbor: 192.168.4.2 RPF prime neighbor: 192.168.4.2 Downstream interface(s) information: Total number of downstreams: 1 1: Pos1/0/0 Protocol: pim-sm, UpTime: 00:21:40, Expires: 00:02:43

(10.110.5.100, 225.1.1.2) RP: 192.168.2.2 Protocol: pim-sm, Flag: SPT ACT UpTime: 01:56:45 Upstream interface: GigabitEthernet3/0/0 Upstream neighbor: 192.168.4.2 RPF prime neighbor: 192.168.4.2 Downstream interface(s) information: Total number of downstreams: 1 1: Pos1/0/0 Protocol: pim-sm, UpTime: 01:56:45, Expires: 00:02:43

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast routing-enable#acl number 2000 rule 5 permit source 10.110.5.0 0.0.0.255#acl number 2001 rule 5 permit source 192.168.2.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0001.00#interface GigabitEthernet2/0/0 undo shutdown ip address 10.110.1.1 255.255.255.0 pim sm igmp enable igmp version 3 isis enable 1#

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

110

Page 121: Configuration Guide - IP Multicast

interface Pos1/0/0 undo shutdown ip address 192.168.9.1 255.255.255.0 pim sm isis enable 1#interface Pos3/0/0 undo shutdown ip address 192.168.1.1 255.255.255.0 isis enable 1 pim sm#pim bsr-policy 2001 source-policy 2000#return

l Configuration file of Router B#sysname RouterB#multicast routing-enable#acl number 2000 rule 5 permit source 10.110.5.0 0.0.0.255#acl number 2001 rule 5 permit source 192.168.2.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0002.00#interface GigabitEthernet2/0/0 undo shutdown ip address 10.110.2.1 255.255.255.0 isis enable 1 pim sm igmp enable igmp version 3#interface Pos1/0/0 ip address 192.168.2.1 255.255.255.0 isis enable 1 pim sm#pim bsr-policy 2001 source-policy 2000#return

l Configuration file of Router C#sysname RouterC#multicast routing-enable#acl number 2000 rule 5 permit source 10.110.5.0 0.0.0.255#acl number 2001 rule 5 permit source 192.168.2.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0003.00#interface GigabitEthernet1/0/0 undo shutdown ip address 10.110.2.2 255.255.255.0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

111

Page 122: Configuration Guide - IP Multicast

isis enable 1 pim sm igmp enable igmp version 3#interface Pos2/0/0 ip address 192.168.3.1 255.255.255.0 pim sm isis enable 1#pim bsr-policy 2001 source-policy 2000#return

l Configuration file of Router D#sysname RouterD#multicast routing-enable#acl number 2000 rule 5 permit source 10.110.5.0 0.0.0.255#acl number 2001 rule 5 permit source 192.168.2.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0004.00#interface GigabitEthernet3/0/0 undo shutdown ip address 10.110.5.1 255.255.255.0 pim sm isis enable 1#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.4.2 255.255.255.0 pim sm isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.1.2 255.255.255.0 pim sm isis enable 1#pim bsr-policy 2001 source-policy 2000#return

l Configuration file of Router E#sysname RouterE#multicast routing-enable#acl number 2000 rule 5 permit source 10.110.5.0 0.0.0.255#acl number 2001 rule 5 permit source 192.168.2.0 0.0.0.255#acl number 3000

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

112

Page 123: Configuration Guide - IP Multicast

rule 5 permit ip source 192.168.2.2 0 destination 225.1.1.0 0.0.0.255#acl number 3001 rule 5 permit ip source 10.110.5.0 0.0.0.255 destination 225.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0005.00#interface Pos1/0/0 link-protocol ppp ip address 192.168.3.2 255.255.255.0 pim sm isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.2.2 255.255.255.0 pim sm isis enable 1#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 192.168.9.2 255.255.255.0 pim sm isis enable 1#interface Pos4/0/0 undo shutdown link-protocol ppp ip address 192.168.4.1 255.255.255.0 pim sm isis enable 1#pim bsr-policy 2001 register-policy 3001 source-policy 2000 c-bsr Pos2/0/0 crp-policy 3000 c-rp Pos2/0/0#return

3.10.4 Example for Configuring SPT Switchover in a PIM-SMDomain

An RP performs an SPT switchover after receiving the Register message and a receiver's DRperforms an SPT switchover after receiving the first multicast data packet. To perform an SPTswitchover only after the rate of multicast data packets reaches the upper threshold, configurethe conditions for triggering an SPT switchover.

Networking Requirements

CAUTIONFor the NE5000E, the interface is numbered as slot number/card number/interface number. Forthe NE5000E cluster, the interface is numbered as chassis ID/slot number/card number/interfacenumber. The slot number is chassis ID/slot ID.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

113

Page 124: Configuration Guide - IP Multicast

As shown in Figure 3-7, multicast services are deployed on the ISP network. An IGP has beendeployed to ensure that unicast routes are available. The ISP network is connected to the Internet.The router must be properly configured so that the hosts on the network can receive VODinformation in multicast mode.

Figure 3-7 Networking diagram for configuring SPT switchover in a PIM-SM domain

RouterA Ethernet

Ethernet

Source

Ethernet

RouterBRouterC

PIM-SM

RouterD

Leaf networks

ReceiverHostA

ReceiverHostB

N1

N2

GE2/0/0

POS1/0/0

GE2/0/0POS2/0/0

POS2/0/0

GE1/0/0

GE3/0/0

POS1/0/0

POS3/0/0

POS1/0/0

POS1/0/0POS4/0/0

POS2/0/0RouterE

POS3/0/0

POS4/0/0

Device Interface IP AddressRouter A POS 1/0/0 192.168.9.1/24

POS 3/0/0 192.168.1.1/24GE 2/0/0 10.110.1.1/24

Router B POS 1/0/0 192.168.2.1/24GE 2/0/0 10.110.2.1/24

Router C POS 2/0/0 192.168.3.1/24GE 1/0/0 10.110.2.2/24

Router D POS 1/0/0 192.168.4.2/24POS 2/0/0 192.168.1.2/24POS 4/0/0 10.110.4.1/24GE 3/0/0 10.110.5.1/24

Router E POS 1/0/0 192.168.3.2/24POS 2/0/0 192.168.2.2/24POS 3/0/0 192.168.9.2/24POS 4/0/0 192.168.4.1/24

Precautions

When configuring the SPT switchover in a PIM-SM domain, note the following points:

l Unicast routes on the network must be reachable because multicast routing is based onunicast routing.

l Multicast routing needs to be enabled on all routers.l PIM-SM needs to be on the interfaces connecting routers, interface directly connecting the

router to the multicast source, and interface directly connecting the router to hosts.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

114

Page 125: Configuration Guide - IP Multicast

l If a static RP is used, the static RP configurations on all the routers must be the same.l IGMP of a supported version needs to be run on the router directly connected to hosts. PIM-

SM and IGMP need to be enabled in sequence (that is, first PIM-SM and then IGMP) onthe interface directly connected to hosts; otherwise, the PIM-SM function fails to beconfigured.

l When users need to receive data sent by a specified multicast source, PIM-SSM needs tobe enabled and the same SSM group address range needs to be configured on all therouters.

Configuration RoadmapThe ISP network access the Internet. To simplify service expansion, you can configure PIM-SMto provide multicast services on the network.

1. Configure an IP address for each interface on the routers and configure a unicast routingprotocol.

2. Enable multicast routing on all routers providing multicast services.3. Enable PIM-SM on all interfaces of multicast routers.4. Enable IGMP on the interface that directly connects the router to hosts.5. Configure RPs. An RP is the root node of an RPT in a PIM-SM network. Setting an RP on

the router that has more branches, for example, Router E in Figure 3-7, is recommended.6. (Optional) Set a BSR boundary on the interface connected to the Internet. Bootstrap

messages cannot pass through the BSR boundary. Therefore, the BSR serves only this PIM-SM domain. This increases multicast controllability.

7. (Optional) Configure the SSM group address range on each router. This enables themulticast routers in the PIM-SM domain to provide services only for multicast groups withaddresses being in the SSM group address range.

Data PreparationTo complete the configuration, you need the following data:

l Multicast group address (225.1.1.1/24)l Multicast source address (10.110.5.100/24)l SSM group address range (232.1.1.0/24)

Procedure

Step 1 Configure an IP address for each interface on the routers and configure a unicast routing protocol.

Step 2 Enable multicast on each device and PIM-SM on each interface of the devices.

# Enable multicast on each router and PIM-SSM on each interface of the Routers. Theconfigurations of Router B, Router C, Router D, and Router E are similar to those on Router A,and are not provided here.

[~RouterA] multicast routing-enable[~RouterA] interface gigabitethernet 2/0/0[~RouterA-GigabitEthernet2/0/0] pim sm[~RouterA-GigabitEthernet2/0/0] quit[~RouterA] interface pos 1/0/0[~RouterA-Pos1/0/0] pim sm[~RouterA-Pos1/0/0] quit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

115

Page 126: Configuration Guide - IP Multicast

[~RouterA] interface pos 3/0/0[~RouterA-Pos3/0/0] pim sm[~RouterA-Pos3/0/0] quit

Step 3 Enable IGMP on the interface directly connected to hosts. The configuration details are notprovided here.

Step 4 Configure RPs.

NOTE

You can choose to configure both a static RP and a dynamic RP, or only one of them. When both a staticRP and a dynamic RP are configured, the dynamic RP is preferred. You can enable the static RP to bepreferred by setting preferred in the static-rp rp-address command.

In this example, a static RP and a dynamic RP are configured. The dynamic RP is preferred, and the staticRP functions as the backup of the dynamic RP.

# Configure a dynamic RP. Perform the following configurations on one or more routers in thePIM-SM domain. On Router E, set the range of groups severed by the RP and locations of C-BSRs and C-RPs.

[~RouterE] acl number 2005[~RouterE-acl-basic-2005] rule permit source 225.1.1.0 0.0.0.255[~RouterE-acl-basic-2005] quit[~RouterE] pim[~RouterE-pim] c-bsr pos 3/0/0[~RouterE-pim] c-rp pos 3/0/0 group-policy 2005 priority 0

# Configure a static RP on all multicast routers. In this example, perform the followingconfigurations on Router A, Router B, Router C, Router D, and Router E. The configurationsof Router B, Router C, Router D, and Router E are similar to those on Router A, and are notprovided here.

[~RouterA] pim[~RouterA-pim] static-rp 192.168.2.2

Step 5 (Optional) Configure a BSR boundary on the interface that connects Router D to the Internet.[~RouterD] interface pos 4/0/0[~RouterD-Pos4/0/0] pim bsr-boundary[~RouterD-Pos4/0/0] quit

Step 6 (Optional) Set an SSM group address range.

# Set the SSM group address range to 232.1.1.0/24 on all routers. The configurations ofRouter B, Router C, Router D, and Router E are similar to those on Router A, and are not providedhere.

[~RouterA] acl number 2000[~RouterA-acl-basic-2000] rule permit source 232.1.1.0 0.0.0.255 [~RouterA-acl-basic-2000] quit[~RouterA] pim[~RouterA-pim] ssm-policy 2000

Step 7 Verify the configuration.

# Run the display pim interface command to check PIM interfaces on each router. For example,the information about PIM interfaces on Router C is displayed as follows:

<RouterC> display pim interfaceVPN-Instance: public netInterface State NbrCnt HelloInt DR-Pri DR-AddressGE1/0/0 up 0 30 1 10.110.2.2 (local)Pos2/0/0 up 1 30 1 192.168.3.1

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

116

Page 127: Configuration Guide - IP Multicast

# Run the display pim bsr-info command to check BSR information on each router. Forexample, the BSR information on Router A and Router E (C-BSR information is also displayedon Router E) is displayed as follows:

<RouterA> display pim bsr-infoVPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 192.168.9.2 Priority: 0 Hash mask length: 30 State: Accept Preferred Scope: Not scoped Uptime: 01:40:40 Expires: 00:01:42 C-RP Count: 1<RouterE> display pim bsr-infoVPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 192.168.9.2 Priority: 0 Hash mask length: 30 State: Elected Scope: Not scoped Uptime: 00:00:18 Next BSR message scheduled at :00:01:42 C-RP Count: 1 Candidate AdminScope BSR Count: 0 Candidate BSR Address is: 192.168.9.2 Priority: 0 Hash mask length: 30 State:Elected Scope: Not scoped Wait to be BSR: 0

# Run the display pim rp-info command to check RP information on each router. For example,the RP information on Router A is displayed as follows:

<RouterA> display pim rp-infoVPN-Instance: public net PIM-SM BSR RP information: Group/MaskLen: 225.1.1.0/24 RP: 192.168.9.2 Priority: 0 Uptime: 00:45:13 Expires: 00:02:17 PIM SM static RP information: Static RP: 192.168.2.2

# Run the display pim routing-table command to check the PIM routing table on each router.Host A needs to receive data for multicast group 225.1.1.1/24, and Host B needs to receive datasent by multicast source 10.110.5.100/24 to multicast group 232.1.1.1/24. The command outputas follows:

<RouterA> display pim routing-tableVPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry(*, 225.1.1.1) RP: 192.168.9.2 Protocol: pim-sm, Flag: WC UpTime: 00:13:46 Upstream interface: Pos1/0/0, Upstream neighbor: 192.168.9.2 RPF neighbor: 192.168.9.2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0, Protocol: igmp, UpTime: 00:13:46, Expires:-(10.110.5.100, 225.1.1.1)

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

117

Page 128: Configuration Guide - IP Multicast

RP: 192.168.9.2 Protocol: pim-sm, Flag: SPT ACT UpTime: 00:00:42 Upstream interface: Pos3/0/0 Upstream neighbor: 192.168.1.2 RPF neighbor: 192.168.1.2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: pim-sm, UpTime: 00:00:42, Expires:-<RouterD> display pim routing-tableVPN-Instance: public net Total 0 (*, G) entry; 2 (S, G) entries (10.110.5.100, 225.1.1.1) RP: 192.168.9.2 Protocol: pim-sm, Flag: SPT ACT UpTime: 00:00:42 Upstream interface: GigabitEthernet3/0/0 Upstream neighbor: 10.110.5.100 RPF neighbor: 10.110.5.100 Downstream interface(s) information: Total number of downstreams: 1 1: Pos2/0/0 Protocol: pim-sm, UpTime: 00:00:42, Expires:-(10.110.5.100, 232.1.1.1) Protocol: pim-ssm, Flag: UpTime: 00:01:20 Upstream interface: GigabitEthernet3/0/0 Upstream neighbor: 10.110.5.100 RPF neighbor: 10.110.5.100 Downstream interface(s) information: Total number of downstreams: 1 1: Pos1/0/0 Protocol: pim-ssm, UpTime: 00:01:20, Expires:-<RouterE> display pim routing-tableVPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry (*, 225.1.1.1) RP: 192.168.9.2 (local) Protocol: pim-sm, Flag: WC UpTime: 00:13:16 Upstream interface: Register Upstream neighbor: 192.168.4.2 RPF neighbor: 192.168.4.2 Downstream interface(s) information: Total number of downstreams: 1 1: Pos3/0/0 Protocol: pim-sm, UpTime: 00:13:16, Expires: 00:03:22(10.110.5.100, 232.1.1.1) Protocol: pim-ssm, Flag: UpTime: 00:01:22 Upstream interface: Pos4/0/0 Upstream neighbor: 192.168.4.2 RPF neighbor: 192.168.4.2 Downstream interface(s) information: Total number of downstreams: 1 1: Pos1/0/0 Protocol: pim-ssm, UpTime: 00:01:22, Expires:-<RouterC> display pim routing-table VPN-Instance: public net Total 1 (S, G) entry (10.110.5.100, 232.1.1.1) Protocol: pim-ssm, Flag: UpTime: 00:01:25 Upstream interface: Pos2/0/0 Upstream neighbor: 192.168.3.2 RPF neighbor: 192.168.3.2 Downstream interface(s) information: Total number of downstreams: 1

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

118

Page 129: Configuration Guide - IP Multicast

1: GigabitEthernet1/0/0 Protocol: igmp, UpTime: 00:01:25, Expires:-

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#interface GigabitEthernet2/0/0 undo shutdown ip address 10.110.1.1 255.255.255.0 pim sm igmp enable igmp version 3 #interface Pos3/0/0 undo shutdown link-protocol ppp ip address 192.168.1.1 255.255.255.0 pim sm#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.9.1 255.255.255.0 pim sm#ospf 1 area 0.0.0.0 network 10.110.1.0 0.0.0.255 network 192.168.1.0 0.0.0.255 network 192.168.9.0 0.0.0.255#pim ssm-policy 2000 static-rp 192.168.2.2# return

l Configuration file of Router B#sysname RouterB#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#interface GigabitEthernet2/0/0 undo shutdown ip address 10.110.2.1 255.255.255.0 pim sm igmp enable igmp version 3 #interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.2.1 255.255.255.0 pim sm

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

119

Page 130: Configuration Guide - IP Multicast

#ospf 1 area 0.0.0.0 network 10.110.2.0 0.0.0.255 network 192.168.2.0 0.0.0.255#pim ssm-policy 2000 static-rp 192.168.2.2# return

l Configuration file of Router C#sysname RouterC#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#interface GigabitEthernet1/0/0 undo shutdown ip address 10.110.2.2 255.255.255.0 pim sm igmp enable igmp version 3 #interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.3.1 255.255.255.0 pim sm#ospf 1 area 0.0.0.0 network 10.110.2.0 0.0.0.255 network 192.168.3.0 0.0.0.255#pim ssm-policy 2000 static-rp 192.168.2.2# return

l Configuration file of Router D#sysname RouterD#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#interface GigabitEthernet3/0/0 undo shutdown ip address 10.110.5.1 255.255.255.0 pim sm #interface Pos4/0/0 undo shutdown link-protocol ppp ip address 10.110.4.1 255.255.255.0 pim bsr-boundary pim sm#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.1.2 255.255.255.0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

120

Page 131: Configuration Guide - IP Multicast

pim sm#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.4.2 255.255.255.0 pim sm#ospf 1 area 0.0.0.0 network 10.110.4.0 0.0.0.255 network 10.110.5.0 0.0.0.255 network 192.168.1.0 0.0.0.255 network 192.168.4.0 0.0.0.255#pim ssm-policy 2000 static-rp 192.168.2.2 # return

l Configuration file of Router E#sysname RouterE#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#acl number 2005 rule 5 permit source 225.1.1.0 0.0.0.255#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.3.2 255.255.255.0 pim sm#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.2.2 255.255.255.0 pim sm#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 192.168.9.2 255.255.255.0 pim sm#interface Pos4/0/0 undo shutdown link-protocol ppp ip address 192.168.4.1 255.255.255.0 pim sm#ospf 1 area 0.0.0.0 network 192.168.3.0 0.0.0.255 network 192.168.2.0 0.0.0.255 network 192.168.9.0 0.0.0.255 network 192.168.4.0 0.0.0.255#pim ssm-policy 2000 static-rp 192.168.2.2 c-bsr Pos3/0/0 c-rp Pos3/0/0 group-policy 2005 priority 0#

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

121

Page 132: Configuration Guide - IP Multicast

return

3.10.5 Example for Configuring PIM-SSM MulticastIn an AS with reachable unicast routes, you can configure basic PIM-SSM functions so thathosts can receive multicast data from a specified multicast source.

Networking Requirements

CAUTIONFor the NE5000E, the interface is numbered as slot number/card number/interface number. Forthe NE5000E cluster, the interface is numbered as chassis ID/slot number/card number/interfacenumber. The slot number is chassis ID/slot ID.

It is required to deploy multicast services on the ISP network shown in Figure 3-8. The integratedIGP is deployed on the network to implement normal unicast routing. Hosts on the network thenneed to join source-specific multicast groups.

Figure 3-8 Networking diagram for configuring PIM-SSM multicast

Source

Ethernet

RouterA

PIM-SSM

RouterB

Leaf networks

Ethernet

ReceiverHostA

RouterCGE2/0/0 GE2/0/0POS1/0/0 POS1/0/0

POS1/0/0 POS2/0/0

Device Interface IP Address Device Interface IP AddressRouterA POS 1/0/0 192.168.2.1/24 Router C POS 1/0/0 192.168.4.2/24

GE 2/0/0 10.110.1.2/24 GE 2/0/0 10.110.2.1/24RouterB POS 1/0/0 192.168.2.2/24

POS 2/0/0 192.168.4.1/24

Configuration Notes

When configuring PIM-SSM multicast, pay attention to the following points:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

122

Page 133: Configuration Guide - IP Multicast

l PIM-SM and IGMP need to be enabled in sequence on the interfaces connecting therouters to hosts. That is, enable PIM-SM first and then IGMP.

l You must ensure that the SSM group address ranges set on all the routers are the same.l An RP need not be configured on the PIM-SSM network.

Configuration RoadmapConfigure PIM-SSM to implement source-specific multicast on the network.

1. Configure an IP address for each interface on the routers and configure a unicast routingprotocol.

2. Enable multicast routing on all the multicast routers.3. Enable PIM-SM on all the interfaces of multicast routers.4. Enable IGMP on the routers connected to hosts.5. Set the same SSM group address range on all the routers.

Data PreparationTo complete the configuration, you need the following data:

l IP address of the multicast sourcel SSM group address range

Procedure

Step 1 Configure an IP address for each interface on the routers and configure a unicast routing protocol.The detailed configuration procedure is not mentioned here.

Step 2 Enable the multicast function on all the routers and enable PIM-SM on each interface.

# Take Router A as an example. Configurations on Router B and Router C are similar to thoseon Router A and hence are not mentioned here.

[~RouterA] multicast routing-enable[~RouterA] interface gigabitethernet 2/0/0[~RouterA-GigabitEthernet2/0/0] pim sm[~RouterA-GigabitEthernet2/0/0] quit[~RouterA] interface pos 1/0/0[~RouterA-Pos1/0/0] pim sm[~RouterA-Pos1/0/0] commit[~RouterA-Pos1/0/0] quit

Step 3 Enable IGMP on the interfaces connected to hosts.

# Enable IGMP on the interface connecting Router C to the host and set the IGMP version to 3.

[~RouterC] interface gigabitethernet 2/0/0[~RouterC-GigabitEthernet2/0/0] igmp enable[~RouterC-GigabitEthernet2/0/0] igmp version 3[~RouterC-GigabitEthernet2/0/0] commit[~RouterC-GigabitEthernet2/0/0] quit

Step 4 Set SSM group address ranges.

# Set the SSM group address range to 232.1.1.0/24 on all the routers. Take Router A as anexample. Configurations on Router B and Router C are the same as those on Router A and henceare not mentioned here.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

123

Page 134: Configuration Guide - IP Multicast

[~RouterA] acl number 2000[~RouterA-acl4-basic-2000] rule permit source 232.1.1.0 0.0.0.255[~RouterA-acl4-basic-2000] quit[~RouterA] pim[~RouterA-pim] ssm-policy 2000[~RouterA-pim] commit[~RouterA-pim] quit

Step 5 Verify the configuration.

# Host A needs to receive the data sent from source 10.110.1.1/24 to group 232.1.1.1/24. Runthe display pim routing-table command to view information about the PIM routing tables onthe routers. The display on Router A and Router B is as follows:<RouterA> display pim routing-table

VPN-Instance: public net Total 0 (*, G) entry; 1 (S, G) entry

(10.110.1.1, 232.1.1.1) Protocol: pim-ssm, Flag: LOC UpTime: 00:02:13 Upstream interface: GigabitEthernet2/0/0 Upstream neighbor: 10.110.1.1 RPF prime neighbor: 10.110.1.1 Downstream interface(s) information: Total number of downstreams: 1 1: Pos1/0/0 Protocol: pim-ssm, UpTime: 00:02:13, Expires: 00:03:17<RouterB> display pim routing-table

VPN-Instance: public net Total 0 (*, G) entry; 1 (S, G) entry

(10.110.1.1, 232.1.1.1) Protocol: pim-ssm, Flag: UpTime: 00:09:15 Upstream interface: Pos1/0/0 Upstream neighbor: 192.168.2.1 RPF prime neighbor: 192.168.2.1 Downstream interface(s) information: Total number of downstreams: 1 1: Pos2/0/0 Protocol: pim-ssm, UpTime: 00:09:15, Expires: 00:03:13

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0001.00#interface GigabitEthernet2/0/0 undo shutdown ip address 10.110.1.2 255.255.255.0 pim sm isis enable 1#interface Pos1/0/0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

124

Page 135: Configuration Guide - IP Multicast

undo shutdown link-protocol ppp ip address 192.168.2.1 255.255.255.0 pim sm isis enable 1#pim ssm-policy 2000#return

l Configuration file of Router B#sysname RouterB#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0002.00#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.2.2 255.255.255.0 pim sm isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.4.1 255.255.255.0 pim sm isis enable 1#pim ssm-policy 2000#return

l Configuration file of Router C#sysname RouterC#multicast routing-enable#acl number 2000 rule 5 permit source 232.1.1.0 0.0.0.255#isis 1 network-entity 10.0000.0000.0003.00#interface GigabitEthernet2/0/0 undo shutdown ip address 10.110.2.1 255.255.255.0 pim sm igmp enable igmp version 3 isis enable 1#interface Pos1/0/0 undo shutdown ip address 192.168.4.2 255.255.255.0 pim sm isis enable 1#pim ssm-policy 2000

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

125

Page 136: Configuration Guide - IP Multicast

#return

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 3 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

126

Page 137: Configuration Guide - IP Multicast

4 MSDP Configuration

About This Chapter

The MSDP protocol is used to implement multicast routing and data forwarding between PIM-SM domains and anycast RP in a PIM-SM domain.

4.1 MSDP OverviewMSDP functions to set up an MSDP peer relationship between RPs in different PIM-SMdomains. MSDP peers exchange (S, G) information by sending SA messages. In this manner,MSDP peers share multicast source information and hosts can receive multicast data from themulticast sources in another PIM-SM domain.

4.2 MSDP Features Supported by the NE5000ENE5000E implements PIM-SM inter-domain multicast and anycast RP in a PIM-SM domainthrough MSDP. You can control the connections between MSDP peers, adjust SA messageparameters, and configure authentication for MSDP peers and filtering policies of SA messagesto enhance MSDP security. The NE5000E supports multi-instance MSDP.

4.3 Configuring PIM-SM Inter-domain MulticastWhen a multicast network is divided into multiple PIM-SM domains, MSDP is required toconnect RPs in different domains and enable RPs to share multicast source information. As aresult, hosts in the local PIM-SM domain can receive the multicast data sent by the multicastsources in other domains.

4.4 Configuring Anycast RPAnycast RP indicates that multiple RPs with the same address reside in the same PIM-SMdomain and MSDP peer relationships are set up between these RPs; therefore IP routingautomatically selects the topologically closest RP for each source and receiver. This reducesburdens on a single RP, implements RP backup, and optimizes the forwarding path.

4.5 Controlling MSDP Peer ConnectionsMSDP peers communicate through TCP connections. You can flexibly control the sessions setup between MSDP peers by closing or reestablishing TCP connections. In addition, you can alsoadjust the period for retrying to set up MSDP peer connections and configure MSDP peerauthentication to improve the security of TCP connections.

4.6 Adjusting the Parameters of SA MessagesMSDP peers share (S, G) information by exchanging SA messages. You can configure thecapacity of the SA cache, enable the sending of SA Request messages, enable the encapsulation

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

127

Page 138: Configuration Guide - IP Multicast

of multicast data into SA messages, and create filtering policies of SA messages and SA Requestmessages.

4.7 Maintaining MSDPMaintaining MSDP involves clearing MSDP peer statistics and (S, G) information in the SAcache, monitoring MSDP running status, and debugging MSDP for fault location.

4.8 Configuration ExamplesConfiguration examples are provided to tell you how to implement the MSDP RPF check throughBGP or static RPF neighbors, how to implement PIM-SM inter-domain multicast, inter-ASmulticast, and how to configure anycast RP in a PIM-SM domain.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

128

Page 139: Configuration Guide - IP Multicast

4.1 MSDP OverviewMSDP functions to set up an MSDP peer relationship between RPs in different PIM-SMdomains. MSDP peers exchange (S, G) information by sending SA messages. In this manner,MSDP peers share multicast source information and hosts can receive multicast data from themulticast sources in another PIM-SM domain.

On a basic PIM-SM network, a multicast source registers with only the Rendezvous Point (RP)in the local Protocol Independent Multicast Sparse Mode (PIM-SM) domain. Multicast sourceinformation is isolated between domains and therefore an RP knows only the multicast sourcein the local domain and sets up a Multicast Distribution Tree (MDT) for multicast dataforwarding to hosts in the domain.

If there is a mechanism that can transfer information about multicast sources of other domainsto the RP in the local domain, the RP in the local domain can send Join messages to the multicastsources of other PIM-SM domains and set up MDTs between the local domain and remotedomains. Therefore, multicast data packets can be transmitted across domains and the groupmembers in the local domain can receive multicast data sent by the multicast sources in otherdomains.

Multicast Source Discovery Protocol (MSDP) is such a mechanism. MSDP is an inter-domainmulticast solution to the interconnection among multiple PIM-SM domains. MSDP functionsto set up an MSDP peer relationship between RPs in different PIM-SM domains. MSDP peersexchange (S, G) information by sending Source Active (SA) messages. The SA messages, atlast, are transmitted from the RP with which the local multicast source registers to the RPs towhich group members in other PIM-SM domains join.

MSDP peers set up TCP connections and perform the Reverse Path Forwarding (RPF) check onthe received SA messages.

NOTE

MSDP is applicable only to PIM-SM and useful only for the Any Source Multicast (ASM) model.

MSDP peer relationships can be set up between RPs in the same PIM-SM domain. In this manner,information about the multicast source is shared by RPs in the domain and thus anycast RP isimplemented.

4.2 MSDP Features Supported by the NE5000ENE5000E implements PIM-SM inter-domain multicast and anycast RP in a PIM-SM domainthrough MSDP. You can control the connections between MSDP peers, adjust SA messageparameters, and configure authentication for MSDP peers and filtering policies of SA messagesto enhance MSDP security. The NE5000E supports multi-instance MSDP.

PIM-SM Inter-domain MulticastWhen a multicast network is divided into multiple PIM-SM domains, MSDP is required toconnect RPs in different domains and enable RPs to share multicast source information. At last,hosts in the local PIM-SM domain can receive the multicast data sent by the multicast sourcesin other domains.

You can configure intra-AS MSDP peers, inter-AS MSDP peers, and static RPF peers to connectRPs in different PIM-SM domains.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

129

Page 140: Configuration Guide - IP Multicast

Anycast RP in a PIM-SM DomainAnycast RP in a PIM-SM domain enables a multicast source to register with the topologicallyclosest RP or a receiver to join the topologically closest RP. This releases burdens on a singleRP, implements RP backup, and optimizes the forwarding path.

You can configure a loopback interface as a Candidate-RP (C-RP) or a static RP and set theloopback interface address as the logical RP address of SA messages.

Connection Control Between MSDP PeersThe NE5000E supports the start and close of MSDP sessions. In addition, setting the periodwithin which an RP can retransmit the request for setting up a TCP connection to the remoteMSDP peer is also allowed.

MSDP Peer AuthenticationConfiguring MSDP MD5 or Key-Chain authentication can improve the security of TCPconnections set up between MSDP peers. The MSDP peers must be configured with the sameauthentication password; otherwise, the TCP connection cannot be set up between MSDP peersand MSDP messages cannot be transmitted.

SA CacheBy default, the SA cache function is enabled on the router. The (S, G) information carried in theSA messages is then cached locally. If the router requires receiving multicast data, it directlyobtains useful (S, G) information from the SA cache. Setting the maximum number of (S, G)entries in an SA cache can prevent the Deny of Service (DoS) attack.

You are allowed to disable the SA cache function on the router. After the SA cache function isdisabled, the router no longer saves (S, G) information carried in the SA messages locally. If therouter requires receiving multicast data, it should wait for the SA message sent by the MSDPpeer in the next sending period. This may result in a delay in obtaining multicast sourceinformation.

Transmission of Burst Multicast DataIf the interval for some multicast sources to send multicast data is longer than the timeout periodof (S, G) entries, the source's DR can only encapsulate multicast data into Register messagesone by one and send the messages to the source's RP when multicast data bursts. The source'sRP transmits (S, G) information to the remote RP through SA messages. The remote RP thensends an (S, G) Join message to the multicast source to set up an SPT. If the (S, G) entry timesout, the remote users can never receive the multicast data from the multicast source.

Filtering Policies for the Construction, Receiving, and Forwarding of SA MessagesBy default, the router accepts all the SA messages that pass the RPF check, and forwards theSA messages to other MSDP peers.

To control the transmission of SA messages among MSDP peers, you can configure filteringpolicies of the construction, receiving, and forwarding of SA messages on the NE5000E.

l You can configure policies on the source's RP for filtering the multicast sources thatconstruct SA messages. The source's RP then filters locally registered and active multicast

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

130

Page 141: Configuration Guide - IP Multicast

sources, and determines which (S, G) information need be advertised based on the setpolicies.

l You can configure policies of filtering the SA messages received from remote MSDP peers.When SA messages sent by remote MSDP peers reach the router, the router determineswhether to accept the messages based on the set policies.

l You can configure policies of filtering the SA messages to be forwarded to remote MSDPpeers. The router then determines whether to forward the received SA messages based onthe set policies.

Multi-instance MSDP

MSDP peers can be set up between the interfaces on the routers in the same instance (publicnetwork instance or VPN instance). MSDP peers exchange SA messages to implement inter-domain VPN multicast.

The router running multi-instance MSDP maintains a set of MSDP mechanisms for eachsupported VPN instance separately. Therefore, only the information of MSDP and PIM-SM thatbelong to the same instance can be exchanged.

4.3 Configuring PIM-SM Inter-domain MulticastWhen a multicast network is divided into multiple PIM-SM domains, MSDP is required toconnect RPs in different domains and enable RPs to share multicast source information. As aresult, hosts in the local PIM-SM domain can receive the multicast data sent by the multicastsources in other domains.

Applicable Environment

To ensure that all RPs on a network share multicast source information and minimize the scopeof the MSDP connected graph, you are recommended to configure MSDP peers only on all RPs,including static RPs and C-RPs on the network.

To ensure that the SA messages transmitted between MSDP peers are not interrupted by RPFrules and to reduce redundant traffic, you are recommended to adopt the following solutions:

l Add all the MSDP peers in the same AS to the same mesh group.

l Perform one of the following steps on the MSDP peers across ASs:

– Set up a TCP connection through the Boarder Gateway Protocol (BGP).

– Specify the RPs as static RPF peers of each other.

Pre-configuration Tasks

Before configuring PIM-SM inter-domain multicast, complete the following tasks:

l Configuring a unicast routing protocol to ensure normal unicast routing on the network

l Enabling multicast routing on all routers and enabling PIM-SM on all the interfaces

l Dividing the network into multiple PIM-SM domains and configuring RPs

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

131

Page 142: Configuration Guide - IP Multicast

Configuration Procedures

Figure 4-1 Flowchart for configuring PIM-SM inter-domain multicast

Establish an MSDP peerrelationship between BGP

peers

Configure intra-AS MSDP peers

Configure inter-AS MSDP peersfor BGP peers

Establish an MSDP peerrelationship between static

RPF peers

Configure intra-AS MSDP peers

Configure inter-AS static RPFpeers

Mandatoryprocedure

Optionalprocedure

4.3.1 Configuring Intra-AS MSDP PeersWhen multiple PIM-SM domains exist in an AS or multiple RPs serving different multicastgroups exist in a PIM-SM domain, you are recommended to configure MSDP peer relationshipsbetween all RPs (including static RPs and C-RPs) and add all MSDP peers to the same meshgroup.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.

Step 3 Run:peer peer-address connect-interface interface-type interface-number

An MSDP peer connection is set up.

l peer-address: specifies the address of the remote MSDP peer.l interface-type interface-number: specifies the local interface connected with the remote

MSDP peer.

Step 4 (Optional) Run:peer peer-address description text

A description is added to the remote MSDP peer.

This configuration helps you to differentiate remote MSDP peers and manage the connectionswith the remote MSDP peers.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

132

Page 143: Configuration Guide - IP Multicast

l peer-address: specifies the address of the remote MSDP peer.l text: specifies the description text. The text is a string of a maximum of 80 characters.

Step 5 Run:peer peer-address mesh-group name

The remote MSDP peer is added to a mesh group. That is, the remote MSDP peer isacknowledged as a member of the mesh group.

l peer-address: specifies the address of the remote MSDP peer.l name: specifies the name of a mesh group. The members of the same mesh group use the

same mesh group name.

Note the following during configuration:

l MSDP peer connections must be set up between all members of the same mesh group.l All members of the mesh group must acknowledge each other as members of the mesh group.l An MSDP peer can belong to only one mesh group. If an MSDP peer is configured to join

different mesh groups, only the latest configuration is valid.

Step 6 Run:commit

The configuration is committed.

----End

4.3.2 Configuring Inter-AS MSDP Peers for BGP PeersYou can configure an MSDP peer relationship between RPs in different ASs in which a BGPpeer relationship is set up. In this manner, PIM-SM domains in different ASs can share multicastsource information.

ContextEstablish a BGP peer relationship between the RPs in different ASs and then do as follows:

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.

Step 3 Run:peer peer-address connect-interface interface-type interface-number

An MSDP peer connection is set up.

l peer-address: specifies the address of the remote MSDP peer. The address is the same asthat of the remote BGP peer.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

133

Page 144: Configuration Guide - IP Multicast

l interface-type interface-number: specifies the local interface connected with the remoteMSDP peer. This interface is the local BGP peer interface.

Step 4 (Optional) Run:peer peer-address description text

A description is added to the remote MSDP peer.

This configuration helps to differentiate remote MSDP peers and manage the connections withthe remote MSDP peers.

l peer-address: specifies the address of the remote MSDP peer.l text: specifies the description text. The text is a string of a maximum of 80 characters.

Step 5 Run:commit

The configuration is committed.

----End

4.3.3 Configuring Inter-AS Static RPF PeersYou can configure a static RPF peer relationship between RPs in different ASs to enable PIM-SM domains in different ASs to share multicast source information.

ContextNOTE

If "4.3.2 Configuring Inter-AS MSDP Peers for BGP Peers" is complete, skip this configuration.

ProcedureStep 1 Run:

system-view

The system view is displayed.

Step 2 Run:msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.

Step 3 Run:peer peer-address connect-interface interface-type interface-number

An MSDP peer connection is set up.

l peer-address: specifies the address of the remote MSDP peer.l interface-type interface-number: specifies the local interface connected with the remote

MSDP peer.

Step 4 (Optional) Run:peer peer-address description text

The description is added for the remote MSDP peer is added.

This configuration helps to differentiate remote MSDP peers and manage the connections withthe remote MSDP peers.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

134

Page 145: Configuration Guide - IP Multicast

l peer-address: specifies the address of the remote MSDP peer.l text: specifies the description text. The text is a string of a maximum of 80 characters.

Step 5 Run:static-rpf-peer peer-address [ rp-policy ip-prefix-name ]

The remote MSDP peer is specified as a static RPF peer.

l peer-address: specifies the address of the remote MSDP peer.l rp-policy ip-prefix-name: specifies the policy of filtering the addresses of source's RPs in

the SA messages.If several static RPF peers are configured for one router, obey the following configurationrules:– Specify rp-policy for all static RPF peers.

After receiving SA messages from several active static RPF peers, the local router filtersthe SA messages based on the rp-policy configured for each static RPF peer. Only theSA messages that pass filtration are accepted.

– Do not specify rp-policy for any static RPF peersThe router accepts all the SA messages received from several active static RPF peers.

Step 6 Run:commit

The configuration is committed.

----End

4.3.4 Checking the ConfigurationAfter PIM-SM inter-domain multicast is configured, you can run commands to check brief anddetailed information about MSDP peers.

PrerequisiteAll the configurations about PIM-SM inter-domain multicast are complete.

Procedurel Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] brief command

to check brief information about MSDP peers.l Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] peer-status

[ peer-address ] command to check detailed information about MSDP peers.

----End

ExampleRun the display msdp brief command, and you can view brief information about all the remoteMSDP peers, including the number of MSDP peers, MSDP peer addresses, and MSDPconnection status. For example:

<HUAWEI> display msdp briefMSDP Peer Brief Information of VPN-Instance: public net Configured Up Listen Connect Shutdown Down 2 2 0 0 0 0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

135

Page 146: Configuration Guide - IP Multicast

Peer's Address State Up/Down time AS SA Count Reset Count 192.168.2.1 Up 01:07:08 200 8 0 192.168.4.2 Up 00:06:39 100 13 0

Run the display msdp peer-status [ peer-address ] command, and you can view detailedinformation about all the remote peers or the specified MSDP peer. For example:

<HUAWEI> display msdp peer-status 10.110.11.11MSDP Peer Information of VPN-Instance: public net MSDP Peer 20.20.20.20, AS 100 Description: Information about connection status: State: Up Up/down time: 14:41:08 Resets: 0 Connection interface: LoopBack0 (20.20.20.30) Number of sent/received messages: 867/947 Number of discarded output messages: 0 Elapsed time since last connection or counters clear: 14:42:40 Information about (Source, Group)-based SA filtering policy: Import policy: none Export policy: none Information about SA-Requests: Policy to accept SA-Request messages: none Sending SA-Requests status: disable Minimum TTL to forward SA with encapsulated data: 0 SAs learned from this peer: 0, SA-cache maximum for the peer: none Input queue size: 0, Output queue size: 0 Counters for MSDP message: Count of RPF check failure: 0 Incoming/outgoing SA messages: 0/0 Incoming/outgoing SA requests: 0/0 Incoming/outgoing SA responses: 0/0 Incoming/outgoing data packets: 0/0 Peer authentication: none Peer authentication: none

4.4 Configuring Anycast RPAnycast RP indicates that multiple RPs with the same address reside in the same PIM-SMdomain and MSDP peer relationships are set up between these RPs; therefore IP routingautomatically selects the topologically closest RP for each source and receiver. This reducesburdens on a single RP, implements RP backup, and optimizes the forwarding path.

Applicable Environment

In a traditional PIM-SM domain, each multicast group can be mapped to only one RP. Whenthe network is overloaded or the traffic is too concentrated, The following problems may occur:

l The load of the RP is too heavy.

l Routes converge slowly after the RP fails.

l The multicast forwarding path is not optimal.

Compared with the traditional PIM-SM network, the multicast network deployed with anycastRP has the following advantages:

l RP load balancing

Each RP maintains only partial source/group information in the PIM-SM domain, andforwards partial multicast data.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

136

Page 147: Configuration Guide - IP Multicast

l RP redundancyAfter an RP fails, the multicast sources that register with it and the receivers that join itselect another near RP to register with and join.

l RP optimal path– Receivers send Join messages to the nearest RP. The RPT with the optimal path is thus

set up.– Multicast sources register with the nearest RP. The source tree with the optimal path is

thus set up.

Pre-configuration TasksBefore configuring anycast RP, complete the following tasks:

l Configuring a unicast routing protocol to ensure normal unicast routing on the networkl Enabling multicast routing on all routers and enable PIM-SM on all the interfacesl Configuring a PIM-SM domain without any RP

Configuration Procedures

Figure 4-2 Flowchart for configuring anycast RP

Configure the RP address on aloopback interface

Configure MSDP peers on RPs

Configure a loopback interfaceas an RP

Specify a logical RP addressfor SA messages

MandatoryprocedureOptional

procedure

4.4.1 Configuring the RP Address on a Loopback InterfaceBefore configuring anycast RP on the routers in a PIM-SM domain, you need to prepare aloopback interface on each router and assign the same IP address to the loopback interfaces. Inaddition, advertise the RP address through unicast routes to ensure that each router has areachable route to the RP address.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

137

Page 148: Configuration Guide - IP Multicast

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface loopback interface-number

The loopback interface view is displayed.

In anycast RP, multiple RPs need to use the same IP address on a network. Therefore, it isrecommended to configure loopback interfaces as RPs.

Step 3 Run:ip address ip-address { mask | mask-length }

The address of the loopback interface, that is, the RP address, is configured.

Step 4 (Optional) Run:pim sm

PIM-SM is enabled on the RP interface.

NOTE

You need run this command before configuring C-RPs. When you configure static RPs, this command isnot required.

Step 5 Run:commit

The configuration is committed.

----End

4.4.2 Configuring a Loopback Interface as an RPYou can configure a loopback interface as either a static RP or a C-RP. To configure a static RP,you need to perform the configuration on all the routers in the PIM-SM domain; to configure aC-RP, you need to perform the configuration only on the routers where anycast RP is to beconfigured.

Procedurel Configuring a static RP

1. Run:system-view

The system view is displayed.2. Run:

pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.3. Run:

static-rp rp-address

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

138

Page 149: Configuration Guide - IP Multicast

The loopback interface address is configured as a static RP address.4. Run:

commit

The configuration is committed.l Configuring a C-RP

Before configuration, you need to configure a C-BSR and a BSR boundary. The C-BSRaddress must be different from the C-RP address.

1. Run:system-view

The system view is displayed.2. Run:

pim [ vpn-instance vpn-instance-name ]

The PIM view is displayed.3. Run:

c-rp loopback interface-number

The loopback interface address is configured as a C-RP address.4. Run:

commit

The configuration is committed.

----End

4.4.3 Configuring MSDP Peers on RPsMSDP peer relationships need be set up between RPs. If there are more than three routers, MSDPpeer relationships should be set up between any two routers and all MSDP peers should be addedto one mesh group.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.

Step 3 Run:peer peer-address connect-interface interface-type interface-number

An MSDP peer connection is set up.

l peer-address: specifies the address of the remote MSDP peer.l interface-type interface-number: specifies the local interface connected with the remote

MSDP peer.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

139

Page 150: Configuration Guide - IP Multicast

Step 4 (Optional) Run:peer peer-address description text

The description is added for the remote MSDP peer is added.

This configuration helps to differentiate remote MSDP peers and manage the connections withthe remote MSDP peers.

l peer-address: specifies the address of the remote MSDP peer.l text: specifies the description text. The text is a string of a maximum of 80 characters.

Step 5 (Optional) Run:peer peer-address mesh-group name

The remote MSDP peer is configured to join a mesh group. That is, the remote MSDP peer isacknowledged as a member of the mesh group.

NOTE

If only two routers are configured with anycast RP, this configuration is not necessary.

l peer-address: specifies the address of the remote MSDP peer.l name: specifies the name of a mesh group. The members of the same mesh group use the

same mesh group name.

Note the following during configuration:

l MSDP peer connections must be set up between all members of the same mesh group.l All members of the mesh group must acknowledge each other as a member of the group.l An MSDP peer can belong to only one mesh group. If an MSDP peer is configured to join

different mesh groups for multiple times, only the latest configuration is valid.

Step 6 Run:commit

The configuration is committed.

----End

4.4.4 Specifying a Logical RP Address for SA MessagesAn MSDP peer performs the RPF check on received SA messages. If the remote RP addresscarried in the SA message is the same as the local RP address, the MSDP peer discards the SAmessage. Therefore, you need to specify a logical RP address for the SA messages on therouter on which anycast RP is to be configured.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

140

Page 151: Configuration Guide - IP Multicast

Step 3 Run:originating-rp interface-type interface-number

The logical RP interface is configured. The logical RP interface cannot be the same as the actualRP interface. It is recommended to configure the MSDP peer interface as a logical interface.

After the originating-rp command is used, the SA message sent by the router will carry thelogical RP address. The logical RP address then replaces the RP address in the IP header of theSA message. In this manner, the SA message can pass the RPF check after reaching the remoterouter.

Step 4 Run:commit

The configuration is committed.

----End

4.4.5 Checking the ConfigurationAfter anycast RP in a PIM-SM domain is configured, you can run commands to check brief anddetailed information about MSDP peers and RP information of PIM routing entries.

PrerequisiteAll the configurations about anycast RP in a PIM-SM domain are complete.

Procedurel Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] brief command

to check brief information about MSDP peers.l Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] peer-status

[ peer-address ] command to check detailed information about MSDP peers.l Run the display pim [ vpn-instance vpn-instance-name | all-instance ] routing-table

command to check information about the RP of PIM routing entries.

----End

ExampleRun the display msdp brief command, and you can view brief information about MSDP peers.For example:

<HUAWEI> display msdp brief

MSDP Peer Brief Information of VPN-Instance: public net Configured Up Listen Connect Shutdown Down 1 1 0 0 0 0

Peer's Address State Up/Down time AS SA Count Reset Count 2.2.2.2 Up 00:10:17 ? 0 0

Run the display msdp peer-status [ peer-address ] command, and you can view detailedinformation about all the MSDP peers or the specified MSDP peer. For example:

<HUAWEI> display msdp peer-status 10.110.11.11MSDP Peer Information of VPN-Instance: public netMSDP Peer 20.20.20.20, AS 100 Description:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

141

Page 152: Configuration Guide - IP Multicast

Information about connection status: State: Up Up/down time: 14:41:08 Resets: 0 Connection interface: LoopBack0 (20.20.20.30) Number of sent/received messages: 867/947 Number of discarded output messages: 0 Elapsed time since last connection or counters clear: 14:42:40 Information about (Source, Group)-based SA filtering policy: Import policy: none Export policy: none Information about SA-Requests: Policy to accept SA-Request messages: none Sending SA-Requests status: disable Minimum TTL to forward SA with encapsulated data: 0 SAs learned from this peer: 0, SA-cache maximum for the peer: none Input queue size: 0, Output queue size: 0 Counters for MSDP message: Count of RPF check failure: 0 Incoming/outgoing SA messages: 0/0 Incoming/outgoing SA requests: 0/0 Incoming/outgoing SA responses: 0/0 Incoming/outgoing data packets: 0/0 Peer authentication: none Peer authentication: none

Run the display pim [ vpn-instance vpn-instance-name | all-instance ] routing-table commandon each RP to check information about the RP of PIM routing entries.<HUAWEI> display pim routing-tableVPN-Instance: public net Total 0 (*, G) entry; 1 (S, G) entry(10.11.1.2, 225.1.1.1) RP: 7.7.7.7 (local) Protocol: pim-sm, Flag: SPT ACT UpTime: 00:01:57 Upstream interface: GigabitEthernet2/0/0 Upstream neighbor: 10.3.1.2 RPF prime neighbor: 10.3.1.2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet3/0/0 Protocol: pim-sm, UpTime: - , Expires: -

4.5 Controlling MSDP Peer ConnectionsMSDP peers communicate through TCP connections. You can flexibly control the sessions setup between MSDP peers by closing or reestablishing TCP connections. In addition, you can alsoadjust the period for retrying to set up MSDP peer connections and configure MSDP peerauthentication to improve the security of TCP connections.

Applicable EnvironmentThe router can work normally with default control parameters. You are allowed to adjust theperiod for retrying to set up MSDP peer connections according to specific networkingenvironments.

NOTE

If there is no special requirement for the network, default values are recommended.

Pre-configuration TasksBefore configuring MSDP peer connection control, complete the following tasks:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

142

Page 153: Configuration Guide - IP Multicast

l Configuring a unicast routing protocol to ensure normal unicast routing on the networkl Configuring PIM-SM Inter-domain Multicast or configuring Anycast RP

Configuration ProceduresYou can choose to perform some of the following configuration tasks (except "Checking theConfiguration") according to the applicable environment.

4.5.1 Closing an MSDP Peer ConnectionAfter the connection between MSDP peers is closed, the MSDP peers no longer exchange SAmessages and do not retry to set up a new connection. You can reestablish the connection betweenMSDP peers as required.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.

Step 3 Run:shutdown peer-address

The connection with the remote MSDP peer is closed.

peer-address: specifies the address of the remote MSDP peer.

After the session with the remote MSDP peer is closed, configurations still remain. You can runthe undo shutdown peer-address command to reestablish a TCP connection with the remotepeer.

Step 4 Run:commit

The configuration is committed.

----End

4.5.2 Adjusting the Interval for Retrying to Set Up an MSDP PeerConnection

When a new MSDP peer relationship is created, a closed MSDP peer connection is restarted, ora faulty MSDP peer recovers, a TCP connection needs to be immediately set up between theMSDP peers. You can flexibly adjust the interval for retrying to set up a TCP connection betweenMSDP peers.

Procedure

Step 1 Run:system-view

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

143

Page 154: Configuration Guide - IP Multicast

The system view is displayed.

Step 2 Run:msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.

Step 3 Run:timer retry interval

The interval for the router to send a TCP connection request to the remote MSDP peer is set.

By default, the interval is 30 seconds.

Step 4 Run:commit

The configuration is committed.

----End

4.5.3 Configuring MSDP Peer AuthenticationYou can configure MSDP MD5 authentication for MSDP peers.

Procedurel Configuring MSDP MD5 authentication

1. Run:system-view

The system view is displayed.2. Run:

msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.3. Run:

peer peer-address password { cipher cipher-password | simple simple-password }

MSDP MD5 authentication is configured.

The MSDP peers must be configured with the same authentication password;otherwise, the TCP connection cannot be set up between MSDP peers and MSDPmessages cannot be transmitted. The authentication passwords configured on the twoends can be of different formats. The password on one end can be in cipher text whilethe password on the other end can be in plain text. The MD5 authentication passwordis case sensitive and cannot contain any space.

By default, MSDP MD5 authentication is not configured.4. Run:

commit

The configuration is committed.

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

144

Page 155: Configuration Guide - IP Multicast

4.5.4 Checking the ConfigurationAfter MSDP peer relationship control is configured, you can run commands to check brief anddetailed information about MSDP peers.

PrerequisiteAll the configurations about MSDP peer relationship control are complete.

Procedurel Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] brief command

to check brief information about MSDP peers.l Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] peer-status

[ peer-address ] command to check detailed information about MSDP peers.

----End

ExampleRun the display msdp brief command, and you can view brief information about all the remotepeers, including information about the MSDP peers whose TCP connections are closed, and theperiod during which the connections are closed. For example:

<HUAWEI> display msdp briefMSDP Peer Brief Information of VPN-Instance: public net Configured Up Listen Connect Shutdown Down 2 1 0 0 1 0

Peer's Address State Up/Down time AS SA Count Reset Count 192.168.2.1 Up 01:07:08 200 8 0 192.168.4.2 Shutdown 00:06:39 100 13 0

4.6 Adjusting the Parameters of SA MessagesMSDP peers share (S, G) information by exchanging SA messages. You can configure thecapacity of the SA cache, enable the sending of SA Request messages, enable the encapsulationof multicast data into SA messages, and create filtering policies of SA messages and SA Requestmessages.

Applicable EnvironmentSA messages carry the following information and are transmitted among multiple RPs.

l IP address of the source's RPl Number of (S, G) entries contained in the messagel Active (S, G) lists in the domain

Enabling the sending of SA Request message on the local RP and enabling the SA cache functionon the remote MSDP peer can shorten the time taken by a receiver to obtain multicast sourceinformation.

l The local RP sends an SA Request message, carrying the required group address, forobtaining the (S, G) list of this group.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

145

Page 156: Configuration Guide - IP Multicast

l On receiving the SA Request message, the remote MSDP peer responds with an SAResponse message carrying the queried (S, G) information.

Pre-configuration TasksBefore adjusting the parameters of SA messages, complete the following tasks:

l Configuring a unicast routing protocol to ensure normal unicast routing on the networkl Configuring PIM-SM Inter-domain Multicast or configuring Anycast RP

Configuration ProceduresYou can choose to perform some of the following configuration tasks (except "Checking theConfiguration") according to the applicable environment.

4.6.1 Configuring an SA CacheAn SA cache is used to save (S, G) information carried in the SA messages locally. If therouter needs to receive multicast data, it directly obtains useful (S, G) information from the SAcache. Setting the maximum number of (S, G) entries in an SA cache can prevent DoS attacks.You are allowed to disable the SA cache function on the NE5000E.

ContextBy default, the SA cache function is enabled on the router configured with an MSDP peer.

Procedurel Setting the maximum number of (S, G) entries in an SA cache

It is recommended to perform this configuration on all MSDP peers on the network to avoidDoS attacks.

1. Run:system-view

The system view is displayed.2. Run:

msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.3. Run:

peer peer-address sa-cache-maximum sa-limit

The maximum number of (S, G) entries in the SA cache is set.

– peer-address: specifies the address of the remote MSDP peer.– sa-limit: specifies the maximum number of (S, G) entries in the SA cache. If the

set maximum number is smaller than the SA cache specification, the set value takeseffect; otherwise, the SA cache specification takes effect.By default, an SA cache can save a maximum of 8192 (S, G) entries.

4. Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

146

Page 157: Configuration Guide - IP Multicast

The configuration is committed.l Disabling the SA cache function

1. Run:system-view

The system view is displayed.2. Run:

msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.3. Run:

undo cache-sa-enable

The SA cache function is disabled.

After the SA cache function is disabled, an RP directly forwards the received SAmessages to remote MSDP peers. It does not save the (S, G) information carried inthe SA messages locally. If the router needs to receive multicast data, it must wait forthe SA message sent by the MSDP peer in the next sending period. This may resultin a delay in obtaining multicast source information.

You can run the cache-sa-enable command in the MSDP view to re-enable the SAcache function.

4. Run:commit

The configuration is committed.

----End

4.6.2 Configuring Filtering Policies for SA MessagesBy default, an MSDP peer accepts all the SA messages that pass the RPF check, and forwardsthe SA messages to all remote MSDP peers. To control the transmission of SA messages amongMSDP peers, you can configure filtering policies of constructing, receiving, and forwarding SAmessages.

Procedurel Configuring a filtering policy for constructing SA messages on the source 's RP

1. Run:system-view

The system view is displayed.2. Run:

msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.3. Run:

import-source [ acl { acl-number | acl-name } ]

The filtering policy for constructing SA messages is configured.

acl basic-acl-number: defines a filtering policy. The source's RP filters locallyregistered and active multicast sources, and determines which (S, G) information needbe advertised based on the set policies.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

147

Page 158: Configuration Guide - IP Multicast

– If no ACL is specified, the SA message does not carry information about any localactive source.

– If an ACL is specified, the source's RP constructs an SA message carryinginformation about only the local sources matching the ACL, thereby, controllingthe advertisement of local (S, G) information.

By default, the source's RP constructs an SA message carrying information about allthe local active sources.

4. Run:commit

The configuration is committed.l Configuring a filtering policy for receiving SA messages from remote MSDP peers

1. Run:system-view

The system view is displayed.2. Run:

msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.3. Run:

peer peer-address sa-policy import [ acl { advanced-acl-number | acl-name acl-name } ]

The filtering policy for receiving SA messages from remote MSDP peers is set.

peer-address: specifies the address of the remote MSDP peer.

acl advanced-acl-number: defines a filtering policy. When the SA message sent by aremote MSDP peer reaches the router, the router determines whether to accept themessage based on the set policy.

– If no ACL is specified, the router does not accept any (S, G) information receivedfrom peer-address.

– If an ACL is specified, the router accepts the (S, G) information received frompeer-address and passing the filtration.

By default, the router accepts all the SA messages that pass the RPF check.4. Run:

commit

The configuration is committed.l Configuring a filtering policy for forwarding SA messages to remote MSDP peers

1. Run:system-view

The system view is displayed.2. Run:

msdp [ vpn-instance vpn-instance-name ]

The MSDP view is displayed.3. Run:

peer peer-address sa-policy export [ acl { advanced-acl-number | acl-name acl-name } ]

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

148

Page 159: Configuration Guide - IP Multicast

The filtering policy for forwarding SA messages to remote MSDP peers is configured.

peer-address: specifies the address of the remote MSDP peer.

acl advanced-acl-number: defines a filtering policy. The router determines whetherto forward the received SA messages based on the set policy.

– If no ACL is specified, the router does not forward any (S, G) information to peer-address.

– If an ACL is specified, the router forwards only the (S, G) information passing thefiltration to peer-address.

By default, the router forwards all the SA messages that pass the RPF check.4. Run:

commit

The configuration is committed.

----End

4.6.3 Checking the ConfigurationAfter SA message parameters are adjusted, you can run commands to check information and thenumber of (S, G) entries in the SA cache and view details about MSDP peers.

PrerequisiteSA message parameters are adjusted as required.

Procedurel Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] sa-cache [ group-

address | source-address | as-number ] * command to check information about (S, G) entriesin the SA cache.

l Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] sa-count [ as-number ] command to check the number of (S, G) entries in the SA cache.

l Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] peer-status[ peer-address ] command to check detailed information about MSDP peers.

----End

ExampleRun the display msdp sa-cache command, and you can view information about the (S, G) entriesin the SA cache. For example:

<HUAWEI> display msdp sa-cacheMSDP Source-Active Cache Information of VPN-Instance: public net MSDP Total Source-Active Cache - 2 entries MSDP matched 2 entries

(20.0.5.120, 225.0.0.1) Origin RP: 3.3.3.3 Pro: ?, AS: ? Uptime: 00:01:01, Expires: 00:05:59

(20.0.5.120, 225.0.0.2) Origin RP: 3.3.3.3

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

149

Page 160: Configuration Guide - IP Multicast

Pro: ?, AS: ? Uptime: 00:00:01, Expires: 00:05:59

Run the display msdp sa-count command, and you can view the number of (S, G) entries inthe SA cache. The entries are counted based on the numbers of the ASs where MSDP peers andRPs reside. For example:

<HUAWEI> display msdp sa-countMSDP Source-Active Count Information of VPN-Instance: public netNumber of cached Source-Active entries, counted by Peer Peer's Address Number of SA 10.10.10.10 5Number of source and group, counted by AS AS Number of source Number of group ? 3 3 Total 5 Source-Active entries matched

Run the display msdp peer-status [ peer-address ] command, and you can view detailedinformation about all the remote peers or the specified MSDP peer.

l You can view the setting of the maximum number of (S, G) entries in the SA cache fromthe "SA-cache maximum for the peer" field.

l You can view the configuration of SA Request messages from the "Information about SA-Requests" field.

l You can view the setting of the TTL threshold of the SA messages with multicast dataencapsulated from the "Minimum TTL to forward SA with encapsulated data" field.

l You can view the configuration of filtering policies of SA messages from the "Informationabout (Source, Group)-based SA filtering policy" field.

For example:

<HUAWEI> display msdp peer-status 10.110.11.11MSDP Peer Information of VPN-Instance: public netMSDP Peer 20.20.20.20, AS 100 Description: Information about connection status: State: Up Up/down time: 14:41:08 Resets: 0 Connection interface: LoopBack0 (20.20.20.30) Number of sent/received messages: 867/947 Number of discarded output messages: 0 Elapsed time since last connection or counters clear: 14:42:40 Information about (Source, Group)-based SA filtering policy: Import policy: 3000 Export policy: 3002 Information about SA-Requests: Policy to accept SA-Request messages: 2000 Sending SA-Requests status: enable Minimum TTL to forward SA with encapsulated data: 0 SAs learned from this peer: 0, SA-cache maximum for the peer: 5000 Input queue size: 0, Output queue size: 0 Counters for MSDP message: Count of RPF check failure: 0 Incoming/outgoing SA messages: 0/0 Incoming/outgoing SA requests: 0/0 Incoming/outgoing SA responses: 0/0 Incoming/outgoing data packets: 0/0 Peer authentication: none Peer authentication: none

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

150

Page 161: Configuration Guide - IP Multicast

4.7 Maintaining MSDPMaintaining MSDP involves clearing MSDP peer statistics and (S, G) information in the SAcache, monitoring MSDP running status, and debugging MSDP for fault location.

4.7.1 Clearing Statistics of MSDP PeersWhen you clear statistics about MSDP peers, you can choose whether to reset the TCPconnection between MSDP peers as required. The statistics cannot be restored after beingcleared. Resetting the TCP connection will affect the MSDP running.

Context

CAUTIONThe statistics about MSDP peers cannot be restored after being cleared. So, confirm the actionbefore you use the command.

Procedurel After resetting the TCP connection with the specified MSDP peer and clearing the statistics

about the specified MSDP peer are confirmed, run the reset msdp [ vpn-instance vpn-instance-name | all-instance ] peer [ peer-address ] command in the user view.

l After clearing the statistics about one or multiple MSDP peers without resetting the TCPconnection with the MSDP peer(s) is confirmed, run the reset msdp [ vpn-instance vpn-instance-name | all-instance ] statistics [ peer-address ] command in the user view.

l Run the reset msdp [ vpn-instance vpn-instance-name | all-instance ] control-messagecounters [ peer peer-address ] command in the user view to clear the statistics about thereceived, sent, and discarded MSDP messages.

----End

4.7.2 Clearing (S, G) Information from an SA CacheIf you want to reset the contents in an SA cache, you can clear all (S, G) information from theSA cache. (S, G) information cannot be restored after being cleared.

Context

CAUTION(S, G) information in an SA Cache cannot be restored after you clear it. So, confirm the actionbefore you use the command.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

151

Page 162: Configuration Guide - IP Multicast

Procedure

Step 1 After clearing the (S, G) information from an SA cache is confirmed, run the reset msdp [ vpn-instance vpn-instance-name | all-instance ] sa-cache [ group-address ] command in the userview.

----End

4.7.3 Monitoring the Running Status of MSDPYou can monitor the running status of MSDP by checking brief and detailed information aboutMSDP peers, (S, G) information in the SA cache, and the number of (S, G) entries in the SAcache.

ContextDuring the routine maintenance, you can run the following commands in any view to know therunning status of MSDP.

Procedurel Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] brief [ state

{ connect | down | listen | shutdown | up } ] command in any view to check briefinformation about MSDP peers.

l Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] peer-status[ peer-address ] command in any view to check detailed information about MSDP peers.

l Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] sa-cache [ group-address | source-address | as-number ] * command in any view to check (S, G) informationin the SA cache.

l Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] sa-count [ as-number ] command in any view to check the number of (S, G) entries in the SA cache.

l Run the display msdp [ vpn-instance vpn-instance-name | all-instance ] control-message counters [ peer peer-address | message-type { source-active | sa-request | sa-response | keepalive | notification | traceroute-request | traceroute-reply | data-packets | unknown-type } ] * command in any view to check statistics about the received,sent, and discarded MSDP messages.

----End

4.8 Configuration ExamplesConfiguration examples are provided to tell you how to implement the MSDP RPF check throughBGP or static RPF neighbors, how to implement PIM-SM inter-domain multicast, inter-ASmulticast, and how to configure anycast RP in a PIM-SM domain.

4.8.1 Example for Configuring PIM-SM Inter-domain MulticastYou can set up MSDP peer relationships between RPs in different PIM-SM domains in the sameAS or between the RPs in different ASs that have set up BGP peer relationships so that hostscan receive multicast data from the source in another PIM-SM domain in the AS or from thesource in another AS.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

152

Page 163: Configuration Guide - IP Multicast

Networking Requirements

CAUTIONFor the NE5000E, the interface is numbered as slot number/card number/interface number. Forthe NE5000E cluster, the interface is numbered as chassis ID/slot number/card number/interfacenumber. The slot number is chassis ID/slot ID.

As shown in Figure 4-3, there are two ASs on the network. Each AS contains at least one PIM-SM domain and each PIM-SM domain may contain none or one multicast source and receiver.It is required that the receiver in PIM-SM2 domain be capable of receiving both the multicastdata sent by S3 in PIM-SM3 domain and the multicast data sent by S1 in PIM-SM1 domain.

Figure 4-3 Networking diagram of configuring PIM-SM inter-domain multicast

AS100 AS200

PIM-SM1

S1

POS2/0/0 POS1/0/0

Loopback01.1.1.1/32

RouterB

RouterC

RouterE

Loopback02.2.2.2/32

POS1/0/0

PIM-SM2

MSDP peer

S3Loopback03.3.3.3/32

POS3/0/0POS2/0/0

POS2/0/0

PIM-SM3

Receiver

POS3/0/0

RouterA

POS2/0/0GE1/0/0

POS2/0/0GE1/0/0

POS2/0/0GE1/0/0

RouteD

RouterF

Device Interface IP Address Device Interface IP AddressRouter A GE 1/0/0 10.110.1.1/24 Router D GE 1/0/0 10.110.2.1/24

POS 2/0/0 192.168.1.1/24 POS 2/0/0 192.168.3.2/24Router B POS 1/0/0 192.168.2.1/24 Router E POS 2/0/0 192.168.5.1/24

POS 2/0/0 192.168.1.2/24 POS 3/0/0 192.168.4.2/24Router C POS 1/0/0 192.168.2.2/24 Router F GE 1/0/0 10.110.3.1/24

POS 2/0/0 192.168.3.1/24 POS 2/0/0 192.168.5.2/24POS 3/0/0 192.168.4.1/24

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

153

Page 164: Configuration Guide - IP Multicast

Configuration NotesWhen configuring PIM-SM inter-domain multicast, pay attention to the following points:

l PIM-SM and IGMP need to be enabled in sequence on the interfaces connecting therouters to hosts. That is, enable PIM-SM first and then IGMP.

l Establishing an MSDP peer relationship between BGP peers is applicable to only thesituation when the RP and the unicast ASBR are configured on the same router.

l The address of the interface on which the MSDP peer is configured must be the same withthat of the interface on which the EBGP peer is configured.

Configuration RoadmapYou need to establish MSDP peer relationships between RPs in PIM-SM domains. Theconfiguration roadmap is as follows:

1. Configure IP addresses for the interfaces on each router, and configure OSPF in the ASsto ensure that unicast routes are reachable in the ASs.

2. Establish an EBGP peer relationship between ASs and configure BGP and OSPF to importroutes from each other to ensure that unicast routes are reachable between ASs.

3. Enable the multicast function, enable PIM-SM on each interface, configure BSR boundariesto divide PIM-SM domains, and enable IGMP on the interface connected with the host.

4. Configure the C-BSR and the C-RP. Configure the RPs of PIM-SM1 and PIM-SM2 on theASBRs in the two domains.

5. Establish MSDP peer relationships between RPs of PIM-SM domains.6. Add MSDP peers in the same AS to the same mesh group.

Data PreparationTo complete the configuration, you need the following data:

l Multicast group addressl AS numbers of Router A and Router B and router ID of Router Bl AS numbers of Router C and Router D and router ID of Router Cl AS numbers of Router E and Router Fl Name of the mesh group to which MSDP peers in AS 200 join

Procedure

Step 1 Configure IP addresses for the interfaces on each router, and configure OSPF in the ASs. Thedetailed configuration procedure is not mentioned here.

Step 2 Establish an EBGP peer relationship between ASs and configure BGP and OSPF to import routesfrom each other.

# Configure EBGP on Router B and import OSPF routes.

[~RouterB] bgp 100[~RouterB-bgp] router-id 1.1.1.1[~RouterB-bgp] peer 192.168.2.2 as-number 200[~RouterB-bgp] import-route ospf 1[~RouterB-bgp] commit[~RouterB-bgp] quit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

154

Page 165: Configuration Guide - IP Multicast

# Configure EBGP on Router C and import OSPF routes.

[~RouterC] bgp 200[~RouterC-bgp] router-id 2.2.2.2[~RouterC-bgp] peer 192.168.2.1 as-number 100[~RouterC-bgp] import-route ospf 1[~RouterC-bgp] commit[~RouterC-bgp] quit

# Import BGP routes to OSPF on Router B. The configuration of Router C is similar to that ofRouter B, and is not mentioned here.

[~RouterB] ospf 1[~RouterB-ospf-1] import-route bgp[~RouterB-ospf-1] commit[~RouterB-ospf-1] quit

Step 3 Enable the multicast function, enable PIM-SM on interfaces, and configure BSR boundaries.

# Enable the multicast function on Router B and enable PIM-SM on each interface. Theconfigurations on other routers are similar to those on router B and are not mentioned here.

[~RouterB] multicast routing-enable[~RouterB] interface pos 2/0/0[~RouterB-Pos2/0/0] pim sm[~RouterB-Pos2/0/0] quit[~RouterB] interface pos 1/0/0[~RouterB-Pos1/0/0] pim sm[~RouterB-Pos1/0/0] commit

# Configure a BSR boundary on POS 1/0/0 on Router B, POS 3/0/0 on Router E, and POS 1/0/0and POS 3/0/0 on Router C respectively. The configurations on Router E and Router C are similarto those on Router B and are not mentioned here.

[~RouterB-Pos1/0/0] pim bsr-boundary[~RouterB-Pos1/0/0] commit[~RouterB-Pos1/0/0] quit

Step 4 Enable IGMP on the interfaces connected to hosts.

# Enable IGMP on the interface connecting Router D to hosts.

[~RouterD] interface gigabitethernet 1/0/0[~RouterD-GigabitEthernet1/0/0] igmp enable[~RouterD-GigabitEthernet1/0/0] commit[~RouterD-GigabitEthernet1/0/0] quit

Step 5 Configure the C-BSR and the C-RP.

# Create loopback 0 on Router B and configure loopback 0 as both a C-BSR and a C-RP. Theconfigurations on Router C andRouter E are similar to those on Router B and are not mentionedhere.

[~RouterB] interface loopback 0[~RouterB-LoopBack0] ip address 1.1.1.1 255.255.255.255[~RouterB-LoopBack0] pim sm[~RouterB-LoopBack0] quit[~RouterB] pim[~RouterB-pim] c-bsr loopback 0[~RouterB-pim] c-rp loopback 0[~RouterB-pim] commit[~RouterB-pim] quit

Step 6 Establish MSDP peer relationships.

# Configure an MSDP peer on Router B.

[~RouterB] msdp

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

155

Page 166: Configuration Guide - IP Multicast

[~RouterB-msdp] peer 192.168.2.2 connect-interface pos1/0/0[~RouterB-msdp] commit[~RouterB-msdp] quit

# Configure an MSDP peer on Router C.

[~RouterC] msdp[~RouterC-msdp] peer 192.168.2.1 connect-interface pos1/0/0[~RouterC-msdp] peer 192.168.4.2 connect-interface pos3/0/0[~RouterC-msdp] commit[~RouterC-msdp] quit

# Configure an MSDP peer on Router E.

[~RouterE] msdp[~RouterE-msdp] peer 192.168.4.1 connect-interface pos3/0/0[~RouterE-msdp] commit[~RouterE-msdp] quit

Step 7 Add MSDP peers in the same AS to the same mesh group.

# Add Router C to the mesh group as200.

[~RouterC] msdp[~RouterC-msdp] peer 192.168.4.2 mesh-group as200[~RouterC-msdp] commit[~RouterC-msdp] quit

# Add Router E to the mesh group as200.

[~RouterE] msdp[~RouterE-msdp] peer 192.168.4.1 mesh-group as200[~RouterE-msdp] commit[~RouterE-msdp] quit

Step 8 Verify the configuration.

# Run the display bgp peer command, and you can view BGP peer relationships establishedbetween routers. For example, the BGP peer relationship between Router B and Router C isdisplayed as follows:

<RouterB> display bgp peer BGP local router ID : 1.1.1.1 Local AS number : 100 Total number of peers : 1 Peers in established state : 1

Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv

192.168.2.2 4 200 52 49 0 00:42:37 Established 7

# Run the display bgp routing-table command, and you can view BGP routing tablesonrouters. For example, the BGP routing table on Router C is displayed as follows:

<RouterC> display bgp routing-table Total Number of Routes: 10

BGP Local router ID is 2.2.2.2 Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete

Network NextHop MED LocPrf PrefVal Path/Ogn

*> 1.1.1.1/32 192.168.2.1 0 0 100? *> 2.2.2.2/32 0.0.0.0 0 0 ? *> 3.3.3.3/32 0.0.0.0 1 0 ? *> 10.110.1.0/24 192.168.2.1 2 0 100? *> 10.110.2.0/24 0.0.0.0 2 0 ? *> 10.110.3.0/24 0.0.0.0 3 0 ?

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

156

Page 167: Configuration Guide - IP Multicast

*> 192.168.1.0 192.168.2.1 1 0 100? *> 192.168.3.0 0.0.0.0 1 0 ? *> 192.168.4.0 0.0.0.0 1 0 ? *> 192.168.5.0 0.0.0.0 2 0 ?

# Run the display msdp brief command, and you can view MSDP peer relationships establishedbetween routers. The brief information about MSDP peer relationships established betweenRouter B and Router C and Router E is displayed as follows:<RouterB> display msdp briefMSDP Peer Brief Information of VPN-Instance: public net Configured Up Listen Connect Shutdown Down 1 1 0 0 0 0 Peer's Address State Up/Down time AS SA Count Reset Count 192.168.2.2 Up 00:12:27 200 13 0<RouterC> display msdp briefMSDP Peer Brief Information of VPN-Instance: public net Configured Up Listen Connect Shutdown Down 2 2 0 0 0 0 Peer's Address State Up/Down time AS SA Count Reset Count 192.168.2.1 Up 01:07:08 100 8 0 192.168.4.2 Up 00:06:39 200 13 0<RouterE> display msdp briefMSDP Peer Brief Information of VPN-Instance: public net Configured Up Listen Connect Shutdown Down 1 1 0 0 0 0 Peer's Address State Up/Down time AS SA Count Reset Count 192.168.4.1 Up 00:15:32 200 8 0

# Run the display msdp peer-status command, and you can view detailed information aboutMSDP peer relationships established between routers. The detailed information about MSDPpeer relationships on Router B is displayed as follows:<RouterB> display msdp peer-statusMSDP Peer Information of VPN-Instance: public net MSDP Peer 192.168.2.2, AS 200 Description: Information about connection status: State: Up Up/down time: 00:15:47 Resets: 0 Connection interface: Pos1/0/0 (192.168.2.1) Number of sent/received messages: 16/16 Number of discarded output messages: 0 Elapsed time since last connection or counters clear: 00:17:51 Information about (Source, Group)-based SA filtering policy: Import policy: none Export policy: none Information about SA-Requests: Policy to accept SA-Request messages: none Sending SA-Requests status: disable Minimum TTL to forward SA with encapsulated data: 0 SAs learned from this peer: 0, SA-cache maximum for the peer: none Input queue size: 0, Output queue size: 0 Counters for MSDP message: Count of RPF check failure: 0 Incoming/outgoing SA messages: 0/0 Incoming/outgoing SA requests: 0/0 Incoming/outgoing SA responses: 0/0 Incoming/outgoing data packets: 0/0 Peer authentication: unconfigured Peer authentication: none

# Run the display pim routing-table command, and you can view PIM routing tables onrouters. When S1 (10.110.1.2/24) in PIM-SM1 domain and S3 (10.110.3.2/24) in PIM-SM3domain send multicast data to G (225.1.1.1/24), Receiver (10.110.2.2/24) in PIM-SM2 domaincan receive the multicast data. Information about the PIM routing tables on Router B andRouter C is as follows:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

157

Page 168: Configuration Guide - IP Multicast

<RouterB> display pim routing-tableVPN-Instance: public net Total 0 (*, G) entry; 1 (S, G) entry (10.110.1.2, 225.1.1.1) RP: 1.1.1.1 (local) Protocol: pim-sm, Flag: SPT EXT ACT UpTime: 00:00:42 Upstream interface: Pos2/0/0 Upstream neighbor: 192.168.1.1 RPF neighbor: 192.168.1.1 Downstream interface(s) information: Total number of downstreams: 1 1: Pos1/0/0 Protocol: pim-sm, UpTime: 00:00:42, Expires:-<RouterC> display pim routing-tableVPN-Instance: public net Total 1 (*, G) entry; 2 (S, G) entries(*, 225.1.1.1) RP: 2.2.2.2 (local) Protocol: pim-sm, Flag: WC RPT UpTime: 00:13:46 Upstream interface: NULL Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: Pos2/0/0, Protocol: pim-sm, UpTime: 00:13:46, Expires:-(10.110.1.2, 225.1.1.1) RP: 2.2.2.2 Protocol: pim-sm, Flag: SPT MSDP ACT UpTime: 00:00:42 Upstream interface: Pos1/0/0 Upstream neighbor: 192.168.2.1 RPF neighbor: 192.168.2.1 Downstream interface(s) information: Total number of downstreams: 1 1: Pos2/0/0 Protocol: pim-sm, UpTime: 00:00:42, Expires:-(10.110.3.2, 225.1.1.1) RP: 2.2.2.2 Protocol: pim-sm, Flag: SPT MSDP ACT UpTime: 00:00:42 Upstream interface: Pos3/0/0 Upstream neighbor: 192.168.4.2 RPF neighbor: 192.168.4.2 Downstream interface(s) information: Total number of downstreams: 1 1: Pos2/0/0 Protocol: pim-sm, UpTime: 00:00:42, Expires:-

----End

Configuration Filesl Configuration file of Router B

#sysname RouterB# multicast routing-enable#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.1.2 255.255.255.0 pim sm#interface Pos1/0/0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

158

Page 169: Configuration Guide - IP Multicast

undo shutdown link-protocol ppp ip address 192.168.2.1 255.255.255.0 pim bsr-boundary pim sm#interface LoopBack0 ip address 1.1.1.1 255.255.255.255 pim sm#pim c-bsr LoopBack0 c-rp LoopBack0# ospf 1 import-route BGP area 0.0.0.0 network 192.168.1.0 0.0.0.255 network 1.1.1.1 0.0.0.0#bgp 100 router-id 1.1.1.1 peer 192.168.2.2 as-number 200 # ipv4-family unicast import-route ospf 1 peer 192.168.2.2 enable peer 192.168.2.2 route-update-interval 0#msdp peer 192.168.2.2 connect-interface Pos1/0/0#return

l Configuration file of Router C#sysname RouterC# multicast routing-enable#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.2.2 255.255.255.0 pim bsr-boundary pim sm#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.3.1 255.255.255.0 pim sm#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 192.168.4.1 255.255.255.0 pim bsr-boundary pim sm#interface LoopBack0 ip address 2.2.2.2 255.255.255.255 pim sm#pim c-bsr LoopBack0 c-rp LoopBack0#ospf 1 import-route BGP

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

159

Page 170: Configuration Guide - IP Multicast

area 0.0.0.0 network 192.168.3.0 0.0.0.255 network 192.168.4.0 0.0.0.255 network 2.2.2.2 0.0.0.0#bgp 200 router-id 2.2.2.2 peer 192.168.2.1 as-number 100 # ipv4-family unicast import-route ospf 1 peer 192.168.2.1 enable peer 192.168.2.1 route-update-interval 0#msdp peer 192.168.2.1 connect-interface Pos1/0/0 peer 192.168.4.2 connect-interface Pos3/0/0 peer 192.168.4.2 mesh-group as200#return

l Configuration file of Router E#sysname RouterE# multicast routing-enable#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.5.1 255.255.255.0 pim sm#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 192.168.4.2 255.255.255.0 pim bsr-boundary pim sm#interface LoopBack0 ip address 3.3.3.3 255.255.255.255 pim sm#pim c-bsr LoopBack0 c-rp LoopBack0# ospf 1 area 0.0.0.0 network 192.168.4.0 0.0.0.255 network 192.168.5.0 0.0.0.255 network 3.3.3.3 0.0.0.0#msdp peer 192.168.4.1 connect-interface Pos3/0/0 peer 192.168.4.1 mesh-group as200#return

4.8.2 Example for Configuring Inter-AS Multicast by Using StaticRPF Peers

You can set up MSDP peer relationships between RPs in different PIM-SM domains in the sameAS or static RPF relationships between the RPs in different ASs so that hosts can receivemulticast data from the source in another PIM-SM domain in the AS or from the source in anotherAS.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

160

Page 171: Configuration Guide - IP Multicast

Networking Requirements

CAUTIONFor the NE5000E, the interface is numbered as slot number/card number/interface number. Forthe NE5000E cluster, the interface is numbered as chassis ID/slot number/card number/interfacenumber. The slot number is chassis ID/slot ID.

As shown in Figure 4-4, there are two ASs on the network. Each AS contains at least one PIM-SM domain and each PIM-SM domain may contain no or one multicast source and receiver. Itis required that the receiver in PIM-SM2 domain be capable of receiving both the multicast datasent by S3 in PIM-SM3 domain and the multicast data sent by S1 in PIM-SM1 domain withoutchanging the unicast topology.

Figure 4-4 Networking diagram for configuring inter-AS multicast by using static RPF peers

100

AS100 AS200

PIM-SM1

S1

Loopback0

RouterA

RouterC

RouterB

RouterD

RouterE

Loopback0

PIM-SM2

PIM-SM3

RouterG

S2

Loopback0

BGP peers

POS1/0/0

POS2/0/0

RouterF

POS2/0/0

POS2/0/0

POS1/0/0

POS1/0/0

Receiver

Receiver

POS1/0/0

Device Interface IP Address Device Interface IP AddressRouter A POS 1/0/0 192.168.5.2/24 Router D POS 1/0/0 192.168.3.2/24Router B POS 2/0/0 192.168.2.2/24 Loopback0 2.2.2.2/32Router C POS 1/0/0 192.168.1.1/24 Router E POS 2/0/0 192.168.2.1/24

POS 2/0/0 192.168.4.1/24 Router F POS 1/0/0 192.168.5.1/24Loopback 0 1.1.1.1/32 Loopback 0 3.3.3.3/32

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

161

Page 172: Configuration Guide - IP Multicast

Configuration NotesWhen configuring inter-AS multicast by using static RPF peers, pay attention to the followingpoints:

l PIM-SM and IGMP need to be enabled in sequence on the interfaces connecting therouters to hosts. That is, enable PIM-SM first and then IGMP.

l Incorrect configuration of static RPF peers may cause a routing loop of SA messages. So,configure static RPF peers with caution.

Configuration RoadmapYou need to establish MSDP peer relationships between RPs in PIM-SM domains and thenconfigure static RPF peers for MSDP peers. The configuration roadmap is as follows: The RPFcheck is not required for the SA messages sent from a static RPF peer, thereby implementingmulticast source information sharing between ASs without changing the unicast topology.

1. Configure IP addresses for the interfaces on each router; configure OSPF in each AS andconfigure EBGP between ASs; configure BGP and OSPF to import routes from each other.

2. Enable the multicast function on and enable PIM-SM on each interface. Configure loopback0 as both a C-BSR and a C-RP: Loopback 0 interfaces on Router C, Router D, andRouter F function as the C-BSRs and the C-RPs for the PIM-SM domains where theyseparately reside.

3. Establish an MSDP peer relationship between RPs in PIM-SM domains: Establish MSDPpeer relationships between Router C and Router D, and between Router C and Router F.

4. Specify static RPF peers for MSDP peers: Specify Router D and Router F as static RPFpeers of Router C. Specify Router C as the only static RPF peer for Router D and RouterF separately.

Data PreparationTo complete the configuration, you need the following data:

l AS numbers and router IDs of Router A, Router B, and Router Cl AS numbers and router IDs of Router D and Router El AS numbers of Router F and Router G, router ID of Router Fl Policy used by Router C to filter the SA messages received from Router D and Router Fl Policy used by Router D and Router F to filter the SA messages received from Router C

Procedure

Step 1 Configure IP addresses for the interfaces on each router, and configure OSPF in the ASs. Thedetailed configuration procedure is not mentioned here.

Step 2 Enable the multicast function on and enable PIM-SM on interfaces.

# Enable the multicast function on all routers and enable PIM-SM on each interface. Theconfigurations on other routers are similar to those on router C and are not mentioned here.

[~RouterC] multicast routing-enable[~RouterC] interface pos 1/0/0[~RouterC-Pos1/0/0] pim sm[~RouterC-Pos1/0/0] quit[~RouterC] interface pos 2/0/0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

162

Page 173: Configuration Guide - IP Multicast

[~RouterC-Pos2/0/0] pim sm[~RouterC-Pos2/0/0] commit[~RouterC-Pos2/0/0] quit

# Configure a BSR boundary on POS 1/0/0 on Router A and Router F, and POS 2/0/0 onRouter B and Router E respectively. The configurations on Router B, Router E, and Router Fare similar to those on Router A and are not mentioned here.

[~RouterA] interface pos 1/0/0[~RouterA-Pos1/0/0] pim bsr-boundary[~RouterA-Pos1/0/0] commit[~RouterA-Pos1/0/0] quit

Step 3 Enable IGMP on the interfaces connected to hosts. The detailed configuration procedure is notmentioned here.

Step 4 Configure loopback 0 as both a C-BSR and a C-RP.

# Create loopback 0 interfaces on Router C, Router D, and Router F, and configure loopback 0as both a C-BSR and a C-RP on each Router. The configurations on Router D andRouter F aresimilar to those on Router C and are not mentioned here.

[~RouterC] interface loopback 0[~RouterC-LoopBack0] ip address 1.1.1.1 255.255.255.255[~RouterC-LoopBack0] pim sm[~RouterC-LoopBack0] quit[~RouterC] pim[~RouterC-pim] c-bsr loopback 0[~RouterC-pim] c-rp loopback 0[~RouterC-pim] commit[~RouterC-pim] quit

Step 5 Configure static RPF peers.

# Configure Router D and Router F as static RPF peers of Router C.

[~RouterC] ip ip-prefix list-df permit 192.168.0.0 16 greater-equal 16 less-equal 32[~RouterC] msdp[~RouterC-msdp] peer 192.168.3.2 connect-interface pos 1/0/0[~RouterC-msdp] peer 192.168.5.1 connect-interface pos 2/0/0[~RouterC-msdp] static-rpf-peer 192.168.3.2 rp-policy list-df[~RouterC-msdp] static-rpf-peer 192.168.5.1 rp-policy list-df [~RouterC-msdp] commit[~RouterC-msdp] quit

# Configure Router C as static RPF peers of Router D and Router F respectively. Theconfigurations on Router F andRouter D are similar and are not mentioned here.

[~RouterD] ip ip-prefix list-c permit 192.168.0.0 16 greater-equal 16 less-equal 32[~RouterD] msdp[~RouterD-msdp] peer 192.168.1.1 connect-interface pos 1/0/0[~RouterD-msdp] static-rpf-peer 192.168.1.1 rp-policy list-c[~RouterD-msdp] commit[~RouterD-msdp] quit

Step 6 Verify the configuration.

# Run the display bgp peer command, and you can view BGP peer relationships establishedbetween routers. Router C has no output, which indicates that the BGP peer relationships arenot set up between Router C and Router D, and between Router C and Router F.

# Run the display msdp brief command, and you can view MSDP peer relationships establishedbetween routers. When S1 in PIM-SM1 domain sends multicast data, the receivers in PIM-SM2and PIM-SM3 domains can receive the data. For example, display of MSDP peers on Router C,Router D, and Router F is as follows:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

163

Page 174: Configuration Guide - IP Multicast

<RouterC> display msdp briefMSDP Peer Brief Information of VPN-Instance: public net Configured Up Listen Connect Shutdown Down 2 2 0 0 0 0 Peer's Address State Up/Down time AS SA Count Reset Count 192.168.3.2 Up 01:07:08 ? 8 0 192.168.5.1 Up 00:16:39 ? 13 0<RouterD> display msdp briefMSDP Peer Brief Information of VPN-Instance: public net Configured Up Listen Connect Shutdown Down 1 1 0 0 0 0 Peer's Address State Up/Down time AS SA Count Reset Count 192.168.1.1 Up 01:07:09 ? 8 0<RouterF> display msdp briefMSDP Peer Brief Information of VPN-Instance: public net Configured Up Listen Connect Shutdown Down 1 1 0 0 0 0 Peer's Address State Up/Down time AS SA Count Reset Count 192.168.4.1 Up 00:16:40 ? 13 0

----End

Configuration Filesl Configuration file of Router C

#sysname RouterC#multicast routing-enableip ip-prefix list-df index 10 permit 192.168.0.0 16 greater-equal 16 less-equal 32#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.1.1 255.255.255.0 pim sm#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.4.1 255.255.255.0 pim sm#interface LoopBack0 ip address 1.1.1.1 255.255.255.255 pim sm#pim c-bsr LoopBack0 c-rp LoopBack0#ospf 1 area 0.0.0.0 network 192.168.1.0 0.0.0.255 network 192.168.4.0 0.0.0.255 network 1.1.1.1 0.0.0.0#msdp peer 192.168.3.2 connect-interface pos 1/0/0 peer 192.168.5.1 connect-interface pos 2/0/0 static-rpf-peer 192.168.3.2 rp-policy list-df static-rpf-peer 192.168.5.1 rp-policy list-df#return

l Configuration file of Router D#

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

164

Page 175: Configuration Guide - IP Multicast

sysname RouterD#multicast routing-enableip ip-prefix list-c index 10 permit 192.168.0.0 16 greater-equal 16 less-equal 32#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.3.2 255.255.255.0 pim sm#interface LoopBack0 ip address 2.2.2.2 255.255.255.255 pim sm#pim c-bsr LoopBack0 c-rp LoopBack0#ospf 1 area 0.0.0.0 network 192.168.3.0 0.0.0.255 network 2.2.2.2 0.0.0.0#msdp peer 192.168.1.1 connect-interface pos 1/0/0 static-rpf-peer 192.168.1.1 rp-policy list-c#return

l Configuration file of the Router F#sysname RouterF#multicast routing-enableip ip-prefix list-c index 10 permit 192.168.0.0 16 greater-equal 16 less-equal 32#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.5.1 255.255.255.0 pim sm#interface LoopBack0 ip address 3.3.3.3 255.255.255.255 pim sm#pim c-bsr LoopBack0 c-rp LoopBack0#ospf 1 area 0.0.0.0 network 192.168.5.0 0.0.0.255 network 3.3.3.3 0.0.0.0#msdp peer 192.168.4.1 connect-interface pos 1/0/0 static-rpf-peer 192.168.4.1 rp-policy list-c#return

4.8.3 Example for Configuring Anycast RPIf there are multiple multicast sources and receivers in a PIM-SM domain, you can configureMSDP peer relationships between C-RPs and configure anycast RP to implement load sharing.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

165

Page 176: Configuration Guide - IP Multicast

Networking Requirements

CAUTIONFor the NE5000E, the interface is numbered as slot number/card number/interface number. Forthe NE5000E cluster, the interface is numbered as chassis ID/slot number/card number/interfacenumber. The slot number is chassis ID/slot ID.

As shown in Figure 4-5, the PIM-SM domain has multiple multicast sources and receivers. Itis required that MSDP peers be established in the PIM-SM domain to implement RP loadbalancing.

Figure 4-5 Networking diagram of configuring anycast RP

ReceiverHost1

ReceiverHost2

Loopback10

Loopback0Loopback0

Loopback10

GE2/0/0POS1/0/0

POS2/0/0

POS1/0/0

POS1/0/0

GE3/0/0

RouterC

RouterD

RouterE

PIM-SM

MSDP peers

SourceS1

Loopback1

Loopback1

GE2/0/0

GE3/0/0

GE2/0/0

GE1/0/0RouterA

RouterB

GE1/0/0

GE2/0/0

SourceS2

RouterF

RouterG

Device Interface IP Address Device Interface IP AddressRouter A GE 1/0/0 10.110.5.1/24 Router D POS 1/0/0 192.168.3.1/24

GE 2/0/0 10.110.1.2/24 GE 2/0/0 10.110.2.1/24Router B GE 1/0/0 10.110.6.1/24 GE 3/0/0 10.110.3.1/24

GE 2/0/0 10.110.2.2/24 Loopback 0 2.2.2.2/32RouterC POS 1/0/0 192.168.1.1/24 Loopback 1 4.4.4.4/32

GE 2/0/0 10.110.1.1/24 Loopback 10 10.1.1.1/32GE 3/0/0 10.110.4.1/24 RouterE POS 1/0/0 192.168.3.2/24Loopback 0 1.1.1.1/32 POS 2/0/0 192.168.1.2/24

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

166

Page 177: Configuration Guide - IP Multicast

Loopback 1 3.3.3.3/32Loopback10 10.1.1.1/32

Configuration NotesWhen configuring anycast RP, pay attention to the following points:

l PIM-SM and IGMP need to be enabled in sequence on the interfaces connecting therouters to hosts. That is, enable PIM-SM first and then IGMP.

l You need to configure RPs on loopback interfaces.l Before configuring loopback interfaces as C-RPs, enable PIM-SM on the loopback

interfaces. Before configuring C-RPs, configure C-BSRs and BSR boundaries. The C-BSRaddresses cannot be the same as the addresses of the local C-RPs.

Configuration RoadmapConfigure anycast RP so that the receiver can send a Join message to the closest RP and thesource can send a Register message to the closest RP. In this way, RP load sharing isimplemented. The configuration roadmap is as follows:

1. Configure IP addresses for the interfaces on each router and configure OSPF in the PIM-SM to ensure communications between routers in the domain.

2. Enable the multicast function, enable PIM-SM on each interface, and enable IGMP on theinterface at the host side.

3. Configure the same address for loopback 10 interfaces on Router C and Router D andconfigure the loopback 10 interfaces on them as C-RPs; configure loopback 1 interfaces asC-BSRs.

4. Configure MSDP peers on loopback 0 interfaces of Router C and Router D separately.MSDP accepts the SA messages received from the source's RP based on the RPF rules.

Data PreparationTo complete the configuration, you need the following data:

l Multicast group addressl Router ID of Router Cl Router ID of Router D

ProcedureStep 1 Configure an IP address for each interface and a unicast routing protocol.on the routers. The

configuration details are not mentioned here.

# Configure an IP address and mask to each interface according to Figure 4-5 in the PIM-SMdomain and configure OSPF to ensure the communications between routers. The detailedconfiguration procedure is not mentioned here.

Step 2 Enable the multicast function on and enable PIM-SM on interfaces.

# Enable the multicast function on all routers and enable PIM-SM on each interface. Theconfigurations on other routers are similar to those on Router C and are not mentioned here.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

167

Page 178: Configuration Guide - IP Multicast

[~RouterC] multicast routing-enable[~RouterC] interface gigabitethernet 3/0/0[~RouterC-GigabitEthernet3/0/0] pim sm[~RouterC-GigabitEthernet3/0/0] quit[~RouterC] interface gigabitethernet 2/0/0[~RouterC-GigabitEthernet2/0/0] pim sm[~RouterC-GigabitEthernet2/0/0] quit[~RouterC] interface pos 1/0/0[~RouterC-Pos1/0/0] pim sm[~RouterC-Pos1/0/0] commit[~RouterC-Pos1/0/0] quit

Step 3 Enable IGMP on the interfaces connected to hosts. The detailed configuration procedure is notmentioned here.

Step 4 Configure loopback 1 and loopback 10 interfaces and configure C-BSRs and C-RPs.

# Configure the same address for loopback 1 interfaces and the same address for loopback 10interfaces on Router C and Router D; configure loopback 1 interfaces as C-BSRs and loopback10 interfaces as C-RPs. The configurations on Router D are similar to those on Router C andare not mentioned here.[~RouterC] interface loopback 1[~RouterC-LoopBack1] ip address 3.3.3.3 255.255.255.255[~RouterC-LoopBack1] pim sm[~RouterC-LoopBack1] quit[~RouterC] interface loopback 10[~RouterC-LoopBack10] ip address 10.1.1.1 255.255.255.255[~RouterC-LoopBack10] pim sm[~RouterC-LoopBack10] quit[~RouterC] pim[~RouterC-pim] c-bsr loopback 1[~RouterC-pim] c-rp loopback 10[~RouterC-pim] commit[~RouterC-pim] quit

Step 5 Configure loopback 0 interfaces and MSDP peers.

# Configure an MSDP peer on loopback 0 on Router C.[~RouterC] interface loopback 0[~RouterC-LoopBack0] ip address 1.1.1.1 255.255.255.255[~RouterC-LoopBack0] pim sm[~RouterC-LoopBack0] quit[~RouterC] msdp[~RouterC-msdp] originating-rp loopback0[~RouterC-msdp] peer 2.2.2.2 connect-interface loopback0[~RouterC-msdp] commit[~RouterC-msdp] quit

# Configure an MSDP peer on loopback 0 on Router D.[~RouterD] interface loopback 0[~RouterD-LoopBack0] ip address 2.2.2.2 255.255.255.255[~RouterD-LoopBack0] pim sm[~RouterD-LoopBack0] commit[~RouterD-LoopBack0] quit[~RouterD] msdp[~RouterD-msdp] originating-rp loopback0[~RouterD-msdp] peer 1.1.1.1 connect-interface loopback0[~RouterD-msdp] commit[~RouterD-msdp] quit

Step 6 Verify the configuration.

# Run the display msdp brief command, and you can view MSDP peer relationships establishedbetween routers. The detailed information about MSDP peers on Router C and Router D isdisplayed as follows:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

168

Page 179: Configuration Guide - IP Multicast

[~RouterC] display msdp briefMSDP Peer Brief Information of VPN-Instance: public net Configured Up Listen Connect Shutdown Down 1 1 0 0 0 0 Peer's Address State Up/Down time AS SA Count Reset Count 2.2.2.2 Up 00:10:17 ? 0 0[~RouterD] display msdp briefMSDP Peer Brief Information of VPN-Instance: public net Configured Up Listen Connect Shutdown Down 1 1 0 0 0 0 Peer's Address State Up/Down time AS SA Count Reset Count 1.1.1.1 Up 00:10:18 ? 0 0

# Run the display pim routing-table command, and you can view PIM routing tablesonrouters. In the PIM-SM domain, S1 (10.110.5.100/24) sends multicast data to G (225.1.1.1).Host1 that joins G can receive the multicast data sent to G. By comparing the display of PIMroutes on Router C and Router D, you can find that the current valid RP is Router C. S1 registerswith Router C, and Host1 sends Join messages to Router C.

<RouterC> display pim routing-tableVPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry (*, 225.1.1.1) RP: 10.1.1.1 (local) Protocol: pim-sm, Flag: WC UpTime: 00:28:49 Upstream interface: Register Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet3/0/0 Protocol: static, UpTime: 00:28:49, Expires: - (10.110.5.1, 225.1.1.1) RP: 10.1.1.1 (local) Protocol: pim-sm, Flag: SPT 2MSDP ACT UpTime: 00:02:26 Upstream interface: GigabitEthernet2/0/0 Upstream neighbor: 10.110.1.2 RPF prime neighbor: 10.110.1.2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet3/0/0 Protocol: pim-sm, UpTime: 00:02:26, Expires: -<RouterD> display pim routing-table

There is no display.

# Host1 leaves G, and S1 stops sending multicast data to G. You can run the reset multicastforwarding-table all command to clear the multicast routing entries on Router C.

<RouterC> reset multicast forwarding-table all

# Host2 joins G, and S2 (10.110.6.100/24) begins to send multicast data to G. By comparingwith the display of PIM routes on Router C and Router D, you can find that the current valid RPis Router D. S2 registers with Router D, and Host2 sends Join messages to Router D.

<RouterC> display pim routing-table

There is no display.

<RouterD> display pim routing-tableVPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry(*, 225.1.1.1) RP: 10.1.1.1 (local) Protocol: pim-sm, Flag: WC RPT UpTime: 00:07:23

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

169

Page 180: Configuration Guide - IP Multicast

Upstream interface: NULL Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet3/0/0, Protocol: pim-sm, UpTime: 00:07:23, Expires:- (10.110.6.100, 225.1.1.1) RP: 10.1.1.1 (local) Protocol: pim-sm, Flag: SPT 2MSDP ACT UpTime: 00:10:20 Upstream interface: GigabitEthernet2/0/0 Upstream neighbor: 10.110.2.2 RPF prime neighbor: 10.110.2.2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet3/0/0 Protocol: pim-sm, UpTime: 00:10:22, Expires: -

----End

Configuration Filesl Configuration file of Router C

#sysname RouterC#multicast routing-enable#interface GigabitEthernet3/0/0 undo shutdown ip address 10.110.4.1 255.255.255.0 pim sm#interface GigabitEthernet2/0/0 undo shutdown ip address 10.110.1.1 255.255.255.0 pim sm#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.1.1 255.255.255.0 pim sm#interface LoopBack0 ip address 1.1.1.1 255.255.255.255 pim sm#interface LoopBack1 ip address 3.3.3.3 255.255.255.255 pim sm#interface LoopBack10 ip address 10.1.1.1 255.255.255.255 pim sm#pim c-bsr LoopBack1 c-rp LoopBack10#ospf 1 area 0.0.0.0 network 10.110.1.0 0.0.0.255 network 10.110.4.0 0.0.0.255 network 1.1.1.1 0.0.0.0 network 3.3.3.3 0.0.0.0 network 10.1.1.1 0.0.0.0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

170

Page 181: Configuration Guide - IP Multicast

network 192.168.1.0 0.0.0.255#msdp originating-rp LoopBack0 peer 2.2.2.2 connect-interface LoopBack0#return

l Configuration file of Router D#sysname RouterD#multicast routing-enable#interface GigabitEthernet3/0/0 undo shutdown ip address 10.110.3.1 255.255.255.0 pim sm#interface GigabitEthernet2/0/0 undo shutdown ip address 10.110.2.1 255.255.255.0 pim sm#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.3.1 255.255.255.0 pim sm#interface LoopBack0 ip address 2.2.2.2 255.255.255.255 pim sm#interface LoopBack1 ip address 4.4.4.4 255.255.255.255 pim sm#interface LoopBack10 ip address 10.1.1.1 255.255.255.255 pim sm#pim c-bsr LoopBack1 c-rp LoopBack10#ospf 1 area 0.0.0.0 network 10.110.2.0 0.0.0.255 network 10.110.3.0 0.0.0.255 network 2.2.2.2 0.0.0.0 network 4.4.4.4 0.0.0.0 network 10.1.1.1 0.0.0.0 network 192.168.3.0 0.0.0.255#msdp originating-rp LoopBack0 peer 1.1.1.1 connect-interface LoopBack0#return

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 4 MSDP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

171

Page 182: Configuration Guide - IP Multicast

5 MBGP Configuration

About This Chapter

Multicast BGP (MBGP) is used to transmit routing information between Autonomous Systems(ASs) for multicast services.

5.1 MBGP OverviewMBGP is a multiprotocol extension to the Border Gateway Protocol (BGP).

5.2 MBGP Features Supported by the NE5000EThe NE5000E supports the MBGP features of load balancing, route summarization, routedampening, community usage, and route reflector usage.

5.3 Configuring an MBGP PeerValid routing information can be provided for the Reverse Path Forwarding (RPF) check onlyafter an MBGP connection is enabled in the multicast address family view.

5.4 Configuring MBGP to Import Local RoutesMBGP can import routes from other protocols. When routes are imported from dynamic routingprotocols, the process IDs of the routing protocols must be specified.

5.5 Controlling MBGP Route AdvertisementMBGP can filter or apply routing policies to the routes to be advertised to a peer or peer group.

5.6 Controlling MBGP Route SelectionThe policy governing MBGP route selection can be changed by configuring MBGP routeattributes.

5.7 Configuring MBGP Routing PoliciesMBGP routing policies can be configured to flexibly control the sending and receiving of routes.

5.8 Configuring MBGP Load BalancingConfiguring MBGP load balancing better utilizes network resources.

5.9 Configuring MBGP Route DampeningConfiguring MBGP route dampening suppresses instable MBGP routes.

5.10 Configuring MBGP RRsMBGP RRs resolve the problem of full-mesh connections between multiple IBGP peers, whichreduces network costs.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

172

Page 183: Configuration Guide - IP Multicast

5.11 Maintaining MBGPMaintaining MBGP involves resetting MBGP connections, clearing MBGP statistics, anddebugging MBGP.

5.12 Configuration ExamplesThis chapter provides an MBGP configuration example. In the configuration example, thenetworking requirements, network diagram, precautions, configuration roadmap, andconfiguration procedures are provided.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

173

Page 184: Configuration Guide - IP Multicast

5.1 MBGP OverviewMBGP is a multiprotocol extension to the Border Gateway Protocol (BGP).

If a multicast source and its receivers are located in different ASs, a multicast forwarding treemust be built across the ASs. The Multiprotocol Border Gateway Protocol (MP-BGP) can beused to transmit routing information between ASs for multicast services.

MP-BGP is an enhanced BGP. At present, BGP4 only applies to unicast routing. Addingcapabilities to BGP4, MP-BGP allows BGP to provide routing information for multiple routingprotocols, including multicast.

l MP-BGP maintains both unicast routes and multicast routes, stores them in different routingtables, and keeps unicast routing information and multicast routing information separatefrom each other.

l MP-BGP builds a unicast routing topology different from a multicast routing topology.l Most of unicast routing policies and configuration methods supported by BGP4 can be

applied to multicast, and MP-BGP maintains unicast routes different from multicast routesbased on the routing policies.

When MP-BGP is applied to multicast, it is called MBGP.

NOTE

This chapter describes MP-BGP configurations for multicast, namely, MBGP configurations. For moreinformation about MP-BGP, see the HUAWEI NetEngine5000E Core Router Configuration Guide - IPRouting.

5.2 MBGP Features Supported by the NE5000EThe NE5000E supports the MBGP features of load balancing, route summarization, routedampening, community usage, and route reflector usage.

For details about the configurations of these features, see "BGP Configuration" in the HUAWEINetEngine5000E Core Router Configuration Guide - IP Routing.

5.3 Configuring an MBGP PeerValid routing information can be provided for the Reverse Path Forwarding (RPF) check onlyafter an MBGP connection is enabled in the multicast address family view.

Applicable Environment

The RPF check is performed on multicast packets based on the following routes:l Multicast static routesl Unicast routesl MBGP routes

Valid routing information can be provided for the RPF check after an MBGP connection isenabled in the multicast address family view.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

174

Page 185: Configuration Guide - IP Multicast

Pre-configuration TasksBefore configuring basic MBGP functions, complete the following task:l Configuring basic multicast functions

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:bgp as-number

The BGP view is displayed.

Step 3 Run:peer ip-address as-number as-number

The IP address and AS number of a remote peer are specified.

Step 4 (Optional) Run:peer { ipv4-address | group-name } connect-interface interface-type interface-number [ ipv4-source-address ]

The local interface and the source address used to set up a BGP connection are specified.

If the BGP connection is set up through a Loopback interface or a sub-interface, the commandis required.

Step 5 (Optional) Run:peer { ip-address | group-name } ebgp-max-hop [ hop-count ]

The maximum number of hops of an EBGP connection is set.

The command is valid only for EBGP peers.

If the EBGP connection is set up through a Loopback interface, the command is required.

Step 6 Run:ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.

Step 7 Run:peer { peer-address | group-name } enable

MBGP is enabled for a BGP peer or peer group, which then becomes an MBGP peer or peergroup.

l group-name specifies the name of a BGP peer group.l peer-address specifies the IP address of a remote BGP peer.

Step 8 Run:commit

The configuration is committed.

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

175

Page 186: Configuration Guide - IP Multicast

Checking the ConfigurationAfter the configuration is completed, you can check if the configuration has taken effect.

Run the display bgp multicast peer [ peer-address ] [verbose ] command to check informationabout MBGP peers.

<HUAWEI> display bgp multicast peerBGP local router ID : 13.13.13.9 Local AS number : 1 Total number of peers : 1 Peers in established state : 1 Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv 10.2.1.2 4 2 36 37 0 00:15:35 Established 24

5.4 Configuring MBGP to Import Local RoutesMBGP can import routes from other protocols. When routes are imported from dynamic routingprotocols, the process IDs of the routing protocols must be specified.

Applicable EnvironmentMBGP cannot discover routes by itself. Instead, it imports routes discovered by other protocolssuch as an IGP or static routes into the MBGP routing table.

Routes imported into the MBGP table can be:l Routes statically imported by using the network commandl Routes imported by using the import-route commandAt least one type of routes need to be imported into the MBGP routing table as needed in aparticular usage scenario.

Pre-configuration TasksBefore configuring MBGP to import routes, complete the following task:

l Configuring an MBGP peer

Do as follows on the routers that are configured as MBGP peers:

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:bgp as-number

The BGP view is displayed.

Step 3 Run:ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.

Step 4 Run:network ip-address [ mask-length | mask ] [ route-policy route-policy-name ]

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

176

Page 187: Configuration Guide - IP Multicast

MBGP is configured to import routes from the local routing table into the MBGP routing tableand then advertise the MBGP routes in the local network.

l ip-address [ mask-length | mask ] specifies the IP address, mask length, or mask informationof the imported routes.

l route-policy route-policy-name specifies a routing policy to control which routes can beimported.

The destination address and mask length specified in the network command must be the sameas those of the entry in the local IP routing table. Otherwise, the specified routes will not beimported.

Step 5 Run:import-route protocol [ process-id ] [ med med-value | route-policy route-policy-name ] *

IGP routes are imported into MBGP.

l protocol [ process-id ] specifies a routing protocol and the process ID of the routing protocolfrom which routes are imported. The routing protocol is specified by direct, static, rip,isis, or ospf. A process ID must be specified to import routes from IS-IS, OSPF, or RIP.

l med med-value specifies the MED value assigned to imported routes.l route-policy route-policy-name specifies a route filtering policy. Only the routes that pass

filtering can be imported into the MBGP routing table.

Step 6 (Optional) Run:default-route imported

Default routes are imported into the MBGP routing table.

By default, default routes are not imported into the MBGP routing table.

To import default routes, run the import-route command in conjunction with the default-routeimported command. If only the import-route command is used, default routes will not beimported. In addition, the default-route imported command is used to import only the defaultroutes that exist in the local routing table.

Step 7 Run:commit

The configuration is committed.

----End

Checking the ConfigurationAfter the configuration is completed, you can check if the configuration has taken effect.

l Run the display bgp multicast network command to check routing information advertisedby MBGP.

l Run the display bgp multicast routing-table [ ip-address [ mask-length [ longer-prefixes ] | mask [ longer-prefixes ] ] ] command to check the MBGP routing table.

# Run the display bgp multicast network command. You can view routing informationadvertised by MBGP. For example:

<HUAWEI> display bgp multicast network

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

177

Page 188: Configuration Guide - IP Multicast

BGP Local Router ID is 2.2.2.9 Local AS Number is 100(Multicast) Network Mask Route-policy 10.1.1.1 255.255.255.0 10.2.2.2 255.255.255.0

5.5 Controlling MBGP Route AdvertisementMBGP can filter or apply routing policies to the routes to be advertised to a peer or peer group.

Applicable Environment

MBGP advertises routes to peers based on the network plan for exchange of routing informationbetween devices. MBGP can filter or apply routing policies to the routes to be advertised to apeer or peer group.

Pre-configuration Tasks

Before controlling MBGP route advertisement, complete the following task:

l Configuring an MBGP peer

Configuration Procedures

Choose certain configuration tasks from the following (except "Checking the Configuration")as needed in a particular usage scenario.

5.5.1 Summarizing Local MBGP RoutesConfiguring route summarization can reduce the size of a routing table on a peer. MBGP supportsautomatic and manual route summarization.

Context

On a large-scale MBGP network, configuring route summarization can reduce the number ofadvertised route prefixes and improve MBGP stability.

The following describes how to configure automatic or manual route summarization.

Procedurel Configure automatic route summarization.

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

ipv4-family multicast

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

178

Page 189: Configuration Guide - IP Multicast

The BGP-IPv4 multicast address family view is displayed.4. Run:

summary automatic

Subnet routes are summarized based on natural network segment masks.

This command summarizes the routes imported into the MBGP routing table. Theroutes may be direct routes, static routes, RIP routes, OSPF routes, or IS-IS routes.Note that this command is invalid for the routes imported by using the networkcommand.

5. Run:commit

The configuration is committed.l Configure manual route summarization.

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.4. Run one of the following commands to configure route summarization as needed.

– To advertise all summarized routes and specific routes, run:aggregate ipv4-address { mask | mask-length }

– To advertise only summarized routes, run:aggregate ipv4-address { mask | mask-length } detail-suppressed

– To advertise some of the specific routes, run:aggregate ipv4-address { mask | mask-length } suppress-policy route-policy-name3

Using the peer route-policy command can also advertise some of the specificroutes.

– To generate the summarized route used for loop detection, run:aggregate ipv4-address { mask | mask-length } as-set

– To configure the attributes of summarized routes, run:aggregate ipv4-address { mask | mask-length } attribute-policy route-policy-name1

Using the peer route-policy command can also configure the attributes ofsummarized routes.If as-set is configured in the aggregate command, the AS_Path attributeconfigured in the apply as-path command does not take effect.

– To generate summarized routes based on some of the specific routes, run:aggregate ipv4-address { mask | mask-length } origin-policy route-policy-name2

Only the routes that exist in the local MBGP routing table can be manuallysummarized. For example, if the route 10.1.1.1/24 is not in the MBGP routing table,

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

179

Page 190: Configuration Guide - IP Multicast

MBGP will not advertise the route summarized by using the aggregate 10.1.1.1 16command.

5. Run:commit

The configuration is committed.

----End

5.5.2 Configuring MBGP to Advertise Default Routes to PeersA device sends a default route with the local address as the next hop address to the specifiedpeer for load balancing purpose, regardless of whether there are default routes in the local routingtable. This greatly reduces the number of routes on the network.

ContextDefault routes can be used in the networks with the following characteristics:l There are multiple EBGP peers, and each peer can receive full Internet routes.l There are multiple Route Reflectors (RRs), and each RR can receive full Internet routes.

When load balancing is not performed on the network, an MBGP peer receives at most one copyof active full Internet routes. After load balancing is performed on the network, the number ofactive routes received by the MBGP peer doubles, which causes the number of routes on thenetwork to sharply increase. In this case, you can configure the local device to advertise onlydefault routes to its MBGP peer and use default routes for load balancing, which can greatlyreduce the number of routes on the network.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:bgp as-number

The BGP view is displayed.

Step 3 Run:ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.

Step 4 Run:peer { group-name | peer-address } default-route-advertise [ route-policy route-policy-name ]

Default routes are advertised to an MBGP peer or peer group.

l group-name specifies the name of an MBGP peer group.l peer-address specifies the IP address of a remote MBGP peer.l route-policy route-policy-name specifies a routing policy to control which routes are

advertised.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

180

Page 191: Configuration Guide - IP Multicast

Step 5 Run:commit

The configuration is committed.

----End

5.5.3 Configuring MBGP to Advertise the Community AttributeThe community and extended community attributes are used to simplify routing policymanagement.

Context

The community attribute is transmitted between MBGP peers, and its transmission is notrestricted within ASs. With the community attribute, a group of routes can share the same routingpolicy. Before sending a route with the community attribute to peers, MBGP can change theoriginal community attribute carried by the route.

Do as follows on the router that is configured as an MBGP peer:

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:bgp as-number

The BGP view is displayed.

Step 3 Run:ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.

Step 4 Run one of the following commands as needed.l To advertise the community attribute to an MBGP peer or peer group, run:

peer { group-name | peer-address } advertise-community

By default, the community attribute is not advertised to MBGP peers or peer groups.

– group-name specifies the name of an MBGP peer group.

– peer-address specifies the IP address of a remote MBGP peer.l To advertise the extended community attribute to an MBGP peer or peer group, run:

peer { group-name | peer-address } advertise-ext-community

By default, the extended community attribute is not advertised to MBGP peers or peer groups.

– group-name specifies the name of an MBGP peer group.

– peer-address specifies the IP address of a remote MBGP peer.

Step 5 Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

181

Page 192: Configuration Guide - IP Multicast

The configuration is committed.

----End

5.5.4 Checking the ConfigurationAfter MBGP route advertisement is configured, you can view MBGP routing information.

PrerequisiteThe configurations of the policy governing MBGP route advertisement are complete.

Procedurel Run the display bgp multicast routing-table community [ aa:nn ] & <0-13> [ no-

advertise | no-export | no-export-subconfed ] * [ whole-match ] command to check theroutes carrying the specified MBGP community attribute in the routing table.

l Run the display bgp multicast routing-table community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number } command to check the routes that match the MBGP community filter.

l Run the display bgp multicast network command to check routing information advertisedby MBGP.

l Run the display bgp multicast routing-table [ ip-address [ mask-length [ longer-prefixes ] | mask [ longer-prefixes ] ] ] command to check the MBGP routing table.

l Run the display bgp multicast routing-table cidr command to check ClasslessInterDomain Routing (CIDR) information.

l Run the display bgp multicast routing-table statistics command to check statistics aboutthe entries in the MBGP routing table.

----End

Example# Run the display bgp multicast network command, and you can view routing informationadvertised by MBGP. For example:

<HUAWEI> display bgp multicast network BGP Local Router ID is 2.2.2.9 Local AS Number is 100(Multicast) Network Mask Route-policy 10.1.1.1 255.255.255.0 10.2.2.2 255.255.255.0

5.6 Controlling MBGP Route SelectionThe policy governing MBGP route selection can be changed by configuring MBGP routeattributes.

Applicable EnvironmentMBGP has many route attributes. These attributes are used to define the routing policy anddescribe the MBGP route prefix. Configuring these attributes can change the policy governingMBGP route selection.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

182

Page 193: Configuration Guide - IP Multicast

Pre-configuration Tasks

Before controlling MBGP route selection, complete the following task:

l Configuring an MBGP peer

Configuration Procedures

Choose certain configuration tasks from the following (except "Checking the Configuration")as needed in a particular usage scenario.

5.6.1 Configuring Preferences for MBGP RoutesSetting the MBGP preference affects route selection among MBGP and other routing protocols.

Context

Do as follows on the router that is configured as an MBGP peer:

NOTE

This configuration is optional. By default, the default preferences of EBGP routes, IBGP routes, and localroutes are all 255.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:bgp as-number

The BGP view is displayed.

Step 3 Run:ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.

Step 4 Run:preference { external-preference internal-preference local-preference | route-policy route-policy-name }

MBGP preferences are set for internal, external, and local routes.

l external-preference specifies the preference for routes learned from EBGP peers.l internal-preference specifies the preference for routes learned from IBGP peers.l local-preference specifies the preference for locally originated routes.l route-policy route-policy-name specifies a routing policy. The set MBGP preference will

be applied to the routes that match the policy.

Step 5 Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

183

Page 194: Configuration Guide - IP Multicast

The configuration is committed.

----End

5.6.2 Setting a Preferred Value for Routes Learned from an MBGPPeer

After preferred values are set for MBGP routes, the route with the greatest value is preferredwhen multiple routes to the same destination exist in the MBGP routing table.

ContextDo as follows on the router that is configured as an MBGP peer:

NOTE

This configuration is optional. By default, the preferred value of an MBGP route is 0.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:bgp as-number

The BGP view is displayed.

Step 3 Run:ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.

Step 4 Run:peer { group-name |peer-address } preferred-value preference-value

A preferred value is set for the routes learned from an MBGP peer or peer group.

A route with the greatest preferred value will be selected as the optimal route to a specifiednetwork if there are multiple routes to that network.

l group-name specifies the name of an MBGP peer group.l peer-address specifies the IP address of a remote MBGP peer.

Step 5 Run:commit

The configuration is committed.

----End

5.6.3 Setting the Local_Pref Attribute for MBGP RoutesThe Local_Pref attribute has the same function as the preferred value of a route. If both of themare configured for an MBGP route, the preferred value takes precedence over the Local_Prefattribute.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

184

Page 195: Configuration Guide - IP Multicast

ContextThe Local_Pref attribute is used to determine the optimal route for the traffic that leaves an AS.If an MBGP device obtains multiple routes from different IBGP peers and these routes havedifferent next hops to the same destination, the MBGP device will select the route with thegreatest Local_Pref value.

Do as follows on the router that is configured as an MBGP peer:

NOTE

This configuration is optional. By default, the Local-Pref attribute value of an MBGP route is 100.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:bgp as-number

The BGP view is displayed.

Step 3 Run:ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.

Step 4 Run:default local-preference preference-value

The Local_Pref attribute is set for the local device.

Step 5 Run:commit

The configuration is committed.

----End

5.6.4 Setting the MED Attribute for MBGP RoutesThe MED attribute is equal to the metric used in IGP. After the MED attribute is set for routes,an EBGP peer can select a route with the smallest MED value for the traffic that enters an AS.

ContextThe MED serves as the metric used by an IGP. It is used to determine the optimal route whentraffic enters an AS. When a MBGP router obtains multiple routes to the same destination addressbut with different next hops through EBGP peers, the route with the smallest MED value isselected as the optimal route.

Procedurel Set the default MED value on the local device.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

185

Page 196: Configuration Guide - IP Multicast

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.4. Run:

default med med

The default MED value is set.5. Run:

commit

The configuration is committed.l Compare the MED values of the routes from different ASs.

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.4. Run:

compare-different-as-med

The MED values of routes from different ASs are compared.

By default, an MBGP router compares only the MED values of the routes fromdifferent peers in the same AS. This command enables MBGP to compare the MEDvalues of routes from different ASs.

5. Run:commit

The configuration is committed.l Configure the method used by MBGP when there is no MED attribute in the route attributes.

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

186

Page 197: Configuration Guide - IP Multicast

The BGP view is displayed.3. Run:

ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.4. Run:

bestroute med-none-as-maximum

The maximum MED value is used for a route if the route has no MED value.

If this command is not run, MBGP uses 0 as the MED value for a route if the routehas no MED value.

5. Run:commit

The configuration is committed.

----End

5.6.5 Setting the Next_Hop AttributeMBGP route selection can be flexibly controlled by setting the Next_Hop attribute.

ContextDifferent from that in IGP, the next-hop address in MBGP may not be the IP address of a peerrouter.

Procedurel Configure a device to change the next-hop address when it advertises a route to an IBGP

peer.

Do as follows on the IBGP router:

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.4. Run:

peer { peer-address | group-name } next-hop-local

The local address is configured as the next-hop address for route advertisement.

In certain networks, to ensure that an IBGP peer can find the correct next hop, youcan configure the local device to change the next-hop address of a route to be its ownaddress when the local device advertises the route to its IBGP peer.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

187

Page 198: Configuration Guide - IP Multicast

By default, a device does not change the next-hop address when advertising a routeto its IBGP peer.

NOTE

If MBGP load balancing is configured, the local router changes the next-hop address to be itsown address when advertising routes to IBGP peer groups, regardless of whether the peer{ group-name | peer-address } next-hop-local command is used.

5. Run:commit

The configuration is committed.

----End

5.6.6 Setting the AS_Path AttributeThe AS_Path attribute is used to prevent routing loops and control route selection.

Procedurel Configure MBGP not to compare the AS_Path attribute in the route selection process.

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.4. Run:

bestroute as-path-ignore

MBGP is configured to ignore the AS_Path attribute in route selection.l Configure the AS_Path attribute to carry only the public AS number.

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.4. Run:

peer { ipv4-address | group-name } public-as-only

The AS_Path attribute is configured to carry only the public AS number.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

188

Page 199: Configuration Guide - IP Multicast

The number of an AS ranges from 1 to 4294967295. A public AS number ranges from1 to 64511, and from 65536 (1.0 in the x.y format) to 4294967295 (65535.65535 inthe x.y format); a private AS number ranges from 64512 to 65534; the AS number65535 is reserved for particular use.

Public AS numbers can be used on the Internet. They are assigned and managed bythe Internet Assigned Number Authority (IANA). Private AS numbers cannot beadvertised to the Internet. They are used only within ASs.

Usually, the routes advertised among MBGP peers carry the AS number information.The AS number may be a public AS number or a private AS number. If the privateAS number does not need to be advertised, this command can be run to allow theAS_Path attribute to carry only the public AS number.

NOTE

The peer public-as-only command is valid only on EBGP peers.

5. Run:commit

The configuration is committed.

----End

5.6.7 Checking the ConfigurationAfter MBGP route attributes are configured, you can view information about the route attributes.

PrerequisiteThe configurations of the policy governing the MBGP route selection are complete.

Procedurel Run the display bgp multicast routing-table [ ip-address [ mask-length [ longer-

prefixes ] | mask [ longer-prefixes ] ] ] command to check routes in the MBGP routingtable.

l Run the display bgp multicast routing-table statistics command to check statistics aboutthe entries in the MBGP routing table.

----End

ExampleRun the display bgp multicast routing-table command. you can view information about MBGProute. For example:

<HUAWEI> display bgp multicast routing-table 10.3.1.0 BGP local router ID : 3.3.3.3 Local AS number : 100 Paths : 1 available, 1 best, 1 select BGP routing table entry information of 10.3.1.0/30: From: 10.2.1.2 (5.5.5.5) Route Duration: 0d00h00m23s Relay IP Nexthop: 10.2.1.2 Relay IP Out-interface: Ethernet3/0/0 Original nexthop: 10.2.1.2 Qos information : 0x2d AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, intern

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

189

Page 200: Configuration Guide - IP Multicast

al, best, select, pre 255 Not advertised to any peer yet

5.7 Configuring MBGP Routing PoliciesMBGP routing policies can be configured to flexibly control the sending and receiving of routes.

Applicable EnvironmentRouting policies can be used to set or re-set MBGP route attributes by using some predefinedconditions, which provides a flexible and effective method to control MBGP route selection.The sending and receiving of routes can be flexibly controlled by applying MBGP routingpolicies.

Pre-configuration TasksBefore configuring MBGP routing policies, complete the following task:

l Configuring MBGP Peers

Configuration ProceduresChoose certain configuration tasks from the following (except "Checking the Configuration")as needed in the applicable environment.

5.7.1 Configuring a Route-policyA route-policy is used to filter routes.

ContextA route-policy is used to match routes or route attributes, and to change route attributes whenthe matching rules are met.

Do as follows on the router that is configured as an MBGP peer.

NOTE

This configuration is optional. By default, no route-policy is configured for route filtering.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:bgp as-number

The BGP view is displayed.

Step 3 Run:ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

190

Page 201: Configuration Guide - IP Multicast

Step 4 Run:peer { group-name | peer-address } route-policy route-policy-name { import | export }

A route-policy is configured to filter MBGP routes. The routes exchanged between the deviceand its remote MBGP peer can thus be controlled.

l group-name specifies an MBGP peer group.l peer-address specifies the IP address of the remote MBGP peer.l route-policy-name specifies the name of a route-policy.l import is used to filter routes received from a specified remote MBGP peer. Only the routes

that pass the filtering will be accepted.l export is used to filter routes sent by a specified remote MBGP peer. Only the routes that

pass the filtering will be sent out.

Step 5 Run:commit

The configuration is committed.

----End

5.7.2 Configuring a Policy for Receiving MBGP RoutesMBGP filters received routes by using a policy. Only the routes that match the policy can beinstalled into a routing table.

ContextMBGP can apply a routing policy to all received routes or only routes received from a certainpeer or peer group.

MBGP provides peer-specific route control to limit the number of routes sent from a peer orpeer group. If a device is under malicious attacks or some network configurations are incorrect,the device will receive a large number of routes from its MBGP peers, consuming lots of deviceresources. Therefore, the administrator must limit resources consumed by MBGP devices basedon device capacities.

Procedurel Configure MBGP to filter all received routes.

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

191

Page 202: Configuration Guide - IP Multicast

4. Run:filter-policy { basic-acl-number | acl-name acl-name | ip-prefix ip-prefix-name } import

A policy is configured to filter all received MBGP routes. Routes exchanged betweenthe device and any of its MBGP peers can thus be controlled.

– basic-acl-number or acl-name acl-name specifies an ACL.– ip-prefix-name specifies an IP prefix list.– import is used to filter routes received from any MBGP peers. Only the routes that

pass the filtering are accepted.5. Run:

commit

The configuration is committed.l Configure MBGP to filter the routes received from a certain peer or peer group.

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.4. Run the following commands as needed to configure MBGP to use different filters to

filter routes received from peers:– To use an ACL for route filtering, run:

peer { peer-address | group-name } filter-policy { basic-acl-number | acl-name acl-name } import

– To use the AS_Path filter for route filtering, run:peer { peer-address | group-name } as-path-filter filter-number import

– To use a prefix list for route filtering, run:peer { peer-address | group-name } ip-prefix ip-prefix-name import

A peer group and its members can use different inbound policies when receivingroutes. This means that each member in a peer group can select its own policy to filterreceived routes.

5. Run:commit

The configuration is committed.l Limit the number of routes received from peers.

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

192

Page 203: Configuration Guide - IP Multicast

The BGP view is displayed.

3. Run:ipv4-family multicast multicast

The BGP-IPv4 multicast address family view is displayed.

4. Run:peer { group-name | peer-address } route-limit maximum-limit [ percentage ] [ alert-only | idle-forever | idle-timeout times ]

The number of routes that can be received from a peer or peer group is set.

The command provides peer-specific control. You can set specific parameters asneeded to control the MBGP device's behaviors after the number of the routes receivedfrom a peer exceeds the limit.

– If alert-only is set, the device does not interrupt the peer relationship but does notreceive any follow-up routes after the number of received routes exceeds the limit.In addition, the device generates an alarm and then records it in the log file.

– If idle-forever is set, the device interrupts the peer relationship, and does notattempt to establish a connection. In addition, the device generates an alarm andthen records it in the log file. Then, run the display bgp multicast peer[ verbose ] command, and you can see that the peer relationship is in the Idle state.To restore the MBGP connection, run the reset bgp command.

– If idle-timeout is set, the device interrupts the peer relationship, and attempts tore-establish the connection after the corresponding timer expires. In addition, itgenerates an alarm and then records it in the log file. Then, run the display bgpmulticast peer [ verbose ] command, and you can see that the peer relationshipis in the Idle state. To restore the BGP connection before the timer expires, run thereset bgp command.

– If none of the preceding parameters is set, the device interrupts the peerrelationship, and attempts to establish a connection after 30s. In addition, the devicegenerates an alarm and then records it in the log file.

NOTE

If the number of routes received by the router exceeds the upper threshold and the peer route-limit command is used for the first time, the router and its peer re-establish the peer relationship,regardless of whether alert-only is set.

5. Run:commit

The configuration is committed.

----End

5.7.3 Configuring a Policy for Advertising MBGP RoutesAfter MBGP filters the imported routes, only the routes that pass the filtering are added to thelocal MBGP routing table and advertised to MBGP peers.

Context

MBGP can apply a routing policy to all the routes to be advertised.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

193

Page 204: Configuration Guide - IP Multicast

Procedurel Configure MBGP to filter all the routes to be advertised.

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.4. Run:

filter-policy { basic-acl-number | acl-name acl-name | ip-prefix ip-prefix-name } export [ protocol [ process-id ] ]

The routes to be advertised are filtered.

– basic-acl-number or acl-name acl-name specifies an ACL.– ip-prefix-name specifies the name of an IP-prefix list.– export [ protocol [ process-id ] ] is used to filter routes to be advertised to any

MBGP peers. After the filter-policy export command is used, MBGP filters theroutes to be imported by using the import-route command before importing them.Only the routes that pass the filtering are added to the MBGP routing table and areadvertised by MBGP.

5. Run:commit

The configuration is committed.l Configure MBGP to filter routes to be advertised to a specified peer or peer group.

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.4. Run the following commands as needed to configure MBGP to use different filters to

filter routes to be advertised to a peer:– To use an ACL for route filtering, run:

peer { peer-address | group-name } filter-policy { basic-acl-number | acl-name acl-name } export

– To use the AS_Path filter for route filtering, run:peer { peer-address | group-name } as-path-filter filter-number export

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

194

Page 205: Configuration Guide - IP Multicast

– To use a prefix list for route filtering, run:peer { peer-address | group-name } ip-prefix ip-prefix-name export

A peer group and its members can use different export policies when advertisingroutes. This means that each member in a peer group can select its own policy whenadvertising routes.

5. Run:commit

The configuration is committed.

----End

5.7.4 Configuring MBGP Soft ResettingMBGP soft resetting allows the system to refresh an MBGP routing table dynamically withouttearing down any MBGP connection if routing policies are changed.

Procedurel Enable the route-refresh capability.

Do as follows on an MBGP device:

1. Run:system-view

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

peer { ipv4-address | ipv6-address | group-name } capability-advertise { route-refresh | 4-byte-as }

The Route-Refresh capability is enabled.

Assume that all MBGP routers are enabled with the route-refresh capability, if anMBGP routing policy changes, the local router sends route-refresh messages to itspeers. After receiving the messages, these peers resend their routing information tothe local router. Based on the received routing information, the local router can refreshits MBGP routing table dynamically and apply the new policy, without tearing downany MBGP connections.

By default, the route-refresh capability is enabled.4. Run:

commit

The configuration is committed.l Configure an MBGP device to store all the routing updates received from its peers.

Do as follows on an MBGP device:

1. Run:system-view

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

195

Page 206: Configuration Guide - IP Multicast

The system view is displayed.2. Run:

bgp as-number

The BGP view is displayed.3. Run:

ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.4. Run:

peer { ipv4-address | ipv6-address | group-name } keep-all-routes

The device is configured to store all routing updates received from its peers.

After this command is used, all route updates sent by a specified peer are stored,regardless of whether a filtering policy is used. When the local routing policy changes,the route updates can be used to regenerate MBGP routes.

5. Run:commit

The configuration is committed.l Softly reset an MBGP connection.

Do as follows on an MBGP device:

1. Run:refresh bgp ipv6 { all | ipv4-address | ipv6-address | group group-name | external | internal } { export | import }

An MBGP connection is softly reset.

The MBGP connection must be softly reset in the user view.

----End

5.7.5 Checking the ConfigurationAfter the policies for route exchanges between MBGP peers are configured, you can view MBGProutes.

PrerequisiteThe configurations of policies for route exchanges between MBGP peers are complete.

Procedurel Run the display bgp multicast routing-table different-origin-as command to check the

routes that have the same destination address but different original AS numbers.l Run the display bgp multicast routing-table regular-expression [ as-regular-

expression ] command to check the routes that match the AS regular expression.l Run the display bgp multicast paths [ as-regular-expression ] command to check the

AS_Path attributes of routes.l Run the display bgp multicast routing-table as-path-filter as-path-filter-number

command to check the routes that match a specified AS_Path filter.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

196

Page 207: Configuration Guide - IP Multicast

l Run the display bgp multicast routing-table community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number } command to check the routes that match an MBGP community filter.

l Run the display bgp multicast routing-table peer peer-address { advertised-routes |received-routes } [ statistics ] command to check the routes sent to or received from aspecified MBGP peer.

l Run the display bgp multicast network command to check the routes advertised byMBGP.

----End

ExampleRun the display bgp multicast network command. You can view the routes imported by usingthe network command.

<HUAWEI> display bgp multicast network BGP Local Router ID is 2.2.2.9 Local AS Number is 100(Multicast) Network Mask Route-policy 10.1.1.1 255.255.255.0 10.2.2.2 255.255.255.0

5.8 Configuring MBGP Load BalancingConfiguring MBGP load balancing better utilizes network resources.

Applicable EnvironmentMBGP load balancing can be performed among routes that have the same AS_Path attribute andconform to the first nine rules in "MBGP Route Selection Rules".

Pre-configuration TasksBefore configuring MBGP load balancing, complete the following task:

l Configuring MBGP Peers

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:bgp as-number

The BGP view is displayed.

Step 3 Run:ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

197

Page 208: Configuration Guide - IP Multicast

Step 4 Run:maximum load-balancing number

The number of routes for MBGP load balancing is set.

By default, the number of routes for MBGP load balancing is 1.

Step 5 Run:commit

The configuration is committed.

----End

Checking the ConfigurationAfter the configuration is complete, you can check whether the configuration has taken effect.

l Run the display bgp multicast routing-table ipv6-address prefix-length command tocheck routes in the MBGP routing table.

Run the display bgp multicast routing-table command. You can view routes for MBGP loadbalancing. For example:<HUAWEI>display bgp multicast routing-table 111::111

BGP local router ID : 1.1.1.1 Local AS number : 100 Paths : 2 available, 1 best, 2 select BGP routing table entry information of 8.1.1.0/24: From: 200.1.1.2 (2.2.2.2) Route Duration: 0d00h03m55s Direct Out-interface: Pos1/0/0 Original nexthop: 200.1.1.2 Qos information : 0x0 AS-path 200 300, origin igp, pref-val 0, valid, external, best, select, pre 255 Advertised to such 2 peers 200.1.1.2 200.1.2.2

BGP routing table entry information of 8.1.1.0/24: From: 200.1.2.2 (3.3.3.3) Route Duration: 0d00h03m56s Direct Out-interface: Pos2/0/0 Original nexthop: 200.1.2.2 Qos information : 0x0 AS-path 200 300, origin igp, pref-val 0, valid, external, select, pre 255, not selected for router ID Not advertised to any peers yet

5.9 Configuring MBGP Route DampeningConfiguring MBGP route dampening suppresses instable MBGP routes.

Applicable EnvironmentMBGP route dampening is designed to suppress instable routes. After being configured withMBGP route dampening, an MBGP device does not add any instable routes to its MBGP routingtable or advertise them to its MBGP peers.

A primary cause of route instability is route flapping. A route is considered to be flapping whenit repeatedly appears and then disappears in the routing table. MBGP is applied to complex

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

198

Page 209: Configuration Guide - IP Multicast

networks where routes change frequently. Frequent route flapping consumes lots of bandwidthand CPU resources and even seriously affects network operations. To prevent the impact offrequent route flapping, MBGP uses route dampening to suppress instable routes.

Specified-requirement route dampening is a type of route dampening that is used to differentiateroutes based on routing policies. This allows MBGP to use different route dampening parametersto suppress instable routes. Different route dampening parameters can also be configured fordifferent nodes in the same route-policy. When route flapping occurs, MBGP can use specificroute dampening parameters to suppress the routes that match the route-policy. For example, ona network, a long dampening period of time can be set for routes with a long mask, and a shortdampening period of time is set for routes with a short mask (such as an 8-bit mask).

Pre-configuration Tasks

Before configuring MBGP route dampening, complete the following task:

l Configuring MBGP Peers

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:bgp as-number

The BGP view is displayed.

Step 3 Run:ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.

Step 4 Run:dampening [ half-life-reach reuse suppress ceiling | route-policy route-policy-name ] *

MBGP route dampening parameters are set.

NOTE

The dampening command is valid only for EBGP routes.

The value of suppress must be greater than that of reuse and smaller than that of ceiling.

If routes are differentiated based on policies and the dampening command is run to referencea route-policy, MBGP allow you to use different route dampening parameters to suppressdifferent routes.

Step 5 Run:commit

The configuration is committed.

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

199

Page 210: Configuration Guide - IP Multicast

Checking the Configuration

After the configuration is complete, you can check whether the configuration has taken effect.

l Run the display bgp multicast routing-table dampened command to check dampenedMBGP routes.

l Run the display bgp multicast routing-table dampening parameter command to checkconfigured MBGP route dampening parameters.

l Run the display bgp multicast routing-table flap-info [ ip-address [ mask [ longer-match ] | mask-length [ longer-match ] ] | as-path-filter as-path-filter-number | regular-expression as-regular-expression ] command to check MBGP route flapping statistics.

Run the display bgp multicast routing-table dampened command. You can view dampenedroutes. For example:

<HUAWEI> display bgp multicast routing-table dampenedBGP local router ID is 12.12.12.9 Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 1 Network From Reuse Path/Ogn d 100.1.0.0/16 10.2.1.1 00:45:05 1?

5.10 Configuring MBGP RRsMBGP RRs resolve the problem of full-mesh connections between multiple IBGP peers, whichreduces network costs.

Applicable Environment

Full-mesh connections need to be established between IBGP peers in an AS to ensure theconnectivity between the IBGP peers. When there are many IBGP peers, it is costly to establisha fully-meshed network. An RR can be used to solve the problem.

Pre-configuration Tasks

Before configuring MBGP RRs, complete the following task:

l Configuring MBGP Peers

CAUTIONAn RR takes effect only for IBGP peers. Before configuring an MBGP RR, establish an IBGPpeer relationship between the RR and each of its clients.

This configuration is optional. By default, no RR is configured.

Do as follows on the router to be configured as an MBGP RR:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

200

Page 211: Configuration Guide - IP Multicast

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:bgp as-number

The BGP view is displayed.

Step 3 Run:ipv4-family multicast

The BGP-IPv4 multicast address family view is displayed.

Step 4 Run:peer { group-name | peer-address } reflect-client

The device is configured as an RR and its peer or peer group is configured as a client.

l group-name specifies the name of an MBGP peer group.l peer-address specifies the IP address of a remote MBGP peer.

Step 5 (Optional) Run:reflector cluster-id { decimal-value | ipv4-address }

A cluster ID is configured for the RR.

By default, an RR uses its router ID as the cluster ID.

l decimal-value specifies a cluster ID in the decimal format.l ipv4-address specifies a cluster ID in the format of an IPv4 address.

Step 6 Run:commit

The configuration is committed.

----End

Checking the ConfigurationAfter the configuration is complete, you can check whether the configuration has taken effect.

l Run the display bgp multicast routing-table [ ip-address [ mask-length [ longer-prefixes ] | mask [ longer-prefixes ] ] ] command to check routes in the MBGP routingtable.Run the display bgp multicast routing-table command. You can view routes in the MBGProuting table.<HUAWEI> display bgp multicast routing-table

BGP local router ID is 13.13.13.9 Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 50 Network NextHop MED LocPrf PrefVal Path/Ogn

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

201

Page 212: Configuration Guide - IP Multicast

*> 3.3.3.3/32 0.0.0.0 0 0 ? *> 4.4.4.4/32 10.2.1.2 0 2? *> 6.1.1.0/24 10.2.1.2 0 2? *> 7.1.1.0/24 0.0.0.0 0 0 ? *> 7.1.1.1/32 0.0.0.0 0 0 ? *> 10.1.2.0/24 10.2.1.2 0 2? *> 10.1.13.0/24 0.0.0.0 0 0 ? *> 10.1.13.2/32 0.0.0.0 0 0 ? *> 10.2.1.0/24 0.0.0.0 0 0 ? *> 10.2.1.0/24 10.2.1.2 0 0 2? *> 10.2.1.1/32 0.0.0.0 0 0 ? *> 10.2.13.0/24 0.0.0.0 0 0 ? *> 10.2.13.1/32 0.0.0.0 0 0 ? *> 10.2.13.2/32 0.0.0.0 0 0 ?

5.11 Maintaining MBGPMaintaining MBGP involves resetting MBGP connections, clearing MBGP statistics, anddebugging MBGP.

5.11.1 Resetting MBGP ConnectionsResetting MBGP connections interrupts peer relationships.

Context

CAUTIONMBGP peer relationships between routers are interrupted if you reset MBGP connections byusing the reset bgp multicast command. Exercise caution when resetting MBGP connections.

Procedurel Run the reset bgp multicast peer-address command in the user view to reset the MBGP

connection between specified peers.

l Run the reset bgp multicast all command in the user view to reset all MBGP connections.

l Run the reset bgp multicast group group-name command in the user view to reset theMBGP connections between all peers in a peer group.

l Run the reset bgp multicast external command in the user view to reset externalconnections.

l Run the reset bgp multicast internal command in the user view to reset internalconnections.

----End

5.11.2 Clearing MBGP StatisticsClearing MBGP statistics involves clearing MBGP route flapping statistics and route dampeningstatistics.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

202

Page 213: Configuration Guide - IP Multicast

Context

CAUTIONMBGP statistics cannot be restored after they are cleared. Therefore, exercise caution whenusing reset commands.

Procedurel Run the reset bgp multicast dampening [ ip-address [ mask | mask-length ] ] command

in the user view to clear MBGP route dampening statistics.l Run the reset bgp multicast flap-info [ ip-address [ mask-length | mask ] | as-path-

filter as-path-list-number | regrexp regrexp ] command in the user view to clear MBGProute flapping statistics.

----End

5.12 Configuration ExamplesThis chapter provides an MBGP configuration example. In the configuration example, thenetworking requirements, network diagram, precautions, configuration roadmap, andconfiguration procedures are provided.

5.12.1 Example for Configuring Basic MBGP FunctionsBefore building an MBGP network, you need to configure basic MBGP functions.

Networking RequirementsAs shown in Figure 5-1, the receiver receives VoD information in multicast mode. The receiverand the source reside in different ASs. An MBGP peer relationship is established betweenrouter A and router B to transmit multicast routing information.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

203

Page 214: Configuration Guide - IP Multicast

Figure 5-1 Networking diagram for configuring basic MBGP functions

MBGP peers

RouterA

AS100

POS1/0/0

RouterB

RouterD

RouterC

AS200

POS2/0/0

POS1/0/0

POS2/0/0

GE2/0/0

POS1/0/0

Source

Receiver

GE2/0/0

POS3/0/0

POS3/0/0

POS1/0/0

Loopback0

Loopback0

Loopback0

Loopback0

Device Interface IP Address Device Interface IP Address

Router A POS 1/0/0 192.1.1.1/24 Router C POS 1/0/0 195.1.1.1/24

GE 2/0/0 10.10.10.1/24 GE 2/0/0 22.22.22.1/24

Loopback 0 1.1.1.1/32 POS 3/0/0 193.1.1.1/24

Router B POS 1/0/0 192.1.1.2/24 Loopback 0 3.3.3.3/32

POS 2/0/0 194.1.1.2/24 Router D POS 1/0/0 195.1.1.2/24

POS 3/0/0 193.1.1.2/24 POS 2/0/0 194.1.1.1/24

Loopback 0 2.2.2.2/32 Loopback 0 4.4.4.4/32

Configuration Roadmap

The configuration roadmap is as follows:

1. Configure an IP address for each interface on the routers to make unicast routes reachablein each AS.

2. Establish MBGP peer relationships to build inter-AS multicast routes.

3. Configure MBGP to import routes.

4. Enable multicast on each router.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

204

Page 215: Configuration Guide - IP Multicast

5. Configure basic PIM-SM functions in each AS, and enable IGMP on the interfaceconnected to user hosts.

6. Configure BSR boundaries on the interfaces directly connecting router A and router B.7. Establish MSDP peer relationships to transmit inter-AS multicast source information.8. Verify the configuration.

Data PreparationTo complete the configuration, you need the following data:

l AS number of Router A: 100l AS numbers of Router B, Router C, and Router D: 200l Multicast group address: 225.1.1.1; multicast source address: 10.10.10.10/24

Procedure

Step 1 Configure an IP address for each interfaces on the routers and configure OSPF in each AS.

# Configure an IP address and mask for each interface on the routers and configure OSPF ineach AS. Ensure that Router B, Router C, Router D, and receiver in AS 200 canintercommunicate at the network layer, and learn the routes to each other's loopback interface.Ensure that the routers implement dynamic routing updates by running the unicast routingprotocol. Configure OSPF process 1 on all the devices. The configuration details are not providedhere.

Step 2 Configure BGP, enable MBGP, and configure MBGP peer relationships.

# On Router A, enable BGP and configure the MBGP peer relationship.

[~RouterA] bgp 100[~RouterA-bgp] peer 192.1.1.2 as-number 200[~RouterA-bgp] ipv4-family multicast[~RouterA-bgp-af-multicast] peer 192.1.1.2 enable[~RouterA-bgp-af-multicast] commit[~RouterA-bgp-af-multicast] quit[~RouterA-bgp] quit

# On Router B, enable BGP and configure the MBGP peer relationship.

[~RouterB] bgp 200[~RouterB-bgp] peer 192.1.1.1 as-number 100[~RouterB-bgp] peer 193.1.1.1 as-number 200[~RouterB-bgp] peer 194.1.1.1 as-number 200[~RouterB-bgp] ipv4-family multicast[~RouterB-bgp-af-multicast] peer 192.1.1.1 enable[~RouterB-bgp-af-multicast] peer 193.1.1.1 enable[~RouterB-bgp-af-multicast] peer 194.1.1.1 enable[~RouterB-bgp-af-multicast] commit[~RouterB-bgp-af-multicast] quit[~RouterB-bgp] quit

# On Router C, enable BGP and configure the MBGP peer relationship.

[~RouterC] bgp 200[~RouterC-bgp] peer 193.1.1.2 as-number 200[~RouterC-bgp] peer 195.1.1.2 as-number 200[~RouterC-bgp] ipv4-family multicast[~RouterC-bgp-af-multicast] peer 193.1.1.2 enable[~RouterC-bgp-af-multicast] peer 195.1.1.2 enable[~RouterC-bgp-af-multicast] commit[~RouterC-bgp-af-multicast] quit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

205

Page 216: Configuration Guide - IP Multicast

[~RouterC-bgp] quit

# On Router D, enable BGP and configure the MBGP peer relationship.

[~RouterD] bgp 200[~RouterD-bgp] peer 194.1.1.2 as-number 200[~RouterD-bgp] peer 195.1.1.1 as-number 200[~RouterD-bgp] ipv4-family multicast[~RouterD-bgp-af-multicast] peer 194.1.1.2 enable[~RouterD-bgp-af-multicast] peer 195.1.1.1 enable[~RouterD-bgp-af-multicast] commit[~RouterD-bgp-af-multicast] quit[~RouterD-bgp] quit

Step 3 Configure MBGP to import routes.

# On Router A, configure MBGP to import routes.

[~RouterA] bgp 100[~RouterA-bgp] import-route direct[~RouterA-bgp] ipv4-family multicast[~RouterA-bgp-af-multicast] import-route direct[~RouterA-bgp-af-multicast] commit[~RouterA-bgp-af-multicast] quit[~RouterA-bgp] quit

# On Router B, configure MBGP to import routes.

[~RouterB] bgp 200[~RouterB-bgp] import-route direct[~RouterB-bgp] import-route ospf 1[~RouterB-bgp] ipv4-family multicast[~RouterB-bgp-af-multicast] import-route direct[~RouterB-bgp-af-multicast] import-route ospf 1[~RouterB-bgp-af-multicast] commit[~RouterB-bgp-af-multicast] quit[~RouterB-bgp] quit

# On Router C, configure MBGP to import routes. The configuration on Router D is similar tothat on Router C, and is not provided here.

[~RouterC] bgp 200[~RouterC-bgp] import-route direct[~RouterC-bgp] ipv4-family multicast[~RouterC-bgp-af-multicast] import-route direct[~RouterC-bgp-af-multicast] import-route ospf 1[~RouterC-bgp-af-multicast] commit[~RouterC-bgp-af-multicast] quit[~RouterC-bgp] quit

Step 4 Enable multicast on the routers and interfaces connecting the routers.

# Configure Router A.

[~RouterA] multicast routing-enable[~RouterA] interface Pos1/0/0[~RouterA-Pos1/0/0] pim sm[~RouterA-Pos1/0/0] quit[~RouterA] interface GigabitEthernet2/0/0[~RouterA-GigabitEthernet2/0/0] pim sm[~RouterA-GigabitEthernet2/0/0] quit[~RouterA] commit

# Configure Router B.

[~RouterB] multicast routing-enable[~RouterB] interface Pos1/0/0[~RouterB-Pos1/0/0] pim sm[~RouterB-Pos1/0/0] quit[~RouterB] interface Pos2/0/0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

206

Page 217: Configuration Guide - IP Multicast

[~RouterB-Pos2/0/0] pim sm[~RouterB-Pos2/0/0] quit[~RouterB] interface Pos3/0/0[~RouterB-Pos3/0/0] pim sm[~RouterB-Pos3/0/0] quit[~RouterB] commit

# Configure Router C.

[~RouterC] multicast routing-enable[~RouterC] interface Pos1/0/0[~RouterC-Pos1/0/0] pim sm[~RouterC-Pos1/0/0] quit[~RouterC] GigabitEthernet2/0/0[~RouterC-GigabitEthernet2/0/0] pim sm[~RouterC-GigabitEthernet2/0/0] igmp enable[~RouterC-GigabitEthernet2/0/0] quit[~RouterC] interface Pos3/0/0[~RouterC-Pos3/0/0] pim sm[~RouterC-Pos3/0/0] quit[~RouterC] commit

# Configure Router D.

[~RouterD] multicast routing-enable[~RouterD] interface Pos1/0/0[~RouterD-Pos1/0/0] pim sm[~RouterD-Pos1/0/0] quit[~RouterD] interface Pos2/0/0[~RouterD-Pos2/0/0] pim sm[~RouterD-Pos2/0/0] quit[~RouterD] commit

Step 5 Configure a BSR and an RP in each AS.

# Configure Router A.

[~RouterA] interface loopback 0[~RouterA-LoopBack0] ip address 1.1.1.1 255.255.255.255[~RouterA-LoopBack0] pim sm[~RouterA-LoopBack0] quit[~RouterA] pim[~RouterA-pim] c-bsr loopback 0[~RouterA-pim] c-rp loopback 0[~RouterA-pim] quit[~RouterA] commit

# Configure Router B.

[~RouterB] interface loopback 0[~RouterB-LoopBack0] ip address 2.2.2.2 255.255.255.255[~RouterB-LoopBack0] pim sm[~RouterB-LoopBack0] quit[~RouterB] pim[~RouterB-pim] c-bsr loopback 0[~RouterB-pim] c-rp loopback 0[~RouterB] quit[~RouterB] commit

Step 6 Configure BSR boundaries on the interfaces directly connecting Router A and Router B.

# Configure Router A.

[~RouterA] interface Pos1/0/0[~RouterA-Pos1/0/0] pim bsr-boundary[~RouterA-Pos1/0/0] commit[~RouterA-Pos1/0/0] quit

# Configure Router B.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

207

Page 218: Configuration Guide - IP Multicast

[~RouterB] interface Pos1/0/0[~RouterB-Pos1/0/0] pim bsr-boundary[~RouterB-Pos1/0/0] commit[~RouterB-Pos1/0/0] quit

Step 7 Configure the MSDP peer relationship.

# Configure Router A.

[~RouterA] msdp[~RouterA-msdp] peer 192.1.1.2 connect-interface Pos 1/0/0[~RouterA-msdp] commit[~RouterA-msdp] quit

# Configure Router B.

[~RouterB] msdp[~RouterB-msdp] peer 192.1.1.1 connect-interface Pos 1/0/0[~RouterB-msdp] commit[~RouterB-msdp] quit

Step 8 Verify the configuration.

# Run the display bgp multicast peer command to check the MBGP peer relationships betweenrouters. For example, the MBGP peer relationship on Router A is displayed.

[~RouterA] display bgp multicast peerBGP local router ID : 1.1.1.1 Local AS number : 100 Total number of peers : 1 Peers in established state : 1 Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv 192.1.1.2 4 200 82 75 0 00:30:29 Established 17

# Run the display msdp brief command to check the MSDP peer relationships betweenrouters. For example, the MSDP peer relationship on Router B is displayed.

[~RouterB] display msdp briefMSDP Peer Brief Information of VPN-Instance: public net Configured Up Listen Connect Shutdown Down 1 1 0 0 0 0 Peer's Address State Up/Down time AS SA Count Reset Count 192.1.1.1 Up 00:07:17 100 1 0

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast routing-enable#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.1.1.1 255.255.255.0 pim bsr-boundary pim sm#interface GigabitEthernet2/0/0 undo shutdown ip address 10.10.10.1 255.255.255.0 pim sm#interface loopback 0 ip address 1.1.1.1 255.255.255.255 pim sm

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

208

Page 219: Configuration Guide - IP Multicast

#bgp 100 peer 192.1.1.2 as-number 200# ipv4-family unicast undo synchronization import-route direct peer 192.1.1.2 enable# ipv4-family multicast undo synchronization import-route direct peer 192.1.1.2 enable#pim c-bsr loopback 0 c-rp loopback 0#msdp peer 192.1.1.2 connect-interface Pos 1/0/0#return

l Configuration file of Router B# sysname RouterB#multicast routing-enable#interface pos 1/0/0 undo shutdown link-protocol ppp ip address 192.1.1.2 255.255.255.0 pim bsr-boundary pim sm# interface pos 2/0/0 undo shutdown link-protocol ppp ip address 194.1.1.2 255.255.255.0 pim sm# interface pos 3/0/0 undo shutdown link-protocol ppp ip address 193.1.1.2 255.255.255.0 pim sm# interface loopback 0 ip address 2.2.2.2 255.255.255.255 pim sm#bgp 200 peer 192.1.1.1 as-number 100 peer 193.1.1.1 as-number 200 peer 194.1.1.1 as-number 200# ipv4-family unicast undo synchronization import-route direct import-route ospf 1 peer 192.1.1.1 enable peer 193.1.1.1 enable peer 194.1.1.1 enable# ipv4-family multicast undo synchronization import-route direct import-route ospf 1 peer 192.1.1.1 enable

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

209

Page 220: Configuration Guide - IP Multicast

peer 193.1.1.1 enable peer 194.1.1.1 enable#ospf 1 area 0.0.0.0 network 193.1.1.0 0.0.0.255 network 194.1.1.0 0.0.0.255 network 2.2.2.2 0.0.0.0#pim c-bsr loopback 0 c-rp loopback 0# msdp peer 192.1.1.1 connect-interface Pos 1/0/0# return

l Configuration file of Router C# sysname RouterC#multicast routing-enable#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 195.1.1.1 255.255.255.0 pim sm#interface GigabitEthernet2/0/0 undo shutdownip address 22.22.22.1 255.255.255.0 pim sm igmp enable#interface pos 3/0/0 undo shutdown link-protocol ppp ip address 193.1.1.1 255.255.255.0 pim sm # interface loopback 0 ip address 3.3.3.3 255.255.255.255 pim sm#bgp 200 peer 193.1.1.2 as-number 200 peer 195.1.1.2 as-number 200# ipv4-family unicast undo synchronization import-route direct import-route ospf 1 peer 193.1.1.2 enable peer 195.1.1.2 enable# ipv4-family multicast undo synchronization import-route direct import-route ospf 1 peer 193.1.1.2 enable peer 195.1.1.2 enable#ospf 1 area 0.0.0.0 network 193.1.1.0 0.0.0.255 network 195.1.1.0 0.0.0.255 network 22.22.22.0 0.0.0.255 network 3.3.3.3 0.0.0.0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

210

Page 221: Configuration Guide - IP Multicast

#return

l Configuration file of Router D# sysname RouterD#multicast routing-enable#interface Pos1/0/0 undo shutdown link-protocol pppip address 195.1.1.2 255.255.255.0 pim sm#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 194.1.1.1 255.255.255.0 pim sm# interface loopback 0 ip address 4.4.4.4 255.255.255.255 pim sm#bgp 200 peer 194.1.1.2 as-number 200 peer 195.1.1.1 as-number 200# ipv4-family unicast undo synchronization import-route direct import-route ospf 1 peer 194.1.1.2 enable peer 195.1.1.1 enable# ipv4-family multicast undo synchronization import-route direct import-route ospf 1 peer 194.1.1.2 enable peer 195.1.1.1 enable#ospf 1 area 0.0.0.0 network 194.1.1.0 0.0.0.255 network 195.1.1.0 0.0.0.255 network 4.4.4.4 0.0.0.0#return

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 5 MBGP Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

211

Page 222: Configuration Guide - IP Multicast

6 IP Multicast Routing Management

About This Chapter

The system synchronously maintains multiple multicast routing protocols, and controls multicastrouting and forwarding through the information exchang between the control plane and theforwarding plane.

6.1 Introduction to IP Multicast Routing ManagementMulticast routing and forwarding is implemented based multicast protocol routing tables andthe multicast forwarding table; multicast routing and forwarding control is implemented basedon multicast routing management.

6.2 IP Multicast Routing Management Features Supported by the NE5000EThe NE5000E supports multicast static routes and multicast load splitting.

6.3 Configuring RPF RoutesA multicast routing protocol creates multicast routing entries based on the RPF mechanism andthen establishes an MDT.

6.4 Adjusting the Minimum TTL Value for Multicast ForwardingMulticast information of each multicast group in a network should be transmitted within a certainrange. Therefore, setting the minimum TTL value for multicast forwarding is necessary forlimiting the multicast data forwarding scope.

6.5 Configuration ExamplesExamples for configuring multicast static routes, multicast load splitting, and multicast multi-topology are provided.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

212

Page 223: Configuration Guide - IP Multicast

6.1 Introduction to IP Multicast Routing ManagementMulticast routing and forwarding is implemented based multicast protocol routing tables andthe multicast forwarding table; multicast routing and forwarding control is implemented basedon multicast routing management.

In multicast implementation on the NE5000E, multicast routing and forwarding involves thefollowing aspects:

l Each multicast routing protocol has its own routing table, such as a PIM routing table.

l Routing information of each multicast routing protocol is directly delivered to a multicastforwarding table. The multicast forwarding table controls the forwarding of multicast datapackets.

A multicast routing protocol creates multicast routing entries based on the Reverse PathForwarding (RPF) mechanism. This ensures that multicast data can be transmitted along a correctpath. The system performs the RPF check based on the following types of routes:

l Unicast routesThe unicast routing table collects the shortest route to each destination.

l Multicast static routesThe multicast static routing table provides the information on the RPF route that is specifiedthrough static configuration.

Multicast route management is used to manage the multicast routing table, and create or changemulticast RPF routes.

6.2 IP Multicast Routing Management Features Supportedby the NE5000E

The NE5000E supports multicast static routes and multicast load splitting.

Multicast Static Routes

Multicast static routes are important basis of an RPF check. By configuring multicast staticroutes, you can specify an RPF interface and an RPF neighbor for the specific source of packetson the current router.

Multicast static routes have the functions of changing RPF routes and connecting RPF routesrather than being used for data forwarding. Multicast static routes take effect only on themulticast router where they are configured, and cannot be advertised or imported to otherrouters.

Multicast Load Splitting

In choosing an upstream interface, a multicast router prefers the optimal route by default. If thereare multiple optimal routes, the route with a higher next-hop address is choosen. If there aremultiple equal-cost unicast routes, you can configure different policies of implementingmulticast load splitting among these routes.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

213

Page 224: Configuration Guide - IP Multicast

There are four multicast load splitting policies: stable-preferred, source address-based, groupaddress-based, and source and group addresses-based. The four load splitting policies aremutually exclusive.

Control over the Multicast Forwarding Scope

On a network, the multicast information to which each multicast group corresponds should betransmitted in a certain range. You can define the multicast forwarding scope by using thefollowing methods:

l Setting the forwarding TTL threshold on an interface to limit the distance to which a packetis forwarded.

l Prohibiting an interface from receiving multicast packets. The router then cannot exchangemulticast protocol packets through this interface and the multicast forwarding scope is thuslimited.

Control over the Capacity of a Multicast Forwarding Table

When planning a specific network according to network services, an Internet Service Provider(ISP) can perform the following configuration:

l Limiting the number of entries in a multicast forwarding table

The router maintains a forwarding entry for each received multicast packet. Too manymulticast forwarding entries, however, use up the memory of the router. Thus, you candefine the maximum number of entries in the multicast forwarding table of theNE5000E.Limiting the number of entries according to the actual networking and service performancecan avoid router faults caused by too many entries.

l Limiting the number of downstream interfaces of a single forwarding entry

The NE5000E replicates a copy of multicast packet for each downstream interface andsends it out. Each downstream interface forms a branch of an MDT. The number ofdownstream interfaces determines the scale of the MDT and the multicast service range.You can define the number of downstream interfaces of a single forwarding entry. Limitingthe number of downstream interfaces according to the actual networking and serviceperformance can reduce the processing pressure of the router and control the service range.

Multicast Multi-Topology

Multi-topology is a type of network structure, featuring different logical topologies for diverseservices on one physical network. Currently, multicast multi-topology is one of typicalapplications. The system generates a multicast multi-topology routing table dedicated formulticast services so that multicast routing no longer completely depends on the unicast routingtable. Thus, the problem that unicast routes restrict the establishment of an MDT is solved. Then,when a multicast router performs the RPF check, it searches for routes and establishes a multicastforwarding tree only in the specified topology running for multicast data forwarding.

6.3 Configuring RPF RoutesA multicast routing protocol creates multicast routing entries based on the RPF mechanism andthen establishes an MDT.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

214

Page 225: Configuration Guide - IP Multicast

Applicable EnvironmentThe RPF check is a basis of multicast routing. The process of performing an RPF check is asfollows:

1. According to the source of a packet, a router searches its unicast routing table and multicaststatic routing table for optimal routes.

2. The router selects a route with the highest priority from the multiple optimal routes as anRPF route. If the inbound interface of the packet is identical with the RPF interface, thepacket passes the RPF check; otherwise, the packet fails the RPF check.If the priorities of the optimal routes are the same, the router selects the route in the sequenceof the multicast static route and unicast route.

By configuring multicast static routes, you can specify an RPF interface and an RPF neighborfor the specific source of packets.

In choosing an upstream interface, a multicast router prefers the route with the highest next-hopaddress by default. If there are multiple equal-cost unicast routes, you can configure differentpolicies of implementing multicast load splitting among these routes and designating differentupstream interfaces for different multicast entries. In this manner, the transmission of multiplemulticast data flows over a network is optimized.

Pre-configuration TasksBefore configuring RPF routes, complete the following tasks:

l Configuring a unicast routing protocol to ensure normal unicast routing on the networkl Configuring basic multicast functions

Configuration ProceduresYou can choose to perform some of the following configuration tasks (except "Checking theConfiguration") according to the applicable environment.

6.3.1 Configuring Multicast Static RoutesMulticast static routes are an important basis of the RPF check. By configuring multicast staticroutes, you can specify an RPF interface and an RPF neighbor for the specific source of packetson the current router.

ContextMulticast static routes provide the following functions, depending on specific applicableenvironments:

l Changing RPF routesIf the topology of multicast is the same as that of unicast, the transmission path of multicastdata is the same as that of unicast data. You can configure multicast static routes to changethe RPF routes. Thus, a transmission path dedicated for the multicast data is established,which is different from the transmission path of unicast data.

l Connecting RPF routesOn the network segment where unicast routes are blocked, when multicast static routes arenot configured, packets cannot be forwarded because there is no RPF route. In such a case,

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

215

Page 226: Configuration Guide - IP Multicast

you can configure multicast static routes. Therefore, the system can generate RPF routes,complete the RPF check, create routing entries, and guide the forwarding of packets.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:ip rpf-route-static [ vpn-instance vpn-instance-name ] source-address { mask | mask-length } [ protocol [ process-id ] ] [ route-policy route-policy-name ] { rpf-neighbor | interface-type interface-number } [ preference preference ] [ order order-number ]

A multicast static route is configured.

NOTE

If the next-hop interface is a P2P interface, you must configure the outbound interface, that is, the RPFinterface by using the interface-type interface-number parameter in the command.

If the next-hop interface is not a P2P interface, you must configure the next-hop address, that is, the IPaddress of the RPF neighbor by using the rpf-nbr parameter in the command.

l source-address { mask | mask-length }: specifies a multicast source address and mask.

l protocol [ process-id ]: specifies that the matching route must be present in the specifiedunicast routing protocol. protocol specifies a unicast routing protocol and process-idspecifies the ID of a process.

l route-policy policy-name: specifies the matching rule of the multicast static route.

l preference preference: specifies the preference of the multicast static route. The greater thevalue, the lower the preference.

l order order-num: specifies the configuration order of routes on the same network segment.

Parameters source-address { mask | mask-length }, protocol, and route-policy policy-name arekey factors of multicast static routes. As long as one parameter is configured differently eachtime, the configuration is considered as a new configuration. A maximum of eight differentconfigurations are allowed on a network segment.

Step 3 Run:commit

The configuration is committed.

----End

Follow-up Procedure

After the ip rpf-route-static command is configured, the multicast static route may not takeeffect. This is because the outbound interface may not be iterated or the specified interface maybe Down. Therefore, after configuring the multicast static route, you are recommended to runthe display ip routing-table table msr command to check whether the route is configuredsuccessfully or whether the route takes effect.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

216

Page 227: Configuration Guide - IP Multicast

6.3.2 Configuring Multicast Load SplittingMulticast load splitting is applicable to the scenario where multiple equal-cost unicast routes ofthe same type exist. In such a case, multicast load splitting can be performed according todifferent policies to optimize the transmission of multiple multicast data flows on the network.

Context

CAUTIONThe configuration related to the VPN instance is applicable only to the PE. If you want toconfigure multicast load splitting for a VPN instance on the PE, you must perform theconfiguration in the VPN instance view. For other cases, you need to perform the configurationin the public network instance view.

The RPF check is a basis of multicast routing. According to RPF rules, the router selects a uniqueroute for multicast data forwarding. If multicast traffic is overloaded, network congestion mayoccur and the multicast service is thus interrupted.

The multicast load splitting function extends multicast routing rules and multicast routing nolong fully depends on the RPF check. If there are multiple equal-cost optimal routes, multicasttraffic is load split to these equal-cost routes.

Procedurel Public network instance

1. Run:system-view

The system view is displayed.2. Run:

multicast load-splitting { stable-preferred | source | group | source-group }

Multicast load splitting is configured.

– stable-preferred: indicates stable-preferred load splitting. This policy isapplicable to a stable multicast networking.If stable-preferred is specified, the router automatically adjusts and balances theentries when equal-cost routes are added or deleted; however, the router does notautomatically adjust and balance the entries when multicast routing entries aredeleted.

– group: indicates group address-based load splitting. This policy is applicable tothe scenario of one source to multiple groups.

– source: indicates source address-based load splitting. This policy is applicable tothe scenario of one group to multiple sources.

– source-group: indicates source and group addresses-based load splitting. Thispolicy is applicable to the scenario of multiple sources to multiple groups.

3. Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

217

Page 228: Configuration Guide - IP Multicast

The configuration is committed.

l VPN instance

1. Run:system-view

The system view is displayed.

2. Run:ip vpn-instance vpn-instance-name

The VPN instance view is displayed.

3. Run:multicast load-splitting { stable-preferred | source | group | source-group }

Multicast load splitting is configured.

4. Run:commit

The configuration is committed.

----End

6.3.3 Checking the ConfigurationAfter RPF routes are configured, you can run commands to view configurations of the RPFroutes.

Prerequisite

All configurations of RPF routes are complete.

Procedure

Step 1 Run the display multicast [ vpn-instance vpn-instance-name | all-instance ] rpf-info source-address [ group-address ] [ rpt | spt ] command to check information about the source-specificRPF route.

----End

Example

Run the display multicast rpf-info source-address command, and you can view RPF routinginformation about a specified multicast source, including the RPF interface, RPF neighbor,optimal route and type of the route, and configured multicast load splitting policy. For example:

<HUAWEI> display multicast rpf-info 172.168.0.1VPN-Instance: public net RPF information about source: 172.168.0.1 RPF interface: GigabitEthernet6/0/0, RPF neighbor: 11.1.5.2 Referenced route/mask: 172.168.0.0/24 Referenced route type: unicast Route selection rule: preference-preferred Load splitting rule: stable-preferred

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

218

Page 229: Configuration Guide - IP Multicast

6.4 Adjusting the Minimum TTL Value for MulticastForwarding

Multicast information of each multicast group in a network should be transmitted within a certainrange. Therefore, setting the minimum TTL value for multicast forwarding is necessary forlimiting the multicast data forwarding scope.

Applicable EnvironmentSetting the minimum TTL value for multicast forwarding on an interface to limit the distanceto which a packet is forwarded. The interface forwards only the packets (including thosegenerated by the local device) with the TTL value being equal to or greater than the minimumTTL value. If the TTL value of a packet is smaller than the minimum TTL value, the interfacediscards the packet.

Pre-configuration TasksBefore adjusting the minimum TTL value for multicast forwarding, complete the followingtasks:

l Configuring a unicast routing protocol to ensure normal unicast routing on the networkl Configuring basic multicast functions

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The interface view is displayed.

Step 3 Run:multicast minimum-ttl ttl-value

The minimum TTL value for multicast forwarding is set.

By default, the minimum TTL value is 1.

Step 4 Run:commit

The configuration is committed.

----End

Checking the ConfigurationRun the display multicast [ vpn-instance vpn-instance-name | all-instance ] minimum-ttlinterface-type interface-number command to check the minimum TTL value for multicastforwarding on the interface.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

219

Page 230: Configuration Guide - IP Multicast

6.5 Configuration ExamplesExamples for configuring multicast static routes, multicast load splitting, and multicast multi-topology are provided.

6.5.1 Example for Configuring Multicast Static Routes to ChangeRPF Routes

By configuring multicast static routes in the multicast network, you can change the RPF routeand create a multicast path different from the unicast path, from the multicast source to thereceiver.

Networking Requirements

CAUTIONFor the NE5000E, the interface is numbered as slot number/card number/interface number. Forthe NE5000E cluster, the interface is numbered as chassis ID/slot number/card number/interfacenumber. The slot number is chassis ID/slot ID.

As shown in Figure 6-1, the network runs PIM-SM, all routers support multicast, and the receivercan receive information from the multicast source. IS-IS is run between routers. It is required toconfigure a multicast static route to make the multicast path from the source to the receiverdifferent from the unicast path from the source to the receiver.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

220

Page 231: Configuration Guide - IP Multicast

Figure 6-1 Networking diagram for configuring multicast static routes to change RPF routes

RouterC

RouterB

RouterA

POS2/0/013.1.1.2/24

POS2/0/013.1.1.1/24

GE2/0/08.1.1.1/24

POS1/0/0

9.1.1.1/24

POS3/0/012.1.1.1/24

POS3/0/012.1.1.2/24

Source Receiver

GE2/0/07.1.1.1/24

7.1.1.2/248.1.1.2/24

PIM-SM

multicast static route

POS1/0/0

9.1.1.2/24POS3/0/010.1.1.2/24

POS3/0/010.1.1.1/24

RouterD

Configuration Notes

When configuring multicast static routes to change RPF routes, pay attention to the followingpoints:

l PIM-SM and IGMP need to be enabled in sequence on the interfaces connecting therouters to hosts. That is, enable PIM-SM first and then IGMP.

l When you configure a multicast static route, if the next hop is a P2P interface, you mustspecify the outbound interface number; if the next hop is not a P2P interface, you mustspecify the next-hop address.

Configuration Roadmap

The configuration roadmap is as follows:

1. Configure IP addresses for the interfaces on each router and configure IS-IS on them.

2. Enable the multicast function on all routers, enable PIM-SM on each interface, and enableIGMP on the interfaces connecting routers to hosts.

3. Configure C-BSRs and C-RPs.

4. Configure multicast static routes on Router B and specify Router C as an RPF neighbor tothe source.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

221

Page 232: Configuration Guide - IP Multicast

Data PreparationTo complete the configuration, you need the following data:

l IP address of the sourcel Outbound interface of Router B to the source

Procedure

Step 1 Configure IP addresses for the interfaces on each router and configure a unicast routing protocol.The detailed configuration procedure is not mentioned here.

Step 2 Enable the multicast function on all routers and enable PIM-SM on each interface.

# The configurations on Router B, Router C, and Router D are similar to those on Router A andare not mentioned here.

[~RouterA] multicast routing-enable[~RouterA] interface pos 1/0/0[~RouterA-Pos1/0/0] pim sm[~RouterA-Pos1/0/0] quit[~RouterA] interface gigabitethernet 2/0/0[~RouterA-GigabitEthernet2/0/0] pim sm[~RouterA-GigabitEthernet2/0/0] quit[~RouterA] interface pos 3/0/0[~RouterA-Pos3/0/0] pim sm[~RouterA-Pos3/0/0] commit[~RouterA-Pos3/0/0] quit

Step 3 Enable IGMP on the interfaces connected to hosts.

# Enable IGMP on the interface connecting Router D to hosts.

[~RouterD] interface gigabitethernet 2/0/0[~RouterD-GigabitEthernet2/0/0] igmp enable[~RouterD-GigabitEthernet2/0/0] commit[~RouterD-GigabitEthernet2/0/0] quit

Step 4 Configure C-BSRs and C-RPs.

# Configure POS 3/0/0 on Router C as both a C-BSR and a C-RP.

[~RouterC] pim[~RouterC] c-bsr pos 3/0/0[~RouterC] c-rp pos 3/0/0[~RouterC] commit[~RouterC] quit

# Run the display multicast rpf-info command on Router B to view the RPF information ofthe source. You can find that the RPF route is a unicast route, and the RPF neighbor is RouterA. The display is as follows:

<RouterB> display multicast rpf-info 8.1.1.2VPN-Instance: public netRPF information about source 8.1.1.2: RPF interface: Pos1/0/0, RPF neighbor: 9.1.1.1 Referenced route/mask: 8.1.1.0/24 Referenced route type: unicast Route selection rule: preference-preferred Load splitting rule: disable

Step 5 Configure multicast static routes

# Configure a multicast static route on Router B and specify Router C as an RPF neighbor tothe source.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

222

Page 233: Configuration Guide - IP Multicast

<RouterB> system-view[~RouterB] ip rpf-route-static 8.1.1.0 255.255.255.0 13.1.1.2[~RouterB] commit[~RouterB] quit

Step 6 Verify the configuration.

# Run the display multicast rpf-info command on Router B to view the RPF information ofthe source. You can find that the RPF route and the RPF neighbor are updated according to themulticast static route. The display is as follows:

<RouterB> display multicast rpf-info 8.1.1.2VPN-Instance: public netRPF information about source 8.1.1.2: RPF interface: Pos2/0/0, RPF neighbor: 13.1.1.2 Referenced route/mask: 8.1.1.0/24 Referenced route type: mstatic Route selection rule: preference-preferred Load splitting rule: disable

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast routing-enable#isis 1 network-entity 10.0000.0000.0001.00#interface GigabitEthernet2/0/0 undo shutdown ip address 8.1.1.1 255.255.255.0 pim sm isis enable 1#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 9.1.1.1 255.255.255.0 pim sm isis enable 1#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 12.1.1.1 255.255.255.0 pim sm isis enable 1#return

l Configuration file of Router B#sysname RouterB#multicast routing-enable#isis 1 network-entity 10.0000.0000.0002.00#interface Pos1/0/0 undo shutdown link-protocol ppp

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

223

Page 234: Configuration Guide - IP Multicast

ip address 9.1.1.2 255.255.255.0 pim sm isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 13.1.1.1 255.255.255.0 pim sm isis enable 1#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 10.1.1.2 255.255.255.0 pim sm isis enable 1#ip rpf-route-static 8.1.1.0 255.255.255.0 13.1.1.2#return

l Configuration file of Router C#sysname RouterC#multicast routing-enable#isis 1 network-entity 10.0000.0000.0003.00#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 13.1.1.2 255.255.255.0 pim sm isis enable 1#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 12.1.1.2 255.255.255.0 pim sm isis enable 1#pim c-bsr Pos3/0/0 c-rp Pos3/0/0 #return

l Configuration file of Router D#sysname RouterD#multicast routing-enable#isis 1 network-entity 10.0000.0000.0004.00#interface GigabitEthernet2/0/0 undo shutdown ip address 7.1.1.1 255.255.255.0 pim sm igmp enable isis enable 1#interface Pos3/0/0 undo shutdown link-protocol ppp

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

224

Page 235: Configuration Guide - IP Multicast

ip address 10.1.1.1 255.255.255.0 pim sm isis enable 1#return

6.5.2 Example for Configuring Multicast Static Routes to ConnectRPF Routes

After multicast static routes are configured in the multicast network, a receiver can receivemulticast data from a multicast source in another area that is unreachable with unicast routes.

Networking Requirements

CAUTIONFor the NE5000E, the interface is numbered as slot number/card number/interface number. Forthe NE5000E cluster, the interface is numbered as chassis ID/slot number/card number/interfacenumber. The slot number is chassis ID/slot ID.

As shown in Figure 6-2, the network runs PIM-SM, all routers support multicast, and the receivercan receive information from Source1. Router B and Router C run OSPF. There is no unicastroute between Router A and Router B. It is required that a multicast static route be configuredto enable the receiver to receive information sent from Source2.

Figure 6-2 Networking diagram for configuring multicast static routes to connect RPF routes

RouterA

GE1/0/010.1.5.1/24

Source210.1.5.2/24

Source110.1.3.2/24

RouterC

RouterB

POS1/0/010.1.2.1/24

POS1/0/010.1.2.2/24

POS3/0/010.1.4.1/24

GE2/0/010.1.3.1/24

OSPF

Receiver

multicast static route

POS3/0/010.1.4.2/24

GE2/0/010.1.1.1/24

PIM-SM

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

225

Page 236: Configuration Guide - IP Multicast

Configuration NotesWhen configuring multicast static routes to connect RPF routes, pay attention to the followingpoints:

l PIM-SM and IGMP need to be enabled in sequence on the interfaces connecting therouters to hosts. That is, enable PIM-SM first and then IGMP.

l When configure a multicast static route, if the next hop is a P2P interface, you must specifythe outbound interface number; if the next hop is not a P2P interface, you must specify thenext-hop address.

Configuration RoadmapThe configuration roadmap is as follows:

1. Configure IP addresses for the interfaces on each router and configure OSPF on eachrouter.

2. Enable the multicast function on all routers, enable PIM-SM on each interface, and enableIGMP on the interfaces connecting routers to hosts.

3. Configure C-BSRs and C-RPs.4. Configure multicast static routes on Router B and Router C.

Data PreparationTo complete the configuration, you need the following data:

l IP address of Source2l RPF interface connecting Router B to Source2 and the RPF neighbor of Router Bl RPF interface connecting Router C to Source2 and the RPF neighbor of Router C

Procedure

Step 1 Configure IP addresses for the interfaces on each router and configure a unicast routing protocol.The detailed configuration procedure is not mentioned here.

Step 2 Enable the multicast function on all routers and enable PIM-SM on each interface.

# Configurations on Router A and Router C are similar to those on Router B and hence are notmentioned here.

[~RouterB] multicast routing-enable[~RouterB] interface pos 1/0/0[~RouterB-Pos1/0/0] pim sm[~RouterB-Pos1/0/0] quit[~RouterB] interface gigabitethernet 2/0/0[~RouterB-GigabitEthernet2/0/0] pim sm[~RouterB-GigabitEthernet2/0/0] quit[~RouterB] interface pos 3/0/0[~RouterB-Pos3/0/0] pim sm[~RouterB-Pos3/0/0] commit[~RouterB-Pos3/0/0] quit

Step 3 Enable IGMP on the interfaces connected to hosts.

# Enable IGMP on the interface connecting Router C to hosts.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

226

Page 237: Configuration Guide - IP Multicast

[~RouterC] interface gigabitethernet 2/0/0[~RouterC-GigabitEthernet2/0/0] igmp enable[~RouterC-GigabitEthernet2/0/0] commit[~RouterC-GigabitEthernet2/0/0] quit

Step 4 Configure C-BSRs and C-RPs.

# Configure POS 1/0/0 on Router B as both a C-BSR and a C-RP.

[~RouterB] pim[~RouterB] c-bsr pos 1/0/0[~RouterB] c-rp pos 1/0/0[~RouterB] commit[~RouterB] quit

Source1 (10.1.3.2/24) and Source2 (10.1.5.2/24) both send multicast data to G (225.1.1.1). Thereceiver joins G and can receive multicast data sent from Source1 and Source2.

# Run the display multicast rpf-info 10.1.5.2 command on Router B and Router C but there isno command output. This indicates that Routers have no RPF routes to Source2.

Step 5 Configure multicast static routes.

# Configure a multicast static route on Router B and specify Router A as an RPF neighbor toSource2.

<RouterB> system-view[~RouterB] ip rpf-route-static 10.1.5.0 255.255.255.0 10.1.4.2[~RouterB] commit[~RouterB] quit

# Configure a multicast static route on Router C and specify Router B as an RPF neighbor toSource2.

<RouterC> system-view[~RouterC] ip rpf-route-static 10.1.5.0 255.255.255.0 10.1.2.2[~RouterC] commit[~RouterC] quit

Step 6 Verify the configuration.

# Run the display multicast rpf-info 10.1.5.2 command again on Router B and Router C, andyou can view RPF information of Source2. RPF information is as follows:

<RouterB> display multicast rpf-info 10.1.5.2VPN-Instance: public netRPF information about: 10.1.5.2 RPF interface: Pos3/0/0, RPF neighbor: 10.1.4.2 Referenced route/mask: 10.1.5.0/24 Referenced route type: mstatic Route selecting rule: preference-preferred Load splitting rule: disable <RouterC> display multicast rpf-info 10.1.5.2VPN-Instance: public netRPF information about source 10.1.5.2: RPF interface: Pos1/0/0, RPF neighbor: 10.1.2.2 Referenced route/mask: 10.1.5.0/24 Referenced route type: mstatic Route selection rule: preference-preferred Load splitting rule: disable

# Run the display pim routing-table command on Router C to view information about the PIMrouting table. Router C has multicast entries related to Source2 and the receiver can receivemulticast data from Source2.

<RouterC> display pim routing-tableVPN-Instance: public net

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

227

Page 238: Configuration Guide - IP Multicast

Total 1 (*, G) entry; 2 (S, G) entries (*, 225.1.1.1) RP: 10.1.2.2 Protocol: PIM-SM, Flag: WC UpTime: 03:54:19 Upstream interface: NULL Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: PIM-SM, UpTime: 01:38:19, Expires: never(10.1.3.2, 225.1.1.1) RP: 10.1.2.2 Protocol: PIM-SM, Flag: ACT UpTime: 00:00:44 Upstream interface: Pos1/0/0 Upstream neighbor: 10.1.2.2 RPF prime neighbor: 10.1.2.2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: PIM-SM, UpTime: 00:00:44, Expires: never(10.1.5.2, 225.1.1.1) RP: 10.1.2.2 Protocol: PIM-SM, Flag: ACT UpTime: 00:00:44 Upstream interface: Pos1/0/0 Upstream neighbor: 10.1.2.2 RPF prime neighbor: 10.1.2.2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: PIM-SM, UpTime: 00:00:44, Expires: never

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast routing-enable#interface GigabitEthernet1/0/0 undo shutdown ip address 10.1.5.1 255.255.255.0 pim sm#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 10.1.4.2 255.255.255.0 pim sm#ospf 1 area 0.0.0.0 network 10.1.5.0 0.0.0.255 network 10.1.4.0 0.0.0.255#return

l Configuration file of Router B#sysname RouterB#multicast routing-enable

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

228

Page 239: Configuration Guide - IP Multicast

#interface GigabitEthernet2/0/0 undo shutdown ip address 10.1.3.1 255.255.255.0 pim sm#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 10.1.2.2 255.255.255.0 pim sm#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 10.1.4.1 255.255.255.0 pim sm#ospf 1 area 0.0.0.0 network 10.1.2.0 0.0.0.255 network 10.1.3.0 0.0.0.255#pim c-bsr Pos3/0/0 c-rp Pos3/0/0#ip rpf-route-static 10.1.5.0 24 10.1.4.2#return

l Configuration file of Router C#sysname RouterC#multicast routing-enable#interface GigabitEthernet2/0/0 undo shutdown ip address 10.1.1.1 255.255.255.0 pim sm igmp enable#interface Pos3/0/0 undo shutdown link-protocol ppp ip address 10.1.2.1 255.255.255.0 pim sm#ospf 1 area 0.0.0.0 network 10.1.1.0 0.0.0.255 network 10.1.2.0 0.0.0.255#ip rpf-route-static 10.1.5.0 24 10.1.2.2#return

6.5.3 Example for Configuring Multicast Load SplittingOn a PIM-SM network where multicast services are stable, it is required to configure the stable-preferred multicast load splitting policy so that multicast traffic can be distributed to multipleequal-cost routes for transmission.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

229

Page 240: Configuration Guide - IP Multicast

Networking Requirements

CAUTIONOn a single NE5000E, an interface is numbered in the format of slot number/card number/interface number. In the NE5000E cluster, an interface is numbered in the format of chassis ID/slot number/card number/interface number. If the slot number is specified, the chassis ID of theslot must also be specified.

As shown in Figure 6-3, there are three equal-cost routes from the device connected with HostA to Source. Host A needs to stably receive multicast data for a long term from the source. It isrequired to configure a load splitting policy to distribute entries evenly to the three equal-costroutes. In this manner, load splitting among equal-cost routes is implemented.

Figure 6-3 Networking diagram of configuring multicast load splitting

RouterA

GE1/0/0POS2/0/2POS2/0/3

POS2/0/1POS1/0/0

POS1/0/0

POS1/0/0

RouterB

RouterC

RouterD

POS1/0/1

POS2/0/0

POS2/0/0

POS2/0/0

POS1/0/2

POS1/0/3POS2/0/0

Loopback0

HostA

Source

RouterE

PIM-SM

POS2/0/0

GE1/0/0RouterF

Device Interface IP Address Device Interface IP Address

Router A GE 1/0/0 10.110.1.2/24 Router D POS 1/0/0 192.168.3.2/24

POS 2/0/1 192.168.1.1/24 POS 2/0/0 192.168.6.1/24

POS 2/0/2 192.168.2.1/24 Router E POS 1/0/1 192.168.4.2/24

POS 2/0/3 192.168.3.1/24 POS 1/0/2 192.168.5.2/24

Loopback0 1.1.1.1/32 POS 1/0/3 192.168.6.2/24

Router B POS 1/0/0 192.168.1.2/24 POS 2/0/0 192.168.7.1/24

POS 2/0/0 192.168.4.1/24 RouterF GE 1/0/0 10.110.2.2/24

Router C POS 1/0/0 192.168.2.2/24 POS 2/0/0 192.168.7.2/24

POS 2/0/0 192.168.5.1/24

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

230

Page 241: Configuration Guide - IP Multicast

Configuration NotesWhen configuring multicast splitting, pay attention to the following points:

l PIM-SM and IGMP need to be enabled in sequence on the interfaces connecting therouters to hosts. That is, enable PIM-SM first and then IGMP.

l The four types of load splitting policies are mutually exclusive. So, you can configure oneof them according to the actual situation.

Configuration RoadmapThe configuration roadmap is as follows:

1. Configure IP addresses for the interfaces on each router.2. Configure IS-IS to implement intercommunications among routers and ensure that route

costs are equal.3. Enable the multicast function on all the routers, enable PIM-SM on each interface, and set

the loopback interface on Router A as an RP.4. Configure stable-preferred multicast load splitting on Router E.5. Host A requires to receive data from some multicast groups for a long period. Configure

the interfaces at the host side of Router F to statically join the multicast groups.

Data PreparationTo complete the configuration, you need the following data:

l IP address of Sourcel IP address of each interface on the routerl Addresses of the multicast groups that the interfaces at the host side of Router F statically

join

Procedure

Step 1 Configure IP addresses for the interfaces on each router according to Figure 6-3. The detailedconfiguration procedure is not mentioned here.

Step 2 Configure IS-IS to implement intercommunications among routers and ensure that route costsare equal. The detailed configuration procedure is not mentioned here.

Step 3 Enable the multicast function on all routers and enable PIM-SM on each interface.

# Configurations on Routers B, C, D, E, and F are similar to those on RouterA. Therefore,configurations on these routers are not mentioned here.

[~RouterA] multicast routing-enable[~RouterA] interface gigabitethernet 1/0/0[~RouterA-GigabitEthernet1/0/0] pim sm[~RouterA-GigabitEthernet1/0/0] quit[~RouterA] interface pos 2/0/1[~RouterA-Pos2/0/1] pim sm[~RouterA-Pos2/0/1] quit[~RouterA] interface pos 2/0/2[~RouterA-Pos2/0/2] pim sm[~RouterA-Pos2/0/2] quit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

231

Page 242: Configuration Guide - IP Multicast

[~RouterA] interface pos 2/0/3[~RouterA-Pos2/0/3] pim sm[~RouterA-Pos2/0/3] quit[~RouterA] interface loopback 0[~RouterA-LoopBack0] pim sm[~RouterA-LoopBack0] commit[~RouterA-LoopBack0] quit

Step 4 Enable IGMP on the interfaces connecting routers to hosts.

# Enable IGMP on the interfaces connecting Router F to hosts.

[~RouterF] interface gigabitethernet 1/0/0[~RouterF-GigabitEthernet1/0/0] igmp enable[~RouterF-GigabitEthernet1/0/0] commit[~RouterF-GigabitEthernet1/0/0] quit

Step 5 Configure an RP on Router A.

# Configure loopback0 on Router A as an RP.

[~RouterA] pim[~RouterA-pim] c-bsr loopback 0[~RouterA-pim] c-rp loopback 0[~RouterA-pim] commit[~RouterA-pim] quit

Step 6 Configure stable-preferred multicast load splitting on Router E.[~RouterE] multicast load-splitting stable-preferred[~RouterE] commit

Step 7 Add the interfaces connecting routers to hosts to the multicast groups statically.

# Statistically add GE 1/0/0 on Router F to the multicast groups from 225.1.1.1 to 225.1.1.3.

[~RouterF] interface gigabitethernet 1/0/0[~RouterF-GigabitEthernet1/0/0] igmp static-group 225.1.1.1[~RouterF-GigabitEthernet1/0/0] igmp static-group 225.1.1.2[~RouterF-GigabitEthernet1/0/0] igmp static-group 225.1.1.3[~RouterF-GigabitEthernet1/0/0] commit[~RouterF-GigabitEthernet1/0/0] quit

Step 8 Verify the configuration.

# Source (10.110.1.1/24) sends multicast data to multicast groups 225.1.1.1 to 225.1.1.3. HostA can receive the multicast data sent from Source. On Router E, check information about thePIM routing table.

<RouterE> display pim routing-table brief VPN-Instance: public net Total 3 (*, G) entries; 3 (S, G) entries

Entries Upstream interface NDwnstrms (*, 225.1.1.1) Pos1/0/3 1 (10.110.1.1, 225.1.1.1) Pos1/0/3 1 (*, 225.1.1.2) Pos1/0/2 1 (10.110.1.1, 225.1.1.2) Pos1/0/2 1 (*, 225.1.1.3) Pos1/0/1 1 (10.110.1.1, 225.1.1.3) Pos1/0/1 1

(*, G) and (S, G) entries are evenly distributed to the three equal-cost routes, with the upstreaminterfaces being POS 1/0/3, POS 1/0/2, and POS 1/0/1 respectively.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

232

Page 243: Configuration Guide - IP Multicast

NOTE

The load splitting algorithm processes (*, G) and (S, G) entries separately but the process rules are thesame.

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast routing-enable#isis 1 network-entity 10.0000.0000.0001.00#interface GigabitEthernet1/0/0 undo shutdown ip address 10.110.1.2 255.255.255.0 pim sm isis enable 1#interface Pos2/0/1 undo shutdown link-protocol ppp ip address 192.168.1.1 255.255.255.0 pim sm isis enable 1#interface Pos2/0/2 undo shutdown link-protocol ppp ip address 192.168.2.1 255.255.255.0 pim sm isis enable 1#interface Pos2/0/3 undo shutdown link-protocol ppp ip address 192.168.3.1 255.255.255.0 pim sm isis enable 1#interface Loopback0 ip address 1.1.1.1 255.255.255.255 pim sm isis enable 1#pim c-bsr LoopBack0 c-rp LoopBack0#return

l Configuration file of Router B#sysname RouterB#multicast routing-enable#isis 1 network-entity 10.0000.0000.0002.00#interface Pos1/0/0 undo shutdown link-protocol ppp

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

233

Page 244: Configuration Guide - IP Multicast

ip address 192.168.1.2 255.255.255.0 pim sm isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.4.1 255.255.255.0 pim sm isis enable 1#return

l Configuration file of Router C#sysname RouterC#multicast routing-enable#isis 1 network-entity 10.0000.0000.0003.00#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.2.2 255.255.255.0 pim sm isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.5.1 255.255.255.0 pim sm isis enable 1#return

l Configuration file of Router D#sysname RouterD#multicast routing-enable#isis 1 network-entity 10.0000.0000.0004.00#interface Pos1/0/0 undo shutdown link-protocol ppp ip address 192.168.3.2 255.255.255.0 pim sm isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.6.1 255.255.255.0 pim sm isis enable 1#return

l Configuration file of Router E#sysname RouterE#multicast routing-enablemulticast load-splitting stable-preferred#

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

234

Page 245: Configuration Guide - IP Multicast

isis 1 network-entity 10.0000.0000.0005.00#interface Pos1/0/1 undo shutdown link-protocol ppp ip address 192.168.4.2 255.255.255.0 isis enable 1 pim sm#interface Pos1/0/2 undo shutdown link-protocol ppp ip address 192.168.5.2 255.255.255.0 pim sm isis enable 1#interface Pos1/0/3 undo shutdown link-protocol ppp ip address 192.168.6.2 255.255.255.0 pim sm isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.7.1 255.255.255.0 pim sm isis enable 1#return

l Configuration file of the Router F#sysname RouterF#multicast routing-enable#isis 1 network-entity 10.0000.0000.0006.00#interface GigabitEthernet1/0/0 undo shutdown ip address 10.110.2.2 255.255.255.0 pim sm igmp enable isis enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ip address 192.168.7.2 255.255.255.0 pim sm isis enable 1#return

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 6 IP Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

235

Page 246: Configuration Guide - IP Multicast

7 MLD Configuration

About This Chapter

To manage multicast group members on a local IPv6 network, configure MLD on the interfacethat connects a multicast device to a user network segment.

7.1 MLD OverviewMLD is short for Multicast Listener Discovery. It has two versions: MLDv1 and MLDv2.MLDv1 supports the ASM model and MLDv2 supports the SSM model.

7.2 MLD Features Supported by the NE5000EThe supported MLD features include basic MLD functions, Router-Alert options, MLD querierparameter settings, and SSM mapping.

7.3 Configuring Basic MLD FunctionsAfter basic MLD functions are configured on the interfaces connecting multicast devices to thenetwork segments where user hosts reside, user hosts can access a multicast network andmulticast packets can reach the user hosts.

7.4 Configuring MLD SSM MappingOn an IPv6 network providing multicast SSM services, an interface on a multicast router runsMLDv2 but user hosts run MLDv1 due to some causes. To ensure that MLD versions on amulticast device and user hosts are compatible and enable the multicast router running a higherversion of MLD to provide SSM services for its directly connected user hosts running a lowerversion of MLD, configure SSM mapping on the multicast router.

7.5 Configuring an MLD Router-Alert OptionIn this configuration task, you can configure a device to deny all the MLD packets withoutRouter-Alert options or send MLD packets without Router-Alert options.

7.6 Configuring an MLD QuerierConfiguring an MLD querier involves setting the interval for sending general query messages,robustness variable, maximum response time of Query messages, Keepalive time of other MLDqueriers, and interval for sending MLD last-listener query messages, and configuring the MLDprompt leave function.

7.7 Maintaining MLDMaintaining MLD involves resetting MLD group information, monitoring MLD operatingstatus, and debugging MLD.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

236

Page 247: Configuration Guide - IP Multicast

7.8 Configuration ExamplesConfiguration examples show you how to configure basic MLD functions and how to configureMLD SSM mapping.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

237

Page 248: Configuration Guide - IP Multicast

7.1 MLD OverviewMLD is short for Multicast Listener Discovery. It has two versions: MLDv1 and MLDv2.MLDv1 supports the ASM model and MLDv2 supports the SSM model.

The Multicast Listener Discovery (MLD) is a sub-protocol of the Internet Control MessageProtocol version 6 (ICMPv6). MLD is used to set up and maintain group memberships betweenuser hosts and their directly connected multicast devices. The functions and principles of MLDare similar to those of IGMP.

MLD has two versions:

l MLDv1 (defined in RFC 2710)– MLDv1 is derived from IGMPv2 and supports the Any-Source Multicast (ASM) model.

With the help of SSM mapping, MLDv1 supports the Source-Specific Multicast (SSM)model.

l MLDv2 (defined in RFC 3810)– MLDv2 is derived from IGMPv3 and supports ASM and SSM models.

7.2 MLD Features Supported by the NE5000EThe supported MLD features include basic MLD functions, Router-Alert options, MLD querierparameter settings, and SSM mapping.

Basic MLD Functions

The NE5000E supports the following basic MLD functions:

l Configuration of MLDv1 and MLDv2l Adding of an interface that is to be added to a multicast group statically After an interface

is added to a multicast group statically, the system considers that the network segmentwhere the interface resides contains a group member.

l Limit on the range of multicast groups to which an interface can be added

Router-Alert Options

MLD supports multicast packets without local receivers to be delivered to the upper-layerprotocol for processing by adding Router-Alert options to the packets.

You can determine whether to enable the NE5000E to send MLD packets with Router-Alertoptions or enable the NE5000E to accept only MLD packets with Router-Alert options.

MLD Querier Parameter Settings

You can configure the following parameters:

l Interval for sending MLD general query messagesl MLD robustness variablel Maximum response time of MLD Query messages

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

238

Page 249: Configuration Guide - IP Multicast

l Keepalive time of other MLD queriersl Interval for sending MLD last-listener query messagesl MLD prompt leave feature

After receiving a Done message for a certain multicast group, the interface enabled withprompt leave directly deletes the records of the multicast group without sending a last-listener query message.

SSM MappingSSM mapping enables multicast devices to provide SSM services for user hosts that run MLDv1.

7.3 Configuring Basic MLD FunctionsAfter basic MLD functions are configured on the interfaces connecting multicast devices to thenetwork segments where user hosts reside, user hosts can access a multicast network andmulticast packets can reach the user hosts.

Applicable EnvironmentMLD runs on the network segment where the router is directly connected to user hosts. It mustbe configured on both the router and user hosts. This section describes how to configure MLDon the router.

Before configuring MLD, enable IPv6 multicast routing. IPv6 multicast routing is theprecondition for configuring all IPv6 multicast functions. If IPv6 multicast routing is disabled,all IPv6 multicast-related configurations are deleted.

MLD needs to be enabled on the interfaces connected to user hosts. Specify matching MLDversions for the router and attached user hosts because the packet formats of MLDv1 and MLDv2are different. The MLD version at the router side must be of a higher version and be compatiblewith the lower version at the host side. Other MLD-related configurations can be performed onlyafter MLD versions are specified.

In addition, by configuring interfaces on the router to statically join an MLD group, enable therouter to rapidly respond to users' requests, thereby shortening channel switching time.

To make hosts on the network segment where interfaces of the router reside join specified MLDgroups and receive multicast packets for these groups, define an ACL rule as a filter to restrictthe range of MLD groups that the hosts can join. This guarantees MLD security.

Pre-configuration TasksBefore configuring basic MLD functions, complete the following tasks:

l Configuring link layer protocol parameters and assigning IPv6 addresses to interfaces toensure that the status of the link layer protocol on the interfaces is Up

l Configuring a unicast routing protocol to make devices routable

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

239

Page 250: Configuration Guide - IP Multicast

Configuration Procedures

Figure 7-1 Flowchart for configuring basic MLD functions

Enable IPv6 multicast routing

Enable IPv6 PIM-SM

Enable MLD

Set an MLD version

Set the range of MLD groups thatan interface can join

Configure an interface to staticallyjoin an MLD group

Mandatoryprocedure

Optionalprocedure

7.3.1 Enabling IPv6 Multicast RoutingBefore configuring IPv6 multicast features in a router, enable IPv6 multicast routing on therouter.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:multicast ipv6 routing-enable

IPv6 multicast routing is enabled.

CAUTIONRunning the undo multicast ipv6 routing-enable command clears all IPv6 multicastconfigurations and interrupts running IPv6 multicast services. To restore the IPv6 multicastservices, you need to run the IPv6 multicast commands that have been deleted.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

240

Page 251: Configuration Guide - IP Multicast

Step 3 Run:commit

The configuration is committed.

----End

7.3.2 Enabling IPv6 PIM-SMAfter IPv6 PIM-SM is enabled on the interface connected to other routers, the interface canestablish IPv6 PIM neighbor relationships with the routers.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The interface view is displayed.

Step 3 Run:pim ipv6 sm

IPv6 PIM-SM is enabled.

CAUTIONRunning the undo pim ipv6 sm command clears the IPv6 PIM neighbors of an interface. If theinterface is running IPv6 multicast services, running the command will interrupt the services onthe interface.

Step 4 Run:commit

The configuration is committed.

----End

7.3.3 Enabling MLDUser hosts can dynamically join MLD groups after MLD is enabled on the interfaces connectedto user network segments.

Procedure

Step 1 Run:system-view

The system view is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

241

Page 252: Configuration Guide - IP Multicast

Step 2 Run:interface interface-type interface-number

The view of the interface connected to a user network segment is displayed.

Step 3 Run:mld enable

MLD is enabled.

MLD parameters configured on the interface before MLD is enabled on this interface take effectonly after the mld enable command is run on the interface.

Step 4 Run:commit

The configuration is committed.

----End

7.3.4 (Optional) Setting an MLD VersionInterfaces connecting multicast devices to the same user network segment must use the sameMLD version; otherwise, multicast devices fail to communicate with each other.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The view of the interface connected to a user network segment is displayed.

Step 3 Run:mld version { 1 | 2 }

An MLD version is set for the interface.

By default, MLDv2 is run on the interface.

Step 4 Run:commit

The configuration is committed.

----End

7.3.5 (Optional) Configuring an Interface to Statically Join an MLDGroup

After an interface connecting the multicast device to a user network segment is configured tostatically join an MLD group, the multicast device always considers that the interface has anattached multicast group member and continues forwarding required multicast packets to thisinterface.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

242

Page 253: Configuration Guide - IP Multicast

ContextIf a user network segment has stable IPv6 hosts that demand multicast programs, configure theinterface connected to the user network segment to statically join an MLD group This ensuresthat the interface can rapidly respond to users' requests and shortens channel switching time.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The view of the interface connected to a user network segment is displayed.

Step 3 Run:mld static-group ipv6-group-address [ inc-step-mask ipv6-group-mask-length number group-number ] [ source ipv6-source-address ]

The interface is configured to statically join an MLD group.

The mld static-group command must be run on the interfaces connected to user hosts. Theinterface can be added to a single IPv6 multicast group or source/group, or be added to multipleIPv6 multicast groups or source/groups in batches.

After the interface is configured to statically join an MLD group, multicast entries generated onthe router never time out. Therefore, the router keeps forwarding multicast data to the interface.If the interface no longer needs to receive IPv6 multicast data for the group, the static MLDgroup configurations must be deleted manually from the interface.

Step 4 Run:commit

The configuration is committed.

----End

7.3.6 (Optional) Setting the Range of MLD Groups that an InterfaceCan Join

After an MLD group policy is configured on the interfaces connected to user network segments,user hosts can join certain MLD groups.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The view of the interface connected to a user network segment is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

243

Page 254: Configuration Guide - IP Multicast

Step 3 Run:mld group-policy { acl6-number | acl6-name acl6-name } [ 1 | 2 ]

The range of MLD groups that the interface can join is set.

By default, hosts can join any MLD group.

Step 4 Run:commit

The configuration is committed.

----End

7.3.7 Checking the ConfigurationAfter basic MLD functions are configured, check the configurations and operating status ofMLD and information about MLD group members.

PrerequisiteAll basic MLD function configurations are complete.

Procedurel Run the display mld interface [ interface-type interface-number | up | down ]

[ verbose ] command to view the configurations and operating status of MLD on aninterface.

l Run the display mld group [ ipv6-group-address | interface interface-type interface-number ] * [ static ] [ verbose ] command to view information about MLD group members.

----End

ExampleRun the display mld interface gigabitethernet 1/0/0 verbose command, and you can seedetailed MLD configurations on GE 1/0/0. For example:

<HUAWEI> display mld interface gigabitethernet 1/0/0 verboseInterface information GigabitEthernet1/0/0(FE80::2E0:B4FF:FE35:FF01): MLD is enabled Current MLD version is 2 MLD state: up MLD group policy: none Value of query interval for MLD (negotiated): 125 s Value of query interval for MLD (configured): 125 s Value of other querier timeout for MLD: 0 s Value of maximum query response time for MLD: 10 s Value of last listener query time: 2 s Value of last listener query interval: 1 s Value of startup query interval: 31 s Value of startup query count: 2 General query timer expiry (hours:minutes:seconds): 00:00:28 Querier for MLD: FE80::2E0:B4FF:FE35:FF01 (this router) MLD activity: 0 joins, 0 dones Robustness (negotiated): 2 Robustness (configured): 2 Require-router-alert: disabled Send-router-alert: enabled Prompt-leave: disabled

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

244

Page 255: Configuration Guide - IP Multicast

SSM-Mapping: disabled Startup-query-timer-expiry: on Other-querier-present-timer-expiry: off Total 2 MLD Groups reported

Run the display mld group verbose command, and you can see details about the MLD groupsthat interfaces dynamically join. For example:

<HUAWEI> display mld group verboseInterface group report information of VPN-Instance: public net GigabitEthernet6/0/2(FE80::2E0:49FF:FE29:1103): Total entry on this interface: 1 Total 1 MLD Group reported Group: FF05::2 Uptime: 00:01:07 Expires: 00:03:45 Last reporter: FE80::215:E9FF:FEAC:7666 Last-listener-query-counter: 0 Last-listener-query-timer-expiry: off Group mode: exclude Version1-host-present-timer-expiry: 00:03:45

Run the display mld group static command, and you can see information about the MLD groupsthat interfaces statically join. For example:

<HUAWEI> display mld group staticStatic join group information of VPN-Instance: public net Ethernet1/0/0: Total 1 MLD entry Group Address Source Address Expires FF30::101 1:1:1::101 never Ethernet2/0/1: Total 2 MLD entries Group Address Source Address Expires FF00:1232:4561: 1234:1232:4561: never 7896:3456:6666: 7896:3456:6666: 1234:3456 1234:3456 FF30::103 1:1:1::103 never

7.4 Configuring MLD SSM MappingOn an IPv6 network providing multicast SSM services, an interface on a multicast router runsMLDv2 but user hosts run MLDv1 due to some causes. To ensure that MLD versions on amulticast device and user hosts are compatible and enable the multicast router running a higherversion of MLD to provide SSM services for its directly connected user hosts running a lowerversion of MLD, configure SSM mapping on the multicast router.

Applicable Environment

On an IPv6 network providing multicast SSM services, an interface on a multicast router runsMLDv2 but user hosts run MLDv1 due to some causes. To enable the multicast router to provideSSM services for the user hosts, configure SSM mapping on the router.

Pre-configuration Tasks

Before configuring MLD SSM mapping, complete the following tasks:

l Configuring a unicast routing protocol to make devices routable

l 7.3 Configuring Basic MLD Functions

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

245

Page 256: Configuration Guide - IP Multicast

Configuration Procedures

Figure 7-2 Flowchart for configuring MLD SSM mapping

MandatoryprocedureOptional

procedure

Enable the SSM mappingfunction

Configure IGMP SSMmapping

7.4.1 Enabling the SSM Mapping FunctionEnabling the SSM mapping function on an interface connecting to a user network segment is aprerequisite for configuring MLD SSM mapping. The SSM source/group address mappingentries configured on the interface take effect only after SSM mapping is enabled on the interface.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The view of the interface connected to a user network segment is displayed.

Step 3 Run:mld version 2

The MLD version is set to 2.

To ensure that all user hosts (running any MLD version) can obtain SSM services, MLDv2 isrecommended. By default, an interface runs MLDv2.

Step 4 Run:mld ssm-mapping enable

The SSM mapping function is enabled.

Step 5 Run:commit

The configuration is committed.

----End

7.4.2 Configuring Static SSM MappingThe SSM mapping function configured on a multicast device connected to a user networksegment allows user hosts that support only MLDv1 to join specific source/groups. It implements

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

246

Page 257: Configuration Guide - IP Multicast

MLD version compatibility on the multicast device and user hosts and enables the multicastdevice to provide SSM services for all the user hosts.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:mld

The MLD view is displayed.

Step 3 Run:ssm-mapping ipv6-group-address ipv6-group-mask-length ipv6-source-address

A mapping from an MLD group to a source is created.

l ipv6-group-address ipv6-group-mask-length specifies an MLD group address and mask,which must be in the SSM group address range. By default, the SSM group address range isFF3x::/32. You can run the ssm-policy command to set an SSM group address range out ofthis range.

l ipv6-source-address specifies an IPv6 multicast source address mapped to the MLD groupaddress.

You can run the ssm-mapping command for several times to map the same MLD group tomultiple sources.

Step 4 Run:commit

The configuration is committed.

----End

7.4.3 Checking the ConfigurationAfter MLD SSM mapping is configured, check information about the groups configured withSSM mapping, SSM mapping rules of a specified group, and SSM mapping status to ensurenormal operating of the SSM mapping function.

PrerequisiteAll MLD SSM mapping configurations are complete.

Procedurel Run the display mld interface [ interface-type interface-number | up | down ]

[ verbose ] command to view the configurations and operating status of MLD on aninterface.

l Run the display mld group [ ipv6-group-address | interface interface-type interface-number ] * ssm-mapping [ verbose ] command to view details about MLD groupsconfigured with SSM mapping.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

247

Page 258: Configuration Guide - IP Multicast

l Run the display mld ssm-mapping group [ ipv6-group-address ] command to view SSMmapping rules of a specified MLD group.

----End

ExampleRun the display mld interface verbose command, and you can see details about MLD interfaces.The SSM-Mapping field in the command output shows whether the SSM mapping function isenabled on an interface. For example:

<HUAWEI> display mld interface verboseInterface information GigabitEthernet1/0/0(FE80::2E0:B4FF:FE35:FF01): MLD is enabled Current MLD version is 2 MLD state: up MLD group policy: none Value of query interval for MLD (negotiated): 125 s Value of query interval for MLD (configured): 125 s Value of other querier timeout for MLD: 0 s Value of maximum query response time for MLD: 10 s Value of last listener query time: 2 s Value of last listener query interval: 1 s Value of startup query interval: 31 s Value of startup query count: 2 General query timer expiry (hours:minutes:seconds): 00:00:28 Querier for MLD: FE80::2E0:B4FF:FE35:FF01 (this router) MLD activity: 0 joins, 0 dones Robustness (negotiated): 2 Robustness (configured): 2 Require-router-alert: disabled Send-router-alert: enabled Prompt-leave: disabled SSM-Mapping: enabled Startup-query-timer-expiry: on Other-querier-present-timer-expiry: off

Run the display mld group ssm-mapping verbose command, and you can see details about theMLD groups configured with SSM mapping. For example:

<HUAWEI> display mld group ssm-mapping verboseInterface group report information of VPN-Instance: public net Ethernet1/0/0(FE80:1::101): Total entry on this interface: 1 Total 1 MLD SSM-Mapping Group reported Group: FF37::1 Uptime: 00:00:21 Expires: 00:03:59 Last reporter: FE80::208:A1FF:FE83:F82A Last-listener-query-counter: 0 Last-listener-query-timer-expiry: off Version1-host-present-timer-expiry: off Source list: Source: 1::1 Uptime: 00:00:21 Source: 1::2 Uptime: 00:00:21 Source: 1::3 Uptime: 00:00:21

Run the display mld ssm-mapping group command, and you can see information about theSSM mapping rules of a specified MLD group. For example:

<HUAWEI> display mld ssm-mapping groupMLD SSM-Mapping conversion table of VPN-Instance: public net Total 3 entries 3 entries matched

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

248

Page 259: Configuration Guide - IP Multicast

00001. (1::1, FF37::)

00002. (1::2, FF37::)

00003. (1::3, FF37::1)

Total 3 entries matched

Run the display mld ssm-mapping interface command, and you can see information about theinterfaces enabled with the SSM mapping function. For example:

<HUAWEI> display mld ssm-mapping interfaceInterface information of VPN-Instance: public netGigabitEthernet1/0/0(FE80::1)

7.5 Configuring an MLD Router-Alert OptionIn this configuration task, you can configure a device to deny all the MLD packets withoutRouter-Alert options or send MLD packets without Router-Alert options.

Applicable EnvironmentGenerally, a device sends a packet to the routing protocol layer for processing only if thedestination IP address of the packet is the IP address of a local interface. The destination IPaddress of an MLD packet is usually a multicast address but not the address of an interface ona multicast device and thus the MLD packet may fail to be sent to the routing protocol layer forprocessing. Router-Alert options can address such a problem. MLD packets carrying Router-Alert options need to be sent to the routing protocol layer for processing.

NOTE

For details about Router-Alert options, see RFC 2113.

Pre-configuration TasksBefore configuring an MLD Router-Alert option, complete the following tasks:

l Configuring a unicast routing protocol to make devices routablel 7.3 Configuring Basic MLD Functions

Configuration ProceduresChoose one or more configuration tasks (excluding "Checking the Configuration") as needed.

7.5.1 Configuring a Multicast Device to Deny MLD Packets WithoutRouter-Alert Options

This configuration task enables a device to deny all the MLD packets without Router-Alertoptions.

ContextBy default, the router does not check whether the received MLD packets contain Router-Alertoptions, that is, the router accepts and processes all the received MLD packets.

You can perform configurations either globally or on an interface.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

249

Page 260: Configuration Guide - IP Multicast

l Global configuration: takes effect on all interfaces.l Configuration on an interface: takes precedence over the global configuration. If the

configuration on an interface is not done, the global configuration is used.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

mld

The MLD view is displayed.3. Run:

require-router-alert

The multicast device is configured to accept and process only the MLD packets withRouter-Alert options and discard those without Router-Alert options.

4. Run:commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

The view of the interface connected to a user network segment or a switching deviceis displayed.

3. Run:mld require-router-alert

The interface is configured to accept and process only the MLD packets with Router-Alert options and discard those without Router-Alert options.

4. Run:commit

The configuration is committed.

----End

7.5.2 Configuring a Multicast Device to Send MLD Packets WithoutRouter-Alert Options

If some MLD interfaces on the same network need to receive MLD packets without Router-Alert options, configure the multicast device connected to the user network segment to sendMLD packets without Router-Alert options.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

250

Page 261: Configuration Guide - IP Multicast

ContextBy default, the router sends MLD packets with Router-Alert options.

You can perform configurations either globally or on an interface.

l Global configuration: takes effect on all interfaces.l Configuration on an interface: takes precedence over the global configuration. If the

configuration on an interface is not done, the global configuration is used.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

mld

The MLD view is displayed.3. Run:

undo send-router-alert

The device is configured to send MLD packets without Router-Alert options.4. Run:

commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

The view of the interface connected to a user network segment or a switching deviceis displayed.

3. Run:undo mld send-router-alert

The interface is configured to send MLD packets without Router-Alert options.4. Run:

commit

The configuration is committed.

----End

7.5.3 Checking the ConfigurationAfter an MLD Router-Alert option is configured, check the configurations and operating statusof MLD to ensure normal running of MLD.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

251

Page 262: Configuration Guide - IP Multicast

PrerequisiteAll the MLD Router-Alert option configurations are complete.

Procedurel Run the display mld interface [ interface-type interface-number | up | down ]

[ verbose ] command to view the configurations and operating status of MLD on aninterface.

----End

ExampleRun the display mld interface verbose command, and you can see details about MLD interfaces.The command output shows that GE 1/0/0 denies the received packets that do not contain Router-Alert options. For example:

<HUAWEI> display mld interface verboseInterface information GigabitEthernet1/0/0(FE80::2E0:B4FF:FE35:FF01): MLD is enabled Current MLD version is 2 MLD state: up MLD group policy: none Value of query interval for MLD (negotiated): 125 s Value of query interval for MLD (configured): 125 s Value of other querier timeout for MLD: 0 s Value of maximum query response time for MLD: 10 s Value of last listener query time: 2 s Value of last listener query interval: 1 s Value of startup query interval: 31 s Value of startup query count: 2 General query timer expiry (hours:minutes:seconds): 00:00:28 Querier for MLD: FE80::2E0:B4FF:FE35:FF01 (this router) MLD activity: 0 joins, 0 dones Robustness (negotiated): 2 Robustness (configured): 2 Require-router-alert: enabled Send-router-alert: enabled Prompt-leave: disabled SSM-Mapping: disabled Startup-query-timer-expiry: on Other-querier-present-timer-expiry: off

7.6 Configuring an MLD QuerierConfiguring an MLD querier involves setting the interval for sending general query messages,robustness variable, maximum response time of Query messages, Keepalive time of other MLDqueriers, and interval for sending MLD last-listener query messages, and configuring the MLDprompt leave function.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

252

Page 263: Configuration Guide - IP Multicast

Applicable Environment

CAUTIONInterfaces connecting multicast devices to the same user network segment must use the sameMLD parameters; otherwise, multicast devices on the network fail to communicate with eachother.

An MLD querier is responsible for periodically sending MLD Query messages on a sharednetwork segment to update group memberships. You can configure parameters of an MLDquerier either globally or on an interface.

l Global configuration: takes effect on all interfaces.l Configuration on an interface: takes precedence over the global configuration. If the

configuration on an interface is not done, the global configuration is used.

NOTE

During the configuration, ensure that the interval for sending general query messages is greater than themaximum response time of Query messages but is smaller than the Keepalive time of other MLD queriers.

Pre-configuration Tasks

Before configuring an MLD querier, complete the following tasks:

l Configuring a unicast routing protocol to make devices routablel 7.3 Configuring Basic MLD Functions

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

mld

The MLD view is displayed.3. Run:

timer query interval

The interval for sending general query messages is set.

By default, the interval is 125 seconds.4. Run:

robust-count robust-value

An MLD robustness variable is set.

By default, the robustness variable of an MLD querier is 2. The greater the robustnessvariable is, the longer timeout period a group membership has.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

253

Page 264: Configuration Guide - IP Multicast

When the router starts, the router sends general query messages for the number ofrobust-value times. The sending interval is 1/4 of the interval for sending MLD generalquery messages.

After receiving a Done message, the router sends last-listener query messages for thenumber of robust-value times. The sending interval is set by using the lastlistener-queryinterval command.

5. Run:max-response-time interval

The maximum response time of MLD Query messages is set.

By default, the maximum response time of MLD Query messages is 10 seconds.6. Run:

timer other-querier-present interval

The Keepalive time of other MLD queriers is set.

The formula used to calculate the Keepalive time of other MLD queriers is: Keepalivetime of other MLD queriers = Robustness variable x Interval for sending MLD generalquery messages + 1/2 x maximum response time of MLD Query messages. If therobustness variable, the interval for sending MLD general query messages, and themaximum response time of MLD Query messages are all of default values, theKeepalive time of other MLD queriers is 255 seconds.

7. Run:lastlistener-queryinterval interval

The interval for sending MLD last-listener query messages is set.

By default, the interval for sending MLD last-listener query messages is one second.The shorter the interval is, the more sensitive the querier is.

8. Run:commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

The view of the interface connected to a user network segment is displayed.3. Run:

mld timer query interval

The interval for sending general query messages is set.4. Run:

mld max-response-time interval

The maximum response time of MLD Query messages is set.5. Run:

mld timer other-querier-present interval

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

254

Page 265: Configuration Guide - IP Multicast

The Keepalive time of other MLD queriers is set.

6. Run:mld robust-count robust-value

An MLD robustness variable is set.

7. Run:mld lastlistener-queryinterval interval

The interval for sending MLD last-listener query messages is set.

8. Run:mld prompt-leave [ group-policy { basic-acl6-number | acl6-name acl6-name } ]

The MLD prompt leave function is configured on the interface.

By default, MLD-enabled interfaces send last-listener query messages after receivingDone messages for a specific multicast group from hosts. If the MLD prompt leavefunction is enabled, the interfaces directly delete the records of the multicast groupwithout sending last-listener query messages.

9. Run:commit

The configuration is committed.

----End

Checking the Configuration

Run the display mld interface verbose command to view the configurations and operatingstatus of MLD on an interface.

<HUAWEI> display mld interface verboseInterface information GigabitEthernet1/0/0(FE80::2E0:B4FF:FE35:FF01): MLD is enabled Current MLD version is 2 MLD state: up MLD group policy: none Value of query interval for MLD (negotiated): 125 s Value of query interval for MLD (configured): 125 s Value of other querier timeout for MLD: 0 s Value of maximum query response time for MLD: 10 s Value of last listener query time: 2 s Value of last listener query interval: 1 s Value of startup query interval: 31 s Value of startup query count: 2 General query timer expiry (hours:minutes:seconds): 00:00:28 Querier for MLD: FE80::2E0:B4FF:FE35:FF01 (this router) MLD activity: 0 joins, 0 dones Robustness (negotiated): 2 Robustness (configured): 2 Require-router-alert: disabled Send-router-alert: enabled Prompt-leave: disabled SSM-Mapping: disabled Startup-query-timer-expiry: on Other-querier-present-timer-expiry: off

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

255

Page 266: Configuration Guide - IP Multicast

7.7 Maintaining MLDMaintaining MLD involves resetting MLD group information, monitoring MLD operatingstatus, and debugging MLD.

7.7.1 Clearing MLD Group InformationAfter you confirm to clear MLD group information, use the reset command in the user view.

Context

CAUTIONThe reset mld group or reset mld group ssm-mapping command clears information about theMLD groups that an interface dynamically joins, which may cause receivers to fail to receivemulticast data normally. Exercise caution when running this command.

Procedurel To clear information about the MLD groups (excluding the MLDv1 groups in the SSM

group address range) that an interface dynamically joins, run the following commands inthe user view:– reset mld group all– reset mld group interface interface-type interface-number { all | ipv6-group-

address [ ipv6-group-mask-length ] [ ipv6-source-address [ ipv6-source-mask-length ] ] }

l To clear information about the MLDv1 groups in the SSM group address range, run thefollowing commands in the user view:– reset mld group ssm-mapping all– reset mld group ssm-mapping interface interface-type interface-number { all | ipv6-

group-address [ ipv6-group-mask-length ] }l To clear information about the MLD groups that an interface statically joins, run the undo

mld static-group { all | ipv6-group-address [ source ipv6-source-address ] } command inthe user view.

----End

7.7.2 Monitoring the Operating Status of MLDYou can monitor the operating status of MLD by viewing MLD group information, SSMmapping information, MLD-enabled interface information, and MLD routing table information.

ContextIn routine maintenance, you can run the following commands in any view to view the operatingstatus of MLD.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

256

Page 267: Configuration Guide - IP Multicast

Procedurel Run the display mld group [ ipv6-group-address | interface interface-type interface-

number ] * [ static ] [ verbose ] command to view MLD group information on an interface.l Run the display mld group [ ipv6-group-address | interface interface-type interface-

number ] * ssm-mapping [ verbose ] command to view information about the MLD groupsconfigured with SSM mapping.

l Run the display mld interface [ interface-type interface-number ] [ verbose ] commandto view the configurations and operating status of MLD on an interface.

l Run the display mld ssm-mapping group [ ipv6-group-address ] command to view SSMmapping rules of a specified MLD group.

----End

7.8 Configuration ExamplesConfiguration examples show you how to configure basic MLD functions and how to configureMLD SSM mapping.

7.8.1 Example for Configuring Basic MLD FunctionsAfter basic MLD functions are configured on an IPv6 multicast network, user hosts can steadilyreceive multicast data from multicast sources.

Networking Requirements

CAUTIONOn a single NE5000E, an interface is numbered in the format of slot number/card number/interface number. On an NE5000E cluster, an interface is numbered in the format of chassis ID/slot number/card number/interface number, and a slot is numbered in the format of chassis ID/slot number.

As shown in Figure 7-3, IPv6 multicast services are deployed on the ISP network. An IGP hasbeen deployed to ensure that IPv6 unicast routes are available. Hosts on this network want toreceive VOD information with the IPv6 multicast service. For example, Host A and Host B wantto join multicast group FF13::101 to steadily receive popular programs.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

257

Page 268: Configuration Guide - IP Multicast

Figure 7-3 Networking diagram of configuring basic MLD functions

RouterA

RouterB

RouterC

POS2/0/0GE1/0/0

PIM network

POS2/0/0

POS2/0/0

GE1/0/0

GE1/0/0

Ethernet

HostAReceiver

HostB

N1

Leaf network

HostDN2

Ethernet

HostCReceiver

POS2/0/1

POS2/0/2

POS2/0/3

POS1/0/0

Device Interface IP Address Device Interface IP AddressRouter A POS 2/0/0 2001::1/64 Router D POS 1/0/0 2000::1/64

GE 1/0/0 3001::10/64 POS 2/0/1 2001::2/64Router B POS 2/0/0 2002::1/64 POS 2/0/2 2002::2/64

GE 1/0/0 3002::10/64 POS 2/0/3 2003::2/64Router C POS 2/0/0 2003::1/64

GE 1/0/0 3003::10/64

PrecautionsWhen configuring basic MLD functions, note the following points:

l IPv6 PIM-SM and then MLD must be enabled on the interfaces connected to hosts.l Interfaces connected to the same user network segment must use the same MLD version.

Configuration RoadmapOn an IPv6 PIM-SM network where MLD is enabled on the interface connected to user hosts,if an interface needs to forward the data for an IPv6 multicast group for a long time, the interfacecan be configured to statically join the IPv6 multicast group. The configuration roadmap is asfollows:

1. Configure IPv6 addresses for interfaces on each router and configure a unicast routingprotocol.

2. Enable IPv6 multicast routing on all routers providing IPv6 multicast services.3. Enable IPv6 PIM-SM on all interfaces of the multicast routers.4. Enable MLD on the interfaces connected to hosts.5. Configure GE 1/0/0 on Router A to statically join MLD group FF13::101 to steadily receive

multicast data.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

258

Page 269: Configuration Guide - IP Multicast

Data PreparationTo complete the configuration, you need the following data.

l Version numbers of MLD run on routers and user hostsl Address of the MLD group that interfaces statically joins

Procedure

Step 1 Configure IPv6 addresses for interfaces on each router and configure a unicast routing protocol.The configuration details are not provided here.

Step 2 Enable IPv6 multicast on each router and IPv6 PIM-SM on each interface of the routers.

# Configurations on Routers A, B, and C are similar to those on Router D and therefore theirconfiguration details are not provided here.

[~RouterD] multicast ipv6 routing-enable[~RouterD] interface pos 1/0/0[~RouterD-Pos1/0/0] pim ipv6 sm[~RouterD-Pos1/0/0] quit[~RouterD] interface pos 2/0/1[~RouterD-Pos2/0/1] pim ipv6 sm[~RouterD-Pos2/0/1] quit[~RouterD] interface pos 2/0/2[~RouterD-Pos2/0/2] pim sm[~RouterD-Pos2/0/2] quit[~RouterD] interface pos 2/0/3[~RouterD-Pos2/0/3] pim ipv6 sm[~RouterD-Pos2/0/3] commit[~RouterD-Pos2/0/3] quit

Step 3 Configure an RP.

# Configure a dynamic RP on Router D.

[~RouterD] pim-ipv6[~RouterD-pim6] c-bsr pos 1/0/0[~RouterD-pim6] c-rp pos 1/0/0[~RouterD-pim6] commit[~RouterD-pim6] quit

Step 4 Enable MLD on the interfaces connected to hosts.

# Configurations on Routers B and C are similar to those on Router A and therefore theirconfiguration details are not provided here.

[~RouterA] interface gigabitethernet 1/0/0[~RouterA-GigabitEthernet1/0/0] mld enable[~RouterA-GigabitEthernet1/0/0] commit[~RouterA-GigabitEthernet1/0/0] quit

Step 5 Configure GE 1/0/0 on the Router A to statically join MLD group FF13::101.[~RouterA] interface gigabitethernet 1/0/0[~RouterA-GigabitEthernet1/0/0] mld static-group ff13::101[~RouterA-GigabitEthernet1/0/0] commit[~RouterA-GigabitEthernet1/0/0] quit

Step 6 Verify the configuration.

# Run the display mld interface command to view brief MLD information on the interfaces ofthe router. For example, MLD information on GE 1/0/0 of Router B is as follows:

<RouterB> display mld interface

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

259

Page 270: Configuration Guide - IP Multicast

GigabitEthernet1/0/0(FE80::200:5EFF:FE66:5100): MLD is enabled Current MLD version is 1 MLD state: up MLD group policy: none Value of query interval for MLD (negotiated): 125 s Value of query interval for MLD (configured): 125 s Value of other querier timeout for MLD: 0 s Value of maximum query response time for MLD: 10 s Querier for MLD: FE80::200:5EFF:FE66:5100 (this router)

The command output shows that Router B is a querier. This is because GE 1/0/0 of Router Bhas the lowest IPv6 address among the interfaces connected to the user network segment.

# Run the display pim ipv6 routing-table command on Router A to check whether GE 1/0/0has joined MLD group FF13::101 statically. If a (*, FF13::101) entry is generated on Router A,the downstream interface is GE 1/0/0, and the protocol type is static, GE 1/0/0 has joined MLDgroup 225.1.1.1 statically. The command output as follows:

<RouterA> display pim ipv6 routing-tableVPN-Instance: public net Total 1 (*, G) entry; 0 (S, G) entry (*, FF13::101) RP: 2000::1 Protocol: pim-sm, Flag: WC UpTime: 00:12:17 Upstream interface: Pos2/0/0 Upstream neighbor: 2001::1 RPF prime neighbor: 2001::1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet1/0/0 Protocol: mld, UpTime: 00:12:17, Expires: -

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast ipv6 routing-enable#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0001.00#interface GigabitEthernet1/0/0 undo shutdown ipv6 enable ipv6 address 3001::10/64 pim ipv6 sm mld enable mld static-group ff13::101 isis ipv6 enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2001::1/64 pim ipv6 sm mld enable isis ipv6 enable 1#return

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

260

Page 271: Configuration Guide - IP Multicast

l Configuration file of Router B#sysname RouterB#multicast ipv6 routing-enable#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0002.00#interface GigabitEthernet1/0/0 undo shutdown ipv6 enable ipv6 address 3002::10/64 pim ipv6 sm mld enable isis ipv6 enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2002::1/64 pim ipv6 sm isis ipv6 enable 1#return

l Configuration file of Router C#sysname RouterC#multicast ipv6 routing-enable#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0003.00#interface GigabitEthernet1/0/0 undo shutdown ipv6 enable ipv6 address 3003::10/64 pim ipv6 sm mld enable isis ipv6 enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2003::1/64 pim ipv6 sm isis ipv6 enable 1#return

l Configuration file of Router D#sysname RouterD#multicast ipv6 routing-enable#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0004.00#interface Pos1/0/0 undo shutdown link-protocol ppp

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

261

Page 272: Configuration Guide - IP Multicast

ipv6 address 2000::1/64 pim ipv6 sm isis ipv6 enable 1#interface Pos2/0/1 undo shutdown link-protocol ppp ipv6 address 2001::2/64 pim ipv6 sm isis ipv6 enable 1#interface Pos2/0/2 undo shutdown link-protocol ppp ipv6 address 2002::2/64 pim ipv6 sm isis ipv6 enable 1#interface Pos2/0/3 undo shutdown link-protocol ppp ipv6 address 2003::2/64 pim ipv6 sm isis ipv6 enable 1#return

7.8.2 Example for Configuring MLD SSM MappingIf user hosts on an IPv6 network run only MLDv1 and cannot be upgraded to MLDv2, SSMmapping is required to implement version compatibility between a multicast device (running ahigher MLD version) and user hosts (running lower MLD versions) and enable the multicastdevice to provide SSM services for the user hosts. The user hosts can then receive IPv6 multicastdata from a specified source.

Networking Requirements

CAUTIONOn a single NE5000E, an interface is numbered in the format of slot number/card number/interface number. On an NE5000E cluster, an interface is numbered in the format of chassis ID/slot number/card number/interface number, and a slot is numbered in the format of chassis ID/slot number.

On the IPv6 multicast network shown in Figure 7-4, PIM-SM is run and the SSM mode isconfigured to provide IPv6 multicast services. MLDv2 is run on the interface connecting therouter to the receiver and MLDv1 is run on the receiver. The MLD version on the receiver isunable to be upgraded to MLDv2.

The SSM group address range is set to FF31::/32 on the current network and Sources 1, 2, and3 all send IPv6 multicast data to multicast groups in this range. The receiver, however, wants toreceive IPv6 multicast data only from Sources 1 and 3.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

262

Page 273: Configuration Guide - IP Multicast

Figure 7-4 Networking diagram for configuring MLD SSM mapping

GE1/0/0

Source2

Source1

Receiver

PIM-SM

RouterB

RouterD

RouterC

RouterA

Source3

GE1/0/0GE2/0/0

GE2/0/0

GE3/0/0

GE3/0/0

GE1/0/0GE2/0/0

GE3/0/0

GE2/0/0

GE1/0/0GE3/0/0

Leaf networkLeaf network

Leaf network

DSLAM

Device Interface IP Address Device Interface IP AddressRouter A GE 1/0/0 2001::2/64 Router C GE 1/0/0 2003::2/64

GE 2/0/0 3001::1/64 GE 2/0/0 3004::1/64GE 3/0/0 3003::1/64 GE 3/0/0 3002::2/64

Router B GE 1/0/0 2002::2/64 Router D GE 1/0/0 2004::2/64GE 2/0/0 3001::2/64 GE 2/0/0 3004::2/64GE 3/0/0 3002::1/64 GE 3/0/0 3003::2/64

Precautions

When configuring MLD SSM mapping, note the following points:

l IPv6 PIM-SM and then MLD must be enabled on the interfaces connected to hosts.l The SSM group address ranges set on all routers in the IPv6 PIM-SM domain must be

consistent.l The SSM source/group address mapping entries configured on the interface take effect only

after SSM mapping is enabled on the interface.

Configuration Roadmap

SSM mapping is configured on the router directly connected to user hosts to enable the routerto be compatible with hosts running a lower protocol version, thus providing SSM services. Theconfiguration roadmap is as follows:

1. Configure IPv6 addresses for interfaces on each router and configure a unicast routingprotocol.

2. Enable IPv6 multicast routing on all routers providing IPv6 multicast services.3. Enable IPv6 PIM-SM on all interfaces of the multicast routers.4. Enable MLD and SSM mapping on the interface connecting the router to the receiver.5. Set SSM group address ranges on all routers in the IPv6 PIM-SM domain.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

263

Page 274: Configuration Guide - IP Multicast

6. Configure SSM mapping rules on the router connected to the receiver.

Data PreparationTo complete the configuration, you need the following data.

l SSM group address rangel IPv6 addresses of Sources 1 and 3

Procedure

Step 1 Configure IPv6 addresses for interfaces on each router and configure a unicast routing protocol.The configuration details are not provided here.

Step 2 Enable IPv6 multicast on each router and IPv6 PIM-SM on each interface of the routers.

# Configurations on Routers A, B, and C are similar to those on Router D and therefore theirconfiguration details are not provided here.

[~RouterD] multicast ipv6 routing-enable[~RouterD] interface gigabitethernet 1/0/0[~RouterD-GigabitEthernet1/0/0] pim ipv6 sm[~RouterD-GigabitEthernet1/0/0] quit[~RouterD] interface gigabitethernet 2/0/0[~RouterD-GigabitEthernet2/0/0] pim ipv6 sm[~RouterD-GigabitEthernet2/0/0] quit[~RouterD] interface gigabitethernet 3/0/0[~RouterD-GigabitEthernet3/0/0] pim ipv6 sm[~RouterD-GigabitEthernet3/0/0] commit[~RouterD-GigabitEthernet3/0/0] quit

Step 3 Enable MLD and SSM mapping on the interface connecting the router to the receiver.

# Enable MLD and SSM mapping on GE 1/0/0 of Router D.

[~RouterD] interface gigabitethernet 1/0/0[~RouterD-GigabitEthernet1/0/0] mld enable[~RouterD-GigabitEthernet1/0/0] mld version 2[~RouterD-GigabitEthernet1/0/0] mld ssm-mapping enable[~RouterD-GigabitEthernet1/0/0] commit[~RouterD-GigabitEthernet1/0/0] quit

Step 4 Set SSM group address ranges.

# Set SSM group address ranges to FF31::/32 on all routers in the IPv6 PIM-SM domain. Theconfigurations of Routers B, C, and D are similar to those on Router A. Their configurationdetails are not provided here.

[~RouterA] acl ipv6 number 2000[~RouterA-acl6-basic-2000] rule permit source ff31::/32[~RouterA-acl6-basic-2000] quit[~RouterA] pim-ipv6[~RouterA-pim6] ssm-policy 2000[~RouterA-pim6] commit[~RouterA-pim6] quit

Step 5 Configure SSM mapping rules on the router connected to the receiver.

# On Router D, map the multicast groups in the range of FF31::/32 to Sources 1 and 3.

[~RouterD] mld[~RouterD-mld] ssm-mapping ff31:: 32 2001::1[~RouterD-mld] ssm-mapping ff31:: 32 2003::1[~RouterD-mld] commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

264

Page 275: Configuration Guide - IP Multicast

[~RouterD-mld] quit

Step 6 Verify the configuration.

# View information about SSM mapping rules on Router D.

<RouterD> display mld ssm-mapping groupMLD SSM-Mapping conversion table of VPN-Instance: public net Total 2 entries 2 entries matched

00001. (2001::1, FF31::)

00002. (2003::1, FF31::)

Total 2 entries matched

# The command output shows that the receiver joins group FF31::1. Then run the display mldgroup ssm-mapping command to view source/group information on router D. The commandoutput is as follows:

<RouterD> display mld group ssm-mappingMLD SSM mapping interface group report information of VPN-Instance: public net GigabitEthernet1/0/0 (2004::2): Total 1 MLD SSM-Mapping Group reported Group Address Last Reporter Uptime Expires FF31::1 2004::1 00:01:44 00:00:26<RouterD> display mld group ssm-mapping verboseTotal entry on this router: 1Interface group report information of VPN-Instance: public net GigabitEthernet1/0/0(FE80::DD:84): Total entry on this interface: 1 Total 1 MLD SSM-Mapping Group reported Group: FF31::1 Uptime: 00:00:13 Expires: 00:04:07 Last reporter: FE80::10 Last-listener-query-counter: 0 Last-listener-query-timer-expiry: off Group mode: exclude Version1-host-present-timer-expiry: 00:04:07

# Run the display pim ipv6 routing-table command to view information about the IPv6 PIM-SM routing table on Router D. The command output is as follows:

<RouterD> display pim ipv6 routing-tableVPN-Instance: public net Total 0 (*, G) entry; 2 (S, G) entries (2001::1, FF31::1) Protocol: pim-ssm, Flag:SG_RCVR UpTime: 00:11:25 Upstream interface: GigabitEthernet3/0/0 Upstream neighbor: 3003::1 RPF prime neighbor: 3003::1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet1/0/0 Protocol: mld, UpTime: 00:11:25, Expires:- (2003::1, FF31::1) Protocol: pim-ssm, Flag:SG_RCVR UpTime: 00:11:25 Upstream interface: GigabitEthernet2/0/0 Upstream neighbor: 3004::1 RPF prime neighbor: 3004::1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet1/0/0 Protocol: mld, UpTime: 00:11:25, Expires:-

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

265

Page 276: Configuration Guide - IP Multicast

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast ipv6 routing-enable#acl ipv6 number 2000 rule permit source ff31::/32#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0001.00#interface GigabitEthernet1/0/0 undo shutdown ipv6 enable ipv6 address 2001::2/64 pim ipv6 sm isis ipv6 enable 1#interface GigabitEthernet2/0/0 undo shutdown ipv6 enable ipv6 address 3001::1/64 pim ipv6 sm isis ipv6 enable 1#interface GigabitEthernet3/0/0 undo shutdown ipv6 enable ipv6 address 3003::1/64 pim ipv6 sm isis ipv6 enable 1#pim-ipv6 ssm-policy 2000#return

l Configuration file of Router B#sysname RouterB#multicast ipv6 routing-enable#acl ipv6 number 2000 rule permit source ff31::/32#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0002.00#interface GigabitEthernet1/0/0 undo shutdown ipv6 enable ipv6 address 2002::2/64 pim ipv6 sm isis ipv6 enable 1#interface GigabitEthernet2/0/0 undo shutdown ipv6 enable ipv6 address 3001::2 pim ipv6 sm isis ipv6 enable 1#interface GigabitEthernet3/0/0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

266

Page 277: Configuration Guide - IP Multicast

undo shutdown ipv6 enable ipv6 address 3002::1/64 pim ipv6 sm isis ipv6 enable 1#pim-ipv6 ssm-policy 2000#return

l Configuration file of Router C#sysname RouterC#multicast ipv6 routing-enable#acl ipv6 number 2000 rule permit source ff31::/32#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0003.00#interface GigabitEthernet1/0/0 undo shutdown ipv6 enable ipv6 address 2003::2/64 pim ipv6 sm isis ipv6 enable 1#interface GigabitEthernet2/0/0 undo shutdown ipv6 enable ipv6 address 3004::1/64 pim ipv6 sm isis ipv6 enable 1#interface GigabitEthernet3/0/0 undo shutdown ipv6 enable ipv6 address 3002::2/64 pim ipv6 sm isis ipv6 enable 1#pim-ipv6 ssm-policy 2000#return

l Configuration file of Router D#sysname RouterD#multicast ipv6 routing-enable#acl ipv6 number 2000 rule permit source ff31::/32#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0004.00#interface GigabitEthernet1/0/0 undo shutdown ipv6 enable ipv6 address 2004::2/64 pim ipv6 sm mld enable mld version 2

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

267

Page 278: Configuration Guide - IP Multicast

mld ssm-mapping enable isis ipv6 enable 1#interface GigabitEthernet2/0/0 undo shutdown ipv6 enable ipv6 address 3004::2/64 pim ipv6 sm isis ipv6 enable 1#interface GigabitEthernet3/0/0 undo shutdown ipv6 enable ipv6 address 3003::2/64 pim ipv6 sm isis ipv6 enable 1#mld ssm-mapping ff31:: 32 2001::1 ssm-mapping ff31:: 32 2003::1#pim-ipv6 ssm-policy 2000#return

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 7 MLD Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

268

Page 279: Configuration Guide - IP Multicast

8 IPv6 PIM Configuration

About This Chapter

IPv6 PIM is used to advertise IPv6 multicast routes and forward data in an AS.

8.1 IPv6 PIM OverviewIPv6 Protocol Independent Multicast (PIM) is an intra-domain multicast routing protocol. It usesexisting IPv6 unicast routing information to perform a Reverse Path Forwarding (RPF) checkon IPv6 multicast packets and to create IPv6 multicast routing entries. PIM can also responddynamically to network topology changes and maintain IPv6 multicast forwarding tables.

8.2 IPv6 PIM Features Supported by the NE5000EThe NE5000E supports PIM-SM and PIM-SSM. Default parameter values allow a device tofunction properly. Users can improve security on IPv6 PIM networks by adjusting controlparameters for neighbor relationships and for multicast forwarding, and by configuring variousfiltering policies.

8.3 Configuring IPv6 PIM-SMAny sender on a PIM-SM network can be a multicast source. Therefore, receivers do not knowthe location of the multicast source on the PIM-SM network in advance. An RP is the forwardingcore on a PIM-SM network. It collects information about group members and multicast sources.There are static RPs and BSR RPs.

8.4 Configuring a BSR Boundary (IPv6)Before configuring IPv6 PIM-SM inter-domain multicast, configure BSR boundaries to dividea multicast network into PIM-SM domains. Each BSR serves only the local PIM-SM domain.The routers outside the BSR boundary of a PIM-SM domain do not take part in BSR messagesforwarding in the PIM-SM domain.

8.5 Adjusting Dynamic RP Parameters (IPv6)When a dynamic RP is used on a network, parameters of C-RPs and C-BSRs on the networkcan be adjusted as needed.

8.6 Configuring IPv6 PIM-SSMPIM-SSM enables a user to specify a multicast source that will send data to a desired group.PIM-SSM is implemented based on some PIM-SM technologies. In PIM-SSM, no RP needs tobe maintained and a dedicated multicast forwarding path is set up between a receiver and aspecified multicast source.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

269

Page 280: Configuration Guide - IP Multicast

8.7 Adjusting Other IPv6 PIM ParametersYou can adjust the control parameters for maintaining neighbor relationships, DR parameters,and control parameters for forwarding as needed.

8.8 Maintaining IPv6 PIMMaintaining IPv6 PIM includes resetting statistics about IPv6 PIM control messages, monitoringthe operating status of IPv6 PIM, and debugging IPv6 PIM.

8.9 Configuration ExamplesThis section provides several IPv6 PIM configuration examples showing how to build up a basicIPv6 PIM network and how to configure basic IPv6 PIM functions.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

270

Page 281: Configuration Guide - IP Multicast

8.1 IPv6 PIM OverviewIPv6 Protocol Independent Multicast (PIM) is an intra-domain multicast routing protocol. It usesexisting IPv6 unicast routing information to perform a Reverse Path Forwarding (RPF) checkon IPv6 multicast packets and to create IPv6 multicast routing entries. PIM can also responddynamically to network topology changes and maintain IPv6 multicast forwarding tables.

IPv6 PIM is independent of any specific unicast routing protocol. It can leverage whicheverunicast routing protocols are used to populate the unicast routing table. These unicast routingprotocols include IPv6 static routes, Routing Information Protocol next generation (RIPng),Open Shortest Path First Version 3 (OSPFv3), Intermediate System-Intermediate System forIPv6 (IS-ISv6), or Border Gateway Protocol (BGP4+). It uses unicast routing information toimplement the multicast forwarding function.

PIM forwards multicast packets by means of the RPF mechanism. The RPF mechanism usesexisting unicast routing information to set up a multicast distribution tree (MDT) on a network.When a multicast packet reaches the router, the router first performs an RPF check on it.

l If the multicast packet passes the RPF check, the router creates a multicast routing entry,and then forwards the multicast packet based on the entry.

l If the multicast packet fails the RPF check, the router discards it.

NOTE

Information in this chapter concerns PIM configurations on an IPv6 network only. Unless otherwise noted,the term PIM refers to IPv6 PIM.

PIM ModePIM has three modes: Protocol Independent Multicast-Sparse Mode (PIM-SM), ProtocolIndependent Multicast Source-Specific Multicast (PIM-SSM), and Protocol IndependentMulticast-Dense Mode (PIM-DM). PIM-SM and PIM-DM use group addresses in the ASMgroup address range, whereas PIM-SSM uses group addresses in the SSM group address range.

l PIM-SMPIM-SM is for use on a large-scale network where multicast group members are sparselydistributed. Working mechanisms of PIM-SM include neighbor discovery, Assert,Designated Router (DR) election, Rendezvous Point (RP) discovery, Join, Prune, Register,and Shortest Path Tree (SPT) switchover.

l PIM-SSMUsers on a PIM-SSM network know the location of a multicast source in advance. Whenjoining a multicast group, a user can specify the source that sends data to the multicastgroup. PIM-SSM makes use of some PIM-SM technologies. PIM-SSM does not need tomaintain an RP, construct an RP Tree (RPT), or register a multicast source. In PIM-SSM,an SPT can be built directly between the source's DR and the receiver's DR.

l PIM-DMPIM-DM is for use on a small-scale network where multicast group members are denselydistributed. Working mechanisms of PIM-DM include neighbor discovery, flooding,Prune, Graft, Assert, and State-Refresh.

NOTE

Currently, the NE5000E supports IPv6 PIM-SM and PIM-SSM.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

271

Page 282: Configuration Guide - IP Multicast

8.2 IPv6 PIM Features Supported by the NE5000EThe NE5000E supports PIM-SM and PIM-SSM. Default parameter values allow a device tofunction properly. Users can improve security on IPv6 PIM networks by adjusting controlparameters for neighbor relationships and for multicast forwarding, and by configuring variousfiltering policies.

PIM-SMl Embedded-RP

An embedded RP embeds its address inside an IPv6 group address. After obtaining an IPv6group address, the router can obtain the RP address to which the IPv6 group addresscorresponds. Embedded RPs are preferred to RPs discovered by other RP electionmechanisms.

l Static RPIf a static RP is used in a PIM-SM domain, the static RP configurations on all routers inthe PIM-SM domain must be the same. If a BSR RP and a static RP exist in a domain, theBSR RP takes precedence over the static RP. You can configure the static RP to havepriority over the BSR RP.

l BSR RPAfter Candidate RPs (C-RPs) and Candidate BSRs (C-BSRs) are configured on severalrouters in a PIM-SM domain, a BSR will be elected from the C-BSRs by using definedrules. This BSR collects C-RP information to elect an RP from the C-RPs.

l BSR boundaryConfiguring a BSR boundary on an interface of the router limits the transmission of BSRmessages, thus dividing a network into PIM-SM domains.

l Adjusting C-RP parameters and C-BSR parametersYou can adjust the following C-RP parameters:

– C-RP priority level used for an RP election

– Interval at which a C-RP sends Advertisement messages

– Period during which a BSR keeps an Advertisement message received from a C-RP

– Ranges defined by an IPv6 ACL of valid C-RP addresses and groups that these C-RPsserve

You can adjust the following C-BSR parameters:

– Hash mask length of a C-BSR, used for RP calculations

– C-BSR priority level used for a BSR election

– Interval at which a C-BSR sends Bootstrap messages

– Period during which a C-BSR keeps Bootstrap messages received from a BSR

– Range of valid BSR addresses defined by an IPv6 ACLl Adjusting control parameters for source registration

You can adjust the following control parameters for source registration:

– Rules used by an IPv6 ACL for filtering Register messages

– Method for calculating the checksum of a Register message

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

272

Page 283: Configuration Guide - IP Multicast

– Period during which source registration is suppressed– Interval at which null Register messages are sent

l Configuring the conditions that trigger an SPT switchoverYou can configure the conditions that trigger an SPT switchover, and adjust the intervalfor detecting multicast data forwarding rates.

PIM-SSMPIM-SSM allows hosts to specify a multicast source from which they expect to receive multicastdata when they join multicast groups. You can set a range of SSM group addresses as needed.

Source Address-based FilteringYou can use an IPv6 ACL to specify a range of valid multicast source addresses.

Adjusting Control Parameters for Maintaining Neighbor RelationshipsYou can adjust the following control parameters for maintaining PIM neighbor relationships:

l Interval for sending Hello messagesl Period for maintaining the status of a neighbor as reachable.l Whether or not to accept Hello messages containing the generation ID optionl DR election priority levell Whether or not to enable the neighbor filtering function

Adjusting Control Parameters for ForwardingYou can adjust the following control parameters for forwarding:l Interval for sending Join messagesl Period for maintaining the forwarding status of a downstream interfacel Interval for overriding a prune actionl Period for maintaining the Assert status of an interfacel Rules for filtering Join/Prune messages

PIM NSRPIM supports non-stop routing (NSR). After this function is enabled, if the control plane of adevice fails and a standby control plane is available, the device immediately implements activestandby switchover and restores services. The control planes of the device's neighbors do notsense this active/standby switchover. During the active/standby switchover of the control planes,the device can process new services, such as new Join messages.

For details about NSR, refer to the HUAWEI NetEngine5000E Feature Description -Reliability.

PIM in Distributed ModeThe PIM module has a core component responsible for calculating and maintaining routingentries. One main control board can start multiple core components. The core componentconsiders all multicast group addresses as a set and divides the set into several subsets based on

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

273

Page 284: Configuration Guide - IP Multicast

the hash result of multicast group addresses. Each core component bears one or more subsets.The system automatically allocates the services to be carried by each subset. By distributingmulticast services among these subsets, CPU and memory usage are reduced.

8.3 Configuring IPv6 PIM-SMAny sender on a PIM-SM network can be a multicast source. Therefore, receivers do not knowthe location of the multicast source on the PIM-SM network in advance. An RP is the forwardingcore on a PIM-SM network. It collects information about group members and multicast sources.There are static RPs and BSR RPs.

Applicable Environment

PIM-SM is for use on large-scale networks where group members are sparsely distributed andreceivers do not need to specify a multicast source when joining a multicast group. An RP is theforwarding core on a PIM-SM network. It collects information about group members andmulticast sources.

l After creating a (*, G) entry for a new IGMP member relationship, the receiver's DR sendsa Join/Prune message to the RP.

l When a multicast source starts to send data to a group, the source's DR unicasts a Registermessage to the RP. The RP de-encapsulates the Register message and forwards the data toother multicast members along the RPT.

l RP switches traffic from the RPT to the SPT, then the RP sends a Register-Stop messageto the source's DR.

On an IPv6 network, PIM-SM supports the following types of RPs:

l Embedded-RP

By default, an embedded-RP is started. The range of groups served by an embedded-RP islimited. To avoid inconsistent RP election results, PIM-SM stipulates that an embeddedRP is preferred to RPs discovered by other RP election mechanisms.

l Static RP

A static RP needs to be configured on every router in a PIM-SM domain. A static RP is foruse on small-scale PIM networks with stable topology. On a large-scale PIM network,configuring a static RP is complex. A static RP is usually used as a backup for a dynamicRP. This enhances the robustness and increases the operation and management capabilitiesof multicast networks.

l BSR RP

After C-RPs and C-BSRs are configured on several routers in a PIM-SM domain, an RPcan be elected among the C-RPs. Each router in the PIM-SM domain knows the locationof the RP.

It is possible for a multicast group to be within the service range of an embedded-RP, a BSRRP, and a static RP simultaneously. The default sequence used by routers to select an RP forsuch groups is embedded-RP > BSR RP > static RP.

Compared with a scheme in which all groups correspond to a single RP, a scheme in whichdifferent multicast groups correspond to different RPs reduces the load on individual RPs,making the network more robust.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

274

Page 285: Configuration Guide - IP Multicast

Pre-configuration Tasks

Before configuring IPv6 PIM-SM, complete the following task:

l Configure an IPv6 unicast routing protocol to ensure that IPv6 unicast routes are reachableon the network

Configuration Procedures

Figure 8-1 Flowchart for configuring IPv6 PIM-SM

Use a Embedded-RP

Enable IPv6multicast routing

Enable IPv6 PIM-SM

Configure a embedded-RP

Configure a BSR RP

Adjust source registrationparameters

Set a multicast sourceaddress range

Configure a static RP

Configure SPT switchoverconditions

Use a static RP

Enable IPv6multicast routing

Enable IPv6 PIM-SM

Configure a static RP

Configure a BSR RP

Adjust source registrationparameters

Set a multicast sourceaddress range

Use a BSR RP

Enable IPv6multicast routing

Enable IPv6 PIM-SM

Configure a BSR RP

Configure a static RP

Adjust source registrationparameters

Set a multicast sourceaddress range

Configure SPT switchoverconditions

Configure SPT switchoverconditions

MandatoryprocedureOptional

procedure

8.3.1 Enabling IPv6 Multicast RoutingBefore configuring IPv6 multicast features in a router, enable IPv6 multicast routing on therouter.

Procedure

Step 1 Run:system-view

The system view is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

275

Page 286: Configuration Guide - IP Multicast

Step 2 Run:multicast ipv6 routing-enable

IPv6 multicast routing is enabled.

CAUTIONRunning the undo multicast ipv6 routing-enable command clears all IPv6 multicastconfigurations and interrupts running IPv6 multicast services. To restore the IPv6 multicastservices, you need to run the IPv6 multicast commands that have been deleted.

Step 3 Run:commit

The configuration is committed.

----End

8.3.2 Enabling IPv6 PIM-SMAfter IPv6 PIM-SM is enabled on the interface connected to other routers, the interface canestablish IPv6 PIM neighbor relationships with the routers.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The interface view is displayed.

Step 3 Run:pim ipv6 sm

IPv6 PIM-SM is enabled.

CAUTIONRunning the undo pim ipv6 sm command clears the IPv6 PIM neighbors of an interface. If theinterface is running IPv6 multicast services, running the command will interrupt the services onthe interface.

Step 4 Run:commit

The configuration is committed.

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

276

Page 287: Configuration Guide - IP Multicast

8.3.3 Configuring an Embedded-RPBy default, the embedded-RP function is enabled. You can use related commands to change therange of IPv6 multicast groups that an embedded RP serves or disable the embedded-RPfunction.

ContextThe embedded-RP function can be applied in an IPv6 PIM-SM domain and among PIM-SMdomains. It solves the problem that IPv6 PIM-SM domains cannot learn RP information fromeach other because MSDP does not support IPv6 networks.

To avoid inconsistent results of RP elections, PIM-SM defines that an RP obtained by using theembedded-RP function takes precedence over other RPs elected by using other mechanisms.The range of IPv6 groups that an embedded RP serves is FF70::/12. You can change the rangeof IPv6 multicast groups that an embedded RP serves.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim-ipv6

The IPv6 PIM view is displayed.

Step 3 Run:embedded-rp [ basic-acl6-number | acl6-name acl6-name ]

The range of IPv6 groups that an embedded-RP serves is set.

If the group range defined by an IPv6 ACL is greater than the default range of groups that anembedded RP serves, the embedded-RP is valid for the intersection part of the two addressranges.

The same range of groups that an embedded-RP serves must be set on all routers in an IPv6PIM-SM domain.

NOTE

You can run the undo embedded-rp command to disable the embedded-RP function.

Step 4 Run:commit

The configuration is committed.

----End

8.3.4 Configuring a Static RPConfiguring a static RP means manually specifying the location of an RP and range of groupsthat the RP serves. The same static RP must be configured on all routers in an IPv6 PIM-SMdomain.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

277

Page 288: Configuration Guide - IP Multicast

ContextThe routers that are not configured with static RPs do not forward multicast packets in the localIPv6 PIM-SM domain.

If an IPv6 PIM-SM network is divided into multiple IPv6 PIM-SM domains and each IPv6 PIM-SM domain uses a static RP, the same static RP must be configured on all routers in the IPv6PIM-SM domain to demarcate the range of the domain.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim-ipv6

The IPv6 PIM view is displayed.

Step 3 Run:static-rp rp-address [ basic-acl6-number | acl6-name acl6-name ] [ preferred ]

A static RP is configured.

Multiple static RPs can be configured for the router by using this command repeatedly, but anIPv6 ACL cannot correspond to multiple static RPs. If no IPv6 ACL is referenced, only onestatic RP can be configured.

l rp-address specifies the address of a static RP.l basic-acl6-number | acl6-name acl6-name specifies the number of a basic IPv6 ACL. This

basic IPv6 ACL defines the range of IPv6 groups served by a static RP. When the IPv6multicast group ranges to which multiple static RPs correspond overlap, the static RP withthe highest IPv6 address serves IPv6 multicast groups.

l preferred indicates that a static RP is preferred. If a BSR RP and a static RP exist on anetwork, after preferred is set, the routers on the network prefer the static RP. Otherwise,the routers prefer the BSR RP.

Step 4 Run:commit

The configuration is committed.

----End

8.3.5 Configuring a BSR RPAfter several routers are configured as C-BSRs and C-RPs, a BSR is elected among the C-BSRs.The BSR collects information about the C-RPs and summarizes it into an RP-set. Then, the BSRencapsulates the RP-set in Bootstrap messages, and sends the messages to all devices in the PIMdomain. The devices elect an RP based on certain rules.

ContextWhen an IPv6 PIM-SM network is divided into multiple IPv6 PIM-SM domains and a dynamicRP is used, perform the task of Configuring a BSR Boundary on the interface of the router at

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

278

Page 289: Configuration Guide - IP Multicast

the edge of each IPv6 PIM-SM domain to demarcate the range of the domain, and then configureC-BSRs and C-RPs in each IPv6 PIM-SM domain.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim-ipv6

The IPv6 PIM view is displayed.

Step 3 Run:c-bsr ipv6-address [ hash-length ]

A C-BSR is configured.

l ipv6-address specifies the IPv6 address of the interface where a C-BSR resides. The interfacemust be enabled with IPv6 PIM-SM.

l hash-length specifies the hash mask length.Based on the group address G, C-RP address, and the value of hash-length, routers use hashfunctions to calculate the C-RPs that have the same priority and want to serve G, and thencompare the calculation results. The C-RP that has the greatest calculated value acts as theRP that serves G.

Step 4 Run:c-rp ipv6-address [ group-policy { basic-acl6-number | acl6-name acl6-name } | priority priority | holdtime hold-interval | advertisement-interval adv-interval ] *

A C-RP is configured.

l ipv6-address specifies the IPv6 address of the interface where a C-RP resides. The interfacemust be enabled with IPv6 PIM-SM.

l group-policy { basic-acl6-number | acl6-name acl6-name } indicates that a C-RP servesonly IPv6 multicast groups within the IPv6 multicast group range defined by a specified IPv6ACL. By default, a C-RP serves all IPv6 multicast groups.

l priority priority specifies the priority of a C-RP. The greater the priority value, the lowerthe priority.An RP is elected based on the following rules:– The C-RP that has the highest priority wins.– In case of the same priority, hash functions are operated. The C-RP that has the greatest

calculated value wins.– In the case of the same calculated value, the C-RP that has the highest IPv6 address wins.

l holdtime hold-interval: specifies the timeout period during which the BSR waits to receiveAdvertisement message from a C-RP.

l advertisement-interval adv-interval specifies the interval at which a C-RP sendsAdvertisement messages.

Step 5 Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

279

Page 290: Configuration Guide - IP Multicast

The configuration is committed.

----End

8.3.6 (Optional) Limiting the Range of Multicast Source AddressesAfter being configured with an IPv6 source address-based filtering policy by using an IPv6 ACL,the IPv6 PIM router forwards only the multicast packets with source addresses or source/groupaddresses being in the range defined by the IPv6 ACL.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim-ipv6

The IPv6 PIM view is displayed.

Step 3 Run:source-policy { acl6-number | acl6-name acl6-name }

The range of multicast source addresses is limited.

l If a basic IPv6 ACL is used, only the multicast data packets with source addresses being inthe range permitted by the IPv6 ACL can be forwarded.

l If an advanced IPv6 ACL is used, only the multicast data packets with source addresses andgroup addresses being in the ranges permitted by the IPv6 ACL can be forwarded.

l If the specified IPv6 ACL does not exist, no multicast packets can be forwarded.

NOTE

The source-policy command cannot be used to filter static (S, G) entries.

Step 4 Run:commit

The configuration is committed.

----End

8.3.7 (Optional) Adjusting Control Parameters for SourceRegistration

A new multicast source must register with an RP. The policy for filtering Register messages isset on C-RPs, and the period for keeping the register suppression state and the interval for sendingnull Register messages are set on the source's DR.

ContextOn an IPv6 PIM-SM network, the source's DR encapsulates received IPv6 multicast data in aRegister message and then unicasts the Register message to the RP. After receiving the Registermessage, the RP decapsulates it, and then forwards the IPv6 multicast data to receivers along

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

280

Page 291: Configuration Guide - IP Multicast

the RPT. To avoid attacks of invalid Register messages, the RP accepts or denies the Registermessages matching the configured filtering policy.

After the RP completes the SPT switchover, the IPv6 multicast data reaches the RP along thesource tress in the multicast mode. Then, the RP sends a Register-Stop message to the source'sDR. After receiving the message, the source's DR stops sending Register messages and entersthe suppression state. In the register suppression period, the DR periodically sends Probemessages (null Register messages) to notify the RP that the multicast source is still in the activestate. After the register suppression period expires, the DR resends the Register messagescarrying multicast data.

Default parameter values allow the router to function properly. The NE5000E allows users toadjust related parameters as required.

NOTE

If there is no special requirement, default values are recommended.

Procedurel Control the receiving of Register messages on a C-RP.

1. Run:system-view

The system view is displayed.2. Run: pim-ipv6 The IPv6 PIM view is displayed.

3. Run:register-policy { advanced-acl6-number | acl6-name acl6-name }

The policy for filtering Register messages is configured.

– If the (S, G) information contained in a Register message is denied by an IPv6ACL or no action is defined in the IPv6 ACL for processing the Register messagecontaining such (S, G) information, the RP discards this Register message and therelevant multicast source cannot be registered with the RP.

– If the specified IPv6 ACL does not exist, the RP denies all Register messages, andno multicast source can register with the RP.

4. Run:commit

The configuration is committed.l Suppress multicast source registration on the source's DR.

1. Run:system-view

The system view is displayed.2. Run:

pim-ipv6

The IPv6 PIM view is displayed.3. Run:

register-suppression-timeout interval

The timeout period during which the source's DR keeps the register suppression stateis set.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

281

Page 292: Configuration Guide - IP Multicast

By default, the source's DR keeps the register suppression state for 60s.

– If the value of interval is small, the RP frequently receives burst multicast data.– If the value of interval is large, when an (S, G) entry on the RP times out, the delay

during which new receivers join a multicast group is prolonged.4. Run:

probe-interval interval

The interval for sending Probe messages is set.

By default, the source's DR sends Probe messages to the RP at an interval of 5s.5. Run:

commit

The configuration is committed.

----End

8.3.8 (Optional) Configuring SPT Switchover ConditionsPIM-SM enables an RP or a receiver's DR to trigger an SPT switchover when the rate of IPv6multicast packets is high. The SPT switchover conditions and the interval for checking the rateat which IPv6 multicast data is forwarded can be configured on the receiver's DR.

ContextDuring the forwarding of IPv6 multicast packets in a PIM-SM domain, only one RPT is set foreach multicast group. All multicast sources encapsulate multicast data in Register messages, andthen unicast the Register messages to the RP. After receiving the Register messages, the RPdecapsulates them and then forwards multicast data along the RPT to group members.

Forwarding IPv6 multicast data by using an RPT has the following disadvantages:

l The source's DR and the RP need to frequently encapsulate and decapsulate packets.l The forwarding path may not be the shortest path from the source to receivers.l Heavy IPv6 multicast traffic increases the load of the RP, which easily causes a fault.

The solutions to the preceding disadvantages are as follows:

l SPT switchover triggered by the RPThe RP sends a Join message to the source to create an IPv6 multicast route along theshortest path from the source's DR to the RP to build an MDT. Then, subsequent packetsare forwarded along the MDT.

l SPT switchover triggered by the receiver's DRThe receiver's DR checks the forwarding rate of IPv6 multicast data. If the receiver's DRfinds that the rate exceeds the threshold, it triggers the SPT switchover immediately. Thereceiver's DR sends a Join message to the source to set up an IPv6 multicast route alongthe shortest path from the source's DR to the receiver's DR. Subsequent IPv6 multicastpackets are forwarded along the path.

By default, the RP triggers the SPT switchover immediately after receiving the first Registermessage, and the receiver's DR triggers the SPT switchover immediately after receiving the firstIPv6 multicast data packet. Default parameter values allow the router to function properly. TheNE5000E allows users to adjust related SPT switchover parameters as needed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

282

Page 293: Configuration Guide - IP Multicast

NOTE

If there is no special requirement, default values are recommended.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim-ipv6

The IPv6 PIM view is displayed.

Step 3 Run:spt-switch-threshold { traffic-rate | infinity } [ group-policy { basic-acl6-number |acl6-name acl6-name } [ order order-value ] ]

SPT switchover conditions are configured.

NOTE

This command takes effect on all routers that may become the receiver's DR, but does not take effect onthe RP.

l traffic-rate specifies the threshold for the rate of IPv6 multicast data. When the rate of IPv6multicast data exceeds the threshold, the receiver's DR triggers the SPT switchover.

NOTE

The configuration in Step 4 makes sense only after traffic-rate is set.

l infinity indicates that the receiver's DR never triggers the SPT switchover. IPv6 multicastdata can be transmitted to receivers only along the RPT.

l group-policy { basic-acl6-number | acl6-name acl6-name } is used to set the range ofmulticast groups to which the threshold is applied. By default, the threshold is applicable toall multicast groups.

l order order-value is used to adjust the order of the IPv6 ACLs in the group-policy list. If agroup matches multiple IPv6 ACLs, the threshold is selected in the order specified by order-value.

Step 4 (Optional) Run:timer spt-switch interval

The interval at which the receiver's DR checks the rate for forwarding IPv6 multicast data is set.

Step 5 Run:commit

The configuration is committed.

----End

8.3.9 Checking the ConfigurationAfter IPv6 PIM-SM is configured successfully, you can use related commands to check whetherthe BSR, RP, PIM interface, PIM neighbor, and PIM routing table are correctly configured.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

283

Page 294: Configuration Guide - IP Multicast

PrerequisiteThe IPv6 PIM-SM configurations are complete.

Procedurel Run the display pim ipv6 bsr-info command to check information about the BSR in an

IPv6 PIM-SM domain.l Run the display pim ipv6 interface [ interface-type interface-number ] [ verbose ]

command to check information about IPv6 PIM interfaces.l Run the display pim ipv6 neighbor [ ipv6-link-local-address | interface interface-type

interface-number | verbose ] * command to check information about IPv6 PIM neighbors.l Run the display pim ipv6 routing-table [ group-address [ mask { group-mask-length |

group-mask } ] ] [ source-address [ mask { source-mask-length | source-mask } ] ][ outgoing-interface include { interface-type interface-number | register | none } ][ fsm ] command to check information about an IPv6 PIM routing table.

l Run the display pim ipv6 rp-info [ ipv6-group-address ] command to check informationabout the RP in an IPv6 PIM-SM domain.

----End

ExampleRun the display pim ipv6 bsr-info command. If Elected BSR Address displays the address ofthe current BSR in the PIM-SM domain, Candidate BSR Address displays the address of theC-BSR configured on the router, and State displays Elected, it means that the C-BSR is electedas the BSR. For example:

<HUAWEI> display pim ipv6 bsr-infoVPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 2004::2 Priority: 0 Hash mask length: 64 State: Elected Uptime: 00:00:07 Next BSR message scheduled at: 00:00:53 C-RP Count: 0 Candidate AdminScope BSR Count: 0 Candidate BSR Address: 2004::2 Priority: 0 Hash mask length: 64 State: Elected Wait to be BSR: 0

Run the display pim ipv6 interface command. You can view the number of PIM neighbors oneach interface and see that the PIM status on each interface is Up. For example:

<HUAWEI> display pim ipv6 interfaceVPN-Instance: public net Interface State NbrCnt HelloInt DR-Pri DR-Address Eth3/0/1 up 1 30 1 FE80:1::3456

Run the display pim ipv6 neighbor command. You can view the number of PIM neighbors,address of each neighbor, and interfaces where PIM neighbor relationships are set up. Forexample:

<HUAWEI> display pim ipv6 neighbor VPN-Instance: public net Total Number of Neighbors = 1

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

284

Page 295: Configuration Guide - IP Multicast

Neighbor Interface Uptime Expires Dr-Priority BFD-Session FE80:1::3456 Eth3/0/1 00:01:08 never 1 N

Run the display pim ipv6 routing-table command. You can view information about PIMentries, such as the source address, group address, RP, upstream interface, and downstreaminterface list. For example:

<HUAWEI> display pim ipv6 routing-tableVPN-Instance: public net Total 0 (*, G) entry; 2 (S, G) entries (1000:2000::100, FF06::) RP: NULL Protocol: pim-sm, Flag: SPT NIIF SG_RCVR UpTime: 00:00:14 Upstream interface: NULL Upstream neighbor: NULL RPF prime neighbor: NULL Join/Prune FSM: [SPT: NJ] [RPT: NJ] Downstream interface(s) information: none (1000:2000::200, FF06::) RP: NULL Protocol: pim-sm, Flag: SPT NIIF SG_RCVR UpTime: 00:00:14 Upstream interface: NULL Upstream neighbor: NULL RPF prime neighbor: NULL Join/Prune FSM: [SPT: NJ] [RPT: NJ] Downstream interface(s) information: none

Run the display pim ipv6 rp-info command. You can view information about an RP, such asthe address and priority of the RP and the range of multicast groups served by the RP. localindicates that the local router is elected as the RP. For example:

<HUAWEI> display pim ipv6 rp-info ff0e::1 VPN-Instance: public net BSR RP Address is: 2001:AA::99 Priority: 192 Uptime: 00:00:52 Expires: 00:01:38 RP mapping for this group is: 2001:AA::99 (local host)

8.4 Configuring a BSR Boundary (IPv6)Before configuring IPv6 PIM-SM inter-domain multicast, configure BSR boundaries to dividea multicast network into PIM-SM domains. Each BSR serves only the local PIM-SM domain.The routers outside the BSR boundary of a PIM-SM domain do not take part in BSR messagesforwarding in the PIM-SM domain.

Applicable EnvironmentAfter a BSR boundary is configured on an interface of the router on the edge of an IPv6 PIM-SM domain, Bootstrap messages cannot pass through the BSR boundary. The interfacesconfigured with BSR boundaries divide a network into several PIM-SM domains.

A BSR boundary can also be used to isolate a PIM-SM domain from the Internet.

Pre-configuration TasksBefore configuring a BSR boundary, complete the following task:

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

285

Page 296: Configuration Guide - IP Multicast

l Configuring an IPv6 unicast routing protocol to ensure that IPv6 unicast routes arereachable on the network

l Enabling IPv6 multicast routing on all the routers and enabling IPv6 PIM-SM on eachinterface on the routers

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The view of the interface to be configured with a BSR boundary is displayed.

Step 3 Run:pim ipv6 bsr-boundary

A BSR boundary is configured. Bootstrap messages cannot pass through the BSR boundary.

By default, all routers on an IPv6 PIM-SM network can receive Bootstrap messages.

Step 4 Run:commit

The configuration is committed.

----End

Checking the ConfigurationRun the display pim ipv6 bsr-info command to check information about the BSR in an IPv6PIM-SM domain.

Follow-up ProcedurePerform the task of Configuring a BSR RP in each IPv6 PIM-SM domain.

8.5 Adjusting Dynamic RP Parameters (IPv6)When a dynamic RP is used on a network, parameters of C-RPs and C-BSRs on the networkcan be adjusted as needed.

Applicable EnvironmentInitially, each C-BSR considers itself as a BSR and sends a Bootstrap message to the entirenetwork. Each router receives the Bootstrap messages sent by all C-BSRs. By comparing theinformation carried by the Bootstrap messages, the routers elect a BSR.

All the routers know the BSR address. The C-RPs send Advertisement messages to the BSR.An Advertisement message sent by a C-RP carries the address of the C-RP, the range of multicastgroups that the C-RP serves, and the priority of the C-RP. The BSR collects C-RP informationand summarizes information into an RP-set, encapsulates the RP-set in a Bootstrap message,

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

286

Page 297: Configuration Guide - IP Multicast

and advertises the Bootstrap message to each router. Based on the RP-set, each router performsthe RP calculation by using the same rule and elects the RP for a specific group from multipleC-RPs to which this group corresponds.

The router can work normally by using default parameter values. The NE5000E allows you toadjust BSR RP parameters as needed.

NOTE

If there is no special requirement, default parameter values are recommended.

Pre-configuration TasksBefore adjusting dynamic RP parameters, complete the following tasks:

l Configuring an IPv6 unicast routing protocol to ensure that IPv6 unicast routes arereachable on the network

l Configuring IPv6 PIM-SM and using a BSR RP

Configuration ProceduresChoose one or more configuration tasks (excluding "Checking the Configuration") as needed.

8.5.1 Adjusting C-RP ParametersA C-RP periodically sends Advertisement messages to the BSR. Advertisement messages carryinformation such as the priorities of C-RPs. You can adjust the priority of a C-BSR, interval forsending Advertisement messages, and timeout period of an Advertisement message on a deviceconfigured with C-RPs.

ContextAn RP is elected from C-RPs based on the following rules:

l The C-RP that has the highest priority wins.l In case of the same priority, hash functions are operated. The C-RP that has the greatest

calculated value wins.l If all the preceding factors are the same, the C-RP that has the highest IPv6 address wins.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim-ipv6

The IPv6 PIM view is displayed.

Step 3 Run:c-rp priority priority

The global priority of a C-RP is configured.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

287

Page 298: Configuration Guide - IP Multicast

The greater the priority value, the lower the priority. By default, the global priority of a C-RPis 0.

Step 4 Run:c-rp advertisement-interval interval

The interval at which a C-RP sends Advertisement messages is set.

By default, a C-RP sends Advertisement messages at an interval of 60s.

Step 5 Run:c-rp holdtime interval

The period during which a BSR keeps the Advertisement message of a C-RP is set.

NOTE

The period during which a BSR keeps the Advertisement message of a C-RP must be greater than theinterval at which a C-RP sends Advertisement messages.

C-RPs periodically send Advertisement messages to the current BSR. The BSR extractsHoldtime from the messages and starts a timer. If the BSR does not receive any Advertisementmessage from a C-RP within the timeout period of the timer, it considers the C-RP invalid orinaccessible.

By default, the BSR keeps the Advertisement messages from a C-RP for 150s.

Step 6 Run:commit

The configuration is committed.

----End

8.5.2 Setting the Range of Valid C-RP AddressesThe range of valid C-RP addresses and range of IPv6 multicast groups that each C-RP servescan be configured to filter packets on all C-BSRs by using an IPv6 ACL. The BSR adds the C-RP information contained in an Advertisement message received from a C-RP to the RP-set onlywhen the address of the C-RP and IPv6 multicast groups that the C-RP serves are within theconfigured ranges respectively. This prevents C-RP spoofing.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim-ipv6

The IPv6 PIM view is displayed.

Step 3 Run:crp-policy { advanced-acl6-number | acl6-name acl6-name }

The range of valid C-RP addresses and the range of IPv6 multicast groups that a C-RP servesare set.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

288

Page 299: Configuration Guide - IP Multicast

l If the C-RP address or the address of a multicast group that a C-RP serves contained in anAdvertisement message is not within the range defined by an IPv6 ACL or no action is definedin the IPv6 ACL for processing such an Advertisement message, the BSR discards theAdvertisement message and does not add the C-RP information carried by the Advertisementmessage to the RP-set.

l If only advanced-acl6-number or acl6-name acl6-name is set but no IPv6 ACL is set, theBSR denies all Advertisement messages.

By default, the BSR does not check the C-RP address or the range of IPv6 multicast groups thata C-RP serves in a received Advertisement message. That is, the BSR considers all the receivedC-RP information valid.

Step 4 Run:commit

The configuration is committed.

----End

8.5.3 Adjusting C-BSR ParametersAt first, each C-BSR considers itself as a BSR and sends a Bootstrap message to all devices.You can adjust the C-BSR hash mask length and C-RP priority carried by a Bootstrap message,interval for sending Bootstrap messages, and timeout period of a Bootstrap message on a deviceconfigured with a C-BSR.

ContextA C-BSR is elected from C-BSRs based on the following rules:

l The C-BSR that has the highest priority wins.l In case of the same priority, the C-BSR that has the highest IP address wins.

Based on the results of the BSR election, a C-BSR performs the following operations:

l If the C-BSR wins the BSR election, it periodically sends Bootstrap messages carrying itsIP address and RP-set information to the network where the C-BSR resides.

l If the C-BSR fails the BSR election, it is suppressed from sending Bootstrap messages.l When the current BSR becomes faulty, the C-BSRs automatically trigger a new round of

BSR election to prevent service interruption.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim-ipv6

The IPv6 PIM view is displayed.

Step 3 Run:c-bsr hash-length hash-length

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

289

Page 300: Configuration Guide - IP Multicast

The global hash mask length is set for a C-BSR.

The hash mask length carried by a Bootstrap message is used for RP calculation. By default, theglobal hash mask length of a C-BSR is 126.

Step 4 Run:c-bsr priority priority

The global priority is set for a C-BSR.

The greater the priority value is, the higher the priority is. By default, the global priority of a C-BSR is 0.

Step 5 Run:c-bsr interval interval

The interval at which a C-BSR sends Bootstrap messages is set.

By default, a C-BSR sends Bootstrap messages at an interval of 60 seconds.

Step 6 Run:c-bsr holdtime interval

The period during which the router keeps the Bootstrap message received from a BSR is set.

NOTE

The period during which the router holds the Bootstrap message received from the BSR must be greaterthan the interval at which a C-BSR sends Bootstrap messages. Otherwise, BSR election is frequentlyperformed.

The BSR periodically sends Bootstrap messages over the network. After receiving the Bootstrapmessages, the router holds the messages for a certain period during which the BSR election issuspended. If the period expires, the C-BSRs trigger a new round of BSR election.

By default, the router keeps the Bootstrap message received from a BSR for 130s.

Step 7 Run:commit

The configuration is committed.

----End

8.5.4 Setting the Range of Valid BSR AddressesAfter an IPv6 ACL is used to configure the range of valid BSR addresses on all devices, onlythe Bootstrap messages with source addresses within the range are accepted, thus preventingBSR spoofing.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim-ipv6

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

290

Page 301: Configuration Guide - IP Multicast

The IPv6 PIM view is displayed.

Step 3 Run:bsr-policy { basic-acl6-number | acl6-name acl6-name }

The range of valid BSR addresses is set.

l If the source address contained in a Bootstrap message is denied by the IPv6 ACL or noaction is defined in the IPv6 ACL for processing such a Bootstrap message, the router discardsthis Bootstrap message.

l If basic-acl6-number or acl6-name acl6-name is specified but the corresponding IPv6 ACLis not configured, the router denies all Bootstrap messages.

By default, the router does not check the source address of a received Bootstrap. That is, itconsiders all received Bootstrap as valid.

Step 4 Run:commit

The configuration is committed.

----End

8.5.5 Checking the ConfigurationAfter adjusting dynamic RP parameters, you can run related commands to view BSR and RPinformation.

PrerequisiteThe adjustment of dynamic RP parameters on an IPv6 network is complete as needed.

Procedurel Run the display pim ipv6 bsr-info command to check information about a BSR in an IPv6

PIM-SM domain.l Run the display pim ipv6 rp-info [ ipv6-group-address ] command to check information

about an RP in an IPv6 PIM-SM domain.

----End

ExampleRun the display pim ipv6 bsr-info command. You can view information about C-BSRs. Forexample:

<HUAWEI> display pim ipv6 bsr-infoVPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 2004::2 Priority: 0 Hash mask length: 64 State: Elected Uptime: 00:00:07 Next BSR message scheduled at: 00:00:53 C-RP Count: 0 Candidate AdminScope BSR Count: 0 Candidate BSR Address: 2004::2 Priority: 0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

291

Page 302: Configuration Guide - IP Multicast

Hash mask length: 64 State: Elected Wait to be BSR: 0

Run the display pim ipv6 rp-info command. You can view information about an RP, includingthe RP address, RP priority, and range of groups served by the RP. For example:

<HUAWEI> display pim ipv6 rp-info ff0e::1 VPN-Instance: public net BSR RP Address is: 2001:AA::99 Priority: 192 Uptime: 00:00:52 Expires: 00:01:38 RP mapping for this group is: 2001:AA::99 (local host)

8.6 Configuring IPv6 PIM-SSMPIM-SSM enables a user to specify a multicast source that will send data to a desired group.PIM-SSM is implemented based on some PIM-SM technologies. In PIM-SSM, no RP needs tobe maintained and a dedicated multicast forwarding path is set up between a receiver and aspecified multicast source.

Applicable EnvironmentPIM-SSM uses only some PIM-SM technologies. In PIM-SSM, it is unnecessary to maintain anRP, build an RPT, or register a multicast source. The DR is valid only on a shared networksegment connected to group members. Based on users' requirements, the receiver's DR sends aJoin message towards the multicast source. The Join message is transmitted upstream hop byhop, and an (S, G) entry is created on each hop. An SPT is built from the router directly connectedto the multicast source to the receiver's DR.

PIM-SSM is used to implement IPv6 multicast when the following conditions are met:

l IPv6 multicast groups that users join are within the SSM group address range.l The multicast source is specified when users join an IPv6 multicast group.l routers run PIM-SM.

PIM-SM and PIM-SSM can be used together on a network to provide multicast services forusers. After configuring IPv6 PIM-SM on the network, you can adjust the SSM group addressrange as needed. If an IPv6 multicast group that a user wants to join is beyond the SSM groupaddress range, PIM-SM can be used to forward IPv6 multicast packets.

Pre-configuration TasksBefore configuring IPv6 PIM-SSM, complete the following task:

l Configuring an IPv6 unicast routing protocol to ensure that IPv6 unicast routes arereachable on the network

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

292

Page 303: Configuration Guide - IP Multicast

Configuration Procedures

Figure 8-2 Flowchart for configuring IPv6 PIM-SSM

Enable IPv6 multicast routing

Enable IPv6 PIM-SM

Set an SSM group addressrange

Limit the range of multicastsource addresses

MandatoryprocedureOptional

procedure

8.6.1 Enabling IPv6 Multicast RoutingBefore configuring IPv6 multicast features in a router, enable IPv6 multicast routing on therouter.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:multicast ipv6 routing-enable

IPv6 multicast routing is enabled.

CAUTIONRunning the undo multicast ipv6 routing-enable command clears all IPv6 multicastconfigurations and interrupts running IPv6 multicast services. To restore the IPv6 multicastservices, you need to run the IPv6 multicast commands that have been deleted.

Step 3 Run:commit

The configuration is committed.

----End

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

293

Page 304: Configuration Guide - IP Multicast

8.6.2 Enabling IPv6 PIM-SMAfter IPv6 PIM-SM is enabled on the interface connected to other routers, the interface canestablish IPv6 PIM neighbor relationships with the routers.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The interface view is displayed.

Step 3 Run:pim ipv6 sm

IPv6 PIM-SM is enabled.

CAUTIONRunning the undo pim ipv6 sm command clears the IPv6 PIM neighbors of an interface. If theinterface is running IPv6 multicast services, running the command will interrupt the services onthe interface.

Step 4 Run:commit

The configuration is committed.

----End

8.6.3 Setting an SSM Group Address RangeThe group address range in the PIM-SSM model is different from that in the PIM-SM model. Ifa multicast group that a user wants to join is within the SSM group address range, the PIM-SSMmodel is used to forward packets. If a multicast group that a user wants to join is beyond theSSM group address range, the PIM-SM model is used to forward packets. In PIM-SSM model,the default group address range is FF3x::/32. The SSM group address range can be changed asneeded.

Context

CAUTIONEnsure that the SSM group address ranges of all routers on an IPv6 network are identical.Otherwise, faults may occur on the network.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

294

Page 305: Configuration Guide - IP Multicast

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim-ipv6

The IPv6 PIM view is displayed.

Step 3 Run:ssm-policy { basic-acl6-number | acl6-name acl6-name }

An SSM group address range is set.

Step 4 Run:commit

The configuration is committed.

----End

8.6.4 (Optional) Limiting the Range of Multicast Source AddressesAfter being configured with an IPv6 source address-based filtering policy by using an IPv6 ACL,the IPv6 PIM router forwards only the multicast packets with source addresses or source/groupaddresses being in the range defined by the IPv6 ACL.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim-ipv6

The IPv6 PIM view is displayed.

Step 3 Run:source-policy { acl6-number | acl6-name acl6-name }

The range of multicast source addresses is limited.

l If a basic IPv6 ACL is used, only the multicast data packets with source addresses being inthe range permitted by the IPv6 ACL can be forwarded.

l If an advanced IPv6 ACL is used, only the multicast data packets with source addresses andgroup addresses being in the ranges permitted by the IPv6 ACL can be forwarded.

l If the specified IPv6 ACL does not exist, no multicast packets can be forwarded.

NOTE

The source-policy command cannot be used to filter static (S, G) entries.

Step 4 Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

295

Page 306: Configuration Guide - IP Multicast

The configuration is committed.

----End

8.6.5 Checking the ConfigurationAfter configuring IPv6 PIM-SSM, you can view PIM interfaces, PIM neighbors, and PIMrouting tables by using related commands.

PrerequisiteThe IPv6 PIM-SSM configurations are complete.

Procedurel Run the display pim ipv6 interface [ interface-type interface-number ] [ verbose ]

command to check IPv6 PIM interfaces.l Run the display pim ipv6 neighbor [ ipv6-link-local-address | interface interface-type

interface-number | verbose ] * command to check IPv6 PIM neighbors.l Run the display pim ipv6 routing-table [ group-address [ mask { group-mask-length |

group-mask } ] ] [ source-address [ mask { source-mask-length | source-mask } ] ][ outgoing-interface include { interface-type interface-number | register | none } ][ fsm ] command to check the IPv6 PIM routing table of a device.

----End

ExampleRun the display pim ipv6 interface command. You can view the number of PIM neighbors oneach interface and see that the PIM status is Up on each interface. For example:

<HUAWEI> display pim ipv6 interfaceVPN-Instance: public net Interface State NbrCnt HelloInt DR-Pri DR-Address Eth3/0/1 up 1 30 1 FE80:1::3456

Run the display pim ipv6 neighbor command. You can view the number of PIM neighbors,neighbor addresses, and interfaces that set up neighbor relationships. For example:

<HUAWEI> display pim ipv6 neighbor VPN-Instance: public net Total Number of Neighbors = 1

Neighbor Interface Uptime Expires Dr-Priority BFD-Session FE80:1::3456 Eth3/0/1 00:01:08 never 1 N

Run the display pim ipv6 routing-table command. You can view the source addresses, groupaddresses in PIM entries, upstream interfaces, and downstream interface lists of PIM entries.For example:

<HUAWEI> display pim ipv6 routing-tableVPN-Instance: public net Total 0 (*, G) entry; 2 (S, G) entries (1000:2000::100, FF06::) RP: NULL Protocol: pim-sm, Flag: SPT NIIF SG_RCVR UpTime: 00:00:14 Upstream interface: NULL Upstream neighbor: NULL

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

296

Page 307: Configuration Guide - IP Multicast

RPF prime neighbor: NULL Join/Prune FSM: [SPT: NJ] [RPT: NJ] Downstream interface(s) information: none (1000:2000::200, FF06::) RP: NULL Protocol: pim-sm, Flag: SPT NIIF SG_RCVR UpTime: 00:00:14 Upstream interface: NULL Upstream neighbor: NULL RPF prime neighbor: NULL Join/Prune FSM: [SPT: NJ] [RPT: NJ] Downstream interface(s) information: none

8.7 Adjusting Other IPv6 PIM ParametersYou can adjust the control parameters for maintaining neighbor relationships, DR parameters,and control parameters for forwarding as needed.

Applicable EnvironmentDefault parameter values allow the router to function properly. The NE5000E allows you toadjust the control parameters for maintaining neighbor relationships, DR parameters, and controlparameters for forwarding as needed.

NOTE

If there is no special requirement, default parameter values are recommended.

Pre-configuration TasksBefore adjusting other IPv6 PIM parameters, complete the following tasks:

l Configuring an IPv6 unicast routing protocol to ensure that IPv6 unicast routes arereachable on the network

l Configuring IPv6 PIM-SM or Configuring IPv6 PIM-SSM

Configuration ProceduresChoose one or more configuration tasks (excluding "Checking the Configuration") as needed.

8.7.1 Adjusting the Lifetime of a SourceA multicast device starts a timer for each (S, G) entry. If the multicast device does not receiveany multicast packets from a multicast source within the set lifetime of the multicast source, itconsiders that the (S, G) entry becomes invalid and the multicast source stops sending multicastdata to the multicast group.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:pim-ipv6

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

297

Page 308: Configuration Guide - IP Multicast

The IPv6 PIM view is displayed.

Step 3 Run:source-lifetime interval

The lifetime of a source is configured.

After receiving a multicast packet from S, the router resets the timer. If the timer times out, the(S, G) entry is considered invalid.

Step 4 Run:commit

The configuration is committed.

----End

8.7.2 Adjusting Control Parameters for Maintaining NeighborRelationships

Devices set up neighbor relationships by exchanging Hello messages. The control parametersfor maintaining PIM neighbor relationships include the interval for send Hello messages, timeoutperiod of a neighbor relationship, whether to deny a Hello message carrying the Generation IDoption, and policy for filtering neighbors.

ContextYou can the interval for sending Hello messages and the timeout period of a neighbor relationshipeither globally or on an interface.

l Global configuration: takes effect on all interfaces.l Configuration on an interface: takes precedence over the global configuration. If the

configuration on an interface is not done, the global configuration is used.

The following functions can be configured on interfaces to improve the security of IPv6 PIMneighbors:

l Deny Hello messages without the Generation ID option. If the router finds that a Hellomessage received from a PIM neighbor contains a different generation ID, the routerconsiders that the status of the PIM neighbor changes.

l Configure a neighbor filtering policy to limit the range of valid neighbor addresses. Therouter discards a Hello message received from a neighbor with the address beyond the setrange.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

pim-ipv6

The IPv6 PIM view is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

298

Page 309: Configuration Guide - IP Multicast

3. Runtimer hello interval

The interval for sending Hello messages is set.

By default, the router sends Hello messages at an interval of 30 seconds.4. Run:

hello-option holdtime interval

The timeout period of a neighbor is set. If a device does not receive any Hello messagefrom a neighbor within the timeout period, the device considers the neighborunreachable.

NOTE

The interval at which the router sends Hello messages must be shorter than the neighbor timeoutperiod.

By default, the timeout period of a neighbor is 150s.5. Run:

commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

The IPv6 PIM interface view is displayed.3. Run:

pim ipv6 timer hello interval

The interval at which the interface sends Hello messages is set.

By default, an interface sends Hello messages at an interval of 30s.4. Run:

pim ipv6 hello-option holdtime interval

The neighbor timeout period is set on the interface. If the interface does not receiveany Hello packet from a neighbor within the timeout period from a neighbor, theinterface considers the neighbor unreachable.

NOTE

The interval at which the router sends Hello messages must be smaller than the neighbor timeoutperiod.

By default, the neighbor timeout period is 150s on an interface.5. Run:

pim ipv6 require-genid

The interface is configured to accept the Hello messages with the Generation ID optionand deny the Hello messages without the Generation ID option.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

299

Page 310: Configuration Guide - IP Multicast

By default, the router accepts the Hello messages without the Generation ID option.6. Run:

pim ipv6 neighbor-policy { basic-acl6-number | acl6-name acl6-name }

A neighbor filtering policy is configured.

When being configured on an interface, the neighbor filtering function needs to beconfigured on the routers that set up PIM neighbor relationships with this interfaceaccordingly.

By default, an interface does not filter IPv6 PIM neighbors.7. Run:

commit

The configuration is committed.

----End

8.7.3 Adjusting DR ParametersThe source's DR is responsible for sending Register messages to the RP, and the receiver's DRis responsible for sending Join messages to the RP. Devices elect a DR by exchanging Hellomessages. The device with the highest priority wins the election. In the case of the same priority,the device with the highest IP address wins the election.

ContextOn an IPv6 PIM-SM network, the devices on a shared network segment need to elect a DR thatis responsible for the registration of multicast sources or the joining of receivers. The DR electionis based on priorities and IPv6 addresses. routers elect a DR by exchanging Hello messagescarrying their priorities.

l If all routers support the Hello messages carrying priorities, the PIM interface with thehighest priority is elected as a DR. In the case of the same priority, the interface with thehighest IPv6 address is elected as the DR.

l If one router does not support any Hello messages carrying priorities, the PIM interfacewith the highest IPv6 address is elected as the DR.

You can configure a DR priority either globally or on an interface:

l Global configuration: takes effect on all interfaces.l Configuration on an interface: takes precedence over the global configuration. If the

configuration on an interface is not done, the global configuration is used.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

pim-ipv6

The IPv6 PIM view is displayed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

300

Page 311: Configuration Guide - IP Multicast

3. Run:hello-option dr-priority priority

A priority is set for all the interfaces on the router that participate in the DR election.

The greater the priority value is, the higher the priority is. By default, the priorityvalues of all the interfaces on the router that participate in the DR election are 1.

4. Run:commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

The IPv6 PIM interface view is displayed.3. Run:

pim ipv6 hello-option dr-priority priority

The priority of the interface is set.

The greater the priority value is, the higher the priority is. By default, the priority ofan interface that participate in DR election is 1.

4. Run:commit

The configuration is committed.

----End

8.7.4 Adjusting Control Parameters for ForwardingThe control parameters for IPv6 PIM forwarding include the interval for sending Join/Prunemessages, holdtime carried by a Join/Prune message, policy for filtering Join/Prune messages,and lan-delay and override-interval carried by a Hello message.

ContextThe router sends a Join message to its upstream device to request required IPv6 multicast dataand a Prune message to request its upstream device to stop sending IPv6 multiast data.

l After the first device joins a multicast group, the router sends a Join message to request itsupstream router to forward required IPv6 multicast data.On an IPv6 PIM-SM network, the router periodically sends Join messages to prevent RPTbranches from being pruned off due to timeout.

l After the last member of a group leaves the group, the router sends a Prune message torequest its upstream router to perform the prune action. If other downstream routers stillneed to receive multicast data for the group, they must send Join messages to the upstreamrouter within the set override-interval to override the prune action.A Hello message carries lan-delay and override-interval.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

301

Page 312: Configuration Guide - IP Multicast

– lan-delay specifies the delay in transmitting Prune messages on a shared networksegment.

– override-interval specifies the interval for overriding the prune action.The relationship between lan-delay, override-interval, and PPT is: lan-delay + override-interval = PPT. The Prune-Pending Timer (PPT) indicates the period from the time whenthe router receives a Prune message from a downstream interface to the time when therouter performs the prune action. If the router receives a Join message from the downstreaminterface within the PPT, the router does not perform the prune action.

You can set control parameters for forwarding either globally or on an interface:

l Global configuration: takes effect on all interfaces.l Configuration on an interface: takes precedence over the global configuration. If the

configuration on an interface is not done, the global configuration is used.

To enhance the security of IPv6 PIM forwarding, configure a source address- and group address-based policy for filtering Join/Prune messages on an interface.

Procedurel Global configuration

1. Run:system-view

The system view is displayed.2. Run:

pim-ipv6

The IPv6 PIM view is displayed.3. Run:

timer join-prune interval

The interval for sending Join/Prune messages is set.

By default, the interval for sending Join/Prune messages is 60s.4. Run:

holdtime join-prune interval

The value of the holdtime field carried by a sent Join/Prune message is set.

After receiving a Join/Prune message from a downstream interface, an upstreamrouter determines the period for keeping the join or prune state of the downstreaminterface based on the value of the holdtime field in the Join/Prune message.

The value of the holdtime field carried by a Join/Prune message must be 3.5 times ofthe interval for sending Join/Prune messages. By default, the value of the holdtimefield carried by a sent Join/Prune message is 210s.

5. Run:hello-option lan-delay interval

The value of the lan-delay field carried by a sent Hello message is set.

When the values of lan-delay fields carried by Hello messages sent by the interfaceson a shared network segment are different, the largest one of these values is used. Bydefault, the value of the lan-delay field carried by a sent Hello message is 500 ms.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

302

Page 313: Configuration Guide - IP Multicast

6. Run:hello-option override-interval interval

The value of the override-interval field carried by a sent Hello message is set.

When the values of override-interval fields carried by Hello messages sent by theinterfaces on a shared network segment are different, the maximum one of these valuesis used. By default, the value of the override-interval field carried by a sent Hellomessage is 2500 ms.

7. Run:neighbor-check { receive | send }

The neighbor check function is configured.

You can specify both receive and send to enable the IPv6 PIM neighbor checkfunction for both the received and sent Join/Prune messages and Assert messages.

8. Run:commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

The IPv6 PIM interface view is displayed.3. Run:

pim ipv6 timer join-prune interval

The interval at which the interface sends Join/Prune messages is set.

By default, an interface sends Join/Prune messages at an interval of 60s.4. Run:

pim ipv6 holdtime join-prune interval

The value of the holdtime field carried by a Join/Prune message sent by the interfaceis set.

By default, the value of the holdtime field carried by a Join/Prune message sent by aninterface is 210s.

5. Run:pim ipv6 hello-option lan-delay interval

The value of the lan-delay field carried by a Hello message sent by the interface is set.

By default, the value of the lan-delay field carried by a Hello message sent by theinterface is 500 ms.

6. Run:pim ipv6 hello-option override-interval interval

The value of the override-interval field carried by a Hello message sent by the interfaceis set.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

303

Page 314: Configuration Guide - IP Multicast

By default, the value of the override-interval field carried by a Hello message sent bythe interface is 2500 ms.

7. Run:pim ipv6 join-policy { { advanced-acl6-number | acl6-name acl6-name } | asm { basic-acl6-number | acl6-name acl6-name } | ssm { advanced-acl6-number | acl6-name acl6-name } }

A policy for filtering Join messages contained in Join/Prune messages is configured.8. Run:

commit

The configuration is committed.

----End

8.7.5 Adjusting Assert ParametersThe router that fails in an election prohibits its downstream interface from forwarding multicastdata in the period during which the router keeps the Assert state. After the period expires, therouter restores the forwarding capability of its downstream interface.

ContextOther multicast forwarders exist on a network segment if the following condition is met:

The interface that receives a multicast packet is a downstream interface in the corresponding (S,G) entry on the local router.

If the preceding conditions are met, the router sends an Assert message through the downstreaminterface. At the same time, the downstream interface also receives an Assert message fromanother multicast forwarder on the network segment. The router compares its information withthe information carried in the message sent by other forwarders. This process is called an Assertelection.

l If the router wins, the downstream interface keeps the forwarding state and forwards (S,G) data packets on the network segment. The downstream interface is called an Assertwinner.

l If the router fails, the downstream interface is prohibited from forwarding multicast packetsand deleted from the downstream interface list of the (S, G) entry. The downstream interfaceis called an Assert loser.All Assert losers can periodically restore multicast packet forwarding, thereby causingperiodical Assert elections.

You can set the period during which an Assert loser keeps the Assert state either globally or onan interface.

l Global configuration: takes effect on all interfaces.l Configuration on an interface: takes precedence over the global configuration. If the

configuration on an interface is not done, the global configuration is used.

Procedurel Global configuration

1. Run:system-view

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

304

Page 315: Configuration Guide - IP Multicast

The system view is displayed.2. Run:

pim-ipv6

The IPv6 PIM view is displayed.3. Run:

holdtime assert interval

The period during which the interface keeps the Assert state is set.

By defaults, all the interfaces of the router keep the Assert state for 180s.4. Run:

commit

The configuration is committed.l Configuration on an interface

1. Run:system-view

The system view is displayed.2. Run:

interface interface-type interface-number

The IPv6 PIM interface view is displayed.3. Run:

pim ipv6 holdtime assert interval

The period during which the interface keeps the Assert state is set.

By defaults, the interface keeps the Assert state for 180s.4. Run:

commit

The configuration is committed.

----End

8.7.6 Checking the ConfigurationAfter adjusting control parameters for maintaining PIM neighbor relationships, controlparameters for forwarding, and Assert parameters, you can view PIM interfaces, PIM neighbors,PIM routing tables, and statistics about PIM control messages by using related commands.

PrerequisiteThe adjustments of control parameters for maintaining PIM neighbor relationships, DRparameters, control parameters for forwarding, and Assert parameters are complete.

Procedurel Run the display pim ipv6 interface [ interface-type interface-number ] [ verbose ]

command to check information about IPv6 PIM interfaces.l Run the display pim ipv6 neighbor [ ipv6-link-local-address | interface interface-type

interface-number | verbose ] * command to check information about IPv6 PIM neighbors.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

305

Page 316: Configuration Guide - IP Multicast

l Run the display pim ipv6 routing-table [ group-address [ mask { group-mask-length |group-mask } ] ] [ source-address [ mask { source-mask-length | source-mask } ] ][ outgoing-interface include { interface-type interface-number | register | none } ][ fsm ] command to check information about an IPv6 PIM routing table.

l Run the display pim ipv6 control-message counters [ message-type { assert | bsr | crp| hello | join-prune | probe | register | register-stop } ] command to check the statisticsabout IPv6 PIM control parameters.

----End

ExampleRun the display pim ipv6 interface command. You can view the number of PIM neighbors oneach interface and see that the PIM status on each interface is Up. For example:<HUAWEI> display pim ipv6 interfaceVPN-Instance: public net Interface State NbrCnt HelloInt DR-Pri DR-Address Eth3/0/1 up 1 30 1 FE80:1::3456

Run the display pim ipv6 neighbor command. You can view the number of PIM neighbors,address of each neighbor, and interfaces where PIM neighbor relationships are set up. Forexample:<HUAWEI> display pim ipv6 neighbor VPN-Instance: public net Total Number of Neighbors = 1

Neighbor Interface Uptime Expires Dr-Priority BFD-Session FE80:1::3456 Eth3/0/1 00:01:08 never 1 N

Run the display pim ipv6 routing-table command. You can view information about PIMentries, such as the source address, group address, RP, upstream interface, and downstreaminterface list. For example:<HUAWEI> display pim ipv6 routing-tableVPN-Instance: public net Total 0 (*, G) entry; 2 (S, G) entries (1000:2000::100, FF06::) RP: NULL Protocol: pim-sm, Flag: SPT NIIF SG_RCVR UpTime: 00:00:14 Upstream interface: NULL Upstream neighbor: NULL RPF prime neighbor: NULL Join/Prune FSM: [SPT: NJ] [RPT: NJ] Downstream interface(s) information: none (1000:2000::200, FF06::) RP: NULL Protocol: pim-sm, Flag: SPT NIIF SG_RCVR UpTime: 00:00:14 Upstream interface: NULL Upstream neighbor: NULL RPF prime neighbor: NULL Join/Prune FSM: [SPT: NJ] [RPT: NJ] Downstream interface(s) information: none

Run the display pim ipv6 control-message counters command. You can view the number ofreceived packets, sent packets, invalid packets, or filtered out packets. For example:<HUAWEI> display pim ipv6 control-message counters interface gigabitethernet 1/0/0VPN-Instance: public net PIM control-message counters for interface: GigabitEthernet1/0/0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

306

Page 317: Configuration Guide - IP Multicast

Message Type Received Sent Invalid Filtered Assert 0 0 0 0 Graft 0 0 0 0 Graft-Ack 0 0 0 0 Hello 328 331 0 0 Join-prune 2 0 0 0 State-Refresh 0 0 0 0 BSR 9778 0 0 0

8.8 Maintaining IPv6 PIMMaintaining IPv6 PIM includes resetting statistics about IPv6 PIM control messages, monitoringthe operating status of IPv6 PIM, and debugging IPv6 PIM.

8.8.1 Resetting Statistics About IPv6 PIM Control MessagesTo re-collect statistics about IPv6 PIM control messages, clear the existing statistics about IPv6PIM control messages by using reset commands. The statistics cannot be restored after beingreset. Exercise caution when running reset commands.

Context

CAUTIONThe statistics about IPv6 PIM control messages on an interface cannot be restored after beingreset. Exercise caution when running reset commands.

Procedure

Step 1 Run the reset pim ipv6 control-message counters [ interface interface-type interface-number ] command in the user view to reset statistics about IPv6 PIM control messages on aspecified interface.

----End

8.8.2 Monitoring the Operating Status of IPv6 PIMYou can monitoring the operating status of IPv6 PIM by viewing unicast routes used by IPv6PIM, BSRs, RPs, statistics about PIM control messages, PIM neighbors, and PIM routing tables.

ContextIn routine maintenance, you can run the following commands in any view to view the operatingstatus of IPv6 PIM.

Procedurel Run the display pim ipv6 claimed-route [ source-address ] command to view unicast

routes used by IPv6 PIM.l Run the display pim ipv6 bsr-info command to view information about a BSR in an IPv6

PIM-SM domain.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

307

Page 318: Configuration Guide - IP Multicast

l Run the display pim ipv6 control-message counters [ interface interface-type interface-number ] [ message-type { assert | bsr | crp | graft | graft-ack | hello | join-prune | state-refresh } ] command to view statistics about IPv6 PIM control messages.

l Run the display pim ipv6 interface [ interface-type interface-number ] [ verbose ]command to view IPv6 PIM interfaces.

l Run the display pim ipv6 neighbor [ ipv6-link-local-address | interface interface-typeinterface-number | verbose ] * command to view IPv6 PIM neighbors.

l Run the display pim ipv6 routing-table [ group-address [ mask { group-mask-length |group-mask } ] ] [ source-address [ mask { source-mask-length | source-mask } ] ][ outgoing-interface include { interface-type interface-number | register | none } ][ fsm ] command to view the IPv6 PIM routing table.

l Run the display pim ipv6 rp-info [ ipv6-group-address ] command to view informationabout an RP in an IPv6 PIM-SM domain.

----End

8.9 Configuration ExamplesThis section provides several IPv6 PIM configuration examples showing how to build up a basicIPv6 PIM network and how to configure basic IPv6 PIM functions.

8.9.1 Example for Configuring IPv6 PIM-SM Intra-domainMulticast

After basic PIM-SM functions are configured in an AS where IPv6 unicast routing worksproperly, users in the AS can receive data sent from any multicast source.

Networking Requirements

CAUTIONOn a single NE5000E, an interface is numbered in the format of slot number/card number/interface number. On an NE5000E cluster, an interface is numbered in the format of chassis ID/slot number/card number/interface number, and a slot is numbered in the format of chassis ID/slot number.

As shown in Figure 8-3, multicast services are deployed on the ISP network. An IGP has beendeployed to ensure that IPv6 unicast routes are available. The ISP network is connected to theInternet. Hosts on this network must be able to receive VoD information in multicast mode.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

308

Page 319: Configuration Guide - IP Multicast

Figure 8-3 Networking diagram of configuring IPv6 PIM-SM intra-domain multicast

POS1/0/02002::2

GE2/0/03001::1

RouterA

GE1/0/02001::1

GE2/0/04001::2

Source2001::5

RouterB

RouterC

HostA

HostB

POS2/0/02002::1

RouterD

POS2/0/02004::2

POS3/0/02005::1

POS1/0/02003::2

2006::1

POS1/0/02005::2

POS3/0/02004::1

HostC

HostD

POS4/0/0

2003::1

Internet

POS3/0/0

Precautions

When configuring IPv6 PIM-SM intra-domain multicast, note the following points:

l IPv6 PIM-SM and then MLD need to be enabled on the interface connected to hosts.

l If a static RP is used, the static RP configurations on all the routers must be the same.

l When users need to receive data sent by a specified multicast source, PIM-SSM needs tobe enabled, and the same SSM group address range needs to be configured on all therouters.

Configuration Roadmap

The configuration roadmap is as allows:

1. Configure an IPv6 address for each interface on the routers and configure an IPv6 unicastrouting protocol.

2. Enable IPv6 multicast routing on all routers providing IPv6 multicast services.

3. Enable IPv6 PIM-SM on all the interfaces of IPv6 multicast routers.

4. Enable MLD on the interface that directly connects the router to hosts.

5. Configure an RP. An RP is the root node of an RPT on a PIM-SM network. Setting an RPon the router that has more multicast flows is recommended.

6. (Optional) Set a BSR boundary on the interface connected to the Internet. Bootstrapmessages cannot pass through the BSR boundary. Therefore, the BSR serves only this PIM-SM domain. This improves multicast controllability.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

309

Page 320: Configuration Guide - IP Multicast

7. (Optional) Configure the same SSM group address range on each router. This enables themulticast routers in the PIM-SM domain to provide services only for multicast groups withaddresses being in the SSM group address range.

Data Preparation

To complete the configuration, you need the following data:

l Multicast group address

l Multicast source address

l SSM group address range

Procedure

Step 1 Configure an IPv6 address for each interface on the routers and configure an IPv6 unicast routingprotocol. The configuration details are not provided here.

Step 2 Enable IPv6 multicast on each router and IPv6 PIM-SM on each interface on the routers.

# The configurations of Router B, Router C, and Router D are similar to those of Router A, andare not provided here.

[~RouterA] multicast ipv6 routing-enable[~RouterA] interface gigabitethernet 1/0/0[~RouterA-GigabitEthernet1/0/0] pim ipv6 sm[~RouterA-GigabitEthernet1/0/0] quit[~RouterA] interface pos 2/0/0[~RouterA-Pos2/0/0] pim ipv6 sm[~RouterA-Pos2/0/0] quit[~RouterA] interface pos 3/0/0[~RouterA-Pos3/0/0] pim ipv6 sm[~RouterA-Pos3/0/0] quit[~RouterA] interface pos 4/0/0[~RouterA-Pos4/0/0] pim ipv6 sm[~RouterE-Pos4/0/0] commit[~RouterE-Pos4/0/0] quit

# Run the display pim ipv6 interface command to check IPv6 PIM interfaces on each router.For example, the information about IPv6 PIM interfaces on Router B is displayed:

<RouterB> display pim ipv6 interface VPN-Instance: public net Interface State NbrCnt HelloInt DR-Pri DR-Address Pos1/0/0 up 1 30 1 FE80::A01:10E:1 (local) GE2/0/0 up 0 30 1 FE80::200:AFF:FE01:10E (local) Pos3/0/0 up 1 30 1 FE80::9D62:0:FDC5:2

Step 3 Enable MLD on the interface directly connected to hosts.

# The configuration of Router C is similar to that of Router B, and is not provided here.

[~RouterB] interface gigabitethernet 2/0/0[~RouterB-GigabitEthernet2/0/0] mld enable[~RouterB-GigabitEthernet2/0/0] commit[~RouterB-GigabitEthernet2/0/0] quit

Step 4 Configure RPs.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

310

Page 321: Configuration Guide - IP Multicast

NOTE

You can choose to configure both a static RP and a dynamic RP, or only one of them. When both a staticRP and a dynamic RP are configured, the dynamic RP is preferred. You can enable the static RP to bepreferred by setting preferred in the static-rp rp-address command.

In this configuration example, a dynamic RP is used.

# Configure a dynamic RP. Perform the following configurations on one or more routers in thePIM-SM domain. On Router D, set the range of groups severed by the RP and locations of C-BSRs and C-RPs.

[~RouterD] acl ipv6 number 2001[~RouterD-acl6-basic-2001] rule permit source ff3e::1 64[~RouterD-acl6-basic-2001] quit[~RouterD] pim-ipv6[~RouterD-pim6] c-rp 2004::2 group-policy 2001

# Configure C-BSRs on Router D.

[~RouterD-pim6] c-bsr 2004::2[~RouterD-pim6] commit[~RouterD-pim6] quit

# Run the display pim ipv6 bsr-info command to check BSR information on each router. Forexample, the BSR information on Router B and Router D (C-BSR information is also displayedon Router D) is displayed:

<RouterB> display pim ipv6 bsr-infoVPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 2004::2 Priority: 0 Hash mask length: 126 State: Accept Preferred Uptime: 00:04:22 Expires: 00:01:46 C-RP Count: 1<RouterD> display pim ipv6 bsr-infoVPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 2004::2 Priority: 0 Hash mask length: 126 State: Elected Uptime: 00:01:10 Next BSR message scheduled at: 00:00:48 C-RP Count: 1 Candidate AdminScope BSR Count: 0 Candidate BSR Address: 2004::2 Priority: 0 Hash mask length: 126 State: Elected Wait to be BSR: 0

# Run the display pim ipv6 rp-info command to check RP information on each router. Forexample, the RP information on Router B is displayed:

<RouterB> display pim ipv6 rp-infoVPN-Instance: public net PIM-SM BSR RP information: Group/MaskLen: FF3E::1/64 RP: 2004::2 Priority: 192 Uptime: 00:05:19 Expires: 00:02:11

Step 5 (Optional) Configure a BSR boundary on the interface that connects Router A to the Internet.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

311

Page 322: Configuration Guide - IP Multicast

[~RouterA] interface pos 4/0/0[~RouterA-Pos4/0/0] pim ipv6 bsr-boundary[~RouterA-Pos4/0/0] commit[~RouterA-Pos4/0/0] quit

Step 6 (Optional) Configure the SSM group address range.

# Configure the SSM group address range to FF3E::1/64 on all routers. The configurations ofRouter B, Router C, and Router D are similar to those on Router A, and are not provided here.

[~RouterA] acl ipv6 2000[~RouterA-acl6-basic-2000] rule permit source FF3E::1 64[~RouterA-acl6-basic-2000] quit[~RouterA] pim-ipv6[~RouterA-pim6] ssm-policy 2000[~RouterA-pim6] commit[~RouterA-pim6] quit

Step 7 Verify the configuration.

# Configure the multicast source S (2001::5) to send multicast packets to multicast group FF3E::1 (within the SSM group address range) and multicast group FF0E::1 (beyond the SSM groupaddress range). Host A and Host C want to receive information for multicast group FF0E::1.Host B wants to receive multicast information sent by S (2001::5) to multicast group FF3E::1.# Run the display pim ipv6 routing-table command to check the IPv6 PIM routing table oneach router.

<RouterA> display pim ipv6 routing-tableVPN-Instance: public net Total 0 (*, G) entry; 2 (S, G) entries (2001::5, FF0E::1) RP: 2004::2 Protocol: pim-sm, Flag: SPT LOC ACT UpTime: 00:02:15 Upstream interface: GigabitEthernet1/0/0 Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 3 1: Register Protocol: pim-sm, UpTime: 00:02:15, Expires: - 2: Pos2/0/0 Protocol: pim-sm, UpTime: 00:02:15, Expires: 00:03:15 3: Pos3/0/0 Protocol: pim-sm, UpTime: 00:02:15, Expires: 00:03:15(2001::5, FF3E::1) Protocol: pim-ssm, Flag: LOC SG_RCVR UpTime: 00:00:11 Upstream interface: GigabitEthernet1/0/0 Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: Pos2/0/0 Protocol: pim-ssm, UpTime: 00:00:11, Expires: 00:03:19<RouterB> display pim ipv6 routing-tableVPN-Instance: public net Total 1 (*, G) entry; 2 (S, G) entries (*, FF0E::1) RP: 2004::2 Protocol: pim-sm, Flag: WC UpTime: 00:14:44 Upstream interface: Pos3/0/0 Upstream neighbor: FE80::9D62:0:FDC5:2 RPF prime neighbor: FE80::9D62:0:FDC5:2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

312

Page 323: Configuration Guide - IP Multicast

Protocol: mld, UpTime: 00:14:44, Expires: -(2001::5, FF0E::1) RP: 2004::2 Protocol: pim-sm, Flag: SPT ACT UpTime: 00:2:42 Upstream interface: Pos1/0/0 Upstream neighbor: FE80::A01:10C:1 RPF prime neighbor: FE80::A01:10C:1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: pim-sm, UpTime: 00:14:44, Expires: -(2001::5, FF3E::1) Protocol: pim-ssm, Flag: SG_RCVR UpTime: 00:08:02 Upstream interface: Pos1/0/0 Upstream neighbor: FE80::A01:10C:1 RPF prime neighbor: FE80::A01:10C:1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: pim-ssm, UpTime: 00:08:02, Expires: -<RouterC> display pim ipv6 routing-tableVPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry (*, FF0E::1) RP: 2004::2 Protocol: pim-sm, Flag: WC UpTime: 00:14:44 Upstream interface: Pos1/0/0 Upstream neighbor: FE80::7493:FE25:1 RPF prime neighbor: FE80::7493:FE25:1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: mld, UpTime: 00:14:43, Expires: -(2001::5, FF0E::1) RP: 2004::2 Protocol: pim-sm, Flag: WC UpTime: 00:2:42 Upstream interface: Pos1/0/0 Upstream neighbor: FE80::7493:FE25:1 RPF prime neighbor: FE80::7493:FE25:1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: mld, UpTime: 00:02:14, Expires: -<RouterD> display pim ipv6 routing-tableVPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry (*, FF0E::1) RP: 2004::2 (local) Protocol: pim-sm, Flag: WC UpTime: 00:16:56 Upstream interface: Register Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 2 1: Pos2/0/0 Protocol: pim-sm, UpTime: 00:16:56, Expires: 00:02:34 2: Pos3/0/0 Protocol: pim-sm, UpTime: 00:07:56, Expires: 00:02:35 (2001::5, FF0E::1) RP: 2004::2 (local) Protocol: pim-sm, Flag: SWT ACT UpTime: 00:02:54 Upstream interface: Pos1/0/0 Upstream neighbor: FE81::659:10C:3

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

313

Page 324: Configuration Guide - IP Multicast

RPF prime neighbor: FE81::659:10C:3 Downstream interface(s) information: Total number of downstreams: 1 1: Pos3/0/0 Protocol: pim-sm, UpTime: 00:02:54, Expires: 00:02:36

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast ipv6 routing-enable#acl ipv6 number 2000 rule 0 permit source FF3E::1/64#interface GigabitEthernet1/0/0 undo shutdown ipv6 enable ipv6 address 2001::1/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#interface Pos2/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2002::1/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#interface Pos3/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2003::1/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#interface Pos4/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2006::1/64 pim ipv6 bsr-boundary pim ipv6 sm ospfv3 1 area 0.0.0.0#ospfv3 1 router-id 1.1.1.1 area 0.0.0.0#pim-ipv6 ssm-policy 2000#return

l Configuration file of Router B#sysname RouterB#multicast ipv6 routing-enable#acl ipv6 number 2000 rule 0 permit source FF3E::1/64

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

314

Page 325: Configuration Guide - IP Multicast

#interface Pos1/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2002::2/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#interface GigabitEthernet2/0/0 undo shutdown ipv6 enable ipv6 address 3001::1/64 pim ipv6 sm mld enable ospfv3 1 area 0.0.0.0#interface Pos3/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2004::1/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#ospfv3 1 router-id 2.2.2.2 area 0.0.0.0#pim-ipv6 ssm-policy 2000#return

l Configuration file of Router C#sysname RouterC#multicast ipv6 routing-enable#acl ipv6 number 2000 rule 0 permit source FF3E::1/64#interface Pos1/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2005::2/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#interface GigabitEthernet2/0/0 undo shutdown ipv6 enable ipv6 address 4001::1/64 pim ipv6 sm mld enable ospfv3 1 area 0.0.0.0#ospfv3 1 router-id 3.3.3.3 area 0.0.0.0#pim-ipv6 ssm-policy 2000#return

l Configuration file of Router D#

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

315

Page 326: Configuration Guide - IP Multicast

sysname RouterD#multicast ipv6 routing-enable#acl ipv6 number 2000 rule 0 permit source FF3E::1/64#acl ipv6 number 2001 rule 0 permit source FF0E::1/64#interface Pos1/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2003::2/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#interface Pos2/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2004::2/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#interface Pos3/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2005::1/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#ospfv3 1 router-id 4.4.4.4 area 0.0.0.0#pim-ipv6 ssm-policy 2000 c-bsr 2004::2 c-rp 2004::2 group-policy 2001#return

8.9.2 Example for Configuring IPv6 PIM-SM SecurityOn an IPv6 PIM network, various filtering policies including valid source address ranges andvalid C-RP address ranges can be configured to protect the devices against malicious packetattacks. This improves network security.

Networking Requirements

CAUTIONOn a single NE5000E, an interface is numbered in the format of slot number/card number/interface number. On an NE5000E cluster, an interface is numbered in the format of chassis ID/slot number/card number/interface number, and a slot is numbered in the format of chassis ID/slot number.

As shown in Figure 8-4, IPv6 multicast services are deployed on the ISP network. An IGP hasbeen deployed to ensure that unicast routes are available. A filtering policy must be configured

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

316

Page 327: Configuration Guide - IP Multicast

on the router to enable users to receive correct IPv6 multicast data and to improve the securityof the IPv6 multicast network.

Figure 8-4 Networking diagram for configuring IPv6 PIM-SM security

POS1/0/02002::2

GE2/0/03001::1

RouterA

GE1/0/02001::1

GE2/0/04001::2

Source2001::5

RouterB

RouterC

HostA

HostB

POS2/0/02002::1

RouterD

POS2/0/02004::2

POS3/0/02005::1

POS1/0/02003::2

2006::1

POS1/0/02005::2

POS3/0/02004::1

HostC

HostD

POS4/0/0

2003::1

Internet

POS3/0/0

Precautions

When configuring IPv6 PIM-SM security, note the following points:

l IPv6 PIM-SM and then MLD need to be enabled on the interface connected to hosts.l The range of multicast groups that each C-RP serves and the range of valid C-RP addresses

need to be configured on all the C-BSRs.l Source address-based and BSR address-based filtering policies need to be configured on

all the routers.l A policy for filtering Register messages needs to be configured on all C-RPs.l The policy for filtering Join/Prune messages needs to be configured on the last-hop

router.

Configuration Roadmap

Filtering policies such as the source address-based filtering policy, BSR address-based filteringpolicy, RP address-based filtering policy, Register message filtering policy, Join/Prune messagefiltering policy, and PIM neighbor filtering policy are used to ensure the security of an IPv6PIM-SM network. The configuration roadmap is as follows:

1. Configure an IPv6 address for each interface on the routers and configure an IPv6 unicastrouting protocol.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

317

Page 328: Configuration Guide - IP Multicast

2. Enable IPv6 multicast routing on all routers providing IPv6 multicast services.3. Enable IPv6 PIM-SM on all the interfaces of IPv6 multicast routers.4. Enable MLD on the interface that directly connects the router to hosts.5. Configure C-BSRs and C-RPs to elect an RP.6. Configure the range of multicast groups that each C-RP serves on the C-BSRs.7. Configure a policy for filtering Register messages on each C-RP to guard against the attacks

of Register messages carrying invalid multicast source information.8. Configure a source address-based filtering policy on all the routers to deny the multicast

packets carrying invalid source addresses.9. Configure a BSR address-based filtering policy on all the routers to prevent BSR spoofing.

Data PreparationTo complete the configuration, you need the following data:

l Multicast group addressl Multicast source addressl ACL rules required by various filtering policies

Procedure

Step 1 Configure an IPv6 address for each interface on the routers and configure an IPv6 unicast routingprotocol. The configuration details are not provided here.

Step 2 Enable IPv6 multicast on all the routers and IPv6 PIM-SM on each interface on the routers.

# The configurations of Router B, Router C, and Router D are similar to those of Router A, andare not provided here.

[~RouterA] multicast ipv6 routing-enable[~RouterA] interface gigabitethernet 1/0/0[~RouterA-GigabitEthernet1/0/0] pim ipv6 sm[~RouterA-GigabitEthernet1/0/0] quit[~RouterA] interface pos 2/0/0[~RouterA-Pos2/0/0] pim ipv6 sm[~RouterA-Pos2/0/0] quit[~RouterA] interface pos 3/0/0[~RouterA-Pos3/0/0] pim ipv6 sm[~RouterE-Pos3/0/0] commit[~RouterA-Pos3/0/0] quit

Step 3 Enable MLD on the interfaces connected to hosts.

# The configuration of Router C is similar to that of Router B, and is not provided here.

[~RouterB] interface gigabitethernet 2/0/0[~RouterB-GigabitEthernet2/0/0] mld enable[~RouterB-GigabitEthernet2/0/0] commit[~RouterB-GigabitEthernet2/0/0] quit

Step 4 Configure C-BSRs and C-RPs.

# Configure the locations of C-BSRs and C-RPs on Router D.

[~RouterD] pim-ipv6[~RouterD-pim6] c-rp 2004::2[~RouterD-pim6] c-bsr 2004::2[~RouterD-pim6] commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

318

Page 329: Configuration Guide - IP Multicast

[~RouterD-pim6] quit

Step 5 Configure the range of multicast groups that each C-RP serves and the range of valid C-RPaddresses on the C-BSRs.

# On Router D, configure the range of multicast groups served by each C-RP to ff0e::1/64 andthe range of valid C-RP addresses to 2004::2/128.

[~RouterD] acl ipv6 number 3000[~RouterD-acl6-advance-3000] rule permit source 2004::2 128 destination ff0e::1 64[~RouterD-acl6-advance-3000] quit[~RouterD] pim-ipv6[~RouterD-pim6] crp-policy 3000[~RouterD-pim6] commit[~RouterD-pim6] quit

Step 6 Configure a policy for filtering Register messages on all the C-RPs.

# On Router D, configure a policy for filtering Register messages, allowing an RP to receiveonly Register messages sent by multicast sources in the range of 2001::5/64 to multicast groupsin the range of ff0e::1/64.

[~RouterD] acl ipv6 number 3001[~RouterD-acl6-advance-3001] rule permit source 2001::5 64 destination ff0e::1 64[~RouterD-acl6-advance-3001] quit[~RouterD] pim-ipv6[~RouterD-pim6] register-policy 3001[~RouterD-pim6] commit[~RouterD-pim6] quit

Step 7 Configure source address-based and BSR address-based filtering policies on all the routers.

# The configurations of Router B, Router C, and Router D are similar to those of Router A, andare not provided here.

[~RouterA] acl ipv6 number 2000[~RouterA-acl6-basic-2000] rule permit source 2001::5 64[~RouterA-acl6-basic-2000] quit[~RouterA] acl ipv6 number 2001[~RouterA-acl6-basic-2001] rule permit source 2004::2 64[~RouterA-acl6-basic-2001] quit[~RouterA] pim-ipv6[~RouterA-pim6] source-policy 2000[~RouterA-pim6] bsr-policy 2001[~RouterA-pim6] commit[~RouterA-pim6] quit

Step 8 Verify the configuration.

# Run the display pim ipv6 bsr-info command to check BSR information on each router. Youcan see that the BSR address-based filtering policy takes effect. For example, the BSRinformation on Router B and Router D is displayed:

<RouterB> display pim ipv6 bsr-infoVPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 2004::2 Priority: 0 Hash mask length: 126 State: Accept Preferred Uptime: 00:04:22 Expires: 00:01:46 C-RP Count: 1<RouterD> display pim ipv6 bsr-infoVPN-Instance: public net Elected AdminScope BSR Count: 0 Elected BSR Address: 2004::2

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

319

Page 330: Configuration Guide - IP Multicast

Priority: 0 Hash mask length: 126 State: Elected Uptime: 00:01:10 Next BSR message scheduled at: 00:00:48 C-RP Count: 1 Candidate AdminScope BSR Count: 0 Candidate BSR Address: 2004::2 Priority: 0 Hash mask length: 126 State: Elected Wait to be BSR: 0

# Run the display pim ipv6 rp-info command to check RP information on each router. Forexample, the RP information on Router B is displayed:

<RouterB> display pim ipv6 rp-infoVPN-Instance: public net PIM-SM BSR RP information: Group/MaskLen: FF3E::1/64 RP: 2004::2 Priority: 192 Uptime: 00:05:19 Expires: 00:02:11

# Configure the multicast source S (2001::5) to send multicast packets to multicast group FF3E::1 (within the SSM group address range) and multicast group FF0E::1 (beyond the SSM groupaddress range). Host A and Host C want to receive information of multicast group FF0E::1. HostB wants to receive multicast information sent by S (2001::5) to multicast group FF3E::1. Thehosts can receive multicast data sent by the valid multicast source. # Run the display pim ipv6routing-table command to check the IPv6 PIM routing table on each router.

<RouterA> display pim ipv6 routing-tableVPN-Instance: public net Total 0 (*, G) entry; 2 (S, G) entries (2001::5, FF0E::1) RP: 2004::2 Protocol: pim-sm, Flag: SPT LOC ACT UpTime: 00:02:15 Upstream interface: GigabitEthernet1/0/0 Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 3 1: Register Protocol: pim-sm, UpTime: 00:02:15, Expires: - 2: Pos2/0/0 Protocol: pim-sm, UpTime: 00:02:15, Expires: 00:03:15 3: Pos3/0/0 Protocol: pim-sm, UpTime: 00:02:15, Expires: 00:03:15(2001::5, FF3E::1) Protocol: pim-ssm, Flag: LOC SG_RCVR UpTime: 00:00:11 Upstream interface: GigabitEthernet1/0/0 Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: Pos2/0/0 Protocol: pim-ssm, UpTime: 00:00:11, Expires: 00:03:19<RouterB> display pim ipv6 routing-tableVPN-Instance: public net Total 1 (*, G) entry; 2 (S, G) entries (*, FF0E::1) RP: 2004::2 Protocol: pim-sm, Flag: WC UpTime: 00:14:44 Upstream interface: Pos3/0/0

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

320

Page 331: Configuration Guide - IP Multicast

Upstream neighbor: FE80::9D62:0:FDC5:2 RPF prime neighbor: FE80::9D62:0:FDC5:2 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: mld, UpTime: 00:14:44, Expires: -(2001::5, FF0E::1) RP: 2004::2 Protocol: pim-sm, Flag: SPT ACT UpTime: 00:2:42 Upstream interface: Pos1/0/0 Upstream neighbor: FE80::A01:10C:1 RPF prime neighbor: FE80::A01:10C:1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: pim-sm, UpTime: 00:14:44, Expires: -(2001::5, FF3E::1) Protocol: pim-ssm, Flag: SG_RCVR UpTime: 00:08:02 Upstream interface: Pos1/0/0 Upstream neighbor: FE80::A01:10C:1 RPF prime neighbor: FE80::A01:10C:1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: pim-ssm, UpTime: 00:08:02, Expires: -<RouterC> display pim ipv6 routing-tableVPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry (*, FF0E::1) RP: 2004::2 Protocol: pim-sm, Flag: WC UpTime: 00:14:44 Upstream interface: Pos1/0/0 Upstream neighbor: FE80::7493:FE25:1 RPF prime neighbor: FE80::7493:FE25:1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: mld, UpTime: 00:14:43, Expires: -(2001::5, FF0E::1) RP: 2004::2 Protocol: pim-sm, Flag: WC UpTime: 00:2:42 Upstream interface: Pos1/0/0 Upstream neighbor: FE80::7493:FE25:1 RPF prime neighbor: FE80::7493:FE25:1 Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet2/0/0 Protocol: mld, UpTime: 00:02:14, Expires: -<RouterD> display pim ipv6 routing-tableVPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry (*, FF0E::1) RP: 2004::2 (local) Protocol: pim-sm, Flag: WC UpTime: 00:16:56 Upstream interface: Register Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 2 1: Pos2/0/0 Protocol: pim-sm, UpTime: 00:16:56, Expires: 00:02:34 2: Pos3/0/0 Protocol: pim-sm, UpTime: 00:07:56, Expires: 00:02:35 (2001::5, FF0E::1)

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

321

Page 332: Configuration Guide - IP Multicast

RP: 2004::2 (local) Protocol: pim-sm, Flag: SWT ACT UpTime: 00:02:54 Upstream interface: Pos1/0/0 Upstream neighbor: FE81::659:10C:3 RPF prime neighbor: FE81::659:10C:3 Downstream interface(s) information: Total number of downstreams: 1 1: Pos3/0/0 Protocol: pim-sm, UpTime: 00:02:54, Expires: 00:02:36

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast ipv6 routing-enable#acl ipv6 number 2000 rule 0 permit source FF3E::1/64#interface GigabitEthernet1/0/0 undo shutdown ipv6 enable ipv6 address 2001::1/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#interface Pos2/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2002::1/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#interface Pos3/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2003::1/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#interface Pos4/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2006::1/64 pim ipv6 bsr-boundary pim ipv6 sm ospfv3 1 area 0.0.0.0#ospfv3 1 router-id 1.1.1.1 area 0.0.0.0#pim-ipv6 ssm-policy 2000#return

l Configuration file of Router B#sysname RouterB

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

322

Page 333: Configuration Guide - IP Multicast

#multicast ipv6 routing-enable#acl ipv6 number 2000 rule 0 permit source FF3E::1/64#interface Pos1/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2002::2/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#interface GigabitEthernet2/0/0 undo shutdown ipv6 enable ipv6 address 3001::1/64 pim ipv6 sm mld enable ospfv3 1 area 0.0.0.0#interface Pos3/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2004::1/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#ospfv3 1 router-id 2.2.2.2 area 0.0.0.0#pim-ipv6 ssm-policy 2000#return

l Configuration file of Router C#sysname RouterC#multicast ipv6 routing-enable#acl ipv6 number 2000 rule 0 permit source FF3E::1/64#interface Pos1/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2005::2/64 pim ipv6 sm ospfv3 1 area 0.0.0.0#interface GigabitEthernet2/0/0 undo shutdown ipv6 enable ipv6 address 4001::1/64 pim ipv6 sm mld enable ospfv3 1 area 0.0.0.0#ospfv3 1 router-id 3.3.3.3 area 0.0.0.0#pim-ipv6 ssm-policy 2000

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

323

Page 334: Configuration Guide - IP Multicast

#return

l Configuration file of Router D# sysname RouterD# ipv6# multicast ipv6 routing-enable#acl ipv6 number 2000 rule 0 permit source FF3E::1/64#acl ipv6 number 2001 rule 0 permit source FF0E::1/64#interface Pos1/0/0 undo shutdown ipv6 enable link-protocol ppp ipv6 address 2003::2/64 ospfv3 1 area 0.0.0.0 pim ipv6 sm#interface Pos2/0/0 undo shutdown ipv6 enable link-protocol ppp ipv6 address 2004::2/64 ospfv3 1 area 0.0.0.0 pim ipv6 sm#interface Pos3/0/0 undo shutdown ipv6 enable link-protocol ppp ipv6 address 2005::1/64 ospfv3 1 area 0.0.0.0 pim ipv6 sm#ospfv3 1 router-id 4.4.4.4 area 0.0.0.0#pim-ipv6 c-bsr 2004::2 c-rp 2004::2 group-policy 2001#pim-ipv6 ssm-policy 2000#return

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 8 IPv6 PIM Configuration

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

324

Page 335: Configuration Guide - IP Multicast

9 IPv6 Multicast Routing Management

About This Chapter

IPv6 multicast routing management enables a system to maintain multiple IPv6 multicast routingprotocols and control multicast routing and forwarding by exchanging messages between thecontrol plane and the forwarding plane.

9.1 Overview of IPv6 Multicast Routing ManagementIPv6 multicast routing and forwarding is based on IPv6 multicast routing and forwarding tables.IPv6 multicast routing management functions to control the multicast routing and forwarding.

9.2 IPv6 Multicast Route Management Features Supported by the NE5000EIPv6 multicast route management features supported by the NE5000E include IPv6 multicastload splitting and control of the multicast forwarding scope.

9.3 Configuring IPv6 Multicast Load SplittingIPv6 multicast load splitting is applicable to the scenario where multiple equal-cost IPv6 unicastroutes of the same type exist. If multiple equal-cost routes exist on a network, IPv6 multicastload splitting can be performed for multicast traffic based on different policies. This optimizesnetwork traffic transmission in the case of multiple IPv6 multicast data flows.

9.4 Controlling the IPv6 Multicast Forwarding RangeMulticast data for each multicast group on an IPv6 network needs to be transmitted in a certainrange. You can control the IPv6 multicast forwarding range by setting a minimum TTL valuefor IPv6 multicast packets or an IPv6 multicast forwarding boundary.

9.5 Configuration ExamplesThis section provides an example for configuring IPv6 multicast load splitting.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 9 IPv6 Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

325

Page 336: Configuration Guide - IP Multicast

9.1 Overview of IPv6 Multicast Routing ManagementIPv6 multicast routing and forwarding is based on IPv6 multicast routing and forwarding tables.IPv6 multicast routing management functions to control the multicast routing and forwarding.

In IPv6 multicast implementation on the NE5000E, IPv6 multicast routing and forwardinginvolves two aspects:

l Each multicast routing protocol has a routing table, for example, a PIM routing table.l Routing entries of each protocol are directly delivered to a multicast forwarding table and

the multicast forwarding table controls the forwarding of multicast data packets.

Multicast routing protocols use the Reverse Path Forwarding (RPF) to generate multicast routingentries, ensuring that multicast data packets are transmitted along correct paths. A systemperforms an RPF check based on the following types of routes:

l IPv6 unicast routesAn IPv6 unicast routing table has shortest paths to all destinations.

l Static IPv6 multicast routesA static IPv6 multicast routing table contains statically configured RPF routes.

IPv6 multicast route management is used to manage IPv6 multicast routing tables, control thegeneration of IPv6 multicast routes, and change IPv6 multicast RPF routes.

9.2 IPv6 Multicast Route Management Features Supportedby the NE5000E

IPv6 multicast route management features supported by the NE5000E include IPv6 multicastload splitting and control of the multicast forwarding scope.

IPv6 Multicast Load SplittingBy default, the router running IPv6 multicast selects the outbound interface of the optimal routeto the mutlicast source or RP to receive packets. If multiple optimal routes exist, the router selectsthe outbound interface of the optimal route with the highest next hop address. If multiple equal-cost unicast routes exist, multicast load splitting can be implemented among the routes based onconfigured policies.

There are four multicast load splitting policies: stable-preferred, source address-based, groupaddress-based, and source and group addresses-based. The four load splitting policies aremutually exclusive.

Control of the IPv6 Multicast Forwarding RangeOn an IPv6 network, the multicast information to which each multicast group corresponds istransmitted in a certain range. The NE5000E allows you to define the multicast forwarding rangeby using either of the following methods:

l Set the TTL threshold for IPv6 multicast forwarding on an interface to limit the transmissiondistance of multicast packets.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 9 IPv6 Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

326

Page 337: Configuration Guide - IP Multicast

l Configure an IPv6 multicast forwarding boundary on an interface to form a closed multicastforwarding area.

9.3 Configuring IPv6 Multicast Load SplittingIPv6 multicast load splitting is applicable to the scenario where multiple equal-cost IPv6 unicastroutes of the same type exist. If multiple equal-cost routes exist on a network, IPv6 multicastload splitting can be performed for multicast traffic based on different policies. This optimizesnetwork traffic transmission in the case of multiple IPv6 multicast data flows.

ContextIPv6 multicast routing is based on the RPF check. Based on RPF check results, the router selectsonly one route for forwarding IPv6 multicast data. In the case of heavy IPv6 multicast traffic,network congestion may occur, which will affect IPv6 multicast services.

IPv6 multicast load splitting extends multicast route selection rules. It solves the problem thatthe multicast route selection completely depends on the RPF check. After multicast load splittingis configured on a network with multiple equal-cost and optimal routes, devices may select allthe equal-cost routes for forwarding IPv6 multicast data.

Pre-configuration TasksBefore configuring IPv6 multicast load splitting, complete the following tasks:

l Configuring an IPv6 unicast routing protocol to ensure that IPv6 unicast routes arereachable on the network

l Configuring basic IPv6 multicast functions

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:multicast ipv6 load-splitting { stable-preferred | source | group | source-group }

IPv6 multicast load splitting is configured.

l stable-preferred: indicates stable-preferred load splitting. This policy is applicable to thescenario where IPv6 multicast services are stable.When equal-cost routes are added or deleted, the router automatically balances entries;however, when IPv6 multicast routing entries are deleted, the router does not automaticallyadjust the entries on the equal-cost routes.

l group: indicates group address-based load splitting. This policy is applicable to the scenarioof one source to multiple groups.

l source: indicates source address-based load splitting. This policy is applicable to the scenarioof one group to multiple sources.

l source-group: indicates source and group addresses-based load splitting. This policy isapplicable to the scenario of multiple sources to multiple groups.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 9 IPv6 Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

327

Page 338: Configuration Guide - IP Multicast

Step 3 Run:commit

The configuration is committed.

----End

Checking the Configuration

Run the display multicast ipv6 rpf-info ipv6-source-address command. You can view the RPFrouting information of a specified multicast source, RPF interface, RPF neighbor, preferred routeand its type, and configured IPv6 multicast load splitting policy. For example:

<HUAWEI> display multicast ipv6 rpf-info 2001::5VPN-Instance: public net RPF information about source: 2001::5 RPF interface: GigabitEthernet6/0/0, RPF neighbor: 2001::2 Referenced route/mask: 2001::/64 Referenced route type: unicast Route selection rule: preference-preferred Load splitting rule: stable-preferred

9.4 Controlling the IPv6 Multicast Forwarding RangeMulticast data for each multicast group on an IPv6 network needs to be transmitted in a certainrange. You can control the IPv6 multicast forwarding range by setting a minimum TTL valuefor IPv6 multicast packets or an IPv6 multicast forwarding boundary.

Applicable Environment

Multicast data for each multicast group on an IPv6 network needs to be transmitted in a certainrange. The NE5000E supports the following methods for controlling the IPv6 multicastforwarding range:

l Configure an IPv6 multicast forwarding boundary on an interface to form a closed multicastforwarding area. After an interface is configured with a forwarding boundary for a specificgroup, the interface does not forward or receive any IPv6 multicast packet for this group.

l Set a minimum TTL value for IPv6 multicast packets to restrict the transmission distanceof IPv6 multicast packets. The interface forwards only the IPv6 multicast packets with theTTL value being equal to or greater than the minimum TTL value. If the TTL value of apacket is smaller than the minimum TTL value, the interface discards the packet.

Pre-configuration Tasks

Before controlling the IPv6 multicast forwarding range, complete the following tasks:

l Configuring an IPv6 unicast routing protocol to ensure normal IPv6 unicast routing on thenetwork

l Configuring basic IPv6 multicast functions

Configuration Procedures

Choose one or more configuration tasks (excluding "Checking the Configuration") as needed.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 9 IPv6 Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

328

Page 339: Configuration Guide - IP Multicast

9.4.1 Setting a Minimum TTL Value for IPv6 Multicast PacketsMulticast data for each multicast group on an IPv6 network needs to be transmitted in a certainrange. You can control the IPv6 multicast forwarding range by setting a minimum TTL valuefor IPv6 multicast packets.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The IPv6 PIM interface view is displayed.

Step 3 Run:multicast ipv6 minimum-ttl ttl-value

A minimum TTL value is set for IPv6 multicast packets.

By default, the minimum TTL value of IPv6 multicast packets allowed to be sent is 1.

Step 4 Run:commit

The configuration is committed.

----End

9.4.2 Configuring an IPv6 Multicast Forwarding BoundaryAfter an interface is configured with a forwarding boundary for a specific group, the interfacedoes not forward or receive any IPv6 multicast packet for this group.

Procedure

Step 1 Run:system-view

The system view is displayed.

Step 2 Run:interface interface-type interface-number

The IPv6 PIM interface view is displayed.

Step 3 Run:multicast ipv6 boundary ipv6-group-address ipv6-group-mask-length

An IPv6 multicast forwarding boundary is configured.

By default, an interface does not restrict the IPv6 multicast forwarding range.

Step 4 Run:commit

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 9 IPv6 Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

329

Page 340: Configuration Guide - IP Multicast

The configuration is committed.

----End

9.5 Configuration ExamplesThis section provides an example for configuring IPv6 multicast load splitting.

9.5.1 Example for Configuring IPv6 Multicast Load SplittingOn an IPv6 PIM-SM network stably running multicast services, you can configure a stable-preferred IPv6 load splitting policy to balance IPv6 traffic among equal-cost routes.

Networking Requirements

CAUTIONOn a single NE5000E, an interface is numbered in the format of slot number/card number/interface number. On an NE5000E cluster, an interface is numbered in the format of chassis ID/slot number/card number/interface number. If the slot number is specified, the chassis ID of theslot must also be specified.

On the network shown in Figure 9-1, Host A needs to steadily receive multicast data from themulticast source and there are three equal-cost routes between Host A and the multicast source.A multicast load splitting policy is required to evenly distributes entries to equal-cost routes,thereby implementing load balancing among the equal-cost routes.

Figure 9-1 Networking diagram of configuring IPv6 multicast load splitting

RouterA

GE1/0/0POS2/0/2POS2/0/3

POS2/0/1POS1/0/0

POS1/0/0

POS1/0/0

RouterB

RouterC

RouterD

POS1/0/1

POS2/0/0

POS2/0/0

POS2/0/0

POS1/0/2

POS1/0/3GE2/0/0

Loopback0HostA

Source

RouterE

PIM-SM

Device Interface IP Address Device Interface IP Address

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 9 IPv6 Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

330

Page 341: Configuration Guide - IP Multicast

Router A GE 1/0/0 2001::2/64 Router C POS 1/0/0 2003::2/64

POS 2/0/1 2002::1/64 POS 2/0/0 2006::1/64

POS 2/0/2 2003::1/64 Router D POS 1/0/0 2004::2/64

POS 2/0/3 2004::1/64 POS 2/0/0 2007::1/64

LoopBack0 2000::1/64 Router E POS 1/0/1 2005::2/64

Router B POS 1/0/0 2002::2/64 POS 1/0/2 2006::2/64

POS 2/0/0 2005::1/64 POS 1/0/3 2007::2/64

GE 2/0/0 3001::1/64

PrecautionsWhen configuring IPv6 multicast load splitting, note the following points:

l IPv6 PIM-SM and then MLD must be enabled on the interfaces connected to hosts.l Four IPv6 load splitting policies are mutually exclusive. You can configure one policy as

required.

Configuration RoadmapThe configuration roadmap is as follows:

1. Configure IPv6 addresses for interfaces on each router.2. Configure IS-IS IPv6 to make all router routable and set the costs of the routes to be the

same.3. Enable IPv6 multicast on each router and IPv6 PIM-SM on each interface of the routers.

Configure the loopback interface on Router A as an RP.4. Configure stable-preferred IPv6 multicast load splitting on Router E to ensure the stability

of IPv6 multicast services.5. Because Host A requires to receive data from some multicast groups for a long period,

configure the interfaces at the host side Router E to statically join the multicast groups inbatches.

Data PreparationTo complete the configuration, you need the following data.

l IPv6 address of the multicast sourcel IPv6 addresses for interfaces on each routerl Addresses of the multicast groups that interfaces at the host side of Router E statically join

in batches

Procedure

Step 1 Configure IPv6 addresses for interfaces on each router according to Figure 9-1. Theconfiguration details are not provided here.

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 9 IPv6 Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

331

Page 342: Configuration Guide - IP Multicast

Step 2 Configure IS-IS IPv6 to make all router routable and set the costs of the routes to be the same.The configuration details are not provided here.

Step 3 Enable IPv6 multicast on each router and IPv6 PIM-SM on each interface of the routers.

# Configure Router A. Configurations on Routers B, C, D, and E are similar to those onRouter A and therefore their configuration details are not provided here.

[~RouterA] multicast ipv6 routing-enable[~RouterA] interface gigabitethernet 1/0/0[~RouterA-GigabitEthernet1/0/0] pim ipv6 sm[~RouterA-GigabitEthernet1/0/0] quit[~RouterA] interface pos 2/0/1[~RouterA-Pos2/0/1] pim ipv6 sm[~RouterA-Pos2/0/1] quit[~RouterA] interface pos 2/0/2[~RouterA-Pos2/0/2] pim ipv6 sm[~RouterA-Pos2/0/2] quit[~RouterA] interface pos 2/0/3[~RouterA-Pos2/0/3] pim ipv6 sm[~RouterA-Pos2/0/3] quit[~RouterA] interface loopback 0[~RouterA-LoopBack0] pim ipv6 sm[~RouterA-LoopBack0] commit[~RouterA-LoopBack0] quit

Step 4 Configure an RP on Router A.

# Configure loopback 0 on Router A as an RP.

[~RouterA] pim-ipv6[~RouterA-pim6] c-bsr 2000::1[~RouterA-pim6] c-rp 2000::1[~RouterA-pim6] commit[~RouterA-pim6] quit

Step 5 Configure stable-preferred IPv6 load splitting on Router E.[~RouterE] multicast ipv6 load-splitting stable-preferred[~RouterE] commit

Step 6 Configure the interfaces at the host side Router E to statically join multicast groups in batches.

# Configure GE 2/0/0 to statically join groups FF13::1 to FF13::3 in batches.

[~RouterE] interface gigabitethernet 2/0/0[~RouterE-GigabitEthernet2/0/0] mld static-group ff13::1 inc-step-mask 128 number 3[~RouterE-GigabitEthernet2/0/0] commit[~RouterE-GigabitEthernet2/0/0] quit

Step 7 Verify the configuration.

# Multicast source (2001::1/64) sends multicast data to groups FF13::1 to FF13::3. Host A canreceive the multicast data from the multicast source. View brief information about the IPv6 PIMrouting table on Router E.

<RouterE> display pim ipv6 routing-table brief VPN-Instance: public net Total 3 (*, G) entries; 3 (S, G) entries

00001.(*, FF13::1) Upstream interface:Pos1/0/1 Number of downstream:1 00002.(2001::1, FF13::1) Upstream interface:Pos1/0/1 Number of downstream:1 00003.(*, FF13::2)

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 9 IPv6 Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

332

Page 343: Configuration Guide - IP Multicast

Upstream interface:Pos1/0/2 Number of downstream:1 00004.(2001::1, FF13::2) Upstream interface:Pos1/0/2 Number of downstream:1 00005.(*, FF13::3) Upstream interface:Pos1/0/3 Number of downstream:1 00006.(2001::1, FF13::3) Upstream interface:Pos1/0/3 Number of downstream:1

(*, G) and (S, G) entries are distributed to the three equal-cost routes in balance, with the upstreaminterfaces being POS 1/0/1, POS 1/0/2, and POS 1/0/3 respectively.

NOTE

The load splitting algorithm processes (*, G) and (S, G) entries separately and the process rules are thesame.

----End

Configuration Filesl Configuration file of Router A

#sysname RouterA#multicast ipv6 routing-enable#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0001.00#interface GigabitEthernet1/0/0 undo shutdown ipv6 enable ipv6 address 2001::2/64 pim ipv6 sm isis ipv6 enable 1#interface Pos2/0/1 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2002::1/64 pim ipv6 sm isis ipv6 enable 1#interface Pos2/0/2 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2003::1/64 pim ipv6 sm isis ipv6 enable 1#interface Pos2/0/3 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2004::1/64 pim ipv6 sm isis ipv6 enable 1#interface LoopBack0 ipv6 enable ipv6 address 2000::1/64

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 9 IPv6 Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

333

Page 344: Configuration Guide - IP Multicast

pim ipv6 sm isis ipv6 enable 1#pim-ipv6 c-bsr 2000::1 c-rp 2000::1#return

l Configuration file of Router B#sysname RouterB#multicast ipv6 routing-enable#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0002.00#interface Pos1/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2002::2/64 pim ipv6 sm isis ipv6 enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2005::1/64 pim ipv6 sm isis ipv6 enable 1#return

l Configuration file of Router C#sysname RouterC#multicast ipv6 routing-enable#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0003.00#interface Pos1/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2003::2/64 pim ipv6 sm isis ipv6 enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2006::1/64 pim ipv6 sm isis ipv6 enable 1#return

l Configuration file of Router D#sysname RouterD#multicast ipv6 routing-enable

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 9 IPv6 Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

334

Page 345: Configuration Guide - IP Multicast

#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0004.00#interface Pos1/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2004::2/64 pim ipv6 sm isis ipv6 enable 1#interface Pos2/0/0 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2007::1/64 pim ipv6 sm isis ipv6 enable 1#return

l Configuration file of Router E#sysname RouterE#multicast ipv6 routing-enablemulticast ipv6 load-splitting stable-preferred#isis 1 ipv6 enable topology standard network-entity 10.0000.0000.0005.00#interface GigabitEthernet2/0/0 undo shutdown ipv6 enable ipv6 address 3001::1/64 pim ipv6 sm mld static-group FF13::1 inc-step-mask 128 number 3 isis ipv6 enable 1#interface Pos1/0/1 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2005::2/64 pim ipv6 sm isis ipv6 enable 1#interface Pos1/0/2 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2006::2/64 pim ipv6 sm isis ipv6 enable 1#interface Pos1/0/3 undo shutdown link-protocol ppp ipv6 enable ipv6 address 2007::2/64 pim ipv6 sm isis ipv6 enable 1#return

HUAWEI NetEngine5000E Core RouterConfiguration Guide - IP Multicast 9 IPv6 Multicast Routing Management

Issue 01 (2011-10-15) Huawei Proprietary and ConfidentialCopyright © Huawei Technologies Co., Ltd.

335