CH 10
CH 10
Multicasting
Position of IGMP in the network layer
• Processes may have to send the same message to
a large numbers of receivers simultaneously
– Example: Video-on-demand
– Informing multiple stockbrokers about changes to a
stock price
– IGMP is necessary but not sufficient for multicasting
– IGMP is a companion to the IP protocol
CONTENTS
10.1
• GROUP MANAGEMENT
• IGMP MESSAGES
• IGMP OPERATION GROUP
• ENCAPSULATION MANAGEMENT
• IGMP PACKAGE
1
Multicasting and Routing Multicasting and Routing
• To support multicasting there needs to be routers • IGMP protocol gives the multicast routers info
about the membership status of hosts (routers)
capable of routing multicast packets connected to the network.
• Routing tables must be updated using a • A multicast router may receive thousands of
multicasting routing protocol multicast packets every day for different groups
• IGMP is not a multicasting routing protocol • If a router has no knowledge about the
• IGMP manages group membership membership status of the hosts it must broadcast
all of the multicast packets (excess traffic)
• Group membership: hosts and routers and the
groups they are “interested” in (subscribe to) • Better to maintain list of groups in the network
for which there is at least one “loyal” member
• ICMP helps the multicast router create and
update the group lists related to each interface
2
IGMP Operation
• IGMP operates locally, i.e., within a network
• For each group there is only one router connected
10.3 to the network that has the duty of distributing the
multicast packets destined for that group
IGMP
• A host has “membership” if one of its processes
OPERATION receives receives multicast packets from some
group
• A router has “membership” means that there is a
network attached to some other interface that
receives multicast packets for the group
3
Leaving a Group Leaving a Group (con’t)
• There must be a mechanism for a device to report
• There must be a mechanism for a device to report that it no longer wishes to have membership in a
that it no longer wishes to have membership in a group
group • When a multicasting router receives a leave
• When a host sees that no process is interested in a report on an interface it cannot assume that all
devices are disinterested in membership, just the
specific group, it send a leave report.
device that sent the leave report
• When a router determines that none of the • The router must send a special query message
networks connected to its interfaces is interested that includes the groupid (multicast address)
in a specific group, it sends a leave report about • The router then waits for membership reports; if
that group none arrive within the time interval the router
purges the the group from its list
Leave report
Monitoring Membership
• Hosts and routers use membership and leave
reports to join and leave groups
• However these messages are not enough
– Consider the case where a host is taken offline before
it can send its leave report
– The multicast router will never receive a leave report
• A multicast router is responsible for monitoring
all of the hosts and routers on a LAN to see if
they wish to continue their membership in a
group
• The general query message is issued periodically
4
Example 1 (con’t) Example 1 (con’t)
Time 12: The timer for 228.42.0.0 in host A Time 30: The timer for 225.14.0.0 in host A
expires and a membership report is sent, which is expires and a membership report is sent, which is
received by the router and every host including received by the router and every host including
host B which cancels its timer for 228.42.0.0. host C which cancels its timer for 225.14.0.0
Time 50: The timer for 251.70.0.0 in host C Time 70: The timer for 230.43.0.0 in host A
expires and a membership report is sent, which is expires and a membership report is sent, which is
received by the router and every host. received by the router and every host including
host A which cancels its timer for 230.43.0.0.
Example 1 (con’t)
10.4
ENCAPSULATION
Note that if each host had sent a report for every group in
its list, there would have been seven reports; with this
strategy only four reports are sent.
5
Encapsulation of IGMP packet Mapping class D to Ethernet physical address
Query msg destination: 224.0.0.1 (all systems on subnet) Hosts can receive frames for groups for which they don’t
Membership report destination: multicast address of relevant group subscribe
Host must check IP addresses and discard packets
Leave report: 224.0.0.2 (all routers on subnet)
Tunneling
Technique applicable when no physical multicast support
Emulate physical multicast support
Multicast packet encapsulated within unicast packet 10.5
IGMP
PACKAGE
Group table
IGMP
package