Multihoming problem

netty_newbie deanar at gmail.com
Wed Jun 8 19:40:18 EDT 2011


Hi,

I have two machines. Each has 3 ethernet cards.  Each ethernet card has it's
own IP address.


I am doing a bench mark so see if I can saturate the network.

The server is listening on * (all ips)

The client establishes 3 connections (each connection binds one of the local
ips to one remote ones). 

The nics are 1gbit each.  I am not going past around 800-900 mbit/sec. 
looking at network utilization, it seems like all the traffic is going
through one of the network interfaces, eth0, and not the others.  So one nic
is getting saturated which the others are not being used.


The client code is pretty straight forward.

for (int i = 0; i < connections; i ++) {
        	InetSocketAddress localAddress = new InetSocketAddress(
        			localAddresses.get(i % localAddresses.size()), //Round robin over
ip addresses
        			clientPort++
        		);
        
        	InetSocketAddress remoteAddress = new InetSocketAddress(
        			remoteAddresses.get(i % remoteAddresses.size()),
        			Constant.PORT);
        	System.out.format("Connecting local:%s remote:%s\n",
localAddress.toString(), remoteAddress.toString());
            fa[i] = bootstrap.connect(remoteAddress, localAddress);
        }


I am pretty sure the network is setup properly.  I tested it with nc and I
see the correct interface being utilized based on the ip address i used.

Thanks!

--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Multihoming-problem-tp6455892p6455892.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list