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

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.

Authors

Institutions

Publication Details

Journal
International Journal of Network Management
Published
2025-01-01
DOI
https://doi.org/10.1002/nem.2320
Citations
3
Primary Topic
Internet Traffic Analysis and Secure E-voting
Type
article
Field-Weighted Citation Impact
7.44

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Marco Fiore, Aristide Tanyi‐Jong Akem, Guillaume Fraysse
3 citations
International Journal of Network Management
Internet Traffic Analysis and Secure E-voting
7.44
article

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

Marco Fiore, Aristide Tanyi‐Jong Akem, Guillaume Fraysse
article en
3 citations

Abstract

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.

International Journal of Network ManagementVol. 35(1)
Orange (France) (FR), IMDEA Networks (ES), Universidad Carlos III de Madrid (ES)
European Commission, HORIZON EUROPE Framework Programme, Agencia Estatal de Investigación
Openalex Percentile: Top 4%
Internet Traffic Analysis and Secure E-voting
7.44
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.