Hands-on Wireshark lab: capture live network traffic, filter by protocols like TCP, UDP, HTTP and DNS, export a .pcap file, and write a short report summarizing observed protocols and key packet details to build core packet analysis skills.
- Operating System:
- Wireshark Version:
- Network Interface Used: <e.g., Wi-Fi / Ethernet>
- Started Wireshark and selected the active network interface (e.g., Wi-Fi/Ethernet).
- Began live capture on the selected interface.
- Generated traffic by:
- Browsing websites (e.g., opening a few pages in a browser).
- Running basic network commands like
pingornslookup.
- Stopped the capture after about one minute.
- Saved the capture as
capture.pcap.
- Purpose: Connection-oriented, reliable transport protocol in the TCP/IP suite.
- Usage observed: Used to carry web traffic and other application data.
- Example packet (from Wireshark):
- Source IP:
- Destination IP:
- Source Port:
- Destination Port:
- Notes: <e.g., part of a web request/response>
- Purpose: Connectionless transport protocol, lower overhead than TCP.
- Usage observed: Used for lightweight queries such as DNS.
- Example packet:
- Source IP:
- Destination IP:
- Source Port:
- Destination Port:
- Notes: <e.g., short request/response, no handshake>
- Purpose: Resolves domain names to IP addresses.
- Usage observed: Queries sent when accessing websites.
- Example packet:
- Source IP:
- Destination IP:
- Transport: UDP port 53
- Query Name: <e.g., www.example.com>
- Purpose: Application-layer protocol for web communication (HTTPS over TLS for encryption).
- Usage observed: Web page loads during browsing.
- Example packet:
- Source IP:
- Destination IP:
- Ports: <e.g., 80 or 443>
- Notes: <e.g., HTTP GET request, TLS handshake>
- To view only TCP packets:
tcp - To view only UDP packets:
udp - To view DNS traffic:
dns - To view HTTP traffic (if present):
http
These filters helped focus on specific protocols and understand their behavior during the capture.
- A typical packet contains multiple layers, such as Ethernet → IP → TCP/UDP → Application protocol.
- DNS queries usually appear before web requests, as the client first resolves the domain name.
- TCP establishes connections using a handshake before data transfer, while UDP sends packets without a handshake.
- The
.pcapfile can be re-opened in Wireshark anytime for deeper analysis and screenshots.