ndpiReader: add statistics about nDPI performance (#1240)

The goal is to have a (roughly) idea about how many packets nDPI needs
to properly classify a flow.

Log this information (and guessed flows number too) during unit tests,
to keep track of improvements/regressions across commits.
This commit is contained in:
Ivan Nardi
2021-07-13 12:28:39 +02:00
committed by GitHub
parent 96b71def49
commit cccf794265
219 changed files with 989 additions and 0 deletions
+4
View File
@@ -1,3 +1,7 @@
Guessed flow protos: 0
DPI Packets (UDP): 8 (1.00 pkts/flow)
UBNTAC2 8 1736 8
1 UDP 192.168.1.1:34085 -> 255.255.255.255:10001 [proto: 31/UBNTAC2][cat: Network/14][1 pkts/217 bytes -> 0 pkts/0 bytes][Goodput ratio: 80/0][< 1 sec][UniFiSecurityGateway.ER-e120.v4][PLAIN TEXT (UniFiSecurityGateway.ER)][Plen Bins: 0,0,0,0,0,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]