A Q-Learning-Based Approach for Deploying Dynamic Service Function Chains

Jian Sun, Guanhua Huang, Gang Sun, Hongfang Yu, Arun Kumar Sangaiah, Victor ChangSymmetry 2018

TL;DR

This paper introduces the Q-Learning Framework Hybrid Module (QLFHM) algorithm to efficiently deploy dynamic Service Function Chains (SFCs) in complex networks. By combining reinforcement learning for path generation and a load balancing module for optimal selection, QLFHM achieves near-optimal solutions with significantly reduced computation time compared to existing methods, while also ensuring network load balance.

What Problem Does This Paper Address?

Modern networks are becoming increasingly complex due to the proliferation of dedicated hardware devices for various services. This complexity leads to management difficulties, security concerns, and high operational costs. Network Function Virtualization (NFV) offers a solution by virtualizing network functions as software (VNFs) deployed on common servers, improving flexibility and security. However, dynamically deploying and managing Service Function Chains (SFCs) – sequences of VNFs – to meet evolving user demands and maximize service provider profit is a significant challenge. Existing solutions often fall into two categories: heuristic algorithms that are fast but may not be accurate, or Integer Linear Programming (ILP) algorithms that are accurate but computationally expensive. There's a need for an approach that balances both speed and accuracy in dynamic SFC deployment.

Methods

The paper proposes the Q-Learning Framework Hybrid Module (QLFHM) algorithm, which tackles the dynamic SFC deployment problem in two main stages:

  1. Reinforcement Learning (RL) Module: This module uses an optimized Q-learning approach to generate a set of "optional paths" that meet certain network requirements. The Q-learning algorithm is adapted to a five-dimensional state space to capture more relevant information about the network and deployment process. This stage aims to efficiently explore potential SFC routes.
  2. Load Balancing Module: This module receives the optional paths from the RL module and employs a scoring system to select the optimal SFC. The scoring system considers link and node weights, as well as available bandwidth and IT resources, to evaluate each path. This ensures that the chosen SFC not only meets requirements but also contributes to overall network load balancing and service provider profit.

The authors also present an optimized Q-learning training algorithm that significantly reduces training time compared to the original Q-learning by using a more efficient state representation and enabling distributed computation.

Datasets

Not discussed in the paper. The authors describe a simulation environment using a US network topology with 24 nodes and 43 edges, with specific IT resource and bandwidth capacities defined.

Key Insights and Ideas

  • Hybrid Approach is Key: Combining reinforcement learning for exploration (generating options) with a load balancing mechanism for exploitation (selecting the best option) is a powerful strategy for dynamic network optimization.
  • Optimized Q-Learning for Efficiency: Adapting Q-learning with a multi-dimensional state space and optimizing its training process drastically reduces computation time, making it practical for dynamic environments.
  • Balancing Profit and Performance: The QLFHM algorithm explicitly aims to maximize service provider profit while also considering crucial factors like decision time and network load balance, demonstrating a holistic approach.
  • Dynamic Nature of Networks: The paper emphasizes the need for algorithms that can adapt to constantly changing network conditions, where SFCs are deployed and revoked dynamically.

Key Results

The QLFHM algorithm was compared against two benchmark algorithms (CG and Viterbi) in a simulated dynamic network environment. The key findings include:

  • Request Acceptance Ratio: QLFHM achieved a request acceptance ratio comparable to the ILP-based CG algorithm and significantly higher than the Viterbi algorithm, especially as the number of requests increased.
  • Service Provider Profit: QLFHM demonstrated profits close to the optimal CG algorithm and significantly higher than the Viterbi algorithm, indicating its effectiveness in maximizing revenue.
  • Computation Time: QLFHM exhibited a substantially lower computation time per request, being approximately 6 times faster than the Viterbi algorithm. This is a critical advantage for dynamic deployments.
  • Training Time: The optimized Q-learning training algorithm for QLFHM was shown to be up to 100 times faster than the original Q-learning approach.

Limitations and Future Work

  • Parameter Tuning: The paper acknowledges that the performance of QLFHM is influenced by adjustable parameters (x1, x2, x3) related to the RL module's decision-making. While a "balanced" setting was found to be optimal, further research could explore more sophisticated methods for parameter tuning.
  • Scalability: While the optimized training significantly improves efficiency, the paper hints that for extremely large networks, further optimizations might be needed.
  • Future Work: The authors suggest extending their research to areas like migrating deployed VNFs, optimizing server energy consumption, and exploring decentralized resource allocation controllers.

Summary updated

Abstract

As the size and service requirements of today’s networks gradually increase, large numbers of proprietary devices are deployed, which leads to network complexity, information security crises and makes network service and service provider management increasingly difficult. Network function virtualization (NFV) technology is one solution to this problem. NFV separates network functions from hardware and deploys them as software on a common server. NFV can be used to improve service flexibility and isolate the services provided for each user, thus guaranteeing the security of user data. Therefore, the use of NFV technology includes many problems worth studying. For example, when there is a free choice of network path, one problem is how to choose a service function chain (SFC) that both meets the requirements and offers the service provider maximum profit. Most existing solutions are heuristic algorithms with high time efficiency, or integer linear programming (ILP) algorithms with high accuracy. It’s necessary to design an algorithm that symmetrically considers both time efficiency and accuracy. In this paper, we propose the Q-learning Framework Hybrid Module algorithm (QLFHM), which includes reinforcement learning to solve this SFC deployment problem in dynamic networks. The reinforcement learning module in QLFHM is responsible for the output of alternative paths, while the load balancing module in QLFHM is responsible for picking the optimal solution from them. The results of a comparison simulation experiment on a dynamic network topology show that the proposed algorithm can output the approximate optimal solution in a relatively short time while also considering the network load balance. Thus, it achieves the goal of maximizing the benefit to the service provider.
BibTeX
@inproceedings{sun2018q,
  author = {Jian Sun and Guanhua Huang and Gang Sun and Hongfang Yu and Arun Kumar Sangaiah and Victor Chang},
  title = {{A Q-Learning-Based Approach for Deploying Dynamic Service Function Chains}},
  booktitle = {Symmetry},
  year = {2018},
  url = {https://openreview.net/forum?id=ljReVhpmzI},
}
Figure