What Is Protocol Independent Multicast
What Is Protocol Independent Multicast
What Is Protocol Independent Multicast
Generally, a multicast domain predominantly employs either PIM Sparse Mode or PIM Dense
Mode. Nevertheless, it's feasible to deploy both within the same domain, implementing Sparse
Mode for certain groups and Dense Mode for others. This mixed approach is known as Sparse-
Dense Mode. Similarly, Bi-directional PIM can function indepedently or alongside PIM Sparse
Mode and PIM Dense Mode.
All PIM protocols adhere to a common control message format, delivered as raw IP datagrams
(protocol number 103). These messages are either multicast to the link-local ALL PIM ROUTERS
group or unicast to a specific destination.
PIM-SM operates with soft-state, where state times out after a period. PIM Join messages are
periodically retransmitted to maintain the state.
Bi-directional PIM
Bi-directional PIM (BIDIR-PIM) is another PIM protocol based on PIM-SM. It differs from PIM-SM
in the way data is sent from sources to the RP. Data in BIDIR-PIM flows along a shared,
bidirectional tree to the RP. There are no sourcebased trees, and Designated Forwarders (DFs)
are elected to avoid forwarding loops. BIDIR-PIM scales well when there are numerous sources
for each group, but it forces traffic to remain on the shared tree.
Mixed-mode PIM Configurations
While PIM-SM, PIM-DM, and BIDIR-PIM are typically used separately in multicast domains, it is
possible to employ a combination by asigning multicast groups to different protocols. The PIM
Hello protocol is the common interaction point for these protocols. Techniques like Bootstrap
Router (BSR) extensions, configuration adjustments, or manual configuration are used to
distribute groups among the three protocols. Uniform assignment of group-to-protocol is crucial
across all routers in the domain
The primary way these protocols collaborate is through the utilization of the same PIM Hello
protocol, which runs once on each conection. The knowledge acquired during the exchange of
Hello messages must be shared among all three routing protocols.
The process of allocating multicast groups among these three protocols falls beyond the scope of
the PIM protocols and is a matter of local configuration. It's essential to ensure that every router in
the network adopts a consistent group-to-protocol assignment.
Bootstrap Router (BSR) Protocol Extension
The BSR protocol, mainly employed for RP (Rendezvous Point) discovery, has been expanded to
incorporate a "Bi-directional" indicator for each group range. This approach can be used to
designate groups for either sparse or bi-directional modes when BSR is employed.
Configuration of Routers
Routers can be configured to switch to dense mode when the RP discovery mechanism
(regardless of its type) fails to identify an available RP for a specific group. If RP discovery is
successful, routers can be configured to use sparse or bidirectional mode as required.
These techniques ensure that multicast groups are apropriately distributed among PIM Sparse
Mode, PIM Dense Mode, and Bi-directional PIM, depending on network needs, even though the
exact allocation is not standardized within the PIM protocols themselves.