ntopng

On this page 7

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 methodVisibilityTypical use
Mirror port or tapFull packets with application detectionCampus or branch uplink analysis
PF_RING captureFull packets at multi-gigabit ratesData center links of 10 Gbit/s and above
NetFlow or IPFIX via nProbeFlow summaries from routersDistributed WAN sites without taps
sFlow via nProbeSampled packets and countersLarge switched fabrics
Packet capture filesHistorical packets offlineForensic review of a saved trace
Data sources for ntopng

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.

FeatureWhat it showsTypical question answered
Host viewTraffic, peers and applications per addressWhich device is using the uplink
Application breakdownVolume per nDPI protocolHow much bandwidth video streaming takes
Active flows tableCurrent conversations with throughputWhat a host is doing right now
Behavioral checksAlerts for suspicious patternsIs a host scanning or beaconing
Geolocation and ASN mapsRemote countries and networksWhere external traffic is going
Core ntopng features and what they reveal

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.

ToolPrimary dataStrengthLimitation
ntopngPackets and flowsLive per-application traffic analysisNo device health polling by default
WiresharkIndividual packetsProtocol-level troubleshootingNot built for continuous monitoring
LibreNMSSNMP countersDevice inventory and interface healthNo visibility inside traffic
PRTG Network MonitorSNMP, flows and sensorsBroad infrastructure coverageCommercial licensing per sensor
SmokePingActive probesLong-term latency and loss trendsDoes not analyze user traffic
ntopng and neighboring monitoring tools

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.