A heterogeneous network slicing scheduling method based on deep reinforcement learning

Through the heterogeneous network slicing scheduling method of deep reinforcement learning, the DDPG model is used to dynamically adjust the slicing scheduling strategy, which solves the problem of low resource utilization caused by the fixed scheduling strategy in the existing technology, and improves the QoS satisfaction rate and service transmission efficiency.

CN113891401BActive Publication Date: 2024-10-15CHINA ELECTRONICS TECH GRP NO 7 RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110971021.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-12
Publication Date
2024-10-15
Estimated Expiration
2041-11-12

AI Technical Summary

Technical Problem

The existing technology uses fixed scheduling strategies in heterogeneous network slice scheduling, which cannot fully utilize network resources, resulting in poor QoS satisfaction rate, service transmission completion time, and average slice bandwidth utilization.

Method used

Adopt a heterogeneous network slicing scheduling method based on deep reinforcement learning, alternate offline training and online scheduling through the Deep Deterministic Policy Gradient Model (DDPG), dynamically adjust the slicing scheduling strategy, and optimize slice selection in real time according to business QoS requirements and slicing status. .

Benefits of technology

It improves the QoS satisfaction rate, service transmission completion time and average slice bandwidth utilization, achieving more efficient utilization of network resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113891401B_ABST
    Figure CN113891401B_ABST
Patent Text Reader

Abstract

The present invention discloses a heterogeneous network slice scheduling method based on deep reinforcement learning, wherein the method is implemented by alternating the offline training phase of the neural network and the online slice scheduling phase as a scheduling cycle, specifically as follows: S1: offline training phase of the deep reinforcement learning model; S2: online slice scheduling phase. The present invention adopts a heterogeneous network slice scheduling algorithm based on deep reinforcement learning, learns the slice scheduling strategy in the interaction with the environment, and learns the optimal scheduling strategy in the repeated iterations of neural network training and slice scheduling, that is, the slice available bandwidth threshold is constantly changing in the interaction with the changing environment until the optimal scheduling threshold is learned. Under the same experimental conditions, the present invention has improvements in QoS satisfaction rate, service transmission completion time, and average slice bandwidth utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication technology, and more specifically, to a heterogeneous network slicing scheduling method based on deep reinforcement learning. Background Art

[0002] The communication network in the 5G era is a heterogeneous network that integrates multiple access technologies such as WiFi, 5G, LTE, and UMTS to meet the diverse business needs of network terminals, which also makes business customization possible. Various emerging new applications have differentiated performance requirements. Some applications require low latency, some require high bandwidth, and some require higher reliability requirements. However, at present, the network configuration is not flexible enough, and it is impossible to fully utilize network resources for business services. It is difficult to meet the customized data transmission needs of the business, which brings great inconvenience to network management and operation and low resource utilization.

[0003] For example, the literature [Wu Yina. Research and Implementation of Network Resource Control Mechanism Based on Slicing [D]. Jiangsu, Nanjing: Southeast University, 2016.] discloses a resource control mechanism based on network slicing under SDN, which is divided into three steps:

[0004] (1) Resource control model based on slicing: It includes the decision-making layer, the device forwarding layer, and the information interaction interface between the two layers based on the OpenFlow protocol. The structure is as follows: Figure 1 shown.

[0005] The network information collection component is responsible for collecting the network topology, the load information of network nodes, and the traffic information between network nodes; the slice construction component constructs slices based on the collected information; the traffic scheduling component completes the real-time scheduling of business traffic; the decision deployment component is responsible for calling the information interaction interface to send the queue configuration information and flow table information to the specified underlying network device; the device forwarding layer is responsible for the actual operation of business traffic.

[0006] (2) QoS slice partitioning method: Through the information collected by the network information collection component, the network topology directed graph, service flow matrix and QoS requirements of various services are obtained. Using the multi-commodity flow method, several optimal routes are searched from the network to form network slices, and bandwidth resources are reserved. The constraints indicate that a link can only choose to transmit or not transmit service traffic; the traffic transmitted by the service cannot exceed the total capacity of the link, and must also meet the bandwidth requirements of the service; the total transmission traffic of the link cannot exceed its total capacity; the input and output traffic of the intermediate nodes must be consistent, and the traffic of the sending and receiving nodes must also be consistent with the service traffic. The greedy algorithm is used to complete the construction of all QoS slices: various types of services are processed in order of priority. For each type of service, the slice path is obtained, the service traffic to be transmitted by the nodes on the path is retained, the number of remaining resources on each node is modified, and then the next service is processed until the service with the lowest priority is also processed.

[0007] (3) Traffic scheduling method based on network status: Schedule the traffic of the corresponding service according to the divided slice path, while taking into account the changes in network status. In order to provide the minimum QoS guarantee, first find the bandwidth utilization rate in the slice that is consistent with its own QoS requirements. If it is less than 90%, the service traffic is transmitted in this slice. Otherwise, the service traffic is scheduled to a slice with higher QoS requirements but lower bandwidth utilization than its own QoS requirements. That is, the slice scheduling of service traffic is based on fixed rules. The overall network slicing division and scheduling process is as follows: Figure 2 shown.

[0008] However, the technical solutions disclosed in the above documents still have the following deficiencies: a fixed scheduling strategy is adopted in the slice scheduling stage, that is, the slice bandwidth utilization threshold is artificially set to 90%. During scheduling, if the slice bandwidth utilization rate is higher than 90%, a slice with higher QoS requirements but lower bandwidth utilization rate will be selected for scheduling. If it is lower than 90%, the slice will continue to be selected for scheduling. Although network slices of different service types have been planned in advance, the network status is complex and changeable. The fixed scheduling strategy cannot maximize the slice utilization rate, and the utilization rate of network resources is not the highest. Therefore, the optimal value cannot be achieved in terms of QoS satisfaction rate, service transmission completion time, and average slice bandwidth utilization. Summary of the invention

[0009] In order to solve the above problems in the prior art, the present invention provides a heterogeneous network slicing scheduling method based on deep reinforcement learning.

[0010] In order to achieve the above-mentioned purpose of the present invention, the technical scheme adopted is as follows:

[0011] A heterogeneous network slice scheduling method based on deep reinforcement learning, wherein the method is implemented by alternating the neural network offline training phase and the online slice scheduling phase as a scheduling cycle, as follows:

[0012] S1: Offline training phase for deep reinforcement learning models

[0013] S101: The obtained service QoS requirement information and slice state information constitute the state parameters of the environment and serve as the input of the deep reinforcement learning model. The deep reinforcement learning model outputs a set of probability vectors, which represent the probability value of selecting each slice.

[0014] S102: The slice scheduler selects the slice with the largest probability value for scheduling, updates the environment state after scheduling is completed, and obtains the feedback reward function value;

[0015] S103: According to the maximum value of the reward function, the optimal scheduling strategy at this time is obtained as the available bandwidth threshold of each slice; a slice whose available bandwidth is higher than the available bandwidth threshold is selected for transmission;

[0016] S2: Online slice scheduling stage

[0017] S201: Perform scheduling according to the scheduling strategy obtained in step S103, and save the information of each scheduling in the form of experience tuples into the experience recycling pool;

[0018] S202: After the online scheduling is completed, the experience information is taken out from the experience recycling pool according to the batch size, and the process returns to step S1 to continue offline training of the deep reinforcement learning model to obtain a better scheduling strategy.

[0019] Preferably, the offline training phase and the online slice scheduling phase are performed alternately until the reward function value no longer increases, at which point the optimal scheduling strategy is obtained as the final slice available bandwidth threshold.

[0020] Furthermore, in order to abstract the slice scheduling process into a Markov decision process, the time axis is divided into several scheduling cycles. In each scheduling cycle, the slice scheduler adopts different scheduling strategies to select the slice that is closest to the service QoS requirement.

[0021] Furthermore, the deep reinforcement learning model is a deep deterministic policy gradient model DDPG.

[0022] Furthermore, the deep deterministic policy gradient model DDPG includes an Actor current network, an Actor target network, a Critic current network, and a Critic target network;

[0023] The Actor current network: implements the update of the deep reinforcement learning model parameter ω, which is based on the current state s t Select action a t , after interacting with the environment, the next state s is obtained t+1 and the reward value r of environmental feedback t ;

[0024] The Actor target network: samples the next state s from the experience recycling pool t+1 , choose the next best action a t+1 , and periodically copy the Actor's current network parameters ω to ω′;

[0025] The Critic current network: implements the update of the value network parameter θ, and calculates the current Q value and the target Q value;

[0026] The Critic target network is responsible for assisting in calculating the target Q value and periodically copying the Critic current network parameter θ to θ′.

[0027] Furthermore, the replication of DDPG from the current network to the target network is not equal value replication, but a "soft update" method, that is, only a little parameter is updated each time:

[0028] θ′←τθ+(1-τ)θ (1)

[0029] ω′←τω+(1-τ)ω (2)

[0030] Here, τ represents the learning rate.

[0031] Furthermore, the reward function value indicates the degree to which the network performance of the selected slice complies with the service QoS requirements:

[0032]

[0033] Among them, λ, α, β all represent weights, 0<λ<1, 0<α<1, 0<β<1; x t,i represents the available bandwidth of the i-th slice in the t-th scheduling period; w t,i Indicates the bandwidth requirement of the service request in the tth scheduling period; u t,i represents the delay requirement of the service request in the tth scheduling period; d t,i represents the average round trip delay of the i-th slice in the t-th scheduling period; v t,i represents the packet loss rate of the i-th slice in the t-th scheduling period; c t,i Indicates the packet loss rate requirement of the service request in the tth scheduling period.

[0034] Furthermore, the output of the deep deterministic policy gradient model DDPG has three items: an action a = α (s | θ α ), a value function term V(s|θ V ) and an advantage function term A(s,a|θ A ), where α(s|θ α ) represents the policy network under state s, θ represents the network parameters;

[0035] Therefore, the current Q value obtained by training the deep deterministic policy gradient model is obtained by adding the value function term and the advantage function term. The advantage function is parameterized as a quadratic function of a nonlinear state feature, and the expression is as follows:

[0036] Q(s,a|θ Q )=A(s,a|θ A )+V(s|θ V ) (4)

[0037]

[0038] Among them, U(s|θ U ) is a positive definite matrix about the state, which can be decomposed into:

[0039] U(s|θ U )=P(s|θ U )P(s|θ U ) T (6)

[0040] Among them, P(s|θ U ) is a lower triangular matrix with positive diagonals, we get:

[0041] Q(s,a|θ Q )≤V(s|θ V ) (7)

[0042] If and only if A(s,a|θ A )=0, the equality of formula (7) holds;

[0043] From equation (4) and equation (5), we can get:

[0044]

[0045] From the above formula, we can see that the Q value is quadratic with respect to action a, so:

[0046] max a Q(s,a|θ Q )=V(s|θ V ) (9)

[0047] The action output by the deep deterministic policy gradient model ensures that the Q value reaches the maximum value V.

[0048] Furthermore, the parameter θ is adjusted during the training of the deep deterministic policy gradient model to reduce the mean square error of the Bellman equation:

[0049] (y t -Q(s,a|θ)) 2 (10)

[0050] Among them, y t =r t +βmax a Q(s t+1 ,a|θ Q ) is the target Q value, and Q(s,a|θ) is the current Q value.

[0051] Furthermore, the soft update is as follows:

[0052] The target Q value is calculated using the Critic target network Q′, and the network parameter is θ′; the current Q value is calculated using the Critic current network Q, and the network parameter is θ; therefore, the target Q value calculated by the target network is:

[0053] y t =r t +βmax a Q′(s t+1 ,a|θ′)=r t +βV′(s t+1 |θ′) (11)

[0054] The current Q value calculated by the Critic network is:

[0055] Q(s t ,a t |θ)

[0056] The loss function is defined as the expectation of the mean squared error of the Bellman error:

[0057] L(θ)=E[(r t +βV′(s t+1 |θ′)-Q(s t ,a t |θ)) 2 (12)

[0058] Differentiate the loss function with respect to θ to get its gradient:

[0059]

[0060] By minimizing the loss function:

[0061]

[0062] To update the weight θ of the Critic’s current network, and then use this weight to soft-update the weight θ′ of the Critic’s target network.

[0063] The beneficial effects of the present invention are as follows:

[0064] The present invention adopts a heterogeneous network slice scheduling algorithm based on deep reinforcement learning, learns slice scheduling strategies in the interaction with the environment, and learns the optimal scheduling strategy in the repeated iterations of neural network training and slice scheduling, that is, the slice available bandwidth threshold is constantly changing in the interaction with the changing environment until the optimal scheduling threshold is learned. Under the same experimental conditions, the present invention has improved QoS satisfaction rate, service transmission completion time, and average slice bandwidth utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 It is a network resource control model based on slice resource division in the existing technology.

[0066] Figure 2 It is a flow chart of slice division and scheduling in the prior art.

[0067] Figure 3 This is a step flow chart of the heterogeneous network slicing scheduling method described in Example 1.

[0068] Figure 4 This is a flowchart of the scheduling cycle described in Example 1.

[0069] Figure 5 This is a framework diagram of the network slicing scheduling method based on deep reinforcement learning described in Example 1.

[0070] Figure 6 This is a flow chart of the neural network training described in Example 1.

[0071] Figure 7 This is a flowchart of the slice scheduling described in Example 1.

[0072] Figure 8 This is a flowchart of the DDPG network training described in Example 1. DETAILED DESCRIPTION

[0073] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0074] Example 1

[0075] like Figure 3As shown, a heterogeneous network slice scheduling method based on deep reinforcement learning is implemented by alternating the neural network offline training phase and the online slice scheduling phase as a scheduling cycle, as follows:

[0076] S1: Offline training phase for deep reinforcement learning models

[0077] S101: The service QoS requirement information obtained by the service perception terminal and the slice status information obtained by real-time detection constitute the state parameters of the environment and serve as the input of the deep reinforcement learning model. The deep reinforcement learning model outputs a set of probability vectors, which represent the probability value of selecting each slice.

[0078] S102: The slice scheduler selects the slice with the largest probability value for scheduling, updates the environment state after scheduling is completed, and obtains the feedback reward function value;

[0079] S103: According to the maximum value of the reward function, the optimal scheduling strategy at this time is obtained as the available bandwidth threshold of each slice; a slice whose available bandwidth is higher than the available bandwidth threshold is selected for transmission, that is, if the slice available bandwidth is higher than the available bandwidth threshold, the slice is continued to be selected for transmission; if the slice available bandwidth is lower than the slice available bandwidth threshold, a slice with a higher priority is selected for transmission;

[0080] S2: Online slice scheduling stage

[0081] S201: Perform scheduling according to the scheduling strategy obtained in step S103, and save the information of each scheduling in the form of experience tuples into the experience recycling pool;

[0082] S202: After the online scheduling is completed, the experience information is taken out from the experience recycling pool according to the batch size, and the process returns to step S1 to continue offline training of the deep reinforcement learning model to obtain a better scheduling strategy.

[0083] In a specific embodiment, after the online scheduling is completed, the experience information is taken out from the experience recycling pool according to the batch size, and the neural network is trained offline to obtain a better scheduling strategy. Offline training and online scheduling are performed alternately, and the available bandwidth threshold of the slice also changes with the change of the environment until the reward function value no longer increases, and the optimal scheduling strategy, that is, the final slice available bandwidth threshold, is obtained.

[0084] In a specific embodiment, in order to abstract the slice scheduling process into a Markov decision process, the time axis is divided into scheduling cycles. In each scheduling cycle, the slice scheduler uses different scheduling strategies to select the slice that is closest to the service QoS requirement. Assume that there are n slices connected, where n ≥ 1, and assume that a i is the probability that the scheduler selects the i-th slice in a certain scheduling cycle, and the selection probability of all slices satisfies: After obtaining this probability vector, the scheduler selects the slice with the largest probability value, assigns it to the business, and obtains the reward function value of the environment feedback to determine whether the customized data transmission requirements are met. The subsequent scheduling cycle is continuously iterated until the optimal slice scheduling strategy is learned. The scheduling cycle process is as follows: Figure 4 shown.

[0085] In each scheduling cycle, the slice scheduler uses the detected slice status and perceived service QoS requirement information as the input of the deep reinforcement learning model, and outputs the probability vector of selecting each slice at this time. The scheduler then selects the slice with the highest probability to perform the selection action, and observes the reward function value fed back by the reward function. It iterates continuously until the scheduler can execute the optimal scheduling strategy in each scheduling cycle to meet the requirements of customized services.

[0086] In a specific embodiment, the deep reinforcement learning model adopts a deep deterministic policy gradient model (DDPG) to solve the slice scheduling problem. The DDPG has four networks, namely, the Actor current network, the Actor target network, the Critic current network, and the Critic target network. Their functions are as follows:

[0087] Actor current network: implements the update of the policy neural network parameter ω, which is based on the current state s t Select action a t , after interacting with the environment, the next state s is obtained t+1 and the reward value r of environmental feedback t ;

[0088] Actor target network: Sample the next state s from the experience recycling pool t+1 , choose the next best action a t+1 , and periodically copy the Actor's current network parameters ω to ω′;

[0089] Critic current network: realizes the update of value network parameter θ, calculates current Q value and target Q value;

[0090] Critic target network: responsible for assisting in calculating the target Q value and periodically copying the critic's current network parameters θ to θ′.

[0091] In addition, DDPG does not copy the value from the current network to the target network, but adopts a "soft update" method, that is, only a little parameter is updated each time:

[0092] θ′←τθ+(1-τ)θ (1)

[0093] ω′←τω+(1-τ)ω (2)

[0094] Where τ is the learning rate (τ<<1). This small "soft update" makes the training of the DDPG network more stable.

[0095] State: Assume that in the tth scheduling period, the state of the system is represented by s t =(s t,1 ,s t,2 ,…,s t,n ), where s t,i (1≤i≤n) represents the network status of the i-th slice in the t-th cycle. t,i It consists of multiple state parameters, which are defined as s t,i =(x t,i ,w t,i ,d t,i ,u t,i ,v t,i ,c t,i ),in:

[0096] x t,i : The available bandwidth of the i-th slice in the t-th scheduling period;

[0097] w t,i : The bandwidth requirement of the service request in the tth scheduling period;

[0098] d t,i : The average round trip delay of the i-th slice in the t-th scheduling period;

[0099] u t,i : The latency requirement of the service request in the tth scheduling period;

[0100] v t,i : Packet loss rate of the i-th slice in the t-th scheduling period;

[0101] c t,i : Packet loss rate requirement of service requests in the tth scheduling period;

[0102] Action: After observing the state of the environment, the agent returns a set of probability vectors through the deterministic strategy of the DDPG neural network, which represents the probability value of scheduling the service to a certain slice. The slice scheduler selects the slice with the maximum probability value for service allocation. This is action a of the reinforcement learning algorithm. t .

[0103] Reward: After the agent selects an action according to the strategy, the slice scheduler executes the action in the next scheduling cycle to select the slice corresponding to the business. At the end of the cycle, the state is updated to the next state, and the reward function value r of this scheduling is set. tThe reward function value is defined as the degree to which the network performance of the selected slice meets the service QoS requirements:

[0104]

[0105] Among them: λ, α, β all represent weights, 0<λ<1, 0<α<1, 0<β<1, the first term of the reward function represents the degree of fit between the available bandwidth of the slice and the bandwidth requirement of the service. Because the reward function designed in this implementation focuses on the bandwidth requirement, the difference between the two is used as the denominator to increase its weight; the second term of the reward function represents the degree of fit between the latency requirement of the service and the current latency of the slice; the third term of the reward function represents the degree of fit between the packet loss requirement of the service and the current packet loss rate of the slice.

[0106] Strategy: This embodiment uses the DDPG algorithm of deep reinforcement learning, which is a deterministic strategy and can be expressed as Among them, Represent the state set and action set respectively. When the strategy is executed, a state s is obtained. t , the agent will perform the corresponding action a t =μ(s t ). Specifically, the execution process of the scheduling strategy of the slice scheduler can be expressed as selecting a series of corresponding actions to perform slice scheduling according to the sequence of the current environment state. In the DDPG algorithm, an artificial neural network is used to represent the strategy. The input of the network is the slice state information and business information, and the output of the network is the scheduling action.

[0107] This embodiment uses an artificial neural network to represent the deterministic scheduling strategy and the valuation of the value function. The detected slice status and the service QoS requirement information perceived by the service perception terminal are used as the input of the neural network. The output is the valuation information of the value function and a set of probability vectors. The slice scheduler selects the slice with the largest probability value for scheduling, which is regarded as a scheduling action.

[0108] The specific implementation process is:

[0109] ① First, the neural network is trained. The sensing end senses the service type and obtains the QoS requirements corresponding to the service. The slice scheduler monitors the network status of all slices in real time, and uses the service QoS requirement information and slice status information as the initial state of the DDPG neural network. The greedy strategy is used to select the slice with the largest probability value for scheduling, and the current reward function value is obtained. The neural network state at the next moment is updated, and training is continued until the DDPG neural network model converges and a better scheduling strategy is learned. That is, the available bandwidth threshold of each slice is learned based on the feedback of the reward function. If the slice available bandwidth is higher than the available bandwidth threshold, the slice is selected to transmit the service; if the slice available bandwidth is lower than the available bandwidth threshold, a slice with a higher priority is selected to transmit the service.

[0110] ② Then perform slice scheduling, use the scheduling strategy obtained through training to perform slice scheduling, and record the information of each scheduling in the form of (s t ,a t ,r t ,s t+1 ,t) in the form of experience recycling pool. After the online scheduling is completed, the data stored in the experience recycling pool is taken out according to the batch size, and the DDPG neural network model is continued to be trained to obtain a better scheduling strategy. This iteration is repeated until the reward function value is no longer improved, and the best scheduling strategy is obtained. The overall framework is as follows Figure 5 Shown

[0111] Figure 5 The control layer in the slicing layer realizes the online scheduling of slices. The slice scheduler detects the slice status and the business demand information perceived by the business perception end. t As the input of the DDPG neural network model, the output layer of the DDPG neural network model uses the softmax function to output a set of probability vectors for slice selection, so that the values ​​of these vectors are between 0 and 1 and the sum of the vectors is 1. The scheduler selects the slice with the maximum probability for scheduling and outputs action a t ; Then the reward function will feedback the reward function value r of the slice scheduler for this scheduling t , and the environment state is transferred to the scheduled state s t+1 , these interactive information will be collected by the experience collector in the form of (s t ,a t ,r t ,s t+1 ,t) in the form of experience recycling pool for use by the training layer.

[0112] Figure 5 The training layer in DDPG realizes the training of the neural network. The experience collector takes out the experience information from the experience recycling pool according to the specified batch size, performs network training, updates the network training parameters, and obtains a better scheduling strategy.

[0113] The training process of the DDPG neural network and the scheduling process of slices are as follows Figure 6 , 7 shown.

[0114] In a specific embodiment, the output of the DDPG neural network based on the deep reinforcement learning algorithm used in this embodiment has three items: an action a=α(s|θ α ), a value function term V(s|θ V ) and an advantage function term A(s,a|θ A ), where α(s|θ α) represents the policy network under state s, and θ represents the network parameters. Therefore, the current Q value obtained by neural network training can be obtained by adding the value function term and the advantage function term. The advantage function can be parameterized as a quadratic function of a nonlinear state characteristic, and the expression is as follows:

[0115] Q(s,a|θ Q )=A(s,a|θ A )+V(s|θ V ) (4)

[0116]

[0117] Among them, U(s|θ U ) is a positive definite matrix about the state, which can be decomposed into:

[0118] U(s|θ U )=P(s|θ U )P(s|θ U ) T (6)

[0119] Among them, P(s|θ U ) is a lower triangular matrix with positive diagonals, so we can get:

[0120] Q(s,a|θ Q )≤V(s|θ V ) (7)

[0121] If and only if A(s,a|θ A )=0, the equality of equation (7) holds. From equation (4) and equation (5), we can get:

[0122]

[0123] From the above formula, we can see that the Q value is quadratic with respect to action a, so:

[0124] max a Q(s,a|θ Q )=V(s|θ V ) (9)

[0125] The action output by the Actor's current network must ensure that the Q value reaches the maximum value V;

[0126] During the DDPG neural network training process, the parameter θ is adjusted to reduce the mean square error of the Bellman equation:

[0127] (y t -Q(s,a|θ)) 2 (10)

[0128] Among them, yt =r t +βmax a Q(s t+1 ,a|θ Q ) is the target Q value, and Q(s,a|θ) is the current Q value. Taking advantage of the DDPG algorithm, two neural networks are used for training. The Critic target network Q′ calculates the target Q value, the network parameter is θ′, and the Critic current network Q calculates the current Q value.

[0129] Therefore, the target Q value calculated by the Critic target network is:

[0130] y t =r t +βmax a Q′(s t+1 ,a|θ′)=r t +βV′(s t+1 |θ′) (11)

[0131] The current Q value calculated by the Critic network is: Q(s t ,a t |θ).

[0132] The loss function is defined as the expectation of the mean squared error of the Bellman error:

[0133] L(θ)=E[(r t +βV′(s t+1 |θ′)-Q(s t ,a t |θ)) 2 (12)

[0134] Differentiate the loss function with respect to θ to get its gradient:

[0135]

[0136] By minimizing the loss function:

[0137]

[0138] To update the weight θ of the Critic's current network, and then use this weight to "soft update" the weight θ' of the Critic's target network:

[0139] θ′←τθ+(1-τ)θ (14)

[0140] Among them, τ is the learning rate (τ<<1). This small "soft update" makes the training of the Critic network more stable.

[0141] The specific DDPG network training process is as follows Figure 6shown.

[0142] Obviously, the above embodiments of the present invention are only examples for clearly explaining the present invention, and are not intended to limit the implementation methods of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention shall be included in the protection scope of the claims of the present invention.

Claims

1. A heterogeneous network slice scheduling method based on deep reinforcement learning, characterized by: The method described above is implemented by alternating the neural network offline training phase and the online slice scheduling phase as a scheduling cycle, as follows: S1: Offline training phase for deep reinforcement learning models S101: The obtained service QoS requirement information and slice state information constitute the state parameters of the environment and serve as the input of the deep reinforcement learning model. The deep reinforcement learning model outputs a set of probability vectors, which represent the probability value of selecting each slice. S102: The slice scheduler selects the slice with the largest probability value for scheduling, updates the environment state after scheduling is completed, and obtains a feedback reward function value; wherein the reward function value indicates the degree to which the network performance of the selected slice complies with the service QoS requirements: Among them, λ, α, β all represent weights, 0<λ<1, 0<α<1, 0<β<1; x t,i represents the available bandwidth of the i-th slice in the t-th scheduling period; w t,i Indicates the bandwidth requirement of the service request in the tth scheduling period; u t,i represents the delay requirement of the service request in the tth scheduling period; d t,i represents the average round trip delay of the i-th slice in the t-th scheduling period; v t,i represents the packet loss rate of the i-th slice in the t-th scheduling period; c t,i Indicates the packet loss rate requirement of the service request in the tth scheduling period; S103: According to the maximum value of the reward function, the optimal scheduling strategy at this time is obtained as the available bandwidth threshold of each slice; a slice whose available bandwidth is higher than the available bandwidth threshold is selected for transmission; S2: Online slice scheduling stage S201: Perform scheduling according to the scheduling strategy obtained in step S103, and save the information of each scheduling in the form of experience tuples into the experience recycling pool; S202: After the online scheduling is completed, the experience information is taken out from the experience recycling pool according to the batch size, and the process returns to step S1 to continue offline training of the deep reinforcement learning model to obtain a better scheduling strategy.

2. The heterogeneous network slicing scheduling method based on deep reinforcement learning according to claim 1 is characterized in that: The offline training phase and the online slice scheduling phase are performed alternately until the reward function value no longer increases, at which time the optimal scheduling strategy is obtained as the final slice available bandwidth threshold.

3. The heterogeneous network slicing scheduling method based on deep reinforcement learning according to claim 1 is characterized in that: In order to abstract the slice scheduling process into a Markov decision process, the time axis is divided into several scheduling cycles. In each scheduling cycle, the slice scheduler adopts different scheduling strategies to select the slice that is closest to the service QoS requirement.

4. The heterogeneous network slicing scheduling method based on deep reinforcement learning according to claim 1, characterized in that: The deep reinforcement learning model is a deep deterministic policy gradient model DDPG.

5. The heterogeneous network slice scheduling method based on deep reinforcement learning according to claim 4 is characterized in that: The deep deterministic policy gradient model DDPG includes Actor current network, Actor target network, Critic current network, and Critic target network; The Actor current network: implements the update of the deep reinforcement learning model parameter ω, which is based on the current state s t Select action a t , after interacting with the environment, we get the next state s t+1 and the reward value r of environmental feedback t ; The Actor target network: samples the next state s from the experience recycling pool t+1 , choose the next best action a t+1 , and periodically copy the Actor's current network parameters ω to ω′; The Critic current network: implements the update of the value network parameter θ, and calculates the current Q value and the target Q value; The Critic target network is responsible for assisting in calculating the target Q value and periodically copying the Critic current network parameter θ to θ′.

6. The heterogeneous network slice scheduling method based on deep reinforcement learning according to claim 5 is characterized in that: The replication of DDPG from the current network to the target network is not equal value replication, but a "soft update" method, that is, only a little parameter is updated each time: θ′←τθ+(1-τ)θ(1) ω′←τω+(1-τ)ω (2)where τ represents the learning rate.

7. The method for scheduling heterogeneous network slices based on deep reinforcement learning according to claim 6, characterized in that: The output of the deep deterministic policy gradient model DDPG has three items: an action a = α (s | θ α ), a value function term V(s|θ V ) and an advantage function term A(s, a|θ A ), where α(s|θ α ) represents the policy network under state s, θ represents the network parameters; Therefore, the current Q value obtained by training the deep deterministic policy gradient model is obtained by adding the value function term and the advantage function term. The advantage function is parameterized as a quadratic function of a nonlinear state feature, and the expression is as follows: Q(s, a|θ Q )=A(s,a|θ A )+V(s|θ V ) (4) Among them, U(s|θ U ) is a positive definite matrix about the state, and the Cholesky decomposition is: U(s|θ U )=P(s|θ U )P(s|θ U ) T (6) Among them, P(s|θ U ) is a lower triangular matrix with positive diagonals, we get: Q(s,a|θ Q )≤V(s|θ V ) (7) if and only if A(s, a|θ A )=0, the equality of formula (7) holds; From equation (4) and equation (5), we can get: From the above formula, we can see that the Q value is quadratic with respect to action a, so: max a Q(s, a|θ Q )=V(s|θ V ) (9) The action output by the deep deterministic policy gradient model ensures that the Q value reaches the maximum value V.

8. The heterogeneous network slice scheduling method based on deep reinforcement learning according to claim 7 is characterized in that: During the training of the deep deterministic policy gradient model, the parameter θ is adjusted to reduce the mean square error of the Bellman equation: (y t -Q(s,a|θ))2(10) where, y t =r t +βmax a Q(s t+1 , a|θ Q ) is the target Q value, and Q(s, a|θ) is the current Q value.

9. The heterogeneous network slice scheduling method based on deep reinforcement learning according to claim 8, characterized in that: The soft update is as follows: The target Q value is calculated using the Critic target network Q′, and the network parameter is θ′; the current Q value is calculated using the Critic current network Q, and the network parameter is θ; therefore, the target Q value calculated by the Critic target network is: y t =r t +βmax a Q′(s t+1 , a|θ′)=r t +βV′(s t+1 |θ′) (11) The current Q value calculated by the Critic network is: Q(s t ,a t |i) The loss function is defined as the expectation of the mean squared error of the Bellman error: L(θ)=E[(r t +βV′(s t+1 |θ′)-Q(s t ,a t |i)) 2 (12) Differentiate the loss function with respect to θ to get its gradient: By minimizing the loss function: To update the weight θ of the Critic’s current network, and then use this weight to soft-update the weight θ′ of the Critic’s target network.