# Introducing nDPI 4.0: DPI for CyberSecurity and Traffic Analysis | ntop

[Blog](https://www.ntop.org/blog/)[nDPI](https://www.ntop.org/category/ndpi/)

# Introducing nDPI 4.0: DPI for CyberSecurity and Traffic Analysis

July 26, 20212 min read

This is to announce nDPI 4.0. With this new stable release we have extended the scope of nDPI that was originally conceived as a toolkit for detecting application protocols.

![](/images/2021/07/NDPI.webp)

nDPI is now a modern library for packet processing that in addition to DPI it includes self-contained, efficient (both in memory and processing speed) streaming versions of popular algorithms for data analysis including:

-   Data Forecasting and Anomaly Detection
    -   Single, Double, Triple (Holt-Winters) [Exponential Smoothing](https://en.wikipedia.org/wiki/Exponential_smoothing)
    -   [RSI](https://en.wikipedia.org/wiki/Relative_strength_index) (Relative Strength Index)
    -   [Data Binning](https://en.wikipedia.org/wiki/Data_binning), Clustering, and Similarity Evaluation
-   Network Data Analysis
    -   [Jitter](https://en.wikipedia.org/wiki/Jitter)
    -   [Entropy](https://en.wikipedia.org/wiki/Entropy)
    -   [GeoIP](https://en.wikipedia.org/wiki/Internet_geolocation)
    -   Data Ratio (also known as PCR)
    -   [Rolling Average](https://en.wikipedia.org/wiki/Moving_average), [Standard Deviation](https://en.wikipedia.org/wiki/Standard_deviation), [Variance](https://en.wikipedia.org/wiki/Variance) (all implemented as streamed versions)
-   IP Address Retrieval
    -   [Radix](https://en.wikipedia.org/wiki/Radix_tree) (Patricia) Tree ([trie](https://en.wikipedia.org/wiki/Trie))
-   Cardinality Estimation
    -   [HyperLogLog](https://en.wikipedia.org/wiki/HyperLogLog)
-   (Sub-)String Searching
    -   [Aho-Corasick](https://en.wikipedia.org/wiki/Aho%E2%80%93Corasick_algorithm)

This means that you can use nDPI as a layer on top of which you can build your network traffic analysis application. Do not forget that nDPI is a packet-capture neutral library, meaning that nDPI does not include packet capture facilities but it can sit on top of libpcap, PF\_RING, DPDK or anything you like.

We have also boosted cybersecurity features that were designed in the 3.x series. This includes

-   Improved  ETA ([Encrypted Traffic Analysis](https://web.archive.org/web/20210804034409/https://www.enisa.europa.eu/publications/encrypted-traffic-analysis/at_download/fullReport)).
-   Implementation of a new nDPI-unique fingerprint named JA3+ that is an improvement (read it as less false positives) with the popular [JA3](https://github.com/salesforce/ja3).
-   Increased the number of flow risks currently supported (currently 33 in total).
-   Added the ability to mask flow risks by extending custom protocol definition.

In addition to all this, this 4.0 release has been boosted in terms of speed with a **2.5x** improvement with respect to 3.x series. Below you can see a performance report when comparing the previous 3.4 stable release with the current version 4.0

-           v3.4 – nDPI throughput:       1.29 M pps / 3.35 Gb/sec
-           v4.0 – nDPI throughput:       3.35 M pps / 8.68 Gb/sec

Many new protocols (14) have been added, and detection of existing ones has been improved.

We would like to thank to all developers and contributors and in particular to [lnslbrty](https://github.com/ntop/nDPI/commits?author=lnslbrty), [IvanNardi](https://github.com/ntop/nDPI/commits?author=IvanNardi), [vel21ripn](https://github.com/ntop/nDPI/commits?author=vel21ripn) for the time they donated to the project.

Finally many thanks to [Braintrace](http://www.braintrace.com) for supporting nDPI development and triggering new ideas and features now included in this release.

Enjoy !

## Keep reading

AINov 7, 2026

### [Sharkfest 26EU: HowTo Detect Stealth VPN and AI Inference Traffic](https://www.ntop.org/sharkfest-26eu-howto-detect-stealth-vpn-and-ai-inference-traffic/)

Earlier this week we have presented at Sharkfest Europe 2026 a presentation of our work about traffic detection of Stealth VPNs and AI Inference. The presentation addresses the challenges of detecting modern obfuscated network traffic, specifically from stealth VPNs and custom/local artificial intel

nDPINov 7, 2026

### [Detecting CVE-2026-98432 using nDPI/ntopng](https://www.ntop.org/detecting-cve-2026-98432-using-ndpi-ntopng/)

CVE-2026-98432 is a critical, 9.8-severity use-after-free (UAF) vulnerability in the Linux kernel’s IPv4 TCP networking stack. It allows an unauthenticated remote attacker to potentially cause system crashes, memory corruption, or execute arbitrary commands with root privileges. From a network stand

nDPISep 29, 2026

### [Introducing the nDPI TCP Fingerprint: A Stable, Patent-Free Way to Fingerprint TCP Stacks](https://www.ntop.org/introducing-the-ndpi-tcp-fingerprint-a-stable-patent-free-way-to-fingerprint-tcp-stacks/)

Every TCP connection starts with a SYN, and that first packet says a lot about the machine that sent it. The Linux, Windows, macOS and Android stacks each set different flags, choose…

## Try it on your own network

Download the free Community edition and see your first flows in five minutes.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/introducing-ndpi-4-0-dpi-for-cybersecurity-and-traffic-analysis/