官方Quick Start
nDPI 的 github
簡介
- nDPI是一個開源的基於 OpenDPI 的 DPI 庫,目前由 ntop在維護
- nDPI 提供以下功能:
- 可以檢測的內容包括:
- 某個 IP 的:包個數、比特數、流總數、nDPI的吞吐量
- 源目的端口號
- 每個協議的:包個數、比特數、流個數
- 一些測量的統計信息
nDPI的環境依賴項安裝
$ sudo apt install autotools
$ sudo apt install libtool
$ sudo apt install gawk
$ sudo apt install gcc
$ sudo apt install build-essential
nDPI 安裝
$ git clone https://github.com/ntop/nDPI.git
$ cd <nDPI source code directory>
$ ./autogen.sh
$ ./configure
$ make
$ cd example
$ make
nDPI測試
- 通過 ifconfig 查看網卡設備信息,選擇其中的網卡 ens33

- 記得開啟 root
- 運行測試 nDPIReader ,參數 -i 表示指定網卡號,-s 指定測試時間
- 本測試中 測試網卡 ens33, 測量 10 秒鍾
- 開始測試以后,瘋狂刷新 百度 qq 谷歌等網站
- 測試結果如下:

