User Tools

Site Tools


networking:igmp_snooping

This is an old revision of the document!


Networking - IGMP Snooping

Multicast routing is a networking method for efficient distribution of one-to-many traffic.

IGMP (Internet Group Management Protocol) snooping constrains the flooding of IPv4 multicast traffic on VLANs on a device.

With IGMP snooping enabled, the device monitors IGMP traffic on the network and uses what it learns to forward multicast traffic to only the downstream interfaces that are connected to interested receivers.

The device conserves bandwidth by sending multicast traffic only to interfaces connected to devices that want to receive the traffic, instead of flooding the traffic to all the downstream interfaces in a VLAN.


Benefits of IGMP Snooping

  • Optimized bandwidth utilization: IGMP snooping’s main benefit is to reduce flooding of packets. The device selectively forwards IPv4 multicast data to a list of ports that want to receive the data instead of flooding it to all ports in a VLAN.
  • Improved security: Prevents denial of service attacks from unknown sources.

How IGMP Snooping Works

Devices usually learn unicast MAC addresses by checking the source address field of the frames they receive and then send any traffic for that unicast address only to the appropriate interfaces.

A multicast MAC address, however, can never be the source address for a packet. As a result, when a device receives traffic for a multicast destination address, it floods the traffic on the relevant VLAN, sending a significant amount of traffic for which there might not necessarily be interested receivers.

IGMP snooping prevents this flooding.

When you enable IGMP snooping, the device monitors IGMP packets between receivers and multicast routers and uses the content of the packets to build a multicast forwarding table—a database of multicast groups and the interfaces that are connected to members of the groups.

When the device receives multicast packets, it uses the multicast forwarding table to selectively forward the traffic to only the interfaces that are connected to members of the appropriate multicast groups.


IGMP Message Types

Multicast routers use IGMP to learn which groups have interested listeners for each of their attached physical networks.

In any given subnet, one multicast router acts as an IGMP querier. The IGMP querier sends out the following types of queries to hosts:

  • General query: Asks whether any host is listening to any group.
  • Group-specific query (IGMPv2 and IGMPv3 only): Asks whether any host is listening to a specific multicast group.
    • This query is sent in response to a host leaving the multicast group and allows the router to quickly determine if any remaining hosts are interested in the group.
  • Group-and-source-specific query (IGMPv3 only): Asks whether any host is listening to group multicast traffic from a specific multicast source.
    • This query is sent in response to a host indicating that it is not longer interested in receiving group multicast traffic from the multicast source and allows the router to quickly determine any remaining hosts are interested in receiving group multicast traffic from that source.

Hosts that are multicast listeners send the following kinds of messages:

  • Membership report: Indicates that the host wants to join a particular multicast group.
  • Leave report (IGMPv2 and IGMPv3 only): Indicates that the host wants to leave a particular multicast group.

How Hosts Join and Leave Multicast Groups

Hosts can join multicast groups in two ways:

  • By sending an unsolicited IGMP join message to a multicast router that specifies the IP multicast group the host wants to join.
  • By sending an IGMP join message in response to a general query from a multicast router.

A multicast router continues to forward multicast traffic to a VLAN provided that at least one host on that VLAN responds to the periodic general IGMP queries.

  • For a host to remain a member of a multicast group, it must continue to respond to the periodic general IGMP queries.

Hosts can leave a multicast group in either of two ways:

  • By not responding to periodic queries within a particular interval of time, which is considered a silent leave.
    • This is the only leave method for IGMPv1 hosts.
  • By sending a leave report.
    • This method can be used by IGMPv2 and IGMPv3 hosts.

References

networking/igmp_snooping.1608769025.txt.gz · Last modified: 2020/12/24 00:17 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki