What a sniffer does
A packet sniffer captures traffic visible at a chosen observation point. It can reveal addresses, protocol, timing and available message contents. Capturing a frame does not imply decrypting encrypted payloads.
Two filters determine visibility: which frames the network delivers to the interface, and which arriving frames the network card passes to capture software.
| Situation | Visibility |
|---|---|
| Shared Ethernet/hub | Frames transmitted on that shared medium reach all attached stations |
| Switch with learned destination locations | Known unicast follows the destination’s path; broadcasts reach the broadcast domain |
| Normal card mode | Accepts relevant incoming frames, including its own destination MAC and broadcasts |
| Promiscuous card mode | Passes arriving frames even when addressed to another station |
Promiscuous mode does not make a switch deliver other ports’ traffic. The workbook assumes stable switch forwarding, omitting unknown-unicast flooding and other exceptions. Outgoing frames recorded on the capturing host must be counted separately from filtering of incoming frames.
Count frames at the observation point
- Generate the full dependency sequence: DNS, routing, ARP, then the requested traffic.
- Trace the outward and return paths independently.
- Mark every transmission crossing each sniffer’s link.
- Count ARP Requests and Replies separately.
- Count Echo Reply as the return journey; do not add a second return.
- Reuse valid cache entries for later messages.
Worked two-link example
H1 pings H2 through one router, with initially empty ARP caches. Sniffer A watches H1’s network; B watches H2’s network.
| Traffic | A | B |
|---|---|---|
| Initial local ARP Request and Reply | 2 | 2 |
| One Echo Request | 1 | 1 |
| Its Echo Reply | 1 | 1 |
| Total for one successful ping | 4 | 4 |
| Total for four successful pings | 10 | 10 |
The first ARP exchange discovers H1’s gateway; the second lets the router discover H2. There are 20 captured frames across both sniffers for four pings. The same IP request appears in separate Ethernet frames on different links.
All traffic involving H1 crosses H1’s cable in either a switched or shared network. Merely sharing an IP subnet does not make unrelated traffic visible there. Frames on another routed network remain invisible even if H1’s own network is shared.
Related notes
Source
Fulvio Risso, Exercises on Packet Sniffing and Traffic Analysis, 17 September 2017, 56 pages. Source: local 01e - Packet Sniffing and Traffic Analysis.pdf in Downloads. PDF page order is used. Workbook-derived explanations retain CC BY-NC-SA 3.0 attribution and licensing: https://creativecommons.org/licenses/by-nc-sa/3.0/. Original PDF and figures remain local. Plain-language analogies and qualifications are added study explanations.