Wireshark Lab: HTTP and Protocol Analysis
Lab Setup
- Start the Wireshark software.
- To begin packet capture:
- On Windows: Go to the Capture pull-down menu and select Interfaces.
- On Mac: Choose Options from the Capture menu.
- You will see a list of network interfaces on your computer along with a live packet count.
- How to Pick the Right Interface:
- Look for the interface that is actively showing an increasing packet count — this is typically your main network adapter.
- If you’re on Wi-Fi, it will usually be labeled something like
Wi-Fi,wlan0, oren0. - If you’re using Ethernet, look for
Ethernet,eth0, or a similar name. - If you’re unsure, open your browser and start loading a webpage — then see which interface shows packet activity.
- Tip: Avoid loopback interfaces unless you’re capturing local traffic like
localhost.
- How to Pick the Right Interface:
- On Windows, click Start next to the interface on which you want to begin capture.
While Wireshark is running, open your browser and go to: https://ycpcs.github.io/cs330-fall2025/assignments/fingerprint.html- While Wireshark is running, open your browser and go to: http://gaia.cs.umass.edu/wireshark-labs/INTRO-wireshark-file1.html
- Make sure you use
httpand nothttps
- Make sure you use
Lab Questions
1. Protocol Identification
Which of the following protocols appear in the Protocol column in your Wireshark trace file?
- TCP
- QUIC
- HTTP
- DNS
- UDP
- TLSv1.2
2. HTTP Response Timing
How long did it take from when the HTTP GET message was sent until the HTTP OK reply was received?
Tip:
The Time column in Wireshark shows the time (in seconds) since capture began.
To change this to time-of-day format:
View → Time Display Format → Time-of-day
3. IP Address Lookup
- What is the IP address of
http://gaia.cs.umass.edu/wireshark-labs/INTRO-wireshark-file1.html? - What is the IP address of your computer?
4. Browser Identification
Expand the HTTP GET request in the Details of selected packet window.
- What is the User-Agent value?
- What type of Web browser issued the HTTP request?
5. Destination Port Number
Expand the Transmission Control Protocol (TCP) section of the HTTP request packet.
- What is the destination port number for the HTTP request?
- What is the source port number for the HTTP request?
6. Packet Size Analysis
- What is the size (in bytes) of the HTTP GET request packet?
- What is the size of the HTTP OK response packet?
- How do the sizes compare? Why might the response be larger or smaller?
7. Print HTTP Messages
Print the two HTTP messages (GET and OK) referred to in Question 2.
Steps:
- Select the desired packet in the list.
- Go to File → Print
- Choose:
- Selected Packet Only
- Print as displayed
- Click OK to print.
Note: Be sure to save your packet capture file (
.pcapng) for submission or reference.
Grading
Submit your lab report, including the packet capture file and screenshots, via Marmoset by the scheduled due date listed in the syllabus.
How to Save Your Packet Capture
- After stopping the capture in Wireshark, go to the File menu.
- Select Save As… or Save.
- Choose a location on your computer to save the capture file.
- Ensure the file extension is
.pcapor.pcapng. - Click Save.
Note: All answers should be derived directly from your Wireshark analysis.
