Questions tagged [multicast]

Multicast refers to one-to-many network transmission options, where packets will be automatically propagated just to those nodes wishing to receive them. IP-based multicast is the common case, though other multicast implementations exist.

1621 questions
5
votes
4 answers

Any small program to receive multicast packets on specified UDP port?

I'd like to debug some multicast issues, and I hope to have some small programs/utilities to display incoming multicast packets. From the sending machine(A), I use Richard Stevens's sock program(provided with his TCP/IP Illustrated book Vol1) to…
Jimm Chen
  • 3,411
  • 3
  • 35
  • 59
5
votes
4 answers

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…
Ted Graham
  • 3,511
  • 4
  • 24
  • 25
5
votes
2 answers

Creating an OPUS codec based multicast server (android/linux)

I am trying to create an OPUS based multicast server for an audio project that I am working on and it will be running on the O-Droid X (http://www.hardkernel.com/renewal_2011/products/prdt_info.php?g_code=g133999328931) for this project. At the…
Friendlyghost89
  • 247
  • 8
  • 19
5
votes
1 answer

Receiving multicast data on specific interface

tcmpdump can view all the multicast traffic to specific group and port on eth2, but my Python program cannot. The Python program, running on Ubuntu 12.04: sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.setsockopt(socket.SOL_SOCKET,…
Albeit
  • 738
  • 10
  • 21
5
votes
1 answer

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

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…
cherouvim
  • 31,725
  • 15
  • 104
  • 153
5
votes
2 answers

UDP Multicast between two sockets in the same process

I'm writting some tests for classes that handles UDP multicast communication. I designed the tests to use the loopback interface (127.0.0.1) for the tests because I don't want the them to interfer with other programs/devices on the network. In my…
Bruno Knittel
  • 61
  • 1
  • 6
5
votes
3 answers

UDP packet drops by linux kernel

I have a server which sends UDP packets via multicast and a number of clients which are listing to those multicast packets. Each packet has a fixed size of 1040 Bytes, the whole data size which is sent by the server is 3GByte. My environment is…
viktorgt
  • 273
  • 2
  • 5
  • 14
5
votes
2 answers

Discovering DHCP servers using multicast (224.0.0.12) in GNU/Linux/C

This question might stem from a fundamental misunderstanding of IP multicast, so please correct me if I'm off base. I'm trying to write C code to find the IP address of all the DHCP servers on the network. The use case is this: Client broadcasts…
David Dombrowsky
  • 1,655
  • 3
  • 20
  • 32
4
votes
1 answer

Erlang: receive multiple multicast streams on the same port

I have a multicast-based IPTV in my network. All channels have muticast addresses like 239.0.1.*. Streamer device sends UDP data to target port 1234. So to receive a tv stream I do usual stuff like: {ok, S} = gen_udp:open(1234, .... inet:setopts(S,…
3DFace
  • 86
  • 6
4
votes
1 answer

Multicasting in Java not working

I'm developing some peer 2 peer app for my class and I was told for letting servers to discover each other they have to Multicast to their UDP port 1110 and listen to their UDP port 1110. I wrote the code like below for doing that. for testing I run…
ePezhman
  • 4,010
  • 7
  • 44
  • 80
4
votes
1 answer

python odd multicast socket exception

I have some example python code that I got from another stack overflow answer (can't remember where), that implements multicasting. The following code should set up a socket object for receiving multicast packets. I encapsulated it in a class like…
wheybags
  • 627
  • 4
  • 15
4
votes
0 answers

Java Multicast sample program is unable to deliver packets within LAN (across hosts)

I am learning and trying to understand how Multicast is implemented in Java. I had developed a small program following the example given at http://www.nmsl.cs.ucsb.edu/MulticastSocketsBook/#javaexamples and it did do multicast of datagram (UDP)…
jatanp
  • 3,982
  • 4
  • 40
  • 46
4
votes
1 answer

Does Node.js still support UDP broadcasting?

I called dgram.setBroadcast(flag) and it returned a not yet implemented error on Node.js version v0.6.3. Does Node.js still support UDP broadcasting? Edit: I found some discussions said that broadcast was removed in 0.5.x and probably be back in…
holly
  • 577
  • 1
  • 5
  • 12
4
votes
0 answers

IPv6 socket: AddMembership drops the multicast group instead

I want to join an IPv6 multicast group (in this example: "ff15::2a") via C# code. What Worked The following Python implementation works perfectly: import socket import struct with socket.socket(socket.AF_INET6, socket.SOCK_DGRAM) as s: # Build…
Bip901
  • 590
  • 6
  • 22
4
votes
1 answer

C# UdpClient -- Ttl property vs. SetSocketOption

I've used socket programming extensively in C++, so I understand what all of the socket options are, etc. Now I'm dabbling in C#, and I've come across a problem that I would like an explanation for. I'm using the UdpClient class in a small app that…
JPhi1618
  • 783
  • 1
  • 11
  • 21