multicast

Multicasting + Linux Kernel

Hello friends, I have one doubt regarding multicasting in linux kernel. When multicast data arrives linux kernel checks MFC and if the matching entry is not found then kernel gives conrol message cache miss and header to the user space. My question is what happens to the data packet? Suppose i may deliberately not want to keep the entry...

IPv6 multicast addressing: Are all "Group IDs" considered valid/user-assignable?

Hi all, I'm seeing some "interesting" behavior in my program's link-local IPv6 multicast routines. It seems that if I set any of the upper 16 bits of the 112-bit Group ID field, then MacOS/X will no longer accept those multicast packets. My question is, is this a bug in the MacOS/X network stack, or is there some reason why setting th...

C# UDP multicast sockets - how to handle link failures

Hi, I'm working on a UDP Multicast library and got a question on how to properly handle link failures, disconnected/reconnected NIC cables, etc. In my test I have the following setup: 2 servers sA and sB sA is sending UDP multicast data and sB is receiving multicast data servers are connected through a Layer 2 Cisco gigabit switch ...

OpenSUSE multicast not working?

I'm trying to do multicast dns on OpenSuSE through a trusted java applet<->, and my attempts to find anything on the network are silently blocked! What could be the problem? ...

C# UDP decoding datagrams fails randomly

Hi, I'm experiencing an issue in a multi threaded application and have been debugging it for the last 3 days but for the life of it can not figure it out. I'm writing this, hoping that I either have a DUH moment when typing this or somebody sees something obvious in the code snippets I provide. Here's what's going on: I've been working...

Need microsecond delay in .NET app for throttling UDP multicast transmission rate

I'm writing a UDP multicast client/server pair in C# and I need a delay on the order of 50-100 µsec (microseconds) to throttle the server transmission rate. This helps to avoid significant packet loss and also helps to keep from overloading the clients that are disk I/O bound. Please do not suggest Thread.Sleep or Thread.SpinWait. I woul...

Communication between JBOSS AppServer and Client via multicast

Hello everyone, I am new to JBOSS. I am trying to write an mBean that will communicate from within the AS across a multicast channel using JGroups. The code I'm using in my mBean is below... public void create() throws Exception { channel=new JChannel("test/udp.xml"); channel.connect("ChatCluster"); } public void sendMsg() throws Ch...

UDP Multicast Performance Under Load

I have a simple C# application that uses UDP multicast in a single-receiver, single-sender scenario. The goal is to get message delivery as fast as possible in a local network environment. I have used SocketAsyncEventArgs/SendAsync/ReceiveAsync, BeginSend/BeginReceive, Threads/Send/Receive, and have tried both PGM and UDP multicast. E...

How can I send data to multiple IPs in VB.NET with TCP/IP sockets?

I have an array of IP addresses, and I want to send the same data to all of them. I could just send the loop code that sends data but I think there's a better way of doing this. I've heard of multicast, what exactly is it? I think it's what I need but how do i use it. ...

Is there a way to test multicast IP on same box?

If I want to test a set of multicast IP programs (sender/receiver) without having to set up the networking, can this be done on the same box? If so, what needs to be setup or done differently? ...

Finding the MAC address of the sender of a multicast UDP message in Python?

I have some code that listens for "announcements" via UDP multicast. I can get the IP address of the sender, but what I really need is the MAC address of the sender (since the IP address can and will change). Is there an easy way to do this in Python? A code snippet is included for reference, but likely unnecessary. sock = socket.sock...

Determine the remaining TTL of a multicast packet in Java

If I have a Java program that listens to multicast data, how can I tell what the remaining TTL of the incoming datagram is? I know how to set the TTL on the sending multicast socket, but I want to know the remaining TTL of the arriving packet. ...

How to send multicast messages and reuse a port in Erlang?

I have gotten a good start on my program, my first REAL Erlang program. I have it listening for messages, reading them and parsing them. I also have it sending them. The one little thing that is bothering me is I can't SEND on Port 5353, I have tried everything. All the other applications on my machine can listen AND send on port 5353, S...

Collection replication using multicast

Hi, need a technology (open source or build myself) usable from C# that allows me to in one process maintain a “master” collection of objects (says a Dictionary of Customer objects) and in n other “client” processes maintain an in-memory duplicate of the “master” collection. All changes to the collection should only happen to the “maste...

Throttling multicast datagrams

I have an application that is sending some UDP packets using multicast. I looked at the network traffic and there seems to be a lot of ancillary packets related to using multicast. I don't totally understand it, but does multicast by nature result in MORE network traffic. If so how can I throttle this down? x ...

UDP Multicast for streaming video with Silverlight 4.0

I've been streaming multicast video using the Project Starlight plugin for Silverlight 3, but now I'm hoping to do the same thing natively in Silverlight 4.0 beta. Using Starlight, the code was straight-forward, and relatively simple...for ex: -1- Generate the proxy as ActiveX: HTML CODE mcObj = (ScriptObject)HtmlPage.Win...

In order for Udp multicast to work, router must support it?

I am wondering for the udp multicast to work, router must support it? ...

Fail to open a socket for multicast

Hi, I have problems to open an multicast socket in Erlang to receive messages: 88> gen_udp:open(5353,[{reuseaddr, true}, {ip,{224,0,0,251}},{multicast_ttl,4},{multicast_loop,false},binary]). {error,eaddrnotavail} I checkt diffrent IP addresses and ports and the option {active, false}, but nothing helps. What could be the reason? Tha...

IPv6 multicast addresses: Is the Group ID field effectively 112 bits or 32 bits?

Hi all, I'm trying to understand the rules for choosing an IPv6 multicast address Group ID, and the RFC seems somewhat inconsistent. For example, in RFC 2373 section 2.7 this diagram is shown: | 8 | 4 | 4 | 112 bits | +------ -+----+----+---------------------------------------------+ |11111111...

MulticastSocket: Socket operation on non socket.

I have some code like this: InetAddress bind = InetAddress.getByName("192.168.0.1") MulticastSocket socket = new MulticastSocket(new InetSocketAddress(bind,0)); socket.setInterface(bind); On windows 7 and windows XP with JDK6u17,I got a SocketException: Socket operation on non socket. But if I change the line 2 to : MulticastSocket ...