Practical 1
Practical 1
PRACTICAL -1
AIM:- Explain the working of IGMP protocol.
Definition-
IGMP is a network layer protocol within the Internet Protocol Suite, specifically
part of the IP version 4 (IPv4). It is used by hosts to report their multicast group
memberships to any neighboring multicast routers.
Description-
PIET-DS(CE) Page 1
Advanced Computer Network - Lab (03606384) Enrollment No: 210339616031
Advantages-
Disadvantages –
Applications-
o Video Streaming
o Online Gaming
o Live Broadcasting
o Software Updates
o Collaborative Environments
o IPTV (Internet Protocol Television)
PIET-DS(CE) Page 2
Advanced Computer Network - Lab (03606384) Enrollment No: 210339616031
Working-
The working of the Internet Group Management Protocol (IGMP) involves the
interaction between hosts, routers, and switches in a network to manage multicast
group memberships. Here's a detailed overview of the IGMP protocol's working:
PIET-DS(CE) Page 3
Advanced Computer Network - Lab (03606384) Enrollment No: 210339616031
Router Query for Departed Hosts: After receiving an IGMP leave message,
the router may send an IGMP query to check if any other hosts are still
interested in the multicast group. If no host responds to the query, the router
stops forwarding multicast traffic for that group on the corresponding
network segment.
Timeout and Expiry: If a router doesn't receive any IGMP messages (join or
leave) for a specific multicast group after a certain timeout period, it may
assume that there are no interested hosts and stop forwarding traffic for that
group.
It’s types-
o Version – Set to 1.
o Type – 1 for Host Membership Query and Host Membership Report.
o Unused – 8-bits of zero which are of no use.
o Checksum – It is the one’s complement of the sum of IGMP messages.
o Group Address – The group address field is zero when sent and ignored
when received in membership query message. In a membership report
message, the group address field takes the IP host group address of the
group being reported.
PIET-DS(CE) Page 4
Advanced Computer Network - Lab (03606384) Enrollment No: 210339616031
o Max Response Time – This field is ignored for message types other than
membership query. For membership query type, it is the maximum time
allowed before sending a response report. The value is in units of 0.1
seconds.
o Checksum – It is the one’s complement of the sum of IGMP message. It
determines the entire payload of the IP datagram in which IGMP message is
encapsulated.
o Group Address – It is set as 0 when sending a general query. Otherwise,
multicast address for group-specific or source-specific queries. The behavior
of this field depends on the type of the message sent.
o Max Response Time – This field is ignored for message types other than
membership query. For membership query type, it is the maximum time
PIET-DS(CE) Page 5
Advanced Computer Network - Lab (03606384) Enrollment No: 210339616031
PIET-DS(CE) Page 6