Skip to main content
QUICK REVIEW

[论文解读] Introducing Packet-Level Analysis in Programmable Data Planes to Advance Network Intrusion Detection

Roberto Doriguzzi-Corin, Luis Augusto Dias Knob|arXiv (Cornell University)|Jul 12, 2023
Network Security and Intrusion DetectionComputer Science被引用 3
一句话总结

P4DDLe 是一种基于 P4 的框架,可在可编程数据平面中实现数据包级别的特征提取与预处理,以增强网络入侵检测能力。通过使用概率哈希技术,仅将相关数据包级别特征转发至控制平面,有效降低控制通道开销,同时保留流语义,即使在内存资源有限的情况下,仍能实现高检测准确率(F1 分数 ~0.96)和极低的数据丢失率。

ABSTRACT

Programmable data planes offer precise control over the low-level processing steps applied to network packets, serving as a valuable tool for analysing malicious flows in the field of intrusion detection. Albeit with limitations on physical resources and capabilities, they allow for the efficient extraction of detailed traffic information, which can then be utilised by Machine Learning (ML) algorithms responsible for identifying security threats. In addressing resource constraints, existing solutions in the literature rely on compressing network data through the collection of statistical traffic features in the data plane. While this compression saves memory resources in switches and minimises the burden on the control channel between the data and the control plane, it also results in a loss of information available to the Network Intrusion Detection System (NIDS), limiting access to packet payload, categorical features, and the semantic understanding of network communications, such as the behaviour of packets within traffic flows. This paper proposes P4DDLe, a framework that exploits the flexibility of P4-based programmable data planes for packet-level feature extraction and pre-processing. P4DDLe leverages the programmable data plane to extract raw packet features from the network traffic, categorical features included, and to organise them in a way that the semantics of traffic flows are preserved. To minimise memory and control channel overheads, P4DDLe selectively processes and filters packet-level data, so that only the features required by the NIDS are collected. The experimental evaluation with recent Distributed Denial of Service (DDoS) attack data demonstrates that the proposed approach is very efficient in collecting compact and high-quality representations of network flows, ensuring precise detection of DDoS attacks.

研究动机与目标

  • 解决现有方案依赖统计流量特征所导致的缺陷,这些特征会丢失关键的数据包级别和分类信息。
  • 克服因完整数据包镜像导致的 SDN 基入侵检测系统中带宽和内存瓶颈。
  • 通过提供丰富、数据包级别的流表示,而非聚合统计信息,使最先进的基于机器学习的 NIDS 能够有效运行。
  • 通过使用概率数据结构选择性地处理和转发仅关键特征,最大限度减少数据平面中的资源使用。
  • 保留数据包级别的细节(如时间戳、标志位和有效载荷上下文),以保持流语义,实现对复杂攻击(如 DDoS)的精确检测。

提出的方法

  • 利用 P4 实现可编程数据平面流水线,提取原始数据包级别特征,包括 IP 标志、DSCP 和 TCP 标志等分类属性。
  • 采用计数布隆过滤器作为概率哈希结构,高效跟踪并选择基于流级别标准的转发数据包。
  • 应用选择性过滤机制,仅转发 ML 基 NIDS 所需的最小特征集,从而减少控制通道负载和内存使用。
  • 将数据包特征组织为结构化流表示,以保持流中各数据包之间的时序和语义关系。
  • 与控制平面中经过修改的 Lucid 基于机器学习的 NIDS 集成,使用精简特征集(9 个特征)和每流仅 4 个数据包,以模拟实时运行。
  • 将特征提取和预处理任务卸载至数据平面,实现在将数据发送至控制器进行机器学习推理前的高效、低延迟流量分析。

实验结果

研究问题

  • RQ1与传统的统计特征聚合相比,数据平面中实现数据包级别的特征提取是否能提升基于机器学习的网络入侵检测的准确性?
  • RQ2在保留关键流语义以支持 DDoS 检测的前提下,可编程数据平面在多大程度上能够减少控制通道开销?
  • RQ3在选择性转发数据包级别特征时,计数布隆过滤器的使用对内存效率和检测性能有何影响?
  • RQ4在实时基于机器学习的 NIDS 中,将每流数据包数从 100 个减少到 4 个,会对性能产生何种影响?
  • RQ5在状态内存和计算资源有限的情况下,轻量级、基于数据平面的预处理流水线是否仍能维持高检测准确率?

主要发现

  • 在 CIC-DDoS2019 数据集上,P4DDLe 在仅每流 4 个数据包和 9 个特征的在线推理条件下,平均 F1 分数达到约 0.93,表明即使在数据传输量极小的情况下,仍能实现高检测准确率。
  • 错误漏报率(FNR)保持在约 0.013 的低水平,表明 P4DDLe 在内存受限条件下仍能成功捕获大多数恶意流。
  • 在减少特征和每流数据包数时,HOIC 攻击的错误假报率(FPR)从 0.16% 上升至 1.5%,但整体仍保持在较低水平。
  • 对于 LOIC 和 HOIC 攻击,当特征集和数据包数量减少时,F1 分数下降约 3%,表明存在可衡量但可控的性能权衡。
  • 系统在不同流速率下均保持稳定性能,当流速率上升时,收集的流数量也随之增加,这是由于计数布隆过滤器实现了高效的内存利用。
  • 控制平面性能保持稳健,经修改的 Lucid NIDS 在所有测试数据集上的 F1 分数均超过 0.95,证明了深度学习模型对输入特征减少的适应能力。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。