📝 Protocol Independent Multicast (PIM) sparse and dense mode (12 MCQs)
Protocol Independent Multicast and Its Operating Modes
Protocol Independent Multicast (PIM) is a family of multicast routing protocols that uses information supplied by an underlying unicast routing table rather than defining its own network topology discovery protocol. PIM supports different distribution assumptions: Dense Mode suits receiver-rich networks, while Sparse Mode builds distribution only where receivers explicitly request it. This distinction also shapes multicast path selection and receiver delivery decisions at routers.
Sparse Mode Shared Trees and Rendezvous Points
PIM Dense Mode initially floods multicast traffic along reverse-path-valid interfaces, then prunes branches without receivers. PIM Sparse Mode uses explicit Join messages to build shared or source-specific trees, commonly through a rendezvous point for any-source multicast. Both modes use reverse-path checks to control packet arrival and forwarding. These details determine how multicast routers maintain usable group state.
Dense Mode Flooding, Pruning and Grafting
In Dense Mode, routers receive traffic first and send Prune messages when no downstream member exists; Graft messages can restore a branch. In Sparse Mode, a last-hop router sends a Join toward the rendezvous point or source, creating forwarding state only along requested paths. Source DRs can register traffic with the RP.
How PIM Routers Establish Multicast Forwarding State
If receivers for group G are widely present, Dense Mode's initial flooding may be reasonable, followed by pruning. If only two remote LANs want G, Sparse Mode can establish joins toward an RP and avoid flooding uninterested branches. The choice reflects receiver distribution and network scale, not the IP multicast address class.
Dependence on Unicast Routing for RPF Checks
PIM's independence means it can use different unicast routing protocols to obtain next-hop information for RPF checks. It does not mean PIM ignores routing tables. PIM-SM can begin with a shared tree and optionally move receivers to a source-specific shortest-path tree for more direct delivery. This relationship keeps membership management separate from data forwarding.
Misconceptions About PIM Sparse and Dense Modes
'Protocol Independent means no routing table is needed' is incorrect because PIM uses unicast routing information for RPF. 'Sparse Mode floods everywhere first' confuses it with Dense Mode. 'Dense Mode requires an RP' is incorrect because its basic flood-and-prune model does not rely on a rendezvous point. These corrections prevent frequent mistakes when interpreting multicast control traffic.
Comparing PIM Join, Prune and Register Behavior
Compare PIM-DM flood-prune-graft behavior with PIM-SM explicit joins and RP operation. Explain RPF dependence on unicast routes, identify shared and source-specific state, and select the mode suited to sparse or dense receiver distribution. Avoid treating mode names as guarantees about the number of multicast senders. These points help students trace protocol behavior in examination scenarios.
PIM Sparse and Dense Mode Terms
- PIM - Multicast routing protocol family.
- PIM-DM - Dense flood-and-prune mode.
- PIM-SM - Sparse explicit-join mode.
- Rendezvous point - Shared-tree root for groups.
- Join - Requests multicast tree connectivity.
- Register - Carries source traffic toward RP.
📝 All Protocol Independent Multicast (PIM) sparse and dense mode MCQs
Q1. What does PIM stand for?
📖 Explanation: The acronym PIM expands to Protocol Independent Multicast. It is a family of routing protocols that operate independently of any specific unicast routing protocol, allowing multicast distribution without being tied to a particular underlying algorithm. The other options are fabricated and do not correspond to the standard definition.
Q2. Which PIM mode builds a shortest‑path tree rooted at the source?
📖 Explanation: PIM Sparse Mode (PIM‑SM) creates a shortest‑path tree (SPT) that is rooted at the source when a source‑specific join is performed. Dense Mode initially floods the network and then prunes, while Source‑Specific Multicast is a variant of Sparse Mode that restricts joins to specific sources. The correct answer is Sparse Mode.
Q3. A router receives a Join message on an interface that previously sent a Prune for the same (S,G). What does this indicate about downstream traffic?
📖 Explanation: Receiving a Join after a Prune signals that downstream hosts have newly expressed interest in the (S,G) flow. The router therefore reinstates the upstream path by sending a Join toward the source, ensuring that packets resume delivery. This reflects a change in downstream demand, not a permanent cessation of traffic.
Q4. Compare PIM Dense Mode and Sparse Mode in terms of initial packet propagation strategy. Which statement is accurate?
📖 Explanation: PIM Dense Mode (PIM‑DM) starts by flooding multicast traffic to all routers and then removes unnecessary branches through Prune messages. In contrast, PIM Sparse Mode (PIM‑SM) constructs distribution trees only after receivers send explicit Join messages toward a Rendezvous Point, avoiding unnecessary flooding. Therefore option D correctly captures the differing initial strategies.
Q5. In a PIM Sparse Mode deployment, configuring a single RP influences the multicast distribution tree how?
📖 Explanation: When a single Rendezvous Point (RP) is configured in PIM‑SM, every (S,G) flow initially uses a shared tree (RPT) that converges at the RP. Receivers join this tree via Join messages, and after the source is reached, the network may switch to a source‑specific tree for efficiency. The other options misrepresent the RP’s role in the default multicast distribution process.
Q6. If a router discovers that its designated router (DR) for a LAN is also the RP for a given multicast group, what logical consequence follows for Join/Prune processing on that LAN?
📖 Explanation: When the DR and RP coincide, the router can combine their responsibilities, but it must still send a Join toward the RP to build the shared tree. Because the DR is also the RP, the Join does not need to be duplicated; instead, the router sends a single Join that satisfies both roles. This avoids unnecessary traffic while preserving correct tree construction.
Q7. Evaluate the trade‑off between PIM‑DM and PIM‑SM in a bandwidth‑constrained environment. Which choice best minimizes unnecessary traffic?
📖 Explanation: In bandwidth‑limited networks, the goal is to avoid flooding traffic that many receivers will discard. PIM Sparse Mode (PIM‑SM) builds distribution trees only after receivers explicitly request them via Join messages, thereby preventing the large amount of unnecessary traffic characteristic of PIM Dense Mode (PIM‑DM). Hence option B best minimizes superfluous traffic.
Q8. When adding a new multicast source to an existing PIM‑SM network, which sequence of steps correctly integrates the source into the shared tree?
📖 Explanation: The correct integration process in PIM‑SM involves the new source sending a Register message to the RP, which then places the source's traffic onto the shared tree (RPT). Receivers that have expressed interest via Join messages will then receive the data. Option B captures the essential steps of source registration and tree incorporation.
Q9. A router's prune timer expires before a new Join arrives for (S,G). What effect does this have on packet forwarding on the downstream interface?
📖 Explanation: When the prune timer expires without a subsequent Join, the router assumes that no downstream receivers are interested in the (S,G) traffic and therefore ceases forwarding on that interface. This creates a brief period during which packets are not delivered downstream until a new Join re‑establishes the branch, matching option A.
Q10. Contrast Anycast RP and Bootstrap Router (BSR) mechanisms for RP redundancy. Which statement correctly describes a key difference?
📖 Explanation: Anycast RP works by assigning the same virtual IP address to multiple RP instances; routers select the nearest RP based on unicast routing, providing redundancy without a separate election process. In contrast, the Bootstrap Router (BSR) protocol dynamically elects a single RP for each multicast group range and distributes this information via BSR messages. Therefore option A accurately captures the fundamental distinction.
Q11. Explain how PIM relies on the underlying unicast routing table to determine the outgoing interface for a multicast packet. Which principle best captures this relationship?
📖 Explanation: PIM leverages the unicast routing table to perform a Reverse Path Forwarding (RPF) check, which identifies the incoming interface (IIF) that would be used to reach the source. Once the IIF is known, the router selects the appropriate outgoing interface(s) for forwarding the multicast packet. This dependency on unicast routes is captured by option B.
Q12. An incorrect incoming interface (IIF) is configured on a PIM router for a particular source. What is the most likely impact on multicast delivery?
📖 Explanation: If the IIF is set incorrectly, the router may forward packets out interfaces that do not lead toward the source, potentially creating loops or forwarding loops. This misconfiguration typically results in inefficient delivery and can cause duplicate traffic or loss, making option C the most accurate description of the impact.