Pcornel
Networking · Routing › Multicast

PIM Sparse Mode

Cheat sheet · https://pcornel.dk/topic.php?topic=647

Back to the Topic

Answer

PIM sparse mode sends multicast only where it is requested. Receivers' routers join a shared tree rooted at a rendezvous point (RP); sources' routers register their streams with the RP; routers can then switch to the shortest path tree directly towards the source.

Remember

Every router must agree on the RP for each group range (static, Auto-RP or BSR). (*,G) means the shared tree; (S,G) the source tree. The source's router must reach the RP to register, and the RP must be reachable from all receivers' routers.

First checks

  • show ip igmp groups — groups joined on the receivers' router.
  • show ip pim neighbor — PIM neighbours.
  • show ip pim rp mapping — the rendezvous point for each group range.
  • show ip mroute <group> — (*,G) and (S,G) entries: incoming interface, outgoing list, flags.
  • show ip rpf <source> — the interface the router expects traffic from that source on.
  • show ip mroute <group> count — packets forwarded per entry.

Commands

show ip pim neighbor
Inspect PIM adjacencies.
show ip mroute
Shows multicast routing table entries and incoming/outgoing interfaces.
ip multicast-routing
Enable IPv4 multicast routing globally.
ip pim sparse-mode
Enable PIM sparse mode on the interface.
ip pim rp-address <rp-address>
Set a static PIM rendezvous point address.
show ip pim interface
Display PIM-enabled interfaces.
show ip pim rp mapping
Display group-to-RP mappings.
ip pim spt-threshold infinity
show ip igmp groups
show ip rpf <source>
show ip mroute <group>

Verify in this order

RP known for the group on every router → receivers' router joins (*,G) towards the RP → source's router registers with the RP → RP joins (S,G) towards the source → stream flows; optionally switches to the SPT

Where it usually breaks

no interest → wrong RP/shared tree → source registration/RPF → OIL or TTL/link → receiver delivery

PIM-SM tree state

StateMeaningTypical upstream reference
(*,G)shared-tree state for group Gtoward RP
(S,G)source-specific state for source S/group Gtoward source S
IIFvalid incoming directionRPF path
OILdownstream forwarding branchesreceiver/PIM joins

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=647

Confirmation

Confirm action

Continue?