Abstract
Synthetic network traffic generation is essential for security research, yet current deep learning approaches often fail to capture the complex temporal dependencies between flows. We introduce FlowChronicle, a novel generator that combines pattern set mining with Bayesian networks. By treating network traffic as a series of explainable "chronicles" rather than independent events, FlowChronicle produces realistic data that respects protocol specifications and chronological order. Our evaluation shows that FlowChronicle outperforms state-of-the-art models in temporal fidelity and protocol compliance, albeit at a higher computational cost.
Introduction
Evaluating network security tools, such as Intrusion Detection Systems (IDS), requires high-quality, diverse datasets. However, sharing real-world network traffic is often impossible due to privacy risks and the high cost of manual labeling. While synthetic data generation using Generative Adversarial Networks (GANs) or Variational Autoencoders (VAEs) offers a promising alternative, these methods frequently suffer from a "temporal blind spot."
In real networks, flows are rarely independent. For instance, a DNS request typically precedes an HTTP connection, and a single user action may trigger a specific sequence of packets across different ports. Most existing generators sample flows independently, leading to unrealistic traffic that lacks these logical sequences. FlowChronicle addresses this gap by modeling the chronicle of network events, ensuring that synthetic data maintains the logical and temporal structure of real traffic.
Methodology
FlowChronicle moves away from "black-box" deep learning in favor of a hybrid approach combining Pattern Set Mining and Bayesian Networks.
Pattern Language and Discovery
The authors developed a custom language to describe "partial flows." A pattern can span multiple flows and consists of three cell types:
- Fixed cells: Hardcoded values for specific protocols (e.g., Port 53 for DNS).
- Free cells: Values that vary but follow a statistical distribution.
- Reuse cells: Values copied from a previous flow in the sequence, which is essential for tracking the same Source IP across multiple steps.
To avoid "pattern explosion"—the discovery of too many redundant patterns—FlowChronicle employs the Minimum Description Length (MDL) principle. It selects the smallest set of patterns that best compresses the training data, effectively applying Occam’s Razor to pattern discovery.
Modeling and Generation
For the "free cells" within a pattern, FlowChronicle uses Bayesian Networks (BN) to model the joint probability of features. This ensures that if a specific protocol is chosen, the associated flags and packet sizes remain logically consistent. To create new data, the system samples from the learned pattern distribution, uses Kernel Density Estimation (KDE) to determine the timing and delays between flows, and fills in the details using the BNs.
Evaluation
The study utilizes the CIDDS-001 dataset, which contains four weeks of traffic from a simulated environment of 30 terminals. FlowChronicle was benchmarked against state-of-the-art models, including CTGAN, NetShare, and Transformer-based generators, across several key metrics.
Key Results
- Overall Quality: FlowChronicle achieved the best average ranking (2.125) across eight metrics, including Realism, Diversity, and Compliance.
- Temporal Fidelity: In Autocorrelation Function (ACF) tests, which measure how well a model preserves numerical trends over time, FlowChronicle significantly outperformed CTGAN and TVAE, which showed almost no temporal awareness.
- Categorical Consistency: Using the Train on Synthetic, Test on Real (TSTR) metric, FlowChronicle demonstrated that an LSTM trained on its synthetic data could predict real-world traffic patterns much more accurately than models trained on data from competing generators.
- Protocol Compliance: FlowChronicle produced the "cleanest" traffic with the lowest Domain Knowledge Check (DKC) errors, rarely generating impossible flows, such as UDP packets with TCP flags.
Discussion
Explainability and State Maintenance
Unlike GANs, where the logic is hidden within neural weights, FlowChronicle produces human-readable patterns. An expert can inspect a mined pattern and recognize it as a standard HTTPS request sequence, making the generator auditable. Furthermore, the "reuse cell" concept explicitly handles the maintenance of state, allowing the model to link disparate flows into a single logical session—a major hurdle for previous synthetic traffic generators.
Limitations
The primary trade-off for this accuracy is computational cost. FlowChronicle is significantly slower to train than deep-learning counterparts. In tests, it required over 106 hours to train, compared to approximately 30 hours for CTGAN and just 1 hour for E-WGAN-GP.
Conclusion
FlowChronicle represents a significant step forward in synthetic network traffic generation by prioritizing temporal logic and explainability. By combining pattern set mining with probabilistic modeling, it bridges the gap between statistical realism and protocol compliance. Future work will focus on optimizing the search process to reduce training time and expanding the pattern language to better represent complex looping behaviors.
Summary updated