From owner-freebsd-net Mon Nov 26 3:29:14 2001 Delivered-To: freebsd-net@freebsd.org Received: from ns.sirena2000.ru (ns.sirena2000.ru [194.84.25.34]) by hub.freebsd.org (Postfix) with ESMTP id 76EB137B41E for ; Mon, 26 Nov 2001 03:29:09 -0800 (PST) Received: from sirena2000.ru (chek.network.sirena2000.ru [10.1.9.71]) by ns.sirena2000.ru (8.9.3/8.9.3) with ESMTP id OAA28189; Mon, 26 Nov 2001 14:28:52 +0300 (MSK) (envelope-from serg@sirena2000.ru) Message-ID: <3C02275C.E4C56BF@sirena2000.ru> Date: Mon, 26 Nov 2001 14:28:29 +0300 From: "Serg V. Chemisov" X-Mailer: Mozilla 4.72 [en] (X11; I; SCO_SV 3.2 i386) X-Accept-Language: ru, en MIME-Version: 1.0 To: larse@ISI.EDU Cc: Jonathan Lemon , net@freebsd.org Subject: Re: decreasing TIME_WAIT duration(T/TCP?) References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Lars Eggert wrote: > > > In article > > you write: > > >Hello! > > > > > >It is important to me to have duration of TIME_WAIT state of TCP > > >connection as short time as possible. > > > > Tweak net.inet.tcp.msl, which specifies the 2MSL timeout. > > And know what you are doing, it's there for a reason. If you need to > dramatically change this value, I'd wager your system would benefit from a > design change. > > Lars > -- > Lars Eggert Information Sciences Institute > http://www.isi.edu/larse/ University of Southern California Alan Cox wrote: | | > Machine is web serwer with reather big traffic. Why there is | > so much connections in TIME_WAIT state ? | | | "2 mintues" may be how the Linux kernel does it, but it's not the way | TCP says it should be done. | | TIME_WAIT should last for 2*MSL (maximum segment lifetime). I know it's | hard to calculate MSL, and if you make up a hard-coded value it has to | be long enough for the slowest connections. It could be that FreeBSD | 4.0 does do this calculation. If we can calculate semi-accurate MSLs | for each connection, TIME_WAIT states would be minimized. | | Even over a slow Internet link, the MSL can't be much longer than 10 | seconds or so. By then a segment has either been TTL'd out, or is | lost. I don't buy "MSL == 1 minute" at all. How to turn on this calculation for 4.x ? Serg. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message