Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: foo@bar.baz (Rick Jones)
Subject: Re: tcp connections/sec
Date: 1998/03/03	[thread overview]
Message-ID: <6dhf4q$6c0$4@ocean.cup.hp.com> (raw)
In-Reply-To: 6d3o77$g21$1@nnrp2.dejanews.com


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...



  parent reply	other threads:[~1998-03-03  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-26  5:00 tcp connections/sec matsjo
1998-02-27  5:00 ` Joel Gallun
1998-03-03  5:00 ` Rick Jones [this message]
1998-03-03  5:00 ` Jeffrey Mogul
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox