Are there any multicast traffic generators for Windows?
-
uTorrent uses UDP, an type of Multicast ..– HackToHellCommented Mar 17, 2012 at 12:06
-
Do you need specific address/port for multicast traffic or any kind of traffic will be enough?– crea7orCommented Mar 26, 2012 at 19:58
-
Any kind of traffic– Mohammad Bagher SaberiCommented Mar 27, 2012 at 4:36
Add a comment
|
1 Answer
Multicast traffic is actually pretty simple to create with any programming language. If you got python installed here's an example, I hope it works under Windows.
import sys
import socket
from time import sleep
UDP_IP=sys.argv[1]
UDP_PORT=sys.argv[2]
TTL=2
DATA="whateverandever"
sock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, TTL)
while True:
sock.sendto ( DATA, (UDP_IP, int(UDP_PORT)) )
sleep(1)
Save it to i.e. mcast.py and execute it like this:
python mcast.py <destination> <port>
Change TTL in the script if you whant the traffic to reach further down in the network.