Network Traffic Analysis with Wireshark for Beginners
Learn to read network traffic with Wireshark: capturing packets, understanding the three-way handshake, spotting suspicious protocols, and knowing what triggers an alert.
Wireshark is the most popular network packet analysis tool. It captures the traffic passing through an interface and displays every data packet. The ability to read traffic is a core skill for anyone working with network security, because every attack ultimately shows up as packets.
How Packet Sniffing Works
A network interface normally processes only the packets addressed to it. In promiscuous mode, the card captures every packet passing through that network, including packets not addressed to itself. Wireshark uses this mechanism to display all traffic.
Important: on a network that uses an ordinary switch (not a hub), a device only receives packets addressed to itself. To see the traffic of another machine on the same network, ARP spoofing is typically used (covered in a separate article). On a WiFi network, even though all packets are “in the air”, WPA2 encryption makes their contents unreadable without the key.
Capturing Packets on Windows
# PowerShell as Administrator:
# 1. Launch Wireshark
# 2. Select an interface (WiFi or Ethernet)
# 3. Click the blue shark fin icon to start the capture
# 4. Stop and save the results under File > Save As (*.pcapng)
For a clean experiment, browse to a single site or ping a single address, then stop the capture. The less activity there is, the easier it is to read.
The Basics: Filters You Must Master
| Function | Filter |
|---|---|
| All packets from/to a specific IP | ip.addr == 192.168.1.5 |
| HTTP only | http |
| DNS only | dns |
| SSH only | tcp.port == 22 |
| Unusual small packets (probes) | tcp.len < 100 |
| ARP (the key to spoofing) | arp |
Enable Wireshark’s built-in coloring rules, since colors help you tell protocols apart quickly.
Reading the Three-Way Handshake
The best way to train your eye: filter tcp.port == 443 and then find the first packet sent to the site you opened. You will see three consecutive packets:
SYN(client → server): “I want to open a connection”SYN-ACK(server → client): “OK, accepted”ACK(client → server): “ready, connected”
If you only see SYN repeated over and over without a SYN-ACK, a port scan from outside is very likely.
Spotting Suspicious Activity
A few patterns to keep an eye on while you are learning:
- SYN flood: hundreds of SYN packets to a single port with no reply.
- UDP straight to many ports: a typical probe / vulnerability-scanning pattern.
- ARP storm: many identical ARP packets repeating within a short time, an indication that something wants to “masquerade” as another device.
- Odd MAC addresses: the source MAC does not match any known device vendor.
- HTTP.
Remember: seeing a suspicious pattern is not proof of an attack. It is only a trigger for further investigation. Do not jump to conclusions.
How to Save and Share Results
- The
.pcapngformat stores raw data, complete with packet contents. Never share this file publicly without scrubbing sensitive data first. - Use Statistics > Protocol Hierarchy to see a summary: which protocols pass through the most.
- Use Follow TCP Stream to read the readable contents of a conversation (useful for unencrypted HTTP).
Next in the curriculum: traffic analysis becomes sharp once you understand the most classic network attack, namely ARP Spoofing and Man-in-the-Middle.
References
- Official Wireshark documentation: wireshark.org/docs (the Wireshark User’s Guide white paper, filters, and display filters).
- Chris Sanders, Practical Packet Analysis, No Starch Press (the best book for beginners learning to read packets).
- RFC 793, Transmission Control Protocol, rfc-editor.org/rfc/rfc793 (the SYN/SYN-ACK/ACK pattern).
- Pevná Regula, Wireshark 101: Essential Skills for Network Analysis, Wireshark University (the official beginner course).
Related Articles
Getting to Know DNS: What It Is and How It Works
A complete explanation of DNS (Domain Name System), from the basic concepts to the behind-the-scenes process of how domain names resolve to IP addresses.
NetworkingHomelab Network Topology: From Zero to Advanced Network
A complete guide to building a homelab network topology from scratch, from basic setup to VLANs, MikroTik, and RT/RW Net.
NetworkingStudying IT with a Networking Major? Here's What You Need to Know
A complete guide to networking and computer majors, covering career prospects, core courses, certifications, and the skills the 2026 tech industry demands.
Your ideas deserve to be read by thousands of people.
ByteNesia is built for everyone. If you have experience, tutorials, or opinions about technology, write and share them here. Your name will be credited as a contributor.
Write anything: tool reviews, homelab tutorials, security tips, or your tech stories.