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.
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
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.
The first frame
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.
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.
Promiscuous mode
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.
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.
The DNS query
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.
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.
The SNI field
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.
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.
Color at a glance
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.
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.
Who may watch
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.
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.
One honest hour
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.
Book the hour this week; which of the six moves will surprise you most?