Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Packet Analysis with Wireshark

You're reading from   Packet Analysis with Wireshark Leverage the power of Wireshark to troubleshoot your networking issues by using effective packet analysis techniques and performing improved protocol analysis

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785887819
Length 172 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
ANISH NATH ANISH NATH
Author Profile Icon ANISH NATH
ANISH NATH
Arrow right icon
View More author details
Toc

Introducing Wireshark

Wireshark is perhaps one of the best open source packet analyzers available today. Wireshark is a powerful packet analyzer tool, with an easy-to-use, rich GUI and a command-line utility with very active community support: http://ask.wireshark.org.

Wireshark uses pcap (libpcap) to capture packets, which means it can capture packets in offline mode—to view the captured packets—and online mode (live traffic) to capture and display the traffic in the Wireshark GUI. Once open, the Wireshark GUI looks like this:

Introducing Wireshark

Wireshark features

We will see some of the important features that are available in Wireshark in the following figure:

Wireshark features

Wireshark has the following cool built-in features, few of them are listed as follows:

  • Available in both UNIX and Windows
  • Ability to capture live packets from various types of interface
  • Filters packets with many criteria
  • Ability to decode larger sets of protocols
  • Can save and merge captured packets
  • Can create various statistics
  • User-friendly GUI and command-line interface
  • Active community support (http://ask.wireshark.org)

Wireshark's dumpcap and tshark

The Wireshark installation provides some command-line tools such as dumpcap and tshark. Wireshark and tshark rely on dumpcap to capture traffic; more advanced functionality is performed by tshark. Also note that dumpcap can be run as its own standalone utility. tshark is a command-line version of Wireshark and can be used in the remote terminal.

The Wireshark packet capture process

The user must be aware of where Wireshark is installed and it should be obliged with your organization policy before start capturing on the TAP (Test Access Point) or Switch Port Analyzer (SPAN) port.

Usually developers install Wireshark on their personal laptop/desktop and capture packets, which goes in-out from the box.

Certain guidelines should be followed to perform this:

  1. Make sure you're allowed to do what you're going to do; check your corporate policies before capturing a packet.
  2. The operating system must support packet capturing:
    • Linux packet socket support is enabled in the kernel by default
    • Windows requires WinPCap to be installed
  3. Choose the interface and enable the promiscuous mode on it. Promiscuous mode accepts all packets whether they are addressed to the interface or not.
  4. If using a Wi-Fi interface, enable the monitor mode for WLAN capturing.
  5. Start capturing and use Wireshark's different features like (filters/statistics/IO/save) for further analysis
    The Wireshark packet capture process
You have been reading a chapter from
Packet Analysis with Wireshark
Published in: Dec 2015
Publisher:
ISBN-13: 9781785887819
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image