A flow record summarises a set of packets that share properties. It is far smaller than a packet capture, so you can keep it longer.
What identifies a flow
The classic key is the 5-tuple: source address, destination address, source port, destination port and protocol. Exporters may add other fields to the key, such as the input interface. The record then holds start and end times, packet and byte counts, and for TCP often the flags seen.
NetFlow is a Cisco technology. IPFIX (RFC 7011) is the IETF standard for exporting flow data. sFlow is different: it works from packet samples.
How it works
An exporter, such as a router or software on a host, watches traffic and sends records to a collector. A record is sent when the flow ends or after a timeout, so one long transfer can appear as several records.
Flows are usually one direction each. A client request and the server's reply are two records unless your tool joins them.
An illustrative listing:
start(UTC) src sport dst dport proto bytes
14:00:01 10.0.0.5 50122 192.0.2.10 443 TCP 2140
14:00:01 192.0.2.10 443 10.0.0.5 50122 TCP 58211
02:13:07 10.0.0.9 41500 198.51.100.7 22 TCP 4100000000Reading them
Ask simple questions. Which hosts sent the most data? Who connected to a port they never used before? Is something contacting the same address at regular intervals?
The third line shows about 4 GB leaving at night over port 22. That deserves a question, not a verdict. It could be a backup. A port number is only a hint about the application.
Remember the limits. Flows carry no payload, so they cannot show which file moved. With sampling, only some packets are examined, and small flows can be missed entirely. Know your sampling rate before you quote totals.
Try it
You can see live connections, which share the same addressing fields, with ss -tn on your own machine. Pick one line and write its 5-tuple. Note that ss shows current sockets and is not a flow history. Review addresses with the subnetting guide.
Check your understanding
Network Flows
All 3 sections · no timer
Unlimited retries
Questions from every section are combined into one assessment. Answer them all correctly to complete the article.
Your completion saves in this browser. Sign in to sync it to your account.