Jewel: Resource-Efficient Joint Packet and Flow Level Inference in Programmable Switches
Authors:
- 20 May 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1631-1640
Abstract
Embedding machine learning (ML) models in programmable switches realizes the vision of high-throughput and low-latency inference at line rate. Recent works have made breakthroughs in embedding Random Forest (RF) models in switches for either packet-level inference or flow-level inference. The former relies on simple features from packet headers that are simple to implement but limit accuracy in challenging use cases; the latter exploits richer flow features to improve accuracy, but leaves early packets in each flow unclassified. We propose Jewel, an in-switch ML model based on a fully joint packet-and flow-level design, which takes the best of both worlds by classifying early flow packets individually and shifting to flow-level inference when possible. Our proposal involves (i) a single RF model trained to classify both packets and flows, and (ii) hardware-aware model selection and training techniques for resource footprint minimization. We implement Jewel in P4 and deploy it in a testbed with Intel Tofino switches, where we run extensive experiments with a variety of real-world use cases. Results reveal how our solution outperforms four state-of-the-art benchmarks, with accuracy gains in the 2.0%–5.3% range.Keywords
Funding Information
- CHIST-ERA
- Agencia Estatal de Investigación
- Ministry of Economic Affairs
This publication has 30 references indexed in Scilit:
- A Learning Methodology for Line-Rate Ransomware Mitigation with P4 Switches2022
- INC: In-Network Classification of Botnet Propagation at Line Rate2022
- Towards Network-accelerated ML-based Distributed Computer Vision Systems2021
- SwitchTree: in-network computing and traffic analyses with Random ForestsNeural Computing and Applications, 2020
- TON_IoT Telemetry Dataset: A New Generation Dataset of IoT and IIoT for Data-Driven Intrusion Detection SystemsIEEE Access, 2020
- A Survey of Networking Applications Applying the Software Defined Networking Concept Based on Machine LearningIEEE Access, 2019
- Deep Learning in Mobile and Wireless Networking: A SurveyIEEE Communications Surveys & Tutorials, 2019
- A Survey of Machine Learning Techniques Applied to Software Defined Networking (SDN): Research Issues and ChallengesIEEE Communications Surveys & Tutorials, 2018
- Early Identification of Peer-to-Peer Traffic2011
- Detection of Encrypted Tunnels Across Network Boundaries2008