As title, I want to test the throughput of a network containing 2 servers(h1,h3) ,only 1 client(h2) and some switches between the hosts and destination , the topology may look like this , I have implemented the topology using mininet, and controlled the routing rule using pox controller.
Now I want to test the throughput of the network and I hope h3 and h1 sent data to h2 at the same time, how can I do that using iperf ?
I haved tried the code below(python code) , but the data in first 10 seconds when h3->h2 will disappear(if I wrote h3->h2 before h1->h2 , than the data in first 10 seconds of h1->h2 will disappear)
h1.cmd('iperf -s -p 5201 -u -i 1 > results &')
print h2.cmd('iperf -c 10.0.0.1 -p 5201 -u -b 10m -t 20')
h3.cmd('iperf -s -p 5205 -u -i 1 > results2 &')
print h2.cmd('iperf -c 10.0.0.3 -p 5205 -u -b 10m -t 20')
h1.cmd('kill %iperf')
h3.cmd('kill %iperf')
How can I fixed this problem or someone can tell me how to let h3 and h1 sent data to h2 at the same time using other methods, thanks.