Skip to content
Back to Series Network Security from Scratch
Networking

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.

A
Alif Afriza Author
· · 2 min read
Network Traffic Analysis with Wireshark for Beginners

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

FunctionFilter
All packets from/to a specific IPip.addr == 192.168.1.5
HTTP onlyhttp
DNS onlydns
SSH onlytcp.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:

  1. SYN (client → server): “I want to open a connection”
  2. SYN-ACK (server → client): “OK, accepted”
  3. 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 .pcapng format 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).
Open for Contributors

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.

Discussion & Comments