NetSSM: Multi-Flow and State-Aware Network Trace Generation using State Space Models

Andrew Chu, Xi Jiang, Shinan Liu, Arjun Bhagoji, Francesco Bronzino, Paul Schmitt, Nick Feamster · 2025

Read NetSSM: Multi-Flow and State-Aware Network Trace Generation using State Space Models by Andrew Chu, Xi Jiang, Shinan Liu, Arjun Bhagoji, Francesco Bronzino, Paul Schmitt, Nick Feamster (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2503-22663.txt.

Introduction

Andrew Chu and co-authors propose NetSSM in 2025, a method to fake realistic network traffic. Real traffic data is scarce since capture is costly and rules restrict sharing. Past fakes handled single flows poorly and lost track of state in long sessions. Tests of their worth for real tasks were also thin.

The method builds on state space models and works at the packet level. It captures how many flows weave through one session and how flow state evolves. Its traces run far longer than transformer-based fakes. Benchmarks show higher fidelity and close match to real traffic on protocol rules and session traits.

Catalog record

CREATORAndrew Chu, Xi Jiang, Shinan Liu, Arjun Bhagoji, Francesco Bronzino, Paul Schmitt, Nick Feamster
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE76 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2503-22663

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

NetSSM: Multi-Flow and State-Aware Network Trace Generation using State Space Models Andrew Chu, Xi Jiang, Shinan Liu, Arjun Bhagoji, Francesco Bronzino, Paul Schmitt, Nick Feamster Abstract . Access to raw network traffic data is essential for many computer networking tasks, from traffic modeling to performance evaluation. Unfortunately, this data is scarce due to high collection costs and governance rules. Previous efforts explore this challenge by generating synthetic network data, but fail to reliably handle multi-flow sessions, struggle to reason about stateful communication in moderate to long-duration network sessions, and lack robust evaluations tied to real-world utility. We propose a new method based on state space models called NetSSM that generates raw network traffic at the packet-level granularity. Our approach captures interactions between multiple, interleaved flows – an objective unexplored in prior work – and effectively reasons about flow-state in sessions to capture traffic characteristics. NetSSM accomplishes this by training with a context window more than 8 × 8\times longer, and produces traces up to 78 × 78\times longer than existing transformer-based raw packet generators. Evaluation results show that NetSSM generates high-fidelity traces that outperform prior efforts in existing benchmarks. We also find that NetSSM ’s traces have high semantic similarity to real network data regarding compliance with standard protocol requirements and flow and session-level traffic characteristics. Journal: PACMNET Volume: 4 CoNEXT1 6 3 DOI: 10.1145/3786289 CCS: Networks Network simulations CCS: Computing methodologies Neural networks 1. Introduction There is high demand for representative, scalable network data, driven by applications in security analysis, traffic modeling, and performance evaluation ( Singhal et al., 2013 ; Holland et al., 2021b ; Sommer and Paxson, 2010 ; Paxson, 1999 ; Baker et al., 2004 ) . Unfortunately, acquiring large-scale, high-fidelity network data is difficult due to data governance policies, and high collection costs ( Abt and Baier, 2014 ; De Keersmaeker et al., 2023 ) . In response, methods have been developed to generate synthetic network data that accurately replicates real networks, allowing researchers and practitioners to test, evaluate, and model scenarios while minimizing collection overhead and obstacles in accessibility. Existing methods for generating synthetic network data output this data in two forms: (1) sequences of single or multiple derived network traffic attributes , such as flow statistics ( e.g., duration, average packet size), packet header fields ( e.g., IP flags, addresses), or metadata ( e.g., web page views, event types) and (2) raw packet capture (PCAP) traces. Generators producing traffic attributes can be used to replicate patterns in arbitrarily long network communications. Generators producing PCAP traces capture the verbose, detailed, communication exchanged between hosts, and commodity packet analyzers ( e.g., Wireshark) can analyze their resulting PCAPs. Unfortunately, current methods for either output format have limitations that impact their practical use. Traffic attribute generators cannot reason about the raw contents of stateful protocols, such as TCP, and require retraining to learn the patterns of new targets in a session. Raw packet generators are limited in the length of traces they can train on and produce and, thus, may not capture meaningful communication between nodes beyond initial connection setup. Further, neither generator type can reliably produce data for sessions comprised of more than a single flow, preventing them from being applied to various workloads in the real world, where interleaved, multi-flow communication is common ( e.g., distributed systems, IoT). Finally, current methods for evaluating the quality of synthetic network data ( i.e., statistical similarity to real-world traces and downstream performance of ML models trained on synthetic data) are insufficient. Synthetic data that perform well in, or towards, these evaluations can still fall short in scenarios that require analysis of multi-flow interactions or stateful behaviors in network traffic ( e.g., QoE estimation ( Sharma et al., 2023 ) , application fingerprinting ( Li et al., 2022 ) ). Thus, determining the criteria for what qualities or characteristics make synthetic network data “good” is an ongoing area of research. In this paper, we present NetSSM , a raw packet generator for network traffic data built on the recently proposed structured selective state space model (Mamba) architecture. NetSSM bridges the gap between traffic attribute and raw packet generators by combining the former’s length-scaling capabilities with the latter’s comprehensive packet-level detail. This enables NetSSM to capture a substantially wider range of target events while retaining the ability to capture inter- and intra-packet dependencies across any protocol and layer. Furthermore, the sequential, stateful nature of how NetSSM learns network data allows it to generate sessions comprised of multiple interleaved flows with high fidelity, addressing a limitation of existing methods. We evaluate NetSSM on social media, video conferencing, and video streaming traffic. First, we assess its performance using established metrics of synthetic network data fidelity (statistical similarity and downstream ML performance). We then evaluate NetSSM ’s semantic similarity , testing how well its generated data aligns with the behavioral characteristics of real-world network communication. Finally, we verify that NetSSM ’s traces are both protocol compliant, and mimic, rather than memorize patterns in training data. This analysis aims to offer a more functional and application-oriented perspective on the quality of synthetic data, emphasizing its practical utility beyond statistical resemblance. Our main contributions are: • Synthetic multi-flow sessions. NetSSM ’s recurrent nature enables it to produce traces for sessions comprised of both single flow and multi-interleaved flows, with high fidelity. Multi-flow trace generation is a new contribution largely unexplored in prior generators. • Capturing flow-state-dependent session events. NetSSM trains using a context window more than 8\times longer, and produces traces up to 78\times longer than existing transformer-based raw packet generators. This enables it to learn from and output traces that capture flow-state-dependent events occurring later in a session that rely on early connection setup, or multiple interactions between flows and/or packets. • Superior performance on existing benchmarks. NetSSM outperforms current state-of-the-art network data generators in existing benchmarks. In statistical similarity, NetSSM achieves an average Jensen-Shannon Divergence across generated traffic attributes of 0.05 , versus 0.18 and 0.06 for NetShare ( Yin et al., 2022 ) and NetDiffusion ( Jiang et al., 2024 ) , respectively. In performance of downstream ML models trained on synthetic data, a random forest classifier trained entirely on synthetic NetSSM data achieves accuracy of 0.97 on held-out ground truth data, compared to 0.13 and 0.16 for NetShare and NetDiffusion respectively. • Behaviorally accurate and protocol-adherent traffic. NetSSM generates synthetic traffic with high semantic similarity to real traces. This traffic can (1) capture application-specific traffic patterns, and (2) show robust session-level compliance with standard TCP protocol requirements, capturing both correct stateful behavior and common real-world anomalies ( e.g., partial teardowns, conflicting flags). For (1), NetSSM can generate traces that capture the sequential communication and distributional patterns in traffic, even presented with complex, multi-flow traffic comprised of multiple steps ( e.g., setup with CDN endpoints before video segment downloads for video streaming traffic). NetSSM ’s code and training datasets are open sourced at https://github.com/noise-lab/netssm . 2. Related Work Techniques for generating synthetic network data aim to replicate the characteristics of real-world communication between networked devices, either through higher-level traffic attributes about packets or a session, or raw packet captures. Traffic generators can be categorized into two main approaches: traffic attribute generators and

Read the complete text