ZYELL-NCTU NetTraffic-1.0: A Large-Scale Dataset for Real-World Network Anomaly Detection

Lei Chen, Shao-En Weng, Chu-Jun Peng, Hong-Han Shuai, Wen-Huang Cheng

Abstract

Network Anomaly Detection (NAD) research often relies on outdated or heavily anonymized datasets that fail to capture the complexities of modern industrial network traffic. This paper presents ZYELL-NCTU NetTraffic-1.0, a massive dataset containing 22.5 million records derived from real-world firewall logs. Unlike existing benchmarks, this dataset preserves routing context and incorporates engineered statistical features to better represent the "needle in a haystack" nature of intrusion detection. Initial benchmarking with classic machine learning models shows low F1 scores, demonstrating the dataset's value as a challenging and realistic benchmark for next-generation security systems.

1. Introduction

The effectiveness of Intrusion Detection Systems (IDS) is frequently hampered by the quality of training data. Many researchers still utilize datasets from the late 1990s, such as KDD’99, or datasets that have been anonymized to the point of losing critical context like source and destination IP information. Furthermore, synthetic datasets generated in virtual environments often lack the "noise" and unpredictable patterns of real-world corporate traffic.

ZYELL-NCTU NetTraffic-1.0 addresses these gaps by providing a large-scale, non-anonymized dataset that reflects the actual performance requirements of industrial firewall products.

2. Methodology and Testbed Architecture

To ensure realism, the researchers constructed a physical testbed within ZYELL’s corporate environment using Unified Security Gateway (USG) devices. This architecture allowed for the capture of authentic background traffic while simulating specific attack vectors.

Physical testbed architecture using Unified Security Gateway (USG) devices.

2.1 Attack Simulation

Ground truth for anomalies was established by simulating four attack types using standard tools like hping3 and nmap:

  • DDoS-smurf: Flooding targets with spoofed ICMP packets.
  • Probing (IP sweep, Port sweep, and Nmap): Network scanning to identify active hosts and services.

2.2 Feature Engineering

Beyond standard flow features (e.g., protocol, byte counts), the authors engineered 12 statistical features. These features utilize sliding time windows ($T$) and connection windows ($N$) to track patterns such as the number of unique destination IPs from a single source. These temporal features are essential for identifying the repetitive, automated behaviors characteristic of scanners and botnets.

3. Dataset Characteristics

The ZYELL-NCTU NetTraffic-1.0 dataset consists of approximately 22.5 million instances. It is characterized by a high degree of class imbalance, with "Normal" traffic accounting for 98.4% of the data and attacks representing only ~1.5%. This distribution mimics the real-world "needle in a haystack" scenario. Crucially, the authors introduced "concept drift" by ensuring the probability distribution of the testing data differs from the training data, forcing models to generalize beyond simple pattern matching.

4. Benchmarking and Results

The dataset was benchmarked using four standard machine learning algorithms: K-Nearest Neighbors (KNN), Random Forest, Quadratic Discriminant Analysis (QDA), and ID3.

Benchmark performance of standard machine learning models on the NetTraffic-1.0 dataset.

The results indicate that the dataset is highly challenging. While accuracy figures might appear moderate (0.47 to 0.61), the more critical metrics—Precision, Recall, and F1 score—remain low. Random Forest emerged as the top performer but only achieved an F1 score of 0.3635. These results suggest that standard models struggle with the realistic complexity and class imbalance of NetTraffic-1.0.

5. Conclusion

ZYELL-NCTU NetTraffic-1.0 provides a rigorous new benchmark for the NAD community. By moving away from anonymized and synthetic data, it exposes the limitations of current machine learning approaches in real-world settings. Future work will focus on expanding the variety of attack profiles and exploring advanced architectures, such as Graph Neural Networks, to improve detection performance on this challenging dataset.

Summary updated

BibTeX
@inproceedings{chen2021zyell,
  author = {Lei Chen and Shao-En Weng and Chu-Jun Peng and Hong-Han Shuai and Wen-Huang Cheng},
  title = {{ZYELL-NCTU NetTraffic-1.0: A Large-Scale Dataset for Real-World Network Anomaly Detection}},
  booktitle = {ICCE-TW},
  year = {2021},
  doi = {10.1109/icce-tw52618.2021.9602909},
}
Figure