[netperf-talk] How can I test multiple links on one machine

Rick Jones rick.jones2 at hp.com
Wed Jan 23 14:21:08 PST 2008


William Luo wrote:
> I am trying to setup the test machine with 6 Ethernet ports. I gave each 
> port a static IP, and hook all channels onto one single unmanaged 
> Ethernet switch. I started 6 netserver tasks for each IP with different 
> port number(I don't know if this is the right way to do).
> 
> eth0---> 192.168.20.10 <http://192.168.20.10>
> eth1---> 192.168.20.11 <http://192.168.20.11>
> eth2---> 192.168.20.12 <http://192.168.20.12>
> ...etc
> 
> The netserver tasks are started as:
> netserver -L 192.168.20.10 <http://192.168.20.10> -p 8000
> netserver -L 192.168.20.11 <http://192.168.20.11> -p 8001
> ... etc
> 
> When I try to use another machine to netperf servers, all traffic feed 
> into only one Ethernet port on server side. I only saw eth1 LED blink 
> all the time whichever I netperf the destination address.
> 
> My question is: How to bind multiple netservers on different Ethernet 
> cards. Is it possible? How?

You were more or less doing fine until the first step when you 
configured the interfaces :)

Don't put each of the interfaces into the same IP subnet.  Put them into 
separate IP subnets.  Otherwise, the routing code will quite happily 
send all your traffic out the one interface as you have seen.

That way you won't have ot use the local binding, and also setup 
specific host routes for each remote IP pointing at the "correct" local IP.

So, assuming the typical 192.168/16 sort of setup, something like

for i in 0 1 2 3 4
do
ifconfig eth$i 192.168.$i.1
done

on one system, and then  ".2" on the other, and then follow the 
suggestions for aggregate performance measurments in:

http://www.netperf.org/svn/netperf2/tags/netperf-2.4.4/doc/netperf.html

happy benchmarking,

rick jones


More information about the netperf-talk mailing list