Multi-Agent Deep Reinforcement Learning for Cost- and Delay-Sensitive Virtual Network Function Placement and Routing

Shaoyang Wang, Chau Yuen, Wei Ni, Yong Liang Guan, Tiejun LvarXiv 2022 · DOI

Abstract

This paper proposes an effective and novel multiagent deep reinforcement learning (MADRL)-based method for solving the joint virtual network function (VNF) placement and routing (P&R), where multiple service requests with differentiated demands are delivered at the same time. The differentiated demands of the service requests are reflected by their delay- and cost-sensitive factors. We first construct a VNF P&R problem to jointly minimize a weighted sum of service delay and resource consumption cost, which is NP-complete. Then, the joint VNF P&R problem is decoupled into two iterative subtasks: placement subtask and routing subtask. Each subtask consists of multiple concurrent parallel sequential decision processes. By invoking the deep deterministic policy gradient method and multi-agent technique, an MADRL-P&R framework is designed to perform the two subtasks. The new joint reward and internal rewards mechanism is proposed to match the goals and constraints of the placement and routing subtasks. We also propose the parameter migration-based model-retraining method to deal with changing network topologies. Corroborated by experiments, the proposed MADRL-P&R framework is superior to its alternatives in terms of service cost and delay, and offers higher flexibility for personalized service demands. The parameter migration-based model-retraining method can efficiently accelerate convergence under moderate network topology changes.

Introduction

In modern Network Function Virtualization (NFV), services are delivered as Service Function Chains (SFCs)—ordered sequences of virtual functions (like firewalls or load balancers) running on general-purpose servers. Managing these requires two simultaneous decisions: placement (which server hosts which function) and routing (how data flows between them). This joint Placement and Routing (P&R) problem is notoriously difficult (NP-complete) because the number of possible combinations grows factorially with network size and the number of requests.

Problem Statement

Existing solutions for VNF P&R often struggle with scalability, personalization, and network dynamics. Heuristics may be fast but lack optimality. Furthermore, traditional models rarely account for differentiated user priorities—where one user may prioritize low latency (delay-sensitive) while another prioritizes low cost. Finally, most models are trained for a fixed network layout; any change in topology typically necessitates a complete retraining cycle.

Methodology: The MADRL-P&R Framework

The authors propose MADRL-P&R, which breaks the joint optimization problem into two iterative subtasks: a placement subtask followed by a routing subtask. This decoupling makes the high-dimensional action space manageable for reinforcement learning agents.

Multi-Agent DDPG and ResNet Integration

The system employs $2M$ agents (where $M$ is the number of service requests), with each request assigned one placement agent and one routing agent. These agents utilize the Deep Deterministic Policy Gradient (DDPG) algorithm. To prevent gradient dispersion in deep architectures, Residual Network (ResNet) blocks are incorporated into the actor and critic networks.

Dual-Reward Mechanism

A core innovation is the dual-reward system:

  • Joint Reward: A global signal that motivates agents to minimize the weighted sum of cost and delay across the entire network.
  • Internal Reward: A local signal used to "prune" invalid actions. If an agent violates a physical constraint (e.g., exceeding a server's memory), it receives a penalty, helping it learn the boundaries of the feasible solution space much faster.

Handling Dynamic Topologies

To address changing network layouts, the authors developed a parameter migration method. By mapping variable network features into fixed-size vectors, they can "freeze" the majority of a trained model and only retrain a small reconfigurable portion when nodes or links are added, significantly reducing retraining time.

Evaluation

The framework was evaluated using standard benchmarks from the SNDlib library, including COST266 (37 nodes) and TA2 (65 nodes), as well as custom large-scale topologies (up to 225 nodes).

Key Results

  • Optimality: MADRL-P&R consistently outperformed state-of-the-art alternatives (like DL-TPA and JVPR) in both cost and delay, achieving results close to theoretical optima.
  • Efficiency: The framework demonstrated a higher service acceptance ratio, successfully packing more user requests into the same physical hardware.
  • Adaptability: When the network topology changed, the parameter migration method accelerated convergence by 66% compared to retraining from scratch.
  • Flexibility: The model successfully adjusted its behavior based on user-specific "demand-aware factors," prioritizing latency or cost as required.

Conclusion

MADRL-P&R offers a robust, scalable, and flexible approach to VNF placement and routing. By decoupling subtasks and utilizing a novel internal reward mechanism, it effectively balances complex trade-offs in dynamic environments. Future work will explore decentralized architectures to further reduce computational overhead and extend the model to handle complex mesh-based SFC topologies.

Summary updated

BibTeX
@misc{wang2022multi,
  author = {Shaoyang Wang and Chau Yuen and Wei Ni and Yong Liang Guan and Tiejun Lv},
  title = {{Multi-Agent Deep Reinforcement Learning for Cost- and Delay-Sensitive Virtual Network Function Placement and Routing}},
  year = {2022},
  eprint = {2206.12146},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.12146},
}
Figure