Wireshark Operators

Wireshark is the most useful & popular tool for packet Level deep Network Analysis & Troubleshooting. Most importantly, it is open source. It is like a measuring meter or device to find and examine what is going on inside a network cable or port just like a multimeter is used by an electrician to examine what is going on inside an electric cable … but of course at much deeper level.

Wireshark or such SW tools are not something very new. Such tools were available in the past as well but they were very expensive and proprietary because they were mostly on dedicated hardware (same as OTDR and Spectrum Analysers are on dedicated HW till date).

 

Wireshark Filters/Operators

Wireshark uses Filters to capture & display the packets. It has two types of filters:

i. Capture Filters

A capture filter is used to select which packets should be saved to disk while capturing. For capture filters wireshark uses a special methodology call BPF syntax which runs in the kernel. With the use of capture filters, only those packets are captured which are defined in the rules of Capture filter. It decreases the amount of data to be saved because full dissection of packets has not been done yet.

 

ii. Display Filters

After Capture is complete on a link using capture filter, we can use display filters to further refine what information we want to see & analyze. These are also useful when the capture filters were not used while capturing the traffic from wire. Here we do the full dissection of packets.

Below is an example where we have two atech Routers. I will first capture the traffic on link b/w R1 & R2 using the capture filters and then we will analyse the captured traffic using different display filters:

 

Both links are admin down, so there is no capture at the moment:

As soon as I enable the interfaces, we will see ‘ARP’, ‘LOOP’ & ‘CDP’. We can apply the capture filter to capture only the CDP & LOOP (for this example, I will capture all three):

wireshark

After the capture is complete, we can save it & then we can apply different display filters to view the packets of our interest.

e.g. we can apply Display Filter to view only CDP data from the R1’s Port (based on its MAC) as in below:

wireshark

You can follow the wireshark section of my website to find more detail on operators with examples.

Written by 

Waqas Karim is a seasoned Network Expert … Geek. He is the founder of ATech. ATech was started for learning & sharing. Over time the platform has grown to include other resources which continue to attract fellow networkers. Today it sees upward trend of a hundred thousand visitors per month, scattered all over the globe. His specialty is networking, but his interest & expertise spans from traditional IT to Network Security including Programming, Virtualization, Service Provider & so on... no matter the badge on the box. He is CCIE Certified (CCIE#56732) in addition to below badges: Telecom Engineer (BE) + CCIE-RS (CCIE#56732) + Huawei Certified (HW#706632) + MBA Microsoft Certified MCITP, MCSE#109*26, CCNP-Sec, CCNP-SP, CCNA-DC, CompTIA Security+, Nokia NRS-I, JNCIA, ITIL Certified (ITIL#*6373), CEH (Certified Ethical Hacker).

avatar
5 Comment threads
4 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Waqas KarimKade WillsonMalcolmWaqas KarimEdgarMellon Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Kade Willson
Guest
Kade Willson

I want to see if Wireshark shows all traffic or if there is some firmware that hides some packets from it. How do I capture all packets on the wireshark?

Malcolm
Guest
Malcolm

Why WLAN packages are translated to Ethernet packages by Wireshark?

EdgarMellon
Guest
EdgarMellon

Im a newbee with wireshark and I wanna know that Where can I find an extensive list of wireshark abbreviations (e.g. PK, OFT2, MZ)?

Blake Enzo
Guest
Blake Enzo

Does it possible that capture packets between two devices in a wifi? I need to know that what data is passed between the two devices and how it is possible?