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.

SituationVisibility
Shared Ethernet/hubFrames transmitted on that shared medium reach all attached stations
Switch with learned destination locationsKnown unicast follows the destination’s path; broadcasts reach the broadcast domain
Normal card modeAccepts relevant incoming frames, including its own destination MAC and broadcasts
Promiscuous card modePasses 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

  1. Generate the full dependency sequence: DNS, routing, ARP, then the requested traffic.
  2. Trace the outward and return paths independently.
  3. Mark every transmission crossing each sniffer’s link.
  4. Count ARP Requests and Replies separately.
  5. Count Echo Reply as the return journey; do not add a second return.
  6. Reuse valid cache entries for later messages.

H1 pings H2 through one router, with initially empty ARP caches. Sniffer A watches H1’s network; B watches H2’s network.

TrafficAB
Initial local ARP Request and Reply22
One Echo Request11
Its Echo Reply11
Total for one successful ping44
Total for four successful pings1010

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.

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.