To test my network, I want to send x MB/s between two hosts. I know that
ping can be used to send a good amount of data, but I need a solution where I can set the bandwidth (it does not have to be really precise).
$ sendTrafic --throughput 10M 10.0.0.1
Any idea how I can do that? I thought about a script running
scappy x times per second, but there should be something better.
EDIT: I used the following solution:
# On receiving node: iperf -s -u # On sending node: iperf -c <ip> -u -b 10m -t 30
Which configures the first host as a UDP server, and the second one as a UDP client who send 10Mb/s for 30 seconds.
Thank everyone for your help.