What is tw at /proc/net/sockstat?!

Discussion in 'Linux Networking' started by bh98013, Jun 5, 2006.

  1. bh98013

    bh98013 Guest

    Hi everybody~!
    I just want to know tw at /proc/net/sockstat ...!!

    In my server
    --------------------------------------------------------------------------------------------
    ~$cat /proc/net/sockstat
    sockets: used 108
    TCP: inuse 38 orphan 0 tw 100 alloc 38 mem 23
    UDP: inuse 5
    RAW: inuse 3
    FRAG: inuse 0 memory 0
     
    bh98013, Jun 5, 2006
    #1
    1. Advertisements

  2. bh98013

    Spoon Guest

    cf. /usr/src/linux/net/ipv4/proc.c

    tw stands for TIME-WAIT

    TIME-WAIT - represents waiting for enough time to pass to be sure
    the remote TCP received the acknowledgment of its connection
    termination request.
     
    Spoon, Jun 5, 2006
    #2
    1. Advertisements

  3. bh98013

    Rick Jones Guest

    Interesting description. I was always under the impression that it
    was there to preserve connection state long-enough to be confident
    (statistically certain) that all segments of the connection that may
    have wandered-off into seedy corners of the network had timed-out
    before a new connection of the same name was started. Hence the
    reason it is described as being a multiple of the MSL Maximum Segment
    Lifetime.

    rick jones
     
    Rick Jones, Jun 5, 2006
    #3
  4. bh98013

    Spoon Guest

    I read that definition in RFC 793
    http://www.rfc-editor.org/rfc/rfc793.txt
    (which is almost 25-years old)
     
    Spoon, Jun 6, 2006
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.