1tcpretrans.bt(8)            System Manager's Manual           tcpretrans.bt(8)
2
3
4

NAME

6       tcpretrans.bt  -  Trace  or  count  TCP  retransmits.  Uses  Linux bpf‐
7       trace/eBPF
8

SYNOPSIS

10       tcpretrans.bt
11

DESCRIPTION

13       This traces TCP retransmits, showing address, port, and TCP  state  in‐
14       formation,  and sometimes the PID (although usually not, since retrans‐
15       mits are usually sent by the kernel on timeouts). To keep overhead very
16       low,  only the TCP retransmit functions are traced. This does not trace
17       every packet (like tcpdump(8) or a packet sniffer). Optionally, it  can
18       count  retransmits  over  a user signalled interval to spot potentially
19       dropping network paths the flows are traversing.
20
21       This uses  dynamic  tracing  of  the  kernel  tcp_retransmit_skb()  and
22       tcp_send_loss_probe()  functions,  and will need to be updated to match
23       kernel changes to these functions.
24
25       Since this uses BPF, only the root user can use this tool.
26

REQUIREMENTS

28       CONFIG_BPF and bcc.  CONFIG_BPF and bpftrace.
29

EXAMPLES

31       Trace TCP retransmits:
32              # tcpretrans.bt
33
34
35       FIELDS
36
37       TIME   Time of the call, in HH:MM:SS format.
38
39       PID    Process ID that was on-CPU. This is less useful  than  it  might
40              sound,  as  it may usually be 0, for the kernel, for timer-based
41              retransmits.
42
43       LADDR  Local IP address.
44
45       LPORT  Local port.
46
47       RADDR  Remote IP address.
48
49       RPORT  Remote port.
50
51       STATE  TCP session state.
52

OVERHEAD

54       Should be negligible: TCP retransmit events should  be  low  (<1000/s),
55       and  the low overhead this tool adds to each event should make the cost
56       negligible.
57

SOURCE

59       This is from bpftrace
60
61              https://github.com/iovisor/bpftrace
62
63       Also look in the bpftrace distribution for  a  companion  _examples.txt
64       file containing example usage, output, and commentary for this tool.
65
66       This  is  a  bpftrace version of the bcc tool of the same name. The bcc
67       tool may provide more options and customizations.
68
69              https://github.com/iovisor/bcc
70

OS

72       Linux
73

STABILITY

75       Unstable - in development.
76

AUTHOR

78       Brendan Gregg, adapted for bpftrace by Dale Hamel
79

SEE ALSO

81       tcpconnect.bt(8), tcpaccept.bt(8)
82
83
84
85USER COMMANDS                     2018-11-24                  tcpretrans.bt(8)
Impressum