Name Date Size #Lines LOC

..--

.github/H25-Apr-2025-128

cmake/Modules/H25-Apr-2025-513474

doc/H25-Apr-2025-284201

lbl/H25-Apr-2025-302205

missing/H25-Apr-2025-1,9171,175

tests/H25-Apr-2025-92,49091,251

.appveyor.ymlH A D25-Apr-20252.3 KiB7161

.ci-coverity-scan-build.shH A D25-Apr-20253.8 KiB9267

.cirrus.ymlH A D25-Apr-20253.3 KiB9283

.gitattributesH A D25-Apr-2025263 107

.gitignoreH A D25-Apr-2025496 4140

.mailmapH A D25-Apr-20251.8 KiB3231

Android.bpH A D25-Apr-20251.6 KiB8475

CHANGESH A D25-Apr-202570.9 KiB1,7371,481

CMakeLists.txtH A D25-Apr-202545.2 KiB1,3721,277

CONTRIBUTING.mdH A D25-Apr-20257.4 KiB192150

CREDITSH A D25-Apr-202522.4 KiB360355

CleanSpec.mkH A D25-Apr-20252.2 KiB500

INSTALL.mdH A D25-Apr-20255.5 KiB127118

LICENSEH A D25-Apr-2025868 2016

METADATAH A D25-Apr-2025645 2725

MODULE_LICENSE_BSDHD25-Apr-20250

Makefile-devel-addsH A D25-Apr-2025614 2318

Makefile.inH A D25-Apr-202512.1 KiB540460

OWNERSH A D25-Apr-202546 21

README.mdH A D25-Apr-20259 KiB226189

VERSIONH A D25-Apr-20257 21

aclocal.m4H A D25-Apr-202542.7 KiB1,2451,194

addrtoname.cH A D25-Apr-202534.2 KiB1,3311,028

addrtoname.hH A D25-Apr-20254.6 KiB12781

addrtostr.cH A D25-Apr-20255.6 KiB214132

addrtostr.hH A D25-Apr-20252 KiB432

af.cH A D25-Apr-20252 KiB5938

af.hH A D25-Apr-20251.8 KiB5627

ah.hH A D25-Apr-20253 KiB6810

appletalk.hH A D25-Apr-20254.2 KiB167103

ascii_strcasecmp.cH A D25-Apr-20253.5 KiB10666

ascii_strcasecmp.hH A D25-Apr-20251.5 KiB346

atime.awkH A D25-Apr-2025528 199

atm.hH A D25-Apr-20251.1 KiB326

bpf_dump.cH A D25-Apr-20251.9 KiB6336

build.shH A D25-Apr-20254.2 KiB12486

build_common.shH A D25-Apr-20258.4 KiB288192

build_matrix.shH A D25-Apr-20254 KiB10976

chdlc.hH A D25-Apr-20251.3 KiB275

checksum.cH A D25-Apr-20255.2 KiB190118

cmake_uninstall.cmake.inH A D25-Apr-20251 KiB2220

cmakeconfig.h.inH A D25-Apr-20258.8 KiB291194

compiler-tests.hH A D25-Apr-20257.2 KiB19755

config.guessH A D25-Apr-202548.8 KiB1,7751,548

config.hH A D25-Apr-20258.6 KiB29553

config.h.inH A D25-Apr-20258 KiB291194

config.subH A D25-Apr-202535 KiB1,9081,720

configureH A D25-Apr-2025274 KiB9,6827,198

configure.acH A D25-Apr-202526.2 KiB1,028963

cpack.cH A D25-Apr-20255.3 KiB221121

cpack.hH A D25-Apr-20252.5 KiB5821

diag-control.hH A D25-Apr-20256.9 KiB18772

ethertype.hH A D25-Apr-20256 KiB220173

extract.hH A D25-Apr-202530.3 KiB911617

fptype.cH A D25-Apr-20252 KiB5113

fptype.hH A D25-Apr-20251.8 KiB351

ftmacros.hH A D25-Apr-20254.8 KiB12822

funcattrs.hH A D25-Apr-20256 KiB16155

getservent.hH A D25-Apr-20252.6 KiB6821

gmpls.cH A D25-Apr-20255.8 KiB193145

gmpls.hH A D25-Apr-20251.4 KiB3417

in_cksum.cH A D25-Apr-20256.4 KiB20190

install-shH A D25-Apr-20255.4 KiB251152

interface.hH A D25-Apr-20252 KiB7032

ip.hH A D25-Apr-20255.8 KiB16583

ip6.hH A D25-Apr-20257.9 KiB213101

ipproto.cH A D25-Apr-202516.5 KiB363300

ipproto.hH A D25-Apr-20254.7 KiB14698

l2vpn.cH A D25-Apr-20253.4 KiB9663

l2vpn.hH A D25-Apr-2025781 182

llc.hH A D25-Apr-20253.7 KiB12384

machdep.cH A D25-Apr-20252 KiB5923

machdep.hH A D25-Apr-20251.2 KiB264

makemibH A D25-Apr-20256.4 KiB248186

mib.hH A D25-Apr-202526.3 KiB1,4611,450

mkdepH A D25-Apr-20252.7 KiB11760

mpls.hH A D25-Apr-20251.9 KiB4212

nameser.hH A D25-Apr-202512.8 KiB332202

netdissect-alloc.cH A D25-Apr-20251.8 KiB6536

netdissect-alloc.hH A D25-Apr-20251 KiB3311

netdissect-ctype.hH A D25-Apr-20252.5 KiB5710

netdissect-stdinc.hH A D25-Apr-202510.1 KiB383151

netdissect.cH A D25-Apr-20257.9 KiB302147

netdissect.hH A D25-Apr-202536.4 KiB795484

nfs.hH A D25-Apr-202513.1 KiB418292

nfsfh.hH A D25-Apr-20252.6 KiB6713

nlpid.cH A D25-Apr-20251.3 KiB4224

nlpid.hH A D25-Apr-20251.3 KiB3316

ntp.cH A D25-Apr-20252.4 KiB7537

ntp.hH A D25-Apr-20252.2 KiB5511

openflow.hH A D25-Apr-20253.2 KiB9146

ospf.hH A D25-Apr-202510.3 KiB326221

oui.cH A D25-Apr-20255.1 KiB132101

oui.hH A D25-Apr-20255.3 KiB12091

packetdat.awkH A D25-Apr-20251.4 KiB6247

parsenfsfh.cH A D25-Apr-202512.3 KiB463283

pcap-missing.hH A D25-Apr-20251.8 KiB5016

pflog.hH A D25-Apr-20253.9 KiB15298

ppp.hH A D25-Apr-20253 KiB6945

print-802_11.cH A D25-Apr-202597.5 KiB3,5342,535

print-802_15_4.cH A D25-Apr-202564.4 KiB2,5572,120

print-ah.cH A D25-Apr-20252.3 KiB7634

print-ahcp.cH A D25-Apr-20259.9 KiB385299

print-aodv.cH A D25-Apr-202515.8 KiB538436

print-aoe.cH A D25-Apr-202510.1 KiB414304

print-ap1394.cH A D25-Apr-20254 KiB12469

print-arcnet.cH A D25-Apr-20259 KiB367232

print-arista.cH A D25-Apr-20254.6 KiB16694

print-arp.cH A D25-Apr-202514.6 KiB474345

print-ascii.cH A D25-Apr-20256.5 KiB236169

print-atalk.cH A D25-Apr-202516.9 KiB702543

print-atm.cH A D25-Apr-202516.5 KiB531338

print-babel.cH A D25-Apr-202527.7 KiB864706

print-bcm-li.cH A D25-Apr-20253.6 KiB13186

print-beep.cH A D25-Apr-20251.7 KiB7038

print-bfd.cH A D25-Apr-202516.6 KiB427267

print-bgp.cH A D25-Apr-2025106.3 KiB3,1632,537

print-bootp.cH A D25-Apr-202528.7 KiB1,075848

print-brcmtag.cH A D25-Apr-20254.3 KiB152103

print-bt.cH A D25-Apr-20252.3 KiB7232

print-calm-fast.cH A D25-Apr-20251.8 KiB7233

print-carp.cH A D25-Apr-20252.4 KiB7936

print-cdp.cH A D25-Apr-202512.3 KiB473339

print-cfm.cH A D25-Apr-202523.8 KiB767557

print-chdlc.cH A D25-Apr-20255.7 KiB199141

print-cip.cH A D25-Apr-20252.3 KiB8838

print-cnfp.cH A D25-Apr-202513.6 KiB487353

print-dccp.cH A D25-Apr-202517.5 KiB706555

print-decnet.cH A D25-Apr-202535.2 KiB1,1831,023

print-dhcp6.cH A D25-Apr-202523 KiB854727

print-domain.cH A D25-Apr-202527.9 KiB1,172992

print-dsa.cH A D25-Apr-20256.9 KiB220142

print-dtp.cH A D25-Apr-20253.1 KiB12381

print-dvmrp.cH A D25-Apr-20258 KiB333262

print-eap.cH A D25-Apr-202510.5 KiB342260

print-egp.cH A D25-Apr-20258.8 KiB393333

print-eigrp.cH A D25-Apr-202519.7 KiB533430

print-enc.cH A D25-Apr-20255.2 KiB15960

print-esp.cH A D25-Apr-202523.3 KiB929576

print-ether.cH A D25-Apr-202517.7 KiB666430

print-fddi.cH A D25-Apr-202510.4 KiB351207

print-forces.cH A D25-Apr-202541.5 KiB1,7161,375

print-fr.cH A D25-Apr-202532.3 KiB1,158739

print-frag6.cH A D25-Apr-20252.2 KiB6735

print-ftp.cH A D25-Apr-2025933 3011

print-geneve.cH A D25-Apr-20256.2 KiB245162

print-geonet.cH A D25-Apr-20256.5 KiB268195

print-gre.cH A D25-Apr-20258.7 KiB415318

print-hncp.cH A D25-Apr-202526.1 KiB867718

print-hsrp.cH A D25-Apr-20254.5 KiB13466

print-http.cH A D25-Apr-20251.5 KiB7552

print-icmp.cH A D25-Apr-202524.8 KiB798587

print-icmp6.cH A D25-Apr-202562.1 KiB2,0831,740

print-igmp.cH A D25-Apr-20258.5 KiB302230

print-igrp.cH A D25-Apr-20254.5 KiB150101

print-ip-demux.cH A D25-Apr-20255.2 KiB232149

print-ip.cH A D25-Apr-202512.4 KiB539400

print-ip6.cH A D25-Apr-202513.1 KiB503291

print-ip6opts.cH A D25-Apr-20257 KiB266202

print-ipcomp.cH A D25-Apr-20252.3 KiB6521

print-ipfc.cH A D25-Apr-20254.4 KiB14463

print-ipnet.cH A D25-Apr-20252.5 KiB11181

print-ipoib.cH A D25-Apr-20253.8 KiB12669

print-ipx.cH A D25-Apr-20256.7 KiB268199

print-isakmp.cH A D25-Apr-202580.4 KiB3,1422,456

print-isoclns.cH A D25-Apr-2025117.7 KiB3,5622,940

print-juniper.cH A D25-Apr-202553 KiB1,6271,359

print-krb.cH A D25-Apr-20256.1 KiB260180

print-l2tp.cH A D25-Apr-202523 KiB860723

print-lane.cH A D25-Apr-20252.6 KiB11162

print-ldp.cH A D25-Apr-202523.5 KiB701510

print-lisp.cH A D25-Apr-202515 KiB454287

print-llc.cH A D25-Apr-202516.5 KiB611393

print-lldp.cH A D25-Apr-202557.5 KiB1,6831,388

print-lmp.cH A D25-Apr-202536.7 KiB1,138930

print-loopback.cH A D25-Apr-20253.5 KiB13680

print-lspping.cH A D25-Apr-202550.6 KiB1,078690

print-lwapp.cH A D25-Apr-202513.4 KiB368258

print-lwres.cH A D25-Apr-202512.7 KiB556386

print-m3ua.cH A D25-Apr-202510.8 KiB338235

print-macsec.cH A D25-Apr-20257.6 KiB257147

print-mobile.cH A D25-Apr-20253.3 KiB10551

print-mobility.cH A D25-Apr-20259.1 KiB335249

print-mpcp.cH A D25-Apr-20256.9 KiB236181

print-mpls.cH A D25-Apr-20254.9 KiB17592

print-mptcp.cH A D25-Apr-202515.1 KiB486370

print-msdp.cH A D25-Apr-20252.6 KiB9871

print-msnlb.cH A D25-Apr-20252.4 KiB6325

print-nflog.cH A D25-Apr-20256.8 KiB232145

print-nfs.cH A D25-Apr-202544.9 KiB1,8511,481

print-nsh.cH A D25-Apr-20258.7 KiB265170

print-ntp.cH A D25-Apr-202516.2 KiB537330

print-null.cH A D25-Apr-20253.9 KiB13965

print-olsr.cH A D25-Apr-202523.3 KiB715500

print-openflow-1.0.cH A D25-Apr-202567.7 KiB2,2991,636

print-openflow-1.3.cH A D25-Apr-202536.6 KiB1,210916

print-openflow.cH A D25-Apr-20257.3 KiB229129

print-ospf.cH A D25-Apr-202538 KiB1,179971

print-ospf6.cH A D25-Apr-202528.6 KiB1,003771

print-otv.cH A D25-Apr-20252.2 KiB7733

print-pflog.cH A D25-Apr-20255.5 KiB207149

print-pgm.cH A D25-Apr-202521 KiB830698

print-pim.cH A D25-Apr-202533 KiB1,235957

print-pktap.cH A D25-Apr-20255.3 KiB178108

print-ppi.cH A D25-Apr-20253 KiB13289

print-ppp.cH A D25-Apr-202546.5 KiB1,8981,510

print-pppoe.cH A D25-Apr-20255.7 KiB207145

print-pptp.cH A D25-Apr-202523.4 KiB872707

print-ptp.cH A D25-Apr-202523 KiB635362

print-radius.cH A D25-Apr-202556 KiB1,5051,138

print-raw.cH A D25-Apr-20251.6 KiB4614

print-realtek.cH A D25-Apr-20258.8 KiB249101

print-resp.cH A D25-Apr-202516.2 KiB535300

print-rip.cH A D25-Apr-202512.8 KiB423270

print-ripng.cH A D25-Apr-20255.8 KiB185117

print-rpki-rtr.cH A D25-Apr-202510.5 KiB392242

print-rsvp.cH A D25-Apr-202581.2 KiB2,0701,714

print-rt6.cH A D25-Apr-20253.2 KiB11676

print-rtsp.cH A D25-Apr-20251.1 KiB4525

print-rx.cH A D25-Apr-202562.6 KiB2,8432,105

print-sctp.cH A D25-Apr-202521.6 KiB776545

print-sflow.cH A D25-Apr-202531.5 KiB963770

print-sip.cH A D25-Apr-20251.3 KiB5531

print-sl.cH A D25-Apr-20256.2 KiB260179

print-sll.cH A D25-Apr-202514 KiB536278

print-slow.cH A D25-Apr-202524.2 KiB738570

print-smb.cH A D25-Apr-202542.3 KiB1,4771,209

print-smtp.cH A D25-Apr-2025943 3011

print-snmp.cH A D25-Apr-202542.3 KiB1,9331,451

print-someip.cH A D25-Apr-20254.3 KiB14392

print-ssh.cH A D25-Apr-20252.2 KiB10055

print-stp.cH A D25-Apr-202515.9 KiB472316

print-sunatm.cH A D25-Apr-20253.2 KiB10346

print-sunrpc.cH A D25-Apr-20257.4 KiB242115

print-symantec.cH A D25-Apr-20253.8 KiB11164

print-syslog.cH A D25-Apr-20254.2 KiB15191

print-tcp.cH A D25-Apr-202537.9 KiB973753

print-telnet.cH A D25-Apr-202514.7 KiB541397

print-tftp.cH A D25-Apr-20255 KiB199130

print-timed.cH A D25-Apr-20255.1 KiB154112

print-tipc.cH A D25-Apr-202511.1 KiB355294

print-token.cH A D25-Apr-20257.8 KiB251146

print-udld.cH A D25-Apr-20255.8 KiB208127

print-udp.cH A D25-Apr-202520.1 KiB744632

print-unsupported.cH A D25-Apr-20251.1 KiB3513

print-usb.cH A D25-Apr-20257.2 KiB285186

print-vjc.cH A D25-Apr-20254.5 KiB12344

print-vqp.cH A D25-Apr-20256.7 KiB215149

print-vrrp.cH A D25-Apr-20256.5 KiB19197

print-vsock.cH A D25-Apr-20256.6 KiB263194

print-vtp.cH A D25-Apr-202513.3 KiB393228

print-vxlan-gpe.cH A D25-Apr-20253.6 KiB12566

print-vxlan.cH A D25-Apr-20252.4 KiB8436

print-wb.cH A D25-Apr-202510.5 KiB446326

print-whois.cH A D25-Apr-2025939 3211

print-zep.cH A D25-Apr-20254.9 KiB182100

print-zephyr.cH A D25-Apr-20258 KiB349269

print-zeromq.cH A D25-Apr-20257.3 KiB216107

print.cH A D25-Apr-202513.8 KiB574416

print.hH A D25-Apr-20251.7 KiB4410

rpc_auth.hH A D25-Apr-20252.4 KiB7214

rpc_msg.hH A D25-Apr-20253.2 KiB12856

send-ack.awkH A D25-Apr-20251.6 KiB6957

signature.cH A D25-Apr-20255.5 KiB209106

signature.hH A D25-Apr-20251.1 KiB308

slcompress.hH A D25-Apr-20253.6 KiB8614

smb.hH A D25-Apr-20255.5 KiB12598

smbutil.cH A D25-Apr-202564.6 KiB1,9691,746

status-exit-codes.hH A D25-Apr-20251.1 KiB3312

stime.awkH A D25-Apr-2025566 2010

strtoaddr.cH A D25-Apr-20255.3 KiB236144

strtoaddr.hH A D25-Apr-2025992 242

tcp.hH A D25-Apr-20255 KiB160113

tcpdump.1.inH A D25-Apr-202564.5 KiB2,0912,060

tcpdump.cH A D25-Apr-202584.4 KiB3,2532,260

timeval-operations.hH A D25-Apr-20253.1 KiB7437

udp.hH A D25-Apr-20256.8 KiB251210

update-test.shH A D25-Apr-2025722 2315

util-print.cH A D25-Apr-202525 KiB980572

varattrs.hH A D25-Apr-20252.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 [email protected].**
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 <[email protected]>
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