100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace

What is IGMP (Internet Group Management Protocol)?

Learn what IGMP is, how hosts join multicast groups, and how it differs from PIM — with networking interview questions answered.

mediumQ33 of 224 in Computer Networks Est. time: 5 minsLast updated:
Open Code Lab

Expected Interview Answer

IGMP (Internet Group Management Protocol) is a Network-layer protocol that hosts and neighboring routers use to establish and manage multicast group memberships, so a router knows which of its local hosts want to receive traffic addressed to a particular multicast group and can forward it only where needed.

IP multicast lets a single stream of packets, sent to a special multicast address (in the 224.0.0.0/4 range for IPv4), be delivered to many interested receivers without the sender needing to know who they are or send a separate copy to each. IGMP is the signalling protocol that makes this efficient: a host that wants to join a multicast group sends an IGMP Membership Report to its local router, and the router uses IGMP Queries periodically to check which groups still have interested members on that segment, pruning delivery to segments with no remaining listeners via a Leave Group message (in IGMPv2/v3). This matters because without group management, a router would either flood multicast traffic everywhere (wasting bandwidth) or have no way to know where to send it at all. IGMP operates only between a host and its directly connected router on a LAN segment; getting multicast traffic to route between different networks requires a separate multicast routing protocol like PIM, which uses the group membership information IGMP provides.

  • Lets routers know which hosts want a given multicast stream
  • Avoids flooding multicast traffic to segments with no listeners
  • Enables efficient one-to-many delivery for streaming/live traffic
  • Feeds membership state into multicast routing protocols like PIM

AI Mentor Explanation

IGMP is like fans signing up for a stadium’s live radio commentary feed on a shared frequency — instead of the broadcast van sending a separate signal to every single fan’s device, it only needs to know which sections of the stadium have subscribed listeners and beam the feed there. A steward periodically checks 'is anyone in this stand still listening?' and stops relaying to sections where no one responds. This subscribe-and-prune pattern is exactly what IGMP does for multicast group membership.

Step-by-Step Explanation

  1. Step 1

    Host joins a group

    A host sends an IGMP Membership Report to its local router, requesting to receive traffic for a specific multicast address.

  2. Step 2

    Router tracks membership

    The router records which multicast groups have interested members on each attached segment.

  3. Step 3

    Periodic queries

    The router sends IGMP Queries to confirm which groups still have active listeners.

  4. Step 4

    Leave and prune

    When no host responds for a group (or sends an explicit Leave in IGMPv2/v3), the router stops forwarding that multicast traffic to the segment.

What Interviewer Expects

  • Explains IGMP manages multicast group membership between hosts and local routers
  • Distinguishes IGMP (local segment) from multicast routing protocols like PIM (inter-network)
  • Knows the Join/Query/Leave lifecycle
  • Understands the efficiency benefit versus flooding traffic to everyone

Common Mistakes

  • Confusing IGMP with ICMP (different protocols, different purposes)
  • Thinking IGMP alone routes multicast traffic across networks
  • Not knowing multicast addresses live in the 224.0.0.0/4 range
  • Assuming multicast traffic is always delivered to every host on a network

Best Answer (HR Friendly)

IGMP is the protocol that lets a network device tell its router 'I want to receive this particular group broadcast,' like subscribing to a live video stream. The router uses that information to send the stream only to the parts of the network where someone actually asked for it, instead of blasting it everywhere and wasting bandwidth.

Code Example

Inspecting IGMP multicast group membership on Linux
# Show multicast group memberships this host has joined
ip maddr show

# Example output:
# 2: eth0
#     inet  224.0.0.251
#     inet  224.0.0.1

# Capture IGMP traffic on the wire
sudo tcpdump -n igmp

# Join a multicast group manually for testing (requires a multicast tool)
# smcroute -j eth0 239.1.1.1

Follow-up Questions

  • What is the difference between IGMPv1, IGMPv2, and IGMPv3?
  • How does IGMP relate to a multicast routing protocol like PIM?
  • What is IGMP snooping and why do switches implement it?
  • What range of IP addresses is reserved for multicast?

MCQ Practice

1. What is the primary purpose of IGMP?

IGMP lets hosts signal interest in multicast groups so local routers know where to forward that traffic.

2. What IPv4 address range is reserved for multicast?

224.0.0.0/4 is the IPv4 multicast address range.

3. What happens when a router receives no response to an IGMP Query for a group?

If no host responds (or a Leave is sent), the router prunes delivery of that multicast group to the segment.

Flash Cards

What does IGMP manage?Multicast group membership between hosts and their local router.

How does a host join a group?By sending an IGMP Membership Report to its local router.

How does a router check membership?Via periodic IGMP Queries to the segment.

Does IGMP route multicast across networks?No — that requires a separate multicast routing protocol like PIM.

1 / 4

Continue Learning