EconPapers    
Economics at your fingertips  
 

Real‐Time Encrypted Traffic Classification in Programmable Networks with P4 and Machine Learning

Aristide Tanyi‐Jong Akem, Guillaume Fraysse and Marco Fiore

International Journal of Network Management, 2025, vol. 35, issue 1

Abstract: Network traffic encryption has been on the rise in recent years, making encrypted traffic classification (ETC) an important area of research. Machine learning (ML) methods for ETC are widely regarded as the state of the art. However, most existing solutions either rely on offline ETC based on collected network data or on online ETC with models running in the control plane of software‐defined networks, all of which do not run at line rate and would not meet the strict requirements of ultra‐low‐latency applications in modern networks. This work exploits recent advances in data plane programmability to achieve real‐time ETC in programmable switches at line rate, with high throughput and low latency. An extensive analysis is first conducted to show how tree‐based models excel in ETC on various datasets. Then, a workflow is proposed for in‐switch ETC with tree‐based models. The proposed workflow builds on (i) an ETC‐aware random forest (RF) modelling process where only features based on packet size and packet arrival times are used and (ii) an encoding of the trained RF model into off‐the‐shelf P4‐programmable switches. The performance of the proposed in‐switch ETC solution is evaluated on three use cases based on publicly available encrypted traffic datasets. Experiments are then conducted in a real‐world testbed with Intel Tofino switches, in the presence of high‐speed background traffic. Results show how the solution achieves high classification accuracy of up to 95% in QUIC traffic classification, with submicrosecond delay while consuming less than 10% on average of the total hardware resources available on the switch.

Date: 2025
References: Add references at CitEc
Citations:

Downloads: (external link)
https://doi.org/10.1002/nem.2320

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:wly:intnem:v:35:y:2025:i:1:n:e2320

Access Statistics for this article

More articles in International Journal of Network Management from John Wiley & Sons
Bibliographic data for series maintained by Wiley Content Delivery ().

 
Page updated 2025-03-20
Handle: RePEc:wly:intnem:v:35:y:2025:i:1:n:e2320