This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Is it correct to assume that before learning Wireshark I should learn TCP/IP and other protocols so I can know what I’m looking for on a trace file?

0

Hey guys!!

Is it correct to assume that before learning Wireshark I should learn TCP/IP and other protocols so I can know what I'm looking for on a trace file?

Because I see in every Wireshark video a lot of "how to do this or that inside Wireshark" but I'm kind of clueless of what I was supposed to look for in the first place..

Thanks!

asked 24 Feb '14, 11:58

rafaelbn's gravatar image

rafaelbn
11335
accept rate: 0%

edited 24 Feb '14, 14:16

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142


One Answer:

3

Well, this is a bit difficult to answer - it sure helps to know how TCP/IP and other protocols work to be able to understand what Wireshark is showing you, but learning protocols from a book/RFC is not exactly helpful either. My advice would be to focus on simple things first, and then work your way up by running Wireshark while doing some tests to see how protocols behave.

For example: run Wireshark, ping another PC or other network device, and check how Ethernet addresses change from source to destination when the answer comes back. Then take a look at ARP, which is used to resolve IP addresses to MAC adresses - because if a IP is pinged it needs to know what MAC it has. Next check out IP, then ICMP (which is used by ping), and so on. If you're curious about network functionality Wireshark is a great learning tool to watch things happen.

If you can't figure something out that you've seen in Wireshark you can always come back here and ask specific questions.

answered 24 Feb '14, 12:39

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%

I think I got the basics covered. I currently hold Cisco CCNP. But every now and then I got some "network is broken" kind of problem and can't always find out what's wrong. And Wireshark shows it but I guess I can't see it because I don't understand how every protocol works... And all my peers, when we fire up Wireshark seems desperation mode kicking in because we don't know what to look for...

I guess that's me sayin I don't get networks that well BUT that's going to change!!

Any suggestions where to go next as far as protocols?

(24 Feb '14, 12:56) rafaelbn

What I do when someone says "the network is broken" is pretty simple:

  1. find someone who can show me the problem
  2. capture packets at a location where the problematic communication needs to pass through
  3. Analyze the packets for the nodes involved by using a conversation filter on their IPs and/or ports.

Problems are usually either "the communication is slow", "the communication breaks down" or "I can' get a connection". For that you should know who TCP works (Three Way Handshake, Reset, FIN, Push etc), and you need to look at timings. Things that should be fast need to be verified. Things that can take some time (like a client reading a web page and only requesting the next a minute later) can be ignored. Of course there are always exceptions, but that is something that is learned with experience.

(24 Feb '14, 13:06) Jasper ♦♦

I can't see it because I don't understand how every protocol works

well, I guess nobody knows how every protocol works. But if you know enough basic protocols, you can easily learn/understand pretty much every protocol, at least well enough to find 'typical' problems with the help of Mr. Google.

So, here are some questions:

  • which protocols are you familiar with (poor, good, champ)?
  • which protocols are you trying to understand in those "network is broken" kind of problems?
  • can you describe a typical problem and what you did to find the reason?
(24 Feb '14, 13:13) Kurt Knochner ♦

I currently hold Cisco CCNP.

From Cisco's page on CCNP I infer that you at least have to know something about IP to get it, so you've presumably learned IP, at least.

For some problems it would be useful to know something about TCP as well; if, for example, a routing/switching-layer problem manifests itself as slow or failing attempts to establish a TCP connection to a Web site, it might appear in a trace as initial SYNs with no SYN+ACK response (due to the initial SYN not making it from the client to the server, or the SYN+ACK response to that initial SYN not making it from the server to the client), so knowing about the TCP three-way handshake would help.

(24 Feb '14, 17:00) Guy Harris ♦♦