arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1909.05680cs.NI
收藏

pForest:基于随机森林的网内推理

pForest: In-Network Inference with Random Forests

Coralie Busse-Grawitz, Roland Meier, Alexander Dietmüller, Tobias Bühler, Laurent Vanbever

摘要:

在对网络流量进行分类时,一个关键挑战是决定何时执行分类,即,多少包后。太早,决策基础太薄,无法自信地对流进行分类;太晚,迟缓的标记延迟了关键的动作(例如,关闭攻击)并且花费计算资源太长时间(例如,跟踪和存储特征)。此外,最佳决策时间在不同的流中也有所不同。我们提出了pForest,这是一个根据可编程数据平面上的监督机器学习模型进行"尽快"(ASAP)网络内分类的系统。pForest会在流的标签充分建立后立即自动对每个流进行分类,不早也不晚。pForest背后的一个关键挑战是找到一种在流的生命周期内动态适应特征和分类逻辑的策略。pForest通过以下方式解决了这个问题:(i)训练针对流的不同阶段定制的随机森林模型;(ii)在每个数据包的基础上,实时的在这些模型之间动态切换。pForest模型经过调整以适应可编程开关的约束(例如,无浮点、无循环和有限的存储器),同时提供高精度。我们在Python(训练)和P4(推理)中实现了pForest的原型。我们的评估表明,pForest可以尽快对数十万个流量进行分类,其分类得分与基于软件的解决方案相当。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑