Table Of Contents
PIM Dense Mode Fallback Prevention in a Network Following RP Information Loss
Information About PIM Dense Mode Fallback Prevention in a Network Following RP Information Loss
PIM Sparse Mode and PIM Dense Mode
Cause and Effect of Dense Mode Fallback
Effects of Preventing Dense Mode Fallback
Benefits of Preventing PIM Dense Mode Fallback in a Network Following RP Information Loss
How to Prevent PIM Dense Mode Fallback in a Network Following RP Information Loss
Preventing Dense Mode Fallback
Preventing PIM Dense Mode Fallback: Example
PIM Dense Mode Fallback Prevention in a Network Following RP Information Loss
The PIM Dense Mode Fallback Prevention in a Network Following RP Information Loss feature enables you to prevent Protocol Independent Multicast (PIM) dense mode (DM) fallback when all rendezvous points (RPs) fail. Preventing the use of PIM-DM is very important to multicast networks whose reliability is critical. The feature provides a mechanism to keep the multicast groups in sparse mode. The feature also allows you to block multicast traffic for groups not specifically configured.
Feature History for the PIM Dense Mode Fallback Prevention in a Network Following RP Information Loss Feature
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Information About PIM Dense Mode Fallback Prevention in a Network Following RP Information Loss
•
How to Prevent PIM Dense Mode Fallback in a Network Following RP Information Loss
Information About PIM Dense Mode Fallback Prevention in a Network Following RP Information Loss
To configure the PIM Dense Mode Fallback Prevention in a Network Following RP Information Loss feature, you should understand the following concepts:
•
PIM Sparse Mode and PIM Dense Mode
•
Benefits of Preventing PIM Dense Mode Fallback in a Network Following RP Information Loss
PIM Sparse Mode and PIM Dense Mode
The PIM protocol maintains the current IP multicast service mode of receiver-initiated membership. It is not dependent on a specific unicast routing protocol. PIM is defined in RFC 2362, Protocol-Independent Multicast-Sparse Mode (PIM-SM): Protocol Specification.
PIM can operate in dense mode or sparse mode. The router can handle both sparse groups and dense groups at the same time.
In dense mode, a router assumes that all other routers want to forward multicast packets for a group. If a router receives a multicast packet and has no directly connected members or PIM neighbors present, a prune message is sent back to the source. Subsequent multicast packets are not flooded to this router on this pruned branch. PIM builds source-based multicast distribution trees.
In sparse mode, a router assumes that other routers do not want to forward multicast packets for a group, unless there is an explicit request for the traffic. When hosts join a multicast group, the directly connected routers send PIM join messages toward the rendezvous point (RP). The RP keeps track of multicast groups. Hosts that send multicast packets are registered with the RP by the first hop router of that host. The RP then sends join messages toward the source. At this point, packets are forwarded on a shared distribution tree. If the multicast traffic from a specific source is sufficient, the first hop router of the host may send join messages toward the source to build a source-based distribution tree.
Auto-RP Overview
If you configure PIM to operate in sparse mode, you must also choose one or more routers to be rendezvous points (RPs). RPs are used by senders to a multicast group to announce their existence and by receivers of multicast packets to learn about new senders.
Auto-RP is a feature that automates the distribution of group-to-RP mappings in a PIM network. Auto-RP has the following benefits:
•
Configuring the use of multiple RPs within a network to serve different group ranges is easy.
•
Auto-RP allows load splitting among different RPs and arrangement of RPs according to the location of group participants.
•
Auto-RP avoids inconsistent, manual RP configurations that can cause connectivity problems.
Multiple RPs can be used to serve different group ranges or serve as backups to each other. For Auto-RP to work, a router must be designated as an RP-mapping agent, which receives the RP-announcement messages from the RPs and arbitrates conflicts. The RP-mapping agent then sends the consistent group-to-RP mappings to all other routers. Thus, all routers automatically discover which RP to use for the groups they support.
Note
If you configure PIM in sparse mode or sparse-dense mode and do not configure Auto-RP, you must statically configure an RP.
Note
If router interfaces are configured in sparse mode, Auto-RP can still be used if all routers are configured with a static RP address for the Auto-RP groups.
PIM Dense Mode Fallback
If you use IP multicast in mission-critical networks, you should avoid the use of PIM-DM (dense mode).
Dense mode fallback describes the event of the PIM mode changing (falling back) from sparse mode (which requires an RP) to dense mode (which does not use an RP). Dense mode fallback occurs when RP information is lost.
By default, if all interfaces in a multicast VPN routing or forwarding instance are configured with the ip pim sparse-mode command, there is no dense mode fallback because dense mode groups cannot be formed over interfaces configured for sparse mode.
Cause and Effect of Dense Mode Fallback
PIM determines whether a multicast group operates in PIM-DM or PIM sparse-dense mode based solely on the existence of RP information in the group-to-RP mapping cache. If Auto-RP is configured or a bootstrap router (BSR) is used to distribute RP information, there is a risk that RP information can be lost if all RPs, Auto-RP, or the BSR for a group fails due to network congestion. This failure can lead to the network either partially or fully falling back into PIM-DM.
If a network falls back into PIM-DM, and if interfaces are configured for Auto-RP, dense mode flooding will occur. Routers that lose RP information will switch all existing states into dense mode and any new states that must be created for the failed group will be created in dense mode.
Effects of Preventing Dense Mode Fallback
The PIM Dense Mode Fallback Prevention in a Network Following RP Information Loss feature provides a method for doing the following:
•
Preventing dense mode fallback.
•
Blocking multicast traffic for groups not specifically configured. When a group is not specifically configured (that is, there is no RP for that group), multicast traffic does not flow across the network. The first hop router that receives data for such a group creates a (*, G) entry for that group with an RP address of 0.0.0.0 and drops these packets. There are no (S, G) entries created on the routers.
When the feature is configured, sparse mode groups operate with an RP address of 0.0.0.0, which causes the following conditions to apply:
•
(S, G) state is maintained unchanged and existing flows are unchanged.
•
No PIM join or prune messages for (*, G) or (S, G, RPbit) are sent.
•
Received (*, G) or (S, G RPbit) joins or prune messages are ignored.
•
No registers are sent and traffic at the first hop is dropped.
•
Received registers are answered with register stop.
•
Asserts are unchanged.
•
The (*, G) outgoing interface (OIF) list is maintained only for the Internet Group Management Protocol (IGMP) state.
•
Multicast Source Discovery Protocol (MSDP) source active (SA) messages for RP 0.0.0.0 groups are still accepted and forwarded.
•
IGMP messages are processed as for any other PIM-SM groups. IGMPv3 (S, G) memberships are expanded into (*, G) IGMP memberships.
•
Any group for which no mode information is available (such as PIM sparse mode, bidirectional PIM, or Source Specific Multicast [SSM]) are created in a default mode in which no traffic is forwarded, and no PIM states are established in the network apart from the network first hop.
Benefits of Preventing PIM Dense Mode Fallback in a Network Following RP Information Loss
The benefits of preventing PIM dense mode fallback are the following:
•
You can block multicast traffic for groups not specifically configured. When a group is not specifically configured (that is, there is no RP for that group), multicast traffic does not flow across the network. The first hop router that receives data for such a group creates a (*, G) entry for that group with an RP address of 0.0.0.0 and drops these packets. There are no (S, G) entries created on the routers.
•
If interfaces are configured with ip pim sparse-dense-mode (such as when Auto-RP is in use), fallback into PIM dense mode can cause undesirable dense mode flooding of multicast packets and outages of multicast traffic flows. These events can be avoided by preventing dense mode fallback.
How to Prevent PIM Dense Mode Fallback in a Network Following RP Information Loss
To prevent PIM dense mode fallback in a network after the loss of RP information, perform the following task:
•
Preventing Dense Mode Fallback (required)
Preventing Dense Mode Fallback
By default, PIM dense mode fallback is enabled. That is, a multicast group in the absence of rendezvous point (RP) information will fall to dense mode, regardless of the interface mode configuration.
However, if all of the interfaces in a VRF are configured with PIM sparse mode, no dense mode fallback is achieved by default. If all of the interfaces are already configured as sparse, even though the group mode falls to dense mode, the traffic does not get flooded (due to the sparse characteristic of the interface). But the established flows might be torn down and the state of the network could become indeterministic. The main advantage of no dense mode fallback in this case would be deterministic behavior.
If you have interfaces that are configured with PIM sparse-dense mode, you can disable dense mode fallback by configuring the no ip pim dm-fallback command in global configuration mode.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
ip multicast-routing
4.
interface type slot/port
5.
ip pim sparse-mode
or
ip pim sparse-dense-mode
6.
exit
7.
ip pim send-rp-announce type number scope ttl-value [group-list access-list] [interval seconds]
8.
ip pim rp-address rp-address [access-list] [override]
9.
no ip pim dm-fallback
DETAILED STEPS
Configuration Example for PIM Dense Mode Fallback Prevention in a Network Following RP Information Loss
This section contains the following configuration example:
•
Preventing PIM Dense Mode Fallback: Example
Preventing PIM Dense Mode Fallback: Example
The following example disables PIM dense mode fallback:
ip multicast-routinginterface ethernet 0/0ip pim sparse-dense-modeip pim send-rp-announce ethernet 0 scope 16 group-list 1ip pim rp-address 10.8.0.20 1no ip pim dm-fallbackAdditional References
The following sections provide references related to the PIM Dense Mode Fallback Prevention in a Network Following RP Information Loss feature.
Related Documents
Related Topic Document TitleCisco IOS IP multicast commands
Cisco IOS IP Command Reference, Volume 3 of 4: Multicast, Release 12.3 T
Cisco IOS IP multicast configuration
"IP Multicast" part of the Cisco IOS IP Configuration Guide
Standards
Standards TitleNo new or modified standards are supported by this feature, and support for existing standards have not been modified by this feature.
—
MIBs
RFCs
RFCs TitleNo new or modified RFCs are supported by this feature, and support for existing RFCs have not been modified by this feature.
—
Technical Assistance
Command Reference
This section documents the following new command. All other commands used with this feature are documented in the Cisco IOS Release 12.3 T command reference publications.
ip pim dm-fallback
To enable Protocol Independent Multicast (PIM) dense mode fallback, use the ip pim dm-fallback command in global configuration mode. To prevent PIM dense mode fallback and to block all multicast traffic for groups not specifically configured, use the no form of this command.
ip pim dm-fallback
no ip pim dm-fallback
Syntax Description
This command has no arguments or keywords.
Defaults
PIM dense mode fallback is enabled. That is, a multicast group in the absence of rendezvous point (RP) information will fall to dense mode, regardless of the interface mode configuration.
Command Modes
Global configuration
Command History
Usage Guidelines
Use this command to prevent a router from falling back into PIM dense mode when the RP becomes unavailable. This command also causes the router to block all multicast traffic for groups not specifically configured with an RP.
When IP multicast is used in mission-critical networks, you should avoid the use of PIM-DM. PIM makes the determination as to whether a multicast group operates in PIM-DM or PIM sparse-dense mode based solely on the existence of RP information in the group-to-RP mapping cache. If Auto-RP is configured or a bootstrap router (BSR) is used to distribute RP information, there is a risk that RP information can be lost if all RPs, Auto-RP, or the BSR for a group fails due to network congestion. This failure can lead to the network either partially or fully falling back into PIM-DM.
If a network falls back into PIM-DM, dense mode flooding will occur. Routers that lose RP information will switch all existing states into dense mode and any new states that must be created for the failed group will be created in dense mode.
Examples
The following example disables PIM dense mode fallback:
ip multicast-routinginterface ethernet 0/0ip pim sparse-dense-modeip pim send-rp-announce ethernet 0 scope 16 group-list 1ip pim rp-address 10.8.0.20 1no ip pim dm-fallbackRelated Commands
Command Descriptionip pim dense-mode
Enables PIM dense mode on the interface.
ip pim sparse-dense-mode
Enables PIM to operate in sparse or dense mode, depending on the group.
Glossary
PIM—Protocol Independent Multicast. Multicast routing architecture that allows the addition of IP multicast routing on existing IP networks. PIM is unicast routing protocol-independent and can be operated in two modes: dense and sparse.
PIM dense mode—One of the two PIM operational modes. PIM dense mode is data-driven and resembles typical multicast routing protocols. Packets are forwarded on all outgoing interfaces until pruning and truncation occurs. In dense mode, receivers are densely populated, and it is assumed that the downstream networks want to receive and will probably use the datagrams that are forwarded to them. The cost of using dense mode is its default flooding behavior. Sometimes called dense mode PIM or PIM-DM.
PIM sparse mode—One of the two PIM operational modes. PIM sparse mode tries to constrain data distribution to a minimal number of routers in the network. Packets are sent only if they are explicitly requested at the rendezvous point. In sparse mode, receivers are widely distributed, and the assumption is that downstream networks will not necessarily use the datagrams that are sent to them. The cost of using sparse mode is its reliance on the periodic refreshing of explicit join messages and its need for RPs. Sometimes called sparse mode PIM or PIM-SM.
RP—rendezvous point. Router specified in PIM sparse mode implementations to track membership in multicast groups and to forward messages to known multicast group addresses.
Note
Refer to Internetworking Terms and Acronyms for terms not included in this glossary.
CCIP, CCSP, the Cisco Arrow logo, the Cisco Powered Network mark, Cisco Unity, Follow Me Browsing, FormShare, and StackWise are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn, and iQuick Study are service marks of Cisco Systems, Inc.; and Aironet, ASIST, BPX, Catalyst, CCDA, CCDP, CCIE, CCNA, CCNP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, the Cisco IOS logo, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Empowering the Internet Generation, Enterprise/Solver, EtherChannel, EtherSwitch, Fast Step, GigaStack, Internet Quotient, IOS, IP/TV, iQ Expertise, the iQ logo, iQ Net Readiness Scorecard, LightStream, MGX, MICA, the Networkers logo, Networking Academy, Network Registrar, Packet, PIX, Post-Routing, Pre-Routing, RateMUX, Registrar, ScriptShare, SlideCast, SMARTnet, StrataView Plus, Stratm, SwitchProbe, TeleRouter, The Fastest Way to Increase Your Internet Quotient, TransPath, and VCO are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and certain other countries.
All other trademarks mentioned in this document or Web site are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0304R)
Copyright © 2003 Cisco Systems, Inc. All rights reserved.
