From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e3716f064b31d6b3 X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,e3716f064b31d6b3 X-Google-Attributes: gid1164f8,public From: foo@bar.baz (Rick Jones) Subject: Re: tcp connections/sec Date: 1998/03/03 Message-ID: <6dhf4q$6c0$4@ocean.cup.hp.com>#1/1 X-Deja-AN: 330471036 References: <6d3o77$g21$1@nnrp2.dejanews.com> Followup-To: comp.unix.osf.osf1,comp.sys.dec Organization: Hewlett-Packard's Network Computing Division Newsgroups: comp.unix.osf.osf1,comp.sys.dec matsjo@ainigma.com wrote: : Doing some networking related benchmarking on Digital UNIX : 4.0B. Seems that something limits the number of tcp connections the : box can handle to exactly 100 connections/second. How are you "generating" client port numbers and/or what is the size of the anonymous port number range on your client? A well-written TCP stack will not allow you to establish connections between a client operating over a range of port numbers and a server at a well-known port number any faster than sizeof(clientportnumberrange)/length(TIME_WAIT). (I am discounting the possibility of getting the initial sequence number just right to transition from TIME_WAIT to ESTABLISHED) This was an issue for SPECweb load generating code. It asked the system to assign a client port number, and on many systems, that was limited to 3975 ports. The minimum TIME_WAIT time SPEC allowsd is 60 seconds so they were initially limited to ~66 connections per second. The SPECweb code was modified to explicitly select client port number in the range 5000-65535 which meant that at a 60 second TIME_WAIT the limit would be roughly 1000 connections per second. The TCP_CRR test in netperf does something similar. Some systems have different anonymous port number ranges, some systems have different TIME_WAIT lengths. Some systems (no Unix systems I am aware of though) will actually short-circuit TIME_WAIT connections to establish new connections (even to differnet address tuples) Such systems would not exhibit the performance limitation, but they do so by short circuiting a fundamental part of TCP's correctness algorithms. rick jones -- these opinions are mine, all mine; HP might not want them anyway... :) feel free to email, or post, but please do not do both...