ntopng is an open-source, web-based network traffic analyzer that inspects live packets or imported flow records and presents per-host, per-protocol and per-application statistics in near real time. In network monitoring, it sits between raw packet capture tools such as Wireshark and device-polling systems based on SNMP, answering the question of who is talking to whom, with which application, and how much.
The tool is the successor to the original ntop program from the late 1990s and is developed by ntop, the project that also maintains PF_RING and nDPI. It is available as a Community edition under the GPLv3 license and as commercial Pro and Enterprise editions that add flow export, reporting, alerts integration and larger-scale features.
How the ntopng traffic engine works
At its core, ntopng groups packets into flows, meaning conversations defined by source and destination address, ports and protocol, and keeps counters for every flow and every host it observes. Each flow is passed through nDPI, a deep packet inspection library that recognizes several hundred application protocols, from DNS and TLS to video streaming and messaging services, even when they run on nonstandard ports.
Traffic reaches ntopng in several ways. It can sniff a physical interface connected to a mirror port or network tap, read packets through PF_RING for high-speed capture, or receive NetFlow, sFlow and IPFIX records through the companion collector nProbe. The table lists the main input methods and their trade-offs.
| Input method | Visibility | Typical use |
|---|---|---|
| Mirror port or tap | Full packets with application detection | Campus or branch uplink analysis |
| PF_RING capture | Full packets at multi-gigabit rates | Data center links of 10 Gbit/s and above |
| NetFlow or IPFIX via nProbe | Flow summaries from routers | Distributed WAN sites without taps |
| sFlow via nProbe | Sampled packets and counters | Large switched fabrics |
| Packet capture files | Historical packets offline | Forensic review of a saved trace |
Live counters stay in memory, while time series are written to RRD files or InfluxDB for historical charts. Flow history can be stored in ClickHouse in recent versions, which allows queries across weeks of flows when the disk budget allows it.
Main features for network monitoring
The web interface organizes data around hosts, flows, interfaces and applications, with drill-down from a summary dashboard to the individual conversation. Operators use it to find top talkers, unexpected protocols and sudden changes in traffic mix.
| Feature | What it shows | Typical question answered |
|---|---|---|
| Host view | Traffic, peers and applications per address | Which device is using the uplink |
| Application breakdown | Volume per nDPI protocol | How much bandwidth video streaming takes |
| Active flows table | Current conversations with throughput | What a host is doing right now |
| Behavioral checks | Alerts for suspicious patterns | Is a host scanning or beaconing |
| Geolocation and ASN maps | Remote countries and networks | Where external traffic is going |
Recent releases add flow and host checks that raise alerts for conditions such as port scans, connections to blacklisted addresses, self-signed TLS certificates, DNS anomalies and unusual data exfiltration volumes. These checks give ntopng a partial network detection and response role, although it is not a replacement for a dedicated intrusion detection system.
Comparison with other monitoring tools
ntopng fills a specific gap: it is broader than a packet analyzer and deeper than an SNMP poller. The table places it next to tools that are often deployed in the same environment.
| Tool | Primary data | Strength | Limitation |
|---|---|---|---|
| ntopng | Packets and flows | Live per-application traffic analysis | No device health polling by default |
| Wireshark | Individual packets | Protocol-level troubleshooting | Not built for continuous monitoring |
| LibreNMS | SNMP counters | Device inventory and interface health | No visibility inside traffic |
| PRTG Network Monitor | SNMP, flows and sensors | Broad infrastructure coverage | Commercial licensing per sensor |
| SmokePing | Active probes | Long-term latency and loss trends | Does not analyze user traffic |
A common design combines these tools: SNMP polling for device health, ntopng for traffic composition and Wireshark for detailed troubleshooting once ntopng has pointed to the problem flow.
Deploying and sizing ntopng
Placement decides what ntopng can see. A sensor on the internet uplink shows external traffic but misses east-west communication between internal servers, while a sensor on a core switch mirror port sees internal traffic but may exceed the mirror port bandwidth during peaks. Mirror ports drop packets silently when oversubscribed, so a passive tap is preferred on busy links.
Resource needs grow with the number of active hosts and flows rather than with raw bandwidth alone. A small office with a few hundred hosts runs comfortably on a modest virtual machine, whereas multi-gigabit links with hundreds of thousands of flows require dedicated cores, ample memory and fast storage for time series. Operators should define local networks in the configuration so that ntopng distinguishes internal hosts from remote ones and keeps detailed statistics only where they matter.
Limitations and privacy considerations
Encryption reduces what any traffic analyzer can see. With TLS 1.3 and encrypted DNS, nDPI still classifies many applications from handshake metadata and server names, but payload content is not visible, and Encrypted Client Hello can hide even the server name.
- Flow data is aggregated, so short anomalies may disappear in averages when only NetFlow input is available.
- Sampled sFlow input underestimates small flows and is unsuitable for exact per-host accounting.
- Traffic records can be personal data; retention and access should follow privacy rules such as the GDPR.
- Community edition features are limited, and some reporting and export functions require a paid license.
A non-technical view
ntopng is like a traffic camera for a computer network. It watches the data moving through a connection and shows, on a web page, which devices are busy, which services they use and how much data they move.
Instead of guessing why the internet feels slow, an administrator can open ntopng and see, for example, that one laptop is uploading a huge backup or that video streaming takes half the bandwidth. The main benefit is simple: it turns invisible network activity into a clear picture.
A concrete example
A secondary school with about 900 students complains that its 1 Gbit/s internet connection becomes unusable every weekday around 11 a.m. The network administrator connects a small server running ntopng to a mirror port on the core switch that carries the uplink and lets it collect data for a week.
The application breakdown shows that during the slow period about 60 percent of the bandwidth goes to operating system updates, all downloaded separately by classroom computers that wake from a scheduled power-saving mode at the same time. The administrator deploys a local update cache and staggers the schedule. The following week, peak uplink usage falls by roughly half, and the lunchtime slowdown disappears without buying a faster connection.