tcprtt(8) | System Manager's Manual | tcprtt(8) |
tcprtt - Trace TCP RTT of established connections. Uses Linux eBPF/bcc.
tcprtt [-h] [-T] [-D] [-m] [-p LPORT] [-P RPORT] [-a LADDR] [-A RADDR] [-i INTERVAL] [-d DURATION] [-b] [-B] [-e] [-4 | -6]
This tool traces established connections RTT(round-trip time) to analyze the quality of network. This can be useful for general troubleshooting to distinguish the network latency is from user process or physical network.
Since this uses BPF, only the root user can use this tool.
CONFIG_BPF and bcc.
This traces the kernel tcp_rcv_established function and collects TCP RTT. The rate of this depends on your server application. If it is a web or proxy server accepting many tens of thousands of connections per second.
This is from bcc.
Also look in the bcc distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool.
Linux
Unstable - in development.
zhenwei pi
2020-08-23 | USER COMMANDS |