Reading Wireshark
On this page
You have read hello.pcap as terminal lines. Open it in Wireshark to connect a frame’s row, its decoded header fields, and the bytes carrying those fields.
By the end, you can find the same frame in all three panes.
Before you start
Section titled “Before you start”Keep the complete hello.pcap saved in Reading a capture as text. Use the Ubuntu VM desktop, with the lab still in its starting state. The file is in your shared home directory, even though you captured it from a shell naming laptop.
The lab installer already installed tshark, the terminal program. Install the Wireshark window from the VM’s Ubuntu terminal, whose prompt names rootvolt:
sudo apt install wiresharkIf a question asks whether non-superusers should be able to capture packets, answer No, as in Installing the lab. Opening a saved file needs no capture rights.
Open Wireshark from Ubuntu’s application list. Use File > Open, select hello.pcap in your home directory, and open it. Keep the terminal read-back nearby for comparison.
Choose one frame in the list
Section titled “Choose one frame in the list”The packet list has one row per captured frame. Selecting a row makes the other panes describe that frame. The details pane stays empty until you select one.
Find the row whose description contains GET /hello.txt. That is the request already visible in the text read-back. Use its direction as a second check: laptop sends the request toward web. Do not select a row only because its color looks different from its neighbors.
- Frame 4 is selected.
- Its source is
10.77.10.10; its destination is10.77.20.80. - The Info column identifies
GET /hello.txt HTTP/1.1.
Each row summarizes one frame. Compare the request text with the terminal line before moving to the next pane.
Open one header in the details
Section titled “Open one header in the details”The packet details pane lists decoded fields under expandable headers: Ethernet, IPv4, TCP, then application data. A separate Frame entry describes the recording; it is not another header sent on the link.
Expand only IPv4. Find its source and destination fields. The source names the sending machine; the destination names the machine the packet is going toward.
- The expanded IPv4 entry contains this packet’s internet header.
Source Address: 10.77.10.10names laptop.Destination Address: 10.77.20.80names web.
Expanding a header reveals fields already in the file. Wireshark adds labels to explain them; those words need not have crossed the link as text.
Connect a field to its bytes
Section titled “Connect a field to its bytes”The packet bytes pane shows the selected frame’s bytes. Click a field in details to mark where its bytes sit in the frame.
Predict: when you click the IPv4 source address in the details pane, how many bytes should be marked? Make your choice before clicking.
- The highlighted bytes are
0a 4d 0a 0a, starting at offset0x001a. - The left column gives each row’s starting position in the frame.
Check your answer
Four bytes. In this saved request, the IPv4 source address occupies four bytes within its header. The human-readable dotted address represents those bytes; the dots are not extra bytes between the numbers.
Select the destination address next, then return to source. The byte selection moves within the same frame, connecting each field to its place.
Mistakes to recognize
Section titled “Mistakes to recognize”“Wireshark shows more than the capture contains.” It adds interpretation and labels, but it cannot recover frames the capture never recorded. The three panes describe the same selected evidence.
“The colors mean danger.” List colors come from coloring rules. They help distinguish traffic types; they are not a verdict that a frame is harmful. Read fields and context before drawing a conclusion.
Good to know
Section titled “Good to know”A capture normally omits the Ethernet frame check sequence. The byte view shows what the capture retained.
If details and bytes appear side by side, use Edit > Preferences > Appearance > Layout and choose the first layout to stack them.
Try it yourself
Section titled “Try it yourself”Find the frame carrying the start of the response. Expand its headers and record each header’s size. Compare those sizes with the request, then click a response address and check the matching bytes.
Solution
In the frame that starts the response, the Ethernet header is 14 bytes, IPv4 is 20 bytes, and TCP is 32 bytes. The response begins HTTP/1.0 200 OK. Its application text follows those headers.
Leave for later
Section titled “Leave for later”Live capture in Wireshark, editing coloring rules, and statistics belong to later work. Here you only need to select an existing frame and connect its views.
- Choose a frame in the packet list.
- Expand its headers in packet details.
- Click a field to connect its meaning with recorded bytes.
Next, Capture filters and display filters separates recording from viewing.
Further reading
Section titled “Further reading”- Wireshark User’s Guide: viewing captured packets, for selecting frames, expanding headers and marking bytes.


