lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 20 Mar 2012 15:32:27 +0200 From: Daniel Baluta <daniel.baluta@...il.com> To: James Courtier-Dutton <james.dutton@...il.com> Cc: netdev@...r.kernel.org Subject: Re: Per TCP session statistics On Tue, Mar 20, 2012 at 3:26 PM, James Courtier-Dutton <james.dutton@...il.com> wrote: > Hi, > > Is there a way to gather stats for each TCP session? > The stats I am looking for are periodic sampling of the following metrics: > > Statistics Def nition > Cwin Current congestion window > Rwin Current receive window > BytesInFlight # of bytes sent but not ACKed > BytesInSndBuf # of bytes written but not ACKed > SmoothedRTT Smoothed RTT computed by TCP > BytesWritten Cumulative # of bytes written by app > BytesSent Cumulative # of bytes sent > PktsRetrans Cumulative # of pkts retransmitted > RwinLimitTime Cumulative time that a connection is limited by receive window > CwinLimitTime Cumulative time that a connection is limited by > congestion window > > So, for example, > 1) I could say that all TCP sessions being listened to by process ID > 2002 will get stats written to a file per tcp session per 60 seconds. > 2) Gather local statistics for all TCP sessions initiated by process "firefox". > > Does there already exit such a tool for Linux? Have a look at ss ([1]). thanks, Daniel. [1] http://linux.die.net/man/8/ss -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists