Internet Group Management Protocol: Objectives
Internet Group Management Protocol: Objectives
Internet Group Management Protocol: Objectives
Figure 10.1
Note: IGMP is a group management protocol. It helps a multicast router create and update a list of loyal members related to each router interface.
Figure 10.2
Figure 10.3
The topics discussed in this section include: Joining a Group Leaving a Group Monitoring Membership
Figure 10.4
IGMP operation
10
Figure 10.5
Membership report
11
Note: In IGMP, a membership report is sent twice, one after the other.
12
Figure 10.6
Leave report
13
Note: The general query message does not define a particular group.
14
Figure 10.7
15
Example 1
Imagine there are three hosts in a network as shown in Figure 10.8. A query message was received at time 0; the random delay time (in tenths of seconds) for each group is shown next to the group address. Show the sequence of report messages.
16
Figure 10.8
Example 1
17
Example 1 (Continued)
Solution The events occur in this sequence:
a. Time 12: The timer for 228.42.0.0 in host A expires and a membership report is sent, which is received by the router and every host including host B which cancels its timer for 228.42.0.0. b. Time 30: The timer for 225.14.0.0 in host A expires and a membership report is sent, which is received by the router and every host including host C which cancels its timer for 225.14.0.0. c. Time 50: The timer for 238.71.0.0 in host B expires and a membership report is sent, which is received by the router and every host.
18
Example 1 (Continued)
d. Time 70: The timer for 230.43.0.0 in host C expires and a membership report is sent, which is received by the router and every host including host A which cancels its timerfor 230.43.0.0.
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.
19
10.4 ENCAPSULATION
The IGMP message is encapsulated in an IP datagram, which is itself encapsulated in a frame.
The topics discussed in this section include: IP Layer Data Link Layer Netstat Utility
20
Figure 10.9
21
Note: The IP packet that carries an IGMP packet has a value of 2 in its protocol field.
22
Note: The IP packet that carries an IGMP packet has a value of 1 in its TTL field.
23
24
Figure 10.10
25
26
Example 2
Change the multicast IP address 230.43.14.7 to an Ethernet multicast physical Solution We can do this in two steps:
a. We write the rightmost 23 bits of the IP address in hexadecimal. This can be done by changing the rightmost 3 bytes to hexadecimal and then subtracting 8 from the leftmost digit if it is greater than or equal to 8. In our example, the result is 2B:0E:07. b. We add the result of part a to the starting Ethernet multicast address, which is (01:00:5E:00:00:00). The result is
01:00:5E:2B:0E:07
TCP/IP Protocol Suite
27
Example 3
28
29
Example 4
We use netstat with three options, -n, -r, and -a. The -n option gives the numeric versions of IP addresses, the -r option gives the routing table, and the -a option gives all addresses (unicast and multicast). Note that we show only the fields relative to our discussion. $ netstat -nra Kernel IP routing table Destination Gateway 153.18.16.0 0.0.0.0 169.254.0.0 0.0.0.0 127.0.0.0 0.0.0.0 224.0.0.0 0.0.0.0 0.0.0.0 153.18.31.254
Flags U U U U UG
Any packet with a multicast address from 224.0.0.0 to 239.255.255.255 is masked and delivered to the Ethernet interface.
TCP/IP Protocol Suite
30
31
Figure 10.12
IGMP package
32
Figure 10.13
Group table
33