PDA

View Full Version : Router Multicast Inefficiency


petergunn
07-13-2008, 06:02 PM
Seems like a 200-300 multicast packet/sec on the LAN will cause serious lockups on budget routers. Ive tried both a TRENDNet TEW-633GR and a Linksys WRT54G v4 flashed with DD-WRT. Enabling/disabling multicast in the config makes no difference.

I don't actually want LAN->WAN or LAN->wireless routing just LAN->LAN but I needs wireless->LAN TCP/IP access to manage my headless servers. I actually bought a Linksys SRW2008 to act as a LAN switch as the advertised iGMP snooping feature should have prevented multicast LAN->router traffic. Unfortunately the SRW2008 has badly broken firmware and iGMP snooping doesn't work so it floods all the ports including the one the router is attached to.

It does however have decent vlan support, but no mechanism for coloring the multicast data with a different vlan tag from other traffic. As a work around I am using Linux's vconfig command to create vlan tagged interfaces to let the application tag the data as its published. This works but complicates the system and application config.

Why does a few hundred irrelevant multicast LAN packets/sec have such an impact on these routers? Is there a way to get them to ignore this data?

Alternatively, can anyone recommend a decent gigE iGMP snooping switch that supports 64+ multicast groups?

Would it be possible to measure multicast performance as part of the SmallNetBuilder router/switch tests?

PG.

thiggins
07-13-2008, 06:58 PM
Would it be possible to measure multicast performance as part of the SmallNetBuilder router/switch tests?

Interesting. This is the first time I have heard from anyone with interest in multicasting. What is your application?

petergunn
07-13-2008, 07:33 PM
I'm utilizing synthetic raw market data feeds. These are usually a group of multicast streams (typically 9-24) of pricing information from stock exchanges like the NYSE/NASDAQ and other Automated Trading Centers (ATCs).

With a iGMP snooping switch (with a big enough multicast table) you can just add any old wireless router and it will be protected by the switch's multicast filtering. Enterprise environments would typically use a high end CISCO 6509s (with all the bells and whistles like sup720+DFCs) that retail for a 6 figure sum. In testing my D-Link DGS-2208 8-port gigE switched I was surprised to find it able to handle near wirespeed multicast throughput with zero packet loss and the lowest latency I've ever seen on any switch.

I'm probably a tiny niche - but from reading the Linksys forums the problem seems to be similar to people that have many multicast IP video streams (i.e. security cameras) and other niche groups that want to add WWAN access to their multicast enabled wired network.

As far as I can tell there are no metrics for routers/switches anywhere as to:

1) If iGMP snooping works, if so how many groups
2) If there is a 'filter multicast' option or some way to vlan tag multicast
3) If mutlicast is replicated in hardware or max. packets per sec
4) At what rate the router/switch becomes unresponsive

From a security/resilience perspective some people may be interested to know that without a capable iGMP implementation their gigE router/switch can likely be rendered unresponsive by a few hundred kilobits of multicast.

thiggins
07-14-2008, 09:37 AM
Thanks for the info and the perspective on current uses for multicast. It sure ain't for web-based video!

If you can suggest a simple test, I'll see if I can implement it.

petergunn
07-14-2008, 10:18 PM
If you can suggest a simple test, I'll see if I can implement it.

A very simple but perhaps meaningful test would be to try multicasting some video with VideoLan (http://www.videolan.org).

File -> Wizard -> Stream to Network... -> Next ... choose a video file

Then run another couple of Videolans elsewhere to display the multicast stream.

If you see pictures then just run a tcpdump on a separate port to verify that its not flooding and you're good to go.

If you have a IO::Socket::Multicast perl implementation then its not too hard to create a few stand alone benchmark scripts.

thiggins
07-15-2008, 09:59 AM
Thanks. The test would be from WAN to LAN, correct?

petergunn
07-15-2008, 07:58 PM
LAN->WAN would be a good test - especially if you fire up a few different publishers on the LAN. You'll probably find that the router has difficulty streaming hit bit rate videos to the WAN.

LAN->LAN with a WWAN router attached would be a good test as well - will let you know if your WWAN router is useable when people are streaming multicast on the LAN.

Fire up multiple publishers and see where things break :-)