As defined in multicast protocols, group members can join or leave a group anytime, anywhere, and the number of members in a group is unlimited. If too many users stream videos at the same time, a large amount of bandwidth is consumed, degrading the forwarding performance of the multicast device. The IGMP limit function solves this problem by restricting the number of multicast groups allowed in the system and on an interface. This allows users who have joined multicast groups to stream high-quality videos. When the switch receives an IGMP Report message and needs to create a new IGMP entry, it checks whether the number of IGMP entries exceeds the limit. If not, the switch creates the IGMP entry and forwards multicast data to the multicast group.