▸Protocol notes for this page (click to expand)

IGMP (Internet Group Management Protocol)

What it is for

Multicast sends one copy of data to a group of receivers at once, IPTV for example. A router needs to know which hosts on its subnet want to receive it.

IGMP is the protocol hosts use to report group membership to the router: a host declares that it wants group 239.1.1.1, and the router records this and forwards only toward receivers.

IGMP only determines who wants the traffic on this subnet; building the distribution tree across routers is done by PIM.

IGMP snooping on switches

IGMP runs between hosts and routers; a switch does not take part.

A switch is a layer-2 device and by default floods multicast frames to every port, with the same effect as broadcast.

IGMP snooping fixes this: the switch listens to the IGMP messages hosts send, records which ports have receivers for each group, and forwards only to those ports.

Common misconceptions

A switch may still flood after multicast is configured: without IGMP snooping on the switch, multicast is flooded to every port. This is the most common performance problem in multicast deployments.

IGMP does not build the multicast tree: it only reports who wants the traffic on this subnet; the tree across routers is built by PIM.

The router does not learn immediately that a host has left: v2 added a Leave message, but the router still sends a query to confirm; without a Leave it keeps forwarding until the membership times out.