Subject: Re: netstat output
To: Erik Huizing <huizing@cpsc.ucalgary.ca>
From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: port-mac68k
Date: 03/19/2000 13:50:50
On Sat, Mar 18, 2000 at 09:10:16PM -0700, Erik Huizing wrote:
> Yet another question:
> I took a look the output of netstat, and I'm surprised to see alot of
> entries that seem like they might be slowing my machine down:
> 
> tcp        0      0  h42-09-15-263372.65152 proxy1.rdc1.ab.w.domai TIME_WAIT
> tcp        0      0  h42-09-15-263372.65154 proxy1.rdc1.ab.w.domai TIME_WAIT
> tcp        0      0  h42-09-15-263372.65156 proxy1.rdc1.ab.w.domai TIME_WAIT
> tcp        0      0  h42-09-15-263372.65158 proxy1.rdc1.ab.w.domai TIME_WAIT
> 
> There's 134 of these in total. I know h42-09-15-263372 is my machine.
> proxy1.rdc1.ab.w... is one of the name servers from my ISP. What I'd liek
> to know is are all these connections normal? 
Probably - if you had 134 TCP connections opened before :-)
They should disappear after a few minutes (2*"maximum segment lifetime"~4min).

To quote RFC 793 "Transmission Control Protocol.":
    TIME-WAIT - represents waiting for enough time to pass to be sure
    the remote TCP received the acknowledgment of its connection
    termination request.

NB: On NetBSD 1.3 I usually had some "zombie" connections wich were stuck
in *_WAIT stages forever.
-- 
Dies ist Thilos Unix Signature! Viel Spass damit.