Multihoming problem
"이희승 (Trustin Lee)"
trustin at gmail.com
Thu Jun 9 00:35:14 EDT 2011
To see if this is a Netty issue or a generic Java networking issue,
could you write a very simple plain socket client in Java and see if
the problem goes away?
Thanks,
Trustin
On Thu 09 Jun 2011 08:40:18 AM KST, netty_newbie wrote:
> 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.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
--
Trustin Lee, http://gleamynode.net/
More information about the netty-users
mailing list