IGMP Protocol
IGMP (Internet Group Management Protocol) is a protocol used to manage IP multicast group membership.
IGMP runs between hosts and their directly connected routers to support IP multicast communication.
How IGMP Works
The main function of IGMP is to allow hosts to join or leave multicast groups and to let routers know which multicast groups have members on the local network.
1. Host Joins a Multicast Group
When a host wants to join a multicast group, it sends an IGMP Membership Report message to the local network.

- The host sends an IGMP membership report message indicating it wants to receive data for a certain multicast address.
2. Router Queries Multicast Members
Routers periodically send IGMP Membership Query messages to ask which hosts on the local network are members of multicast groups.

- The router sends IGMP query messages to ask about multicast members on the local network.
- After receiving the query message, the host sends an IGMP membership report message indicating it is still a member of the multicast group.
3. Host Leaves a Multicast Group
When a host wants to leave a multicast group, it sends an IGMP Leave Group message.

- The host sends an IGMP leave group message indicating it no longer wants to receive data for a certain multicast address.
- After receiving the leave group message, the router sends a Group-Specific Query to confirm whether any other hosts are still members of that multicast group.
Key Features of IGMP
- Multicast Group Membership Management:
- Router Query Mechanism:
- Version Support:
- High Efficiency:
Application Scenarios of IGMP
IGMP is widely used in the following scenarios:
- Video Streaming:
- Online Meetings:
- Online Games:
- Data distribution:
Advantages and Disadvantages of IGMP
Fixed size, stores elements of the same type.
- Efficiency:
- Flexibility:
- Extensibility:
High efficiency in random access of elements.
- Complexity:
- Compatibility:
Versions of IGMP
IGMP has multiple versions, each with different features and compatibility:
- IGMPv1:
- IGMPv2:
- IGMPv3:
In summary, IGMP is a protocol used to manage IP multicast group membership. By allowing hosts to join or leave multicast groups and letting routers know about multicast members on the local network, it supports efficient multicast communication. It is widely used in scenarios such as video streaming, online meetings, online games, and data distribution.