Skip to content

Lesson 3 of 9 · 25m

Wireshark Filter Fluency

Capture filters, display filters, conversations, streams, and time narrowing — the difference between searching packets and investigating them.

Filter fluency is not memorizing field names. It is knowing how to reduce a million packets to the twenty packets that tell the story, without accidentally hiding the evidence you need. The worst Wireshark habit is scrolling. The second worst is filtering so aggressively that you remove the cause while staring at the symptom.

Capture filters and display filters are different languages

Capture filters use BPF and decide what gets written. Display filters use Wireshark's field language and only decide what is shown.

Capture filter:     tcp port 443 and host 203.0.113.25
Display filter:     tcp.port == 443 and ip.addr == 203.0.113.25

Use capture filters for volume control. Use display filters for investigation. Never assume a display filter changed the capture file — the hidden packets are still there.

Start wide, narrow by conversation

A practical sequence:

ip.addr == 203.0.113.25
tcp.flags.reset == 1 or tcp.analysis.retransmission
tcp.stream eq 42

First isolate the endpoint, then look for exception events, then follow the affected stream. In the GUI, right-clicking a packet and choosing Conversation Filter → TCP is often safer than typing addresses by hand. tcp.stream is usually the right final narrowing unit because it preserves both directions and ignores port reuse complexity.

Learn the fields that do real diagnostic work

tcp.analysis.retransmission
tcp.analysis.fast_retransmission
tcp.analysis.duplicate_ack
tcp.analysis.out_of_order
tcp.analysis.zero_window
tcp.analysis.window_full
tcp.analysis.lost_segment
tcp.flags.reset == 1
tcp.flags.fin == 1
tls.handshake.type == 1
dns.flags.rcode != 0
icmp.type == 3

These are starting points, not verdicts. lost_segment often means the capture missed the segment, not that the network did. window_full describes sender behavior relative to a receiver advertisement, not a universal fault.

Time is a filter too

Use time display and time narrowing before deep inspection. Wireshark can show seconds since beginning of capture, time since previous displayed packet, or UTC time of day. Those are different lenses; a frame.time range can isolate the incident window precisely.

For interactive work, set a time reference on the first suspicious packet with Ctrl+T. Then measure deltas to following packets. Time since previous displayed packet can lie if your display filter hides intervening traffic — check which time column you are actually reading.

Use statistics before packet-by-packet theory

The Conversations and Endpoints windows reveal which flows dominate volume and duration. I/O Graphs expose gaps and bursts. Expert Information groups TCP anomalies, but its severities are heuristic. Treat these views as maps: confirm capture duration, inspect dominant conversations, filter for TCP analysis flags, pick one affected stream, then remove the filter and inspect what happened around it.

Field notes

  • ip.addr matches either source or destination; use ip.src or ip.dst when direction matters.
  • tcp.port matches either side; narrowing to an ephemeral port can accidentally select unrelated reused connections later in a long capture.
  • follow tcp.stream eq 42 is not a file export; use Export Specified Packets when preserving evidence.
  • Bookmark the original file hash before editing or exporting subsets. Convenience copies are not evidence originals.

Was this lesson helpful?

Sign in to rate