JOVANA
Explore Library Glossary Getting Started Three Levels Fields How it works Mission
Join the mission
All guides

Active vs Passive: Ways to Measure a Network

Before you can fix a network you have to see it — and there are two opposite ways to look. This guide draws the big map of network measurement: poking the network with test traffic versus quietly watching the traffic already there, and the toolbox we will spend this rung opening.

You cannot fix what you cannot see

By now you have built a whole network in your head — packets crossing links, a switch learning where everyone sits, IP choosing a path, TCP speeding up gently and braking hard, DNS looking up names, TLS sealing the conversation. That mental model is wonderful, but it is invisible. The wires look the same whether a link is idle or melting under load. This whole rung is about the eyes: how do you actually observe a running network, and turn a vague complaint — "it's slow" — into a measurement you can act on?

It turns out there are exactly two fundamental stances you can take, and almost every tool you will ever meet is one or the other. You can disturb the network on purpose — send your own crafted test traffic and time what comes back — which is active measurement. Or you can disturb nothing — sit silently and read the traffic that is already flowing — which is passive measurement. Active measurement asks a question; passive measurement eavesdrops on an existing conversation. Everything in this rung hangs off that one split, so it is worth getting it crisp.

Active measurement: poking the network and timing the echo

Active measurement injects traffic that would not otherwise exist, purely so you can watch what the network does with it. The classic example you already half-know is ping: it fires a small probe at a target and times how long the reply takes, giving you the round-trip time (RTT) and, if probes go missing, the loss rate. Traceroute is cleverer still — it discovers the whole path hop by hop, and guide 2 will show the lovely trick it uses, deliberately abusing a packet's time-to-live counter to make each router along the way reveal itself. iperf is the heavy hitter: it blasts as much data as it can between two machines you control to measure raw throughput — how fat the pipe really is end to end.

The great strength of active measurement is control: you decide exactly what to send, when, and to where, so you get a clean answer to a specific question even on a path carrying no real user traffic at all. You can measure a brand-new circuit at 3 a.m. before anyone uses it. But that strength is also its catch, and it is a catch beginners trip over constantly: your probe is itself extra load. A ping competes for the same queues as real packets, and an iperf flood can saturate the very link you are trying to characterize, changing the answer by the act of asking. Active measurement is a thermometer that gives off a little heat of its own.

Passive measurement: watching without touching

Passive measurement adds nothing to the wire. Instead it observes traffic that is already there — usually by tapping a link or mirroring a switch port so a copy of every packet flows to your observation tool. The finest-grained form is packet capture: recording the actual bytes of real packets, headers and all, for later study. Guide 3 is devoted to this — to Wireshark and tcpdump, the tools that let you read a captured conversation field by field, and to the BPF filter language that lets you say "show me only TCP traffic to port 443" so you are not drowned by the firehose.

Capturing every byte is gloriously detailed but it does not scale — a busy datacenter link moves more data per second than you could ever store. So passive measurement also has a lighter, summarizing form called flow monitoring. Instead of keeping each packet, a router or switch groups packets that share the same conversation (same source and destination IP, ports, and protocol) into a flow, and exports a tiny summary record: who talked to whom, how many bytes, for how long. NetFlow and its sampling cousin sFlow do exactly this. You lose the per-packet detail, but you gain a bird's-eye view of who is using the network that you can keep for months.

Passive measurement's gift is honesty: because it watches real traffic, it cannot lie to you about what users actually experience, and it adds zero load of its own. Its costs are different from active's. You can only see what happens to be flowing — a dead-quiet link tells you nothing — and you must physically get at the traffic, which on someone else's network you simply cannot. And there is a real privacy weight: the packets you capture are other people's data, which is why so much of it is encrypted and why capture is hedged with rules. Passive measurement sees the truth, but only the truth that happens to walk past.

Two stances, side by side

It helps to see the trade-off in one glance. Active measurement creates its own clean signal but perturbs the system and can only test paths you can send into. Passive measurement perturbs nothing and reports lived experience but is blind to idle links and bound by where you can physically tap. Neither is better; they answer different questions. A good engineer reaches for active tools to characterize and to confirm ("is this new link healthy?"), and for passive tools to monitor and to diagnose ("what is everyone actually doing right now, and what broke?").

                    ACTIVE                  PASSIVE
  what it does   inject test traffic     observe existing traffic
  examples       ping, traceroute, iperf packet capture, NetFlow/sFlow
  perturbs net?  yes (adds load)         no (zero added load)
  needs traffic? no (works on idle path) yes (blind to a quiet link)
  best for       characterize, confirm   monitor, diagnose, audit
  the catch      probe changes answer    only sees what flows past
Active versus passive at a glance. The two stances are complements, not rivals — most real investigations use both, often at the same time.

From counters to telemetry: the management layer

There is a third source of truth that sits a little to the side of pure active and passive: the devices themselves keep score. Every router and switch counts things internally — bytes per interface, packets dropped, errors, queue depth — and the long-standing way to read those counters from afar is SNMP, the Simple Network Management Protocol. A central station periodically asks each device "what are your counters now?" and graphs the answers. This is the bedrock of classic network monitoring: it is how you notice a link running at 95 percent or an interface quietly dropping packets, often before any user complains.

SNMP's polling model is showing its age — asking once a minute is too coarse to catch a burst that lasts milliseconds. The modern direction flips it around: instead of a station pulling counters slowly, the devices push a fast, structured stream of their own state, a practice called streaming telemetry. Gather telemetry, flow records, packet captures, logs, and active probes into one place where you can ask questions across all of them, and you have network observability — the goal of being able to explain why the network behaved as it did, not just that something went wrong. That is the destination this whole rung is climbing toward.

  1. A user reports "the site is slow." You start with passive monitoring: SNMP/telemetry graphs and NetFlow records show which link is hot and which conversations dominate it.
  2. You confirm with active probes: ping and traceroute to the slow destination measure RTT and loss and reveal which hop the delay appears at.
  3. If the picture is still murky, you go deepest: a packet capture filtered with BPF lets you read the actual TCP handshake and retransmissions to see exactly what is failing.
  4. You locate the bottleneck, fix it, and then re-run iperf to confirm throughput is restored — passive to spot it, active to prove it.

The vocabulary you will need, and the map ahead

Measurement is useless without precise words, because the single most expensive mistake in this whole field is blurring three different things. Bandwidth is the link's capacity — its top possible rate. Throughput is the rate you actually achieve, which can be far less. And goodput is narrower still: the useful application data delivered per second, after you subtract retransmissions, packet headers, and other overhead. A link with 1 Gbps of bandwidth might show 600 Mbps of throughput and only 540 Mbps of goodput once headers and resends are removed. Guide 4 makes these razor-sharp.

Two more ideas round out the toolkit. The bandwidth-delay product — bandwidth multiplied by RTT — tells you how many bytes are "in flight" on a path at once, like cars filling a long highway; it explains why a fat, far link needs a big TCP window to stay full, tying straight back to the receive window you met in the transport rung. And the bottleneck is the single slowest link on a path, the one that caps end-to-end throughput at min(R1, R2, ...): the diagnostician's whole job is often just finding where it sits, since fixing anything else changes nothing.