Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2007 18:56:29 -0600 (CST)
From:      Mike Silbersack <silby@silby.com>
To:        Peter Jeremy <peterjeremy@optushome.com.au>
Cc:        freebsd-net@freebsd.org
Subject:   Re: TCP source port reuse problems
Message-ID:  <20070304185441.T10411@odysseus.silby.com>
In-Reply-To: <20070302234240.GA9421@turion.vk2pj.dyndns.org>
References:  <20070302234240.GA9421@turion.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sat, 3 Mar 2007, Peter Jeremy wrote:

> First problem:  FreeBSD appears to be re-using source ports too
> rapidly.  My understanding is that a TCP socket ({src IP, src port,
> dst IP, dst port} tuple) should not be re-used for 120 seconds after
> teardown.  Sample tcpdumps and IPfilter whinges below show reuse
> after 66 and 83 seconds.

That's an incorrect understanding.  TIME_WAIT recycling has been in the 
BSD network stack for a long time, and Windows/Linux handle it also.

IPFilter is clearly broken if it's blocking the reuse of the port after 66 
seconds.  You should ask Darren to fix its state table.

Mike "Silby" Silbersack



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070304185441.T10411>