Home / Network / Multicast: rather than dense, sparse it and let’s meet at rendez-vous point… Part 5

Multicast: rather than dense, sparse it and let’s meet at rendez-vous point… Part 5

in this post let’s detail the operation of PIM (Protocol Independent Multicast) in sparse mode. Previous posts tackled the operation of PIM dense mode. Let’s recall that PIM is the multicast routing protocol that allows PIM routers exchange information needed distribute multicast traffic to receivers.

lab setup

In our setup, Client1 is configured to join multicast destined for group 226.0.0.1 and sent from Server1. Server1 is five hops far from Client1 and this is why we’re required to use the multicast routing protocol (PIM).

Instead of use PIM-Dense (flood and prune), seen in the previous post of this serie on Multicast operatoin, we use PIM-Sparse to build the forwarding path from the server to the client.

PIM-Sparse

PIM-Sparse is enabled on R1, R2, R3 and R4 routers

RIP for unicast routing (and RPF)

We use RIP for unicast routing and multicast a ping from the source for test purpose toward the group of receivers

IGMP

At R1 we check first that Client1 is registered to the group which is the case

The interface of router R1 facing Client1 is configured for PIM-Sparse

enable PIM in sparse mode

The details of this PIM interface are given in the following figure. We can check that PIMv2 is enable at interface level in sparse mode, that the RP or Rendez-vous point for this mode is the router itself (R1). We have also counters for PIM neighbors, in/out multicast packets. We check also that multicast switching is fast (at hardware level) and not process switched (at CPU level).

All interfaces are configured for PIM-Sparse mode of operation

PIM neighborship

We check PIM neighborship established between R2 and R1 using the command show ip pim neighbor. We could check that now R2 is the DR (designated router) of this multicast link.

Now that PIM is enabled and neighborships established, let’s enable multicast routing and check the mroute table for effective multicast traffic forwarding

mroute table

After a while the mroute table get populated by group 226.0.0.1 information. From the show ip mroute command output, we check the R1 is the RP for this group (marked as 0.0.0.0) that outgoing interfaces for this group are populated with fa0/0 towards Client1 as receiver. But nothing is the list of the incoming interface (Server1 has not yet sent any traffic). The RPF check is what guarantees the the source IP is resolvable the the same interface using our unicast routing protocol (in our case connected or RIP)

The RP Rendez-vous Point is set to local

source trafic

Let’s send trafic from the server

At R4,

The router receives trafic from the source but fails routing it

The mroute table is empty of 226.0.0.1 group information

debug multicast forwarding

We activate PIM on the fa0/0 interface (to enable multicast packets processing) and run a debug ip mfib pak

A debug on R1 shows the packet from the server fails the acceptance check. Is it due to sparse mode? Or in general? We put the interface into dense mode

the debug shows the output in the following figure. The flow is now accepted but fails because of no forwarding interface.

We configure back the interface into sparse mode

In addition, we configure R4 to be a RP (static) instead of R1.

Now the packet is accepted for forwarding

But because of no forwarding interface the packets are still dropped

We check also that R4 initiates the register process with the RP (which is R4 in our case)

At R4,

The mroute table is populated by (S,G) entry but it is pruned because of the outgoing interface list is empty

Let’s configure the RP on the other routers to match R4

At R1 as soon as we configure the RP address to match R4

We check that R1 build a join message for 226.0.0.1 and put it in R2 queue

At R2,

The router has no idea about RP and consequently invalidates the join received from R1

We configure the RP information on the remaining routers R2 and R3

Now the server is getting response from the client to the ping sent from the server to the multicast group

At R3 the mroute table shows

The RP information is correct and the RPF is set to R4 on the fa1/0 interface

rpf operation

At R2 we add a new link to R4 so that we create a shorter path from R4 to R2

problem

The ping from the server stop working

Any idea?

as conclusion

in this post we’ve checked the operation of PIM in sparse mode. The configuration of the RP is central to this mode of operation. From there all PIM routers build the forwarding tree toward the RP (using RPF rule to validate PIM exchanged messages). After this half of path is built, the second path is build from the server to the RP to join the first half of path already built. RPF is also in action to check that the source of the multicast traffic is also in the RPF path in terms of the unicast routing table.

Leave a Reply

adsense (1) application (2) architecture (4) asm (4) automatisation (2) backbone (1) cef (1) cisco (5) cloud (1) command (5) controller (1) cost (6) coverage (2) debug (9) distance (6) fiber (1) gns3 (1) google (1) hpe (1) http (1) igmp (5) igp (7) internet (2) ip (2) ipv6 (1) isp (1) label (1) ldp (1) logique (2) loop (5) lsp (1) mac (3) meraki (1) model (2) mpls (3) mroute (4) multicast (5) nat (1) ndp (2) network (3) next-hop (5) osi (5) pat (1) pim (4) poisoning (6) projet (2) qos (1) radio (3) rib (5) rip (5) route (6) router (5) routing (14) rpf (4) rrm (3) security (3) show (5) simulation (2) solution (2) split-horizon (5) sql (1) ssm (4) static (6) stp (2) summarization (5) switching (1) tcp/ip (1) telecom (1) template (1) traffic engineering (1) translation (1) travail (2) vpn (2) wifi (4) wlan (2)

  • Understand how Aruba ARMizes your WLAN for sure!
    Presenting ARM In this post, that is a part of a serie of post that discuss how Wlan to radio ressources management, we talk of Aruba way of doing it. The figure shows a simple wlan network of 6 AP or access points. This is heatmap showing that radio signal is very strong (in red)
  • Understand RIP Routing Timers All in One Shot!
    This post is part of a series of posts about dynamic routing protocols and especially RIP. We’ll try to get a deep understanding of its operation and function as an introductory to dynamic routing logic in general. You’ll see that what we think easy may hide an incrementing complexity… a little introduction Berfore we start
  • DUAL route FSM Processing of EIGRP Queries
    This blog is a part of series of posts about EIGRP routing protocol. Let’s recall that EIGRP is one of the so called IGP routing protocols. IGP stands for interior routing protocols as opposed to EGP or exterior routing protocols. In addition EIGRP is a hybrid as it borrows some similiarities to distance-vector and link-state
  • Point-to-Point OSPF Network Operation over a LAN that connects multiple routers
    What happens when LAN interfaces are configured as point-to-point network type OSPF interfaces instead of default broadcast type? And more than 2 ospf routers are present on this media? Let’s test this on network (R1, R2, R3): Routers are Cisco 7206VXR GNS3 emulated and run C7200 ADVENTERPRISEK9-M IOS version 15.3(3)XB12. They are configured as: R1
  • VPNv4 BGP AS-Override Feature into play!
    Let’s put into play AS-Override feature in BGP: see when it applies and how it works. First, AS-Override feature applies to sites that have the same AS number but are linked by another different domain with different AS number, as in the next figure. In our example AS number 1 has neighborship (E-BGP links) to
September 2025
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  
Table of Contents
Copied!