Configuring MSDP
This chapter describes how to configure Multicast Source Discovery Protocol (MSDP) on a Cisco NX-OS device.
Information About MSDP
You can use the Multicast Source Discovery Protocol (MSDP) to exchange multicast source information between multiple BGP-enabled Protocol Independent Multicast (PIM) sparse-mode domains. For information about PIM, see Chapter1, “Configuring PIM and PIM6” For information about BGP, see the Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 5.x .
When a receiver for a group matches the group transmitted by a source in another domain, the rendezvous point (RP) sends PIM join messages in the direction of the source to build a shortest path tree. The designated router (DR) sends packets on the source-tree within the source domain, which may travel through the RP in the source domain and along the branches of the source-tree to other domains. In domains where there are receivers, RPs in those domains can be on the source-tree. The peering relationship is conducted over a TCP connection.
Figure 1-1 shows four PIM domains. The connected RPs (routers) are called MSDP peers because each RP maintains its own set of multicast sources. Source host 2 sends the multicast data to group 224.1.1.1. On RP 6, the MSDP process learns about the source through PIM register messages and generates Source-Active (SA) messages to its MSDP peers that contain information about the sources in its domain. When RP 3 and RP 5 receive the SA messages, they forward them to their MSDP peers. When RP 5 receives the request from host 2 for the multicast data on group 224.1.1.1, it builds a shortest path tree to the source by sending a PIM join message in the direction of host 1 at 192.1.1.1.
Figure 1-1 MSDP Peering Between RPs in Different PIM Domains
When you configure MSDP peering between each RP, you create a full mesh. Full MSDP meshing is typically done within an autonomous system, as shown between RPs 1, 2, and 3, but not across autonomous systems. You use BGP to do loop suppression and MSDP peer-RPF to suppress looping SA messages. For more information about mesh groups, see the “MSDP Mesh Groups” section.
Note You do not need to configure MSDP in order to use Anycast-RP (a set of RPs that can perform load balancing and failover) within a PIM domain. For more information, see the “Configuring a PIM Anycast-RP Set” section.
For detailed information about MSDP, see RFC 3618 .
This section includes the following topics:
SA Messages and Caching
MSDP peers exchange Source-Active (SA) messages that the MSDP software uses to propagate information about active sources. SA messages contain the following information:
- Source address of the data source
- Group address that the data source uses
- IP address of the RP or the configured originator ID
When a PIM register message advertises a new source, the MSDP process reencapsulates the message in an SA message that is immediately forwarded to all MSDP peers.
The SA cache holds the information for all sources learned through SA messages. Caching reduces the join latency for new receivers of a group because the information for all known groups can be found in the cache. You can limit the number of cached source entries by configuring the SA limit peer parameter. You can limit the number of cached source entries for a specific group prefix by configuring the group limit global parameter.
The MSDP software sends SA messages for each group in the SA cache every 60 seconds or at the configured SA interval global parameter. An entry in the SA cache is removed if an SA message for that source and group is not received within SA interval plus 3 seconds.
MSDP Peer-RPF Forwarding
MSDP peers forward the SA messages that they receive away from the originating RP. This action is called peer-RPF flooding. The router examines the BGP or MBGP routing table to determine which peer is the next hop in the direction of the originating RP of the SA message. This peer is called a reverse path forwarding (RPF) peer.
If the MSDP peer receives the same SA message from a non-RPF peer in the direction of the originating RP, it drops the message. Otherwise, it forwards the message to all its MSDP peers.
MSDP Mesh Groups
You can use MSDP mesh groups to reduce the number of SA messages that are generated by peer-RPF flooding. In Figure 1-1, RPs 1, 2, and 3 receive SA messages from RP 6. By configuring a peering relationship between all the routers in a mesh and then configuring a mesh group of these routers, the SA messages that originate at a peer are sent by that peer to all other peers. SA messages received by peers in the mesh are not forwarded. An SA message that originates at RP 3 is forwarded to RP 1 and RP 2, but these RPs do not forward those messages to other RPs in the mesh.
A router can participate in multiple mesh groups. By default, no mesh groups are configured.
Virtualization Support
A virtual device context (VDC) is a logical representation of a set of system resources. Within each VDC, you can define multiple virtual routing and forwarding (VRF) instances. The MSDP configuration applies to the VRF selected within the current VDC.
You can use the show commands with a VRF argument to provide a context for the information displayed. The default VRF is used if no VRF argument is supplied.
For information about configuring VDCs, see the Cisco Nexus 7000 Series NX-OS Virtual Device Context Configuration Guide, Release 4.2.
For information about configuring VRFs, see the Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 5.x .
Licensing Requirements for MSDP
The following table shows the licensing requirements for this feature:
Prerequisites for MSDP
MSDP has the following prerequisites:
- You are logged onto the device.
- You are in the correct virtual device context (VDC). A VDC is a logical representation of a set of system resources. You can use the switchto vdc command with a VDC number.
- For global commands, you are in the correct virtual routing and forwarding (VRF) mode. The default configuration mode shown in the examples in this chapter applies to the default VRF.
- You configured PIM for the networks where you want to configure MSDP.
Configuring MSDP
You can establish MSDP peering by configuring the MSDP peers within each PIM domain.
To configure MSDP peering, follow these steps:
Step 1 Select the routers to act as MSDP peers.
Step 2 Enable the MSDP feature. See the “Enabling the MSDP Feature” section.
Step 3 Configure the MSDP peers for each router identified in Step 1. See the “Configuring MSDP Peers” section.
Step 4 Configure the optional MSDP peer parameters for each MSDP peer. See the “Configuring MSDP Peer Parameters” section.
Step 5 Configure the optional global parameters for each MSDP peer. See the “Configuring MSDP Global Parameters” section.
Step 6 Configure the optional mesh groups for each MSDP peer. See the “Configuring MSDP Mesh Groups” section.
Note The MSDP commands that you enter before you enable MSDP are cached and then run when MSDP is enabled. Use the ip msdp peer or ip msdp originator-id command to enable MSDP.
This section includes the following topics:
- Enabling the MSDP Feature
- Configuring MSDP Peers
- Configuring MSDP Peer Parameters
- Configuring MSDP Global Parameters
- Configuring MSDP Mesh Groups
- Restarting the MSDP Process
Note If you are familiar with the Cisco IOS CLI, be aware that the Cisco NX-OS commands for this feature might differ from the Cisco IOS commands that you would use.
Enabling the MSDP Feature
Before you can access the MSDP commands, you must enable the MSDP feature.
DETAILED STEPS
Configuring MSDP Peers
You can configure an MSDP peer when you configure a peering relationship with each MSDP peer that resides either within the current PIM domain or in another PIM domain. MSDP is enabled on the router when you configure the first MSDP peering relationship.
BEFORE YOU BEGIN
Ensure that you have installed the Enterprise Services license and enabled PIM and MSDP.
Ensure that you configured BGP and PIM in the domains of the routers that you will configure as MSDP peers.
SUMMARY STEPS
2. ip msdp peer peer-ip-address connect-source interface [ remote-as as-number ]
3. Repeat Step 2 for each MSDP peering relationship.
4. (Optional) show ip msdp summary [ vrf vrf-name | known-vrf-name | all ]
DETAILED STEPS
Configuring MSDP Peer Parameters
You can configure the optional MSDP peer parameters described in Table 1-2 . You configure these parameters in global configuration mode for each peer based on its IP address.
Description string for the peer. By default, the peer has no description. |
|
Method to shut down the MSDP peer. The configuration settings are not affected by this command. You can use this parameter to allow configuration of multiple parameters to occur before making the peer active. The TCP connection with other peers is terminated by the shutdown. By default, a peer is enabled when it is defined. |
|
MD5-shared password key used for authenticating the peer. By default, no MD5 password is enabled. |
|
Route-map policy1 for incoming SA messages. By default, all SA messages are received. |
|
Route-map policy 1 for outgoing SA messages. By default, all registered sources are sent in SA messages. |
|
Number of (S, G) entries accepted from the peer and stored in the SA cache. By default, there is no limit. |
For information about configuring multicast route maps, see the “Configuring Route Maps to Control RP Information Distribution” section.
Note For information about configuring mesh groups, see the “Configuring MSDP Mesh Groups” section.
BEFORE YOU BEGIN
Ensure that you have installed the Enterprise Services license and enabled PIM and MSDP.
SUMMARY STEPS
2. ip msdp description peer-ip-address string
ip msdp shutdown peer-ip-address
ip msdp password peer-ip-address password
ip msdp sa-policy peer-ip-address policy-name in
ip msdp sa-policy peer-ip-address policy-name out
ip msdp sa-limit peer-ip-address limit
3. (Optional) show ip msdp peer [ peer-address ] [ vrf vrf-name | known-vrf-name | all ]
DETAILED STEPS
Configuring MSDP Global Parameters
You can configure the optional MSDP global parameters described in Table 1-3 .
BEFORE YOU BEGIN
Ensure that you have installed the Enterprise Services license and enabled PIM and MSDP.
SUMMARY STEPS
2. ip msdp originator-id interface
ip msdp group-limit limit source source-prefix
3. (Optional) show ip msdp summary [ vrf vrf-name | known-vrf-name | all ]
DETAILED STEPS
Configuring MSDP Mesh Groups
You can configure optional MDSP mesh groups in global configuration mode by specifying each peer in the mesh. You can configure multiple mesh groups on the same router and multiple peers per mesh group.
BEFORE YOU BEGIN
Ensure that you have installed the Enterprise Services license and enabled PIM and MSDP.
SUMMARY STEPS
2. ip msdp mesh-group peer-ip-addr mesh-name
3. Repeat Step 2 for each MSDP peer in the mesh.
4. show ip msdp mesh-group [ mesh-group ] [ vrf vrf-name | known-vrf-name | all ]
DETAILED STEPS
BEFORE YOU BEGIN
Ensure that you have installed the Enterprise Services license and enabled PIM and MSDP.
DETAILED STEPS
Verifying the MSDP Configuration
To display the MSDP configuration information, perform one of the following tasks:
For detailed information about the fields in the output from these commands, see the Cisco Nexus 7000 Series NX-OS Multicast Routing Command Reference, Release 5.x .
Monitoring MSDP
You can display and clear MSDP statistics by using the features in this section.
This section has the following topics:
Displaying Statistics
You can display MSDP statistics using the commands listed in Table 1-4 .
Clearing Statistics
You can clear the MSDP statistics using the commands listed in Table 1-5 .
Configuration Examples for MSDP
To configure MSDP peers, some of the optional parameters, and a mesh group, follow these steps for each MSDP peer:
Step 1 Configure the MSDP peering relationship with other routers.
Step 2 Configure the optional peer parameters.
Step 3 Configure the optional global parameters.
Step 4 Configure the peers in each mesh group.
The following example shows how to configure a subset of the MSDP peering that is shown in Figure 1-1.
Additional References
For additional information related to implementing MSDP, see the following sections: