NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Defending SDN against packet injection attacks using deep learning

Anh Tuan Phu, Bo Li, Faheem Ullah, Tanvir Ul Huque, Ranesh Naha, Muhammad Ali Babar, Hung Nguyen

Introduction

Software-Defined Networking (SDN) has revolutionized network management by decoupling the control plane (the "brain") from the data plane (the "brawn"). In this architecture, switches forward traffic based on rules provided by a centralized controller. When a switch encounters a packet that does not match any existing flow rule, it generates a Packet-In message, forwarding the header to the controller for instructions.

While this centralized control offers flexibility, it introduces a significant security vulnerability: Packet Injection Attacks. By flooding the network with forged, unmatched packets, an attacker can force the controller to process an overwhelming volume of requests. This results in a dual-threat: the controller’s CPU is exhausted (Denial of Service), and the switch’s limited Ternary Content Addressable Memory (TCAM) is filled with useless flow rules. Traditional threshold-based defenses often fail to detect "low-profile" attacks—malicious traffic sent at irregular or low rates designed to mimic legitimate user behavior. This paper proposes a robust defense mechanism using Graph Convolutional Neural Networks (GCN) to identify these sophisticated threats by analyzing the relational structure of network traffic.

Methodology

The proposed framework utilizes HyperGCN, a variation of Graph Convolutional Networks, to move beyond isolated packet analysis and instead evaluate the network as a relational graph.

1. Graph Representation and Feature Extraction

Unlike traditional machine learning models that treat packets as independent data points, this approach models the network as a graph where nodes represent IP:Port combinations and edges represent the flow of traffic between them. This captures the structural context of network interactions. Raw traffic is first aggregated into "basic flows" and then "activity flows." Statistical features, such as flow duration and packets per second, are calculated to characterize the behavior of each node within the graph.

2. Two-Layer Detection Architecture

The system employs a hierarchical detection strategy:

  • Layer 1 (Detection): A binary classifier distinguishes between benign nodes and potential attackers.
  • Layer 2 (Identification): For nodes flagged as malicious, a multi-class classifier identifies the specific attack vector, such as DDoS or Port Scanning.

3. Mitigation Strategy

Once an attacker is identified, the controller proactively installs blocking rules at the switch level. By stopping malicious packets at the network edge (the switch), the system ensures they never reach the controller, effectively preventing the Packet-In bottleneck and preserving controller resources.

Experimental Setup and Datasets

The effectiveness of the GCN-based defense was evaluated using two primary datasets:

  • CICIDS2017: A standard benchmark containing common network attacks.
  • DDoS Variants Dataset: A custom dataset generated via the Mininet emulator. This dataset specifically includes stealthy attack patterns, such as low-rate DDoS and discontinuous (bursty) attacks, which are designed to bypass traditional security measures.

Results and Key Insights

High Detection Performance

The GCN model achieved an accuracy and F1-score exceeding 99% across both datasets. Notably, the model demonstrated superior generalization compared to traditional baselines like Support Vector Machines (SVM), Random Forest (RF), and Gradient Boosting. While RF performed well on known patterns, the GCN maintained high accuracy even when training data was highly imbalanced, proving its ability to learn structural "context" rather than just memorizing features.

System Efficiency

In active attack scenarios, the mitigation algorithm successfully protected the control plane. Controller CPU utilization remained manageable, peaking at approximately 35% (compared to a 13% idle rate). Without this defense, the controller would typically reach 100% utilization and crash under similar packet-injection rates. By using a separate detection module that monitors mirrored traffic, the defense system avoids adding computational overhead to the very controller it is protecting.

Discussion and Future Work

The use of GCNs highlights a critical shift in network security: the importance of connectivity patterns over individual packet metrics. An attacker may make a single flow look normal, but their position and connectivity within the network graph are much harder to disguise.

However, several challenges remain for future exploration:

  • Scalability: Current tests were conducted on emulated networks. Future research must validate the mitigation algorithm's performance on enterprise-scale topologies with over 100 switches.
  • Distributed Attacks: While the system identifies specific malicious nodes, further work is needed to address highly coordinated attacks where malicious behavior is distributed across thousands of seemingly minor actors.
  • Hardware Constraints: The impact of installing numerous blocking rules on physical switch memory (TCAM) requires further study to ensure that the defense mechanism does not inadvertently create a hardware performance bottleneck.

Summary updated

BibTeX
@article{phu2023defending,
  author = {Anh Tuan Phu and Bo Li and Faheem Ullah and Tanvir Ul Huque and Ranesh Naha and Muhammad Ali Babar and Hung Nguyen},
  title = {{Defending SDN against packet injection attacks using deep learning}},
  journal = {Computer Networks},
  year = {2023},
  doi = {10.1016/j.comnet.2023.109935},
}
Figure