How MLD snooping works

A switch that is running MLD snooping performs different actions when it receives different MLD messages.


[NOTE: ]

NOTE:

The description about adding or deleting a port in this section is only for a dynamic port. Static ports can be added or deleted only through the corresponding configurations. For more information, see "Configuring static ports."


General queries

The MLD querier periodically sends MLD general queries to all hosts and routers—FF02::1—on the local subnet to determine whether IPv6 multicast group members exist on the subnet.

After receiving an MLD general query, the switch forwards it through all ports in the VLAN except the port that received the MLD query. The switch performs the following judgment:

Membership reports

A host sends an MLD report to the MLD querier in the following circumstances:

After receiving an MLD report, the switch forwards it through all the router ports in the VLAN, resolves the address of the reported IPv6 multicast group, and performs the following to the receiving port:


[NOTE: ]

NOTE:

A switch does not forward an MLD report through a non-router port. This is because if the switch forwards a report message through a member port, all the attached hosts listening to the reported IPv6 multicast address will suppress their own reports upon receiving this report according to the MLD report suppression mechanism for hosts, and this will prevent the switch from knowing whether the reported multicast group still has active members attached to that port.


Done messages

When a host leaves an IPv6 multicast group, the host sends an MLD done message to the multicast router.

When the switch receives an MLD done message on a dynamic member port, the switch first determines whether a forwarding table entry for the IPv6 multicast group address in the message exists, and, if one exists, whether the outgoing port list contains the port.

After receiving an MLD done message from a host, the MLD querier resolves the IPv6 multicast group address in the message and sends an MLD multicast-address-specific query to that IPv6 multicast group address through the port that received the MLD done message. After receiving the MLD multicast-address-specific query, the switch forwards it through all the router ports in the VLAN and all member ports for that IPv6 multicast group, and performs the following to the receiving port: