Griffin: An Ensemble of AutoEncoders for Anomaly Traffic Detection in SDN

Liyan Yang, Yubo Song, Shang Gao, Bin Xiao, Aiqun Hu

Introduction

Traditional Network Intrusion Detection Systems (NIDS) in Software-Defined Networks (SDN) often struggle with a fundamental trade-off between detection speed and accuracy. Many existing machine learning solutions rely on offline training with pre-labeled datasets, making them ill-equipped to handle "zero-day" attacks in real-time. Furthermore, the dynamic nature of SDN traffic requires a system that is unsupervised, lightweight, and capable of online learning.

System Architecture

Griffin is designed as a novel, unsupervised NIDS that performs per-packet anomaly detection. Its architecture is strategically divided between the SDN Data Plane and the Control Plane to optimize performance and minimize latency.

Griffin System Architecture

The system operates in four primary stages:

  1. Packet Capture & Feature Extraction: Utilizing a damping function with an attenuation factor, Griffin maintains statistical tuples (e.g., mean and variance of packet sizes) that prioritize recent data. This allows for "infinite" windowing without the memory overhead of storing every packet.
  2. Feature Mapper: To manage computational complexity, hierarchical clustering groups 115 extracted features into $k$ smaller sub-instances.
  3. Anomaly Detector (Ensemble Layer): The core of Griffin is an ensemble of small autoencoders. Each autoencoder processes a specific subset of features. A final output layer autoencoder takes the Root Mean Square Error (RMSE) from the ensemble to produce a final anomaly score.
  4. Online Learning: The model updates dynamically using Stochastic Gradient Descent (SGD) as it processes "normal" traffic. High RMSE values trigger anomaly flags, allowing the controller to immediately mitigate threats.

Performance Evaluation

Griffin was evaluated using the Kitsune dataset, which includes a variety of real-world attacks such as Mirai botnet traffic, SYN DDoS, and SSL Renegotiation.

Comparison of CPU usage and MCC across different algorithms

The experimental results demonstrate Griffin's superiority over standard models like ANN-SVM and Random Forest:

  • Accuracy & MCC: Griffin achieved a consistent 98% accuracy and a Matthews Correlation Coefficient (MCC) of 0.982, significantly outperforming basic SVM and Random Forest implementations (which ranged from 0.62 to 0.69).
  • Efficiency: By employing an ensemble of small networks rather than one large model, Griffin reduced CPU overhead to approximately 45%, compared to 85% for competing ensemble-based NIDS.
  • Latency: Detection latency is concentrated at 0.1 seconds, facilitating near real-time network protection.

Conclusion and Future Work

Griffin provides a robust, memory-efficient solution for SDN security by combining ensemble learning with online updates. While highly effective, future research could address potential vulnerabilities to adversarial machine learning attacks and explore automated online feature selection to further streamline the ensemble architecture. Testing on carrier-grade hardware will also be crucial for validating its scalability in massive network environments.

Summary updated

BibTeX
@inproceedings{yang2020griffin,
  author = {Liyan Yang and Yubo Song and Shang Gao and Bin Xiao and Aiqun Hu},
  title = {{Griffin: An Ensemble of AutoEncoders for Anomaly Traffic Detection in SDN}},
  booktitle = {GLOBECOM},
  year = {2020},
  doi = {10.1109/globecom42002.2020.9322187},
}
Figure