mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-02 17:00:16 +00:00
Basically: * "classification by-ip" (i.e. `flow->guessed_protocol_id_by_ip` is NEVER returned in the protocol stack (i.e. `flow->detected_protocol_stack[]`); * if the application is interested into such information, it can access `ndpi_protocol->protocol_by_ip` itself. There are mainly 4 points in the code that set the "classification by-ip" in the protocol stack: the generic `ndpi_set_detected_protocol()`/ `ndpi_detection_giveup()` functions and the HTTP/STUN dissectors. In the unit tests output, a print about `ndpi_protocol->protocol_by_ip` has been added for each flow: the huge diff of this commit is mainly due to that. Strictly speaking, this change is NOT an API/ABI breakage, but there are important differences in the classification results. For examples: * TLS flows without the initial handshake (or without a matching SNI/certificate) are simply classified as `TLS`; * similar for HTTP or QUIC flows; * DNS flows without a matching request domain are simply classified as `DNS`; we don't have `DNS/Google` anymore just because the server is 8.8.8.8 (that was an outrageous behaviour...); * flows previusoly classified only "by-ip" are now classified as `NDPI_PROTOCOL_UNKNOWN`. See #1425 for other examples of why adding the "classification by-ip" in the protocol stack is a bad idea. Please, note that IPV6 is not supported :( (long standing issue in nDPI) i.e. `ndpi_protocol->protocol_by_ip` wil be always `NDPI_PROTOCOL_UNKNOWN` for IPv6 flows. Define `NDPI_CONFIDENCE_MATCH_BY_IP` has been removed. Close #1687
38 lines
7.7 KiB
Text
38 lines
7.7 KiB
Text
Guessed flow protos: 0
|
|
|
|
DPI Packets (TCP): 60 (4.00 pkts/flow)
|
|
Confidence DPI : 15 (flows)
|
|
Num dissector calls: 1830 (122.00 diss/flow)
|
|
LRU cache ookla: 0/0/0 (insert/search/found)
|
|
LRU cache bittorrent: 0/0/0 (insert/search/found)
|
|
LRU cache zoom: 0/0/0 (insert/search/found)
|
|
LRU cache stun: 0/0/0 (insert/search/found)
|
|
LRU cache tls_cert: 0/0/0 (insert/search/found)
|
|
LRU cache mining: 0/0/0 (insert/search/found)
|
|
LRU cache msteams: 0/0/0 (insert/search/found)
|
|
Automa host: 0/0 (search/found)
|
|
Automa domain: 0/0 (search/found)
|
|
Automa tls cert: 0/0 (search/found)
|
|
Automa risk mask: 0/0 (search/found)
|
|
Automa common alpns: 0/0 (search/found)
|
|
Patricia risk mask: 30/0 (search/found)
|
|
Patricia risk: 0/0 (search/found)
|
|
Patricia protocols: 30/0 (search/found)
|
|
|
|
AliCloud 225 22986 15
|
|
|
|
1 TCP 192.168.2.100:45094 <-> 8.209.76.194:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][7 pkts/822 bytes <-> 8 pkts/832 bytes][Goodput ratio: 43/36][0.49 sec][bytes ratio: -0.006 (Mixed)][IAT c2s/s2c min/avg/max/stddev: 4/1 17/67 23/322 7/115][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 117/104 274/250 77/60][Plen Bins: 28,28,0,0,14,14,14,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]
|
|
2 TCP 192.168.2.100:51774 <-> 8.209.77.36:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][7 pkts/822 bytes <-> 8 pkts/832 bytes][Goodput ratio: 43/36][0.46 sec][bytes ratio: -0.006 (Mixed)][IAT c2s/s2c min/avg/max/stddev: 3/0 14/64 20/318 7/114][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 117/104 274/250 77/60][Plen Bins: 28,28,0,0,14,14,14,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]
|
|
3 TCP 192.168.2.100:57322 <-> 8.209.107.122:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][7 pkts/822 bytes <-> 8 pkts/832 bytes][Goodput ratio: 43/36][0.33 sec][bytes ratio: -0.006 (Mixed)][IAT c2s/s2c min/avg/max/stddev: 2/0 16/41 24/166 9/57][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 117/104 274/250 77/60][Plen Bins: 28,28,0,0,14,14,14,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]
|
|
4 TCP 192.168.2.100:37160 <-> 8.209.107.125:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][8 pkts/1096 bytes <-> 7 pkts/538 bytes][Goodput ratio: 51/10][0.49 sec][bytes ratio: 0.341 (Upload)][IAT c2s/s2c min/avg/max/stddev: 18/1 69/77 237/237 76/84][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 137/77 274/122 89/19][Plen Bins: 33,16,0,0,16,0,33,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]
|
|
5 TCP 192.168.2.100:55484 <-> 8.209.107.157:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][8 pkts/1096 bytes <-> 7 pkts/538 bytes][Goodput ratio: 51/10][0.41 sec][bytes ratio: 0.341 (Upload)][IAT c2s/s2c min/avg/max/stddev: 3/0 56/65 242/241 84/89][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 137/77 274/122 89/19][Plen Bins: 33,16,0,0,16,0,33,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]
|
|
6 TCP 192.168.2.100:51682 <-> 8.209.73.197:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][7 pkts/822 bytes <-> 8 pkts/704 bytes][Goodput ratio: 43/24][0.96 sec][bytes ratio: 0.077 (Mixed)][IAT c2s/s2c min/avg/max/stddev: 9/0 19/145 29/567 7/203][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 117/88 274/122 77/26][Plen Bins: 28,42,0,0,14,0,14,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]
|
|
7 TCP 192.168.2.100:38094 <-> 8.209.104.159:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][8 pkts/888 bytes <-> 7 pkts/582 bytes][Goodput ratio: 40/19][0.61 sec][bytes ratio: 0.208 (Upload)][IAT c2s/s2c min/avg/max/stddev: 2/0 92/99 469/416 169/159][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 111/83 274/122 74/25][Plen Bins: 33,33,0,0,16,0,16,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]
|
|
8 TCP 192.168.2.100:39018 <-> 8.209.104.12:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][8 pkts/888 bytes <-> 7 pkts/582 bytes][Goodput ratio: 40/19][0.62 sec][bytes ratio: 0.208 (Upload)][IAT c2s/s2c min/avg/max/stddev: 3/0 93/99 480/420 173/161][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 111/83 274/122 74/25][Plen Bins: 33,33,0,0,16,0,16,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]
|
|
9 TCP 192.168.2.100:40154 <-> 8.209.104.159:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][8 pkts/888 bytes <-> 7 pkts/582 bytes][Goodput ratio: 40/19][0.77 sec][bytes ratio: 0.208 (Upload)][IAT c2s/s2c min/avg/max/stddev: 4/0 119/130 632/573 230/222][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 111/83 274/122 74/25][PLAIN TEXT (TGD/Ym)][Plen Bins: 33,33,0,0,16,0,16,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]
|
|
10 TCP 192.168.2.100:41056 <-> 8.209.73.197:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][8 pkts/888 bytes <-> 7 pkts/582 bytes][Goodput ratio: 40/19][0.78 sec][bytes ratio: 0.208 (Upload)][IAT c2s/s2c min/avg/max/stddev: 15/0 120/130 633/575 229/223][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 111/83 274/122 74/25][Plen Bins: 33,33,0,0,16,0,16,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]
|
|
11 TCP 192.168.2.100:42430 <-> 8.209.104.130:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][8 pkts/888 bytes <-> 7 pkts/582 bytes][Goodput ratio: 40/19][0.77 sec][bytes ratio: 0.208 (Upload)][IAT c2s/s2c min/avg/max/stddev: 9/0 118/128 625/570 227/221][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 111/83 274/122 74/25][Plen Bins: 33,33,0,0,16,0,16,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]
|
|
12 TCP 192.168.2.100:42600 <-> 8.209.105.125:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][8 pkts/888 bytes <-> 7 pkts/582 bytes][Goodput ratio: 40/19][0.77 sec][bytes ratio: 0.208 (Upload)][IAT c2s/s2c min/avg/max/stddev: 5/1 118/129 627/569 228/220][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 111/83 274/122 74/25][Plen Bins: 33,33,0,0,16,0,16,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]
|
|
13 TCP 192.168.2.100:44388 <-> 8.209.107.125:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][8 pkts/888 bytes <-> 7 pkts/582 bytes][Goodput ratio: 40/19][0.67 sec][bytes ratio: 0.208 (Upload)][IAT c2s/s2c min/avg/max/stddev: 5/1 100/107 520/456 188/175][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 111/83 274/122 74/25][Plen Bins: 33,33,0,0,16,0,16,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]
|
|
14 TCP 192.168.2.100:45078 <-> 8.209.105.125:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][8 pkts/888 bytes <-> 7 pkts/582 bytes][Goodput ratio: 40/19][0.60 sec][bytes ratio: 0.208 (Upload)][IAT c2s/s2c min/avg/max/stddev: 3/0 90/96 468/413 169/159][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 111/83 274/122 74/25][Plen Bins: 33,33,0,0,16,0,16,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]
|
|
15 TCP 192.168.2.100:52228 <-> 8.209.73.197:8999 [proto: 306/AliCloud][IP: 0/Unknown][Encrypted][Confidence: DPI][cat: Cloud/13][8 pkts/888 bytes <-> 7 pkts/582 bytes][Goodput ratio: 40/19][0.89 sec][bytes ratio: 0.208 (Upload)][IAT c2s/s2c min/avg/max/stddev: 6/1 138/152 628/568 223/214][Pkt Len c2s/s2c min/avg/max/stddev: 66/66 111/83 274/122 74/25][Plen Bins: 33,33,0,0,16,0,16,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]
|