What is IGMP?
IGMP lets a device tell its local router which multicast groups it wants. Multicast sends one stream to a group address in 224.0.0.0 to 239.255.255.255, and the network copies it only where someone has joined. ISP TV services, stock tickers and some live video use it.
The story here uses IGMPv2, which many TV boxes still speak: Membership Report to join, Leave Group to leave, and Membership Query from the router to check who is still listening. IGMPv3, now RFC 9776, adds the option to ask for a stream from a specific source only. Switches with IGMP snooping read these messages to keep the stream off ports that do not want it.
Think of it like this. IGMP is like a radio club noticeboard. You write your name under a station you want piped to your room (join). The caretaker asks now and then who still wants each station (query), and when the last name is crossed off (leave), that station is turned off on your floor.
Step by step
Normal
4 stepsA TV box joins a multicast IPTV channel, the stream arrives, and the router checks now and then that someone is still watching.
Normal
4 stepsA TV box joins a multicast IPTV channel, the stream arrives, and the router checks now and then that someone is still watching.
- 1
Join the channel
Membership Report
Arjun picks channel 1. The TV box sends an IGMP Membership Report for group 239.1.1.10, which says: I want this stream.
- 2
Snooping and proxy
Switch and router take note
The switch reads the report (IGMP snooping) and notes that port 1 wants this group. The router, acting as an IGMP proxy, sends its own report towards the ISP.
- 3
Stream flows
Only to the TV port
The ISP sends one copy of the channel. The router passes it into the home, and the switch delivers it only to the TV box's port.
- 4
Still watching?
General Query every 125 seconds
The router, the querier, asks all hosts which groups they want. The TV box answers within 10 seconds. If nobody answers for about 260 seconds, the stream is cut.
Channel change
4 stepsArjun switches channels: the TV box leaves the old group, the router checks nobody else watches, then joins the new one.
Channel change
4 stepsArjun switches channels: the TV box leaves the old group, the router checks nobody else watches, then joins the new one.
- 1
Leave and join
Leave Group, then a new report
The TV box sends Leave Group for 239.1.1.10 to all routers on 224.0.0.2, and at once a Membership Report for the new channel. Leave messages exist from IGMPv2 onward; version 1 had no quick way to leave.
- 2
Anyone else?
Group-specific query
The router cannot know if another device still watches the old channel, so it asks that group directly, twice, one second apart. Meanwhile the new channel already flows.
- 3
Stop the old stream
No answer, prune
Nobody answers, so the router stops the old stream and tells the ISP. Many switches and routers use fast leave to skip this wait on single-viewer ports.
- 4
Only the new channel
One stream again
Now only channel 2 comes down the line. With fast leave, the whole change takes well under a second.
No snooping
3 stepsWithout IGMP snooping the switch floods the TV stream to every port, and the Wi-Fi slows to a crawl.
No snooping
3 stepsWithout IGMP snooping the switch floods the TV stream to every port, and the Wi-Fi slows to a crawl.
- 1
A plain switch
Multicast looks unknown
A switch without IGMP snooping has no table for multicast MAC addresses, so it treats the stream like a broadcast.
- 2
Flooded everywhere
Laptop and Wi-Fi get it too
Every port gets a copy of the TV stream. The Wi-Fi access point must send it over the air, often at a slow basic rate, which eats most of the airtime.
- 3
Turn on snooping
Only the TV port
With IGMP snooping on, the switch listens to reports and sends the stream only to ports that asked. Many routers with built-in switches have a setting for it.
Myths and mix-ups
- IGMP does not carry the video; it only says who wants it, and the video travels as UDP to the group address.
- Multicast is not the same as broadcast; it goes only where someone joined, if the switches and routers are set up for it.
- IGMP does not work across the internet on its own; between routers, multicast uses other protocols such as PIM.
- Streaming apps on your phone do not use IGMP; they use unicast HTTP, one copy per viewer.
Try it yourself
Run these on your own computer to see IGMP at work.
Groups you have joined (Linux)
ip maddr showLists multicast groups per interface, such as 224.0.0.1 that every host joins.
IGMP state (Linux)
cat /proc/net/igmpShows groups and the IGMP version in use on each interface.
Groups you have joined (Windows)
netsh interface ip show joinsLists joined multicast groups per interface.
Watch IGMP on the wire
sudo tcpdump -ni eth0 igmpChange eth0 to your interface. Start an IPTV channel or wait for the router's queries.
IGMP at a glance
- Layer
- Network (3)
- IP protocol
- 2
- Versions
- v1 (1989), v2 (1997), v3 (2002, now RFC 9776)
- Addresses
- 224.0.0.0/4; 224.0.0.1 all hosts, 224.0.0.2 all routers, 224.0.0.22 v3 reports
- Query interval
- 125 seconds by default
- TTL
- 1, never routed off the local network
- IPv6 version
- MLD (Multicast Listener Discovery)
- Defined in
- RFC 2236 (v2), RFC 9776 (v3)
Defined inRFC 2236RFC 9776RFC 4541RFC 1112
Header fields
What IGMP puts in its messages, with example values from the stories above.
IGMPv2
- Type
0x16 (Membership Report v2)- Max response time
100 (10 seconds)Hosts answer at a random moment within 10 seconds so they do not all reply at once.- Group address
239.1.1.10
Test yourself
What does a Membership Report say?
Questions people ask
What is IGMP used for?
It lets devices join and leave multicast groups on their local network. The most common home use is ISP TV, where each channel is a multicast group.
Should I enable IGMP snooping?
Yes, if you have IPTV or other multicast on your network. It keeps the streams off ports and Wi-Fi that do not need them. It works best when a querier, usually your router, is on the network.
What is IGMP proxy on my router?
A setting that lets the router join multicast groups upstream on behalf of devices in your home. ISP TV often needs it turned on.
What is the difference between IGMPv2 and IGMPv3?
IGMPv2 joins a whole group. IGMPv3 can also say which sources you want or do not want, which source-specific multicast needs. IGMPv3 sends its reports to 224.0.0.22.
Does IPv6 use IGMP?
No. IPv6 uses MLD, Multicast Listener Discovery, which does the same job inside ICMPv6.