Rename README to README.md
1 file changed
tree: 9c66ce68a941ee96fa2b728dd98dd47de5dd38ad
  1. lbl/
  2. missing/
  3. tests/
  4. win32/
  5. .cvsignore
  6. .gitattributes
  7. .gitignore
  8. .travis.yml
  9. aclocal.m4
  10. addrtoname.c
  11. addrtoname.h
  12. af.c
  13. af.h
  14. ah.h
  15. aodv.h
  16. appletalk.h
  17. arcnet.h
  18. atime.awk
  19. atm.h
  20. atmuni31.h
  21. bgp.h
  22. bootp.h
  23. bpf_dump.c
  24. CHANGES
  25. chdlc.h
  26. checksum.c
  27. config.guess
  28. config.h.in
  29. config.sub
  30. configure
  31. configure.in
  32. cpack.c
  33. cpack.h
  34. CREDITS
  35. dccp.h
  36. decnet.h
  37. decode_prefix.h
  38. enc.h
  39. esp.h
  40. ether.h
  41. ethertype.h
  42. extract.h
  43. fddi.h
  44. gmpls.c
  45. gmpls.h
  46. gmt2local.c
  47. gmt2local.h
  48. icmp6.h
  49. ieee802_11.h
  50. ieee802_11_radio.h
  51. igrp.h
  52. in_cksum.c
  53. install-sh
  54. INSTALL.txt
  55. interface.h
  56. ip.h
  57. ip6.h
  58. ipfc.h
  59. ipnet.h
  60. ipproto.c
  61. ipproto.h
  62. ipsec_doi.h
  63. ipx.h
  64. isakmp.h
  65. l2tp.h
  66. l2vpn.c
  67. l2vpn.h
  68. lane.h
  69. LICENSE
  70. llc.h
  71. machdep.c
  72. machdep.h
  73. Makefile-devel-adds
  74. Makefile.in
  75. makemib
  76. mib.h
  77. mkdep
  78. mpls.h
  79. mptcp.h
  80. nameser.h
  81. netbios.h
  82. netdissect.h
  83. nflog.h
  84. nfs.h
  85. nfsfh.h
  86. nlpid.c
  87. nlpid.h
  88. ntp.h
  89. oakley.h
  90. openflow.h
  91. ospf.h
  92. ospf6.h
  93. oui.c
  94. oui.h
  95. packetdat.awk
  96. parsenfsfh.c
  97. pcap-missing.h
  98. pcap_dump_ftell.c
  99. PLATFORMS
  100. pmap_prot.h
  101. ppi.h
  102. ppp.h
  103. print-802_11.c
  104. print-802_15_4.c
  105. print-ah.c
  106. print-aodv.c
  107. print-ap1394.c
  108. print-arcnet.c
  109. print-arp.c
  110. print-ascii.c
  111. print-atalk.c
  112. print-atm.c
  113. print-babel.c
  114. print-beep.c
  115. print-bfd.c
  116. print-bgp.c
  117. print-bootp.c
  118. print-bt.c
  119. print-calm-fast.c
  120. print-carp.c
  121. print-cdp.c
  122. print-cfm.c
  123. print-chdlc.c
  124. print-cip.c
  125. print-cnfp.c
  126. print-dccp.c
  127. print-decnet.c
  128. print-dhcp6.c
  129. print-domain.c
  130. print-dtp.c
  131. print-dvmrp.c
  132. print-eap.c
  133. print-egp.c
  134. print-eigrp.c
  135. print-enc.c
  136. print-esp.c
  137. print-ether.c
  138. print-fddi.c
  139. print-forces.c
  140. print-fr.c
  141. print-frag6.c
  142. print-geonet.c
  143. print-gre.c
  144. print-hsrp.c
  145. print-icmp.c
  146. print-icmp6.c
  147. print-igmp.c
  148. print-igrp.c
  149. print-ip.c
  150. print-ip6.c
  151. print-ip6opts.c
  152. print-ipcomp.c
  153. print-ipfc.c
  154. print-ipnet.c
  155. print-ipx.c
  156. print-isakmp.c
  157. print-isoclns.c
  158. print-juniper.c
  159. print-krb.c
  160. print-l2tp.c
  161. print-lane.c
  162. print-ldp.c
  163. print-llc.c
  164. print-lldp.c
  165. print-lmp.c
  166. print-lspping.c
  167. print-lwapp.c
  168. print-lwres.c
  169. print-mobile.c
  170. print-mobility.c
  171. print-mpcp.c
  172. print-mpls.c
  173. print-mptcp.c
  174. print-msdp.c
  175. print-msnlb.c
  176. print-netbios.c
  177. print-nflog.c
  178. print-nfs.c
  179. print-ntp.c
  180. print-null.c
  181. print-olsr.c
  182. print-openflow-1.0.c
  183. print-openflow.c
  184. print-ospf.c
  185. print-ospf6.c
  186. print-otv.c
  187. print-pflog.c
  188. print-pgm.c
  189. print-pim.c
  190. print-ppi.c
  191. print-ppp.c
  192. print-pppoe.c
  193. print-pptp.c
  194. print-radius.c
  195. print-raw.c
  196. print-rip.c
  197. print-ripng.c
  198. print-rpki-rtr.c
  199. print-rrcp.c
  200. print-rsvp.c
  201. print-rt6.c
  202. print-rx.c
  203. print-sctp.c
  204. print-sflow.c
  205. print-sip.c
  206. print-sl.c
  207. print-sll.c
  208. print-slow.c
  209. print-smb.c
  210. print-snmp.c
  211. print-stp.c
  212. print-sunatm.c
  213. print-sunrpc.c
  214. print-symantec.c
  215. print-syslog.c
  216. print-tcp.c
  217. print-telnet.c
  218. print-tftp.c
  219. print-timed.c
  220. print-tipc.c
  221. print-token.c
  222. print-udld.c
  223. print-udp.c
  224. print-usb.c
  225. print-vjc.c
  226. print-vqp.c
  227. print-vrrp.c
  228. print-vtp.c
  229. print-vxlan.c
  230. print-wb.c
  231. print-zephyr.c
  232. print-zeromq.c
  233. README.md
  234. Readme.Win32
  235. route6d.h
  236. rpc_auth.h
  237. rpc_msg.h
  238. rx.h
  239. sctpConstants.h
  240. sctpHeader.h
  241. send-ack.awk
  242. setsignal.c
  243. setsignal.h
  244. signature.c
  245. signature.h
  246. slcompress.h
  247. slip.h
  248. sll.h
  249. smb.h
  250. smbutil.c
  251. stime.awk
  252. strcasecmp.c
  253. tcp.h
  254. tcpdump-stdinc.h
  255. tcpdump.1.in
  256. tcpdump.c
  257. telnet.h
  258. tftp.h
  259. timed.h
  260. TODO
  261. token.h
  262. udp.h
  263. util.c
  264. VERSION
  265. vfprintf.c
README.md

@(#) $Header: /tcpdump/master/tcpdump/README,v 1.68 2008-12-15 00:05:27 guy Exp $ (LBL)

TCPDUMP 4.x.y Now maintained by “The Tcpdump Group” See www.tcpdump.org

Please send inquiries/comments/reports to: tcpdump-workers@lists.tcpdump.org

Anonymous Git is available via: git clone git://bpf.tcpdump.org/tcpdump

Version 4.x.y of TCPDUMP can be retrieved with the CVS tag “tcpdump_4_xrely”: cvs -d :pserver:cvs.tcpdump.org:/tcpdump/master checkout -r tcpdump_4_xrely tcpdump

Please submit patches by forking the branch on GitHub at

http://github.com/the-tcpdump-group/tcpdump/tree/master

and issuing a pull request.

formerly from Lawrence Berkeley National Laboratory Network Research Group tcpdump@ee.lbl.gov ftp://ftp.ee.lbl.gov/tcpdump.tar.Z (3.4)

This directory contains source code for tcpdump, a tool for network monitoring and data acquisition. This software was originally developed by the Network Research Group at the Lawrence Berkeley National Laboratory. The original distribution is available via anonymous ftp to ftp.ee.lbl.gov, in tcpdump.tar.Z. More recent development is performed at tcpdump.org, http://www.tcpdump.org/

Tcpdump uses libpcap, a system-independent interface for user-level packet capture. Before building tcpdump, you must first retrieve and build libpcap, also originally from LBL and now being maintained by tcpdump.org; see http://www.tcpdump.org/ .

Once libpcap is built (either install it or make sure it's in ../libpcap), you can build tcpdump using the procedure in the INSTALL file.

The program is loosely based on SMI‘s “etherfind” although none of the etherfind code remains. It was originally written by Van Jacobson as part of an ongoing research project to investigate and improve tcp and internet gateway performance. The parts of the program originally taken from Sun’s etherfind were later re-written by Steven McCanne of LBL. To insure that there would be no vestige of proprietary code in tcpdump, Steve wrote these pieces from the specification given by the manual entry, with no access to the source of tcpdump or etherfind.

Over the past few years, tcpdump has been steadily improved by the excellent contributions from the Internet community (just browse through the CHANGES file). We are grateful for all the input.

Richard Stevens gives an excellent treatment of the Internet protocols in his book ``TCP/IP Illustrated, Volume 1''. If you want to learn more about tcpdump and how to interpret its output, pick up this book.

Some tools for viewing and analyzing tcpdump trace files are available from the Internet Traffic Archive:

http://www.acm.org/sigcomm/ITA/

Another tool that tcpdump users might find useful is tcpslice:

ftp://ftp.ee.lbl.gov/tcpslice.tar.Z

It is a program that can be used to extract portions of tcpdump binary trace files. See the above distribution for further details and documentation.

Problems, bugs, questions, desirable enhancements, etc. should be sent to the address “tcpdump-workers@lists.tcpdump.org”. Bugs, support requests, and feature requests may also be submitted on the GitHub issue tracker for tcpdump at

https://github.com/the-tcpdump-group/tcpdump/issues

Source code contributions, etc. should be sent to the email address above or submitted by forking the branch on GitHub at

http://github.com/the-tcpdump-group/tcpdump/tree/master

and issuing a pull request.

Current versions can be found at www.tcpdump.org.

  • The TCPdump team

original text by: Steve McCanne, Craig Leres, Van Jacobson


This directory also contains some short awk programs intended as examples of ways to reduce tcpdump data when you're tracking particular network problems:

send-ack.awk Simplifies the tcpdump trace for an ftp (or other unidirectional tcp transfer). Since we assume that one host only sends and the other only acks, all address information is left off and we just note if the packet is a “send” or an “ack”.

There is one output line per line of the original trace.
Field 1 is the packet time in decimal seconds, relative
to the start of the conversation.  Field 2 is delta-time
from last packet.  Field 3 is packet type/direction.
"Send" means data going from sender to receiver, "ack"
means an ack going from the receiver to the sender.  A
preceding "*" indicates that the data is a retransmission.
A preceding "-" indicates a hole in the sequence space
(i.e., missing packet(s)), a "#" means an odd-size (not max
seg size) packet.  Field 4 has the packet flags
(same format as raw trace).  Field 5 is the sequence
number (start seq. num for sender, next expected seq number
for acks).  The number in parens following an ack is
the delta-time from the first send of the packet to the
ack.  A number in parens following a send is the
delta-time from the first send of the packet to the
current send (on duplicate packets only).  Duplicate
sends or acks have a number in square brackets showing
the number of duplicates so far.

Here is a short sample from near the start of an ftp:
	3.00    0.20   send . 512
	3.20    0.20    ack . 1024  (0.20)
	3.20    0.00   send P 1024
	3.40    0.20    ack . 1536  (0.20)
	3.80    0.40 * send . 0  (3.80) [2]
	3.82    0.02 *  ack . 1536  (0.62) [2]
Three seconds into the conversation, bytes 512 through 1023
were sent.  200ms later they were acked.  Shortly thereafter
bytes 1024-1535 were sent and again acked after 200ms.
Then, for no apparent reason, 0-511 is retransmitted, 3.8
seconds after its initial send (the round trip time for this
ftp was 1sec, +-500ms).  Since the receiver is expecting
1536, 1536 is re-acked when 0 arrives.

packetdat.awk Computes chunk summary data for an ftp (or similar unidirectional tcp transfer). [A “chunk” refers to a chunk of the sequence space -- essentially the packet sequence number divided by the max segment size.]

A summary line is printed showing the number of chunks,
the number of packets it took to send that many chunks
(if there are no lost or duplicated packets, the number
of packets should equal the number of chunks) and the
number of acks.

Following the summary line is one line of information
per chunk.  The line contains eight fields:
   1 - the chunk number
   2 - the start sequence number for this chunk
   3 - time of first send
   4 - time of last send
   5 - time of first ack
   6 - time of last ack
   7 - number of times chunk was sent
   8 - number of times chunk was acked
(all times are in decimal seconds, relative to the start
of the conversation.)

As an example, here is the first part of the output for
an ftp trace:

# 134 chunks.  536 packets sent.  508 acks.
1       1       0.00    5.80    0.20    0.20    4       1
2       513     0.28    6.20    0.40    0.40    4       1
3       1025    1.16    6.32    1.20    1.20    4       1
4       1561    1.86    15.00   2.00    2.00    6       1
5       2049    2.16    15.44   2.20    2.20    5       1
6       2585    2.64    16.44   2.80    2.80    5       1
7       3073    3.00    16.66   3.20    3.20    4       1
8       3609    3.20    17.24   3.40    5.82    4       11
9       4097    6.02    6.58    6.20    6.80    2       5

This says that 134 chunks were transferred (about 70K
since the average packet size was 512 bytes).  It took
536 packets to transfer the data (i.e., on the average
each chunk was transmitted four times).  Looking at,
say, chunk 4, we see it represents the 512 bytes of
sequence space from 1561 to 2048.  It was first sent
1.86 seconds into the conversation.  It was last
sent 15 seconds into the conversation and was sent
a total of 6 times (i.e., it was retransmitted every
2 seconds on the average).  It was acked once, 140ms
after it first arrived.

stime.awk atime.awk Output one line per send or ack, respectively, in the form <seq. number> where is the time in seconds since the start of the transfer and <seq. number> is the sequence number being sent or acked. I typically plot this data looking for suspicious patterns.

The problem I was looking at was the bulk-data-transfer throughput of medium delay network paths (1-6 sec. round trip time) under typical DARPA Internet conditions. The trace of the ftp transfer of a large file was used as the raw data source. The method was:

  • On a local host (but not the Sun running tcpdump), connect to the remote ftp.

  • On the monitor Sun, start the trace going. E.g., tcpdump host local-host and remote-host and port ftp-data >tracefile

  • On local, do either a get or put of a large file (~500KB), preferably to the null device (to minimize effects like closing the receive window while waiting for a disk write).

  • When transfer is finished, stop tcpdump. Use awk to make up two files of summary data (maxsize is the maximum packet size, tracedata is the file of tcpdump tracedata): awk -f send-ack.awk packetsize=avgsize tracedata >sa awk -f packetdat.awk packetsize=avgsize tracedata >pd

  • While the summary data files are printing, take a look at how the transfer behaved: awk -f stime.awk tracedata | xgraph (90% of what you learn seems to happen in this step).

  • Do all of the above steps several times, both directions, at different times of day, with different protocol implementations on the other end.

  • Using one of the Unix data analysis packages (in my case, S and Gary Perlman's Unix|Stat), spend a few months staring at the data.

  • Change something in the local protocol implementation and redo the steps above.

  • Once a week, tell your funding agent that you‘re discovering wonderful things and you’ll write up that research report “real soon now”.