[Paper Review] Introducing Packet-Level Analysis in Programmable Data Planes to Advance Network Intrusion Detection
P4DDLe is a P4-based framework that enables packet-level feature extraction and pre-processing in programmable data planes to enhance network intrusion detection. By using probabilistic hashing to selectively forward only relevant packet-level features to the control plane, it reduces control channel overhead while preserving flow semantics, achieving high detection accuracy (F1 score ~0.96) with minimal data loss despite limited memory resources.
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.
Motivation & Objective
- Address the limitation of existing solutions that rely on statistical traffic features, which lose critical packet-level and categorical information.
- Overcome the bandwidth and memory bottlenecks in SDN-based intrusion detection systems caused by full packet mirroring.
- Enable state-of-the-art machine learning-based NIDS to operate effectively by providing rich, packet-level flow representations instead of aggregated statistics.
- Minimize resource usage in the data plane by selectively processing and forwarding only essential features using probabilistic data structures.
- Preserve flow semantics and enable precise detection of complex attacks like DDoS by retaining packet-level details such as timestamps, flags, and payload context.
Proposed method
- Leverages P4 to implement a programmable data plane pipeline that extracts raw packet-level features, including categorical attributes like IP flags, DSCP, and TCP flags.
- Employs a counting Bloom filter as a probabilistic hashing structure to efficiently track and select which packets to forward based on flow-level criteria.
- Applies selective filtering to forward only the minimal set of features required by the ML-based NIDS, reducing control channel load and memory usage.
- Organizes packet features into structured flow representations that maintain temporal and semantic relationships across packets in a flow.
- Integrates with a modified version of the Lucid ML-based NIDS in the control plane, using a reduced feature set (9 features) and only 4 packets per flow to simulate real-time operation.
- Offloads feature extraction and pre-processing to the data plane, enabling efficient, low-latency traffic analysis before sending data to the controller for ML inference.
Experimental results
Research questions
- RQ1Can packet-level feature extraction in the data plane improve the accuracy of ML-based network intrusion detection compared to traditional statistical feature aggregation?
- RQ2To what extent can a programmable data plane reduce control channel overhead while preserving critical flow semantics for DDoS detection?
- RQ3How does the use of a counting Bloom filter impact memory efficiency and detection performance when selectively forwarding packet-level features?
- RQ4What is the performance impact of reducing the number of packets per flow from 100 to 4 in a real-time ML-based NIDS?
- RQ5Can a lightweight, data-plane-based pre-processing pipeline maintain high detection accuracy despite limited stateful memory and computational resources?
Key findings
- P4DDLe achieves an average F1 score of approximately 0.93 on the CIC-DDoS2019 dataset under online inference with only 4 packets per flow and 9 features, demonstrating high detection accuracy despite minimal data transfer.
- The False Negative Rate (FNR) is kept low at around 0.013, indicating that P4DDLe successfully captures most malicious flows even under memory constraints.
- The False Positive Rate (FPR) increases moderately from 0.16% to 1.5% for the HOIC-based attack when reducing features and packets per flow, but remains low overall.
- For the LOIC and HOIC attacks, the F1 score decreases by about 3% when reducing the feature set and packet count, indicating a measurable but manageable performance trade-off.
- The system maintains stable performance across varying flow rates, with the number of collected flows increasing when flow rate rises, due to efficient memory utilization via the counting Bloom filter.
- The control plane performance remains robust, with the modified Lucid NIDS achieving F1 scores above 0.95 across all tested datasets, proving the adaptability of deep learning models to reduced input features.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.