Re: Monitoring idle time of TCP connections



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...
.



Relevant Pages

  • RE: Interupted downloads also MS Office 2003 Update & XP SP2 probl
    ... > ISP, Properties, Options, and there was the Idle Time box. ... > download SPS2, ... >> because of internet interupted connections. ...
    (microsoft.public.windowsupdate)
  • Re: Unexpected keep state behaviour in ipfw
    ... >to a number you think appropriate for idle established connections to ... net.inet.ip.fw.dyn_ack_lifetime seconds of idle time. ... problem is that ipfw dynamic rules don't work with ipnat. ...
    (FreeBSD-Security)
  • Re: reset IPC$ number
    ... Would reducint the idle time before a disconnect help? ... NET CONFIG SERVER /AUTODISCONNECT:2 ... computer management, shared folders, shares on an XP machine? ... My goal is to reduce the number of client connections. ...
    (microsoft.public.windowsxp.general)
  • Re: the opposite of DCD (dead connection detection)??
    ... I've checked profiles and resource plans to see if any have a ... limit on idle time and there are none. ... connections that were coming in from another server but that isn't the ... on AIX so can't comment further. ...
    (comp.databases.oracle.server)
  • max idle time in idle time
    ... I have a following query regarding to maximum idle time in idle mode. ... What is maximum idle time can we achieve in OEMIDLE for windows mobile? ...
    (microsoft.public.windowsce.embedded)