Lesson 8 of 9 · 25m
Reading a TCP Flow Fluently
A repeatable method for reconstructing a flow: align sequence directions, map ACK progress, spot gaps, interpret window pressure, and distinguish sender, receiver, and network behavior.
Fluent capture reading is not memorizing Wireshark menus. It is reconstructing two independent byte streams that happen to share a connection. Each direction has sequence numbers; acknowledgments travel in the opposite direction. Once you stop treating the flow as one linear conversation, the evidence gets much easier to read.
Anchor the four-tuple and directions
A TCP flow is identified by source IP, source port, destination IP, destination port, and protocol. In Wireshark, follow a stream, then note which endpoint initiated it. Rename columns mentally: “client-to-server sequence” and “server-to-client sequence.” ACK numbers only make sense when tied to the opposite direction.
C seq=1000 -> S client byte stream
S seq=8000 -> C server byte stream
S ack=1500 -> C server acknowledges client bytes
C ack=12000 -> S client acknowledges server bytesBuild the ledger in order
Start with the handshake. Confirm MSS, window scale, SACK permission, and timestamps. Then track cumulative ACK progression. Normal forward progress looks like segments in one direction and rising ACK numbers in the reverse direction.
A gap appears when later bytes arrive but the ACK does not advance. Duplicate ACKs repeat the highest contiguous point. That is the receiver saying, “I am still missing the byte after this number.”
Separate three common problems
Loss: later data arrives, ACK stalls, duplicate ACKs rise, missing bytes are retransmitted.
Application slowness: ACKs may advance, but advertised receive window shrinks or hits zero because the application is not draining its socket buffer.
Sender limitation: receiver advertises plenty of window, no loss appears, but the sender simply does not transmit. Check application write behavior, congestion window, or proxy buffering.
Window pressure has a visible rhythm
S -> C data
C -> S ACK, win=4096
S -> C data
C -> S ACK, win=0
S -> C zero-window probe
C -> S ACK, win=8192That pattern says the receiving application or host buffer is the bottleneck. It does not say the network dropped packets. Teams lose hours because “zero window” sounds exotic; it is usually backpressure.
Use graphs, then return to packets
Wireshark’s TCP stream graphs are excellent orientation tools:
- Stevens/time-sequence graph for data progression over time.
- tcptrace-style graph for sequence, ACK, SACK, and window behavior.
- Round-trip-time graph for latency shifts.
Graphs reveal shape; packets prove cause. Never write an incident conclusion from a graph alone.
Field notes
- ACK clocks matter: delayed ACKs can make normal traffic look bursty.
- A retransmission does not tell you where loss occurred unless you know capture placement.
- “Out of order” can be real reordering or an artifact of capture point and offload.
- TLS encrypts content, not TCP mechanics; sequence and window analysis still work.
- Explain findings in terms of bytes acknowledged, not tool labels, when writing incident notes.
Was this lesson helpful?