Introduction
Researchers from the Barcelona Neural Networking Center have developed a Graph Neural Network (GNN) that models network performance using real-world captured traffic traces rather than idealized simulations. Traditionally, network engineers rely on Discrete Event Simulation (DES) tools like ns-3 to predict network behavior. While accurate, DES is computationally expensive, slow, and difficult to scale. Recently, Machine Learning (ML) models—specifically GNNs—have emerged as a faster alternative.
However, most existing ML models are trained on data generated by those same DES simulators. This creates a "simulation gap": simulators often use idealized traffic patterns (like Poisson distributions) that fail to capture the messy, bursty reality of physical hardware. This research addresses the challenge of building a "Network Digital Twin" that learns directly from captured traffic traces, accounting for the complexities of real routers, switches, and non-parameterized traffic distributions.
Methodology
The proposed architecture evolves the "RouteNet" family, specifically designed for the 2023 Graph Neural Networking Challenge. It integrates two primary innovations to bridge the simulation gap:
- RNN-based Traffic Encoding: Instead of representing traffic as simple summary statistics (like average bandwidth), the model uses a two-layered Gated Recurrent Unit (GRU) to process the actual sequence of captured packets. This allows the model to capture temporal dynamics and burstiness without assuming a specific mathematical distribution.
- Enhanced Message Passing: The model utilizes a Message Passing Neural Network (MPNN) framework that mirrors the physical hierarchy of a network. It iteratively updates the states of flows, links, ports, and devices. By including a specific "device" state, the model accounts for shared hardware resources (like CPU and memory) that affect performance in real-world equipment but are often ignored in simple simulations.
The model formalizes network dynamics as a set of circular dependencies (e.g., link state depends on flows, but flow delay depends on links). The iterative message-passing algorithm allows the neural network to "solve" these dependencies until it reaches a stable prediction.
Dataset and Experimental Setup
The study utilizes a dataset provided by the Graph Neural Networking Challenge 2023, sourced from a physical testbed.
The testbed consists of 8 Huawei NetEngine 8000 routers and Huawei S5732 switches. Traffic was generated using two TRex traffic generators producing Constant Bit Rate (CBR) and Multi-Burst (MB) traffic. The resulting dataset contains 8,604 samples, each representing a unique traffic scenario. Each sample includes topology, routing configurations, and captured packet traces, with the target variable being the per-path mean packet delay.
Key Results
The proposed model was evaluated against a baseline adapted from RouteNet-Fermi, a previous state-of-the-art model.
- Accuracy: The proposed solution achieved a Mean Absolute Percentage Error (MAPE) of 27.8% on the test set.
- Generalization: In contrast, the baseline model failed to generalize to the captured data, resulting in a MAPE of over 100%.
- Convergence: The model demonstrated stable learning curves, reaching its best performance around epoch 86. This proves that GNNs can learn the complexities of real-world physical traces if the architecture is sufficiently expressive.
Conclusion and Future Work
By training on captured traces, the model learns hardware-specific behaviors—such as how a specific router handles a buffer overflow—that a simulator might miss. The use of an RNN to encode traffic suggests that the timing of packets is as critical for predicting delay as total volume.
While a significant step forward, several areas for improvement remain. Current sequence processing only looks at the first second of traffic; future work could explore Transformers or bidirectional RNNs for longer-term dependencies. Additionally, the dataset currently excludes the first 5 seconds of each scenario to avoid transient states; predicting performance during these startup bursts remains an open challenge. Finally, incorporating different priority queuing policies would enhance applicability to complex Quality of Service (QoS) environments.
Summary updated