Re: Too much multicasting in Linux
From: P Gentry (rdgentry1_at_cablelynx.com)
Date: 04/08/04
- Next message: x86processor: "Re: RH 9 *neat* tool - what is Mandkrake's comparable one?"
- Previous message: Michael W. Cocke: "Re: Capturing traffic"
- In reply to: Juanjo Aparicio Jara: "Re: Too much multicasting in Linux"
- Next in thread: Juanjo Aparicio Jara: "Re: Too much multicasting in Linux"
- Reply: Juanjo Aparicio Jara: "Re: Too much multicasting in Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 7 Apr 2004 21:02:45 -0700
Juanjo Aparicio Jara <bnt@fastpace.org> wrote in message news:<slrnc77rut.3l7.bnt@bitbucket.fastpace.org>...
> That is what I expected. However, data is being received by sockets
> that didn't join the multicast address where the data is being sent.
> That is, data sent to 224.0.1.84 is being received by a socket that
> joined ONLY group 224.0.1.85. I assume this is not the expected
> behaviour.
>
> I don't think Java is the culprit. As stated before, code in C is doing
> the same.
>
> A previous poster suggested that the fact that the sockets are tied to
> the interface 0.0.0.0 causes them to receive all data. If the solution
> means to bind the sockets to different interfaces I guess they will not
> receive the data, which is what I want since they have not joined the
> same multicast group. But then, if I have a socket that joins the SAME
> multicast group but is tied to a different interface it will not receive
> the multicast data. The software I'm working on should work on
> different machines in the same LAN.
>
> Anyone have any more ideas?
>
> Thank you very much to all that responded.
>
> In article <4073b747$0$64610$4a441750@news.euronet.nl>, Johan Hendriks wrote:
> >
> > To send multicast messages, you don't have to do anything special.
> > Just apply the multicast address and the kernel (network driver) will
> > recognize this and generate
> > the expected packets.
> >
> > Only on the receiving side you must join a multicast group (setsocktopt)
> > after binding the socket to a port.
> >
> > Above applies to a socket implementation. Your JAVA classes should not do
> > anything more
> >
> > Johan
> >
Based on my limited experimenting with multicast networking (have no
experience with JINI) I can pretty much assure you that no one can
help without output from route -n, ifconfig -a, and some runtime data
like arp and route -C. Sounds like you're trying to run _everything_
on a single machine -- yes?
Did you enable muticast on the lo (loopback) interface?
Have you calculated your multicast group MAC so you can sniff it on
the wire?
Anyway, multicasting is hard enough to get running reliably --
something like JINI adds immeasurably to it, I would imagine. Without
a testing network to track down the kinks, you'll find deployment
really _fun_.
hth,
prg
email above disabled
- Next message: x86processor: "Re: RH 9 *neat* tool - what is Mandkrake's comparable one?"
- Previous message: Michael W. Cocke: "Re: Capturing traffic"
- In reply to: Juanjo Aparicio Jara: "Re: Too much multicasting in Linux"
- Next in thread: Juanjo Aparicio Jara: "Re: Too much multicasting in Linux"
- Reply: Juanjo Aparicio Jara: "Re: Too much multicasting in Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]