tcptrace 1 "14 Oct 2002"
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.
"OPTIONS"
Output format options

5 -b brief output format

5 -l long output format

5 -r print rtt statistics (slower for large files)

5 -W report on estimated congestion window (not generally useful)

5 -q no output (if you just want modules output)

Graphing options

5 -T create throughput graph[s], (average over 10 segments, see -A)

5 -R create rtt sample graph[s]

5 -S create time sequence graph[s]

5 -N create owin graph[s] (_o_utstanding data on _N_etwork)

5 -F create segsize graph[s]

5 -G create ALL graphs

Output format detail options

5 -D print in decimal

5 -X print in hexadecimal

5 -n don't resolve host or service names (much faster)

5 -s use short names (list "picard.cs.ohiou.edu" as just "picard")

Connection filtering options

5 -iN ignore connection N (can use multiple times)

5 -oN[-M] only connection N (or N through M). Arg can be used many times. In N is a file rather than a number, read list from file instead.

5 -c ignore non-complete connections (didn't see syn's and fin's)

5 -BN first segment number to analyze (default 1)

5 -EN last segment number to analyze (default last in file)

Graphing detail options

5 -C produce color plot[s]

5 -M produce monochrome (b/w) plot[s]

5 -AN Average N segments for throughput graphs, default is 10

5 -z zero axis options:

5 -z plot time axis from 0 rather than wall clock time (backward compat)

5 -zx plot time axis from 0 rather than wall clock time

5 -zy plot sequence numbers from 0 (time sequence graphs only)

5 -zxy plot both axes from 0

5 -y omit the (yellow) instantaneous throughput points in tput graph

Misc options

5 -Z dump raw rtt sample times to file[s]

5 -p print all packet contents (can be very long)

5 -P print packet contents for selected connections

5 -t \'tick' off the packet numbers as a progress indication

5 -v print version information and exit

5 -w print various warning messages

5 -d whistle while you work (enable debug, use -d -d for more output)

5 -e extract contents of each TCP stream into file

5 -h print help messages

5 -u print minimal UDP information too

5 -Ofile dump matched packets to tcpdump file 'file'

5 \+[v] reverse the setting of the -[v] flag (for booleans)

Extended boolean options (unambiguous prefixes also work)

5 --showsacks show SACK blocks on time sequence graphs (default)

5 --noshowsacks DON'T show SACK blocks on time sequence graphs

5 --showrexmit mark retransmits on time sequence graphs (default)

5 --noshowrexmit DON'T mark retransmits on time sequence graphs

5 --showoutorder mark out-of-order on time sequence graphs (default)

5 --noshowoutorder DON'T mark out-of-order on time sequence graphs

5 --showzerowindow mark zero windows on time sequence graphs (default)

5 --noshowzerowindow DON'T mark zero windows on time sequence graphs

5 --showurg mark packets with URGENT bit set on the time sequence graphs (default)

5 --noshowurg DON'T mark packets with URGENT bit set on the time sequence graphs

5 --showrttdongles mark non-RTT-generating ACKs with special symbols

5 --noshowrttdongles DON'T mark non-RTT-generating ACKs with special symbols (default)

5 --showdupack3 mark triple dupacks on time sequence graphs (default)

5 --noshowdupack3 DON'T mark triple dupacks on time sequence graphs

5 --showzerolensegs show zero length packets on time sequence graphs (default)

5 --noshowzerolensegs DON'T show zero length packets on time sequence graphs

5 --showzwndprobes show zero window probe packets on time sequence graphs (default)

5 --noshowzwndprobes DON'T show zero window probe packets on time sequence graphs

5 --showtitle show title on the graphs (default)

5 --noshowtitle DON'T show title on the graphs

5 --res_addr resolve IP addresses into names (may be slow) (default)

5 --nores_addr DON'T resolve IP addresses into names (may be slow)

5 --res_port resolve port numbers into names (default)

5 --nores_port DON'T resolve port numbers into names

5 --checksum verify IP and TCP checksums

5 --nochecksum DON'T verify IP and TCP checksums (default)

5 --dupack3_data count a duplicate ACK carrying data as a triple dupack

5 --nodupack3_data DON'T count a duplicate ACK carrying data as a triple dupack (default)

5 --check_hwdups check for 'hardware' dups (default)

5 --nocheck_hwdups DON'T check for 'hardware' dups

5 --warn_ooo print warnings when packets timestamps are out of order

5 --nowarn_ooo DON'T print warnings when packets timestamps are out of order (default)

5 --warn_printtrunc print warnings when packets are too short to analyze

5 --nowarn_printtrunc DON'T print warnings when packets are too short to analyze (default)

5 --warn_printbadmbz print warnings when MustBeZero TCP fields are NOT 0

5 --nowarn_printbadmbz DON'T print warnings when MustBeZero TCP fields are NOT 0 (default)

5 --warn_printhwdups print warnings for hardware duplicates

5 --nowarn_printhwdups DON'T print warnings for hardware duplicates (default)

5 --warn_printbadcsum print warnings when packets with bad checksums

5 --nowarn_printbadcsum DON'T print warnings when packets with bad checksums (default)

5 --warn_printbad_syn_fin_seq print warnings when SYNs or FINs rexmitted with different sequence numbers

5 --nowarn_printbad_syn_fin_seq DON'T print warnings when SYNs or FINs rexmitted with different sequence numbers (default)

5 --dump_packet_data print all packets AND dump the TCP/UDP data

5 --nodump_packet_data DON'T print all packets AND dump the TCP/UDP data (default)

5 --continuous run continuously and don't provide a summary

5 --nocontinuous DON'T run continuously and don't provide a summary (default)

5 --print_seq_zero print sequence numbers as offset from initial sequence number

5 --noprint_seq_zero DON'T print sequence numbers as offset from initial sequence number (default)

5 --limit_conn_num limit the maximum number of connections kept at a time in real-time mode

5 --nolimit_conn_num DON'T limit the maximum number of connections kept at a time in real-time mode (default)

5 --xplot_all_files display all generated xplot files at the end

5 --noxplot_all_files DON'T display all generated xplot files at the end (default)

5 --ns_hdrs assume that ns has the useHeaders_flag true (uses IP+TCP headers) (default)

5 --nons_hdrs DON'T assume that ns has the useHeaders_flag true (uses IP+TCP headers)

5 --csv display the long output as comma separated values

5 --nocsv DON'T display the long output as comma separated values (default)

5 --tsv display the long output as tab separated values

5 --notsv DON'T display the long output as tab separated values (default)

Extended variable options (unambiguous prefixes also work)

5 --output_dir=``STR'' directory where all output files are placed (default: '<NULL>')

5 --output_prefix=``STR'' prefix all output files with this string (default: '<NULL>')

5 --xplot_title_prefix=``STR'' prefix to place in the titles of all xplot files (default: '<NULL>')

5 --update_interval=``STR'' time interval for updates in real-time mode (default: '<NULL>')

5 --max_conn_num=``STR'' maximum number of connections to keep at a time in real-time mode (default: '<NULL>')

5 --remove_live_conn_interval=``STR'' idle time after which an open connection is removed in real-time mode (default: '<NULL>')

5 --remove_closed_conn_interval=``STR'' time interval after which a closed connection is removed in real-time mode (default: '<NULL>')

5 --xplot_args=``STR'' arguments to pass to xplot, if we are calling xplot from here (default: '<NULL>')

5 --sv=``STR'' separator to use for long output with <STR>-separated-values (default: '<NULL>')

Included Modules

5 http Http analysis package

5 tcplib TCPLib analysis package

5 traffic traffic analysis package

5 slice traffic efficiency data by time slices

5 rttgraph round trip time analysis graphs

5 collie connection summary package

5 realtime 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

8 xplot an interactive tool for examining .xpl files output by tcptrace.

8 jPlot a Java version of xplot.