This document explains how to use the MultiNet TCPDUMP
utility to troubleshoot sporadic connectivity problems by showing you how to run the TCPDUMP
utility and how to interpret resulting output.
Here are some hints to help you interpret TCPDUMP
output. Using the TCPDUMP
utility can show you what happens during the TCP/IP conversation. (Be aware the data you collect may consume lots of disk space.)
Issue the TCPDUMP
command. For example:
$ multinet tcpdump/hexadecimal/snapshot SIZE=1600
You see the following packet:
> 14:10:32.52 client.1083 > server.telnet: P 1:2(1) ack 2 win 4096 ... 4500 0029 4637 0000 1b06 cb12 8087 7d07 E..)F7........}. 8087 1070 043b 0017 2ab6 92e2 34b2 b724 ...p.;..*...4..$ 5018 1000 ff83 0000 6492 583f 3608 P.......d.X?6.
First there is a header interpreting some of the packet:
14:10:32.52 client.1083 > server.telnet: P 1:2(1) ack 2 win 4096 ...
It contains the following information:
14:10:32.52
)
client
and 1083)
>
server
and telnet
= 23)
:
:()
ack number
- packet includes acknowledment for this number of octets
win number
- source is willing to accept up to this number of octets
Next there is a hexadecimal dump of the packet, with octet values on the left and the ASCII equivalents on the right, modulo printability. The second four bits (5) tells you where the data octets begin.
4500 0029 4637 0000 1b06 cb12 8087 7d07 E..)F7........}. 8087 1070 043b 0017 2ab6 92e2 34b2 b724 ...p.;..*...4..$ 5018 1000 ff83 0000 6492 583f 3608 P.......d.X?6.
It displays the entire contents of the packet, including the TCP/IP header. Where the actual data begins, examine the first octet of the packet. The second four bits of that octet (5, here) tells you how many longwords are occupied by the header. So, you can see the date in the example begins 40 octets into the packet.
Applying these generalities to the example packet, you can then say the following:
4500 0029 4637 0000 1b06 cb12 8087 7d07 E..)F7........}. 8087 1070 043b 0017 2ab6 92e2 34b2 b724 ...p.;..*...4..$ 5018 1000 ff83 0000 6492 583f 3608 P.......d.X?6. ^