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 RBU, 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
Testing new internet protocols for high-bandwidth applications like video conferencing or streaming is traditionally a high-stakes endeavor. Engineers often rely on simulators like ns-3, which offer high accuracy but require manual, expert-level configuration to reflect real-world conditions. Conversely, modern "black-box" AI models, such as standard RNNs or Transformers, struggle with network simulation due to the reactive nature of network traffic—where senders adjust speed based on observed delays—and the extreme sequence lengths of network traces.
To bridge this gap, we introduce the Recurrent Buffering Unit (RBU), a "grey-box" neural network model that embeds the physical principles of network buffers and queuing theory into a differentiable architecture. This allows for realistic predictions of packet delays and drops, even for protocols unseen during training.
The RBU Architecture
The core innovation of our approach is the RBU cell, a specialized recurrent unit that implements the mathematical logic of a First-In-First-Out (FIFO) buffer. Unlike black-box models that attempt to learn network dynamics from scratch, the RBU is "primed" with domain knowledge, explicitly modeling parameters such as propagation delay, transmission delay, and buffer size.
Key Methodological Components:
- Differentiable Queuing: We derived a differentiable version of queuing dynamics, enabling the model to be trained using standard stochastic gradient descent (SGD).
- Two-Level Modeling: To manage long sequences, we employ a "Window-level" LSTM to capture global network states (e.g., congestion) and a "Packet-level" RBU to handle high-frequency jitter.
- Cross-Traffic Integration: The model explicitly accounts for unobserved traffic from other users competing for the same network resources.
Evaluation and Results
We evaluated the RBU on synthetic traces from ns-3 and real-world cellular data from the Pantheon dataset. Our results demonstrate that by enforcing the semantics of a physical buffer, the RBU avoids "impossible" behaviors (like out-of-order packets on a single path) that often plague purely data-driven models.
Performance Highlights:
- Generalization: When trained on one protocol (e.g., TCP Cubic) and tested on another (e.g., TCP Vegas), RBU significantly outperformed baselines like iBoxNet, proving that its underlying "physics" remain valid across different sender behaviors.
- Temporal Fidelity: Using Maximum Mean Discrepancy (MMD), we found that RBU captures fine-grained temporal patterns—the "rhythm" of the network—far better than black-box LSTMs or Transformers.
- Efficiency: Training takes only minutes on a standard GPU, a massive improvement over generative models like TimeGAN, which can take weeks for similar sequence lengths.
Conclusion and Future Work
The RBU represents a significant step toward interpretable and efficient network simulation. While it currently excels at modeling "bottleneck" paths, future work will focus on expanding the architecture to simulate complex network topologies, such as entire data center fabrics. By combining the power of neural networks with the constraints of physical reality, we provide a tool that is both as flexible as AI and as reliable as traditional simulation.
Summary updated