Encrypted Traffic Classification at Line Rate in Programmable Switches with Machine Learning

Классификация зашифрованного трафика на пропускной способности («line rate») в программируемых коммутаторах с использованием машинного обучения
Marco Fiore, Aristide Tanyi‐Jong Akem, Guillaume Fraysse
2024-05-06

Encrypted Traffic ClassificationP4Random Forestline rateprogrammable switches
Encrypted Traffic Classification (ETC) has become an important area of research with Machine Learning (ML) methods being 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 (SDN), all of which do not run at line rate and would not meet latency requirements of time-sensitive applications in modern networks. This work leverages recent advances in data plane programmability to achieve real-time ETC in programmable switches at line rate, with high throughput and low latency. The proposed solution comprises (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 production-grade P4-programmable switches. The performance of the proposed in-switch ETC framework is evaluated using 3 encrypted traffic datasets with experiments in a real-world testbed with Intel Tofino switches, in the presence of background traffic at 40 Gbps. Results show how the solution achieves high classification accuracy of up to 95%, with sub-microsecond delay, while consuming on average less than 10% of total available switch hardware resources.
1
Evaluation on three encrypted traffic datasets in a real-world testbed with Intel Tofino switches and 40 Gbps background traffic achieved up to 95% classification accuracy.
2
Implemented real-time encrypted traffic classification (ETC) at line rate inside programmable switches using a Random Forest model encoded in P4.
3
The RF model uses only packet size and packet arrival time features, enabling in-switch inference without payload access.
4
The in-switch ETC framework provides sub-microsecond classification delay, meeting low-latency requirements of time-sensitive applications.
5
The solution consumes on average less than 10% of total available switch hardware resources, demonstrating practical resource efficiency.

P4-programmable data-plane switches (programmable switches implementing an in-switch Encrypted Traffic Classification framework)

Real-time, line-rate encrypted traffic classification performance (accuracy, latency, throughput, and hardware-resource consumption) of an encoded Random Forest ML model implemented in the switch data plane

Publication Details
Publication Date
2024-05-06
Journal
Publisher
ISSN
Cited by
22
Access Type
Author Information
Authors
Marco Fiore
Aristide Tanyi‐Jong Akem
Guillaume Fraysse
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%