Network traffic: how it works
How traffic analysis works: full captures, flow records, firewalls, DNS, proxies, sensors such as Zeek, Wi-Fi and phones; what remains visible with HTTPS and why the network’s memory is short.
| Source | What it contains | When it is used |
|---|---|---|
| Full capture (PCAP) | Every packet, headers and content | In-depth analysis of an ongoing incident |
| Flow records (NetFlow, IPFIX) | Who, when and how much, without content | Long-term view of the whole network |
| Firewall logs | Allowed and blocked connections | Reconstructing attempts and outbound connections |
| DNS logs | Domains requested, by which device | Spotting contacts with malicious domains |
| Proxies and web filters | Sites visited, even encrypted ones if the proxy inspects them | Company networks with rules known to staff |
| Sensors such as Zeek | Orderly summaries of connections, DNS, TLS and files | Continuous monitoring and after-the-fact investigations |
| Wi-Fi logs | Associated devices, times, signal strength | Linking a device to a place and a time |
| Phone traffic | Captures on one’s own network or with checking tools | Analysis of suspicious apps and spyware |
Encrypted does not mean invisible
With HTTPS, whoever watches the network cannot read pages, passwords or messages, but can see which address is contacted, when, how much data passes and, usually, the site name: the DNS request and the SNI field at the start of the connection reveal it. Encrypted Client Hello, standardised in 2026, encrypts that name too, but for now it is active mainly on sites served by Cloudflare.
Network traffic: step-by-step procedure
How traffic is acquired and analysed: check the legal grounds, choose the capture point, limit the scope, synchronise the clock, capture, compute the hash, preserve the originals, analyse, report.
The pages of this topic
Back to the overviewNetwork traffic: tools
Tools for network traffic: Wireshark, tshark, tcpdump, Zeek, Suricata, NetworkMiner, capinfos and sha256sum, with an example run on a test capture.
Network traffic: mistakes to avoid
The most common mistakes in traffic analysis: capturing without legal grounds, capturing everything, forgetting the clock, losing packets, analysing the original, treating encrypted traffic as empty, trusting names, confusing address and person.
Network traffic: value in court
The value of traffic captures in court under Italian law: lawfulness and interception, monitoring on company networks, integrity, completeness, times, keeping data apart from inferences, repeatability of the analysis, installing interception equipment.
Network traffic: a worked case
A worked case: at a professional firm an employee’s mailbox is used by a stranger; DNS, TLS and volumes from the network sensor, the phishing message and the mail service logs reconstruct the sequence without reading the encrypted content.
Network traffic: checklist
The checklist for network traffic analysis: before, during and after capture.
Network traffic: frequently asked questions
Short answers to the most common questions about network traffic analysis as evidence.