Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

IGMP Protocol

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.

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.


3. Host Leaves a Multicast Group

When a host wants to leave a multicast group, it sends an IGMP Leave Group message.


Key Features of IGMP

  1. Multicast Group Membership Management:
  2. Supports hosts dynamically joining or leaving multicast groups.
  3. - Supports hosts dynamically joining or leaving multicast groups.
    1. Router Query Mechanism:
    2. Routers learn about multicast members on the local network through periodic queries.
    3. - Routers learn about multicast members on the local network through periodic queries.
      1. Version Support:
      2. IGMP has multiple versions (IGMPv1, IGMPv2, IGMPv3), each with different features and compatibility.
      3. - IGMP has multiple versions (IGMPv1, IGMPv2, IGMPv3), each with different features and compatibility.
        1. High Efficiency:
        2. Transmits data via multicast, reducing network bandwidth usage.
        3. - Transmits data via multicast, reducing network bandwidth usage.

          Application Scenarios of IGMP

          IGMP is widely used in the following scenarios:

          1. Video Streaming:
          2. Supports multiple users watching the same video stream simultaneously.
          3. - Supports multiple users watching the same video stream simultaneously.
            1. Online Meetings:
            2. Supports multiple users participating in the same online meeting.
            3. - Supports multiple users participating in the same online meeting.
              1. Online Games:
              2. Supports multiple players participating in the same online game simultaneously.
              3. - Supports multiple players participating in the same online game simultaneously.
                1. Data distribution:
                2. Supports distributing data to multiple recipients simultaneously.
                3. - Supports distributing data to multiple recipients simultaneously.

                  Advantages and Disadvantages of IGMP

                  Fixed size, stores elements of the same type.

                  1. Efficiency:
                  2. Transmits data via multicast, reducing network bandwidth usage.
                  3. - Transmits data via multicast, reducing network bandwidth usage.
                    1. Flexibility:
                    2. Supports hosts dynamically joining or leaving multicast groups.
                    3. - Supports hosts dynamically joining or leaving multicast groups.
                      1. Extensibility:
                      2. Supports large-scale multicast communication.
                      3. - Supports large-scale multicast communication.

                        High efficiency in random access of elements.

                        1. Complexity:
                        2. The management and configuration of multicast networks is relatively complex.
                        3. - The management and configuration of multicast networks is relatively complex.
                          1. Compatibility:
                          2. Different versions of IGMP may have compatibility issues.
                          3. - Different versions of IGMP may have compatibility issues.

                            Versions of IGMP

                            IGMP has multiple versions, each with different features and compatibility:

                            1. IGMPv1:
                            2. Supports basic multicast group membership management functions.
                            3. - Supports basic multicast group membership management functions.
                              1. IGMPv2:
                              2. Adds leave group messages and group-specific query functions.
                              3. - Adds leave group messages and group-specific query functions.
                                1. IGMPv3:
                                2. Adds source filtering, allowing hosts to choose to receive multicast data from specific sources.
                                3. - Adds source filtering, allowing hosts to choose to receive multicast data from specific sources.

                                  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.