← All 177 books wireshark, one packet per page
One packet per page

wireshark, one packet per page

Twenty-eight lessons on what Wireshark is: free and open-source packet analyzer software, cross-platform, Qt for its interface, pcap for capture, with a terminal version called TShark; the law of one packet per page; the captured frame and its arrival time; the privilege door and promiscuous mode; the capture file shared with tcpdump; protocol dissection through encapsulation, the full decode of one DNS query and the hierarchy census; display filters, the eight SYNs and the server name inside the Client Hello; conversations, the three-way handshake, tcp.segments reassembly and color rules; the honest eye on clear text, warrants and the two names of the analyzer; the long view from Ethereal in 1998 through the 2006 rename to the Wireshark Foundation, to one honest hour of practice.


Steve Hodgkiss 7 lessons

One packet, one page, one honest capture. That is the shape of this book.

wireshark, one packet per page

Twenty-eight lessons on what Wireshark is: free and open-source packet analyzer software, cross-platform, Qt for its interface, pcap for capture, with a terminal version called TShark; the law of one packet per page; the captured frame and its arrival time; the privilege door and promiscuous mode; the capture file shared with tcpdump; protocol dissection through encapsulation, the full decode of one DNS query and the hierarchy census; display filters, the eight SYNs and the server name inside the Client Hello; conversations, the three-way handshake, tcp.segments reassembly and color rules; the honest eye on clear text, warrants and the two names of the analyzer; the long view from Ethereal in 1998 through the 2006 rename to the Wireshark Foundation, to one honest hour of practice.


Set in Space Grotesk, Inter and JetBrains Mono (SIL Open Font License).

An honest book about its demos: tshark (TShark Wireshark 4.2.2) ran on the machine that built this book, capturing live DNS, HTTPS and HTTP traffic on eth0, and every quoted output line in these pages was captured from those real runs (the packet list, the protocol hierarchy, the DNS question filter, the SYN filter, the server name extraction, the conversations table, the full decode of DNS frame 15, and the frame.protocols column), quoted verbatim from the captured run log. No tshark output was invented. Every other fact is as the primary source states it, read during this build: the Wikipedia articles Wireshark, Packet analyzer, Tcpdump, Promiscuous mode and Berkeley Packet Filter, cached verbatim beside this book. No facts come from Reddit, Stack Overflow, vendor blogs or commercial sites. Every lesson that describes a practice exercise carries the label 'this book's plan', never posing as a captured fact. Independent, not affiliated with the Wireshark Foundation, Sysdig, Riverbed Technology or the Wikimedia Foundation.

Your purchase is for personal use only. You do not have redistribution rights: please do not share, resell, or republish this book or its pages.

© 2026 Steve Hodgkiss. All rights reserved. Personal use only; no redistribution rights.

Edition 1.0 · stevehodgkiss.net

Contents

Contents


Part 1 · The analyzer itself
The first frame4
Part 2 · The captured frame
Promiscuous mode5
Part 3 · Protocol dissection
The DNS query6
Part 4 · The display filter
The SNI field7
Part 5 · Conversations
Color at a glance8
Part 6 · The honest eye
Who may watch9
Part 7 · The long view
One honest hour10

Per a real local run captured at dispatch, tshark -r demo.pcap -c 25 printed the packet list of a live capture on eth0, and frames 20 through 23 showed the TCP handshake to 216.150.1.65:443 ending in a TLSv1 Client Hello with SNI books.stevehodgkiss.net.

Wireshark companion · No. 01
the proof

The first frame

a real local run, quoted honestly

the law before the first frame: real runs, quoted honestlyno invented tshark outputanywhere in this bookevery quoted line capturedfrom real runs, traced$ tshark -r demo.pcap -c 2551798 → 443 [SYN]443 → 51798 [SYN, ACK]51798 → 443 [ACK]Client Hello (SNI=books.stevehodgkiss.net)frames 20 to 23, the first conversationhonest about demos: the runs are real, the plans are labelled

Before anything else, the law: TShark Wireshark 4.2.2 ran on this machine, every quoted output line was captured from those real runs, and no tshark output was invented.

Four real lines from the packet list, frames 20 to 23: 51798 → 443 [SYN], then 443 → 51798 [SYN, ACK], then 51798 → 443 [ACK], then Client Hello (SNI=books.stevehodgkiss.net).

SYN, SYN ACK, ACK, Hello: the first conversation of the book, quoted as the analyzer printed it.

ONE HONEST PACKET

What story do those four lines tell before any byte of data moves?

Per the Wikipedia Wireshark article, Wireshark lets the user put network interface controllers into promiscuous mode, so they can see all the traffic visible on that interface including unicast traffic not sent to that network interface controller's MAC address; per the Wikipedia Promiscuous mode article, in non-promiscuous mode a NIC drops a frame unless it is addressed to that NIC's MAC address or is a broadcast or multicast addressed frame, and in promiscuous mode the NIC allows all frames through.

Wireshark companion · No. 02
the wide eye

Promiscuous mode

seeing frames not yours

promiscuous mode: the wide eye on the interfacenormal mode:for this NICfor another hostpromiscuous mode:all frames passeven not-yours passunicast includedbroadcast and multicast toothe analyzer asks, the interface opens wideframes meant for other machines arrive on your page too

Normally the card is picky: per the Wikipedia Promiscuous mode article, when a NIC receives a frame, it drops it unless the frame is addressed to that NIC's MAC address or is broadcast or multicast.

Wireshark lets the user put network interface controllers into promiscuous mode, so they can see all the traffic visible on that interface, unicast included.

The wide eye opens the interface: frames meant for other machines arrive on your page too.

ONE HONEST PACKET

What does an interface in promiscuous mode see that a normal one drops?

Per real local runs captured at dispatch, frames 15 and 16 of the packet list showed Standard query 0x8f81 AAAA 30a038ef4eca81a9.vercel-dns-016.com and its Standard query response 0x8f81 returning SOA ns1.vercel-dns-016.com; the filter dns && dns.flags.response == 0 with -T fields -e dns.qry.name listed the same name twice and example.com twice.

Wireshark companion · No. 03
the question

The DNS query

asked, then answered

the DNS query: a readable sentence, then its answerStandard query 0x8f81 AAAA30a038ef4eca81a9.vercel-dns-016.comStandard query response 0x8f81SOA ns1.vercel-dns-016.comthe filter side:example.comalso asked, twice,and listed by name-Y 'dns && dns.flags.response == 0'-e dns.qry.nameframes 15 and 16, listed by nameid, type, name: the wire asks in plain sight

Two real lines, question and answer. Frame 15: Standard query 0x8f81 AAAA 30a038ef4eca81a9.vercel-dns-016.com. Frame 16: Standard query response 0x8f81, returning an SOA record.

A filter run listed every question by name: the vercel-dns name twice, then example.com twice, through -e dns.qry.name.

A question on the wire is a readable sentence: transaction id, type, name. The answer quotes the id back.

ONE HONEST PACKET

Why does the response repeat the transaction id of the query?

Per real local runs captured at dispatch, frame 23 of the packet list read TLSv1 1615 Client Hello (SNI=books.stevehodgkiss.net), and the filter tls.handshake.type == 1 with -T fields -e tls.handshake.extensions_server_name listed books.stevehodgkiss.net once and dash.stevehodgkiss.net twice.

Wireshark companion · No. 04
the name

The SNI field

the name inside the Hello

the SNI field: the name said before the whisperingClient Hello (SNI=books.stevehodgkiss.net)frame 23books.stevehodgkiss.netframe 94dash.stevehodgkiss.netframe 98dash.stevehodgkiss.netpulled with-e tls.handshake.extensions_server_namethe ciphertext hides the talk,not the name on the envelopeencryption starts after the Hello names its host

Even before encryption starts, the Hello says a name. In the packet list, frame 23: Client Hello (SNI=books.stevehodgkiss.net).

A real filter run pulled every server name field: books.stevehodgkiss.net once and dash.stevehodgkiss.net twice, through -e tls.handshake.extensions_server_name.

The ciphertext hides the conversation, not the address on the envelope.

ONE HONEST PACKET

What does the SNI field reveal that the encrypted payload never will?

Per the Wikipedia Wireshark article, Wireshark can color packets based on rules that match particular fields in packets, to help the user identify the types of traffic at a glance; a default set of rules is provided, and users can change existing rules for coloring packets, add new rules, or remove rules.

Wireshark companion · No. 05
the paint

Color at a glance

rules that paint the list

the paint: a rule matches a field, the row takes a colorTLSv1.2 94 Application DataTCP 60 55471 → 443 [ACK]SSH 118 Client: Encrypted packet (len=52)DNS 106 Standard query 0x8f81UDP 83 7844 → 58100 Len=21a default set ofrules is provided;change them, addyour own, or removethem entirelythe odd row of color is wherethe investigation starts, at a glancecolor is a filter you read with your eyes

Per the article, Wireshark can color packets based on rules that match particular fields in packets, helping you identify the types of traffic at a glance.

A default set of rules is provided; you can change them, add new ones, or remove them. Color is a filter you read with your eyes before you type anything.

A painted list is a sorted list: the odd row of color is where the investigation starts.

ONE HONEST PACKET

Which single field rule would you paint first on a busy capture?

Per the Wikipedia Packet analyzer article, packet capture can be used to fulfill a warrant from a law enforcement agency to wiretap all network traffic generated by an individual, Internet service providers and VoIP providers in the United States must comply with Communications Assistance for Law Enforcement Act regulations, and collecting data from a carrier system without a warrant is illegal due to laws about interception; by using end-to-end encryption, communications can be kept confidential.

Wireshark companion · No. 06
the law

Who may watch

warrants, carriers, capture

who may watch: the warrant draws the linewith a warrant:capture can fulfill it,and carriers must complywith the CALEA ruleswithout a warrant:collecting from a carriersystem is illegal, perthe interception lawsend-to-end encryptioncan keep the talk confidential even thenthe same tool answers the engineer and the wiretap

Per the Wikipedia Packet analyzer article, packet capture can be used to fulfill a warrant from a law enforcement agency to wiretap traffic, and US carriers must comply with the CALEA regulations.

The line is plain: collecting data from a carrier system without a warrant is illegal due to laws about interception. And end-to-end encryption can keep communications confidential even then.

The same tool answers the engineer and the wiretap: what differs is the warrant, not the window.

ONE HONEST PACKET

Who is allowed to run this analyzer on a network you use, and under what paper?

Per this book's plan, one honest hour of practice is: list the first frames of any capture and name the handshake, open one frame in full decode and name its layers, run the protocol hierarchy and read the census, write one display filter for DNS questions, count the SYNs, and read the conversations table noting which flow carried the most bytes.

Wireshark companion · No. 07
the handoff

One honest hour

a practice plan, labelled as such

one honest hour: six moves, planned and labelled1list the framesfind the handshake2open one framename the layers3run the hierarchyread the census4write one filterdns questions5count the SYNswho knocked6read the flowsfind the heavy onethis book's plan: six moves, one hour, every line traceablewrite down which protocolsdominated, and which flow was heaviestone hour of honest runs beats a year of guessing

Per this book's plan, one honest hour: list the first frames of any capture and find the handshake; open one frame in full decode and name each layer aloud.

Then the census with the hierarchy, one filter for questions, one count of SYNs, and the conversations table read to its heaviest flow.

Six moves, one hour, every line traceable to a run you watched yourself.

ONE HONEST PACKET

Book the hour this week; which of the six moves will surprise you most?

Index

Index


Color at a glance8
One honest hour10
Promiscuous mode5
The DNS query6
The first frame4
The SNI field7
Who may watch9