Re: Help with /proc/net/tcp fields

From: Randy.Dunlap (rddunlap_at_osdl.org)
Date: 02/20/04

  • Next message: Vinay K Nallamothu: "[PATCH 2.6.3][MTD] doc200X warning fixes"
    Date:	Fri, 20 Feb 2004 10:16:04 -0800
    To: DervishD <raul@pleyades.net>
    
    

    On Fri, 20 Feb 2004 11:50:13 +0100 DervishD <raul@pleyades.net> wrote:

    | Hi all :)
    |
    | I'm trying to decode what the field in the output of
    | /proc/net/tcp means, with little success. Apart from the fact that
    | the four last fields have no description (and looking at undocumented
    | sources is really a pain a very time-consuming), I have the following
    | doubts:
    |
    | - I assume that 'sl' is the socket number, but, what does 'sl'
    | stand for?

    'sl is just an index. Maybe it means 'slot'.

    | - What represents the 'st' field?

    socket 'state' -- enumerated in include/linux/tcp.h

    | - I suppose that 'tr:tm->when' represents if there is any timer
    | on that socket (well, 'tr' is the number of timers), and when will
    | expire the nearest one, but I'm not sure.

    Looks right at a quick glance.

    | - I suppose that 'timeout' is the time to die when the socket is
    | in FIN_WAIT state, but I'm afraid I'm wrong :(

    It's the value of 'probes_out', which has a comment (?) of:
    /* unanswered 0 window probes */

    | - Does the 'retrnsmt' field show the retransmissions happened in
    | this socket?

    Looks like a counter that is incremented up to a threshold...
    For ACK handling.

    | If anyone can explain me these fields (and the unnamed fields at
    | the end) I will be very grateful, and if someone could direct me to a
    | site with related information it will help, too.

    Last 2 - 7 unnamed fields:

    depending on 'state':

    case TCP_SEQ_STATE_TIME_WAIT:
            refcnt bucket_pointer (no trailing 5 fields)

    case TCP_SEQ_STATE_OPENREQ:
            refcnt open_request_pointer (no trailing 5 fields)

    case TCP_SEQ_STATE_LISTENING:
    case TCP_SEQ_STATE_ESTABLISHED:
            refcnt socket_pointer rto ato qpp snd_cwnd snd_ssthresh
    where:
      rto == retransmit_timeout
      ato == delayed ACK predicted tick
      qpp == (scheduled number of quick acks << 1) | pingpong(interactive)
      snd_cwnd == sending congestion window
      snd_ssthresh == slow start size threshold (-1 if >= 0xFFFF)

    I suggest asking such questions on the netdev mailing list
    (netdev@oss.sgi.com).

    HTH.

    --
    ~Randy
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Vinay K Nallamothu: "[PATCH 2.6.3][MTD] doc200X warning fixes"

    Relevant Pages

    • Help with /proc/net/tcp fields
      ... /proc/net/tcp means, with little success. ... on that socket, and when will ... the end) I will be very grateful, and if someone could direct me to a ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • 2.6.0 - Network doesnt come up.
      ... Bringing up loopback interface: arping: socket: Address family not supported ... some other host already uses address 127.0.0.1. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: PROBLEM: blocking read on socket repeatedly returns EAGAIN
      ... > the other end does not readthe data written to the socket. ... You are describing behaviour as expected with nonblocking set. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: GFS, whats remainingh
      ... But you said it runs on an aging Alpha, surely you do not intend to expand it ... synchronization keeps you from spreading out the load over multiple boxes? ... Use a socket, as ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: IOCP and WSASend
      ... success, only at GQCS... ... // close the socket and free all allocated resources ... > I'm using IOCP and WSASend to send data. ... > recieving message about sending complete of closed socket and error raised ...
      (microsoft.public.win32.programmer.networks)