Wireshak Tutorial
Wireshak Tutorial
What is Wireshark?
Wireshark is a network packet analyzer. A network packet analyzer will try to capture network
packets and tries to display that packet data as detailed as possible.
You could think of a network packet analyzer as a measuring device used to examine what's going
on inside a network cable, just like a voltmeter is used by an electrician to examine what's going on
inside an electric cable (but at a higher level, of course).
Functionality
Understanding the general idea of how Wireshark works will help you understand how other analyzers
work, as well.
GTK
Core Engine
Capture
Engine
Capture Filters
WinPcap – AirPcap - LibPcap
Network
Figure 1
1
Handout Computer Networks Lab: Network Monitoring
Features
The following are some of the many features Wireshark provides:
Filter Toolbar
Figure 2
Capturing Packets
To begin capturing and select our capture interface there are two places we can go in Wireshark:
1. Going to the Menu bar > Capture
2. Or we can use the first three buttons on the left hand side in the toolbar
2
Handout Computer Networks Lab: Network Monitoring
Figure 3
Let’s look now at the capture options. Go to Capture > Options… or click on the second icon from left to
right in the toolbar.
Figure 4
In the capture field we can define the Interface on which we want to capture traffic, the Buffer size of the
captured data and we can define some Capture Filters.
We can also capture traffic directly to a single or multiple files or we can tell Wireshark, in the Stop
Capture field, to stop the capturing process after certain limit is reached.
3
Handout Computer Networks Lab: Network Monitoring
Capture Filters
Capture filters are used when we want to limit the number of packets that we are capturing.
For example we may want to capture only ARP traffic or HTTP traffic or traffic coming only from our
interface card.
Name of
selected filter
4
Handout Computer Networks Lab: Network Monitoring
5
Handout Computer Networks Lab: Network Monitoring
Display Filters
Display filters allow you to concentrate on the packets you are interested in while hiding the currently
uninteresting ones. They allow you to select packets by many different criteria.
Wireshark provides a simple but powerful display filter language. You can compare values in packets as
well as combine expressions into more specific expressions.
Figure 6
We could define filters directly to the Display Filter Toolbar or choose a filter from the “Expression…”
dialog box.
6
Handout Computer Networks Lab: Network Monitoring
An element is an available field name for filtering for the selected protocol. We can take a look at them by
expanding the field for any protocol in the “Filter Expression” dialog box.
eth.src eq 00:01:FF:22:B1:32
- displays all Ethernet-Frames that have a source station with MAC 00:01:FF:22:B1:32
Resources:
www.wireshark.org
wiki.wireshark.org
www.wiresharkU.com
www.packet-level.com
www.ieft.org
www.iana.org
www.packet-level.com
www.icir.org/enterprise-tracing/