Re: Monitoring idle time of TCP connections
- From: Rick Jones <rick.jones2@xxxxxx>
- Date: Wed, 28 Jun 2006 21:39:24 GMT
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...
.
- Prev by Date: Disable send ICMP redirect?
- Next by Date: ypserv answers very slow/too late for login manager
- Previous by thread: Re: Monitoring idle time of TCP connections
- Next by thread: Disable send ICMP redirect?
- Index(es):
Relevant Pages
|