I am trying to implement software that monitors open TCP connections and classifies them based on the round-trip TCP transit time estimates on Linux. I am looking for similar information that nettop shows on MacOS X.
$ nettop -m tcp
It shows a list of open connections by the process that owns it. It includes the current rounding time of the min, the average value and the variance estimates for each compound.
To listen to your own program connections, you can do something like http://linuxgazette.net/136/pfeiffer.html , but I'm looking for something like nettop, which shows information for all the connections on the machine. On OS X, which does not require root access, but this is normal if the response is executed.
I would prefer a version compatible with Python, but if it is not available, I can live with C. If there is an existing command line utility such as nettop for Linux, this is also interesting.
on this topic:
- Wikipedia: Karna algorithm
source share