Dear Bernd, 

thank you so much for detailed answer!
For my work information you gave to me is sufficient - it helped me a lot!

Regards,
Elena


----- Original Message -----
From: Bernd Eckenfels <[EMAIL PROTECTED]>
Date: Monday, January 23, 2006 8:32 am
Subject: netstat socket timer output format

> Dear Elena,
> 
> you asked me about the meaning of the timers column in "netstat -
> to" output.
> 
> I am afraid I dont know a Document which has details on them, I was 
> lookingfor it, too.
> 
> However I can give you a rough hint: Those timers are of course 
> related to
> the Timers defined in RFC1122 and possibly RFC2988. The timers are 
> relativeto the actual state, they may be retransmission timers or 
> state timeouts.
> 
> If you need to find out the exact meaning, I am afraid you have to 
> look into
> the kernel source.
> 
> The word before the brackets give the timer in action, it can be on
> (retransmit), off, keepalive, timewait or a unknown timer. The 
> first number
> is the time left, the second number is a retry count for that state 
> and the
> last is a timeout (I asume it is in retries but i am not sure)
> 
> The values are from /proc/net/tcp which is formatted this way:
> 
> timer_run (time_len/retr/timeout)
> 
> from here:
> 
>   num = sscanf(line,
>    "%d: %64[0-9A-Fa-f]:%X %64[0-9A-Fa-f]:%X %X %lX:%lX %X:%lX %lX 
> %d %d %lu
> %512s\n",
>                 &d, local_addr, &local_port, rem_addr, &rem_port, 
> &state,                 &txq, &rxq, &timer_run, &time_len, &retr, 
> &uid, &timeout, &inode, more);
> 
> 
> And generated in linux-*/net/ipv4/tcp_ipv4.c
> 
> For example for SYN_RECV you have timerun=1, the timelen is the 
> time to
> expire, retr and timeout are 0. (see get_openreq4()). Other states are
> generated in get_timewait4_sock() or  get_tcp4_sock()
> 
> I would however suggest, you ask this on the netdev list, there 
> might be a
> person who know a place where that is described. I would be very 
> happy to
> put that into netstat(8) if somebody can give me a hint. Thats why 
> I have
> copied this answer to the list.
> 
> Greetings
> Bernd
> 

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to