Management and orchestration of virtual network functions via deep reinforcement learning
패션 · (24) 패션(코오롱FnC)
기본 정보
- 저자
- DOI
- 10.1109/jsac.2019.2959263
- 저널
- IRIS UNIMORE (University of Modena and Reggio Emilia)
- 발행년도
- 2019
- 발행기관
- University of Modena and Reggio Emilia
- 피인용수
- 69
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- http://hdl.handle.net/11380/1202572
- 토픽
- Fuel Cells and Related Materials
- OpenAlex ID
- W2996431531
평가 내용
- 관련도
- 사업분야
- 패션 · (24) 패션(코오롱FnC)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '패션 > 패션(코오롱FnC)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 100,168자
본문 펼치기
섹션 본문 133문단 · 50,100자
(제목 없음)
1Management and orchestration (MANO) of resources by virtual network functions (VNFs) represents one of the key challenges towards a fully virtualized network architecture as envisaged by 5G standards. Current threshold-based policies inefficiently over-provision network resources and underutilize available hardware, incurring high cost for network operators, and consequently, the users. In this work, we present a MANO algorithm for VNFs allowing a central unit (CU) to learn to autonomously re-configure resources (processing power and storage), deploy new VNF instances, or offload them to the cloud, depending on the network conditions, available pool of resources, and the VNF requirements, with the goal of minimizing a cost function that takes into account the economical cost as well as latency and the quality-of-service (QoS) experienced by the users. First, we formulate the stochastic resource optimization problem as a parameterized action Markov decision process (PAMDP). Then, we propose a solution based on deep reinforcement learning (DRL). More precisely, we present a novel RL approach called, parameterized action twin (PAT) deterministic policy gradient, which leverages an actor-critic architecture to learn to provision resources to the VNFs in an online manner. Finally, we present numerical performance results, and map them to 5G key performance indicators (KPIs). To the best of our knowledge, this is the first work that considers DRL for MANO of VNFs' physical resources.
I. INTRODUCTION
2Traditionally the deployment of new network functions (NFs) has been done through the acquisition and installation of a proprietary hardware running a licensed software. This fact arXiv:1910.10695v1 [cs.IT] 23 Oct 2019 reduces the incentives for network operators in updating their network's physical architecture to offer new services or update existing ones, as it represents an increase in both the capital expenditures (CAPEX), i.e., equipment inversion, equipment installation and personnel training, and operational expenditures (OPEX), i.e., the cost of of operating the system [1]. To overcome this limitation, network function virtualization (NFV) has been proposed to curtail constant acquisition of technical hardware, by leveraging virtualization technology to implement NFs using general purpose computers/servers [2]. With virtualization, software implementation of a NF can be decoupled from the underlying hardware, i.e., NFs can be instantiated without the need of new equipment acquisition and installation, and they can run over commercial offthe-shelf hardware. The isolation of software from hardware allows for a set of VNFs to be deployed on a shared pool of resources. This motivates a solution to manage the underlying shared infrastructure (processing power, storage, etc.) in an efficient, scalable and rapid manner.
3There has been a lot of work on resource allocation for cloud networks. One of the most popular ways to address resource provisioning is threshold-based reactive approaches, where resources are added or removed if the network's condition reaches certain predefined thresholds [3]- [6]. Although this provides a simple and scalable solution to dynamic resource allocation, threshold-based criteria tend to over-provision and under-utilize network equipment (incurring high costs for the infrastructure provider) and make the management of dynamic traffic and deployment of new types of services difficult as network traffic models must be elaborated beforehand. In [7], authors study the scaling of virtual machines (VMs) in a proactive way. In particular they propose a solution via decision tree approach to resolve whether a VM instance should be vertically scaled; that is, more physical resources (e.g., processing power, storage) should be added, or horizontally scaled, i.e., by deploying a new VM instance. An autonomous vertical scaling approach is proposed in [8] using Q-learning, where an agent learns how to autonomously provision resources (storage and processing power) to a VM.
4With the explosion of machine learning (ML) and virtualization technologies, and their applications to communication networks, the idea of self-governing networks leveraging modern ML techniques is becoming popular among the communications research community. Chen et.
5al. [9] proposes deep double Q-learning (DDQ) and deep-SARSA solutions for mobile edge computing, where an end user terminal with limited local computation and energy resources jointly optimizes computation offloading and energy consumption selection in an autonomous manner. The end user terminal decides whether to execute a computing task locally or offload it to one or more of the available edge base stations (BSs), also selecting the amount of energy to be allocated for the task in question. A proactive VM orchestration solution is proposed in [10] using Q-learning, where, given the current state, an agent decides to increase, reduce or retain the number of VMs allocated to a VNF. In [11], a deep learning approach is introduced to decide the number of VNFs that must be deployed to meet the network traffic demands. The authors formulate a classification problem, where each class corresponds to the number of VNFs that must be instantiated to be able to cope with the current traffic, and use historical labelled traffic data to train the proposed algorithm.
6More recently, in the management and network orchestration (MANO) domain for wireless networks resources, the use of DRL has gained attraction for network slicing resource orchestration and management. These works formulate a discrete action selection optimization problem, and use well established value-based methods, e.g., Q-learning or SARSA, to solve the formulated problem. In this line lies the work of [12], which proposes a deep Q-learning approach to radio resource slicing and priority-based core network slicing, showing its advantage in addressing demand-aware resource allocation. In [13], authors formulate the problem of frequency bands allocation, and the problem of computation resources orchestration for different slices. These problems are reduced to choosing a particular configuration from a finite set of available configurations, which is done leveraging DDQNs. Similarly, in [14], a DRL solution based on DDQN is presented for multi-tenant cross-slice resource orchestration, where again, a discrete number of communication and computation resources have to be allocated to different slice tenants. Finally a deep deterministic policy gradient (DDPG) with advantage function is employed in [15] to allocate bandwidth resources to different network slices. Compared to the aforementioned approaches, the continuous nature of DDPG allows for more fine-grained resource allocation.
7In our work, we consider 3GPP functional split, where a central unit (CU) deploys and maintains a set of VNFs serving the users of several distributed units (DUs). We first formulate the dynamic allocation of processing and storage resources to VNFs as a Markov decision process (MDP). The optimal solution for this problem is elusive due to prohibitively large state and action spaces. Therefore, we present a novel deep reinforcement learning (DRL) algorithm, called parameterized action twin (PAT), where we use DDPG [16] and its novel variant called twin delayed DDPG [17], as well as ideas from the parameterized action Markov decision process (PAMDP) as in [17], [18], so that an agent placed at the CU is trained to learn whether to scale vertically (add processing power and storage), horizontally (instantiate new VNFs), or to offload (send the VNFs to the cloud) based on the system state (service request arrivals, service rates, service level agreement (SLA), etc.), using a cost function that combines the economic cost, SLA requirements, and the latency experienced by the users. The proposed algorithm is deployed in a variety of scenarios and its performance is evaluated according to a defined set of 5G key performance indicators (KPIs).
8The feasibility of the proposed solution relies on the assumption that the technology envisaged for NF virtualization is "containerization" [19], where containers perform operating-system-level virtualization, i.e., every time a VNF is launched a container is deployed in a physical server. A "container" is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings and its run by the operating system kernel [20]. Containers are isolated from one another and can communicate with each other through well-defined channels. We find containers to be a more appropriate virtualization technology, compared to others, such as VMs, as they require less power [21], take less start-up and re-scaling time [22], [23], and, most importantly, can be rescaled on-the-fly without disrupting the service they provide.
9Due to the use of an actor-critic architecture, our approach is a joint policy and actionvalue-based optimization, which generally shows better convergence properties [16] compared to value-based approaches implemented in [9], [10], [12]- [14]. Moreover, Q-learning and SARSA are used for discrete action selection [24], which is not feasible for the continuous control problem addressed in this work. Although a continuous action space is considered in [15], it focuses on the allocation of a single resource (bandwidth), while we consider the allocation of two continuous resources plus a discrete action for server selection. In contrast to [10], we consider not only horizontal scaling but also vertical scaling, as well as offloading, significantly increasing the complexity of the problem. Furthermore, our algorithm works in an online manner, i.e., dynamically adapting to the network traffic, which differs from [11], where the algorithms are trained using historic labelled data and cannot adapt to new types (i.e., classes) of traffic that differs significantly from the training set. Moreover, in disagreement with what is stated in [11] for reinforcement learning (RL) approaches, our approach can use unlabelled historical data to learn, as we are interested in the network patterns (captured by the historical arrival and service times) to update the critic value-function estimates accordingly. Finally, in comparison with the cloud management algorithm presented in [7], using deep neural networks (DNNs) for function approximation can handle a higher dimensional state space, which would be challenging to be captured using decisions trees due to the exponential growth in the number of leaves.
10The remainder of this paper is organized as follows: In Section II the system model is introduced. The problem formulation using a Markov decision process (MDP) framework is presented in Section III. In Section IV we provide an overview of the RL notation, and review the works upon which our approach is based. The proposed PAT algorithm used to train the agent is explained in Section V. Numerical results illustrating the performance of the PAT algorithm are presented in Section VI. Finally a summary of the results and conclusions is presented in Section VII. We envisage an autonomous CU that has a local pool of resources that can be used to instantiate new VNFs, or to maintain deployed ones. The pool of local resources consists of K servers denoted by {S 1 , . . . , S K }, each with a limited processing and storage capability. We assume homogeneity across servers, such that each S k , k ∈ [K], has the same storage size of η max F bits and a central processing unit (CPU) of capability ρ max C Hz. In addition to the local servers, the CU can also employ resources located at a cloud center by offloading VNFs to the cloud, albeit at an increased cost which will be specified later. We consider a central cloud with an infinite capacity resource pool, and denote it by S K+1 , so the set of available resources to the CU is denoted by K = {S 1 , . . . , S K+1 }. We consider a slotted resource allocation scheme, where new users arriving at the system wait until the start of the next slot to be allocated resources. Thus, the time horizon is discretized into decision epochs, corresponding to slots of duration T , and are indexed by an integer t ∈ N + .
11At the beginning of each decision epoch, the CU decides how to allocate the network resources so that the VNFs can operate in the most agile and efficient way. We denote by N (t) ⊂ N , the set of active VNFs maintained by the CU during epoch t. The dependency on t of N (t) emphasizes the fact that VNFs can be added or removed from the set of services provided by any BS overtime. Let us refer to ρ (t) k ≤ ρ max and η (t) k ≤ η max as the total processing power and storage, respectively, of server S k being used at epoch t. The CU is connected to the cloud via a dedicated link of capacity R (t) Mbps. We denote by N k,j the instance of N j deployed at server S k , and allow only for one instance of each VNF to be deployed in a server.
12We consider two main physical resources to be provisioned to the VNFs, CPU and memory, and assume that NF instance N k,j , ∀j ∈ [N ], at epoch t uses c
13k,j . Thus, each VNF has a different resource range in which it can operate following the definition of an elastic NF, which refers to a VNF whose QoS gracefully degrades with the scarcity of resources [25]. The range of CPU and memory resources VNF N k,j is able to operate at is given
14where u (t) k,j denotes the number of users being served by VNF instance N k,j at epoch t; c j,0 and m j,0 represent the offset CPU and memory requirements, respectively, that do not depend on the number of users being served. The variables c j,r and m j,r account for the linear increment of CPU and memory per user being served by the particular deployment of N j in server S k .
15Values ∆c j,d and ∆m j,d are referred as the elastic service coefficients, and define the resource range under which the VNF is able to operate.
16The QoS of the u (t) k,j users served by the instance of VNF N k,j is denoted by QoS We assume that QoS k,j is given by the following piecewise function:
17where we defined r
18k,j . We see that N k,j satisfies the SLA if and only if m
19k,j as these result in QoS
20The number of new service requests from all the BSs for VNF N j , j ∈ [N ], in epoch t,
21is denoted by n (t) j , and is assumed to follow an independent and identically distributed (i.i.d.) homogeneous Poisson process with parameter λ (t) j ; in other words, the probability of n (t) j new demands to arrive at the CU for VNF N j in epoch t for a time-slot of duration T is given by:
22Remark 1. In order to capture slow variations of network traffic over time, we consider timevarying λ (t) j values, obtained by sampling a Gaussian distribution with parameters µ j and σ j and taking the maximum between the obtained value and 0, i.e., λ
23We assume value of λ j is kept constant for a block of t max time slots, and changes to an independent realization from the aforementioned truncated Gaussian distribution for the next block.
24Remark 2. The value of R (t) is also obtained by sampling a truncated Gaussian distribution. Its values is given by
25We model users' service times by a geometric distribution; i.e., at the end of each time slot a user will remain in the system with probability p j , and will leave the system with probability 1 − p j , so the expected service time of a user is 1/p j , ∀j ∈ [N ].
26There are three objectives the CU may want to optimize simultaneously: latency, financial cost and service quality. In order to simplify this multi-objective optimization problem we let the CU to minimize the long-term cost formed as a weighted combination of these three objectives. Next we explain each of these costs.
27The latency cost associated with VNF instance N k,j during epoch t is due to three potential causes of latency:
28r k,j : This latency is associated with resizing the containers. Resizing a VNF consists of varying the amount of allocated CPU and memory resources.
29Docker allows to resize containers on-the-fly by using the command docker update (from Docker v1.11.1). We consider that any instantiated container incurs a delay of δ r,c per unit C of CPU added/removed, and δ r,m per block of memory of size F added/removed. Thus, the VNF instance N k,j resizing latency is given by:
30• Deployment latency δ (t) d k,j : When a new VNF N k,j is instantiated on a server S k , k ∈ [K], we consider a boot-up delay of δ d,b per container. The total deployment latency of instance N k,j is given by
31• Offloading latency δ of f K+1,j : If a VNF instance is decided to be deployed on the cloud, in order to keep the service running, a continuous flow of information between the cloud and the CU is retained until the VNF is terminated. This communication incurs a total latency
32for the offloaded VNF. Once a VNF is deployed in the cloud, we consider that the maximum resource utilization is guaranteed r
33K+1,j = QoS max . The total latency incurred by VNF instance N k,j at epoch t is given by:
34All the users, being served by instance N k,j experience the same latency, and hence the scaling by u (t) k,j , the number of users being served for each instance.
35T k,j ) : A price model that takes into account the economic implications of each N k,j VNF instance configuration is developed.
36r k,j : We consider a financial cost of C r,m per B bits of memory per epoch and C r,p per C units of CPU resource per epoch for server S k , k ∈ [K], i.e.,
37, is powered on, we consider a one-time payment of C i,0 plus a rental cost of C i,v per epoch. Hence the server cost is given by:
38The financial cost of offloading a VNF to the cloud is modelled as a one-time payment of C c,0 plus a rental payment of C c,v per user per epoch until the VNF is terminated. Thus the cloud cost of VNF N j is given by:
39The total financial cost of VNF instance N k,j at epoch t is given by:
40, is associated with a minimum QoS requirement, QoS min j , and the failure to provision resources accordingly might incur service disruption, which violates the SLA. Accordingly, we define the SLA cost at
41where QoS
42k,j is the perceived QoS of VNF N j at server S k , and γ j is the penalty for not fulfilling QoS j . Furthermore, the SLA cost scales with the number of users being served by the VNF instance N k,j as all of them experience the same QoS. As it is going to be detailed later, our models tries to minimize a cost function; and thus, we would like to reinforce the good actions that lead to higher QoS by reducing the cost or by even making it negative. To this end, we define the SLA cost to be inversely proportional to the perceived QoS. Furthermore, the whole of users served by the VNF instance experience the same SLA cost, that is why, this cost is again scaled by the number of users u (t) k,j . We remark that, in order to capture the impact of reconfiguration of a VNF container on the whole network, each objective cost function is scaled by the number of users, such that a reconfiguration that affects more users is penalized/rewarded more than those affecting less users.
43Network Cost: We define the overall network cost as the total cost incurred by all the instances deployed in the network at decision epoch t, defined as:
44where the weights ω 1 , ω 2 , ω 3 ∈ R + are fixed weights independent of the VNF and the server.
45These weights can be tuned based on the preferences of the network operator, e.g., a network operator might be more concerned about reducing the economic cost rather than providing a high quality service, etc. The normalization by the number of users is to balance the network cost between heavy and low traffic periods. Without such a normalization busy traffic periods would incur higher costs regardless of the CU's performance.
46VNF Instance Cost: For purposes that will be explained in Section IV, we define the VNF instance cost C (t) k,j incurred by instance N k,j at epoch t, as follows:
47This cost measures the contribution of a particular VNF instance to the global network cost.
III. PROBLEM FORMULATION
48In this section, we formulate the resource allocation problem as a MDP. We envisage an autonomous CU with the goal of minimizing the long-term cost. To this end, we define the state space and the set of actions that the CU can take at each decision epoch.
A. MDP
49At each decision epoch of a MDP an agent observes a state s (t) ∈ S, where S is the state space, and selects and action a (t) ∈ A s (t) , where A s (t) is the set of all possible actions in state s (t) .
50is referred as the action space. Action a (t) in state s (t) incurs a certain cost R s (t) , a (t) , where R : S × A → R denotes the cost function, and the agent transitions to a new state s (t+1) ∈ S with probability p s (t+1) | s (t) , a (t) ∈ P, where P : S × A × S → [0, 1] is a probability kernel. At each interaction, the agent maps the observed state s (t) to a probability distribution over the action set A s (t) . This MDP model is thus characterized by the 4-tuple s, a, r, p (s | s, a) . This mapping specifies the policy of the agent, and is denoted by π. The probability of selecting action a (t) = a in state s (t) = s is given by π (a | s).
51The state-value function V π (s) for policy π at state s is defined as the expected discounted cost the agent would accumulate starting at state s following policy π:
52where 0 ≤ γ ≤ 1 is the discount factor that determines how far into the future the CU "looks",
53i.e., γ = 0 corresponds to a "myopic" CU, that focus only on its immediate cost, while γ = 1
54represents an CU concerned with the cost over the whole time horizon. The action-value function, also referred as Q-function, is defined as:
55We define the optimal value function, V * (s), as the minimum expected total discounted cost obtained starting in state s and following the optimal policy:
56The goal is to find a policy π * whose value function is the same as the optimal value function V π * (s) = V * .
57Next, we define the state and action spaces for our problem.
B. State Space
58The 3) number of users being served by VNF N j at each server, u (t) k,j . 4) cloud link capacity, R (t) . 5) CPU resources allocated to each VNF at each server, C (t) . 6) memory resources allocated to each VNF at each server, S (t) .
59The network state at epoch t is characterized by
C. Action Space
60We consider three distinct ways the CU can react to variations in the workload: vertical scaling, horizontal scaling and offloading. The CU actions are taken at the user level, that is, the CU selects an action for each user request arriving at the system. This allows the CU to allocate users requesting the same VNF to different servers.
61Following [26], we employ a PAMDP formulation, where a discrete action set is defined as 1 , a 2 , . . . , a D }, and each action a ∈ A D is associated with n a continuous parameters p a 1 , . . . , p a na , p a i ∈ R. Thus, each tuple a, p a 1 , . . . , p a na represents a distinct action, and the action space is given by A = ∪ a∈A D a, p a 1 , . . . , p a na . In our problem, the first discrete component denotes the server at which the user is assigned to, while the remaining continuous components denote how the associated resources are updated.
62Vertical Scaling: The vertical scaling action space, denoted by A V = [K], refers to actions adding resources to, or removing from, a deployed VNF container instance at epoch t [7].
63Taking into account the traffic fluctuations and VNF requirements, a CU might decide to increase (decrease) the CPU, and/or memory resources allocated to a deployed VNF instance independently, i.e., the memory allocation can be increased while the CPU allocation is decreased, or vice-versa. Hence, we define the vertical scaling actions separately for the CPU and memory resources, as p
64Vertical scaling is limited by the resources of the physical server in which a container is deployed, thus, the limitation of ρ max − ρ M can also take negative values. As mentioned before, all the users of a server's VNF instance equally share the allocated resources, thus, all of them are affected by the reshuffling of resources.
65Horizontal Scaling: Horizontal scaling refers to the deployment of new containers to support an existing VNF N j at epoch t. If the load of a VNF increases, and the CU estimates that server k at epoch t + 1 will not be able to support its operation the CU might create another instance of the same VNF in another server.
66where k denotes the server at which a new VNF instance is to be deployed using horizontal scaling. p M account for the amount of CPU and memory resources to be allocated for the new deployment of N k,j at server k.
67Work offloading: If the CU foresees that it cannot cope with a traffic fluctuation by scaling vertically or horizontally, it can decide to offload a VNF to the cloud. We define the offloading action as A (t) of f . This action is not associated with any parameter due to the assumption of unlimited CPU and memory resources at the cloud.
68Parametrized Action Space: Following the PAMDP notation the complete parameterized action space at epoch t is given by
69so that the CU action taken at epoch t, a (t) ∈ A (t) .
70The cost function for our problem has been defined in Section II in detail. Note that the CU's action at each time slot consists of n j (t) actions in the PAMDP formulation, one for each user request. Note that the randomness in our problem is due to random users arrivals for each VNF, and the random service time for each user in the system. If these statistics are known, the optimal policy can be identified through dynamic programming (DP), e.g., by the value iteration algorithm. However, estimating these probabilities for our problem, which has large state and action spaces is prohibitive, making the DP solution practically infeasible. Hence, we will instead exploit DRL to find an approximation to the optimal value function.
IV. REINFORCEMENT LEARNING FOR VNF MANAGEMENT
71In the RL method used in this work, the agent does not necessarily exploit (or even know) the transition probabilities governing the underlying MDP as it learns directly a policy as well as the action-value functions based on its past experience (model-free). The formulated problem suffers from the curse of dimensionality due to the prohibitively large size of the state and action spaces (continuous state space). Therefore, we employ the actor-critic method with NNs as a function approximation to parametrize the policy, and allows the learning agent to directly search over the action space. Another DNN is employed to approximate the state-value functions, which are used as feedback to determine how good the current policy is.
A. Deep Reinforcement Learning (DRL)
72The use of DNNs as general function approximators have been proven to work very well in a wide range of areas, such as computer vision, speech recognition, natural language processing and recently wireless networks [27]. Traditional RL methods struggle to address real-world problems due to their high complexity. In these problems, high-dimensional state spaces need to be managed in order to obtain a model that can generalize past experiences to new states. such as Duelling DQN [29], where there are two distinct DNNs, one to estimate V π (s) and the other to estimate the so-called advantage function A π (s, a) = Q π (s, a) − V π (s). These methods work well for a continuous state space but are limited to discrete action space, suffering from the curse of dimensionality when the action space is large.
73To overcome the limitation of discrete action selection, in [16] the idea of DQN is extended to continuous action spaces using the deterministic policy gradient (DPG) theorem [30], in particular the deep-DPG (DDPG) method. DDPG extends the use of DNN to the actor-critic method leveraging off-policy learning, where a deterministic policy is learned using a combination of replay buffer and target networks to ensure stability and a zero-mean Gaussian noise is added to the actions for action space exploration.
74In [17] it is shown that DDPG may lead to overestimated action-value estimates, thereby to suboptimal policies. To overcome this problem, authors present a novel method called twin delayed DDPG (TD3). A novel actor-critic architecture is proposed which comprises two critic networks, hence, two different Q-functions are learned, and the smaller of the two estimates is used as the update rule for the critics. The proposed algorithm adds clipped noise to the target action to make it harder for the policy to exploit Q-function errors. They also propose to update the targets and the policy less frequently than the Q-functions, helping to reduce the variance.
75Given the high dimensionality of both the state and the action spaces in our model we propose a solution that leverages DNNs as policy and action-value function approximators, while exploiting the results from [17] for continuous action selection. To this end, we implement a novel architecture for PAMDP to address the problem defined in Section III.
V. ACTOR-CRITIC METHOD IN PAMDP
76In the proposed approach, the actor-critic method is leveraged, which is a combination of value based and policy optimization approaches. It combines the benefits of both methods as the critic estimates the action-value function Q φ (s, a), while the actor derives a policy π θ (s) critically using the value estimates of the critic to update the policy. In this section we present our novel approach that implements the actor-critic method for a PAMDP, which we call the parameterized action twin (PAT). The proposed PAT algorithm is presented in Algorithm 1. For ease of notation in the rest of the section we will refer to s (t) = s, s (t+1) = s , a (t) = a, R s (t) , a (t) = r.
A. VNF MANO meets PAT
77Before detailing the proposed RL algorithm, we clarify its integration into the CU, and how it interacts with the environment described in Section II, as we believe it will ease the comprehension of the algorithm.
78At the beginning of each decision epoch t, we randomly select a VNF and we proceed to serve its new arrived users. The random selection of VNF is motivated by fairness, so that we avoid starting the process of resource allocation (when more resources are available) with always the same VNFs. Following the random VNF selection, we iterate over all requests of this VNF to allocate the network resources using the PAT method. For resource allocation, a snapshot of the network state is used as input to the PAT method. Based on the network state, the proposed RL algorithm decides the actions to be taken and from which server/cloud the user is served.
79After the allocation, a new updated snapshot of the network state is obtained and the agent cost described in Section V-C is computed. These transitions are stored in the memory buffer of the agent and will later be used to train the PAT algorithm, so that it adapts to previously seen as
B. Parameterized Action Twin (PAT) algorithm
80Following [17], we use two critics in order to obtain two distinct estimates of the actionvalues; thus, two different DNNs, parameterized by φ 1 and φ 2 , are used to estimate two different action-value functions. The aim of the two critic networks, as explained in [17], is to avoid overestimation. We find that clipping the critics' updates to the minimum between the two estimates yields better policies. Note that this update rule might introduce underestimation bias;
81however, we find it more convenient in the long term to avoid convergence to suboptimal policies.
82Two more DNNs, parameterized by θ 1 and θ 2 , are used for the policy parameterization of the actor. The goal of the first actor network is to select the discrete action a based on the current state s, while the second network generates the continuous action parameters p = [p
83M ] T based on the outcome of the first actor network a and the current system state s. Thus, the joint selection (a, p) determined by two distinct networks, in contrast to the approach in [18], where a single DNN architecture is used to determine both, the action and the parameters associated with it. We find this architecture to reflect a more natural process of action selection by first deciding the discrete action a, and then, choosing the associated parameters p as defined in Subsection III-C. We use a stochastic policy for discrete action selection while deterministic policy is leveraged for parameter selection, which we denote by µ, i.e., parameters θ 2 map state and action (s, a) to parameters µ θ 2 (s, a) = p. Figure 2 illustrates the DNNs structure and the flow of information.
84Finally, four more DNNs are employed, corresponding to the mirroring target networks, and
85respectively. Their function is explained later in this section. 1) Parameter Updates: The critics take the network state s and the action (a, p), and estimate the value function Q φ i (s, a, p) , i = 1, 2. As is typical in actor-critic methods, we use off-policy temporal difference of 0, i.e., TD(0), for action-value function approximation, with clipped update rules as below:
86which minimizes the following loss function, for i = 1, 2:
87The action-value functions of the critics are learned through gradient descent with the update rule:
88The critics estimations of the joint action and parameters are gathered by the actors to update the policy. In continuous action space, the greedy update of the policy becomes infeasible as it requires a global maximization at every step, and going through all the action space to maximize the estimated expected return is infeasible. Following [30], we use the critics' network's gradient that indicates the direction the global Q-value estimate increases, to update the policy parameters.
89In order to obtain the gradients, we need to perform back-propagation through one of the critics network (we chose critic 1). It must be noted here that this gradient is not the conventional gradient over the network parametrization but with respect to the input, such that for the action network θ 1 the update rule is θ t+1
90while the update rule for network θ 2 is
91where s ∼ ρ θ i refers to the trajectory sample using network i.
922) Stabilizing updates: Once both the critic and the actor networks are updated, the target networks should also be updated. Target networks are used to stabilize the updates. If the same φ 1 = φ 2 = φ network is used for bootstrapping ( i.e., estimating the value function of the next state Q(s , a )) and estimating Q(s, a) in (20), the φ network will be updated with each iteration to move closer to the target Q-values; but, at the same time, the target Q-values, which are given by the same network, will also be changing in the same direction, like a dog chasing its tail.
93By introducing the target networks, we reduce this constant movement of the target estimates by delaying its update. The rule to update the target networks is given by
94where τ ≤ 1 is an hyper-parameter used to regulate the speed at which the target networks are updated.
95Another tool to stabilize the network parameter updates is the memory buffer M. The memory buffer stores the interactions of the agent with the environment, to be more precise, we store on-step trajectories, i.e., s, a, r, s . Once the memory is filled with enough samples (≈ 100K),
96we uniformly sample the memory to obtain mini-batches of size N = samples which are used to compute the losses of the actor and critic. The idea behind the use of a memory buffer is that, most optimization algorithms, including gradient descent, assume that the samples, from which the gradient estimate is obtained, are i.i.d. Clearly this is not the case in the defined environment;
97however, by sampling uniformly from the memory buffer the correlation between consecutive samples is reduced, leading to a more stable optimization of the action-parameter selection.
983) Exploitation vs. exploration: Any RL algorithm using deterministic policy entails the tradeoff between exploitation and exploration. For discrete action selection, we use the − greedy policy to ensure exploration, where with probability a random action is selected by sampling a uniform random distribution over all possible discrete actions. A high value for is set at the beginning to encourage exploration, but its value is reduced gradually over time until it reaches a certain minimum min , where it remains stable.
99Ensuring the exploration of all possible continuous parameters is not possible. We use the approach proposed in [17], where a clipped zero-mean Gaussian noise is constantly added to the parameter selection policy (see Eqn. (26)). This approach is motivated by the assumption that similar parameters should have similar costs and thus, similar estimates; and the noise addition is used to encourage exploration. After the addition of noise the parameter values are clipped to the allowed range [p min , p max ], as defined in Section III-C.
100µ (s, a) = clip (µ θ 2 (s, a) + w, p min , p max ) ,
101where σ and c are hyperparameters. Similarly to the parameter for the action selection, we gradually reduce the value of c, until it reaches a minimum value c min .
4) Architecture:
102The DNN architectures for the action, action parameter, and critic networks are the same. For all the networks, the inputs are processed by three fully connected layers consisting of 128-64 units respectively. Each fully connected layer is followed by a rectified linear unit (ReLU) activation function with negative slope 10 −2 . The weights of the fully connected layers are initialized using Xavier [31] initialization with a standard deviation of 10 −2 .
103The input of the actor action network is the network state, and connected to its final inner product layer there are K + 1 linear outputs corresponding to the discrete action selection (K servers plus the cloud). For the actor parameter network, the last layer comprises an hyperbolic tangent activation function scaled by p max and η max with two outputs, corresponding to the CPU and memory values allocated to the discrete action selected, while its inputs are the state and the selected action. Finally the critic network gathers the state, action, and the action parameters, and a single output value is obtained, the estimate of Q(s, a, p). We use ADAM optimizer for both the actor and the critic, with a learning rate of l r .
C. Agent Cost Function
104In Section II, and more precisely in Eqn. (13), we defined the global network cost as the main metric this work aims to minimize. However, we do not directly use (13) as the metric the agent optimizes, as we found it to be too general to guide the agent in its initial learning steps towards finding resource allocation policies that lead to good results. The goal of this subsection is to define the cost function Ψ (t) that we use to provide feedback to the agent regarding its actions.
105Individual actions taken by the agent have direct impact in the VNF performance of the selected instance and then a lighter contribution on the total network performance. Thus, in order to guide the agent to learn to allocate resources to different VNF instances, we use the VNF instance cost of (14). However, the minimization goal of this work is the total network cost, hence, we need to include it in the global picture. To this end we define the cost as follows:
106where Γ max is a hyperparameter that guarantees Ψ (t) ∈ [−1, 1], while β determines how much the agent accounts for the total network cost. Eqn. (27) is what we use in the DNN training, while Eqn. (13) is the objective function which is the aim of this work.
107Furthermore, during the training phase, the proposed RL approach needs to learn the physics of the environment, that is, at the beginning of the learning process the agent might try to add/subtract more CPU or memory to a server than the one that is available/possible. In order to teach the agent the environment's physical limitations, whenever the algorithm outputs an infeasible action we offload the user to the cloud, and impose a cost of Ψ (t) = −1.
VI. NUMERICAL RESULTS
108In this section we present numerical results obtained with the PAT method described in Section V. We start by presenting the DRL benchmarks to test the proposed algorithm, followed by the experimental setup and the parameters used in the simulations.
109A. DRL benchmarks.
110In order to assess the quality of the proposed algorithm, we compare the PAT agent with other DRL benchmark algorithms.
111• Greedy: For each new user in the system, the greedy algorithm checks whether the new user's VNF is already deployed in one of the CU servers. If so, computes the CPU and memory that the server would need to allocate to that VNF such that the new and existing users can be served from that VNF instance, i.e.,the resulting VNF's QoS lies in the range between QoS min and QoS max . If server's available resources allow for the calculated VNF resizing, the VNF is resized, and the user is allocated to that server (vertical scaling). If not, another server is checked until resources for the new user can be assigned (horizontal scaling). If no server is able to allocate this new user, the new user is offloaded to the cloud.
112• Cloud: This approach offload all the traffic to the cloud.
113• DRL benchmarks: To overcome the problem of discrete and continuous action selection formulated in this work, we use two distinct state of the art DRL algorithms. For server selection, discrete action, we use DDQN, while for parameter selection we use the following algorithms:
1141) DDPG [30] with an hyperbolic tangent activation function in the outer layer scaled by the maximum values of the CPU and memory, respectively.
1152) A3C [32], where the output of the DNNs provide the mean and variance values of the Gaussian distributions used to sample the values of the CPU and memory. The parameter T of [32], is chosen to be 128.
1163) DDQN [28], where we discretize the CPU and memory action, with a resolution of 5, meaning that the total number of actions is given by η max /5 × ρ max /5.
117The DDQN for discrete action selection, and the previous set of algorithms are trained recursively (discrete action network training first, followed by parameter network training)
118for 1000 times. Each algorithm interacting with the environment a 10000 time-slots.
B. Parameters
119In our experimental setup, we consider N = 10 VNFs that can be instantiated by the users to be deployed in the network, with features shown in Table I. We consider a CU with K = 10 servers each with a CPU capability of 50C Hz (ρ max = 50) and memory capacity of 50B bits (η max = 50). The arrival rates (λ Table I. The values of the other parameters involved in the calculation of the cost function and those used to reinforce the actor behaviours are given in Table II. The PAT algorithm parameters are collected in Table III. We note that the values presented in Tables I, II and III for to a solution with a balanced allocation of available resources in the servers and the cloud.
120Naturally, the value of these parameters in practice depends highly on the implementation and the technology used (memory/CPU capability) as well as the VNFs being considered; however, our problem formulation is general, and we have reached similar observations with a large variety of parameter values considered.
C. PAT performance
121The proposed PAT algorithm is run using 10 different seeds, and the average learning curves are depicted in Figure 3. Given the cost function in (13), it can be seen that the agent maximizes the SLA to the point where the cost function is negative, meaning that the perceived QoS is greater than the weighted combination of the latency and the economical costs. Thus, given the predefined cost function, the agent learns to minimize the cost and to utilize the servers in an online manner. That is, since the agent generates its own dataset on the fly, by interacting with the environment, variations in the environment are directly fedback into the model by adding new traces into the memory buffer. Therefore, when a statistically significant change occurs, this is captured by the model.
D. Mapping to KPIs
122We now define three KPIs for MANO in 5G networks, and map the results obtained with the PAT algorithm to these KPIs. The following KPIs are of interest for future 5G networks [33]:
123• Resource utilisation efficiency: Given the CPU and memory resources, resource utilisation efficiency is defined as the ratio of utilized resources with respect the total available resources for the execution of a VNF, for a particular number of users. With the elastic functions employed in our model, the system should achieve a higher resource utilisation efficiency, since it can shelter a much larger number of users over the same physical infrastructure.
124• Cost efficiency gain: This metric captures the average cost of deploying and maintaining the network infrastructure to provide the required service to its users. Given the elastic nature of the VNFs deployed, the CU should be able to optimally dimension the network such that less resources are required to support the same services; in addition, the elastic system should avoid the usage of unnecessary resources.
E. PAT evaluation
125In Figure 4 and 5, we present the results of the proposed PAT approach and that of the other benchmark algorithms. The comparison is carried out under exactly the same traffic patterns,
126i.e., same arrival and departure times.
127From Figures 4(a), 4(b) and 5(c) it can be observed that the particular set of parameters chosen for this network configuration entails that users offloaded to the cloud experience higher delays than the users served by the CU. On the contrary, for the financial cost, VNFs instantiated in the CU have a higher cost than VNFs instantiated in the cloud. That explains why the scheme with lowest cloud utilization, i.e., greedy, has the lowest delay per user but the highest financial cost per user.
128Furthermore, Figure 5(c) shows how all the DRL algorithms decide to allocate more users to the cloud than the CU, this is mainly for two reasons affecting the learning process:
1291) The VNF cloud allocation does not carry any penalty. Contrary to VNF allocation in the CU, where algorithms are penalised if the physical limitations of the servers are not respected or allocated resources are not enough to fulfill the SLA, the deployment of VNFs at the CU carry a positive reward.
1302) The QoS drives the learning experience. Since ω 3 is greater than the other two weights scaling the costs functions defined in Eqn. (13) and (14), algorithms aim to maximize SLA cost (given the RL reward function of (27)). Thus, as allocating VNF to CU may lead to lower QoS if the CU fails to provide the maximum demanded resources, the DRL tends to use the cloud where QoS max is guaranteed.
1) Resource utilisation efficiency:
131A comparison of the resource utilisation is presented in 2) Cost efficiency gain: The comparison between the averaged economical cost of the PAT deployment and the other schemes is presented in Figure 4(b), where a gain in economical cost by the PAT algorithm is clearly visible. The economical cost difference between the PAT and the greedy is straightforward, as the network configuration used entails a higher cost for the use of CU resources. The reduction of financial cost of the PAT compared to the other DRL algorithms is because the latter allocate more CPU and memory than needed, given the fact that most of their traffic is directed to the cloud, such that the CU resources are underutilized, incurring higher cost per user. It is somewhat surprising that the greedy algorithm performing comparably, or sometimes even better than the baseline DRL algorithms at some time periods. This is because the DRL algorithms, in contrast to PAT, have delays in adapting to the randomness of the environment, or tend to slightly over-provision resources to be able to cope with highly time-variant traffic demands. If, however, we keep the traffic statistics (arrival rates) constant, we can see in Figure 6 that baseline DRL algorithms outperform greedy, although PAT is still the best performing algorithm. This shows that PAT not only outperforms other baselines in exploiting the resources in the most efficient manner in a static environment, but also is the fastest in terms of adapting to variations in the environment.
VII. CONCLUSIONS AND FUTURE WORK
132We presented a novel DRL algorithm for autonomous management and orchestration of VNFs, where the CU learns to re-configure resources (CPU and memory), to deploy new VNFs instances, and to offload VNFs to a central cloud depending on network conditions, VNFs' requirements and the pool of available resources. We formulated the stochastic problem of resource allocation for a radio access network, where a group of BSs are connected to a CU that needs to provision and manage resources for the BS users as a Markov decision problem. Then, we proposed a DRL-based solution for this MANO problem, more precisely, we presented a novel approach named PAT, which leverages the actor-critic method to learn to provision network resources to the VNFs in an online manner, given the current network state and the requirements of the deployed VNFs. The novel architecture implements two critics for action value function estimation (twin), and two actor networks are used to determine the action and the parameter. A deterministic policy is implemented for both action and parameter selection. We have shown that the proposed solution outperforms all benchmark DRL schemes as well as heuristic greedy allocation in a variety of network scenarios, including static traffic arrivals as well as highly time-varying traffic settings. To the best of our knowledge, this is the first work that considers DRL for network MANO of VNFs.
133As future research directions, we consider addressing the MANO of VNF chains. The problem addressed in this work does not take into account the likely relation between different VNFs to form VNF chains, where NFs may have a temporal ordering in which they are requested by users. This factor highly increases the complexity of resource allocation as the overall user experience might be affected by a subtle VNF resource modification. Furthermore, another interesting direction might be the use of hierarchical DRL approach to be able to coordinate at the same time the network slice requirements with the sub-VNFs instantiated by those slices when deployed in a shared pool of resources.
참고문헌 33건
- Threshold Based Auto Scaling of Virtual Machines in Cloud Environment Lecture notes in computer science · Springer Science+Business Media · 2014 10.1007/978-3-662-44917-2_21
- Introduction to Reinforcement Learning MIT Press eBooks · MIT Press · 1998
- Understanding the difficulty of training deep feedforward neural networks 2010
- Language Understanding for Text-based Games using Deep Reinforcement Learning Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · 2015 10.18653/v1/d15-1001
- VScaler: Autonomic Virtual Machine Scaling 2013 10.1109/cloud.2013.142
- A Review of Auto-scaling Techniques for Elastic Applications in Cloud Environments Journal of Grid Computing · Springer Science+Business Media · 2014 10.1007/s10723-014-9314-7
- Wireless Network Virtualization: A Survey, Some Research Issues and Challenges IEEE Communications Surveys & Tutorials · Institute of Electrical and Electronics Engineers · 2014 10.1109/comst.2014.2352118
- Network function virtualization: Challenges and opportunities for innovations IEEE Communications Magazine · Institute of Electrical and Electronics Engineers · 2015 10.1109/mcom.2015.7045396
- Human-level control through deep reinforcement learning Nature · Nature Portfolio · 2015 10.1038/nature14236
- Deterministic policy gradient algorithms HAL (Le Centre pour la Communication Scientifique Directe) · Centre National de la Recherche Scientifique · 2014
- SmartScale: Automatic Application Scaling in Enterprise Clouds 2012 10.1109/cloud.2012.12
- Continuous control with deep reinforcement learning arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1509.02971
- Dueling network architectures for deep reinforcement learning 2016
- A Framework and Algorithm for Energy Efficient Container Consolidation in Cloud Data Centers IEEE International Conference on Data Science and Data Intensive Systems · 2015 10.1109/dsdis.2015.67
- Efficient Auto-Scaling Approach in the Telco Cloud Using Self-Learning Algorithm 2015 IEEE Global Communications Conference (GLOBECOM) · 2015 10.1109/glocom.2015.7417181
- Containers and Virtual Machines at Scale 2016 10.1145/2988336.2988337
- Addressing Function Approximation Error in Actor-Critic Methods arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1802.09477
- The path towards resource elasticity for 5G network architecture 2018 10.1109/wcncw.2018.8369027
- Auto-Scaling VNFs Using Machine Learning to Improve QoS and Reduce Cost 2018 10.1109/icc.2018.8422788
- Auto-Scaling Network Resources using Machine Learning to Improve QoS and Reduce Cost arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1808.02975
- Comparative Study of Virtual Machines and Containers for DevOps Developers SSRN Electronic Journal · Social Science Electronic Publishing · 2023 10.2139/ssrn.4404383
- Deep Reinforcement Learning for Resource Management in Network Slicing IEEE Access · Institute of Electrical and Electronics Engineers · 2018 10.1109/access.2018.2881964
- Dueling Network Architectures for Deep Reinforcement Learning arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1511.06581
- Deep Reinforcement Learning With Discrete Normalized Advantage Functions for Resource Management in Network Slicing IEEE Communications Letters · IEEE Communications Society · 2019 10.1109/lcomm.2019.2922961
- Optimized Computation Offloading Performance in Virtual Edge Computing Systems Via Deep Reinforcement Learning IEEE Internet of Things Journal · Institute of Electrical and Electronics Engineers · 2018 10.1109/jiot.2018.2876279
- Deep Reinforcement Learning in Parameterized Action Space arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1511.04143
- Continuous control with deep reinforcement learning arXiv (Cornell University) · Cornell University · 2016
- Asynchronous Methods for Deep Reinforcement Learning arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1602.01783
- Multi-Tenant Cross-Slice Resource Orchestration: A Deep Reinforcement Learning Approach IEEE Journal on Selected Areas in Communications · Institute of Electrical and Electronics Engineers · 2019 10.1109/jsac.2019.2933893
- Machine Learning in the Air IEEE Journal on Selected Areas in Communications · Institute of Electrical and Electronics Engineers · 2019 10.1109/jsac.2019.2933969
- Power Consumption of Virtualization Technologies: An Empirical Investigation 2015 10.1109/ucc.2015.93
- Deterministic Policy Gradient Algorithms HAL (Le Centre pour la Communication Scientifique Directe) · Le Centre pour la Communication Scientifique Directe · 2014
- Comparative Study of Virtual Machines and Containers for DevOps Developers arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1808.08192