tcptrace(1)
π tcptrace(1) π β General Commands Manual, bestie edition
okay so bestie, this is the tcptrace(1) page, straight outta the General Commands Manual. It's giving TCP connection analysis, no cap. Let's get into it. π«Ά
πΈ NAME πΈ
tcptrace β a TCP connection analysis tool
β¨ SYNOPSIS β¨
tcptrace [options] filename
π¦ DESCRIPTION π¦
tcptrace takes a tcpdump file specified on the command line (or from standard input) and produces a summarization of the connections. Literally that's the whole vibe. π
π OPTIONS π
π Output format options π
-bβ brief output format-lβ long output format-rβ print rtt statistics (slower for large files)-Wβ report on estimated congestion window (not generally useful)-qβ no output (if you just want modules output)
π Graphing options π
-Tβ create throughput graph[s], (average over 10 segments, see-A)-Rβ create rtt sample graph[s]-Sβ create time sequence graph[s]-Nβ create owin graph[s] (_o_utstanding data on _N_etwork)-Fβ create segsize graph[s]-Gβ create ALL graphs
π Output format detail options π
-Dβ print in decimal-Xβ print in hexadecimal-nβ don't resolve host or service names (much faster)-sβ use short names (list"picard.cs.ohiou.edu"as just"picard")
π― Connection filtering options π―
-iNβ ignore connection N (can use multiple times)-oN[-M]β only connection N (or N through M). Arg can be used many times. If N is a file rather than a number, read list from file instead.-cβ ignore non-complete connections (didn't see syn's and fin's)-BNβ first segment number to analyze (default 1)-ENβ last segment number to analyze (default last in file)
π¨ Graphing detail options π¨
-Cβ produce color plot[s]-Mβ produce monochrome (b/w) plot[s]-ANβ Average N segments for throughput graphs, default is 10-zβ zero axis options:-zβ plot time axis from 0 rather than wall clock time (backward compat)-zxβ plot time axis from 0 rather than wall clock time-zyβ plot sequence numbers from 0 (time sequence graphs only)-zxyβ plot both axes from 0
-yβ omit the (yellow) instantaneous throughput points in tput graph
π οΈ Misc options π οΈ
-Zβ dump raw rtt sample times to file[s]-pβ print all packet contents (can be very long)-Pβ print packet contents for selected connections-tβ Β΄tick' off the packet numbers as a progress indication-vβ print version information and exit-wβ print various warning messages-dβ whistle while you work (enable debug, use-d -dfor more output)-eβ extract contents of each TCP stream into file-hβ print help messages-uβ print minimal UDP information too-Ofileβ dump matched packets to tcpdump file 'file'+[v]β reverse the setting of the-[v]flag (for booleans)
π§ Extended boolean options (unambiguous prefixes also work) π§
--showsacksβ show SACK blocks on time sequence graphs (default)--noshowsacksβ DON'T show SACK blocks on time sequence graphs--showrexmitβ mark retransmits on time sequence graphs (default)--noshowrexmitβ DON'T mark retransmits on time sequence graphs--showoutorderβ mark out-of-order on time sequence graphs (default)--noshowoutorderβ DON'T mark out-of-order on time sequence graphs--showzerowindowβ mark zero windows on time sequence graphs (default)--noshowzerowindowβ DON'T mark zero windows on time sequence graphs--showurgβ mark packets with URGENT bit set on the time sequence graphs (default)--noshowurgβ DON'T mark packets with URGENT bit set on the time sequence graphs--showrttdonglesβ mark non-RTT-generating ACKs with special symbols--noshowrttdonglesβ DON'T mark non-RTT-generating ACKs with special symbols (default)--showdupack3β mark triple dupacks on time sequence graphs (default)--noshowdupack3β DON'T mark triple dupacks on time sequence graphs--showzerolensegsβ show zero length packets on time sequence graphs (default)--noshowzerolensegsβ DON'T show zero length packets on time sequence graphs--showzwndprobesβ show zero window probe packets on time sequence graphs (default)--noshowzwndprobesβ DON'T show zero window probe packets on time sequence graphs--showtitleβ show title on the graphs (default)--noshowtitleβ DON'T show title on the graphs--res_addrβ resolve IP addresses into names (may be slow) (default)--nores_addrβ DON'T resolve IP addresses into names (may be slow)--res_portβ resolve port numbers into names (default)--nores_portβ DON'T resolve port numbers into names--checksumβ verify IP and TCP checksums--nochecksumβ DON'T verify IP and TCP checksums (default)--dupack3_dataβ count a duplicate ACK carrying data as a triple dupack--nodupack3_dataβ DON'T count a duplicate ACK carrying data as a triple dupack (default)--check_hwdupsβ check for 'hardware' dups (default)--nocheck_hwdupsβ DON'T check for 'hardware' dups--warn_oooβ print warnings when packets timestamps are out of order--nowarn_oooβ DON'T print warnings when packets timestamps are out of order (default)--warn_printtruncβ print warnings when packets are too short to analyze--nowarn_printtruncβ DON'T print warnings when packets are too short to analyze (default)--warn_printbadmbzβ print warnings when MustBeZero TCP fields are NOT 0--nowarn_printbadmbzβ DON'T print warnings when MustBeZero TCP fields are NOT 0 (default)--warn_printhwdupsβ print warnings for hardware duplicates--nowarn_printhwdupsβ DON'T print warnings for hardware duplicates (default)--warn_printbadcsumβ print warnings when packets with bad checksums--nowarn_printbadcsumβ DON'T print warnings when packets with bad checksums (default)--warn_printbad_syn_fin_seqβ print warnings when SYNs or FINs rexmitted with different sequence numbers--nowarn_printbad_syn_fin_seqβ DON'T print warnings when SYNs or FINs rexmitted with different sequence numbers (default)--dump_packet_dataβ print all packets AND dump the TCP/UDP data--nodump_packet_dataβ DON'T print all packets AND dump the TCP/UDP data (default)--continuousβ run continuously and don't provide a summary--nocontinuousβ DON'T run continuously and don't provide a summary (default)--print_seq_zeroβ print sequence numbers as offset from initial sequence number--noprint_seq_zeroβ DON'T print sequence numbers as offset from initial sequence number (default)--limit_conn_numβ limit the maximum number of connections kept at a time in real-time mode--nolimit_conn_numβ DON'T limit the maximum number of connections kept at a time in real-time mode (default)--xplot_all_filesβ display all generated xplot files at the end--noxplot_all_filesβ DON'T display all generated xplot files at the end (default)--ns_hdrsβ assume that ns has the useHeaders_flag true (uses IP+TCP headers) (default)--nons_hdrsβ DON'T assume that ns has the useHeaders_flag true (uses IP+TCP headers)--csvβ display the long output as comma separated values--nocsvβ DON'T display the long output as comma separated values (default)--tsvβ display the long output as tab separated values--notsvβ DON'T display the long output as tab separated values (default)
𧬠Extended variable options (unambiguous prefixes also work) π§¬
--output_dir=``STR''β directory where all output files are placed (default: '<NULL>')--output_prefix=``STR''β prefix all output files with this string (default: '<NULL>')--xplot_title_prefix=``STR''β prefix to place in the titles of all xplot files (default: '<NULL>')--update_interval=``STR''β time interval for updates in real-time mode (default: '<NULL>')--max_conn_num=``STR''β maximum number of connections to keep at a time in real-time mode (default: '<NULL>')--remove_live_conn_interval=``STR''β idle time after which an open connection is removed in real-time mode (default: '<NULL>')--remove_closed_conn_interval=``STR''β time interval after which a closed connection is removed in real-time mode (default: '<NULL>')--xplot_args=``STR''β arguments to pass to xplot, if we are calling xplot from here (default: '<NULL>')--sv=``STR''β separator to use for long output with<STR>-separated-values (default: '<NULL>')
π¦ Included Modules π¦
httpβ Http analysis packagetcplibβ TCPLib analysis packagetrafficβ traffic analysis packagesliceβ traffic efficiency data by time slicesrttgraphβ round trip time analysis graphscollieβ connection summary packagerealtimeβ example real-time package
For module-specific options, please use tcptrace -hxargs β¨
π§Ώ Filter Variables π§Ώ
Please use 'tcptrace -hfilter' for the complete listing of filter variables.
π§Ώ Filter Syntax π§Ώ
Please use 'tcptrace -hfilter' for filter syntax.
π ENVIRONMENT π
Options are first read from the file $HOME/.tcptracerc (if it exists), and then from the environment variable TCPTRACEOPTS (if it exists), and finally from the command line.
π AUTHOR π
Shawn Ostermann (ostermann@cs.ohiou.edu)
π CREDITS π
Thanks to Mark Foster (mafoster@george.arc.nasa.gov) for writing this manual page. Thanks to Avinash Lakhiani (alakhian@irg.cs.ohiou.edu) for updating it.
π FILES π
ποΈ Dump File Names ποΈ
Trailing (unrecognized) arguments are taken to be one or more filenames. The files can be compressed, see compress.h for configuration. If the dump file name is 'stdin', then we read from standard input rather than from a file.
π SEE ALSO π
xplotβ an interactive tool for examining.xplfiles output by tcptrace.jPlotβ a Java version of xplot.
okay bestie, that's the whole page. It was last updated 14 Oct 2002, and it's the tcptrace(1) page from the General Commands Manual. bye bestie, go analyze some TCP connections π β¨π¦
π¦ where this page comes from
- debian bookworm: tcptrace 6.6.7-6+b1
- debian trixie: tcptrace 6.6.7-6+b2
- ubuntu jammy: tcptrace 6.6.7-6
- ubuntu noble: tcptrace 6.6.7-6build2
- ubuntu questing: tcptrace 6.6.7-6build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms