Name Date Size #Lines LOC

..--

cmake/Modules/H--676629

doc/H--12286

lbl/H--302205

missing/H--1,9021,160

CHANGESH A D23-Sep-202477.8 KiB1,8621,605

CMakeLists.txtH A D23-Sep-202452.2 KiB1,5671,459

CONTRIBUTING.mdH A D23-Sep-202415.7 KiB395309

CREDITSH A D23-Sep-202423.4 KiB374369

INSTALL.mdH A D23-Sep-20246.1 KiB144130

LICENSEH A D08-Jun-2023868 2016

Makefile-devel-addsH A D21-Dec-2019614 2318

Makefile.inH A D23-Sep-202414.2 KiB582481

README.mdH A D08-Jun-20239 KiB226189

VERSIONH A D23-Sep-20247 21

addrtoname.cH A D23-Sep-202434.2 KiB1,3281,025

addrtoname.hH A D08-Jun-20234.6 KiB12781

addrtostr.cH A D23-Sep-20245.6 KiB204122

addrtostr.hH A D04-Feb-20172 KiB432

af.cH A D23-Sep-20241.9 KiB5736

af.hH A D08-Jun-20231.8 KiB5627

ah.hH A D08-Jun-20233 KiB6810

appletalk.hH A D08-Jun-20234.2 KiB167103

ascii_strcasecmp.cH A D08-Jun-20233.5 KiB10666

ascii_strcasecmp.hH A D04-Feb-20171.5 KiB346

atime.awkH A D08-Jun-2023528 199

atm.hH A D27-May-20151.1 KiB326

autogen.shH A D23-Sep-2024831 2619

bpf_dump.cH A D23-Sep-20241.9 KiB6134

chdlc.hH A D08-Jun-20231.3 KiB275

checksum.cH A D23-Sep-20244.6 KiB15589

cmake_uninstall.cmake.inH A D08-Jun-20231 KiB2220

cmakeconfig.h.inH A D23-Sep-20248.8 KiB291194

compiler-tests.hH A D08-Jun-20237.2 KiB19755

config.guessH A D23-Sep-202449.5 KiB1,8131,586

config.h.inH A D23-Sep-20248.1 KiB290194

config.subH A D23-Sep-202436 KiB1,9721,765

configureH A D23-Sep-2024314.9 KiB10,9948,044

configure.acH A D23-Sep-202433.8 KiB1,2881,207

configure.inH A D06-Dec-201725.7 KiB1,018945

cpack.cH A D23-Sep-20245.3 KiB219119

cpack.hH A D08-Jun-20232.5 KiB5821

diag-control.hH A D23-Sep-20248.4 KiB236104

ethertype.hH A D08-Jun-20236 KiB220173

extract.hH A D23-Sep-202430.3 KiB911617

fptype.cH A D08-Jun-20232 KiB5113

fptype.hH A D08-Jun-20231.8 KiB351

ftmacros.hH A D23-Sep-20244.8 KiB12822

funcattrs.hH A D23-Sep-20246 KiB16256

getservent.hH A D08-Jun-20232.6 KiB6821

gmpls.cH A D23-Sep-20245.8 KiB191143

gmpls.hH A D06-Dec-20171.4 KiB3417

in_cksum.cH A D23-Sep-20246.4 KiB19988

install-shH A D23-Sep-202415 KiB542352

instrument-functions.cH A D23-Sep-20246.5 KiB251175

interface.hH A D23-Sep-20242 KiB7032

ip.hH A D23-Sep-20245.7 KiB16482

ip6.hH A D08-Jun-20237.9 KiB213101

ipproto.cH A D23-Sep-202416.5 KiB362299

ipproto.hH A D08-Jun-20234.8 KiB14698

l2vpn.cH A D23-Sep-20243.3 KiB9461

l2vpn.hH A D06-Dec-2017781 182

llc.hH A D27-May-20153.7 KiB12384

machdep.cH A D23-Sep-20242 KiB5721

machdep.hH A D04-Feb-20171.2 KiB264

makemibH A D23-Sep-20246.4 KiB248186

mib.hH A D23-Sep-202426.3 KiB1,4611,450

mkdepH A D23-Sep-20242.8 KiB11960

mpls.hH A D08-Jun-20231.9 KiB4212

nameser.hH A D23-Sep-202412.8 KiB332202

netdissect-alloc.cH A D23-Sep-20241.8 KiB6334

netdissect-alloc.hH A D08-Jun-20231 KiB3311

netdissect-ctype.hH A D08-Jun-20232.5 KiB5710

netdissect-stdinc.hH A D08-Jun-202310.1 KiB383151

netdissect.cH A D23-Sep-20248.2 KiB314153

netdissect.hH A D23-Sep-202437.1 KiB808485

nfs.hH A D08-Jun-202313.1 KiB418292

nfsfh.hH A D08-Jun-20232.6 KiB6713

nlpid.cH A D23-Sep-20241.2 KiB4022

nlpid.hH A D06-Dec-20171.3 KiB3316

ntp.cH A D23-Sep-20242.3 KiB7335

ntp.hH A D08-Jun-20232.2 KiB5511

openflow.hH A D08-Jun-20233.2 KiB9146

ospf.hH A D08-Jun-202310.3 KiB326221

oui.cH A D23-Sep-20245.1 KiB13099

oui.hH A D08-Jun-20235.3 KiB12091

packetdat.awkH A D19-Aug-19961.4 KiB6247

parsenfsfh.cH A D23-Sep-202412.3 KiB450268

pcap-missing.hH A D04-Feb-20171.8 KiB5016

pflog.hH A D23-Sep-20244 KiB152100

ppp.hH A D08-Jun-20233 KiB6945

print-802_11.cH A D23-Sep-202497.4 KiB3,5282,529

print-802_15_4.cH A D23-Sep-202464.4 KiB2,5552,118

print-ah.cH A D23-Sep-20242.3 KiB7432

print-ahcp.cH A D23-Sep-20249.9 KiB383297

print-aodv.cH A D23-Sep-202415.8 KiB536434

print-aoe.cH A D23-Sep-202410.1 KiB412302

print-ap1394.cH A D23-Sep-20243.9 KiB12267

print-arcnet.cH A D23-Sep-20249 KiB365230

print-arista.cH A D23-Sep-20244.5 KiB16492

print-arp.cH A D23-Sep-202414.5 KiB472343

print-ascii.cH A D23-Sep-20246.4 KiB234167

print-atalk.cH A D23-Sep-202416.8 KiB700541

print-atm.cH A D23-Sep-202416.5 KiB529336

print-babel.cH A D23-Sep-202427.6 KiB862704

print-bcm-li.cH A D23-Sep-20243.6 KiB12984

print-beep.cH A D23-Sep-20241.7 KiB6836

print-bfd.cH A D23-Sep-202416.5 KiB423263

print-bgp.cH A D23-Sep-2024106.5 KiB3,1662,540

print-bootp.cH A D23-Sep-202429.7 KiB1,110871

print-brcmtag.cH A D23-Sep-20244.2 KiB149100

print-bt.cH A D23-Sep-20242.3 KiB7030

print-calm-fast.cH A D23-Sep-20241.8 KiB7031

print-carp.cH A D23-Sep-20242.4 KiB7835

print-cdp.cH A D23-Sep-202412.3 KiB469335

print-cfm.cH A D23-Sep-202423.8 KiB765555

print-chdlc.cH A D23-Sep-20245.7 KiB197139

print-cip.cH A D23-Sep-20242.2 KiB8636

print-cnfp.cH A D23-Sep-202413.6 KiB485351

print-dccp.cH A D23-Sep-202417.4 KiB704553

print-decnet.cH A D23-Sep-202435.2 KiB1,1811,021

print-dhcp6.cH A D23-Sep-202424.4 KiB908777

print-domain.cH A D23-Sep-202428 KiB1,172992

print-dsa.cH A D23-Sep-20246.8 KiB218140

print-dtp.cH A D23-Sep-20243 KiB12179

print-dvmrp.cH A D23-Sep-20247.9 KiB331260

print-eap.cH A D23-Sep-202410.5 KiB341259

print-egp.cH A D23-Sep-20248.7 KiB391331

print-eigrp.cH A D23-Sep-202419.7 KiB531428

print-enc.cH A D23-Sep-20245.2 KiB15758

print-esp.cH A D23-Sep-202423.5 KiB932576

print-ether.cH A D23-Sep-202417.6 KiB664428

print-fddi.cH A D23-Sep-202410.4 KiB348204

print-forces.cH A D23-Sep-202441.5 KiB1,7141,373

print-fr.cH A D23-Sep-202432.5 KiB1,162737

print-frag6.cH A D23-Sep-20242.2 KiB6331

print-ftp.cH A D23-Sep-2024905 289

print-geneve.cH A D23-Sep-20246.2 KiB243160

print-geonet.cH A D23-Sep-20246.5 KiB266193

print-gre.cH A D23-Sep-20248.6 KiB413316

print-hncp.cH A D23-Sep-202426 KiB865716

print-hsrp.cH A D23-Sep-20244.5 KiB13264

print-http.cH A D23-Sep-20241.4 KiB7350

print-icmp.cH A D23-Sep-202424.8 KiB796585

print-icmp6.cH A D23-Sep-202462.1 KiB2,0801,737

print-igmp.cH A D23-Sep-20248.5 KiB300228

print-igrp.cH A D23-Sep-20244.4 KiB14899

print-ip-demux.cH A D23-Sep-20245.3 KiB236152

print-ip.cH A D23-Sep-202412.2 KiB529387

print-ip6.cH A D23-Sep-202413.2 KiB506294

print-ip6opts.cH A D23-Sep-20246.9 KiB264200

print-ipcomp.cH A D23-Sep-20242.2 KiB6319

print-ipfc.cH A D23-Sep-20244.4 KiB14261

print-ipnet.cH A D23-Sep-20242.5 KiB10979

print-ipoib.cH A D23-Sep-20243.7 KiB12467

print-ipx.cH A D23-Sep-20246.7 KiB266197

print-isakmp.cH A D23-Sep-202480.2 KiB3,1352,453

print-isoclns.cH A D23-Sep-2024117.7 KiB3,5542,932

print-juniper.cH A D23-Sep-202453 KiB1,6261,358

print-krb.cH A D23-Sep-20246 KiB255175

print-l2tp.cH A D23-Sep-202422.9 KiB858721

print-lane.cH A D23-Sep-20242.6 KiB10960

print-ldp.cH A D23-Sep-202423.6 KiB703512

print-lisp.cH A D23-Sep-202414.9 KiB452285

print-llc.cH A D23-Sep-202416.5 KiB609391

print-lldp.cH A D23-Sep-202457.5 KiB1,6811,386

print-lmp.cH A D23-Sep-202436.7 KiB1,136928

print-loopback.cH A D23-Sep-20243.5 KiB13578

print-lspping.cH A D23-Sep-202450.5 KiB1,076688

print-lwapp.cH A D23-Sep-202413.4 KiB366256

print-lwres.cH A D23-Sep-202412.7 KiB556386

print-m3ua.cH A D23-Sep-202410.8 KiB336233

print-macsec.cH A D23-Sep-20247.5 KiB254144

print-mobile.cH A D23-Sep-20243.2 KiB10349

print-mobility.cH A D23-Sep-20249.1 KiB332246

print-mpcp.cH A D23-Sep-20246.9 KiB234179

print-mpls.cH A D23-Sep-20244.9 KiB17390

print-mptcp.cH A D23-Sep-202415 KiB484368

print-msdp.cH A D23-Sep-20242.5 KiB9669

print-msnlb.cH A D23-Sep-20242.3 KiB6123

print-nflog.cH A D23-Sep-20247.2 KiB240145

print-nfs.cH A D23-Sep-202445.2 KiB1,8601,490

print-nsh.cH A D23-Sep-20248.7 KiB262167

print-ntp.cH A D23-Sep-202416.2 KiB533327

print-null.cH A D23-Sep-20243.9 KiB13763

print-olsr.cH A D23-Sep-202423.2 KiB707492

print-openflow-1.0.cH A D23-Sep-202468 KiB2,2801,617

print-openflow-1.3.cH A D23-Sep-202436.7 KiB1,207913

print-openflow.cH A D23-Sep-20247.3 KiB227127

print-ospf.cH A D23-Sep-202438.2 KiB1,183973

print-ospf6.cH A D23-Sep-202428.8 KiB1,010776

print-otv.cH A D23-Sep-20242.2 KiB7531

print-pflog.cH A D23-Sep-20245.7 KiB215154

print-pfsync.cH A D01-Apr-202413.2 KiB473376

print-pgm.cH A D23-Sep-202421 KiB828696

print-pim.cH A D23-Sep-202433 KiB1,231953

print-pktap.cH A D23-Sep-20245.3 KiB176106

print-ppi.cH A D23-Sep-20243 KiB13087

print-ppp.cH A D23-Sep-202446.7 KiB1,9001,509

print-pppoe.cH A D23-Sep-20245.7 KiB205143

print-pptp.cH A D23-Sep-202423.4 KiB870705

print-ptp.cH A D23-Sep-202423.6 KiB646366

print-radius.cH A D23-Sep-202455.8 KiB1,4661,099

print-raw.cH A D23-Sep-20241.5 KiB4412

print-realtek.cH A D23-Sep-20248.8 KiB24799

print-resp.cH A D23-Sep-202416.1 KiB533298

print-rip.cH A D23-Sep-202412.7 KiB417276

print-ripng.cH A D23-Sep-20245.8 KiB183115

print-rpki-rtr.cH A D23-Sep-202410.4 KiB386238

print-rsvp.cH A D23-Sep-202481.1 KiB2,0681,712

print-rt6.cH A D23-Sep-20243.1 KiB11474

print-rtsp.cH A D23-Sep-20241.1 KiB4323

print-rx.cH A D23-Sep-202462.6 KiB2,8412,103

print-sctp.cH A D23-Sep-202421.6 KiB773542

print-sflow.cH A D23-Sep-202431.4 KiB961768

print-sip.cH A D23-Sep-20241.3 KiB5329

print-sl.cH A D23-Sep-20246.2 KiB258177

print-sll.cH A D23-Sep-202414 KiB534276

print-slow.cH A D23-Sep-202424.2 KiB736568

print-smb.cH A D23-Sep-202442.4 KiB1,4791,211

print-smtp.cH A D23-Sep-2024915 289

print-snmp.cH A D23-Sep-202442.3 KiB1,9331,451

print-someip.cH A D23-Sep-20244.3 KiB14089

print-ssh.cH A D23-Sep-20242.2 KiB9853

print-stp.cH A D23-Sep-202415.8 KiB469313

print-sunatm.cH A D23-Sep-20243.2 KiB10144

print-sunrpc.cH A D23-Sep-20247.4 KiB240113

print-symantec.cH A D23-Sep-20243.7 KiB10962

print-syslog.cH A D23-Sep-20244.2 KiB14888

print-tcp.cH A D23-Sep-202438.1 KiB979759

print-telnet.cH A D23-Sep-202414.7 KiB539395

print-tftp.cH A D23-Sep-20245 KiB197128

print-timed.cH A D23-Sep-20245.1 KiB152110

print-tipc.cH A D23-Sep-202411.1 KiB351290

print-token.cH A D23-Sep-20247.7 KiB249144

print-udld.cH A D23-Sep-20245.8 KiB206125

print-udp.cH A D23-Sep-202420.1 KiB743631

print-unsupported.cH A D23-Sep-20241 KiB3311

print-usb.cH A D23-Sep-20247.1 KiB279180

print-vjc.cH A D23-Sep-20244.4 KiB12142

print-vqp.cH A D23-Sep-20246.7 KiB213147

print-vrrp.cH A D23-Sep-20246.5 KiB18995

print-vsock.cH A D23-Sep-20246.6 KiB261192

print-vtp.cH A D23-Sep-202413.3 KiB391226

print-vxlan-gpe.cH A D23-Sep-20243.6 KiB12364

print-vxlan.cH A D23-Sep-20242.4 KiB8234

print-wb.cH A D23-Sep-202410.5 KiB444324

print-whois.cH A D23-Sep-2024911 309

print-zep.cH A D23-Sep-20244.9 KiB18098

print-zephyr.cH A D23-Sep-20248 KiB347267

print-zeromq.cH A D23-Sep-20247.3 KiB218108

print.cH A D23-Sep-202414.4 KiB591428

print.hH A D08-Jun-20231.7 KiB4410

rpc_auth.hH A D08-Jun-20232.4 KiB7214

rpc_msg.hH A D08-Jun-20233.2 KiB12856

send-ack.awkH A D19-Aug-19961.6 KiB6957

signature.cH A D23-Sep-20245.5 KiB207104

signature.hH A D06-Dec-20171.1 KiB308

slcompress.hH A D08-Jun-20233.6 KiB8614

smb.hH A D08-Jun-20235.5 KiB12598

smbutil.cH A D23-Sep-202464.6 KiB1,9681,745

status-exit-codes.hH A D23-Sep-20241.1 KiB3211

stime.awkH A D08-Jun-2023566 2010

strtoaddr.cH A D23-Sep-20245.3 KiB234142

strtoaddr.hH A D04-Feb-2017992 242

tcp.hH A D23-Sep-20245 KiB160113

tcpdump.1.inH A D23-Sep-202464.4 KiB2,0702,039

tcpdump.cH A D23-Sep-202486 KiB3,3082,285

timeval-operations.hH A D08-Jun-20233.1 KiB7437

udp.hH A D23-Sep-20246.8 KiB251210

util-print.cH A D23-Sep-202425.2 KiB987571

varattrs.hH A D08-Jun-20232.4 KiB6010

README.md

1# TCPDUMP 4.x.y by [The Tcpdump Group](https://www.tcpdump.org/)
2
3**To report a security issue please send an e-mail to security@tcpdump.org.**
4
5To report bugs and other problems, contribute patches, request a
6feature, provide generic feedback etc please see the
7[guidelines for contributing](CONTRIBUTING.md) in the tcpdump source tree root.
8
9Anonymous Git is available via
10
11	https://github.com/the-tcpdump-group/tcpdump.git
12
13This directory contains source code for tcpdump, a tool for network
14monitoring and data acquisition.
15
16Over the past few years, tcpdump has been steadily improved by the
17excellent contributions from the Internet community (just browse
18through the [change log](CHANGES)).  We are grateful for all the input.
19
20### Supported platforms
21In many operating systems tcpdump is available as a native package or port,
22which simplifies installation of updates and long-term maintenance. However,
23the native packages are sometimes a few versions behind and to try a more
24recent snapshot it will take to compile tcpdump from the source code.
25
26tcpdump compiles and works on at least the following platforms:
27
28* AIX
29* DragonFly BSD
30* FreeBSD
31* Haiku
32* HP-UX 11i
33* illumos (OmniOS, OpenIndiana)
34* GNU/Linux
35* {Mac} OS X / macOS
36* NetBSD
37* OpenBSD
38* OpenWrt
39* Solaris
40* Windows (requires WinPcap or Npcap, and Visual Studio with CMake)
41
42### Dependency on libpcap
43Tcpdump uses libpcap, a system-independent interface for user-level
44packet capture.  Before building tcpdump, you must first retrieve and
45build libpcap.
46
47Once libpcap is built (either install it or make sure it's in
48`../libpcap`), you can build tcpdump using the procedure in the
49[installation notes](INSTALL.md).
50
51### Origins of tcpdump
52The program is loosely based on SMI's "etherfind" although none of the
53etherfind code remains.  It was originally written by Van Jacobson as
54part of an ongoing research project to investigate and improve TCP and
55Internet gateway performance.  The parts of the program originally
56taken from Sun's etherfind were later re-written by Steven McCanne of
57LBL.  To insure that there would be no vestige of proprietary code in
58tcpdump, Steve wrote these pieces from the specification given by the
59manual entry, with no access to the source of tcpdump or etherfind.
60```text
61formerly from	Lawrence Berkeley National Laboratory
62		Network Research Group <tcpdump@ee.lbl.gov>
63		ftp://ftp.ee.lbl.gov/old/tcpdump.tar.Z (3.4)
64```
65
66### See also
67Richard Stevens gives an excellent treatment of the Internet protocols
68in his book *"TCP/IP Illustrated, Volume 1"*. If you want to learn more
69about tcpdump and how to interpret its output, pick up this book.
70
71Another tool that tcpdump users might find useful is
72[tcpslice](https://github.com/the-tcpdump-group/tcpslice).
73It is a program that can be used to extract portions of tcpdump binary
74trace files.
75
76### The original LBL README by Steve McCanne, Craig Leres and Van Jacobson
77```
78This directory also contains some short awk programs intended as
79examples of ways to reduce tcpdump data when you're tracking
80particular network problems:
81
82send-ack.awk
83	Simplifies the tcpdump trace for an ftp (or other unidirectional
84	tcp transfer).  Since we assume that one host only sends and
85	the other only acks, all address information is left off and
86	we just note if the packet is a "send" or an "ack".
87
88	There is one output line per line of the original trace.
89	Field 1 is the packet time in decimal seconds, relative
90	to the start of the conversation.  Field 2 is delta-time
91	from last packet.  Field 3 is packet type/direction.
92	"Send" means data going from sender to receiver, "ack"
93	means an ack going from the receiver to the sender.  A
94	preceding "*" indicates that the data is a retransmission.
95	A preceding "-" indicates a hole in the sequence space
96	(i.e., missing packet(s)), a "#" means an odd-size (not max
97	seg size) packet.  Field 4 has the packet flags
98	(same format as raw trace).  Field 5 is the sequence
99	number (start seq. num for sender, next expected seq number
100	for acks).  The number in parens following an ack is
101	the delta-time from the first send of the packet to the
102	ack.  A number in parens following a send is the
103	delta-time from the first send of the packet to the
104	current send (on duplicate packets only).  Duplicate
105	sends or acks have a number in square brackets showing
106	the number of duplicates so far.
107
108	Here is a short sample from near the start of an ftp:
109		3.00    0.20   send . 512
110		3.20    0.20    ack . 1024  (0.20)
111		3.20    0.00   send P 1024
112		3.40    0.20    ack . 1536  (0.20)
113		3.80    0.40 * send . 0  (3.80) [2]
114		3.82    0.02 *  ack . 1536  (0.62) [2]
115	Three seconds into the conversation, bytes 512 through 1023
116	were sent.  200ms later they were acked.  Shortly thereafter
117	bytes 1024-1535 were sent and again acked after 200ms.
118	Then, for no apparent reason, 0-511 is retransmitted, 3.8
119	seconds after its initial send (the round trip time for this
120	ftp was 1sec, +-500ms).  Since the receiver is expecting
121	1536, 1536 is re-acked when 0 arrives.
122
123packetdat.awk
124	Computes chunk summary data for an ftp (or similar
125	unidirectional tcp transfer). [A "chunk" refers to
126	a chunk of the sequence space -- essentially the packet
127	sequence number divided by the max segment size.]
128
129	A summary line is printed showing the number of chunks,
130	the number of packets it took to send that many chunks
131	(if there are no lost or duplicated packets, the number
132	of packets should equal the number of chunks) and the
133	number of acks.
134
135	Following the summary line is one line of information
136	per chunk.  The line contains eight fields:
137	   1 - the chunk number
138	   2 - the start sequence number for this chunk
139	   3 - time of first send
140	   4 - time of last send
141	   5 - time of first ack
142	   6 - time of last ack
143	   7 - number of times chunk was sent
144	   8 - number of times chunk was acked
145	(all times are in decimal seconds, relative to the start
146	of the conversation.)
147
148	As an example, here is the first part of the output for
149	an ftp trace:
150
151	# 134 chunks.  536 packets sent.  508 acks.
152	1       1       0.00    5.80    0.20    0.20    4       1
153	2       513     0.28    6.20    0.40    0.40    4       1
154	3       1025    1.16    6.32    1.20    1.20    4       1
155	4       1561    1.86    15.00   2.00    2.00    6       1
156	5       2049    2.16    15.44   2.20    2.20    5       1
157	6       2585    2.64    16.44   2.80    2.80    5       1
158	7       3073    3.00    16.66   3.20    3.20    4       1
159	8       3609    3.20    17.24   3.40    5.82    4       11
160	9       4097    6.02    6.58    6.20    6.80    2       5
161
162	This says that 134 chunks were transferred (about 70K
163	since the average packet size was 512 bytes).  It took
164	536 packets to transfer the data (i.e., on the average
165	each chunk was transmitted four times).  Looking at,
166	say, chunk 4, we see it represents the 512 bytes of
167	sequence space from 1561 to 2048.  It was first sent
168	1.86 seconds into the conversation.  It was last
169	sent 15 seconds into the conversation and was sent
170	a total of 6 times (i.e., it was retransmitted every
171	2 seconds on the average).  It was acked once, 140ms
172	after it first arrived.
173
174stime.awk
175atime.awk
176	Output one line per send or ack, respectively, in the form
177		<time> <seq. number>
178	where <time> is the time in seconds since the start of the
179	transfer and <seq. number> is the sequence number being sent
180	or acked.  I typically plot this data looking for suspicious
181	patterns.
182
183
184The problem I was looking at was the bulk-data-transfer
185throughput of medium delay network paths (1-6 sec.  round trip
186time) under typical DARPA Internet conditions.  The trace of the
187ftp transfer of a large file was used as the raw data source.
188The method was:
189
190  - On a local host (but not the Sun running tcpdump), connect to
191    the remote ftp.
192
193  - On the monitor Sun, start the trace going.  E.g.,
194      tcpdump host local-host and remote-host and port ftp-data >tracefile
195
196  - On local, do either a get or put of a large file (~500KB),
197    preferably to the null device (to minimize effects like
198    closing the receive window while waiting for a disk write).
199
200  - When transfer is finished, stop tcpdump.  Use awk to make up
201    two files of summary data (maxsize is the maximum packet size,
202    tracedata is the file of tcpdump tracedata):
203      awk -f send-ack.awk packetsize=avgsize tracedata >sa
204      awk -f packetdat.awk packetsize=avgsize tracedata >pd
205
206  - While the summary data files are printing, take a look at
207    how the transfer behaved:
208      awk -f stime.awk tracedata | xgraph
209    (90% of what you learn seems to happen in this step).
210
211  - Do all of the above steps several times, both directions,
212    at different times of day, with different protocol
213    implementations on the other end.
214
215  - Using one of the Unix data analysis packages (in my case,
216    S and Gary Perlman's Unix|Stat), spend a few months staring
217    at the data.
218
219  - Change something in the local protocol implementation and
220    redo the steps above.
221
222  - Once a week, tell your funding agent that you're discovering
223    wonderful things and you'll write up that research report
224    "real soon now".
225```
226