Networking Forums

Networking Forums > Computer Networking > Linux Networking > Howto find out all members of a multicast group?

Reply
Thread Tools Display Modes

Howto find out all members of a multicast group?

 
 
JirkaJ
Guest
Posts: n/a

 
      10-25-2005, 08:39 PM
Hi,
i need to develop some application that is sending some multicast udp
packets, but which knows all the the recievers(Before sending these
multicast packets i need to negotiate some parameters). What is the
simlest way how to do it? I have one idea but i dont know if there is
some other possibility or if this idea is from scratch very bad....So
my idea is:
1.Sender(the process who need to know all recievers) send some udp
packet to multicast address.
2.All computers listeneng to this multicast traffic sends back some udp
packet to sender address
3.Sender collects all this packets and from source address he knows the
addresses of all multicast listeners and now he may connect to them...

Thanks for all notes to this solution and all messagess.

Jirka

 
Reply With Quote
 
 
 
 
Phil Frisbie, Jr.
Guest
Posts: n/a

 
      10-25-2005, 10:02 PM
JirkaJ wrote:

> Hi,
> i need to develop some application that is sending some multicast udp
> packets, but which knows all the the recievers(Before sending these
> multicast packets i need to negotiate some parameters). What is the
> simlest way how to do it? I have one idea but i dont know if there is
> some other possibility or if this idea is from scratch very bad....So
> my idea is:
> 1.Sender(the process who need to know all recievers) send some udp
> packet to multicast address.
> 2.All computers listeneng to this multicast traffic sends back some udp
> packet to sender address
> 3.Sender collects all this packets and from source address he knows the
> addresses of all multicast listeners and now he may connect to them...


That is the only way you can do it, however...

That last part where you say "and now he may connect to them" has me worried. If
you think you will be able to directly send a normal UDP packet or attempt a TCP
connection to those IP addresses you will have problems if they are behind
routers. All communications should use multicast to assure all the clients will
get it.

--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      10-26-2005, 01:01 AM

"Phil Frisbie, Jr." <(E-Mail Removed)> wrote in message
news:LXx7f.845$(E-Mail Removed)...

> That last part where you say "and now he may connect to them" has me
> worried. If you think you will be able to directly send a normal UDP
> packet or attempt a TCP connection to those IP addresses you will have
> problems if they are behind routers. All communications should use
> multicast to assure all the clients will get it.


You can, of course, allow the client to say that it is available for
normal TCP or UDP packets, but you should be prepared to fall back to
multicast if you get no replies to those TCP or UDP attempts. The most
robust software is fully prepared to work even if only one type of
communication succeeds. Of course, you can support more efficient mechanisms
when they happen to work.

DS


 
Reply With Quote
 
JirkaJ
Guest
Posts: n/a

 
      10-26-2005, 05:34 AM
Hi, thanks for answer, is it normal situation that when i use source
address from incoming udp packet to direct (TCP)connect that that
address will be unreachable? Or this situation happens only in rare
cases?

thanks
JIrka

 
Reply With Quote
 
FLY135
Guest
Posts: n/a

 
      10-26-2005, 02:06 PM

JirkaJ wrote:
> Hi, thanks for answer, is it normal situation that when i use source
> address from incoming udp packet to direct (TCP)connect that that
> address will be unreachable? Or this situation happens only in rare
> cases?


It's absolutely normal that you would not be able to connect. Unless
you know that there is some application listening on a specific port
for a TCP connection, then you will not be able to connect.

However, unreachable is different. If you get an incoming packet and
use the source address to perform a TCP connect then it's highly likely
that the destination will be reachable. It will just refuse the
connection.

WRT your original question about knowing who is in the multicast group
(i.e. getting the multicast packets), you can look at the RFC's related
to IGMP. You can monitor the IGMP packets and derive that information.

 
Reply With Quote
 
JirkaJ
Guest
Posts: n/a

 
      10-26-2005, 03:46 PM
Hi
thanks a lot, my application will be listening on a specific port for
tcp connection too so i am glad that i may use that source address(on
that tcp connection will go some control messages-for each listener one
connection before sending multicast packets).
To monitoring packets: when i monitor packets i will only see packets
from multicast listeners on the same network, not behind router, is it
true or not?

JIrka

 
Reply With Quote
 
FLY135
Guest
Posts: n/a

 
      10-26-2005, 03:58 PM

JirkaJ wrote:
> Hi
> thanks a lot, my application will be listening on a specific port for
> tcp connection too so i am glad that i may use that source address(on
> that tcp connection will go some control messages-for each listener one
> connection before sending multicast packets).


Your logic is not clear. If you are sending multicast packets then why
is the response from any particular TCP connection important as a
criteria for initiating multicast? Only the first person asking for
the multicast should be important in that respect. After that anyone
who joins the multicast group will immediately begin receiving the
transmission.

> To monitoring packets: when i monitor packets i will only see packets
> from multicast listeners on the same network, not behind router, is it
> true or not?


You are probably only going to see IGMP joins from members on the LAN
side of the router. That would be correct. I hope you are going to
use a gateway and not a simple router. A simple router will most
likely not be configurable for passing multicast properly. Got a brand
and model number?

 
Reply With Quote
 
JirkaJ
Guest
Posts: n/a

 
      10-27-2005, 07:32 AM
to logic: what i need to do with that tcp connection is to negotiate
some parameters of multicast-size of packets, time schedule, port, and
some other things, and only one way how to do it is a direct connection
to each listener, after sending of all multicast packets i would like
to connect again to each host and download some statistics...
I dont know exactly which brand and models i will use, i leave it on
network admin

 
Reply With Quote
 
Phil Frisbie, Jr.
Guest
Posts: n/a

 
      10-27-2005, 04:21 PM
JirkaJ wrote:

> to logic: what i need to do with that tcp connection is to negotiate
> some parameters of multicast-size of packets, time schedule, port, and
> some other things, and only one way how to do it is a direct connection
> to each listener, after sending of all multicast packets i would like
> to connect again to each host and download some statistics...
> I dont know exactly which brand and models i will use, i leave it on
> network admin


OK, but everything you say you need can be done within the multicast group. And
as you have already been told, there WILL be some clients that are behind
routers that will be impossible to connect to using TCP.

--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Members of group unable to write Tom Linux Networking 0 03-07-2006 10:56 AM
A special iTunes gift for all Telecom group members... fin1976@gmail.com Broadband 4 02-27-2006 06:08 PM
IPRIP could not join the multicast group 224.0.0.9 Scot Wireless Networks 0 12-12-2004 06:29 PM
ProFTP is lot limiting access to specified members of group -- suggestions? Alex Linux Networking 2 04-24-2004 10:49 PM
Re: Howto enable multicast forwarding on Linux Warren Linux Networking 0 04-01-2004 07:34 PM



1 2 3 4 5 6 7 8 9 10 11