Concepts / Monitoring

Monitoring

NetFlow

Also called flow record, IPFIX, sFlow, flow export, nfdump, softflowd, top talkers

Flow records a router exports to a collector: who talked to whom, on which ports, how much and when.

One record per conversation, no content
One record per conversation, no content

The router counts packets and bytes per conversation in a cache and exports the row only when the flow ends or times out. That is why a long transfer shows up late.

NetFlow is a router's export of flow records to a collector: who talked to whom, on which ports, how much and when, without content. It keeps a flow cache keyed by the 5-tuple (addresses, ports, protocol), counting packets and bytes. A record leaves when the flow ends or reaches the inactive or active timeout, so a long transfer shows up late. v9 and IPFIX use templates. Sampling loses small flows.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab