Re: Multiple multicast apps

From: Christian Weisgerber (naddy_at_mips.inka.de)
Date: 10/06/04


Date: Wed, 6 Oct 2004 19:07:47 +0000 (UTC)

James Bass <anon@somewhere.com> wrote:

> I have two applications that join two different multicast groups and read
> data off the sockets.
>
> It seems that when I start one it works fine, but when I start the second it
> stops the first receiving data, but works fine itself. When I kill the
> second application, the first then starts working fine again.

Looks like an error in the multicast filter setup for your network
card, i.e. a bug either in the network driver or more generically
in the multicast handling.

(Nearly all 100Mbit/s and better ethernet chipsets support a multicast
filter. Rather than having to take all multicast packets off the
wire and examine the header to see whether it matches any of the
groups the local host has joined, a filter can be programmed to
pass on only relevant packets and ignore others. A very common
design is a 64-entry hash filter.)

> If I run tcpdump on the interface being used to receive the multicast
> packets, then both apps work fine simultaneously - wierd huh?

No, makes perfect sense. tcpdump puts the interface into promiscuous
mode, so all packets are received.

> This is on FreeBSD 4.4 - and yes I know it is old, but we don't really want
> to upgrade.
>
> Any ideas as to cause and solution?

It's a bug and I would assume it has been fixed later in the 4.x
branch. You can probably backport a patch. If it's a driver
specific bug, switching to a different type of NIC might also serve
as a workaround.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de


Relevant Pages

  • Re: How to set NIC to promiscuous mode from FilterHook driver
    ... So from your reply I take it you are interested in getting packets destined to other hosts -that are not necessarily originated from the host your filter is running on-. ... As I said in my previous post, setting the adapter to promiscuous mode is not going to help you. ... the filter hook driver I mentioned is as per the msdn ...
    (microsoft.public.development.device.drivers)
  • Re: Req: info on IP range popup ad software supposedly called "Extreme Marketing"
    ... forges packets for wndows dialup connections. ... I'd pick a switch that could filter on MAC and IP ... > that should be hooked up to that port. ...
    (comp.security.misc)
  • Packet reordering and blocking problem at gigabit with 2.4 kernel
    ... I am developing application level multicast router with Xeon processor. ... The system lost lots of packets and reordered the packets, ... Every channel sends 6Mbps with 2048 bytes packet. ... I heard that SMP machines has inherant reordering issues, ...
    (Linux-Kernel)
  • Re: UDP multicast packets not seen on listening interface in BETA5
    ... > I'm having a bit of trouble with a program I wrote to listen for ... > the multicast packets, ... > Also I verified the program is indeed listening with sockstat: ...
    (freebsd-current)
  • Re: Comodo blocking port forwarding
    ... filter to drop every packets, how exactly would you try to circumvent this? ... As for a more practical example: I setup a packet filter to only allow HTTP ... Well, most you say about PFW, can be easily applied ...
    (comp.security.firewalls)