Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction to
IP Multicast
Routing
An IP Multicast Initiative White Paper
A technical overview of
IP Multicast routing protocols and their features
Inside…
Scope Of This Document ....................................................................................... 2
Interoperability ........................................................................................................ 9
Copyright ©1995-1997 Stardust Technologies, Inc. All Rights Reserved. Stardust® is a registered trademark of St ardust Technologies, Inc.
All trademarks acknowledged. IPMI is a division of Stardust Labs.
RESTRICTED RIGHTS LEGEND USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT IS SUBJECT TO RESTRICTIONS AS SET FORTH I N SUBPARAGRAPH
( c ) (1) (ii) OF THE RIGHTS IN TECHNICAL DATA AN D COMPUTER SOFTWARE CLA US E AT DFARS 252.227-7013 or subparagraphs ( c ) (1) and (2) of Commercial
Computer Software–Restricted Rights at 48 CFR 52.227-19, as applicable.
Stardust Technologies, Inc., 1901 S. Bascom Ave., Suite 333, Campbell, CA 95008
Introduction to IP Multicast Routing
A technical overview of IP Multicast routing protocols
and their features
IP Multicast routing protocols generally follow one of two basic approaches, depending
on the expected distribution of multicast group members throughout the network. The first
approach is based on assumptions that the multicast group members are densely distributed
throughout the network (i.e., many of the subnets contain at least one group member) and
that bandwidth is plentiful. So-called “dense-mode” multicast routing protocols rely on a
technique called flooding to propagate information to all network routers. Dense-mode
routing protocols include Distance Vector Multicast Routing Protocol (DVMRP), Multicast Open
Shortest Path First (MOSPF), and Protocol-Independent Multicast - Dense Mode (PIM-DM).
The second approach to multicast routing basically assumes the multicast group
members are sparsely distributed throughout the network and bandwidth is not necessarily
widely available, for example across many regions of the Internet or if users are connected via
ISDN lines. Sparse-mode does not imply that the group has a few members, just that they are
widely dispersed. In this case, flooding would unnecessarily waste network bandwidth and
hence could cause serious performance problems. Hence, “sparse-mode” multicast routing
protocols must rely on more selective techniques to set up and maintain multicast trees.
Sparse-mode routing protocols include Core Based Trees (CBT) and Protocol-Independent
Multicast - Sparse Mode (PIM-SM).
This document compares and discusses the features of these routing protocols. Also
presented is a transitional strategy, tunneling, which can be used to route IP Multicast
2
traffic over portions of an internetwork that do not yet have multicast capabilities. All of
the IP Multicast routing algorithms and protocols are rapidly evolving. For the current
status of individual protocols, see the references at the end of this document and the
latest IETF drafts and RFC’s.
DVMRP constructs a different distribution tree for each source and its destination host
group. Each distribution tree is a minimum spanning tree from the multicast source at the
root of the tree to all the multicast receivers as leaves of the tree. The distribution tree
provides a shortest path between the source and each multicast receiver in the group, based
on the number of hops in the path, which is the DVMRP metric. A tree is constructed on
demand, using a “broadcast and prune” technique, when a source begins to transmit
messages to a multicast group.
To simplify the description of DVMRP, we assume that all routers in the network
support DVMRP. The approach used by DVMRP is to assume initially that every host on the
network is part of the multicast group. The designated router on the source subnet, i.e., the
router that has been selected to handle routing for all hosts on its subnet, begins by
transmitting a multicast message to all adjacent routers. Each of these routers then
selectively forwards the message to downstream routers, until the message is eventually
passed to all multicast group members.
The selective forwarding during the formation of the spanning tree works as
follows. When a router receives a multicast message, it checks its unicast routing tables to
determine the interface that provides the shortest path back to the source. If that was the
interface over which the multicast message arrived, then the router enters some state
information to identify the multicast group in its internal tables (specifying interfaces over
which messages for that group should be forwarded) and forwards the multicast message
to all adjacent routers, other than the one that sent the message. Otherwise, the message
is simply discarded. This mechanism, called Reverse Path Forwarding, ensures that there
will be no loops in the tree and that the tree will include shortest paths from the source to
all recipients. This is basically the broadcast part of the protocol.
DVMRP actually uses a forwarding process that is even more selective than the
process described above, by relying on specific information that is provided by the unicast
routing protocol. (Note that this implies that DVMRP must contain its own integrated
unicast routing protocol.) A DVMRP router, say router MR1, contains information in its
3
unicast routing tables that enables it to determine if an adjacent DVMRP router, say router
MR2, will recognize MR1 as being on the shortest path back to the multicast source. This
enables MR1 to forward a multicast message to MR2 only if MR2 will be able to use it to
further the construction of the multicast tree. This enhancement potentially results in a
considerable reduction in the number of flooding messages that are required to construct
the distribution tree.
The prune part of the protocol eliminates branches of the tree that don’t lead to any
multicast group members. The Internet Group Management Protocol (IGMP), running
between hosts and their immediately neighboring multicast routers, is used to maintain
group-membership data in the routers. When a router determines that no hosts beyond it
belong to the multicast group, it sends a prune message to its upstream router. Of course,
Figure 1 routers must update (source, destination group) state information in their tables to reflect
Construction
which branches have been pruned from the tree. This process continues until all
of a DVMRP
spanning tree superfluous branches are eliminated from the tree, resulting in a minimum spanning tree.
4
DVMRP works well for a multicast group that is densely represented within a
subnet. However, for multicast groups that are sparsely represented over a wide-area
network, the periodic broadcast behavior would cause serious performance problems.
Another problem with DVMRP is the amount of multicast routing state information that
must be stored in the multicast routers. All the multicast routers must contain state
information for every (source, group) pair, either information designating the interface to
be used for forwarding multicast messages or prune-state information. For these reasons,
DVMRP does not scale to support multicast groups that are sparsely distributed over a
large network.
Multicast Extensions to OSPF (MOSPF) are defined in RFC-1584. Open Shortest Path
First (OSPF), a unicast routing protocol, routes messages along least-cost paths, where cost
is expressed in terms of a link-state metric. In addition to number of hops in a path, other
network performance parameters that can influence the assignment of cost to a path
include load-balancing information (e.g., a link that has very little traffic on it might be
assigned a lower cost than a heavily utilized link, in an attempt to balance traffic on the
network), an application’s desired quality of service (e.g., if an application requires low
latency, a path involving a satellite link should be assigned a high cost), etc.
MOSPF is intended for use within a single routing domain, e.g., a network controlled
by a single organization. MOSPF is dependent on the use of OSPF as the accompanying
unicast routing protocol, just as DVMRP includes its own unicast protocol. In an OSPF/
MOSPF network each router maintains an up-to-date image of the topology of the entire
network. This “link-state” information is used to construct multicast distribution trees.
5
information is stored for use in routing later datagrams from that stream. This is illustrated
in Figure 2.
Source Step
1
MR 1 2 Steps shown:
3
1. MR 1 computes tree - knows members of group via
IGMP and hence knows path to MR 4 is via MR 2,
path to MR 8 is via 5, etc.
2. MR 2 computes tree - determines path to MR 4 is
MR 2 MR 3 MR9 direct, path to MR 8 is via MR 5 and MR 3 computes
tree - determines path to MR 9 is direct.
3. MR 5 computes tree - determines path to MR 8 is
direct.
MR 5
MR 4
MR 6 Note that the multicast transmission triggers this process
(i.e. data driven process) and each router, when it
receives a message, calculates exactly the same
distribution tree as its predecessors and uses it to
MR 7 forward the message.
MR 8
modes, one for densely distributed multicast groups and one for sparsely distributed
multicast groups. The first mode, called Protocol-Independent Multicast-Dense Mode, is
described below. The second mode, called Protocol-Independent Multicast-Sparse Mode is
included in the section on sparse-mode routing protocols.
The PIM-DM protocol is data driven, like all dense-mode routing protocols. However,
since PIM-DM is independent of the accompanying unicast routing protocol, data packets
which arrive at a router over the proper receiving interface (i.e., the interface that provides
the shortest path back to the source), are forwarded on all downstream interfaces until
6
unnecessary branches of the tree are explicitly pruned. Recall that DVMRP can be more
selective when it forwards messages during the tree-construction phase by using specific
topology information provided by its own unicast routing protocol. The philosophy followed
by PIM-DM designers is to opt for protocol simplicity and protocol independence, even
though there is likely to be additional overhead due to some packet duplication.
The routing protocols in the previous section all rely on the periodic flooding of
messages throughout the network. This is an efficient approach within regions where a
multicast group is widely represented throughout the network or where there is lots of
available bandwidth. However, consider the problems that could occur if several thousand
small conferences were being conducted simultaneously over the Internet; the aggregate
traffic from this periodic flooding could potentially saturate wide-area Internet
connections. Clearly, if group members are sparsely distributed over a wide area, a
different approach is needed so that multicast traffic is restricted to those links which lead
to members of the multicast group.
A CBT shared tree has a core router that is used to construct the tree. The process is
illustrated in Figure 3. Routers join the tree by sending a join message to the core. When the
core receives a join request, it returns an acknowledgment over the reverse path, thus
forming a branch of the tree. Join messages need not travel all the way to the core before
being acknowledged. If a join message hits a router on the tree before it reaches the core,
that on-tree router terminates the join and acknowledges it. The router that sent the join is
then connected to the shared tree.
7
MR MR
There are advantages to each type of distribution tree. The shared tree is relatively
easy to construct, and it reduces the amount of state information that must be stored in the
routers. Accordingly, a shared tree would conserve network resources if the multicast group
consisted of a large number of low-data-rate sources. However, as indicated above, shared
trees cause a concentration of traffic around the core or the rendezvous point, a
phenomenon that can result in performance degradation if there is a large volume of
multicast traffic. Another disadvantage of shared trees is that traffic often does not traverse
the shortest path from source to destination. If low latency is a critical application
requirement, it would be preferable for traffic to be routed along a shortest path. PIM-SM
architecture supports both types of distribution trees.
8
procedure is illustrated in Figure 4. Note that different types of trees can be selected for
different sources within a single multicast group.
Source 2 Source 1 MR
Figure 4
MR PIM-SM join
MR
Steps shown:
1. The sender at Source 2 registers at the
Rendezvous Point Multicast Router RPt.
2. A receiver joins at Rpt; there is now a bigger
shared tree.
Receiver
RPt MR 3. The receiver is receiving lots of data from
MR MR MR Source 2. The receiver sends an explicit
join to Source 2 to construct a shortest path
route.
Step MR
1
2
3 MR
Interoperability
PIM designers, especially, are addressing the second interoperability issue, both to
enable interoperability between PIM-DM and PIM-SM and to enable interoperability
between PIM and other multicast routing architectures.
9
There is a basic incompatibility between the dense-mode protocol approach for
constructing distribution trees and the approach used by sparse-mode protocols. Dense-
mode protocols are data driven, while sparse-mode protocols rely on explicit join requests. If
a dense-mode group is to interoperate with a sparse-mode group, e.g., to form a group that
is sparsely distributed over a wide-area network but that is densely distributed within a
single subnet, there must be a mechanism for allowing the dense group to reach out to the
sparse group to request to join. The solution proposed by PIM designers is to have “border”
routers send explicit joins to the sparse group. Note that the same approach would enable
PIM-SM to interoperate with other dense-mode protocols, such as DVMRP.
Concluding Remarks
10
Considerations include profiles of expected application usage, scalability, vendor support,
performance overhead, dependence on other network protocols, flexibility,
interoperability and router overhead. Evaluating the many new IP Multicast products, and
services, and tracking the IETF working groups and draft standards will help you assess
potential benefits for your organization. Check the IPMI product directory for current
product offerings from router vendors.
The following references are recommended; many were used in the preparation of
this document. The authors are gratefully acknowledged.
More information
IP Multicast Initiative
There are many other technical aspects of IP Multicast and business benefits that
were not discussed here. The IP Multicast Initiative web site at www.ipmulticast.com has a
technical resource center which provides more background in-depth information including
white papers and relevant RFC’s. The web site also offers a product and services directory
and lists members of the IP Multicast Initiative who can be contacted for information and
assistance.
For more information about the Initiative and membership, or to see other white papers,
contact Stardust Technologies at 408-879-8080 or visit the Initiative web site at:
www.multicast.com.
11
Useful References
BOOKS
Routing in the Internet, Christian Huitema, Prentice Hall, 1995
MBONE: Interactive Media on the Internet, Vinay Kumar, New Riders, 1996
Gigabit Networking, Craig Partridge, Addison-Wesley, 1994
Interconnections, Radia Perlman, Addison-Wesley, 1992
Windows Sockets Network Programming, Bob Quinn and Dave Shute, Addison-Wesley, 1996
Computer Networks, Andrew Tanenbaum, Prentice Hall, 1996
PAPERS
”An architecture for Wide-Area Multicast Routing,” Deering, et al
(See http://netweb.usc.edu/pim)
IETF RFCs
[http://ds.internic.net/rfc/rfcnnnn.txt, nnnn is the RFC number]
RFC 1112 Host Extensions for IP Multicasting
RFC 1075 Distance Vector Multicast Routing Protocol
RFC 1584 Multicast Extensions to OSPF
More white papers are available on the the IPMI web site.
Visit today!
www.ipmulticast.com
12