A packet analyzer is software or hardware that captures the packets travelling across a network and decodes them into readable form — source and destination addresses, protocols, ports and payloads. Network teams use it to troubleshoot slow connections, debug applications and investigate security incidents. The best-known tools are Wireshark, a free graphical analyzer, and tcpdump, a free command-line capture tool.
Key takeaways
- A packet analyzer captures raw network packets and decodes them layer by layer, from Ethernet up to the application.
- Wireshark is the leading free graphical analyzer; tcpdump is its command-line counterpart, and both use the pcap capture format.
- Packet analyzers are powerful and legal on networks you own or are authorized to monitor — capturing other people's traffic without permission is not.
When a network misbehaves, guessing rarely helps. A packet analyzer removes the guesswork: it captures the actual packets travelling across the network and shows you, layer by layer, what each one contains — who sent it, where it is going, which protocol it uses, and what went wrong.
What is a packet analyzer?
A packet analyzer is a program — or a hardware appliance — that captures traffic passing over a network and decodes it into human-readable form. As data flows across the network, the analyzer captures each packet and, if needed, decodes the raw data, showing the values of the fields inside it and analyzing its content according to the relevant protocol specification.
The names overlap. Packet sniffer is the older term, network analyzer and protocol analyzer are often used for the same tools, and wireless analyzers are packet analyzers built for Wi-Fi. The core job is always the same: capture, decode, display.
Wireshark is the best-known example. Its own user's guide calls it the world's foremost network protocol analyzer, free and open source, released under the GNU General Public License. It runs on Windows, macOS, Linux and Unix, and a new version typically becomes available every six weeks. The stable release listed on the Wireshark site in November 2026 is 4.6.10.
How does a packet analyzer work?
A packet analyzer works in three stages: capture, decode, and display. It puts a network interface into a mode where it sees traffic, copies the raw packets, then breaks each one into protocol layers and shows the result.
Capture starts at the network interface card. Normally a card only accepts packets addressed to its own machine. A packet analyzer asks the capture library — libpcap on Unix-like systems, Npcap on Windows — to put the interface into promiscuous mode, so it sees all packets on the local network segment, not just its own.
On a switched network, that still only shows traffic for that machine unless the switch is configured to mirror traffic to the analyzer, which is how enterprise teams capture traffic from a whole segment.
Decoding is where the value lies. Each packet is a stack of layers: Ethernet at the bottom, then IP, then TCP or UDP, then the application protocol such as DNS, HTTP or TLS. The analyzer's dissectors — Wireshark has thousands of them — parse each layer, label every field, and flag anything malformed. A DNS query, for example, becomes a readable list: source address, destination address, the name being looked up, and the answer that came back.
Display is usually three panes, as in Wireshark: a packet list at the top, the decoded details of the selected packet in the middle, and the raw bytes at the bottom. Filters let you narrow thousands of packets to the ones that matter — for example, only DNS traffic, only traffic to one IP address, or only packets with errors.
What is a packet analyzer used for?
Packet analyzers are used to troubleshoot networks, debug software, teach networking, and investigate security incidents. The same capture that finds a slow connection can also reveal a compromised device phoning home.
Network administrators use them to find why a connection is slow or failing: retransmissions, DNS delays, a misconfigured device, or a link that is saturated. Developers use them to debug protocol implementations — to see exactly what their application sent and what the server replied, byte for byte. Security engineers use them to examine suspicious traffic, such as a device contacting an unknown server at 3 a.m. or a flood of failed login attempts.
They are also a teaching tool. Reading a real DNS lookup or a TCP handshake in a capture makes abstract protocol diagrams concrete, which is why networking courses use Wireshark heavily. And in incident response, a saved capture is evidence: it shows what actually crossed the network, with timestamps, when logs alone are not enough.
What a packet analyzer is not: it is not an intrusion detection system. Wireshark will not warn you about suspicious activity on its own — it shows you the traffic and leaves the judgment to you. It also does not fix problems; it finds them.
Wireshark vs tcpdump: which should you use?
Wireshark and tcpdump are the two most common packet analyzers, and they share the same capture engine. Wireshark is graphical and interactive; tcpdump is command-line and scriptable. Most analysts use both.
Wireshark's strength is its interface. Color-coded packets, a three-pane view, display filters, protocol dissectors for thousands of protocols, and the ability to follow a single TCP stream through a whole conversation make it the better tool for sitting down and understanding a problem. It is free, and official packages are signed by the Wireshark Foundation.
tcpdump's strength is its simplicity. It runs on servers without a screen, in scripts, and over SSH. A one-line tcpdump command can capture traffic on a remote server and save it to a pcap file, which you then open in Wireshark on your own machine. The tcpdump project also maintains libpcap, the capture library that Wireshark and many other tools depend on. Its current stable release is tcpdump 4.99.7, with libpcap 1.11.1, both listed on tcpdump.org.
| Feature | Wireshark | tcpdump |
|---|---|---|
| Interface | Graphical, three panes | Command line |
| Cost | Free, open source (GPL) | Free, open source (BSD) |
| Platforms | Windows, macOS, Linux | Unix-like systems, macOS |
| Best for | Interactive analysis | Servers, scripts, quick captures |
| Capture format | pcap / pcapng | pcap |
| Protocol decoding | Thousands of dissectors | Summary output |
Other tools fill niches around them: TShark is Wireshark's command-line twin, sharing its dissectors; CloudShark and similar tools analyze captures in a browser; and hardware packet brokers capture traffic at line rate on large networks. For most people, Wireshark on a laptop and tcpdump on a server cover everything.
How to use a packet analyzer: a safe first capture
A safe first capture takes five minutes and uses only your own traffic. Install Wireshark from its official site, pick your network interface, and capture while you visit one website — then stop and look at what you caught.
- Install from the official source. Download Wireshark from wireshark.org, where official Windows and macOS installers are signed by the Wireshark Foundation. On Linux, use your distribution's package manager.
- Pick the right interface. Open Wireshark and double-click your active interface — usually Wi-Fi or Ethernet. If you see no interfaces, you may need to run it as administrator or install Npcap, which the Windows installer offers.
- Capture your own traffic only. Visit a website, then stop the capture. You will see DNS lookups, a TCP handshake, and TLS-encrypted traffic to the site. That is normal and expected.
- Filter to what matters. Type
dnsin the filter bar to see only DNS queries, orip.addr == 1.1.1.1to see traffic to one address. Filters turn thousands of packets into a readable story. - Follow one conversation. Right-click a packet and choose Follow, then TCP Stream, to see a single connection from start to finish. This is the fastest way to understand what an application actually did.
- Save the capture. Save it as a .pcapng file if you want to analyze it later or share it with a colleague. Strip out any sensitive traffic first — a capture can contain passwords sent over unencrypted connections.
A useful first exercise is to compare a DNS lookup with our free DNS lookup tool: run the lookup in the tool, then find the same query and answer in your capture. It shows how a name becomes an address in real time.
Can a packet analyzer read encrypted traffic?
A packet analyzer can see encrypted traffic exists, and it can see its metadata, but it cannot read the contents of properly encrypted traffic. That limit is a feature, not a bug — it is what HTTPS and VPNs are for.
For a TLS connection, a capture shows the destination IP address and port, the Server Name Indication (the hostname, usually in clear text), the timing and size of each packet, and the TLS handshake. It does not show the URL path, the page contents, or any passwords, because those are encrypted inside the TLS session.
There are narrow exceptions. If you control the client and have its TLS session keys — for example, by setting the SSLKEYLOGFILE environment variable in your own browser — Wireshark can decrypt your own traffic for debugging. That is a deliberate, local debugging feature, not a way to read other people's traffic. Without the keys, modern TLS is not readable from a capture alone.
That metadata is still useful, and still sensitive. A capture that shows a device contacting a malware server every hour is evidence of compromise even if the payload is encrypted. Security teams use that pattern — known as network behavior analysis — to spot infections that hide behind encryption.
Common packet analyzer mistakes
Packet analyzers show you everything, which makes it easy to drown in data or draw the wrong conclusion. These mistakes catch almost every beginner.
- Capturing without a filter. A busy network generates thousands of packets a minute. Start with a capture filter, such as one host or one port, or use a display filter immediately after stopping.
- Assuming every retransmission is a problem. A few TCP retransmissions are normal on Wi-Fi. A pattern of many retransmissions, or retransmissions that grow over time, is the real signal.
- Reading encrypted payloads as plain text. TLS payloads look like random bytes. That is expected — do not mistake encrypted data for corruption.
- Forgetting the time column. The time between packets often matters more than their contents. A DNS lookup that takes five seconds is a problem even if the answer is correct.
- Sharing captures without cleaning them. A .pcap file can contain credentials, session tokens and personal data. Review it before sending it to anyone, and share only the relevant packets.
- Using a packet analyzer as a security scanner. It shows traffic, not vulnerabilities. Pair it with a proper assessment — for example, check a site's TLS setup with our free SSL checker — rather than expecting the capture alone to find every flaw.
The bottom line
A packet analyzer is the most direct way to understand a network: it shows you the actual packets, decoded layer by layer, instead of a summary or a guess. Wireshark gives you a powerful graphical view, tcpdump gives you a fast command-line capture, and both are free.
Start small — capture your own traffic, filter it, follow one conversation — and you will quickly see why network and security teams treat a packet capture as the ground truth. Just remember the rule that comes with the power: only capture traffic you are authorized to see. You can check the address a site resolves to with our free DNS lookup tool before you ever open Wireshark.
Frequently asked questions
What is a packet analyzer in simple terms?
It is a tool that listens to network traffic and shows you what is inside it. Instead of guessing why a connection is slow, you can see the actual packets, the addresses involved, and where the delay or error happens.
What is the difference between a packet analyzer and a packet sniffer?
They are mostly the same thing. Sniffer is the older, informal name. Packet analyzer is the more formal term, and it usually implies the tool also decodes and analyzes the packets, not just captures them.
Is Wireshark a packet analyzer?
Yes. Wireshark is the world's most widely used packet analyzer. It is free, open source, and available for Windows, macOS and Linux. It captures live traffic and also opens saved capture files for later analysis.
Is it legal to use a packet analyzer?
Yes, on a network you own or are authorized to monitor, such as your home network or your employer's network with permission. Capturing traffic on a network you do not own, or reading other people's private communications without consent, can break wiretapping and computer misuse laws.
What is a pcap file?
A pcap file is a saved packet capture in the standard format created by the libpcap library. It stores the raw packets plus timing information, so Wireshark, tcpdump and other tools can open it later and analyze the same traffic again.
Can a packet analyzer see encrypted traffic?
It can see that encrypted traffic exists, plus metadata such as source, destination, timing and size, but it cannot read the contents of properly encrypted traffic such as HTTPS or a VPN tunnel unless it has the decryption keys.
What is the difference between Wireshark and tcpdump?
Wireshark has a graphical interface with three panes, color-coded packets, filters and protocol decoding, which makes it easier for interactive analysis. tcpdump is a command-line tool that prints packet summaries, which makes it better for servers, scripts and quick captures.
Do I need a packet analyzer at home?
Most home users do not, but it is useful when a device misbehaves: a smart TV phoning home constantly, a game lagging, or a device that will not connect. A short capture often shows the problem in minutes.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the official Wireshark User's Guide and the tcpdump.org project pages.
How we write and fact-check →