[Top] [All Lists]

Opening more than 65000 sockets

To: netdev@xxxxxxxxxxx
Subject: Opening more than 65000 sockets
From: Yan-Fa Li <yanfali@xxxxxxxxx>
Date: Wed, 27 Mar 2002 17:31:17 -0800 (PST)
Sender: owner-netdev@xxxxxxxxxxx

I have a network testing app that would like to open 100K outgoing
sockets.  I have modified my local range in /proc/sys to
allow 2048 - 65000 sockets to be used for out going connections.

I have a 2 systems with 2 network cards.  Each network card is
on a separate LAN:

System A:

System B:

I have 2 servers running on each system at ports: 80 and 443.
Each server is bound to the address.

Now I start one client and tell it to connect from System A,
and tell it to connect to port 80.  This client
opens 50K sockets.

I start another client on System A and tell it to connect
to port 443.  This client is also told to open 50K
sockets.  At ~12K sockets it fails.

So here's my question, I'm a novice at this sort of thing so
I may have done something completely off the wall, but assuming
I'm going out a different network interface, why are all socket
allocations for outgoing connections appearing to come out of
the same pool ?

Logically speaking, shouldn't it be possible to use the same
socket number for an outgoing socket going out a totally
different network interface and thus get another completely
unused socket range ?  Am I just missing a /proc/sys configuration
switch ?

Any help you can help or advice would be appreciated.  Even a,
you can't do that because it's not allowed answer would be
better than nothing, because then I'll just go find some more
clients and be done with this.


Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®

<Prev in Thread] Current Thread [Next in Thread>