MAGNNETO: A Graph Neural Network-Based Multi-Agent System for Traffic Engineering

Guillermo Bernárdez, José Suárez-Varela, Albert López, Xiang Shi, Shihan Xiao, Xiangle Cheng, Pere Barlet-Ros, Albert Cabellos-Aparicio

Abstract

Traffic Engineering (TE) is essential for optimizing network performance by steering data to avoid congestion. Traditional centralized TE solutions often suffer from high latency and poor generalization to new topologies. This paper presents MAGNNETO, a distributed framework that leverages Multi-Agent Reinforcement Learning (MARL) and Graph Neural Networks (GNNs). By deploying RL agents on routers that communicate via message passing, MAGNNETO achieves performance comparable to state-of-the-art centralized optimizers while operating up to 1,000x faster. Crucially, the GNN-based architecture enables the model to generalize effectively to unseen network topologies.

Introduction

Traffic Engineering (TE) serves as the "air traffic control" of the internet, steering data across an ISP's network to minimize the maximum utilization of any single link and avoid congestion. Currently, the gold standard for TE involves centralized algorithms using Linear Programming or Local Search. While effective, these solutions face two major challenges: high latency, often taking minutes to compute optimal configurations, and brittleness, where machine learning models fail to generalize to network topologies different from their training set.

MAGNNETO (Multi-Agent Graph Neural Network Optimization) addresses these issues by providing a distributed, machine-learning framework that is both fast and highly generalizable.

Methodology

MAGNNETO's architecture is built on three primary pillars:

  1. Distributed Multi-Agent Reinforcement Learning (MARL): Instead of a single central controller, an RL agent is deployed on every router. These agents learn to cooperate to achieve the global goal of minimizing network congestion.
  2. Graph Neural Networks (GNNs): MAGNNETO utilizes Message Passing Neural Networks (MPNNs), allowing agents to exchange "hidden state" messages with direct neighbors. Because GNNs operate on local connectivity rather than fixed coordinates, the model learns relational patterns applicable to any graph structure.
  3. Dec-POMDP Formulation: The problem is framed as a Decentralized Partially-Observable Markov Decision Process. Agents take simultaneous actions—adjusting OSPF link weights—based on local observations and messages from neighbors.

The operational cycle of these agents involves initializing hidden states, sharing them with neighbors, updating states based on aggregated information, and finally modifying link weights for the next time step.

The MAGNNETO operational cycle: (a) initialization, (b) message passing, (c) state update, and (d) action execution.

Evaluation and Datasets

The study evaluates MAGNNETO across diverse and extensive scenarios to test its robustness and generalization capabilities:

  • Training: Models were trained on only two networks: NSFNet (14 nodes) and GEANT2 (24 nodes).
  • Generalization Testing: Evaluation was performed on over 75 real-world topologies from the Internet Topology Zoo, ranging from 11 to 30 nodes.
  • Scalability: Testing included massive networks like Colt (153 nodes) and Interoute (110 nodes).
  • Traffic Profiles: Both uniform and realistic "gravity-based" traffic models were used.

Results and Discussion

MAGNNETO demonstrates a remarkable ability to generalize. By using GNNs, it learns relational behaviors (e.g., how a router should behave relative to its neighbors) rather than node-specific rules. This allows it to perform effectively on dozens of unseen networks after being trained on just two.

In terms of performance, MAGNNETO stays within 2% of the best centralized baselines, such as SRLS, and often outperforms others like TabuIGPWO. Its most significant advantage is speed; in a 100+ node network, MAGNNETO runs in sub-second times, representing a 1,000x speedup over traditional optimizers that take minutes.

Performance comparison of MAGNNETO against state-of-the-art baselines across different traffic profiles.

Furthermore, MAGNNETO integrates seamlessly with existing infrastructure. It optimizes standard OSPF link weights, meaning it can be deployed via software updates without requiring new protocols. The communication overhead for message passing is approximately 1 MB/s, which is negligible on modern high-speed interfaces.

Conclusion

MAGNNETO represents a significant step forward in distributed traffic engineering. While it currently requires centralized training and several days to train for very large networks, its execution is lightning-fast and fully distributed. Future work will explore fully decentralized training and more complex action spaces beyond link weight adjustments.

Summary updated

BibTeX
@article{bernardez2023magnneto,
  author = {Guillermo Bernárdez and José Suárez-Varela and Albert López and Xiang Shi and Shihan Xiao and Xiangle Cheng and Pere Barlet-Ros and Albert Cabellos-Aparicio},
  title = {{MAGNNETO: A Graph Neural Network-Based Multi-Agent System for Traffic Engineering}},
  journal = {IEEE Trans. Cogn. Commun. Netw},
  year = {2023},
  doi = {10.1109/tccn.2023.3235719},
}
Figure