• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

lbl/21-Oct-2017-302205

missing/07-Feb-2025-1,9021,160

tests/07-Feb-2025-92,96291,696

win32/20-Jan-2014-

CHANGESD07-Feb-202577.8 KiB1,8621,605

CMakeLists.txtD02-Sep-202452.2 KiB1,5671,459

CONTRIBUTING.mdD02-Sep-202415.7 KiB395309

CREDITSD07-Feb-202523.4 KiB374369

INSTALL.mdD02-Sep-20246.1 KiB144130

LICENSED07-Feb-2025868 2016

Makefile-devel-addsD16-Mar-2020614 2318

Makefile.inD07-Feb-202514.2 KiB582481

README.mdD07-Feb-20259 KiB226189

VERSIOND07-Feb-20257 21

aclocal.m4D07-Feb-202553.9 KiB1,4981,425

addrtoname.cD07-Feb-202534.3 KiB1,3321,029

addrtoname.hD07-Feb-20254.6 KiB12781

addrtostr.cD07-Feb-20255.7 KiB209126

addrtostr.hD24-Jan-20172 KiB432

af.cD07-Feb-20252 KiB6240

af.hD07-Feb-20251.8 KiB5627

ah.hD07-Feb-20253 KiB6810

appletalk.hD07-Feb-20254.2 KiB167103

ascii_strcasecmp.cD07-Feb-20253.6 KiB11170

ascii_strcasecmp.hD24-Jan-20171.5 KiB346

atime.awkD05-Dec-2010528 199

atm.hD23-Jun-20151.1 KiB326

autogen.shD02-Sep-2024831 2619

bpf_dump.cD07-Feb-20252 KiB6538

chdlc.hD07-Feb-20251.3 KiB275

checksum.cD07-Feb-20254.7 KiB16093

cmake_uninstall.cmake.inD17-Aug-20231 KiB2220

cmakeconfig.h.inD02-Sep-20248.8 KiB291194

compiler-tests.hD17-Aug-20237.2 KiB19755

config.guessD07-Feb-202549.5 KiB1,8131,586

config.h.inD07-Feb-20258.1 KiB290194

config.subD07-Feb-202536 KiB1,9721,765

configureD07-Feb-2025314.9 KiB10,9948,044

configure.acD07-Feb-202533.8 KiB1,2881,207

cpack.cD07-Feb-20255.3 KiB221123

cpack.hD07-Feb-20252.4 KiB5521

diag-control.hD02-Sep-20248.4 KiB236104

ethertype.hD07-Feb-20256 KiB220173

extract.hD07-Feb-202530.3 KiB911617

fptype.cD17-Aug-20232 KiB5113

fptype.hD17-Aug-20231.8 KiB351

ftmacros.hD02-Sep-20244.8 KiB12822

funcattrs.hD07-Feb-20256 KiB16256

getservent.hD17-Aug-20232.6 KiB6821

gmpls.cD07-Feb-20255.9 KiB196147

gmpls.hD21-Oct-20171.4 KiB3417

in_cksum.cD07-Feb-20256.5 KiB20492

install-shD07-Feb-202515 KiB542352

instrument-functions.cD02-Sep-20246.5 KiB251175

interface.hD07-Feb-20252.1 KiB7232

ip.hD07-Feb-20255.5 KiB16082

ip6.hD07-Feb-20257.6 KiB209101

ipproto.cD07-Feb-202516.6 KiB368304

ipproto.hD07-Feb-20254.5 KiB14298

l2vpn.cD07-Feb-20253.4 KiB9965

l2vpn.hD21-Oct-2017781 182

llc.hD23-Jun-20153.7 KiB12384

machdep.cD07-Feb-20252.1 KiB6225

machdep.hD21-Oct-20171.2 KiB264

makemibD07-Feb-20256.4 KiB248186

mib.hD07-Feb-202526.3 KiB1,4611,450

mkdepD07-Feb-20252.8 KiB11960

mpls.hD07-Feb-20251.9 KiB4212

nameser.hD07-Feb-202512.6 KiB328202

netdissect-alloc.cD02-Sep-20241.8 KiB6334

netdissect-alloc.hD17-Aug-20231 KiB3311

netdissect-ctype.hD17-Aug-20232.5 KiB5710

netdissect-stdinc.hD07-Feb-202510.1 KiB383151

netdissect.cD07-Feb-20258.3 KiB319157

netdissect.hD07-Feb-202537.1 KiB809485

nfs.hD07-Feb-202512.9 KiB414292

nfsfh.hD07-Feb-20252.6 KiB6713

nlpid.cD07-Feb-20251.3 KiB4526

nlpid.hD21-Oct-20171.3 KiB3316

ntp.cD02-Sep-20242.3 KiB7335

ntp.hD18-Aug-20232.2 KiB5511

openflow.hD07-Feb-20253.2 KiB9146

ospf.hD07-Feb-202510.3 KiB326221

oui.cD07-Feb-20255.2 KiB135103

oui.hD07-Feb-20255.3 KiB12091

packetdat.awkD04-Dec-20101.4 KiB6247

parsenfsfh.cD07-Feb-202513.1 KiB477284

pcap-missing.hD21-Oct-20171.8 KiB5016

pf.hD05-Dec-20102.6 KiB7936

pf_print_state.cD05-Dec-20108.4 KiB330268

pflog.hD02-Sep-20244 KiB15199

ppp.hD07-Feb-20253 KiB6945

print-802_11.cD07-Feb-202597.5 KiB3,5332,533

print-802_15_4.cD07-Feb-202564.5 KiB2,5602,122

print-ah.cD07-Feb-20252.4 KiB7936

print-ahcp.cD07-Feb-202510 KiB388301

print-aodv.cD07-Feb-202515.9 KiB541438

print-aoe.cD07-Feb-202510.2 KiB417306

print-ap1394.cD07-Feb-20254.1 KiB12671

print-arcnet.cD07-Feb-20259.1 KiB369234

print-arista.cD02-Sep-20244.5 KiB16492

print-arp.cD07-Feb-202514.7 KiB477347

print-ascii.cD07-Feb-20256.1 KiB232171

print-atalk.cD07-Feb-202516.9 KiB705545

print-atm.cD07-Feb-202516.6 KiB534340

print-babel.cD07-Feb-202527.7 KiB867708

print-bcm-li.cD02-Sep-20243.6 KiB12984

print-beep.cD07-Feb-20251.8 KiB7340

print-bfd.cD07-Feb-202516.6 KiB428267

print-bgp.cD07-Feb-2025106.6 KiB3,1722,545

print-bootp.cD07-Feb-202529.8 KiB1,115875

print-brcmtag.cD02-Sep-20244.2 KiB149100

print-bt.cD07-Feb-20252.4 KiB7534

print-calm-fast.cD07-Feb-20251.9 KiB7535

print-carp.cD07-Feb-20252.5 KiB8339

print-cdp.cD07-Feb-202512.4 KiB474339

print-cfm.cD07-Feb-202523.9 KiB770559

print-chdlc.cD07-Feb-20255.8 KiB202143

print-cip.cD07-Feb-20252.3 KiB9140

print-cnfp.cD07-Feb-202513.4 KiB485355

print-dccp.cD07-Feb-202517.6 KiB709557

print-decnet.cD07-Feb-202535.3 KiB1,1861,025

print-dhcp6.cD07-Feb-202524.5 KiB913781

print-domain.cD07-Feb-202528.1 KiB1,177996

print-dsa.cD02-Sep-20246.8 KiB218140

print-dtp.cD07-Feb-20253.2 KiB12683

print-dvmrp.cD07-Feb-20258 KiB336264

print-eap.cD07-Feb-202510.6 KiB346263

print-egp.cD07-Feb-20258.9 KiB396335

print-eigrp.cD07-Feb-202519.8 KiB536432

print-enc.cD07-Feb-20255.3 KiB16262

print-esp.cD07-Feb-202523.6 KiB937580

print-ether.cD07-Feb-202517.8 KiB669432

print-fddi.cD07-Feb-202510.5 KiB353208

print-forces.cD07-Feb-202541.6 KiB1,7191,377

print-fr.cD07-Feb-202532.6 KiB1,167741

print-frag6.cD07-Feb-20252.3 KiB6835

print-ftp.cD07-Feb-20251,023 3313

print-geneve.cD07-Feb-20256.3 KiB248164

print-geonet.cD07-Feb-20256.6 KiB271197

print-gre.cD07-Feb-20258.8 KiB418320

print-hncp.cD07-Feb-202526.1 KiB870720

print-hsrp.cD07-Feb-20254.6 KiB13768

print-http.cD07-Feb-20251.6 KiB7854

print-icmp.cD07-Feb-202524.9 KiB802590

print-icmp6.cD07-Feb-202562.3 KiB2,0891,745

print-igmp.cD07-Feb-20258.6 KiB306233

print-igrp.cD07-Feb-20254.5 KiB153103

print-ip-demux.cD02-Sep-20245.2 KiB230147

print-ip.cD07-Feb-202512.3 KiB534391

print-ip6.cD07-Feb-202513.3 KiB511298

print-ip6opts.cD07-Feb-20257.1 KiB269204

print-ipcomp.cD07-Feb-20252.3 KiB6823

print-ipfc.cD07-Feb-20254.5 KiB14765

print-ipnet.cD07-Feb-20252.6 KiB11583

print-ipoib.cD02-Sep-20243.7 KiB12467

print-ipx.cD07-Feb-20256.8 KiB271201

print-isakmp.cD07-Feb-202580.3 KiB3,1402,457

print-isoclns.cD07-Feb-2025117.8 KiB3,5592,936

print-juniper.cD07-Feb-202553.1 KiB1,6261,358

print-krb.cD07-Feb-20256.1 KiB260179

print-l2tp.cD07-Feb-202523.1 KiB863725

print-lane.cD07-Feb-20252.7 KiB11464

print-ldp.cD07-Feb-202523.8 KiB708516

print-lisp.cD07-Feb-202515 KiB457289

print-llc.cD07-Feb-202516.6 KiB614395

print-lldp.cD07-Feb-202557.6 KiB1,6861,390

print-lmp.cD07-Feb-202536.8 KiB1,141932

print-loopback.cD07-Feb-20253.6 KiB14082

print-lspping.cD07-Feb-202550.7 KiB1,081692

print-lwapp.cD07-Feb-202513.5 KiB371260

print-lwres.cD07-Feb-202512.8 KiB561390

print-m3ua.cD07-Feb-202510.9 KiB341238

print-macsec.cD02-Sep-20247.5 KiB254144

print-mobile.cD07-Feb-20253.3 KiB10853

print-mobility.cD07-Feb-20259.2 KiB337250

print-mpcp.cD07-Feb-20257 KiB239183

print-mpls.cD07-Feb-20255 KiB17894

print-mptcp.cD07-Feb-202515.1 KiB489372

print-msdp.cD07-Feb-20252.6 KiB10173

print-msnlb.cD07-Feb-20252.5 KiB6728

print-nflog.cD07-Feb-20257.4 KiB245149

print-nfs.cD07-Feb-202545.4 KiB1,8711,500

print-nsh.cD07-Feb-20258.8 KiB267171

print-ntp.cD07-Feb-202516.3 KiB537331

print-null.cD07-Feb-20254 KiB14267

print-olsr.cD07-Feb-202523.3 KiB712496

print-openflow-1.0.cD07-Feb-202568.1 KiB2,2851,621

print-openflow-1.3.cD02-Sep-202436.7 KiB1,207913

print-openflow.cD07-Feb-20257.4 KiB232131

print-ospf.cD07-Feb-202538.3 KiB1,188977

print-ospf6.cD07-Feb-202529 KiB1,020785

print-otv.cD07-Feb-20252.3 KiB8035

print-pflog.cD07-Feb-20255.6 KiB210151

print-pfsync.cD07-Feb-20256.4 KiB233177

print-pgm.cD07-Feb-202521.1 KiB834701

print-pim.cD07-Feb-202533.1 KiB1,236957

print-pktap.cD07-Feb-20255.4 KiB181110

print-ppi.cD07-Feb-20253.1 KiB13591

print-ppp.cD07-Feb-202546.7 KiB1,9031,512

print-pppoe.cD07-Feb-20255.8 KiB210147

print-pptp.cD07-Feb-202523.5 KiB875709

print-ptp.cD02-Sep-202423.6 KiB646366

print-radius.cD07-Feb-202555.9 KiB1,4711,103

print-raw.cD07-Feb-20251.6 KiB4916

print-realtek.cD02-Sep-20248.8 KiB24799

print-resp.cD07-Feb-202516.3 KiB538302

print-rip.cD07-Feb-202512.8 KiB423281

print-ripng.cD07-Feb-20255.9 KiB189120

print-rpki-rtr.cD07-Feb-202510.5 KiB391242

print-rsvp.cD07-Feb-202581.2 KiB2,0731,716

print-rt6.cD07-Feb-20253.3 KiB11978

print-rtsp.cD07-Feb-20251.2 KiB4827

print-rx.cD07-Feb-202562.7 KiB2,8462,107

print-sctp.cD07-Feb-202521.7 KiB778546

print-sflow.cD07-Feb-202531.6 KiB966772

print-sip.cD07-Feb-20251.4 KiB5833

print-sl.cD07-Feb-20256.3 KiB263181

print-sll.cD07-Feb-202514.1 KiB539280

print-slow.cD07-Feb-202524.3 KiB741572

print-smb.cD07-Feb-202542.5 KiB1,4841,215

print-smtp.cD07-Feb-20251 KiB3313

print-snmp.cD07-Feb-202542.4 KiB1,9381,455

print-someip.cD02-Sep-20244.3 KiB14089

print-ssh.cD02-Sep-20242.2 KiB9853

print-stp.cD07-Feb-202515.9 KiB474317

print-sunatm.cD07-Feb-20253.3 KiB10648

print-sunrpc.cD07-Feb-20257.5 KiB245117

print-symantec.cD07-Feb-20253.9 KiB11466

print-syslog.cD07-Feb-20254.3 KiB15392

print-tcp.cD07-Feb-202538.1 KiB980760

print-telnet.cD07-Feb-202514.4 KiB537399

print-tftp.cD07-Feb-20255.1 KiB202132

print-timed.cD07-Feb-20255.2 KiB158115

print-tipc.cD07-Feb-202511.2 KiB358296

print-token.cD07-Feb-20257.8 KiB254148

print-udld.cD07-Feb-20255.9 KiB211129

print-udp.cD07-Feb-202520.2 KiB749636

print-unsupported.cD02-Sep-20241 KiB3311

print-usb.cD07-Feb-20257.3 KiB284184

print-vjc.cD07-Feb-20254.6 KiB12646

print-vqp.cD07-Feb-20256.8 KiB218151

print-vrrp.cD07-Feb-20256.6 KiB19499

print-vsock.cD02-Sep-20246.6 KiB261192

print-vtp.cD07-Feb-202513.4 KiB396230

print-vxlan-gpe.cD07-Feb-20253.7 KiB12868

print-vxlan.cD07-Feb-20252.5 KiB8738

print-wb.cD07-Feb-202510.6 KiB450329

print-whois.cD02-Sep-2024911 309

print-zep.cD02-Sep-20244.9 KiB18098

print-zephyr.cD07-Feb-20258.1 KiB352271

print-zeromq.cD07-Feb-20257.4 KiB223112

print.cD07-Feb-202514.4 KiB596432

print.hD07-Feb-20251.7 KiB4410

rpc_auth.hD07-Feb-20252.4 KiB7214

rpc_msg.hD07-Feb-20253.2 KiB12856

send-ack.awkD04-Dec-20101.6 KiB6957

signature.cD07-Feb-20255.6 KiB212108

signature.hD21-Oct-20171.1 KiB308

slcompress.hD07-Feb-20253.6 KiB8614

smb.hD07-Feb-20255.5 KiB12598

smbutil.cD07-Feb-202564.8 KiB1,9731,749

status-exit-codes.hD02-Sep-20241.1 KiB3211

stime.awkD07-Feb-2025566 2010

strtoaddr.cD07-Feb-20255.4 KiB239146

strtoaddr.hD24-Jan-2017992 242

tcp.hD07-Feb-20254.8 KiB156113

tcpdump.1.inD07-Feb-202564.4 KiB2,0742,043

tcpdump.cD07-Feb-202587.2 KiB3,3422,306

timeval-operations.hD07-Feb-20253.1 KiB7437

udp.hD07-Feb-20256.5 KiB247210

util-print.cD07-Feb-202525.4 KiB992575

varattrs.hD17-Aug-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