multicast

What's the best way to locate devices on a network?

I'm building software for a company that sells hardware devices. They want the software to be able to locate all devices on the network without restricting either of their IPs. What's the best way to do this? I'm thinking the hardware could subscribe to a "known" multicast address, have the software broadcast to it and the hardware woul...

How to receive ip multicast, using only one NIC

Hi, i have a problem here! I have server with multiple NICs, running windows server 2003. My application receive multicast packets, but now i need to receive multicast packets just from one single network interface. I think this can help, but i have some questions. ip_mreq mreq; mreq.imr_multiaddr.s_addr = multicast group address mr...

How to receive MPEG-TS multicast from Windows

We currently have a system with live video encoded to an MPEG-TS multicast stream, being received by televisions with STBs. In addition to televisions we'd like to embed the video in our Windows application. I know that VLC will receive the stream, but would prefer both a solution that I can embed in an existing application without play...

socket.SO_REUSEADDR: packets received by every vs by newest listener

I got multiple processes listening on the same port subscribed to a multicast address. Packets to this address reach every process. However, when I contact them via unicast, only the newest process gets the message. Where is this behavior documented? How can I change it? Demo program (Python): import socket,os,struct,sys def server():...

What's the most efficient protocol for reliable multicast?

When a sender needs to multicast a relatively large volume of data (say several megabytes per second) in a reliable way over Ethernet to a modest number of receivers (say less than a dozen) on the same subnet, what is the most efficient protocol? By reliable I mean that if a packet is lost, the protocol ensures that it gets resent such t...

Selecting an Interface when Multicasting on Linux

I'm working with a cluster of about 40 nodes running Debian 4. Each node runs a daemon which sits and listens on a multicast IP. I wrote some client software to send out a multicast over the LAN with a client computer on the same switch as the cluster, so that each node in the cluster would receive the packet and respond. It works g...

234.x.x.x IP address - what is it

I've done a fair bit of UDP socket programming in the past, but have only ever heard of the usual reserved IPs: 127.0.0.1 192.168.x.x 10.x.x.x But from an IP2Location it says multicast. Is 234.5.5.1 an actual IP address or reserved? ...

Setting up ehcache replication - what multicast settings do I need?

I am trying to set up ehcache replication as documented here: http://ehcache.sourceforge.net/EhcacheUserGuide.html#id.s22.2 This is on a Windows machine but will ultimately run on Solaris in production. The instructions say to set up a provider as follows: <cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICac...

C# events of a non-delegate type

I've implemented a class that looks like this interface: [ImmutableObject(true)] public interface ICustomEvent { void Invoke(object sender, EventArgs e); ICustomEvent Combine(EventHandler handler); ICustomEvent Remove(EventHandler handler); ICustomEvent Combine(ICustomEvent other); ICustomEvent Remove(ICustomEvent ...

Why UDP socket subscribed to a multicast group is picking up a non-multicast message?

Overview: I have set up a server and a client, where both attempt discovery of each other using UDP. When the server starts up it sends a multicast message (239.1.1.1) that it is alive. When the client starts up it sends a multicast message (239.1.1.2) that it is alive. Both server and client are subscribed to each other's multicast mess...

How can i config my web cam to work with multicast??

I have this settings in my web cam, there I have to set ip of a server. But I don't know what ip i have to write on it )) I think that my route must me set on multicast, and i need to use their ip. But it doesn't work (( ...

UDP Server Discovery - Should clients send multicasts to find server or should server send regular beacon?

I have clients that need to all connect to a single server process. I am using UDP discovery for the clients to find the server. I have the client and server exchange IP address and port number, so that a TCP/IP connection can be established after completion of the discovery. This way the packet size is kept small. I see that this could ...

Creating a class for an interface at runtime, in C#

I'm looking at taking a set of objects, let's say there's 3 objects alive at the moment, which all implement a common interface, and then wrap those objects inside a fourth object, also implementing the same interface. The fourth object's implementations of methods and properties would simply call the relevant bits on those 3 underlying...

Link-scope IPv6 Multicast packets suddenly not routable on a MacBook Pro?

Hi all, This is a slightly obscure question, but I'm stumped and I thought maybe somebody out there might have more of a clue on the issue. My co-worker has been successfully running an in-house application that uses IPv6 multicasting on his MacBook Pro for several months, but today the Mac decided to stop routing the multicast packets...

As a developer, do I need to fully understand multicasting protocols such as IGMP, PIM-DM and PIM-SM?

We utilise multicasting in our application to efficiently broadcast updates to clients connected to middle-tier(s). I'm continually asked by network engineers about "how our multicasting works" and what multicast protocols it supports. I'm puzzled by these type of questions, in that as far as I'm concerned, our client processes simply ...

ehcache auto-discovery (via multicast) between 2 instances on the same host

Hello I run 2 tomcat instances on the same host. Each instance runs the same web application which tries to communicate some ehcache caches via RMI replication. I use the autodiscovery configuration in ehcache so I don't have to explicitly define which are the hosts and which are the caches I want to replicate. The ehcache instances do ...

C# UDP Multicast disconnects after a few seconds.

I have some networking code which connects to a multicast address but disconnects after a few seconds. Can anyone figure out what's wrong with this code? String Target_IP = "224.1.2.3"; int Target_Port = 31337; IPEndPoint LocalEP = new IPEndPoint(IPAddress.Any, Target_Port); IPEndPoint RemoteEP = new IPEndPoint(IPAddress.Parse(Target_...

igmp modification in kernel such that it reads value from file

Hello friends, I want to modify igmpv3 which is inbuilt in kernel2.6.-- such that it reads a value from a file and appropriately decides reserved (res 1) value inside the igmpv3 paket which is sent by a host. Regards, Bhavin. ...

How do you detect unrecoverable data loss when using MSMQ's multicast?

When using MSMQ multicast, if a (multicast-enabled) queue receives some messages and then the machine experiences a temporary network connection loss then it will begin receiving messages again when the connection is re-established. If the network outage is short in duration then the queue will receive all of the messages (even those tha...

Multicast Send Performance

We recently completed an analysis of multicast sending performance. Happily, Java and C performed almost identically as we tested different traffic sending rates on Windows and Solaris. However, we noticed that the time to send a multicast message increases as the time between sends increases. The more frequently we call send, the le...