From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 2 23:20:18 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB26916A4CE for ; Thu, 2 Dec 2004 23:20:18 +0000 (GMT) Received: from relay03.pair.com (relay03.pair.com [209.68.5.17]) by mx1.FreeBSD.org (Postfix) with SMTP id 0354B43D45 for ; Thu, 2 Dec 2004 23:20:18 +0000 (GMT) (envelope-from silby@silby.com) Received: (qmail 53046 invoked from network); 2 Dec 2004 23:20:16 -0000 Received: from unknown (HELO localhost) (unknown) by unknown with SMTP; 2 Dec 2004 23:20:16 -0000 X-pair-Authenticated: 209.68.2.70 Date: Thu, 2 Dec 2004 17:20:12 -0600 (CST) From: Mike Silbersack To: Andre Oppermann In-Reply-To: <41AB8588.6020901@freebsd.org> Message-ID: <20041202171724.M849@odysseus.silby.com> References: <41A467DB.29212.9F2DEC@localhost> <20041124171358.GG545@numachi.com> <1101366517.15634.318.camel@work.gusalmighty.com> <41AB8588.6020901@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-hackers@freebsd.org cc: Justin Hopper Subject: Re: HD Mirroring X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2004 23:20:18 -0000 On Mon, 29 Nov 2004, Andre Oppermann wrote: > If you have many TCP connections to one target it may happen that you > get the same source port on the originator again within the TIME_WAIT > timeout. And if the ISN wrapped in the meantime the new connection > will 'hang'. Just to clear this up, the problem with randomized source ports and TIME_WAIT is not that the ISN is wrapping. The problem is that if a port is reused too quickly, the ISN has not incremented enough and is less than the final sequence number of the previous connection. There's code in 5.3 which eliminates this problem by incrementing a global offset for each connection established, I will probably MFC it before 4.11 so that this problem is over with once and for all. Mike "Silby" Silbersack