pForest: In-Network Inference with Random Forests
Not on the map. Why?
Abstract (arXiv)
When classifying network traffic, a key challenge is deciding when to perform the classification, i.e., after how many packets. Too early, and the decision basis is too thin to classify a flow confidently; too late, and the tardy labeling delays crucial actions (e.g., shutting down an attack) and invests computational resources for too long (e.g., tracking and storing features). Moreover, the optimal decision timing varies across flows. We present pForest, a system for "As Soon As Possible" (ASAP) in-network classification according to supervised machine learning models on top of programmable data planes. pForest automatically classifies each flow as soon as its label is sufficiently established, not sooner, not later. A key challenge behind pForest is finding a strategy for dynamically adapting the features and the classification logic during the lifetime of a flow. pForest solves this problem by: (i) training random forest models tailored to different phases of a flow; and (ii) dynamically switching between these models in real time, on a per-packet basis. pForest models are tuned to fit the constraints of programmable switches (e.g., no floating points, no loops, and limited memory) while providing a high accuracy. We implemented a prototype of pForest in Python (training) and P4 (inference). Our evaluation shows that pForest can classify traffic ASAP for hundreds of thousands of flows, with a classification score that is on-par with software-based solutions.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). First posted on arXiv 12 Sep 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 3; 2023: 0; 2024: 5; 2025: 0; 2026: 1.
10 papers.
- 2024Brain-on-Switch: Towards Advanced Intelligent Network Data Plane via NN-Driven Traffic Analysis at Line-Speedcited by 5
- 2021FENXI: Deep-learning Traffic Analytics at the Edgecited by 4
- 2022IIsy: Practical In-Network Classificationcited by 3
- 2022Landing AI on Networks: An equipment vendor viewpoint on Autonomous Driving Networkscited by 2
- 2024Credence: Augmenting Datacenter Switch Buffer Sharing with ML Predictionscited by 1
- 2024ServeFlow: A Fast-Slow Model Architecture for Network Traffic Analysiscited by 1
- 2024Non-uniformity is All You Need: Efficient and Timely Encrypted Traffic Classification With ECHOcited by 1
- 2022Automating In-Network Machine Learningcited by 0
- 2024Optimal In-Network Distribution of Learning Functions for a Secure-by-Design Programmable Data Plane of Next-Generation Networkscited by 0
- 2026Boundary-Seeking GAN-Augmented TabTransformer for Adversarially Robust Intrusion Detectioncited by 0
- 2026Boundary-Seeking GAN-Augmented TabTransformer for Adversarially Robust Intrusion Detection17 Jul 2026
- 2024Optimal In-Network Distribution of Learning Functions for a Secure-by-Design Programmable Data Plane of Next-Generation Networks27 Nov 2024
- 2024Non-uniformity is All You Need: Efficient and Timely Encrypted Traffic Classification With ECHO3 Jun 2024
- 2024Brain-on-Switch: Towards Advanced Intelligent Network Data Plane via NN-Driven Traffic Analysis at Line-Speed17 Mar 2024
- 2024ServeFlow: A Fast-Slow Model Architecture for Network Traffic Analysis6 Feb 2024
- 2024Credence: Augmenting Datacenter Switch Buffer Sharing with ML Predictions5 Jan 2024
- 2022Automating In-Network Machine Learning18 May 2022
- 2022IIsy: Practical In-Network Classification17 May 2022
- 2022Landing AI on Networks: An equipment vendor viewpoint on Autonomous Driving Networks26 Apr 2022
- 2021FENXI: Deep-learning Traffic Analytics at the Edge25 May 2021