09-IP Multicast Configuration Guide

HomeSupportConfigure & DeployConfiguration GuidesH3C MSR1000[2600][3600] Routers Configuration Guides(V9)-R9119-6W10009-IP Multicast Configuration Guide
06-MSDP configuration
Title Size Download
06-MSDP configuration 412.19 KB

Configuring MSDP

About MSDP

Multicast Source Discovery Protocol (MSDP) is an inter-domain multicast solution that addresses the interconnection of PIM-SM domains. It discovers multicast source information in other PIM-SM domains.

MSDP is applicable only to the ASM model.

How MSDP works

MSDP peer relationships are established between appropriate devices on the network, so that the RPs of different PIM-SM domains are interconnected with one another. These MSDP peers exchange source active (SA) messages, so that the multicast source information is shared among these domains.

For more information about DRs, BSRs, C-BSRs, RPs, C-RPs, SPTs, and RPTs, see "Configuring PIM."

MSDP peers

One or more pairs of MSDP peers on the network form an MSDP interconnection map.

Figure 1 MSDP peer locations on the network

 

As shown in Figure 1, an MSDP peer can be created on any PIM-SM device. MSDP peers created on PIM-SM devices that assume different roles function differently.

·     MSDP peers created on RPs:

¡     Source-side MSDP peer—MSDP peer closest to the multicast source, such as RP 1. The source-side RP creates and sends SA messages to its remote MSDP peer to notify the MSDP peer of the locally registered multicast source information.

A source-side MSDP peer must be created on the source-side RP. Otherwise, it cannot advertise the multicast source information out of the PIM-SM domain.

¡     Receiver-side MSDP peer—MSDP peer closest to the receivers, typically the receiver-side RP, such as RP 3. After receiving an SA message, the receiver-side MSDP peer resolves the multicast source information carried in the message. Then, it joins the SPT rooted at the multicast source across the PIM-SM domains. When multicast data from the multicast source arrives, the receiver-side MSDP peer forwards the data to the receivers along the RPT.

¡     Intermediate MSDP peer—MSDP peer with multiple remote MSDP peers, such as RP 2. An intermediate MSDP peer forwards SA messages received from one remote MSDP peer to other remote MSDP peers. It acts as a relay for forwarding multicast source information.

·     MSDP peers created on PIM-SM devices that are not RPs:

Device A and Device B are MSDP peers on multicast devices that are not RPs. Such MSDP peers only forward SA messages.

In a PIM-SM network using the BSR mechanism, the RP is dynamically elected from C-RPs. A PIM-SM network typically has multiple C-RPs to ensure network robustness. Because the RP election result is unpredictable, MSDP peering relationships must be built between all C-RPs to always keep the winning C-RP on the MSDP interconnection map. Losing C-RPs assume the role of common PIM-SM devices on this map.

Inter-domain multicast delivery through MSDP

As shown in Figure 2, an active source (Source) exists in the domain PIM-SM 1, and RP 1 has learned the existence of Source through multicast source registration. RPs in PIM-SM 2 and PIM-SM 3 also seek the location of Source so that multicast traffic from Source can be sent to their receivers. MSDP peering relationships must be established between RP 1 and RP 3 and between RP 3 and RP 2.

Figure 2 Inter-domain multicast delivery through MSDP

 

The process of implementing PIM-SM inter-domain multicast delivery by leveraging MSDP peers is as follows:

1.     When the multicast source in PIM-SM 1 sends the first multicast packet to multicast group G, DR 1 encapsulates the data within a register message. It sends the register message to RP 1, and RP 1 obtains information about the multicast source.

2.     As the source-side RP, RP 1 creates SA messages and periodically sends them to its MSDP peer.

An SA message contains the address of the multicast source (S), the multicast group address (G), and the address of the RP that has created this SA message (RP 1, in this example).

3.     On MSDP peers, each SA message undergoes an RPF check and multicast policy-based filtering. Only SA messages that have arrived along the correct path and passed the filtering are received and forwarded. This avoids delivery loops of SA messages. In addition, you can configure MSDP peers into an MSDP mesh group to avoid SA message flooding between MSDP peers. An MSDP mesh group refers to a group of MSDP peers that establish MSDP peering relationships with each other and share the same group name.

4.     SA messages are forwarded from one MSDP peer to another. Finally, information about the multicast source traverses all PIM-SM domains with MSDP peers (PIM-SM 2 and PIM-SM 3, in this example).

5.     After receiving the SA message that RP 1 created, RP 2 in PIM-SM 2 examines whether any receivers for the multicast group exist in the domain.

¡     If a receiver exists in the domain, the RPT for the multicast group G is maintained between RP 2 and the receivers. RP 2 creates an (S, G) entry and sends an (S, G) join message. The join message travels hop by hop toward the multicast source, and the SPT is established across the PIM-SM domains.

The subsequent multicast data flows to RP 2 along the SPT, and from RP 2 to the receiver-side DR along the RPT. After receiving the multicast data, the receiver-side DR determines whether to initiate an RPT-to-SPT switchover process based on its configuration.

¡     If no receivers exist in the domain, RP 2 neither creates an (S, G) entry nor sends a join message toward the multicast source.

In inter-domain multicasting using MSDP, once an RP gets information about a multicast source in another PIM-SM domain, it no longer relies on RPs in other PIM-SM domains. The receivers can override the RPs in other domains and directly join the multicast SPT rooted at the source.

MSDP peer-RPF forwarding

The MSDP peer-RPF check is used for forwarding SA messages on a network that runs MSDP. If the peer-RPF check succeeds, the SA message is accepted and forwarded. Otherwise, the SA message is discarded.

As shown in Figure 3:

·     There are five ASs on the network. IGP runs within each AS, and BGP or MBGP runs between these ASs.

·     Each AS contains a minimum of one PIM-SM domain, and each PIM-SM domain contains a minimum of one RP.

·     MSDP peering relationship has been established among these RPs.

RP 3, RP 4, and RP 5 are in the same MSDP mesh group.

RP 6 is configured as the static RPF peer of RP 7.

Figure 3 MSDP peer-RPF forwarding

 

The process of peer-RPF forwarding is as follows:

1.     RP 1 creates an SA message and forwards it to its peer RP 2.

2.     RP 2 determines that RP 1 is the RP that creates the SA message because the RP address in the SA message is the same as that of RP 1. Then, RP 2 accepts and forwards the SA message.

3.     RP 3 accepts and forwards the SA message, because RP 2 and RP 3 reside in the same AS and RP 2 is the next hop of RP 3 to RP 1.

4.     RP 4 and RP 5 accept the SA message, because RP 3 is in the same mesh group with them. Then, RP 4 and RP 5 forward the SA message to their peer RP 6 rather than other members of the mesh group.

5.     RP 4 and RP 5 reside in the closest AS in the route to RP 1. However, RP 6 accepts and forwards only the SA message from RP 5, because the IP address of RP 5 is higher than that of RP 4.

6.     RP 7 accepts and forwards the SA message, because RP 6 is its static RPF peer.

7.     RP 8 accepts and forwards the SA message, because RP 7 is the EBGP or MBGP next hop of the peer-RPF route to RP 1.

8.     RP 9 accepts the SA message, because RP 8 is the only RP of RP 9.

Anycast RP through MSDP

PIM-SM requires only one active RP to serve each multicast group. If the active RP fails, the multicast traffic might be interrupted. The Anycast RP mechanism enables redundancy backup between two or more RPs by configuring multiple RPs with the same IP address for one multicast group. A multicast source registers with the closest RP or a receiver joins the closest RP to implement source information synchronization.

For Anycast RP implemented through MSDP, all member RPs in the Anycast RP set have the same IP address, and MSDP peering connections are established between the RPs.

As shown in Figure 4, within a PIM-SM domain, a multicast source sends multicast data to multicast group G, and the receiver joins the multicast group. To implement Anycast RP through MSDP, complete the following tasks:

1.     Assign the same IP address (known as Anycast RP address, typically a private address) to an interface on Device A and Device B.

2.     Configure the interfaces as C-RPs.

3.     Establish an MSDP peering relationship between Device A and Device B.

Figure 4 Anycast RP through MSDP

 

The following describes how Anycast RP through MSDP is implemented:

1.     After receiving the multicast data from Source, the source-side DR registers with the closest RP (RP 1 in this example).

2.     After receiving the IGMP report message from the receiver, the receiver-side DR sends a join message toward the closest RP (RP 2 in this example). An RPT rooted at this RP is established.

3.     The RPs share the registered multicast source information through SA messages. After obtaining the multicast source information, RP 2 sends an (S, G) source-specific join message toward the source to create an SPT.

4.     When the multicast data reaches RP 2 along the SPT, the RP forwards the data along the RPT to the receiver. After receiving the multicast data, the receiver-side DR determines whether to initiate an RPT-to-SPT switchover process based on its configuration.

MSDP support for VPNs

Interfaces on the multicast devices in a VPN can set up MSDP peering relationships with each other. With the SA messages exchanged between MSDP peers, the multi-instance VPN implements the forwarding of multicast data across different PIM-SM domains.

To support MSDP for VPNs, a multicast device that runs MSDP maintains an independent set of MSDP mechanism for each VPN that it supports. These mechanisms include SA message cache, peering connection, timers, sending cache, and cache for exchanging PIM messages.

One VPN is isolated from another, and MSDP and PIM-SM messages can be exchanged only within the same VPN.

Protocols and standards

·     RFC 3618, Multicast Source Discovery Protocol (MSDP)

·     RFC 3446, Anycast Rendezvous Point (RP) mechanism using Protocol Independent Multicast (PIM) and Multicast Source Discovery Protocol (MSDP)

Restrictions: Hardware compatibility MSDP

Hardware

MSDP compatibility

MSR810, MSR810-W, MSR810-W-DB, MSR810-LM, MSR810-W-LM, MSR810-10-PoE, MSR810-LM-HK, MSR810-W-LM-HK, MSR810-LM-CNDE-SJK, MSR810-CNDE-SJK

Yes

MSR810-LMS, MSR810-LUS

No

MSR810-LMS-EA, MSR810-LME

Yes

MSR1004S-5G

Yes

MSR2600-6-X1, MSR2600-10-X1

Yes

MSR 2630

Yes

MSR3600-28, MSR3600-51

Yes

MSR3600-28-SI, MSR3600-51-SI

No

MSR3600-28-X1, MSR3600-28-X1-DP, MSR3600-51-X1, MSR3600-51-X1-DP

Yes

MSR3610-I-DP, MSR3610-IE-DP, MSR3610-IE-ES, MSR3610-IE-EAD, MSR-EAD-AK770, MSR3610-I-IG, MSR3610-IE-IG

Yes

MSR3610-X1, MSR3610-X1-DP, MSR3610-X1-DC, MSR3610-X1-DP-DC, MSR3620-X1, MSR3640-X1

Yes

MSR 3610, MSR 3620, MSR 3620-DP, MSR 3640, MSR 3660

Yes

MSR3610-G, MSR3620-G

Yes

Hardware

MSDP compatibility

MSR810-W-WiNet, MSR810-LM-WiNet

Yes

MSR830-4LM-WiNet

Yes

MSR830-5BEI-WiNet, MSR830-6EI-WiNet, MSR830-10BEI-WiNet

Yes

MSR830-6BHI-WiNet, MSR830-10BHI-WiNet

Yes

MSR2600-6-WiNet, MSR2600-10-X1-WiNet

Yes

MSR2630-WiNet

Yes

MSR3600-28-WiNet

Yes

MSR3610-X1-WiNet

Yes

MSR3610-WiNet, MSR3620-10-WiNet, MSR3620-DP-WiNet, MSR3620-WiNet, MSR3660-WiNet

Yes

Hardware

MSDP compatibility

MSR2630-XS

Yes

MSR3600-28-XS

Yes

MSR3610-XS

Yes

MSR3620-XS

Yes

MSR3610-I-XS

Yes

MSR3610-IE-XS

Yes

MSR3620-X1-XS

Yes

MSR3640-XS

Yes

Hardware

MSDP compatibility

MSR810-LM-GL

Yes

MSR810-W-LM-GL

Yes

MSR830-6EI-GL

Yes

MSR830-10EI-GL

Yes

MSR830-6HI-GL

Yes

MSR830-10HI-GL

Yes

MSR1004S-5G-GL

Yes

MSR2600-6-X1-GL

Yes

MSR3600-28-SI-GL

No

MSDP tasks at a glance

1.     Enabling MSDP

2.     Creating an MSDP peer

3.     (Optional.) Configuring a static RPF peer

4.     (Optional.) Configuring an MSDP mesh group

5.     (Optional.) Controlling MSDP peering connections

¡     Tearing down MSDP peering connections

¡     Setting the keepalive timer and peer hold timer for MSDP sessions

¡     Setting the MSDP connection retry interval

¡     Enabling MD5 authentication for TCP connection establishment

6.     (Optional.) Configuring SA message-related parameters

¡     Enabling multicast data encapsulation in SA messages

¡     Configuring the originating RP of SA messages

¡     Configuring SA request messages

¡     Configuring SA message policies

¡     Configuring the SA cache mechanism

7.     (Optional.) Configuring MSDP-based Anycast RP

Prerequisites for MSDP

Before you configure MSDP, complete the following tasks:

·     Configure a unicast routing protocol so that all devices in the domain can interoperate at the network layer.

·     Configure PIM-SM to enable intra-domain multicast.

Enabling MSDP

1.     Enter system view.

system-view

2.     Enable IP multicast routing and enter MRIB view.

multicast routing [ vpn-instance vpn-instance-name ]

By default, IP multicast routing is disabled.

For more information about this command, see IP Multicast Command Reference.

3.     Return to system view.

quit

4.     Enable MSDP and enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

By default, MSDP is disabled.

Creating an MSDP peer

About this task

An MSDP peering relationship is identified by an address pair (the addresses of the local MSDP peer and the remote MSDP peer). To create an MSDP peering connection, you must perform the following operation on both devices that are a pair of MSDP peers.

You can configure a description for an MSDP peer to easily distinguish an MSDP peer from other MSDP peers.

Restrictions and guidelines

If an MSDP peer and a BGP or MBGP peer share the same interface, specify the MSDP peer and the BGP or MBGP peer by using the same IP address.

Procedure

1.     Enter system view.

system-view

2.     Enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

3.     Create an MSDP peer.

peer peer-address connect-interface interface-type interface-number

4.     (Optional.) Configure a description for the MSDP peer.

peer peer-address description text

Configuring a static RPF peer

About this task

You can configure a static RPF peer, so the static RPF peer does not perform RPF check on received SA messages. This simplifies the RPF check mechanism for SA messages.

Restrictions and guidelines

If only one MSDP peer is configured on a device, this MSDP peer is considered to be a static RPF peer.

Procedure

1.     Enter system view.

system-view

2.     Enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

3.     Configure a static RPF peer.

static-rpf-peer peer-address [ rp-policy ip-prefix-name ]

Configuring an MSDP mesh group

About this task

This feature avoids SA message flooding among MSDP peers within an AS. It also simplifies the RPF check mechanism because you do not need to run BGP or MBGP between these MSDP peers.

When receiving an SA message from outside the mesh group, a member MSDP peer performs the RPF check on the SA message. If the SA message passes the RPF check, the member MSDP peer floods the message to the other members in the mesh group. When receiving an SA message from another member, the MSDP peer neither performs an RPF check on the message nor forwards the message to the other members.

To organize multiple MSDP peers in a mesh group, assign the same mesh group name to these MSDP peers.

Restrictions and guidelines

Before you configure an MSDP mesh group, make sure the devices are interconnected with one another.

If you assign an MSDP peer to multiple MSDP mesh groups, the most recent configuration takes effect.

Procedure

1.     Enter system view.

system-view

2.     Enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

3.     Configure an MSDP mesh group.

peer peer-address mesh-group name

By default, an MSDP peer does not belong to any mesh group.

Controlling MSDP peering connections

Tearing down MSDP peering connections

About this task

MSDP peers are interconnected over TCP (port number 639). You can tear down or re-establish MSDP peering connections to control SA message exchange between the MSDP peers. When the connection between two MSDP peers is torn down, SA messages are no longer delivered between them. No attempt is made to re-establish the connection. The configuration information for the peer remains unchanged.

Procedure

1.     Enter system view.

system-view

2.     Enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

3.     Tear down an MSDP peering connection.

shutdown peer-address

By default, an MSDP peering connection is active.

Setting the keepalive timer and peer hold timer for MSDP sessions

About this task

MSDP peers periodically send keepalive messages to each other to keep a session alive. When a session is established, an MSDP peer sends a keepalive message to its peer and starts a keepalive timer and a peer hold timer. When the keepalive timer expires, the MSDP peer sends a new keepalive message. If the MSDP peer receives an MSDP message from its peer before the peer hold timer expires, it resets the peer hold timer. Otherwise, the MSDP peer tears down the session.

Because MSDP peers cannot negotiate the keepalive timer and peer hold timer, you must configure the same keepalive timer and peer hold timer for the MSDP peers of a session. The keepalive timer must be smaller than the peer hold timer.

Procedure

1.     Enter system view.

system-view

2.     Enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

3.     Set the keepalive timer and peer hold timer for MSDP sessions.

timer keepalive keepalive holdtime

By default, the keepalive timer and peer hold timer are 60 seconds and 75 seconds, respectively.

This command immediately takes effect on an established session.

Setting the MSDP connection retry interval

About this task

A TCP connection is required when one of the following conditions exists:

·     A new MSDP peer is created.

·     A previously deactivated MSDP peering connection is reactivated.

·     A previously failed MSDP peer attempts to resume operation.

Perform this task to adjust the interval between MSDP peering connection attempts.

Procedure

1.     Enter system view.

system-view

2.     Enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

3.     Set the MSDP connection retry interval.

timer retry interval

The default setting is 30 seconds.

Enabling MD5 authentication for TCP connection establishment

About this task

To enhance MSDP security, enable MD5 authentication for both MSDP peers to establish a TCP connection. If the MD5 authentication fails, the TCP connection cannot be established.

Restrictions and guidelines

Configure the same authentication method and key for the MSDP peers involved in MD5 authentication to avoid authentication and TCP connection failures.

Procedure

1.     Enter system view.

system-view

2.     Enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

3.     Configure the device to perform MD5 authentication when establishing a TCP connection with an MSDP peer.

peer peer-address password { cipher | simple } password

By default, the device does not perform MD5 authentication when establishing a TCP connection with an MSDP peer.

Configuring SA message-related parameters

Enabling multicast data encapsulation in SA messages

About this task

Some multicast sources send multicast data at an interval longer than the aging time of (S, G) entries. In this case, the source-side DR must encapsulate multicast data packet-by-packet in register messages and send them to the source-side RP. The source-side RP transmits the (S, G) information to the remote RP through SA messages. Then, the remote RP sends join messages to the source-side DR and builds an SPT. Because the (S, G) entries have timed out, remote receivers can never receive the multicast data from the multicast source.

To avoid this problem, you can enable the source-side RP to encapsulate multicast data in SA messages. As a result, the source-side RP can forward the multicast data in SA messages to its remote MSDP peers. After receiving the SA messages, the remote RP decapsulates the SA messages and forwards the multicast data to the receivers in the local domain along the RPT.

Procedure

1.     Enter system view.

system-view

2.     Enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

3.     Enable multicast data encapsulation in SA messages.

encap-data-enable

By default, an SA message contains only (S, G) entries, but not the multicast data.

Configuring the originating RP of SA messages

About this task

This feature enables an interface to originate SA messages and to use its IP address as the RP address in SA messages. It is typically used in the Anycast-RP application.

By default, the RP address in SA messages originated by a member Anycast-RP is the Anycast-RP address. The SA messages will fail the RPF check on the other members because the RP address in SA messages is the same as the local RP address. In this case, source information cannot be exchanged within the Anycast-RP. To solve the problem, you must specify an interface other than the interface where the member Anycast-RP resides as the originating RP of SA messages.

Procedure

1.     Enter system view.

system-view

2.     Enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

3.     Configure an interface as the originating RP of SA messages.

originating-rp interface-type interface-number

By default, SA messages are originated by the actual RPs.

Configuring SA request messages

About this task

By default, after receiving a new join message, a device waits for an SA message to obtain the multicast source information and to join the SPT. You can enable the device to request source information by sending SA request messages to an MSDP peer. This reduces the join latency.

An SA request policy enables the device to filter SA request messages from an MSDP peer by using an ACL that specifies the multicast groups.

Prerequisites

Before you enable the device to send SA requests, make sure you have disabled the SA message cache mechanism by the undo cache-sa-enable command.

Procedure

1.     Enter system view.

system-view

2.     Enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

3.     Enable the device to send SA request messages to an MSDP peer.

peer peer-address request-sa-enable

By default, after receiving a new join message, a device does not send an SA request message to any MSDP peer. Instead, it waits for the next SA message from its MSDP peer.

4.     Configure an SA request policy for an MSDP peer.

peer peer-address sa-request-policy [ acl ipv4-acl-number ]

By default, no SA request policy exists, and all SA request from an MSDP peer are permitted.

Configuring SA message policies

About this task

To control the propagation of multicast source information, you can configure the following policies:

·     SA creation policy—Limits the multicast source information advertised in SA messages. This policy enables the device to advertise (S, G) entries based on the used ACL that specifies the multicast sources and groups.

·     SA incoming or outgoing policy—Limits the receipt or forwarding of SA messages. This policy enables the device to receive or forward SA messages based on the used ACL that specifies the multicast sources and groups.

·     The lower TTL threshold for multicast data packets encapsulated in SA messages—By default, multicast data packets are encapsulated in SA messages and forwarded to MSDP peers only if the TTL values in the packets are larger than zero. You can set the lower TTL threshold for multicast data packets encapsulated in SA messages that are sent to an MSDP peer. Then, only multicast data packets whose TTL values are larger than or equal to the configured value are encapsulated in SA messages. Only SA messages whose TTL values are larger than or equal to the configured value are forwarded to the specified MSDP peer. This controls the multicast data packet encapsulation and limits the propagation range of the SA messages.

Procedure

1.     Enter system view.

system-view

2.     Enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

3.     Configure an SA creation policy.

import-source [ acl ipv4-acl-number ]

4.     Configure an SA incoming or outgoing policy.

peer peer-address sa-policy { export | import } [ acl ipv4-acl-number ]

By default, no SA incoming or outgoing policy is configured. The device does not filter incoming or outgoing SA messages.

5.     Set the lower TTL threshold for multicast data packets encapsulated in SA messages.

peer peer-address minimum-ttl ttl-value

The default setting is 0.

Configuring the SA cache mechanism

About this task

The SA cache mechanism enables the device to locally cache (S, G) entries contained in SA messages. It reduces the time for obtaining multicast source information, but increases memory occupation.

With the SA cache mechanism enabled, when the device receives a new (*, G) join message, it searches its SA message cache first.

·     If no matching (S, G) entry is found, the device waits for the SA message that its MSDP peer sends in the next cycle.

·     If a matching (S, G) entry is found in the cache, the device joins the SPT rooted at S.

To protect the device against DoS attacks, you can set a limit on the number of (S, G) entries in the SA cache from an MSDP peer.

Procedure

1.     Enter system view.

system-view

2.     Enter MSDP view.

msdp [ vpn-instance vpn-instance-name ]

3.     Enable the SA cache mechanism.

cache-sa-enable

By default, the SA message cache mechanism is enabled. The device caches the (S, G) entries contained in the received SA messages.

4.     (Optional.) Set the maximum number of (S, G) entries in the SA cache from an MSDP peer.

peer peer-address sa-cache-maximum sa-limit

The default setting is 4294967295.

Configuring MSDP-based Anycast RP

1.     Configure the same RP on multiple devices.

For more information about configuring RP, see "Configuring PIM."

2.     Establish MSDP peer relationship between the devices. The RP address must be different from the MSDP peer address.

For more information about establishing MSDP peer relationships, see "Creating an MSDP peer."

The IP address for establishing MSDP peer relationship must be different from the Anycast RP address.

Display and maintenance commands for MSDP

Execute display commands in any view and reset commands in user view.

 

Task

Command

Display brief information about MSDP peers.

display msdp [ vpn-instance vpn-instance-name ] brief [ state { connect | disabled | established | listen | shutdown } ]

Display detailed status of MSDP peers.

display msdp [ vpn-instance vpn-instance-name ] peer-status [ peer-address ]

Display (S, G) entries in the SA cache.

display msdp [ vpn-instance vpn-instance-name ] sa-cache [ group-address | source-address | as-number ] *

Display the number of (S, G) entries in the SA cache.

display msdp [ vpn-instance vpn-instance-name ] sa-count [ as-number ]

Reset the TCP connection with an MSDP peer and clear statistics for the MSDP peer.

reset msdp [ vpn-instance vpn-instance-name ] peer [ peer-address ]

Delete (S, G) entries in the SA cache.

reset msdp [ vpn-instance vpn-instance-name ] sa-cache [ group-address ]

Clear statistics for an MSDP peer without resetting the TCP connection with the MSDP peer.

reset msdp [ vpn-instance vpn-instance-name ] statistics [ peer-address ]

MSDP configuration examples

Example: Configuring PIM-SM inter-domain multicast

Network configuration

As shown in Figure 5:

·     OSPF runs within AS 100 and AS 200. BGP runs between the two ASs.

·     Each PIM-SM domain has a minimum of one multicast source or receiver.

Set up MSDP peering relationships between the RPs in the PIM-SM domains to share multicast source information among the PIM-SM domains.

Figure 5 Network diagram

Table 1 Interface and IP address assignment

Device

Interface

IP address

Device

Interface

IP address

Router A

GE1/0/1

10.110.1.2/24

Router D

GE1/0/1

10.110.4.2/24

Router A

GE1/0/2

10.110.2.1/24

Router D

GE1/0/2

10.110.5.1/24

Router A

GE1/0/3

10.110.3.1/24

Router E

GE1/0/1

10.110.6.1/24

Router B

GE1/0/1

10.110.1.1/24

Router E

GE1/0/2

192.168.3.2/24

Router B

GE1/0/2

192.168.1.1/24

Router E

Loop0

3.3.3.3/32

Router B

Loop0

1.1.1.1/32

Router F

GE1/0/1

10.110.6.2/24

Router C

GE1/0/1

10.110.4.1/24

Router F

GE1/0/2

10.110.7.1/24

Router C

GE1/0/2

192.168.3.1/24

Source 1

10.110.2.100/24

Router C

GE1/0/3

192.168.1.2/24

Source 2

10.110.5.100/24

Router C

Loop0

2.2.2.2/32

 

 

 

 

Procedure

1.     Assign an IP address and subnet mask to each interface according to Figure 5. (Details not shown.)

2.     Configure OSPF on the routers in the ASs. (Details not shown.)

3.     Enable IP multicast routing, enable PIM-SM and IGMP, and configure a PIM-SM domain border:

# On Router A, enable IP multicast routing.

<RouterA> system-view

[RouterA] multicast routing

[RouterA-mrib] quit

# Enable PIM-SM on GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2.

[RouterA] interface gigabitethernet 1/0/1

[RouterA-GigabitEthernet1/0/1] pim sm

[RouterA-GigabitEthernet1/0/1] quit

[RouterA] interface gigabitethernet 1/0/2

[RouterA-GigabitEthernet1/0/2] pim sm

[RouterA-GigabitEthernet1/0/2] quit

# Enable IGMP on the receiver-side interface (GigabitEthernet 1/0/3).

[RouterA] interface gigabitethernet 1/0/3

[RouterA-GigabitEthernet1/0/3] igmp enable

[RouterA-GigabitEthernet1/0/3] quit

# Enable IP multicast routing, PIM-SM, and IGMP on Router B, Router C, Router D, Router E, and Router F in the same way Router A is configured. (Details not shown.)

# Configure a PIM domain border on Router B.

[RouterB] interface gigabitethernet 1/0/2

[RouterB-GigabitEthernet1/0/2] pim bsr-boundary

[RouterB-GigabitEthernet1/0/2] quit

# Configure a PIM domain border separately on Router C and Router E in the same way Router B is configured. (Details not shown.)

4.     Configure C-BSRs and C-RPs:

# Configure Loopback 0 on Router B as a C-BSR and a C-RP.

[RouterB] pim

[RouterB-pim] c-bsr 1.1.1.1

[RouterB-pim] c-rp 1.1.1.1

[RouterB-pim] quit

# Configure C-BSRs and C-RPs on Router C and Router E in the same way Router B is configured. (Details not shown.)

5.     Configure BGP for mutual route redistribution between BGP and OSPF:

# On Router B, configure an EBGP peer and redistribute OSPF routes.

[RouterB] bgp 100

[RouterB-bgp] router-id 1.1.1.1

[RouterB-bgp] peer 192.168.1.2 as-number 200

[RouterB-bgp] address-family ipv4

[RouterB-bgp-ipv4] import-route ospf 1

[RouterB-bgp-ipv4] peer 192.168.1.2 enable

[RouterB-bgp-ipv4] quit

[RouterB-bgp] quit

# On Router C, configure an EBGP peer and redistribute OSPF routes.

[RouterC] bgp 200

[RouterC-bgp] router-id 2.2.2.2

[RouterC-bgp] peer 192.168.1.1 as-number 100

[RouterC-bgp] address-family ipv4

[RouterC-bgp-ipv4] import-route ospf 1

[RouterB-bgp-ipv4] peer 192.168.1.1 enable

[RouterC-bgp-ipv4] quit

[RouterC-bgp] quit

# Redistribute BGP routing information into OSPF on Router B.

[RouterB] ospf 1

[RouterB-ospf-1] import-route bgp

[RouterB-ospf-1] quit

# Redistribute BGP routing information into OSPF on Router C.

[RouterC] ospf 1

[RouterC-ospf-1] import-route bgp

[RouterC-ospf-1] quit

6.     Configure MSDP peers:

# Configure an MSDP peer on Router B.

[RouterB] msdp

[RouterB-msdp] peer 192.168.1.2 connect-interface gigabitethernet 1/0/2

[RouterB-msdp] quit

# Configure MSDP peers on Router C.

[RouterC] msdp

[RouterC-msdp] peer 192.168.1.1 connect-interface gigabitethernet 1/0/3

[RouterC-msdp] peer 192.168.3.2 connect-interface gigabitethernet 1/0/2

[RouterC-msdp] quit

# Configure an MSDP peer on Router E.

[RouterE] msdp

[RouterE-msdp] peer 192.168.3.1 connect-interface gigabitethernet 1/0/2

[RouterE-msdp] quit

Verifying the configuration

# Display information about BGP IPv4 unicast peers or peer groups on Router B.

[RouterB] display bgp peer ipv4

 

 BGP local router ID: 1.1.1.1

 Local AS number: 100

 Total number of peers: 1                  Peers in established state: 1

 

  Peer                    AS  MsgRcvd  MsgSent OutQ PrefRcv Up/Down  State

 

  192.168.1.2            200       24       21    0       6 00:13:09 Established

# Display information about BGP IPv4 unicast peers or peer groups on Router C.

[RouterC] display bgp peer ipv4

 

 BGP local router ID: 2.2.2.2

 Local AS number: 200

 Total number of peers: 1                  Peers in established state: 1

 

  Peer                    AS  MsgRcvd  MsgSent OutQ PrefRcv Up/Down  State

 

  192.168.1.1            100       18       16    0       1 00:12:04 Established

# Display the BGP IPv4 unicast routing table on Router C.

[RouterC] display bgp routing-table ipv4

 

Total number of routes: 5

 

 BGP local router ID is 2.2.2.2

 Status codes: * - valid, > - best, d - dampened, h - history,

               s - suppressed, S - stale, i - internal, e - external

               Origin: i - IGP, e - EGP, ? - incomplete

 

     Network            NextHop         MED        LocPrf     PrefVal Path/Ogn

 

* >  1.1.1.1/32         192.168.1.1     0                     0       100?

* >i 2.2.2.2/32         0.0.0.0         0                     0       ?

* >  192.168.1.0        0.0.0.0         0                     0       ?

* >  192.168.1.1/32     0.0.0.0         0                     0       ?

* >  192.168.1.2/32     0.0.0.0         0                     0       ?

# Verify that hosts in PIM-SM 1 and PIM-SM 3 can receive the multicast data from Source 1 and Source 2. (Details not shown.)

# Display brief information about MSDP peer groups on Router B.

[RouterB] display msdp brief

Configured   Established  Listen       Connect      Shutdown     Disabled

1            1            0            0            0            0

 

Peer address    State       Up/Down time    AS         SA count   Reset count

192.168.1.2     Established 00:12:19        200        13         0

# Display brief information about MSDP peer groups on Router C.

[RouterC] display msdp brief

[RouterC] display msdp brief

Configured   Established  Listen       Connect      Shutdown     Disabled

2            2            0            0            0            0

 

Peer address    State       Up/Down time    AS         SA count   Reset count

192.168.3.2     Established 00:15:19        200        8          0

192.168.1.1     Established 00:06:11        100        13         0

# Display brief information about MSDP peer groups on Router E.

[RouterE] display msdp brief

[RouterE] display msdp brief

Configured   Established  Listen       Connect      Shutdown     Disabled

1            1            0            0            0            0

 

Peer address    State       Up/Down time    AS         SA count   Reset count

192.168.3.1     Established 01:12:19        200        8          0

# Display detailed MSDP peer information on Router B.

[RouterB] display msdp peer-status

MSDP Peer 192.168.1.2; AS 200

 Description:

 Information about connection status:

   State: Established

   Up/down time: 00:15:47

   Resets: 0

   Connection interface: GigabitEthernet1/0/2 (192.168.1.1)

   Received/sent messages: 16/16

   Discarded input messages: 0

   Discarded output messages: 0

   Elapsed time since last connection or counters clear: 00:17:40

   Mesh group peer joined: momo

   Last disconnect reason: Hold timer expired with truncated message

   Truncated packet: 5 bytes in buffer, type: 1, length: 20, without packet time: 75s

 Information about (Source, Group)-based SA filtering policy:

   Import policy: None

   Export policy: None

 Information about SA-Requests:

   Policy to accept SA-Requests: 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: 4294967295

 Input queue size: 0, Output queue size: 0

 Counters for MSDP messages:

   RPF check failure: 0

   Incoming/outgoing SA: 0/0

   Incoming/outgoing SA-Request: 0/0

   Incoming/outgoing SA-Response: 0/0

   Incoming/outgoing Keepalive: 867/867

   Incoming/outgoing Notification: 0/0

   Incoming/outgoing Traceroutes in progress: 0/0

   Incoming/outgoing Traceroute reply: 0/0

   Incoming/outgoing Unknown: 0/0

   Incoming/outgoing data packet: 0/0

Example: Configuring inter-AS multicast by leveraging static RPF peers

Network configuration

As shown in Figure 6:

·     The network has two ASs: AS 100 and AS 200. OSPF runs within each AS. BGP runs between the two ASs.

·     PIM-SM 1 belongs to AS 100, and PIM-SM 2 and PIM-SM 3 belong to AS 200. Each PIM-SM domain has a minimum of one multicast source or receiver.

Configure inter-AS multicast as follows:

·     Configure Loopback 0 as the C-BSR and C-RP of the related PIM-SM domain on Router A, Router D and Router G.

·     According to the peer-RPF forwarding rule, the routers accept SA messages that pass the filtering policy from its static RPF peers. To share multicast source information among PIM-SM domains without changing the unicast topology structure, configure MSDP peering relationships for the RPs of the PIM-SM domains and configure the static RPF peering relationships.

Figure 6 Network diagram

Table 2 Interface and IP address assignment

Device

Interface

IP address

Device

Interface

IP address

Source 1

192.168.1.100/24

Router D

GE1/0/1

10.110.5.1/24

Source 2

192.168.3.100/24

Router D

GE1/0/2

10.110.3.2/24

Router A

GE1/0/1

10.110.1.1/24

Router D

Loop0

2.2.2.2/32

Router A

GE1/0/2

10.110.2.1/24

Router E

GE1/0/1

10.110.5.2/24

Router A

Loop0

1.1.1.1/32

Router E

GE1/0/2

192.168.3.1/24

Router B

GE1/0/1

10.110.1.2/24

Router F

GE1/0/1

10.110.6.1/24

Router B

GE1/0/2

192.168.1.1/24

Router F

GE1/0/2

10.110.4.2/24

Router B

GE1/0/3

10.110.3.1/24

Router G

GE1/0/1

10.110.6.2/24

Router C

GE1/0/1

10.110.2.2/24

Router G

GE1/0/2

192.168.4.1/24

Router C

GE1/0/2

192.168.2.1/24

Router G

Loop0

3.3.3.3/32

Router C

GE1/0/3

10.110.4.1/24

 

Procedure

1.     Assign an IP address and subnet mask to each interface according to Table 2. (Details not shown.)

2.     Configure OSPF on the routers in the ASs. (Details not shown.)

3.     Enable IP multicast routing, PIM-SM, and IGMP, and configure PIM-SM domain borders:

# On Router C, enable IP multicast routing.

<RouterC> system-view

[RouterC] multicast routing

[RouterC-mrib] quit

# Enable PIM-SM on each interface, and enable IGMP on the receiver-side interface (GigabitEthernet 1/0/2).

[RouterC] interface gigabitethernet 1/0/1

[RouterC-GigabitEthernet1/0/1] pim sm

[RouterC-GigabitEthernet1/0/1] quit

[RouterC] interface gigabitethernet 1/0/2

[RouterC-GigabitEthernet1/0/2] igmp enable

[RouterC-GigabitEthernet1/0/2] quit

[RouterC] interface gigabitethernet 1/0/3

[RouterC-GigabitEthernet1/0/3] pim sm

[RouterC-GigabitEthernet1/0/3] quit

# Configure Router A, Router B, Router D, Router E, Router F, and Router G in the same way Router C is configured. (Details not shown.)

# On Router B, configure the PIM domain borders.

[RouterB] interface gigabitethernet 1/0/3

[RouterB-GigabitEthernet1/0/3] pim bsr-boundary

[RouterB-GigabitEthernet1/0/3] quit

# Configure the PIM domain borders on Router C, Router D, and Router F in the same way Router B is configured. (Details not shown.)

4.     Configure C-BSRs and C-RPs:

# On Router A, configure Loopback 0 as a C-BSR and a C-RP.

[RouterA] pim

[RouterA-pim] c-bsr 1.1.1.1

[RouterA-pim] c-rp 1.1.1.1

[RouterA-pim] quit

# Configure C-BSRs and C-RPs on Router D and Router G in the same way Router A is configured. (Details not shown.)

5.     Configure BGP, and redistribute BGP routing information into OSPF and OSPF routing information into BGP:

# On Router B, configure an EBGP peer, and redistribute OSPF routing information.

[RouterB] bgp 100

[RouterB-bgp] router-id 1.1.1.2

[RouterB-bgp] peer 10.110.3.2 as-number 200

[RouterB-bgp] address-family ipv4 unicast

[RouterB-bgp-ipv4] peer 10.110.3.2 enable

[RouterB-bgp-ipv4] import-route ospf 1

[RouterB-bgp-ipv4] quit

[RouterB-bgp] quit

# On Router D, configure an EBGP peer, and redistribute OSPF routing information.

[RouterD] bgp 200

[RouterD-bgp] router-id 2.2.2.2

[RouterD-bgp] peer 10.110.3.1 as-number 100

[RouterD-bgp] address-family ipv4 unicast

[RouterD-bgp-ipv4] peer 10.110.3.1 enable

[RouterD-bgp-ipv4] import-route ospf 1

[RouterD-bgp-ipv4] quit

[RouterD-bgp] quit

# On Router C, configure an EBGP peer, and redistribute OSPF routing information.

[RouterC] bgp 100

[RouterC-bgp] router-id 1.1.1.3

[RouterC-bgp] peer 10.110.4.2 as-number 200

[RouterC-bgp] address-family ipv4 unicast

[RouterC-bgp-ipv4] peer 10.110.4.2 enable

[RouterC-bgp-ipv4] import-route ospf 1

[RouterC-bgp-ipv4] quit

[RouterC-bgp] quit

# On Router F, configure an EBGP peer, and redistribute OSPF routing information.

[RouterF] bgp 200

[RouterF-bgp] router-id 3.3.3.1

[RouterF-bgp] peer 10.110.4.1 as-number 100

[RouterF-bgp] address-family ipv4 unicast

[RouterF-bgp-ipv4] peer 10.110.4.1 enable

[RouterF-bgp-ipv4] import-route ospf 1

[RouterF-bgp-ipv4] quit

[RouterF-bgp] quit

# On Router B, redistribute BGP routing information into OSPF.

[RouterB] ospf 1

[RouterB-ospf-1] import-route bgp

[RouterB-ospf-1] quit

# On Router D, redistribute BGP routing information into OSPF.

[RouterD] ospf 1

[RouterD-ospf-1] import-route bgp

[RouterD-ospf-1] quit

# On Router C, redistribute BGP routing information into OSPF.

[RouterC] ospf 1

[RouterC-ospf-1] import-route bgp

[RouterC-ospf-1] quit

# On Router F, redistribute BGP routing information into OSPF.

[RouterF] ospf 1

[RouterF-ospf-1] import-route bgp

[RouterF-ospf-1] quit

6.     Configure MSDP peers and static RPF peers:

# On Router A, configure Router D and Router G as the MSDP peers and static RPF peers.

[RouterA] ip prefix-list list-dg permit 10.110.0.0 16 greater-equal 16 less-equal 32

[RouterA] msdp

[RouterA-msdp] peer 10.110.3.2 connect-interface gigabitethernet 1/0/1

[RouterA-msdp] peer 10.110.6.2 connect-interface gigabitethernet 1/0/2

[RouterA-msdp] static-rpf-peer 10.110.3.2 rp-policy list-dg

[RouterA-msdp] static-rpf-peer 10.110.6.2 rp-policy list-dg

[RouterA-msdp] quit

# On Router D, configure Router A as the MSDP peer and static RPF peer.

[RouterD] ip prefix-list list-a permit 10.110.0.0 16 greater-equal 16 less-equal 32

[RouterD] msdp

[RouterD-msdp] peer 10.110.1.1 connect-interface gigabitethernet 1/0/2

[RouterD-msdp] static-rpf-peer 10.110.1.1 rp-policy list-a

[RouterD-msdp] quit

# On Router G, configure Router A as the MSDP peer and static RPF peer.

[RouterG] ip prefix-list list-a permit 10.110.0.0 16 greater-equal 16 less-equal 32

[RouterG] msdp

[RouterG-msdp] peer 10.110.2.1 connect-interface gigabitethernet 1/0/1

[RouterG-msdp] static-rpf-peer 10.110.2.1 rp-policy list-a

[RouterG-msdp] quit

Verifying the configuration

# Display the BGP peering relationships on Router A.

[RouterA] display bgp peer

No information is output, because no BGP peering relationship has been established between Router A and Router D, or between Router A and Router G. This means that the unicast topology is not changed.

# Display brief information about MSDP peers on Router A.

[RouterA] display msdp brief

Configured   Established  Listen       Connect      Shutdown     Disabled

2            2            0            0            0            0

 

Peer address    State       Up/Down time    AS         SA count   Reset count

10.110.3.2      Established 01:07:08        ?          8          0

10.110.6.2      Established 00:16:39        ?          13         0

# Display brief information about MSDP peers on Router D.

[RouterD] display msdp brief

Configured   Established  Listen       Connect      Shutdown     Disabled

1            1            0            0            0            0

 

Peer address    State       Up/Down time    AS         SA count   Reset count

10.110.1.1      Established 01:07:09        ?          8          0

# Display brief information about MSDP peers on Router G.

[RouterG] display msdp brief

Configured   Established  Listen       Connect      Shutdown     Disabled

1            1            0            0            0            0

 

Peer address    State       Up/Down time    AS         SA count   Reset count

10.110.2.1      Established 00:16:40        ?          13         0

# Verify that receivers in PIM-SM 1 and PIM-SM 3 can receive the multicast data from Source 1 and Source 2 to a multicast group. (Details not shown.)

Example: Configuring Anycast RP

Network configuration

As shown in Figure 7, OSPF runs within the domain to provide unicast routes.

Configure the Anycast RP application so that the receiver-side DRs and the source-side DRs can initiate a join process to their respective RPs that are topologically closest to them.

Configure the router IDs of Router B and Router D as 1.1.1.1 and 2.2.2.2, respectively. Set up an MSDP peering relationship between Router B and Router D.

Figure 7 Network diagram

Table 3 Interface and IP address assignment

Device

Interface

IP address

Device

Interface

IP address

Source 1

10.110.5.100/24

Router C

GE1/0/1

192.168.1.2/24

Source 2

10.110.6.100/24

Router C

GE1/0/2

192.168.2.2/24

Router A

GE1/0/1

10.110.5.1/24

Router D

GE1/0/1

10.110.3.1/24

Router A

GE1/0/2

10.110.2.2/24

Router D

GE1/0/2

10.110.4.1/24

Router B

GE1/0/1

10.110.1.1/24

Router D

GE1/0/3

192.168.2.1/24

Router B

GE1/0/2

10.110.2.1/24

Router D

Loop0

2.2.2.2/32

Router B

GE1/0/3

192.168.1.1/24

Router D

Loop10

4.4.4.4/32

Router B

Loop0

1.1.1.1/32

Router D

Loop20

10.1.1.1/32

Router B

Loop10

3.3.3.3/32

Router E

GE1/0/1

10.110.6.1/24

Router B

Loop20

10.1.1.1/32

Router E

GE1/0/2

10.110.4.2/24

 

Procedure

1.     Assign an IP address and subnet mask to each interface according to Figure 7. (Details not shown.)

2.     Configure OSPF on the routers in the PIM-SM domain. (Details not shown.)

3.     Enable IP multicast routing, IGMP, and PIM-SM:

# On Router B, enable IP multicast routing.

<RouterB> system-view

[RouterB] multicast routing

[RouterB-mrib] quit

# Enable IGMP on the receiver-side interface (GigabitEthernet 1/0/1).

[RouterB] interface gigabitethernet 1/0/1

[RouterB-GigabitEthernet1/0/1] igmp enable

[RouterB-GigabitEthernet1/0/1] quit

# Enable PIM-SM on the other interfaces.

[RouterB] interface gigabitethernet 1/0/2

[RouterB-GigabitEthernet1/0/2] pim sm

[RouterB-GigabitEthernet1/0/2] quit

[RouterB] interface gigabitethernet 1/0/3

[RouterB-GigabitEthernet1/0/3] pim sm

[RouterB-GigabitEthernet1/0/3] quit

[RouterB] interface loopback 0

[RouterB-LoopBack0] pim sm

[RouterB-LoopBack0] quit

[RouterB] interface loopback 10

[RouterB-LoopBack10] pim sm

[RouterB-LoopBack10] quit

[RouterB] interface loopback 20

[RouterB-LoopBack20] pim sm

[RouterB-LoopBack20] quit

# Enable IP multicast routing, IGMP, and PIM-SM on Router A, Router C, Router D, and Router E in the same way Router B is configured. (Details not shown.)

4.     Configure C-BSRs and C-RPs:

# On Router B, configure Loopback 10 as a C-BSR and configure Loopback 20 as a C-RP.

[RouterB] pim

[RouterB-pim] c-bsr 3.3.3.3

[RouterB-pim] c-rp 10.1.1.1

[RouterB-pim] quit

# Configure a C-BSR and a C-RP on Router D in the same way Router B is configured. (Details not shown.)

5.     Configure MSDP peers:

# Configure an MSDP peer on Loopback 0 of Router B.

[RouterB] msdp

[RouterB-msdp] originating-rp loopback 0

[RouterB-msdp] peer 2.2.2.2 connect-interface loopback 0

[RouterB-msdp] quit

# Configure an MSDP peer on Loopback 0 of Router D.

[RouterD] msdp

[RouterD-msdp] originating-rp loopback 0

[RouterD-msdp] peer 1.1.1.1 connect-interface loopback 0

[RouterD-msdp] quit

Verifying the configuration

# Display brief information about MSDP peers on Router B.

[RouterB] display msdp brief

Configured   Established  Listen       Connect      Shutdown     Disabled

1          1          0         0         0         0

 

Peer address    State       Up/Down time    AS         SA count   Reset count

2.2.2.2         Established 00:00:13        ?          0          0

# Display brief information about MSDP peers on Router D.

[RouterD] display msdp brief

Configured   Established  Listen       Connect      Shutdown     Disabled

1            1            0            0            0            0

 

Peer address    State       Up/Down time    AS         SA count   Reset count

1.1.1.1         Established 00:00:13        ?          0          0

# Send an IGMP report from Host A to join the multicast group 225.1.1.1. (Details not shown.)

# Send multicast data from Source 1 10.110.5.100/24 to the multicast group 225.1.1.1. (Details not shown.)

# Display the PIM routing table on Router D.

[RouterD] display pim routing-table

No information is output on Router D.

# Display the PIM routing table on Router B.

[RouterB] display pim routing-table

 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:15:04

     Upstream interface: Register-Tunnel0

         Upstream neighbor: NULL

         RPF prime neighbor: NULL

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: GigabitEthernet1/0/1

             Protocol: igmp, UpTime: 00:15:04, Expires: -

 

 (10.110.5.100, 225.1.1.1)

     RP: 10.1.1.1 (local)

     Protocol: pim-sm, Flag: SPT 2MSDP ACT

     UpTime: 00:46:28

     Upstream interface: GigabitEthernet1/0/2

         Upstream neighbor: 10.110.2.2

         RPF prime neighbor: 10.110.2.2

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: GigabitEthernet1/0/1

             Protocol: pim-sm, UpTime:  - , Expires:  -

The output shows that Router B now acts as the RP for Source 1 and Host A.

# Send an IGMP leave message from Host A to leave multicast group 225.1.1.1. (Details not shown.),

# Send an IGMP report from Host B to join multicast group 225.1.1.1. (Details not shown.)

# Send multicast data from Source 2 to multicast group 225.1.1.1. (Details not shown.)

# Display the PIM routing table on Router B.

[RouterB] display pim routing-table

No information is output on Router B.

# Display PIM routing information on Router D.

[RouterD] display pim routing-table

 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:12:07

     Upstream interface: Register-Tunnel0

         Upstream neighbor: NULL

         RPF prime neighbor: NULL

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: GigabitEthernet1/0/1

             Protocol: igmp, UpTime: 00:12:07, Expires: -

 

 (10.110.6.100, 225.1.1.1)

     RP: 10.1.1.1 (local)

     Protocol: pim-sm, Flag: SPT 2MSDP ACT

     UpTime: 00:40:22

     Upstream interface: GigabitEthernet1/0/2

         Upstream neighbor: 10.110.4.2

         RPF prime neighbor: 10.110.4.2

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: GigabitEthernet1/0/1

             Protocol: pim-sm, UpTime:  - , Expires:  -

The output shows that Router D now acts as the RP for Source 2 and Host B.

Example: Configuring SA message filtering

Network configuration

As shown in Figure 8:

·     OSPF runs within and among the PIM-SM domains to provide unicast routing.

·     Set up an MSDP peering relationship between Router A and Router C and between Router C and Router D.

·     Source 1 sends multicast data to multicast groups 225.1.1.0/30 and 226.1.1.0/30. Source 2 sends multicast data to the multicast group 227.1.1.0/30.

Configure SA message policies to meet the following requirements:

·     Host A and Host B receive the multicast data only addressed to multicast groups 225.1.1.0/30 and 226.1.1.0/30.

·     Host C receives the multicast data only addressed to multicast groups 226.1.1.0/30 and 227.1.1.0/30.

Figure 8 Network diagram

Table 4 Interface and IP address assignment

Device

Interface

IP address

Device

Interface

IP address

Source 1

10.110.3.100/24

Router C

GE1/0/1

10.110.4.1/24

Source 2

10.110.6.100/24

Router C

GE1/0/2

10.110.5.1/24

Router A

GE1/0/1

10.110.1.1/24

Router C

GE1/0/3

192.168.1.2/24

Router A

GE1/0/2

10.110.2.1/24

Router C

GE1/0/4

192.168.2.2/24

Router A

GE1/0/3

192.168.1.1/24

Router C

Loop0

2.2.2.2/32

Router A

Loop0

1.1.1.1/32

Router D

GE1/0/1

10.110.6.1/24

Router B

GE1/0/1

10.110.3.1/24

Router D

GE1/0/2

10.110.7.1/24

Router B

GE1/0/2

10.110.2.2/24

Router D

GE1/0/3

10.110.5.2/24

Router B

GE1/0/3

192.168.2.1/24

Router D

Loop0

3.3.3.3/32

 

Procedure

1.     Assign an IP address and subnet mask to each interface according to Figure 8. (Details not shown.)

2.     Configure OSPF on the routers in the PIM-SM domains. (Details not shown.)

3.     Enable IP multicast routing, IGMP, and PIM-SM, and configure a PIM domain border:

# On Router A, enable IP multicast routing.

<RouterA> system-view

[RouterA] multicast routing

[RouterA-mrib] quit

# Enable IGMP on the receiver-side interface (GigabitEthernet 1/0/1).

[RouterA] interface gigabitethernet 1/0/1

[RouterA-GigabitEthernet1/0/1] igmp enable

[RouterA-GigabitEthernet1/0/1] quit

# Enable PIM-SM on the other interfaces.

[RouterA] interface gigabitethernet 1/0/2

[RouterA-GigabitEthernet1/0/2] pim sm

[RouterA-GigabitEthernet1/0/2] quit

[RouterA] interface gigabitethernet 1/0/3

[RouterA-GigabitEthernet1/0/3] pim sm

[RouterA-GigabitEthernet1/0/3] quit

[RouterA] interface loopback 0

[RouterA-LoopBack0] pim sm

[RouterA-LoopBack0] quit

# Enable IP multicast routing, IGMP, and PIM-SM on Router B, Router C, and Router D in the same way Router A is configured. (Details not shown.)

# Configure PIM domain borders on Router C.

[RouterC] interface gigabitethernet 1/0/2

[RouterC-GigabitEthernet1/0/2] pim bsr-boundary

[RouterC-GigabitEthernet1/0/2] quit

[RouterC] interface gigabitethernet 1/0/3

[RouterC-GigabitEthernet1/0/3] pim bsr-boundary

[RouterC-GigabitEthernet1/0/3] quit

[RouterC] interface gigabitethernet 1/0/4

[RouterC-GigabitEthernet1/0/4] pim bsr-boundary

[RouterC-GigabitEthernet1/0/4] quit

# Configure PIM domain borders on Router A, Router B, and Router D in the same way Router C is configured. (Details not shown.)

4.     Configure C-BSRs and C-RPs:

# Configure Loopback 0 on Router A as a C-BSR and a C-RP.

[RouterA] pim

[RouterA-pim] c-bsr 1.1.1.1

[RouterA-pim] c-rp 1.1.1.1

[RouterA-pim] quit

# Configure C-BSRs and C-RPs on Router C and Router D in the same way Router A is configured. (Details not shown.)

5.     Configure MSDP peers:

# Configure an MSDP peer on Router A.

[RouterA] msdp

[RouterA-msdp] peer 192.168.1.2 connect-interface gigabitethernet 1/0/3

[RouterA-msdp] quit

# Configure MSDP peers on Router C.

[RouterC] msdp

[RouterC-msdp] peer 192.168.1.1 connect-interface gigabitethernet 1/0/3

[RouterC-msdp] peer 10.110.5.2 connect-interface gigabitethernet 1/0/2

[RouterC-msdp] quit

# Configure an MSDP peer on Router D.

[RouterD] msdp

[RouterD-msdp] peer 10.110.5.1 connect-interface gigabitethernet 1/0/3

[RouterD-msdp] quit

6.     Configure SA message policies:

# Configure an SA accepting and forwarding policy on Router C so that Router C will not forward SA messages for (Source 1, 225.1.1.0/30) to Router D.

[RouterC] acl advanced 3001

[RouterC-acl-ipv4-adv-3001] rule deny ip source 10.110.3.100 0 destination 225.1.1.0 0.0.0.3

[RouterC-acl-ipv4-adv-3001] rule permit ip source any destination any

[RouterC-acl-ipv4-adv-3001] quit

[RouterC] msdp

[RouterC-msdp] peer 10.110.5.2 sa-policy export acl 3001

[RouterC-msdp] quit

# Configure an SA creation policy on Router D so that Router D will not create SA messages for Source 2.

[RouterD] acl basic 2001

[RouterD-acl-ipv4-basic-2001] rule deny source 10.110.6.100 0

[RouterD-acl-ipv4-basic-2001] quit

[RouterD] msdp

[RouterD-msdp] import-source acl 2001

[RouterD-msdp] quit

Verifying the configuration

# Display the (S, G) entries in the SA message cache on Router C.

[RouterC] display msdp sa-cache

 MSDP Total Source-Active Cache - 8 entries

 Matched 8 entries

 

Source          Group           Origin RP       Pro  AS     Uptime   Expires

10.110.3.100    225.1.1.0       1.1.1.1         ?    ?      02:03:30 00:05:31

10.110.3.100    225.1.1.1       1.1.1.1         ?    ?      02:03:30 00:05:31

10.110.3.100    225.1.1.2       1.1.1.1         ?    ?      02:03:30 00:05:31

10.110.3.100    225.1.1.3       1.1.1.1         ?    ?      02:03:30 00:05:31

10.110.3.100    226.1.1.0       1.1.1.1         ?    ?      02:03:30 00:05:31

10.110.3.100    226.1.1.1       1.1.1.1         ?    ?      02:03:30 00:05:31

10.110.3.100    226.1.1.2       1.1.1.1         ?    ?      02:03:30 00:05:31

10.110.3.100    226.1.1.3       1.1.1.1         ?    ?      02:03:30 00:05:31

# Display the (S, G) entries in the SA message cache on Router D.

[RouterD] display msdp sa-cache

 MSDP Total Source-Active Cache - 4 entries

 Matched 4 entries

 

Source          Group           Origin RP       Pro  AS     Uptime   Expires

10.110.3.100    226.1.1.0       1.1.1.1         ?    ?      00:32:53 00:05:07

10.110.3.100    226.1.1.1       1.1.1.1         ?    ?      00:32:53 00:05:07

10.110.3.100    226.1.1.2       1.1.1.1         ?    ?      00:32:53 00:05:07

10.110.3.100    226.1.1.3       1.1.1.1         ?    ?      00:32:53 00:05:07

Troubleshooting MSDP

This section describes common MSDP problems and how to troubleshoot them.

MSDP peers stay in disabled state

Symptom

The configured MSDP peers stay in disabled state.

Solution

To resolve the problem:

1.     Use the display ip routing-table command to verify that the unicast route between the devices is reachable.

2.     Verify that a unicast route is available between the two devices that will become MSDP peers to each other.

3.     Use the display current-configuration command to verify that the local interface address and the MSDP peer address of the remote device are the same.

4.     If the problem persists, contact H3C Support.

No SA entries exist in the device's SA message cache

Symptom

MSDP fails to send (S, G) entries through SA messages.

Solution

To resolve the problem:

1.     Use the display ip routing-table command to verify that the unicast route between the devices is reachable.

2.     Verify that a unicast route is available between the two devices that will become MSDP peers to each other.

3.     Verify the configuration of the import-source command and its ipv4-acl-number argument, and make sure the ACL rule filters appropriate (S, G) entries.

4.     If the problem persists, contact H3C Support.

No exchange of locally registered (S, G) entries between RPs

Symptom

RPs fail to exchange their locally registered (S, G) entries with one another in the Anycast RP application.

Solution

To resolve the problem:

1.     Use the display ip routing-table command to verify that the unicast route between the devices is reachable.

2.     Verify that a unicast route is available between the two devices that will establish an MSDP peering relationship.

3.     Verify the configuration of the originating-rp command. In the Anycast RP application environment, use the originating-rp command to configure the RP address in the SA messages, which must be the local interface address.

4.     Verify that the C-BSR address is different from the Anycast RP address.

5.     If the problem persists, contact H3C Support.

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网