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): 27 (1.80 pkts/flow)
Dropbox 848 90532 15
1 UDP 192.168.56.1:50318 <-> 192.168.56.101:17500 [proto: 121/Dropbox][cat: Cloud/13][100 pkts/13960 bytes <-> 100 pkts/6260 bytes][Goodput ratio: 70/33][11.19 sec][bytes ratio: 0.381 (Upload)][IAT c2s/s2c min/avg/max/stddev: 103/103 113/112 150/151 11/11][Pkt Len c2s/s2c min/avg/max/stddev: 136/59 140/63 143/66 2/2][PLAIN TEXT (messageType)][Plen Bins: 50,0,13,36,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,0,0]