snk wrote:WZR-HP-G300NH, for example, does not do any multicast forwarding in the stock firmware at all! Can you give me an example of a router that does this in the switch?
In my experience the routers bundled with IPTV services in Finland are configured to put the IPTV box in a separate VLAN, and iptables is then used to forward the multicast traffic only to this VLAN, thus preventing multicast flood to the rest of the LAN and wireless. Moreover, igmpproxy is used to subscribe to the multicast group from behind NAT. This is how I have configured my OpenWrt router as well (WZR-HP-G300NH, incidentally).
An easier approach not involving iptables is to just bridge the VLAN of the IPTV to the rest of the LAN and use the IGMP snooping functionality in the kernel. I personally have never experienced the problems jow described with this approach, but I still prefer to isolate the IPTV box to a separate VLAN - who knows what security holes they might have.
Finally, one could use the IGMP snooping functionality in the switches. The problem here is the lack of support in the Linux switch drivers. This is also the reason I doubt that stock firmwares use this approach either - OEMs tend to be lazy (like Buffalo) and not do any extra work by writing a new driver with this functionality.
I do agree. VLAN method is proven way to do it, but if you need to connect to local network for example NAS from your IPTV box or from a smartphone to IPTV box, it won't do much good. We have here a Google TV + IPTV in one device, and some IPTV related service involving Smartphone and NFC tag, not sure how common it is, but VLAN is not very good path to go in this case. Maybe some complex routing table setting might do.
My ISP tells me that Buffalo is one brand that does not really do IGMP multicast support. Since they are inclined to use DD-WRT as their power tool for advanced user, IGMP is not really supported as other XX-wrt variant.
I am in a country where broadband connection is very common with over five million of IPTV users. I don't know how,whether it is done in switch or in CPU, but many cheap home routers sold here support IPTV, IGMP snoofing and multicast without flooding. I am using a $25 router, made in China with local brand name ipTime. I had rang the company and they told me that all of their routers less than 2 years old have IGMP multicast support without flooding and those 3-4 years old routers only have IGMP multicast with flooding. I could kind of confirm that since I own 5 routers of theirs. It is rather common feature here by demand.
I do agree that it is a matter of open source swtich driver lacking such feature and those home router companis may have something better to work on. As long as the versatility of OpenWrt is concerned, this may be critical in the future. There are about 50 million IPTV users world-wide who have better alternative than OpenWRT.
(Last edited by test011 on 10 Mar 2013, 17:21)