CascadeNet: Generating Network Traffic with High-Fidelity Temporal Patterns

Runwei Lu (New York University Shanghai), Yanran Deng (New York University Shanghai), Ruixuan Li (New York University Shanghai), Jinting Liu (New York University Shanghai), Yuejie Wang (Peking University), Xinyu Li (Carnegie Mellon University), Deming Xu (New York University Shanghai), Han Tian (University of Science and Technology of China), Kai Chen (Hong Kong University of Science and Technology), Guyue Liu (Peking University)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · When Systems Run Themselves

Overview

High-fidelity synthetic network traces are essential for network research, performance benchmarking, anomaly detection, and traffic classification. However, acquiring real-world network packet captures is severely restricted by privacy regulations, security sensitivities, and proprietary constraints. While machine learning-based trace generation has emerged as a promising alternative, existing models suffer from a fundamental limitation: they fail to capture complex, evolving temporal patterns such as packet rate, throughput dynamics, and burstiness. Models that treat traces as independent records ignore sequence ordering entirely, while sequence-based models and flow-based generators struggle with long-term dependencies when encountering elephant flows containing tens of thousands of packets.

Watch on YouTube · Slides

Visual summary for CascadeNet: Generating Network Traffic with High-Fidelity Temporal Patterns by Runwei Lu, Yanran Deng, Ruixuan Li, Jinting Liu, Yuejie Wang, Xinyu Li, Deming Xu, Han Tian, Kai Chen, Guyue Liu
Visual summary for CascadeNet: Generating Network Traffic with High-Fidelity Temporal Patterns by Runwei Lu, Yanran Deng, Ruixuan Li, Jinting Liu, Yuejie Wang, Xinyu Li, Deming Xu, Han Tian, Kai Chen, Guyue Liu

Key moments

  1. 0:00 Introduction and motivation for synthetic network trace generation
  2. 2:04 Analysis of existing models and key insights on temporal patterns
  3. 4:06 Overview of the CascadeNet workflow and architecture
  4. 5:36 CascadeGAN hierarchical model design and training strategy
  5. 7:19 Technical details on timestamp recovery and distribution challenges
  6. 9:18 Evaluation setup and temporal fidelity results
  7. 10:48 Downstream task performance and anomaly detection evaluation
  8. 12:14 Diversity, scalability analysis, and conclusion

CascadeNet: Generating Network Traffic with High-Fidelity Temporal Patterns

Speakers: Runwei Lu (New York University Shanghai); Yanran Deng (New York University Shanghai); Ruixuan Li (New York University Shanghai); Jinting Liu (New York University Shanghai); Yuejie Wang (Peking University); Xinyu Li (Carnegie Mellon University); Deming Xu (New York University Shanghai); Han Tian (University of Science and Technology of China); Kai Chen (Hong Kong University of Science and Technology); Guyue Liu (Peking University)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=IqqK2xe7J3g

Overview

High-fidelity synthetic network traces are essential for network research, performance benchmarking, anomaly detection, and traffic classification. However, acquiring real-world network packet captures is severely restricted by privacy regulations, security sensitivities, and proprietary constraints. While machine learning-based trace generation has emerged as a promising alternative, existing models suffer from a fundamental limitation: they fail to capture complex, evolving temporal patterns such as packet rate, throughput dynamics, and burstiness. Models that treat traces as independent records ignore sequence ordering entirely, while sequence-based models and flow-based generators struggle with long-term dependencies when encountering elephant flows containing tens of thousands of packets.

To address these challenges, researchers introduce CascadeNet, an end-to-end framework for generating synthetic network traffic with high temporal fidelity. By reframing temporal dynamics as aggregated time series rather than raw packet sequences, CascadeNet exposes models to explicit temporal patterns while stabilizing training complexity. The system employs CascadeGAN, a hierarchical generative model operating across coarse-to-fine granularities. Evaluated across diverse IPv4 datasets, CascadeNet achieves dramatic improvements in temporal fidelity, superior downstream task performance in anomaly detection and throughput prediction, and massive training and generation speedups over state-of-the-art methods without compromising data diversity.

Background

▶ Watch: Introduction and motivation for synthetic network trace generation (0:00)

In the machine learning and systems research community, synthetic data generation is categorized into simulation, model-based approaches, and machine learning methods. Among these, machine learning-based approaches—such as tabular GANs, flow-based GANs, auto-regressive models, and diffusion models—are the most promising because they learn empirical distributions directly from data without requiring heavy domain expertise. Despite this promise, existing architectures experience severe performance degradation when modeling network traces because of how they structure underlying data.

Prior state-of-the-art models like NetShare partition network traces into individual flows using 5-tuples and treat each flow as a sequence of packet records. While this reduces dimensionality compared to whole-trace sequence modeling, large elephant flows can still span tens of thousands of individual records. Consequently, neural networks struggle to capture long-term temporal dependencies across massive sequence lengths, leading to distorted packet rate profiles, fabricated periodicities, and inaccurate burstiness metrics. The core systems problem is reconciling the need for fine-grained packet representations with the computational and statistical intractability of learning joint distributions over arbitrarily long, variable-length event sequences.

Key Findings

▶ Watch: Overview of the CascadeNet workflow and architecture (4:06)

CascadeNet introduces a novel data representation and hierarchical generative design that overcomes the temporal fidelity bottleneck of prior art. The key findings, validated across multiple benchmark datasets and downstream tasks, demonstrate substantial performance gains:

  • Superior Temporal Fidelity: CascadeNet achieves a 41% to 76% improvement in temporal metric accuracy over baseline models, measured using Earth Mover's Distance (EMD) across inter-arrival times, flow durations, average throughput, burstiness, and long-term dependency metrics.
  • Maintained Statistical Accuracy: Focusing on temporal pattern generation does not degrade statistical fidelity; CascadeNet matches baseline performance on static feature distributions such as source address allocations and packet lengths.
  • Robust Downstream Generalization: Machine learning models trained exclusively on CascadeNet synthetic traces generalize effectively to real-world traffic, achieving the lowest normalized Mean Absolute Error (MAE) in throughput prediction and higher F1 scores in anomaly detection using One-Class SVM via the NetML library.
  • High Data Diversity: Over 99.9% of records generated by CascadeNet are distinct from the training data, avoiding the severe memorization pathologies observed in alternative architectures like RealFormer.
  • Dramatic Speedups: Due to its fixed-length aggregated time series representation, CascadeNet delivers a 7x to 25x speedup in training time and a 9x to 62x speedup in generation time compared to NetShare.

Technical Deep Dive

▶ Watch: Technical details on timestamp recovery and distribution challenges (7:19)

The architectural foundation of CascadeNet rests on a shift in data representation: temporal patterns like packet rate and throughput are aggregated features that emerge from combining information across many records within discrete time intervals. Instead of forcing a model to infer these aggregates from raw, high-variance packet sequences, CascadeNet explicitly aggregates each flow into a fixed-length time series of packet counts.

The framework executes through a three-stage pipeline:

  1. Data Pre-processing: The network trace is split into flows based on the 5-tuple (source IP, destination IP, source port, destination port, protocol). The 5-tuple is encoded, each flow is aggregated into a fixed-length time series of packet counts, and remaining record fields are vectorized.
  2. Training and Generation (CascadeGAN): To handle fundamentally heterogeneous components—fixed-dimensional 5-tuples, variable-length aggregated time series, and varying counts of record fields per time step—the system implements a hierarchical GAN architecture comprising three interdependent generator-discriminator pairs operating from coarse to fine granularity:
  • Generator 1 (MLP): Generates IP 5-tuples from random noise.
  • Generator 2 (LSTM): Takes the generated 5-tuples as input and produces the aggregated time series, capturing flow-level temporal dynamics.
  • Generator 3 (MLP): Takes the 5-tuples and a sliding window of the time series from Generator 2 to generate individual record fields and relative timestamps.
  1. Data Post-processing: Model outputs are decoded back into readable fields, utilizing an ML-based timestamp recovery technique where Generator 3 learns relative timestamps within each time step.

To stabilize training and handle extreme data characteristics, CascadeNet incorporates two specialized techniques. First, to address severe sparsity in aggregated time series (where up to 88% of data points are zero), it employs a zero inflation method using binary activity indicators. Second, to prevent mode collapse caused by class imbalance between mouse flows and elephant flows, it uses flow-level conditional inputs such as flow duration and maximum packet rate. Training utilizes a two-phase strategy: pre-training each GAN pair separately on real inputs, followed by joint fine-tuning with a combined loss function to prevent cascading divergence errors.

Experimental Setup & Results

▶ Watch: Evaluation setup and temporal fidelity results (9:18)

The evaluation uses four diverse IPv4 header traces representing distinct networking environments:

  • KADA: Backbone ISP trace.
  • DC: University data center trace.
  • CA: Cyber defense competition trace.
  • IoT: IoT sensor trace.

The framework is benchmarked against six distinct baseline classes spanning tabular GANs, flow GANs, auto-regressive models, diffusion models, and transformer-based architectures (including NetShare and RealFormer).

Evaluation across six temporal metrics using Earth Mover's Distance (EMD) confirms that CascadeNet consistently records the lowest distribution distance. In burst analysis evaluated via recent IMC methodologies across five distinct metrics (burst duration, inter-burst time, network utilization, and packet sizes during/outside bursts), CascadeNet achieves optimal or near-optimal EMD scores. In downstream anomaly detection experiments using One-Class SVM models via NetML, CascadeNet outperforms NetShare across multiple flow representations. Scalability benchmarks conducted on logarithmic axes demonstrate that the fixed-length time series representation eliminates the computational bottlenecks associated with processing elephant flows containing tens of thousands of individual sequence records.

Practical Implications

▶ Watch: Diversity, scalability analysis, and conclusion (12:14)

For network infrastructure teams, model builders, and security researchers, CascadeNet removes a major bottleneck in data sharing and testing. By synthesizing network traces that accurately reproduce complex temporal dynamics—such as burstiness, packet rates, and throughput evolution—deployers can train downstream anomaly detectors, traffic classifiers, and predictive resource allocators without exposing sensitive enterprise or ISP telemetry.

However, practitioners must navigate certain tradeoffs. While the fixed-length time series design provides massive scalability and training speedups, the choice of time interval aggregation granularity introduces a design hyperparameter that must balance micro-burst resolution against tensor dimension size. Furthermore, although the ML-based timestamp recovery and zero-inflation methods successfully mitigate trace sparsity and class imbalance, improper tuning of conditional flow-level inputs can still risk distributional drift if training corpora lack sufficient topological diversity.

Key Takeaways

  • Temporal Fidelity Gap: Traditional ML trace generators fail because treating network traffic as unorganized records or massive raw packet sequences obscures emergent temporal dynamics like burstiness and throughput.
  • Aggregated Time Series Representation: Transforming flows into fixed-length time series of packet counts exposes models directly to temporal patterns while decoupling sequence length from computational complexity.
  • Hierarchical CascadeGAN Architecture: Decomposing the joint generation problem into coarse-to-fine conditional distributions across 5-tuples, time series, and record fields makes training tractable and stable.
  • Substantial Performance Gains: CascadeNet achieves a 41% to 76% improvement in temporal metric fidelity over state-of-the-art models while maintaining competitive statistical accuracy.
  • Unprecedented Scalability: Fixed-length representations yield training speedups of 7x to 25x and generation speedups of 9x to 62x compared to NetShare, without data memorization risks.

About the Speaker(s)

The conference presentation was delivered by a representative from Carnegie Mellon University, representing a multi-institutional research collaboration involving scholars from Carnegie Mellon University, New York University Shanghai, Peking University, the University of Science and Technology of China, the Hong Kong University of Science and Technology, and USC. The authors specialize in networking, machine learning systems, and data generation frameworks.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)