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.
iperf
. If you can't install something on both hosts, also have a look atbwping
.iperf
is not know to be a very accurate solution, there's a lot of side effect, specially when using it cross-platform. Do a lot of testing if you want to validate a bitrate.