From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,c3739b53c719bbea X-Google-Attributes: gid1164f8,public X-Google-Thread: f678f,c3739b53c719bbea X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,c3739b53c719bbea X-Google-Attributes: gidfee84,public From: foo@bar.baz (Rick Jones) Subject: Re: Heavy system load <-> tcp-problems? Date: 1998/03/13 Message-ID: <6e9v4p$oon$1@ocean.cup.hp.com>#1/1 X-Deja-AN: 333513572 References: <35069CBA.3F54@cs.tu-berlin.de> <3506AEAF.2A706FF4@netvigator.com> Followup-To: comp.sys.dec,comp.unix.osf.misc,comp.unix.osf.osf1 Organization: Hewlett-Packard's Network Computing Division Newsgroups: comp.sys.dec,comp.unix.osf.misc,comp.unix.osf.osf1 David Lee (davidskl@netvigator.com) wrote: : A lot of TIME_WAIT means the three way TCP hand shaking doesn't TIME_WAIT is the state a TCP connection will go into *after* the three-way handshake is complete. (Actually, only the side that initiated the handshake goes into TIME_WAIT). TIME_WAIT is an integral part of TCP's correctness algorithms. The shorter the TIME_WAIT, the more likely undetected data corruption could occur. FIN_WAIT_1 is an active retransmission state - the TCP connection is waiting for the remote to ACK the FIN. This will either transition to FIN_WAIT_2 after an ACK is recieved, or will retransmit timeout and die. FIN_WAIT_2 is a passive state where TCP is waiting for the remote to send a FIN. Unless a timer is enabled, the connection will stay here "forever" if the remote system simply goes away. If the three-way handshake does not complete, this is a possible state to be left in. I think the other is LAST_ACK. I suspect that many FIN_WAIT_2 states (if not 90%) are the result of silly client software (eg browsers) using abortive closes. Abortive closes send a RST (reset) segment instead of a FIN (the graceful close). RST's are not retransmitted, so if the RST is lost, the remote will never see another one unless it is sending data (which by definition it is not doing if it is in FIN_WAIT_2). If the RST is not lost, it short circuits the TIME_WAIT state and thus part of TCP's correctness algorithms. Do the net a favor - pester your Internet software vendor to *not* use abortive closes. 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...