← all systems · see it in The System
Packet capture (network taps, port mirroring, promiscuous and host capture)
| boundary | Inside: the access point that copies the link (a passive optical or copper tap, a switch's mirror session, a network interface in promiscuous or monitor mode, the hook in a host's link-level driver), the capture engine (kernel tap, buffers, timestamps, truncation to a snapshot length), the filter program, the capture library (libpcap, WinPcap, Npcap) and the trace it writes (pcap, pcapng), the decoders and analysis programs reading the trace, and the people who place the capture, set its filter and read it, with the purpose or legal authority that placed it. Outside: the monitored link and the endpoints whose traffic it is (they address nobody at the capture point); the switch whose forwarding plane a mirror borrows; the intrusion detection systems, flow exporters and law-enforcement agencies that receive what it records; the laws that permit or forbid it. |
| nested level | A network-monitoring technology (rung 12) that sits on computer networks and in operating systems, used as the sensor floor of intrusion detection, as the troubleshooter's instrument, as the measurement researcher's data source, and as the content-interception point of lawful interception; one kind of the older practice of overhearing signals addressed to others. |
| scale | technological |
From the walk
The first Ethernet was measured by eavesdropping on it: in 1980 Shoch and Hupp put one station's interface in promiscuous mode and simply listened to every packet on the cable, so the measuring cost the network nothing. Their listener at first reported about one damaged packet in 6,000, and most of those turned out to be faults in the listener's own receiver: the packets on the cable were fine (src:shoch-hupp-1980).
Definition. Packet capture is 'the process of intercepting and logging traffic' that passes over a computer network or part of one (src:wp:packet-analyzer): copies of the packets on a link are taken by a party that is not one of the link's endpoints, at a passive tap, a switch's mirror port, a network interface in promiscuous or monitor mode, or a hook in a host's kernel, filtered, timestamped and recorded for later reading (src:mccanne-jacobson-1993-bpf, src:hofstede-2014-flow-monitoring). Walked as the technology and the practice around it: the access point, the capture engine and filter, the trace and its formats, the analysts and programs that read it, and the purpose and authority that placed it. Definition drawn from the encyclopedia entries listed under Sources (Wikipedia, CC BY-SA).
On this page: Properties 3 · Measures 22 · Open contentions 4 · Cross-scale patterns 18 · Valence partners 18 · Partners and parts 66 · Notes 3 · Layers 60 · Sources 34
Properties published scienceour proposal
Sourced fields, and our own readings.
| aliases | Packet capture (libpcap, taps, SPAN ports) |
| born at | 1980 (CSPF completed; Shoch and Hupp's passive Ethernet measurements published) |
| born precision | years |
Measures (22) published science
| characteristic clock: time between packets on a busy link | a few microseconds (1992 Ethernet); about 67 ns at 14.88 Mpps |
| packet rate on a saturated 10 GbE link (60-byte packets) | 14.88 million packets per second |
| BPF per-packet overhead against Sun NIT (Sparcstation 2, accept all) | about 6 us (BPF) against 89 us (NIT) microseconds per packet |
| BPF speed-up over earlier capture facilities | 10-150x over NIT; 1.5-20x over CSPF ratio |
| share of small packets captured, standard Linux stack against PF_RING (earlier evaluation) | 14.9% against 75.7% percent of packets |
| packets lost on the mirror port when both directions exceed it | 26.738% (Cisco Catalyst 2950), 26.965% (HP ProCurve 2824) with the two directions together at about 130-140% of the one 1 Gb/s monitor port; 0 at 60-70% percent of the link's packets |
| packets reordered by port mirroring (both directions aggregated) | both directions merged: 21.080% (8 hosts) and 39.071% (16 hosts) on the Cisco 2950, 17.099% and 35.732% on the HP 2824; TX only: 0.00055% and 0.00103% (Cisco), 0% and 0.00039% (HP); RV only: 0% and 0.00123% (Cisco), 0% and 0.00096% (HP) percent of packets |
| timestamp accuracy, hardware (IEEE 1588) | up to 100 nanoseconds |
| timestamp accuracy, software (NTP) | about 100 microseconds |
| flow export data reduction against full capture | about 1/2000 fraction of the original volume |
| listener-reported damaged packets (Xerox experimental Ethernet) | about 1 in 6,000 at first; about 1 in 2,000,000 with a revised interface packets |
| a stuck drop counter | exactly 62 dropped packets reported for 256 consecutive traces |
| timestamps running backwards ('time travel') in research traces | more than 500 instances |
| share of HTTPS connections intercepted | 4.0% (Firefox update servers), 6.2% (e-commerce sites), 10.9% (US Cloudflare) percent of connections |
| intercepted middlebox connections made less secure | 62% less secure; 58% with severe vulnerabilities percent of connections |
| malware family attribution from one encrypted flow | 90.3% accuracy |
| processing overhead of decrypting TLS at the monitor | about 2.5x the cleartext processing ratio |
| CPU share of buffer handling for one 64-byte packet (Linux) | 63% percent of CPU in reception |
| timing difference added by port mirroring | mean up to about 2400 at about 1360 Mb/s (Cisco 2950) microseconds |
| capture volume kept after a 15 KB connection cutoff (MWN) | about 10% of 3-6 TB/day; 2.1 TB buffer holds about 4 days fraction and days |
| IDS commands to the recorder over two weeks (LBNL) | 427 cutoff suspensions; 12,532 addresses moved to the scanners class and 592 to the alarms class commands |
| single-core packet rates: XDP, DPDK and the standard Linux stack | XDP 24 Mpps; DPDK 43.5 Mpps; Linux stack 1.8 (conntrack) to 4.8 (raw) Mpps million packets per second (drop test) |
Open contentions (4) open contention
Where sources or readings disagree. Both stay on the map.
- C-4585 Do network operators need to break open encrypted traffic to keep networks safe, or does that weaken security, with patterns in the traffic and the end devices giving enough to go on?
booked: The map keeps both readings side by side and rules on neither.
the other reading: operators need payload visibility, so interception at the network edge is warranted for security and compliance (the appliances' stated reasons, Waked et al.); interception weakens the connections it reads and should give way to endpoints releasing keys selectively (Durumeric et al.; Wilkens et al.); no engineering solution allows wiretapping when end systems protect their communications (RFC 2804); endpoints can choose to expose a minimal, deliberate signal for passive measurement while encrypting the rest (QUIC's spin bit, RFC 9312) - C-4606 Is recording network traffic a routine tool whose privacy cost can be kept low, or an intrusion on people's privacy whatever the reason?
booked: The map keeps both readings side by side and rules on neither.
the other reading: capturing other people's traffic is an attack on their privacy whatever the motive (RFC 7258: 'implies nothing about the motivation'); research has no legal exception in the US (Ohm, Sicker and Grunwald, read at the abstract); anonymisation does not protect enough to publish traces; only controlled access is tenable (Hofstede et al.) - C-4622 Who wrote tcpdump, a widely used tool for recording network traffic? Its own manual and the encyclopedia give different lists of authors.
booked: The map keeps both readings side by side and rules on neither.
the other reading: the manual's list (the project's own statement); the encyclopedia's list - C-4630 Should communication systems be built with lawful wiretapping capability, as many laws require, or left without it, since it adds complexity and weak spots?
booked: The map keeps both readings side by side and rules on neither.
the other reading: interception capability should be designed in and standardised (CALEA, ETSI, RFC 3924); designing it in adds complexity and loopholes; mechanisms should only be openly described (RFC 2804)
Cross-scale patterns seen here (18) our proposal
Shapes that recur when the same kind of problem is solved at different scales, and how each shows in Packet capture (network taps, port mirroring, promiscuous and host capture). Each links to every other system that shows it.
- borrowed-then-held (structural)
Borrowed phase: on a broadcast cable the medium itself delivered every frame to every station, so a capture only had to stop throwing frames away (Shoch and Hupp 1980). When switches gave each pair of devices its own link, the copy had to be held by equipment built for it: taps cut into the link, mi - causal ceiling (structural)
A capture point, however good its hardware, sees what crosses the wire at its own position, not what each endpoint accepted: the limit is set by where it sits, not by its means. - red-queen (structural)
Watchers against encryption, one full turn and more: cleartext let any capture point read traffic; pervasive monitoring was named an attack and encryption spread; TLS 1.3 removed static-RSA key exchange and encrypted most of the handshake; operators answered with interception and with inference from - same role, different builds (structural)
One job, taking in signals that were addressed to someone else without the sender's knowledge or part: a network interface with its address filter switched off, an optical splitter, a switch's mirror session, a kernel hook; in a reed bed, a cuckoo listening to the great reed warbler's alarm calls to - same toolkit, independent builds (structural)
Separate groups built high-speed capture engines from the same set of techniques (memory pre-allocation, memory mapping and zero copy, batching, parallel paths, affinity): PF_RING DNA, PacketShader, netmap and PFQ, each combining them differently and reaching similar rates. - templating (structural)
One capture-file format and one programming interface reused unchanged across tools and operating systems: a file written by tcpdump is read by Wireshark and others; programs written to libpcap run over BPF, PF_PACKET or NDIS drivers; cBPF bytecode is translated and run inside Linux's eBPF and in Wi - The Payment to Entropy (structural)
Every hand-off between link and analyst loses some packets and some timing: the mirror port drops and reorders, the host pays copies and interrupts per packet, each subsystem that cannot keep up loses packets. Form: signal and material (packets). Per-hand-off yield where sources give it: 14.9% captu - the whole sets the local reference (structural)
Each capture point stamps packets with its own clock; to merge observation points the clocks must answer to one outside reference (NTP, IEEE 1588, GPS), and local readings can disagree (skew, clocks set back). - trade one property for another (structural)
Fidelity bought with cost and disruption, and the kinds settle along the trade: taps (exact copy, extra hardware, a cut to install), mirror ports (free, configurable, altered trace), sampling and truncation (scale, lost detail), flow export (about 1/2000 the volume, less privacy-sensitive, no payloa - Umwelt: each system carves its own slice of one shared medium (structural)
Each capture method takes its own slice of the same traffic: a wireless interface one frequency at a time; a mirror port what the switch forwards and has room to copy; an off-segment monitor packets that never reach the endpoint; a host only its own traffic. - who opens the door (structural)
Nobody on the link addresses the capture: its door is opened beforehand by whoever controls the link: the switch's administrator configures the mirror session, a technician cuts in the tap, a superuser turns the interface promiscuous, the provider's authorised personnel provision a lawful intercept - cephalization (partial)
Capture is concentrated where new traffic first meets the network: at the edge where a subscriber connects (lawful interception), at the wireless controller's uplink rather than the radio, at chosen observation points. - conservation law plus closure (partial)
Packets missing from a trace = losses on the network + losses in the capture; the trace alone leaves the split open, and the drop counters that should close it are unreliable, so the analysis closes it with a second rule: TCP repairs real losses and not capture losses. - runaway from an unstable balance (partial)
Receive livelock: past a load point each arriving packet's interrupt leaves less CPU to clear packets, so the host collapses serving interrupts; polling under load is the held correction. - same shape, opposite sign (partial)
One mechanism, the capture pseudo-device bound to an interface, run in both directions: reading it returns packets taken off the link, writing it injects packets onto the link. - seed (partial)
A small register machine of a few instruction types that unpacks into open-ended filters for any protocol, since all protocol knowledge sits in the program, not the kernel; its extended form later ran far beyond networking (tracing, non-networking kernel uses). The small machine is bounded by its sh - The carry (partial)
The wait face: packets arrive microseconds apart, so the kernel tap holds them in a buffer and hands several over per read; the overflow face with its dark twin: a monitor port that can hold only one direction's worth drops the excess rather than passing it on. - not-diluting wins (surface)
The per-packet cost stays fixed (a call, an interrupt, a buffer) while the bytes per packet shrink, so for small packets at line rate the fixed per-packet share comes to dominate the host's work (63% of the CPU on buffer handling for a 64-byte packet).
Valence: what it trades, and with whom (18) published science
Each exchange with a neighbour, read from both sides: who gains, who pays, and what carries it.
- Transport Layer Security via Internet · Packet capture (network taps, port mirroring, promiscuous and host capture) mixed
- Network switch (bridges and switches) via Electromagnetic field · Packet capture (network taps, port mirroring, promiscuous and host capture) gain
- Human (Homo sapiens) via Human society (from local community up to societies) · Packet capture (network taps, port mirroring, promiscuous and host capture) mixed
- Law (rules and law) via Written record (durable external marks: texts, archives, canon) · Packet capture (network taps, port mirroring, promiscuous and host capture) mixed
- Operating system via Software · Packet capture (network taps, port mirroring, promiscuous and host capture) gain
- Internet Engineering Task Force via Written record (durable external marks: texts, archives, canon) · Packet capture (network taps, port mirroring, promiscuous and host capture) loss
- Cryptography via Electromagnetic field · Packet capture (network taps, port mirroring, promiscuous and host capture) loss
- Signals intelligence via Electromagnetic field · Packet capture (network taps, port mirroring, promiscuous and host capture) even
- Intrusion detection system via Software · Packet capture (network taps, port mirroring, promiscuous and host capture) gain
- Wireless network via Electromagnetic field · Packet capture (network taps, port mirroring, promiscuous and host capture) gain
- Computer network via Electromagnetic field · Packet capture (network taps, port mirroring, promiscuous and host capture) gain
- Intruder (burglar and trespasser) via Electromagnetic field · Packet capture (network taps, port mirroring, promiscuous and host capture) mixed
- Privacy via Human society (from local community up to societies) · Packet capture (network taps, port mirroring, promiscuous and host capture) mixed
- Surveillance via Electromagnetic field · Packet capture (network taps, port mirroring, promiscuous and host capture) even
- Flow export (NetFlow, IPFIX) via Software · Packet capture (network taps, port mirroring, promiscuous and host capture) gain
- TLS interception middlebox via Electromagnetic field · Packet capture (network taps, port mirroring, promiscuous and host capture) gain
- Law-enforcement agency via Written record (durable external marks: texts, archives, canon) · Packet capture (network taps, port mirroring, promiscuous and host capture) even
- Traffic analysis via Computer network · Packet capture (network taps, port mirroring, promiscuous and host capture) even
Partners and parts published science
Built from / builds (11)
- Intrusion detection system
- Human (Homo sapiens)
- Network interface controller
- Network tap (passive optical splitter or copper regeneration tap)
- Port mirroring (SPAN, RSPAN)
- Kernel network tap and packet filter (BPF and its kin)
- Capture library (libpcap, WinPcap, Npcap)
- Capture files (pcap, pcapng)
- Packet analyzers (tcpdump, Wireshark) and trace-analysis programs
- Watchers against encryption
- Intruders against passive monitoring
Sits inside / holds (3)
expressed by (23)
- Generation/Synthesis
- Scaffolding/Enablement (Meta-Tooling)
- Templating / Standardization
- Quality Improvement/Refinement
- Interoperability/Transduction (Bridging)
- Encapsulation & Modularity (Abstraction)
- Sensing/Scanning
- Mapping/Modeling
- Multi-Scale Data Fusion / Triangulation
- Trail-Marking / Externalized Memory (Stigmergy)
- Frontier Outposts / Sensing Extension
- Evade Detection
- Resource Denial/Attrition
- Prepositioning & Latency
- Quick Harm Avoidance
- Physical/Virtual Barrier
- Self-Monitoring
- Validation of Identity/Intention
- Validation of Effectiveness
- Deception
- Redundancy & Diversity
- Triage & Prioritized Allocation
- Quality Control & Error Correction
floor filled by (21)
- Intrusion detection system
- Human (Homo sapiens)
- Law (rules and law)
- Operating system
- Network interface controller
- Network switch (bridges and switches)
- Wireless network
- Computer network
- Network tap (passive optical splitter or copper regeneration tap)
- Port mirroring (SPAN, RSPAN)
- Kernel network tap and packet filter (BPF and its kin)
- Capture library (libpcap, WinPcap, Npcap)
- Capture files (pcap, pcapng)
- Packet analyzers (tcpdump, Wireshark) and trace-analysis programs
- Hardware capture cards (FPGA)
- tcpdump
- Packet capture engine
- Flow export (NetFlow, IPFIX)
- Law-enforcement agency
- Signature-based detection
- Traffic analysis
Kinds (7)
- Network tap (passive optical splitter or copper regeneration tap)
- Port mirroring (SPAN, RSPAN)
- Promiscuous capture on a shared medium
- Capture on a host
- Wireless capture (monitor mode)
- Hardware capture cards (FPGA)
- Connection-cutoff bulk recorder (the Time Machine)
wired (1)
Notes published science
- The first Ethernet was measured by eavesdropping on it: in 1980 Shoch and Hupp put one station's interface in promiscuous mode and simply listened to every packet on the cable, so the measuring cost the network nothing. Their listener at first reported about one damaged packet in 6,000, and most of those turned out to be faults in the listener's own receiver: the packets on the cable were fine (src:shoch-hupp-1980).
- Copying traffic off a switch is not a faithful copy. In Zhang and Moore's tests both directions of a gigabit link were mirrored onto one gigabit port. With the monitored link at about 130-140% utilisation, about 27% of its packets never reached the mirror port. Even at low load a significant share of packets came out reordered once the two directions were merged; within a single direction, reordering showed up mainly under higher loads (src:zhang-moore-2007-port-mirroring).
- Listening in on messages meant for others is not only a network trick: common cuckoos find nests to lay in by listening to the great reed warbler's alarm calls, and the warblers that raise the alarm most often are the ones parasitised most (src:marton-2019-cuckoo).
Layers
The ways it takes in its world, where they meet, and how it acts back, each from L1 (where it meets the world) up.
packet capture as network engineers, defenders and measurement researchers describe it: a link's traffic copied without taking part, up to the purpose and authority that placed the capture (reader's view)
- L1: The monitored link: frames and packets crossing a wire, fibre or radio channel between endpoints, addressed to them and to nobody at the capture point
- L2: The access point: a tap, a mirror port, an interface in promiscuous or monitor mode, or a hook in the host's driver, each set up beforehand by whoever controls it
- L3: The capture engine: interface, driver and kernel tap reading each packet, timestamping it and buffering it, at rates up to millions of packets a second
- L4: The filter and snapshot length: which packets are kept and how many bytes of each
- L5: The trace: packets delivered through the capture library and written with time stamps, lengths and drop counts (pcap, pcapng)
- L6: Decoding and analysis: fields decoded for people; intrusion detection, flow export and trace analysis; the trace checked for its own errors
- L7: Purpose and authority: troubleshooting, detection, measurement, compliance, lawful interception, or spying; the law, consent and policy that permit or forbid it
the boardroom (shared floors)
- L5: Delivery and recording: buffered packets handed through the capture library and written as a trace (pcap, pcapng) with time stamps, captured and original lengths, drop counts and statistics
- L6: Decoding and analysis: packets decoded into fields for people (tcpdump, Wireshark), read by intrusion-detection engines, flow exporters and trace analyzers (tcpanaly), with the trace checked for drops, additions, reordering and clock errors
- L7: Purpose and authority: who placed the capture and why (troubleshooting, intrusion detection, measurement research, compliance, lawful interception under warrant, or spying), and the law, consent and policy that say what may be captured and kept
way in: Copies from a passive optical or copper tap
- L1: The monitored link between two hosts, both directions
- L2: Tap: optical splitter or copper regeneration, copies to monitor ports, fails open
- L3: Capture interface reads each packet off the line and timestamps it (in hardware on capture cards)
- L4: Truncation to the snapshot length, sampling and filtering
way in: Copies from a switch's mirror port (SPAN)
- L1: Packets seen on the mirrored switch ports or VLAN
- L2: Mirror session configured on the switch copies them to a monitor port
- L3: The monitor port's own capacity: delay, reordering and drops when both directions exceed it
- L4: The capture host's filter
way in: Decryption secrets handed over by an endpoint
- L1: Session secrets released by the endpoint that holds them
- L2: Written into the trace before the packets that need them
way in: Frames on a shared medium (promiscuous interface)
- L1: Every frame on the shared cable reaches every station
- L2: Network interface with its address filter switched off (promiscuous mode)
- L3: Link-level driver hands each frame to the kernel tap before the protocol stack
- L4: Each listening process's filter judges the frame in place
way in: Legal authority and tasking (warrant, provider request)
- L1: Laws and court orders that permit selective interception (CALEA 1994, ETSI standards, national law)
- L2: Due process and authorisation from competent authorities
- L3: A lawfully authorised request arrives at the provider for a named subject
- L4: Authorised personnel provision the intercept; the mediation device requests it from the interception points
way in: Radio frames heard in monitor mode
- L1: Frames on the radio channels of a wireless LAN
- L2: A wireless interface in monitor mode, readable where link-layer encryption is absent or keyed
- L3: Channel hopping across frequencies, with no guarantee of every frame
way in: The capture's own drop counts and statistics
- L1: Kernel and interface drop counters (often missing or wrong)
- L2: Counts read into the trace: per-packet drop counts and per-interface statistics blocks
way in: The clock that timestamps each packet
- L1: Host clock synchronised by NTP (about 100 microseconds) or card clock by IEEE 1588 or GPS
- L2: Read into each packet's capture header as its time stamp
way in: The host's own traffic (and loopback), captured in its kernel
- L1: Traffic to and from the machine, and loopback between its own services
- L2: The operating system's capture mechanism (BPF, PF_PACKET, NDIS filter driver)
- L3: Interrupts or polling, DMA rings and kernel buffers; copies across the kernel/user boundary
- L4: Kernel packet filter discarding unwanted packets early
way in: The operator's filter expression
- L1: A filter written in a high-level description language
- L2: Compiled and optimised into instructions for the filter's virtual machine
- L3: Handed to the kernel by the capture library; checked before it runs (eBPF verifier)
- L4: Resident in the kernel tap as the filter each packet is judged by
way out: Feed detection and measurement engines
- L1: Taken in by an intrusion detection system's decoder, a flow exporter or a trace analyzer
- L5: Packets handed to programs linked with the library
way out: Hand over to a law-enforcement agency
- L1: Delivered to the requesting agency
- L5: The mediation device packages what the interception points send in the agency's format
- L7: Delivery under the authorisation, for content only, related information only, or both
way out: Inject packets through the same interface
- L1: Packets sent on the link
- L3: Written to the capture pseudo-device
- L6: Analyzers used as protocol testers generate traffic
way out: Re-place or re-tune the capture
- L2: Reconfigure the switch's mirror session or move the tap
- L4: Narrow the filter, truncate or sample when the next stage would overload
- L7: Choose observation points; prefer taps, mirror only when necessary
way out: Share traces (anonymised, or in vetted communities)
- L1: Shared, or analysis code sent to the data instead
- L6: Addresses anonymised to trade privacy risk against utility
way out: Show decoded packets to a person
- L1: Printed or displayed to the person
- L6: Fields decoded per protocol specification
way out: Write the trace
- L1: A pcap or pcapng file any reader of the format can open later
- L5: Packets with their headers written to a capture file