multicast

Sniffing IGMP messages on the local network

旧巷老猫 提交于 2019-12-02 08:21:30
I'm trying to sniff all IGMP messages on the local network (for crazy reasons not to be discussed ;-)). I have some questions related to this, as I'm not really an IGMP/routing expert. Is it even possible? I know I can read IGMP from a raw socket, and I know you can use Wireshark to monitor the IGMP messages that reach your local computer, but what puzzles me is this: I use a program on another computer (separated from the one running Wireshark by a switch) which will join a multicast address - BUT - it's not always that I even see the Membership report/JOIN in Wireshark. Now does anyone know

How to stream h264 with udp gstreamer

a 夏天 提交于 2019-12-02 04:14:09
问题 I'm trying to stream a video with h264. Source is a Axis camera. I managed to stream jpeg with multicast but not h264. With jpeg I used following command: gst-launch-1.0 udpsrc uri=udp://239.194.0.177:1026 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! autovideosink I tried to stream h264 but it fails, used following command: gst-launch-1.0 -v udpsrc host=239.194.0.177 port=1026 ! rtph264depay ! ffdec_h264 ! xvimagesink I get the following error: ERROR: pipeline

IPv6 Multicast example

。_饼干妹妹 提交于 2019-12-02 04:12:20
问题 I've searched for examples of how to implement a simple ipv6 multicast example, however I have only found examples using ipv4. Can anybody provide a simple "helloworld" example of ipv6 multicasting? 回答1: Here is a simple client server example. Incidentally running it on multiple machines on a network wil get all the machines chatting to each other, good for testing automatic discovery on the network. import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress;

Simplest possible advertise/listen arrangement through sockets

主宰稳场 提交于 2019-12-02 04:08:49
What's wrong with the following simple arrangement. All I'm doing is to create a UDP advertiser that multicasts a message, and a listener that joins the multicast group to receive this message, both running on the same machine. string Port = "54153"; HostName Host = new HostName("224.3.0.5"); //a multicast range address //listener var L = new DatagramSocket(); L.MessageReceived += (sender2, args) => { /*something*/ }; await L.BindServiceNameAsync(Port); L.JoinMulticastGroup(Host); //advertiser var AdvertiserSocket = new DatagramSocket(); AdvertiserSocket.Control.MulticastOnly = true; Stream

IPv6 Multicast example

风格不统一 提交于 2019-12-02 02:30:35
I've searched for examples of how to implement a simple ipv6 multicast example, however I have only found examples using ipv4. Can anybody provide a simple "helloworld" example of ipv6 multicasting? Here is a simple client server example. Incidentally running it on multiple machines on a network wil get all the machines chatting to each other, good for testing automatic discovery on the network. import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.MulticastSocket; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class

Duplicate packets in Python multicast receiver

主宰稳场 提交于 2019-12-01 22:02:20
问题 There is a script that opens a socket and read from it the multicast (from Multicast in Python) import socket import struct MCAST_GRP = '224.1.1.1' MCAST_PORT = 1234 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.bind(('', MCAST_PORT)) mreq = struct.pack("4sl", socket.inet_aton(MCAST_GRP), socket.INADDR_ANY) sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq) while True: print sock.recv

Duplicate packets in Python multicast receiver

泪湿孤枕 提交于 2019-12-01 21:07:12
There is a script that opens a socket and read from it the multicast (from Multicast in Python ) import socket import struct MCAST_GRP = '224.1.1.1' MCAST_PORT = 1234 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.bind(('', MCAST_PORT)) mreq = struct.pack("4sl", socket.inet_aton(MCAST_GRP), socket.INADDR_ANY) sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq) while True: print sock.recv(10240) Everything is fine as long as I do not run parallel to the same script to another multicast

Java Multicast Sending Data, Not Receiving

ぃ、小莉子 提交于 2019-12-01 17:47:51
问题 I am writing a class in Java which is used to greatly simplify the process of multicasting. However, I am having two big problems with it: The class sends data (I can verify this with my net monitor, Wireshark) but the data is not received by any others in the same group. On some machines, the sending packet TTL is exceeded in transit (again, according to Wireshark). Could anyone please help me? I've been trying and searching for answers for hours, and it appears that my code follows all of

Java Multicast Sending Data, Not Receiving

ぐ巨炮叔叔 提交于 2019-12-01 17:25:33
I am writing a class in Java which is used to greatly simplify the process of multicasting. However, I am having two big problems with it: The class sends data (I can verify this with my net monitor, Wireshark) but the data is not received by any others in the same group. On some machines, the sending packet TTL is exceeded in transit (again, according to Wireshark). Could anyone please help me? I've been trying and searching for answers for hours, and it appears that my code follows all of the basic procedures for connecting to, joining, sending, and receiving data from a multicast host. Here

SSIS : Using multicast to enter data into 2 RELATED destinations

佐手、 提交于 2019-12-01 08:22:46
I am new to SSIS. I have data coming from a single source. I need to enter that data into several tables (these tables are related by foreign key relationships). I am using multicast to enter the data into several destinations. My question is... How do I get the identity of an entry into one destination and use that identity for the foreign key column of the 2nd destination? Here is an example of what I am looking for. The Employee table has a foreign key to the Address table. But the source includes all this information. Entering the data into 2 different locations is easy. But I need the