Packets and flows
Two views of traffic
A packet is an individual unit of network-layer data; a flow groups observed traffic by shared properties over a time interval. A packet record may show a timestamp, source and destination, transport protocol, ports and flags. A flow summary can count packets or bytes without storing every payload. Security analysts use the first view for detail and the second for patterns.
Reconstruct a connection
In a fictional bookstore trace, 192.0.2.10:51000 sends TCP SYN to 198.51.100.20:443 at 0 ms. The server returns SYN-ACK at 20 ms; the client sends ACK at 21 ms. These three observations are consistent with a normal TCP handshake at this observation point. They do not prove that TLS succeeded or that an order was placed. All addresses are documentation examples, not targets.
Group the right records
A common directional flow key is source IP, destination IP, source port, destination port and transport protocol (the five-tuple). The response reverses the endpoints. Some systems combine both directions into one connection summary; others keep them separate. Add observation point and time window to avoid merging unrelated connections that reuse a tuple. For example, two clients using the same source port are not necessarily the same flow.
Interpret summaries carefully
Zeek can summarize activity in conn.log; IPFIX exports flow information from observation points. Their field names, byte-count layers and aggregation rules differ. If a toy summary says 4 packets and 240 IP bytes, that is not necessarily 240 bytes of application content. A destination port is a clue about a service, not definitive proof. Record the schema and collection location before comparing counters.
Practice: explain the evidence
On paper, group records from two fictional clients contacting one server. Mark the endpoints, direction and protocol. Explain what a SYN without a visible response tells you: a connection attempt was observed, but the reason for the absent reply is not yet known. Next, learn how to inspect saved records without acquiring traffic.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Packets and flows — knowledge check
Interpret fictional offline traffic evidence and its limits.
Which record is most useful for studying a particular TCP flag?
Two clients use source port 51000. Why should their traffic not automatically be merged?
A trace shows SYN, SYN-ACK and ACK. What is justified?
A flow summary reports 240 IP bytes. What is the correct interpretation?
A SYN has no visible reply. What is known?