1tcprtt(8)                   System Manager's Manual                  tcprtt(8)
2
3
4

NAME

6       tcprtt - Trace TCP RTT of established connections. Uses Linux eBPF/bcc.
7

SYNOPSIS

9       tcprtt [-h] [-T] [-D] [-m] [-i INTERVAL] [-d DURATION] [-b] [-B]
10

DESCRIPTION

12       This  tool  traces established connections RTT(round-trip time) to ana‐
13       lyze the quality of network. This  can  be  useful  for  general  trou‐
14       bleshooting  to distinguish the network latency is from user process or
15       physical network.
16
17       Since this uses BPF, only the root user can use this tool.
18

REQUIREMENTS

20       CONFIG_BPF and bcc.
21

OPTIONS

23       -h     Print usage message.
24
25       -T     Include a time column on output (HH:MM:SS).
26
27       -D     Show debug infomation of bpf text.
28
29       -m     Output histogram in milliseconds.
30
31       -i INTERVAL
32              Print output every interval seconds.
33
34       -d DURATION
35              Total duration of trace in seconds.
36
37       -p LPORT
38              Filter for local port.
39
40       -P RPORT
41              Filter for remote port.
42
43       -a LADDR
44              Filter for local address.
45
46       -A RADDR
47              Filter for remote address.
48
49       -b     Show sockets histogram by local address.
50
51       -B     Show sockets histogram by remote address.
52

EXAMPLES

54       Trace TCP RTT and print 1 second summaries, 10 times:
55              # tcprtt -i 1 -d 10
56
57       Summarize in millisecond, and timestamps:
58              # tcprtt -m -T
59
60       Only trace TCP RTT for remote address 192.168.1.100 and remote port 80:
61              # tcprtt -i 1 -d 10 -A 192.168.1.100 -P 80
62
63       Trace local port and show a breakdown of remote hosts RTT:
64              # tcprtt -i 3 --lport 80 --byraddr
65

OVERHEAD

67       This traces the kernel tcp_rcv_established function  and  collects  TCP
68       RTT.  The  rate  of this depends on your server application. If it is a
69       web or proxy server accepting many tens of thousands of connections per
70       second.
71

SOURCE

73       This is from bcc.
74
75              https://github.com/iovisor/bcc
76
77       Also  look  in  the bcc distribution for a companion _examples.txt file
78       containing example usage, output, and commentary for this tool.
79

OS

81       Linux
82

STABILITY

84       Unstable - in development.
85

AUTHOR

87       zhenwei pi
88

SEE ALSO

90       tcptracer(8), tcpconnect(8), funccount(8), tcpdump(8)
91
92
93
94USER COMMANDS                     2020-08-23                         tcprtt(8)
Impressum