decreasing Swind/Rwind values from netstat output

From: June-young Jang (flips1_at_hanmir.com)
Date: 07/09/03


Date: 8 Jul 2003 18:08:46 -0700

Hi, my question is about tcp socket programming.

I traced a connection between client and server
between client and server. I continuously checked the connection
using "netstat" command. The values for Swind and Rwind from
netstat output are decreased, and finnaly send() in client returns
with errno=EPIPE (broken pipe) and the connection is away.

My questions are
1. what is the exactly meaning of the four fields(Swind/Send-Q/Rwind/Recv-Q)
   in netstat output? (netstat man page doesn't say about them.)
2. why does this situation(decreasing Swind/Rwind) occur
   and how do I fix it?

Four values in below are "Swind Send-Q Rwind Recv-Q",
and I am working on Solaris 8.

# netstat -na|grep 43613
127.0.0.1.43613 127.0.0.1.6666 4724 579 0 0 ESTABLISHED
127.0.0.1.6666 127.0.0.1.43613 0 0 4144 580 ESTABLISHED
# netstat -na|grep 43613
127.0.0.1.43613 127.0.0.1.6666 1880 551 0 0 ESTABLISHED
127.0.0.1.6666 127.0.0.1.43613 0 0 1880 552 ESTABLISHED
# netstat -na|grep 43613
127.0.0.1.43613 127.0.0.1.6666 1880 579 0 0 ESTABLISHED
127.0.0.1.6666 127.0.0.1.43613 0 0 1300 580 ESTABLISHED
# netstat -na|grep 43613
127.0.0.1.43613 127.0.0.1.6666 196 0 0 0 ESTABLISHED
127.0.0.1.6666 127.0.0.1.43613 0 0 196 0 ESTABLISHED
# netstat -na|grep 43613
127.0.0.1.43613 127.0.0.1.6666 196 0 0 0 ESTABLISHED
127.0.0.1.6666 127.0.0.1.43613 0 0 196 0 ESTABLISHED
# netstat -na|grep 43613
127.0.0.1.43613 127.0.0.1.6666 196 0 0 0 ESTABLISHED
127.0.0.1.6666 127.0.0.1.43613 0 0 196 0 ESTABLISHED
# netstat -na|grep 43613
#



Relevant Pages

  • Re: read() returns ETIMEDOUT
    ... Server has around 5 MB/s almost constant rx/tx rate. ... connection on average) but it was a stable ... other load on the server the connection is not broken by the server. ... netstat -m before and after the ...
    (freebsd-net)
  • Re: What is going on with my Dialup?
    ... connection, ... box between me and the modem with all ports except 80 and 441 closed. ... those are closed to _inbound_ packets (or are you running a web server ... out what ('netstat' will tell you that) and why. ...
    (comp.os.linux.networking)
  • Re: What should Netstat show?
    ... Not sure what you think netstat should show you. ... ipconfig/all from the server please and one from a client? ... > assuming to mean that the entire internet connection is dropping. ...
    (microsoft.public.windows.server.sbs)
  • Re: [PATCH 0/4] 2.6.21-rc7 NFS writes: fix a series of issues
    ... indicate that the connection to the server is down. ... The netstat outputs are stable: ...
    (Linux-Kernel)
  • socket.connect() hangs in SYN_SENT state.
    ... then times out the connection ... I'm connecting to an apache2 process on the same machine, ... When looking at netstat, the socket is in the SYN_SENT ... Here's the server. ...
    (comp.lang.python)