Lessons learned about UDP multicast performance

Posted: September 25th, 2009 | Author: | Filed under: internet | 2 Comments »

If you want to use UDP multicast to distribute data between nodes in a network from for example your Java program it is important to notice that unless you have a Layer 2 switch with support for IGMP snooping the data will be sent to all ports on the switch. This will naturally affect the performance of the multicast stream and also the available bandwidth on the network.

A Layer 2 switch with support for IGMP snooping will do the expected, which is to only send the multicast data sent to a multicast group to the ports which have joined the same multicast group.

IGMP snooping is a process whereby a Layer-2 switch passively listens (or “snoops”) the Layer-3 IGMP traffic to determine which ports are interested in receiving certain multicast traffic. The switch listens for IGMP Query, Report and Leave protocol messages. If desired, IGMP snooping can be configured on a per-VLAN basis. Traffic will be dynamically forwarded only to those ports that want to receive the multicast transmission. This can significantly reduce the amount of multicast traffic passing through a Layer-2 network, thus better utilizing the available bandwidth.

If you see poor performance in your UDP multicast tests, take a look at your switch. You might find the reason right there.


2 Comments on “Lessons learned about UDP multicast performance”

  1. 1 Vincent RABAH said at 19:12 on November 1st, 2009:

    Worst, if you dont setup IGMP on heavy traffics the all network could be down ! I work in an ipTV company and we have a lot of HD contant streamed over the network and without IGMP forget :)

  2. 2 Joakim Andersson said at 12:48 on November 2nd, 2009:

    That’s very true!

    Unfortunately it doesn’t seem like many switches that normal people have support it, one actually has to make an effort and find a higher-end switch with explicit support for IGMP snooping. That’s what happened for us, we thought we have decent switches in the office but naturally they did not support IGMP snooping.


Leave a Reply

  • Receive notifications via email of new comments on this post