EVOPEDIA

← all systems · see it in The System

Packet capture (network taps, port mirroring, promiscuous and host capture)

boundaryInside: 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 levelA 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.
scaletechnological

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.

aliasesPacket capture (libpcap, taps, SPAN ports)
born at1980 (CSPF completed; Shoch and Hupp's passive Ethernet measurements published)
born precisionyears

Measures (22) published science

characteristic clock: time between packets on a busy linka 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 facilities10-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 it26.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 captureabout 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 counterexactly 62 dropped packets reported for 256 consecutive traces
timestamps running backwards ('time travel') in research tracesmore than 500 instances
share of HTTPS connections intercepted4.0% (Firefox update servers), 6.2% (e-commerce sites), 10.9% (US Cloudflare) percent of connections
intercepted middlebox connections made less secure62% less secure; 58% with severe vulnerabilities percent of connections
malware family attribution from one encrypted flow90.3% accuracy
processing overhead of decrypting TLS at the monitorabout 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 mirroringmean 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 stackXDP 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.

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.

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.

Partners and parts published science

Built from / builds (11)

Sits inside / holds (3)

expressed by (23)

floor filled by (21)

Kinds (7)

wired (1)

Notes published science

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)

  1. 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
  2. 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
  3. 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
  4. L4: The filter and snapshot length: which packets are kept and how many bytes of each
  5. L5: The trace: packets delivered through the capture library and written with time stamps, lengths and drop counts (pcap, pcapng)
  6. L6: Decoding and analysis: fields decoded for people; intrusion detection, flow export and trace analysis; the trace checked for its own errors
  7. 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)

  1. 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
  2. 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
  3. 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

  1. L1: The monitored link between two hosts, both directions
  2. L2: Tap: optical splitter or copper regeneration, copies to monitor ports, fails open
  3. L3: Capture interface reads each packet off the line and timestamps it (in hardware on capture cards)
  4. L4: Truncation to the snapshot length, sampling and filtering

way in: Copies from a switch's mirror port (SPAN)

  1. L1: Packets seen on the mirrored switch ports or VLAN
  2. L2: Mirror session configured on the switch copies them to a monitor port
  3. L3: The monitor port's own capacity: delay, reordering and drops when both directions exceed it
  4. L4: The capture host's filter

way in: Decryption secrets handed over by an endpoint

  1. L1: Session secrets released by the endpoint that holds them
  2. L2: Written into the trace before the packets that need them

way in: Frames on a shared medium (promiscuous interface)

  1. L1: Every frame on the shared cable reaches every station
  2. L2: Network interface with its address filter switched off (promiscuous mode)
  3. L3: Link-level driver hands each frame to the kernel tap before the protocol stack
  4. L4: Each listening process's filter judges the frame in place

way in: Legal authority and tasking (warrant, provider request)

  1. L1: Laws and court orders that permit selective interception (CALEA 1994, ETSI standards, national law)
  2. L2: Due process and authorisation from competent authorities
  3. L3: A lawfully authorised request arrives at the provider for a named subject
  4. L4: Authorised personnel provision the intercept; the mediation device requests it from the interception points

way in: Radio frames heard in monitor mode

  1. L1: Frames on the radio channels of a wireless LAN
  2. L2: A wireless interface in monitor mode, readable where link-layer encryption is absent or keyed
  3. L3: Channel hopping across frequencies, with no guarantee of every frame

way in: The capture's own drop counts and statistics

  1. L1: Kernel and interface drop counters (often missing or wrong)
  2. L2: Counts read into the trace: per-packet drop counts and per-interface statistics blocks

way in: The clock that timestamps each packet

  1. L1: Host clock synchronised by NTP (about 100 microseconds) or card clock by IEEE 1588 or GPS
  2. 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

  1. L1: Traffic to and from the machine, and loopback between its own services
  2. L2: The operating system's capture mechanism (BPF, PF_PACKET, NDIS filter driver)
  3. L3: Interrupts or polling, DMA rings and kernel buffers; copies across the kernel/user boundary
  4. L4: Kernel packet filter discarding unwanted packets early

way in: The operator's filter expression

  1. L1: A filter written in a high-level description language
  2. L2: Compiled and optimised into instructions for the filter's virtual machine
  3. L3: Handed to the kernel by the capture library; checked before it runs (eBPF verifier)
  4. L4: Resident in the kernel tap as the filter each packet is judged by

way out: Feed detection and measurement engines

  1. L1: Taken in by an intrusion detection system's decoder, a flow exporter or a trace analyzer
  2. L5: Packets handed to programs linked with the library

way out: Hand over to a law-enforcement agency

  1. L1: Delivered to the requesting agency
  2. L5: The mediation device packages what the interception points send in the agency's format
  3. L7: Delivery under the authorisation, for content only, related information only, or both

way out: Inject packets through the same interface

  1. L1: Packets sent on the link
  2. L3: Written to the capture pseudo-device
  3. L6: Analyzers used as protocol testers generate traffic

way out: Re-place or re-tune the capture

  1. L2: Reconfigure the switch's mirror session or move the tap
  2. L4: Narrow the filter, truncate or sample when the next stage would overload
  3. L7: Choose observation points; prefer taps, mirror only when necessary

way out: Share traces (anonymised, or in vetted communities)

  1. L1: Shared, or analysis code sent to the data instead
  2. L6: Addresses anonymised to trade privacy risk against utility

way out: Show decoded packets to a person

  1. L1: Printed or displayed to the person
  2. L6: Fields decoded per protocol specification

way out: Write the trace

  1. L1: A pcap or pcapng file any reader of the format can open later
  2. L5: Packets with their headers written to a capture file

Sources (34) published science

Roesch, M. (1999). Snort: Lightweight Intrusion Detection for Networks. LISA XIII, USENIX
Packet analyzer (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01)
McCanne, S. & Jacobson, V. (1992/1993). The BSD Packet Filter: A New Architecture for User-level Packet Capture. Winter USENIX 1993 (preprint dated 19 December 1992; tcpdump.org copy; sections read: abstract, 1 Introduction, 2 The Network Tap incl. 2.1-2.2, 3 The Filter Model opening, 4 Applications, 5 Conclusion) (behind its links)
García-Dorado, J. L., Mata, F., Ramos, J., Santiago del Río, P. M., Moreno, V. & Aracil, J. (2013). High-Performance Network Traffic Processing Systems Using Commodity Hardware. In Data Traffic Monitoring and Analysis, LNCS 7754 (doi:10.1007/978-3-642-36784-7_1; OpenAlex stored full text; sections read: 1 introduction, 2 background, 3 limitations, 4 capture engines and their evaluation, 5 conclusions) (behind its links)
Moriarty, K. & Morton, A., eds. (2018). Effects of Pervasive Encryption on Operators. RFC 8404 (sections read: abstract, 1 introduction, 2.1 passive monitoring incl. 2.1.1-2.1.2, the privacy passage of 2.2) (behind its links)
Paxson, V. (1997). Automated packet trace analysis of TCP implementations. ACM SIGCOMM '97 (doi:10.1145/263105.263160; OpenAlex stored full text; sections read: abstract, 1 Introduction, 3 Calibrating packet filters: drops, additions, resequencing, timing, vantage point) (behind its links)
Ptacek, T. H. & Newsham, T. N. (1998). Insertion, Evasion, and Denial of Service: Eluding Network Intrusion Detection. Secure Networks, Inc. technical report (behind its links)
Maier, G., Sommer, R., Dreger, H., Feldmann, A., Paxson, V. & Schneider, F. (2008). Enriching network security analysis with time travel. ACM SIGCOMM 2008 (doi:10.1145/1402958.1402980; paper-shelf full text; sections read: abstract, 1 introduction, 2 the cutoff and its simulation, 5 deployment results (retention, loss), the NIDS-control and NIDS-retrieval sections) (behind its links)
Hofstede, R., Čeleda, P., Trammell, B., Drago, I., Sadre, R., Sperotto, A. & Pras, A. (2014). Flow Monitoring Explained: From Packet Capture to Data Analysis With NetFlow and IPFIX. IEEE Communications Surveys & Tutorials 16(4) (doi:10.1109/comst.2014.2321898; OpenAlex stored full text; sections read: I introduction, II history and context, IV packet observation A-D, VI-B data anonymization) (behind its links)
Network tap (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
pcap (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
Braun, L., Didebulidze, A., Kammenhuber, N. & Carle, G. (2010). Comparing and improving current packet capturing solutions based on commodity hardware. ACM IMC 2010 (doi:10.1145/1879141.1879168; open copy from conferences.sigcomm.org; sections read: introduction, 2 background and related work, 4.2-4.3 comparisons under load, 5 recommendations, 6 conclusion) (behind its links)
Zhang, J. & Moore, A. (2007). Traffic Trace Artifacts due to Monitoring Via Port Mirroring. IEEE/IFIP E2EMON 2007 (doi:10.1109/e2emon.2007.375317; open copy from the author's Cambridge page; sections read: I introduction and findings, II definitions and testbed, III results incl. Table I and the loss statistics, IV discussions) (behind its links)
Shoch, J. F. & Hupp, J. A. (1980). Measured performance of an Ethernet local network. Communications of the ACM 23(12) (doi:10.1145/359038.359044; OpenAlex stored full text; sections read: the Ethernet description, the measurement method, error rates, overhead) (behind its links)
Durumeric, Z. et al. (2017). The Security Impact of HTTPS Interception. NDSS 2017 (doi:10.14722/ndss.2017.23456; open author copy; sections read: abstract, I introduction) (behind its links)
Anderson, B., Paul, S. & McGrew, D. (2016). Deciphering Malware's use of TLS (without Decryption). arXiv:1607.01639 (preprint; sections read: abstract, I introduction) (behind its links)
Wilkens, F., Haas, S., Amann, J. & Fischer, M. (2021). Passive, Transparent, and Selective TLS Decryption for Network Security Monitoring. arXiv:2104.09828 (preprint; sections read: abstract, I introduction, II related work on ETLS) (behind its links)
Høiland-Jørgensen, T. et al. (2018). The eXpress Data Path: fast programmable packet processing in the operating system kernel. ACM CoNEXT 2018 (doi:10.1145/3281411.3281443; paper-shelf full text; sections read: abstract, 1 introduction, 2 related work on kernel bypass, 3 design (redirect, AF_XDP), 4.1 packet drop performance) (behind its links)
Port mirroring (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
Promiscuous mode (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
Harris, G. & Richardson, M., eds. (2026). PCAP Capture File Format. draft-ietf-opsawg-pcap-09, intended status Historic (read in full) (behind its links)
Lawful interception (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01; sections read: lead, description, standards, laws in the US and Europe) (behind its links)
Tuexen, M., Risso, F., Harris, G. & Richardson, M., eds. (2026). PCAP Now Generic (pcapng) Capture File Format. draft-ietf-opsawg-pcapng-06 (sections read: abstract, 1 introduction, 4.3 Enhanced Packet Block options incl. epb_dropcount, 4.6 Interface Statistics Block, 4.7 Decryption Secrets Block, 9 security considerations) (behind its links)
IAB & IESG (2000). IETF Policy on Wiretapping. RFC 2804 (read in full) (behind its links)
Farrell, S. & Tschofenig, H. (2014). Pervasive Monitoring Is an Attack. RFC 7258 / BCP 188 (read in full) (behind its links)
Waked, L., Mannan, M. & Youssef, A. (2020). The Sorry State of TLS Security in Enterprise Interception Appliances. Digital Threats: Research and Practice 1(2) (doi:10.1145/3372802; OpenAlex stored full text; sections read: abstract, 1 introduction and contributions) (behind its links)
Baker, F., Foster, B. & Sharp, C. (2004). Cisco Architecture for Lawful Intercept in IP Networks. RFC 3924 (sections read: abstract, 1 introduction and requirements, 2 reference model, 2.2 operational considerations, 3 content intercept) (behind its links)
tcpdump (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
Berkeley Packet Filter (Wikipedia, via Wikimedia Enterprise snapshot 2026-12-01) (behind its links)
Sicker, D. C., Ohm, P. & Grunwald, D. (2007). Legal issues surrounding monitoring during network research. ACM IMC 2007 (doi:10.1145/1298306.1298307; abstract only: the listed open copy at conferences.sigcomm.org answered with a bot-check page, not fetched further) (behind its links)
Marton, A., Fülöp, A., Ozogány, K., Moskát, C. & Bán, M. (2019). Host alarm calls attract the unwanted attention of the brood parasitic common cuckoo. Scientific Reports 9:18563 (doi:10.1038/s41598-019-54909-1; PMC6898711; sections read: abstract, introduction, discussion) (behind its links)
Rescorla, E. (2018). The Transport Layer Security (TLS) Protocol Version 1.3. RFC 8446 (sections read: abstract, 1.2 major differences from TLS 1.2) (behind its links)
Kühlewind, M. & Trammell, B. (2022). Manageability of the QUIC Transport Protocol. RFC 9312 (sections read: abstract, 1 introduction, 2 the wire image incl. the spin-bit definition, 3.8.2 spin bit) (behind its links)
The Tcpdump Group. tcpdump(1) manual page, tcpdump.org (sections read: description of the packet counts printed at exit, the -Z option, AUTHORS) (behind its links)