Abstract
Simulating physical network paths (e.g., Internet) is a cornerstone research problem in the emerging sub-field of AI-for-networking. We seek a model that generates end-to-end packet delay values in response to the time-varying load offered by a sender, which is typically a function of the previously output delays. The problem setting is unique, and renders the state-of-the-art text and time-series generative models inapplicable or ineffective. We formulate an ML problem at the intersection of dynamical systems, sequential decision making, and time-series modeling. We propose a novel grey-box approach to network simulation that embeds the semantics of physical network path in a new RNN-style model called Recurrent Buffering Unit, providing the interpretability of standard network simulator tools, the power of neural models, the efficiency of SGD-based techniques for learning, and yielding promising results on synthetic and real-world network traces.
Introduction
Evaluating new network protocols for applications like video conferencing or cloud gaming requires realistic simulation. However, researchers face a "chicken-and-egg" challenge: a sender's behavior is a reactive response to the delays and drops produced by the network. This paper introduces the Recurrent Buffering Unit (RBU), a novel "grey-box" neural network that simulates end-to-end network path behavior by embedding the physics of packet queuing. By combining the interpretability of traditional network simulators with the expressive power of Recurrent Neural Networks (RNNs), RBU accurately recreates complex phenomena like congestion and packet reordering across massive sequence lengths.
The Challenge of Reactive Network Simulation
Traditional tools like ns-3 are physically accurate but notoriously difficult to configure for real-world realism. Conversely, standard machine learning models—such as GANs or Transformers—struggle with network simulation for three primary reasons:
- Reactive Inputs: They are not designed for settings where the input sequence depends on previous outputs.
- Scale: Network traces involve tens of thousands of packets; standard generative models often fail or become prohibitively slow beyond a few hundred steps.
- Physical Constraints: Black-box models often "hallucinate" impossible behaviors, such as packets arriving before they were sent or violating bandwidth limits.
Methodology: The Recurrent Buffering Unit
The authors propose a grey-box approach that embeds the semantics of a physical network path into a differentiable neural architecture. Instead of a standard LSTM or GRU cell, the RBU is designed to mimic a physical First-In-First-Out (FIFO) buffer, explicitly accounting for propagation delay, transmission delay, and queuing delay.
To handle the extreme length of network traces, a hierarchical two-level architecture is employed:
- Window-level (Global): A standard LSTM processes coarse windows (e.g., 100ms) to estimate the global state and unobserved cross-traffic.
- Packet-level (Local): The RBU uses this global context to simulate the exact delay and drop probability for every individual packet.
This structure allows the model to be trained efficiently using stochastic gradient descent (SGD) while maintaining physical consistency.
Evaluation and Datasets
The model was evaluated on two primary sources:
- ns-3 Synthetic Benchmark: 4,200 traces generated using the industry-standard ns-3 simulator, covering various TCP protocols and cross-traffic patterns.
- Pantheon: A real-world dataset of traces collected from actual Internet paths, including complex behaviors like packet reordering.
In all experiments, models were trained only on TCP Cubic traces but tested on unseen protocols like Vegas, NewReno, and LEDBAT to prove their ability to simulate the underlying path rather than just memorizing a specific protocol's behavior.
Results and Discussion
RBU significantly outperformed both domain-specific baselines and standard ML models in matching the joint distribution of throughput and delay. On the ns-3 dataset, RBU achieved the lowest Wasserstein Distance (WD) across almost all test protocols, indicating a much closer match to ground-truth network conditions.
Key insights from the evaluation include:
- Physics-Informed Constraints: By baking buffer dynamics directly into the RNN cell, the model is naturally constrained to respect physical laws.
- Efficiency at Scale: While SOTA time-series GANs can take a week to train on short sequences, RBU handles sequences 50–100x longer in just a few minutes per epoch.
- Real-World Flexibility: RBU proved capable of modeling packet reordering in real-world Pantheon traces by using a multi-path configuration—a feat impossible for traditional single-queue models.
Conclusion and Future Work
While RBU is more flexible than a pure simulator, it still requires researchers to define the underlying physical abstraction (e.g., choosing a multi-path model for reordering). Future work could explore ways to estimate path features dynamically or learn the physical structure directly from raw, uncharacterized traces.
Summary updated