Multicast routing protocols are critical for e iciently delivering data to multiple receivers in
a network, minimizing the need for redundant transmissions. They are particularly useful in
applications like streaming videos, teleconferencing, and real-time data distribution, where
the same data needs to be delivered to multiple receivers without overloading the network.
So, the Multicast routing is the process of routing packets to multiple receivers in a network,
where the source sends a single copy of the data, and routers in the network duplicate and
forward that copy to the recipients. This contrasts with unicast. In unicast, data is sent to a
single receiver and in broadcast where data is sent to all devices on the network.
In multicast routing, a data packet is addressed to a specific group of receivers, and each
router on the network only forwards the data to the part of the network where there are active
receivers for that multicast group.
By using multicasting, a single video stream is sent to multiple users, reducing the
bandwidth usage compared to unicast, where each user would receive a separate copy of
the stream. So, Multicast ensures that the data is delivered in real-time, which is essential
for video streaming applications, live broadcasts, and teleconferencing.
In multicast routing, data is sent to a multicast group address instead of a single address.
The network routers are responsible for forwarding the multicast data to the receivers that
have expressed interest in it
Multicast Group Address is a special IP address used to identify a group of receivers (e.g.,
IPv4 addresses in the range [Link] to [Link]). A group of hosts (computers,
phones, etc.) subscribe to this address to receive the multicast data.
Multicast Source is the device that sends the data to the multicast group. This could be a
video server, a live event broadcaster, or any other type of data source. Multicast Receiver is
the Device that want to receive the multicast data. These devices join the multicast group to
start receiving the data.
Multicast Tree is a network path created by routers to deliver multicast data from the source
to the receivers. This tree can be either a source-based tree or a shared tree, depending on
the routing protocol used.
Multicast routing protocols are used to e iciently deliver data to multiple receivers in a
network. Protocol independent multicast shortly called as PIM is a multicast routing protocol
that uses existing unicast routing information to create multicast distribution trees. It’s called
‘protocol independent’ because it works with any unicast routing protocol, like OSPF or RIP."
The PIM protocol functions under two modes. One is PIM Dense Mode (PIM-DM) for dense
networks, and another is PIM Sparse Mode (PIM-SM) for sparse networks. PIM-Dense Mode
is designed for networks where receivers are densely located, that is most nodes in the
network are likely to be interested in the multicast tra ic. It uses a flood-and-prune approach
to create a multicast distribution tree.
In the PIM dense mode, When a sender starts sending multicast data, the data is flooded
across the entire network to all routers, regardless of whether they have interested receivers.
This ensures the data reaches all potential members of the multicast group. Routers that do
not have interested receivers send a Prune Message upstream router, Here, upstream
Router is the router from which we receive multicast tra ic. Downstream Router —
The router to which we send multicast tra ic. Once a router receives a prune message, it
stops forwarding multicast tra ic downstream router of that branch of the network. To
maintain the pruned state and adapt to any network changes, PIM-DM uses state refresh
messages. These messages are sent periodically to refresh the prune state on outgoing
interfaces, ensuring that unnecessary flooding does not recur.
If a previously pruned router later has a receiver that expresses interest in the multicast
group, it sends a graft message to upstream router. This graft message re-establishes the
flow of multicast tra ic to that router without waiting for the periodic flood.
The key characteristics of PIM-DMs are
Protocol Independence that is PIM-DM is termed "protocol independent" because it
leverages the existing unicast routing table for Reverse Path Forwarding (RPF) checks, rather
than relying on a specific routing protocol.
The net one is E iciency in Dense Networks that is PIM-DM is most e ective in environments
where multicast group members are densely located, as the initial flooding is more likely to
reach interested receivers without excessive unnecessary tra ic.
And the last characteristic is Periodic Flooding that is By default, PIM-DM would re-flood all
the multicast tra ic every 3 minutes. This behavior can be managed using state refresh
messages to prevent unnecessary flooding.
The another kind PIM is PIM sparse mode. Protocol Independent Multicast Sparse Mode
(PIM-SM) is a multicast routing protocol optimized for networks where receivers are sparsely
distributed. Unlike Dense Mode, which floods tra ic throughout the network, PIM-SM uses a
more controlled approach to e iciently deliver multicast data to interested receivers.
The Key Components of PIM sparse mode are Rendezvous Point (RP) which is A central router
that acts as a meeting place for multicast sources and receivers. All multicast tra ic initially
passes through the RP and Designated Router (DR) that is The router on a local network
segment responsible for communicating with the RP on behalf of multicast receivers or
sources.
When a host wants to join a multicast group, it sends an Internet Group Management
Protocol (IGMP) membership report to its local router that is designated router shortly called
as DR. The DR sends a PIM Join message toward the RP that is Rendezvous Point ,
establishing a path from the RP to the receiver.
When a source begins sending multicast tra ic, its local DR encapsulates the multicast
packets in PIM Register messages and unicasts them to the RP. The RP decapsulates these
packets and forwards them downstream router in the shared tree to any joined receivers.
Initially, multicast tra ic flows from the source to the Rendezvous Point and then down a
shared distribution tree to all receivers. This shared tree is also known as an Rendezvous
Point tree and is used to deliver tra ic to multiple receivers e iciently.
If the data rate from the source is high or if lower latency is desired, the last-hop router that
is the router closest to the receiver may initiate a switch to a Source-Specific Tree (SPT).
The last-hop router sends a PIM Join message directly toward the source, creating a more
e icient, direct path.
Once the SPT is established, the router may send a PIM Prune message to the RP to stop
receiving tra ic via the shared tree.
The Advantages of PIM-SM are E iciency through constructing distribution trees only for
groups with active receivers, PIM-SM conserves bandwidth and reduces unnecessary tra ic
and the second one is scalability. The reason is it is Suitable for large, wide-area networks
with numerous multicast groups and sparsely located receivers and the last one is Protocol
Independence that is PIM-SM operates independently of specific unicast routing protocols,
allowing flexibility in various network environments.
The next protocol for multicast routing is the Distance Vector Multicast Routing Protocol
which is a fundamental protocol for routing multicast data across IP networks. It employs a
distance vector algorithm, similar to the Routing Information Protocol (RIP), to establish
e icient multicast delivery paths.
DVMRP utilizes Reverse Path Broadcasting to construct source-rooted multicast delivery
trees. When a multicast packet is received, the router checks if it arrived on the interface that
is on the shortest path back to the source. If so, the packet is forwarded to all other
interfaces; otherwise, it is discarded.
To enhance e iciency, DVMRP implements Reverse Path Multicasting, which adds pruning
to the Reverse Path Broadcasting process. Routers without downstream receivers for a
multicast group send prune messages upstream, preventing unnecessary data
transmission.
Routers establish neighbor relationships by exchanging routing reports. Two-way neighbor
relationships are essential for proper DVMRP operation. Routing reports from unknown
neighbors are discarded to maintain routing integrity.
Routers that do not have any downstream receivers for a multicast group send prune
messages upstream to their parent nodes, e ectively removing themselves from the
multicast distribution tree. If a router later needs to rejoin the multicast group, it can send a
graft message upstream to reestablish the data flow as like PIM.
DVMRP can operate over tunnels, such as Generic Routing Encapsulation (GRE) tunnels, to
facilitate multicast routing across networks that do not natively support multicast. This
allows for the extension of multicast capabilities over diverse network infrastructures.
The Key Characteristics of Distance Vector Multicast Routing Protocol are as follows, The
first characteristic is Protocol Independence that is DVMRP is designed to function
independently of specific unicast routing protocols, allowing it to operate in various network
environments and the second characteristic is Dense Mode Operation. So, DVMRP operates
in dense mode, assuming that multicast group members are densely distributed throughout
the network. This assumption leads to the initial flooding of multicast tra ic, followed by
pruning of branches without receivers and the last characteristic is Scalability
Considerations. This characteristic is e ective in certain scenarios, DVMRP's reliance on
periodic flooding and its flat unicast routing mechanism can pose scalability challenges in
large or complex network topologies.