Course overviewTopic 20 / 31
Computer Networks • Deep Lesson 25 min Transport Layer: TCP & UDP

Analyze a TCP Stream in a Packet Capture

Packet capture turns TCP from a textbook into observable state. A good analysis tracks the five-tuple, handshake, sequence/acknowledgement numbers, window advertisements, retransmissions, round-trip timing and connection teardown. The goal is to reconstruct the story the endpoints are telling each other.

LEARNING LOOPWatch→Read→Inspect→Retrieve→Teach back
Analyze a TCP Stream in a Packet Capture
Week 3–4 · Topic 20 / 31
Visual model

Watch the structure first. Then read the technical details.

SYN
SYN-ACK
ACK
PSH, ACK
retransmission?
Read it as a timeline
flow → sequence → ACK → anomaly → closure
Article companion· Week 3–4

Packet capture turns TCP from a textbook into observable state. A good analysis tracks the five-tuple, handshake, sequence/acknowledgement numbers, window advertisements, retransmissions, round-trip timing and connection teardown. The goal is to reconstruct the story the endpoints are telling each other.

01

Start with identity

Filter on the TCP flow's source/destination IPs and ports. The five-tuple identifies a flow sufficiently for most capture analysis.

02

Read sequence and ACK progression

Check whether sequence numbers advance as expected and whether acknowledgements progress. Duplicate ACKs, retransmissions and gaps often reveal loss.

03

Separate transport and application symptoms

A slow HTTP response could be server processing, DNS, TCP retransmission, TLS negotiation or congestion. Capture evidence helps isolate the phase.

DUAL CODING

See the mechanism before you memorize it

One diagram, one causal story, one reconstruction task.

VISUAL RECONSTRUCTION

Analyze a TCP stream in a packet capture — causal map

4 stages
01

Filter

Find one TCP conversation using a five-tuple filter.

02

Handshake

Confirm SYN, SYN-ACK, ACK and option negotiation.

03

Data

Track sequence and acknowledgement progression.

04

Loss

Look for retransmissions, duplicate ACKs or timing gaps.

Trace the mechanism from left to right. On smaller screens, follow the numbered sequence. Then redraw the same flow without looking.
ACTIVE RECONSTRUCTION

Draw the idea yourself

Rebuild the core flow on a real canvas before moving to the worked walkthrough.

SKETCHFLOW

Analyze a TCP stream in a packet capture — practice canvas

Sketch the Analyze a TCP stream in a packet capture mechanism from memory. Label the input, transformation, observation, and transfer.

Practice canvas ready

The canvas loads when you reach this section.

Draw first. Compare second.Touch + mouse friendly
STEP BY STEP

Walk the system

01

Filter

Find one TCP conversation using a five-tuple filter.

02

Handshake

Confirm SYN, SYN-ACK, ACK and option negotiation.

03

Data

Track sequence and acknowledgement progression.

04

Loss

Look for retransmissions, duplicate ACKs or timing gaps.

05

Close

Inspect FIN/ACK or RST behavior and relate it to application completion.

CONCRETE ARTIFACT

Useful Wireshark display filters

Start narrow. One stream tells a coherent story; the full capture contains too many unrelated conversations for fast reasoning.

textcopy → rebuild → modify
tcp.stream == 0
tcp.flags.syn == 1
tcp.analysis.retransmission
tcp.analysis.duplicate_ack
tcp.port == 443
MISCONCEPTIONS

What usually goes wrong

Inspect a random packet without identifying its flow.

Call every duplicate ACK a server error.

Assume a retransmission proves a physical cable failure.

RETRIEVAL PRACTICE

Close the tab. Rebuild it from memory.

Read the question, answer aloud, then reveal.

What is a five-tuple?Reveal answer

Protocol plus source IP, source port, destination IP and destination port, commonly used to identify a transport flow.

What does a retransmission mean?Reveal answer

The sender sent data again because delivery was not considered successfully acknowledged within the transport's reliability logic. The root cause still needs investigation.

Why filter to one tcp.stream?Reveal answer

It converts a noisy packet capture into a single ordered conversation that is much easier to interpret.

FEYNMAN

Teach it back in plain English

Open one capture and narrate only five events: handshake, first application bytes, ACK movement, one anomaly, closure. Ignore everything else.

EXAM / INTERVIEW

What a strong answer sounds like

Wireshark questions often test interpretation rather than memorization: identify the phase and infer the likely symptom from packet timing and flags.

NEXT CONNECTION

Make this idea travel.

Connect it next to: dns • http-versions • wireshark.

COURSE CONTENTS

Analyze a TCP stream in a packet capture

01How the Internet Works + OSI ModelWeek 1 · 4 topics0/4
02Physical & Data Link LayersWeek 1–2 · 5 topics0/5
03Network Layer: IP & RoutingWeek 2–3 · 6 topics0/6
04Transport Layer: TCP & UDPWeek 3–4 · 5 topics0/5
05Application Layer: HTTP, DNS & FriendsWeek 4–5 · 6 topics0/6
06Security & Troubleshooting ToolkitWeek 5 · 5 topics0/5