Networking Forums

Networking Forums > Computer Networking > Linux Networking > Monitoring idle time of TCP connections

Reply
Thread Tools Display Modes

Monitoring idle time of TCP connections

 
 
C3
Guest
Posts: n/a

 
      06-28-2006, 12:32 AM
I am trying to find a way to monitor all the TCP connections on my box, to
determine the maximum idle time for all connections. The idle time assumes
that data will be sent on the connection after it has been idle. If the
connection is killed after the idle time, I want to count the idle time
separately.

Does anyone know of a tool, or tool chain I could use to implement this kind
of monitoring? The initial environment will be Debian 3.0, however, I would
like to do this on a Solaris 9 system, too.

Thanks.


 
Reply With Quote
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      06-28-2006, 06:38 PM
In comp.os.linux.networking C3 <@>:
> I am trying to find a way to monitor all the TCP connections on my box, to
> determine the maximum idle time for all connections. The idle time assumes
> that data will be sent on the connection after it has been idle. If the
> connection is killed after the idle time, I want to count the idle time
> separately.


> Does anyone know of a tool, or tool chain I could use to implement this kind
> of monitoring? The initial environment will be Debian 3.0, however, I would
> like to do this on a Solaris 9 system, too.


Unsure what you are really after but 'man netstat' sounds like a
good start.

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 347: The rubber band broke
 
Reply With Quote
 
Rick Jones
Guest
Posts: n/a

 
      06-28-2006, 09:39 PM
C3 <@> wrote:
> I am trying to find a way to monitor all the TCP connections on my
> box, to determine the maximum idle time for all connections. The
> idle time assumes that data will be sent on the connection after it
> has been idle. If the connection is killed after the idle time, I
> want to count the idle time separately.


> Does anyone know of a tool, or tool chain I could use to implement
> this kind of monitoring? The initial environment will be Debian 3.0,
> however, I would like to do this on a Solaris 9 system, too.


Well, tcpdump/snoop and a lot of post-processing might work.

If you can "force" all connections to have TCP keepalives enabled, you
could set the TCP keepalive timer to something short enough to give
you the accuracy you want and then count keepalives on a
per-connection basis. That too would probably involve tcpdump/snoop.

I've no idea if tcptrace currently knows to look at idle time on a
connection, but for the post-processing that might be the place to
start - with tcptrace mods.

Of course this all begs the question - why are you curious to know the
maximum idle time on the connections?

rick jones
--
a wide gulf separates "what if" from "if only"
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
 
Reply With Quote
 
C3
Guest
Posts: n/a

 
      06-29-2006, 04:08 AM
I would like to set an OS-wide TCP connection timeout, or rather reduce it
from its current value. In order to do this, I need to make sure that I
don't impact future connections on the system.

> Of course this all begs the question - why are you curious to know the
> maximum idle time on the connections?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dialup Idle time Disconnect problem jnathan Windows Networking 1 05-19-2007 03:41 PM
suspend a user session after some idle time Haroon Malik Windows Networking 3 05-25-2006 09:50 PM
PlusNet Idle Time Disconnect Mark Carver Broadband 5 09-20-2005 04:22 PM
Idle Time Out (New Feature on Plusnet) Barney Broadband 18 09-11-2005 12:48 PM
Idle Time Out (216.55.181.75) howard a.k.a Superman Broadband Hardware 0 08-16-2004 12:20 AM



1 2 3 4 5 6 7 8 9 10 11