Scroll to navigation

tcptrace(1) General Commands Manual tcptrace(1)

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

brief output format
long output format
print rtt statistics (slower for large files)
report on estimated congestion window (not generally useful)
no output (if you just want modules output)

Graphing options

create throughput graph[s], (average over 10 segments, see -A)
create rtt sample graph[s]
create time sequence graph[s]
create owin graph[s] (_o_utstanding data on _N_etwork)
create segsize graph[s]
create ALL graphs

Output format detail options

print in decimal
print in hexadecimal
don't resolve host or service names (much faster)
use short names (list "picard.cs.ohiou.edu" as just "picard")

Connection filtering options

ignore connection N (can use multiple times)
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.
ignore non-complete connections (didn't see syn's and fin's)
first segment number to analyze (default 1)
last segment number to analyze (default last in file)

Graphing detail options

produce color plot[s]
produce monochrome (b/w) plot[s]
Average N segments for throughput graphs, default is 10
zero axis options:
plot time axis from 0 rather than wall clock time (backward compat)
plot time axis from 0 rather than wall clock time
plot sequence numbers from 0 (time sequence graphs only)
plot both axes from 0
omit the (yellow) instantaneous throughput points in tput graph

Misc options

dump raw rtt sample times to file[s]
print all packet contents (can be very long)
print packet contents for selected connections
´tick' off the packet numbers as a progress indication
print version information and exit
print various warning messages
whistle while you work (enable debug, use -d -d for more output)
extract contents of each TCP stream into file
print help messages
print minimal UDP information too
dump matched packets to tcpdump file 'file'
+[v]
reverse the setting of the -[v] flag (for booleans)

Extended boolean options (unambiguous prefixes also work)

show SACK blocks on time sequence graphs (default)
DON'T show SACK blocks on time sequence graphs
mark retransmits on time sequence graphs (default)
DON'T mark retransmits on time sequence graphs
mark out-of-order on time sequence graphs (default)
DON'T mark out-of-order on time sequence graphs
mark zero windows on time sequence graphs (default)
DON'T mark zero windows on time sequence graphs
mark packets with URGENT bit set on the time sequence graphs (default)
DON'T mark packets with URGENT bit set on the time sequence graphs
mark non-RTT-generating ACKs with special symbols
DON'T mark non-RTT-generating ACKs with special symbols (default)
mark triple dupacks on time sequence graphs (default)
DON'T mark triple dupacks on time sequence graphs
show zero length packets on time sequence graphs (default)
DON'T show zero length packets on time sequence graphs
show zero window probe packets on time sequence graphs (default)
DON'T show zero window probe packets on time sequence graphs
show title on the graphs (default)
DON'T show title on the graphs
resolve IP addresses into names (may be slow) (default)
DON'T resolve IP addresses into names (may be slow)
resolve port numbers into names (default)
DON'T resolve port numbers into names
verify IP and TCP checksums
DON'T verify IP and TCP checksums (default)
count a duplicate ACK carrying data as a triple dupack
DON'T count a duplicate ACK carrying data as a triple dupack (default)
check for 'hardware' dups (default)
DON'T check for 'hardware' dups
print warnings when packets timestamps are out of order
DON'T print warnings when packets timestamps are out of order (default)
print warnings when packets are too short to analyze
DON'T print warnings when packets are too short to analyze (default)
print warnings when MustBeZero TCP fields are NOT 0
DON'T print warnings when MustBeZero TCP fields are NOT 0 (default)
print warnings for hardware duplicates
DON'T print warnings for hardware duplicates (default)
print warnings when packets with bad checksums
DON'T print warnings when packets with bad checksums (default)
print warnings when SYNs or FINs rexmitted with different sequence numbers
DON'T print warnings when SYNs or FINs rexmitted with different sequence numbers (default)
print all packets AND dump the TCP/UDP data
DON'T print all packets AND dump the TCP/UDP data (default)
run continuously and don't provide a summary
DON'T run continuously and don't provide a summary (default)
print sequence numbers as offset from initial sequence number
DON'T print sequence numbers as offset from initial sequence number (default)
limit the maximum number of connections kept at a time in real-time mode
DON'T limit the maximum number of connections kept at a time in real-time mode (default)
display all generated xplot files at the end
DON'T display all generated xplot files at the end (default)
assume that ns has the useHeaders_flag true (uses IP+TCP headers) (default)
DON'T assume that ns has the useHeaders_flag true (uses IP+TCP headers)
display the long output as comma separated values
DON'T display the long output as comma separated values (default)
display the long output as tab separated values
DON'T display the long output as tab separated values (default)

Extended variable options (unambiguous prefixes also work)

directory where all output files are placed (default: '<NULL>')
prefix all output files with this string (default: '<NULL>')
prefix to place in the titles of all xplot files (default: '<NULL>')
time interval for updates in real-time mode (default: '<NULL>')
maximum number of connections to keep at a time in real-time mode (default: '<NULL>')
idle time after which an open connection is removed in real-time mode (default: '<NULL>')
time interval after which a closed connection is removed in real-time mode (default: '<NULL>')
arguments to pass to xplot, if we are calling xplot from here (default: '<NULL>')
separator to use for long output with <STR>-separated-values (default: '<NULL>')

Included Modules

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

an interactive tool for examining .xpl files output by tcptrace.
a Java version of xplot.
14 Oct 2002