Packet Capture

Understand packet capture concepts using Wireshark, including capturing traffic and saving or opening .pcap files.

πŸ“‘ Packet Capture

Packet capture lets you see exactly what is happening on a networkβ€”packet by packet. This skill is essential for CCST exams, network troubleshooting, and real IT/help-desk roles.

The most widely used packet capture tool is Wireshark.

🧠 What Is Packet Capture?

Packet capture = X-ray of the network

πŸ› οΈ 1️⃣ Wireshark Usage

Wireshark Interface Overview Wireshark Packet Capture Screen Wireshark Packet Analysis

πŸ“Œ What Is Wireshark?

Wireshark is a packet analyzer that captures live network traffic and displays packets in a human-readable format.

πŸ–₯️ Wireshark Interface (Exam Important)

Protocol layers are shown in the Packet Details Pane

▢️ How to Capture Packets (Step-by-Step)

Select Interface in Wireshark Start Packet Capture
  1. Select network interface (Ethernet / Wi-Fi)
  2. Click Start (blue shark fin)
  3. Generate traffic (open website, ping)
  4. Click Stop (red square)

πŸ” Filters in Wireshark

Wireshark Filter Bar Wireshark Protocol Filter Wireshark DNS Filter
Filter Purpose
ipAll IP packets
tcpTCP traffic
udpUDP traffic
httpHTTP packets
dnsDNS queries
Filters reduce noise β€” they do NOT stop capture

πŸ§ͺ Real-World Example: Website Not Loading

  1. Start Wireshark
  2. Apply filter: dns
  3. Open website

πŸ’Ύ 2️⃣ Saving & Opening .pcap Files

πŸ“Œ What Is a .pcap File?

A .pcap file stores captured packets so they can be analyzed later or shared.

Think of a .pcap file as a recorded video of network traffic.

πŸ’Ύ How to Save a Capture File

  1. Stop capture
  2. File β†’ Save As
  3. Choose location
  4. Select .pcap or .pcapng
  5. Click Save
    Example file: dns_issue.pcap
      

πŸ“‚ How to Open a .pcap File

Open PCAP File in Wireshark Wireshark Open Capture File PCAP Analysis in Wireshark
.pcap files can be analyzed without a live network

πŸ§ͺ Cisco Packet Tracer vs Wireshark

Packet Tracer = Learning
Wireshark = Real-world troubleshooting

πŸ” Important Security Note

Packet capture requires permission

πŸ“Š Packet Capture – Exam-Ready Summary

Concept Key Point
Packet capture Inspect network traffic
Wireshark Packet analyzer
Filter Shows selected packets
.pcap file Saved packet capture
Use case Troubleshooting