Delay-sensitive VNF scheduling method, system and device based on near-end policy optimization algorithm

Through deep reinforcement learning and Markov decision process models, combined with graph neural networks, the efficiency and scalability issues of VNF scheduling in delay-sensitive scenarios are solved, and efficient and accurate VNF scheduling is achieved, which is suitable for networks of different sizes.

CN118574237APending Publication Date: 2024-08-30AIR FORCE UNIV PLA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410506326.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing VNF scheduling algorithms are difficult to effectively optimize when facing delay-sensitive service scenarios, especially when the network scale expands. Performance declines, and existing heuristic and meta-heuristic algorithms have problems with rapidity and slow convergence.

Method used

Using a proximal policy optimization algorithm based on deep reinforcement learning, through Markov decision process model and graph neural network, it automatically learns greedy policy decision rules and optimizes VNF scheduling. It designs a disjunctive graph model and graph neural network embedding, combined with policy gradient algorithm to achieve efficient and accurate VNF scheduling.

Benefits of technology

It achieves the ability to generalize to large-scale networks after training on small-scale networks, improves the performance and efficiency of VNF scheduling, significantly reduces scheduling delays, and adapts to network instances of different sizes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118574237A
    Figure CN118574237A
Patent Text Reader

Abstract

The invention discloses a time delay sensitive VNF (Virtual Network Function) scheduling method, system and equipment based on a near-end policy optimization algorithm, and belongs to the technical field of mobile communication. The scheduling method comprises the following steps: firstly, converting a VNF scheduling problem into a graph form by using a disjunction graph model; then, analyzing state transition of a VNF scheduling problem in the disjunction graph by using a Markov decision process model, and embedding a problem state by using a graph isomorphic network; and finally, performing model training through a near-end strategy optimization deep reinforcement learning algorithm, thereby obtaining a global optimal strategy solution of VNF scheduling. Simulation results show that the algorithm provided by the invention is superior to various classic greedy strategy algorithms and particle swarm algorithms in the aspect of time delay optimization, obtains better generalization ability, and can realize the effect of training large-scale network application in a small-scale network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile communication technology, and in particular to a delay-sensitive VNF scheduling method, system and device based on a proximal policy optimization algorithm. Background Art

[0002] With the continuous and rapid development of the 5th Generation Mobile Communication System (5G), the user scale continues to expand, and various industries are undergoing digital transformation. In particular, the increasing number of time-sensitive services has put forward higher requirements for the network, and some new service scenarios have continuously increased the latency requirements. Latency is one of the key indicators of Quality of Service (QoS). Many current service scenarios have put forward strict performance indicators for latency. For example, in the field of autonomous driving in the Internet of Vehicles, the importance of latency is self-evident. In order to achieve functions such as avoidance and safe assisted driving, vehicles need to exchange information in real time. Even a small delay may cause accidents or uncoordinated behavior. Therefore, the Internet of Vehicles autonomous driving requires network transmission delays to be less than 50 milliseconds, and some applications even require 3 milliseconds or even lower. For example, in the field of telemedicine, it covers multiple aspects such as diagnosis, treatment, and monitoring. In telemedicine, real-time interaction between doctors and patients is also very critical.

[0003] The vertical centralized architecture of traditional networks and their reliance on dedicated hardware make it difficult to flexibly adapt to new business needs. Based on the service function chaining (SFC) technology under the software defined networking (SDN) and network function virtualization (NFV) architecture, a dynamic and programmable chain combination of virtual network functions (VNF) is realized to meet the growing and diverse business needs. However, the resource management of SFC is a very complex issue. Its resource allocation needs to consider limited physical resources such as computing, storage, and bandwidth; it needs to balance resource costs and service quality; it needs to optimize various indicators for different scenarios, etc.

[0004] VNF scheduling is the study of multiple SFCs in the same network. By reasonably planning the execution order of VNFs on NFV nodes, the maximum completion time of all scheduled VNFs in the entire service (i.e., the time period from the execution of the first VNF ​​to the completion of the last VNF) is minimized. This is important for optimizing service latency.

[0005] Existing research has proven that VNF ​​scheduling is an NP-hard problem. In order to obtain a near-optimal solution, different scholars have developed many heuristic / meta-heuristic algorithms, deep reinforcement learning and other methods. Heuristic algorithms are usually fast and easy to implement, but their performance is highly dependent on the characteristics of the problem and may deteriorate as the network scale increases. On the other hand, meta-heuristic algorithms such as PSO and genetic algorithms may have slow convergence problems. Therefore, in order to solve this problem, it is necessary to develop efficient, accurate and scalable algorithms to optimize VNF scheduling to improve the efficiency and quality of services. Summary of the invention

[0006] In view of the above-mentioned problems, the present invention aims to provide a delay-sensitive VNF scheduling method, system and device based on a proximal policy optimization algorithm. Through a method based on deep reinforcement learning, the greedy policy decision rules for solving the VNF scheduling problem are automatically learned. At the same time, in the process of applying the deep reinforcement learning algorithm to train the model, the overall delay is minimized as the goal, and through reasonable design, the effect of training large-scale network applications in small-scale networks is achieved.

[0007] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0008] The delay-sensitive VNF scheduling method based on the proximal policy optimization algorithm includes the following steps:

[0009] S1: Determine the scheduling problem of latency-sensitive VNFs and establish a VNF scheduling optimization model;

[0010] S2: Use the Markov decision process model to analyze the decision process of the delay-sensitive VNF scheduling problem;

[0011] S3: Use the proximal strategy-based optimization algorithm to solve the VNF scheduling optimization model and obtain the optimal scheduling strategy.

[0012] Furthermore, the specific operation of step S1 includes the following steps:

[0013] S101: Determine the scheduling problem of the delay-sensitive VNF;

[0014] S102: Establish VNF scheduling models from two aspects: physical network and SFC request;

[0015] S103: Based on the disjunctive graph model, the VNF scheduling problem is converted into a graph form;

[0016] S104: Based on the analysis results of the disjunctive graph model, a VNF scheduling optimization model is established.

[0017] Furthermore, the VNF scheduling optimization model in step S104 is expressed as

[0018]

[0019] Where, T max is the scheduling delay, S i is the i-th SFC, T() represents the delay; |SP| is the number of SFCs in the SFC to be scheduled; For S i K i VNFs; for any d(f iKi ) represents the processing delay of the VNF.

[0020] Furthermore, the constraints of the VNF scheduling optimization model are:

[0021] C1:

[0022] C2:

[0023] C3:

[0024] C4:

[0025] C5:

[0026] The physical network is represented as an undirected weighted graph G = (N, L), where N = {n 1 ,n 2 ,…,n |NP|} represents the set of physical nodes, |NP| represents the number of physical nodes, L = {l 1 ,l 2 ,…,l |LP|} represents the set of physical links, LP represents the number of physical links; define V = {v 1 ,v 2 ,…,v |VP|} is a set of VNF types, where |VP| is the total number of VNF types; for any physical node n l ∈N, several VNFv are deployed on this node k ∈V, then Indicates the v deployed on the node k The computing resources allocated to this VNF, Indicates that v is processed on this node k The processing latency of this VNF, Indicates the v deployed on the node k The computing resources allocated to this VNF; at time ts, if the physical node n l v k If the function is in use, then δlk (ts) is 1, otherwise it is 0; at time ts, if S i Occupying physical node n l , then μ il (ts) is 1, otherwise it is 0; For node n l Start processing v k moment.

[0027] Furthermore, the Markov decision process model described in step S2 includes states, actions, state transitions, rewards and strategies. According to the Markov decision process model, the scheduling problem of the delay-sensitive VNF is converted into an operation of selecting a disjunctive arc and its direction in a state of the disjunctive graph.

[0028] Furthermore, the Markov decision process model corresponding to the scheduling problem of delay-sensitive VNF is as follows:

[0029] State: Node f ij The state of ∈P is represented as

[0030]

[0031] Where P = {f ij ∪I∪O} represents a node set

[0032] Action: Action a(t)∈A(t) is an operation that meets the constraints in state s(t), s(t) is the state of decision step t, which represents the current state of the disjunctive graph; A(t) is all operations that meet the constraints in state s(t), that is, the action set;

[0033] State transfer: After determining the next scheduled action according to the greedy strategy, select the corresponding disjunctive arc, assign the start time of the operation, and update the state s(t+1);

[0034] Reward: R(a(t),s(t))=H(s(t))-H(s(t+1)), where H(s(t))=max i,j {C LB (f ij (t),s(t))};

[0035] Strategy: The learned random strategy π(a(t)|s(t)) outputs the action distribution A(t).

[0036] Furthermore, the greedy strategy described in the state transition includes the shortest processing time, the longest duration task, the shortest duration task and the most remaining operations.

[0037] Furthermore, the specific operation of step S3 includes the following steps:

[0038] S301: embed the state information of the disjunctive graph using a graph neural network GIN, the output of which is a p-dimensional vector including delay information;

[0039] S302: Apply the deep reinforcement learning algorithm PPO to train the network model and determine an action selection network, that is, a greedy strategy network, for generating a probability distribution of actions;

[0040] S303: Based on the greedy strategy selected in step S302, determine the action for the next scheduling, and output the final scheduling result according to the state transfer operation.

[0041] Furthermore, the present invention also includes a delay-sensitive VNF scheduling system based on a proximal policy optimization algorithm, and the scheduling system adopts the scheduling method as described above to implement the scheduling of delay-sensitive VNFs.

[0042] Furthermore, the present invention also includes a delay-sensitive VNF scheduling device based on a proximal policy optimization algorithm, comprising at least one processor and a memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the method described above.

[0043] The beneficial effects of the present invention are:

[0044] 1. In the present invention, the VNF scheduling problem is described by a disjunctive graph, and GIN is used to effectively map the nodes in the disjunctive graph into vector representations of fixed dimensions, which provides an effective framework for processing complex information in the VNF scheduling problem and improves the expressiveness of the model.

[0045] 2. In the present invention, a greedy selection-based policy network is designed, and all its parameters are shared among all nodes in the graph. Therefore, it is not limited by the size of the actual problem and can handle VNF scheduling problem instances of any scale, thereby realizing the ability to train on small-scale instances and generalize to larger-scale instances.

[0046] 3. The present invention combines the MDP model, GNN coding, policy gradient algorithm and other technologies to propose an optimization algorithm based on proximal strategy, which can effectively learn and optimize the greedy strategy, improve the performance and efficiency of VNF scheduling, and effectively reduce the scheduling delay. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 This is an example diagram of the VNF scheduling problem in the present invention.

[0048] Figure 2 This is an example diagram of the disjunctive graph model in the present invention.

[0049] Figure 3 This is an example diagram of the state transition of the Markov decision process of the disjunctive graph in the present invention.

[0050] Figure 4 This is the overall design block diagram of the delay-sensitive VNF scheduling algorithm based on the proximal strategy optimization algorithm in the present invention.

[0051] Figure 5 This is an example diagram of the “add” arc operation in the present invention.

[0052] Figure 6 This is the model training result in the simulation experiment of the present invention.

[0053] Figure 7 It is the delay of different SFC numbers with the same number of nodes in the simulation experiment of the present invention.

[0054] Figure 8 This is the scheduling Gantt chart of scenario 1 in the simulation experiment of the present invention.

[0055] Fig. 9 This is the scheduling Gantt chart of scenario 2 in the simulation experiment of the present invention.

[0056] Fig.10 This is the scheduling Gantt chart of scenario 5 in the simulation experiment of the present invention.

[0057] Fig.11 This is the effect of different hyperparameter settings on model training in the simulation experiment of the present invention. DETAILED DESCRIPTION

[0058] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0059] Embodiment 1:

[0060] Embodiment 1 provides a delay-sensitive VNF scheduling method based on a proximal policy optimization algorithm, which specifically includes the following steps:

[0061] Step 1: Use the disjunctive graph model to describe the VNF scheduling problem and establish a formal model. Specifically,

[0062] 1.1 Description of the Scheduling Problem for Delay-Sensitive VNFs

[0063] The VNF scheduling problem for time-sensitive services mainly refers to the problem of minimizing the overall delay of all SFCs by reasonably scheduling the order of processing VNFs on each service node when multiple SFCs need to be processed simultaneously after VNFs are deployed on the physical network. Figure 1 As shown in the attached Figure 1In the figure, (a) is a physical network with 4 physical nodes, and several VNFs are deployed on each node; (b) is 3 SFCs that need to be processed by the network, and (c) is a scheduling result, where T max That is, the scheduling delay of the three SFCs, that is, the time it takes for the last service function to be processed. The main goal of VNF scheduling in the present invention is to minimize the maximum completion time of VNF.

[0064] 1.2 VNF Scheduling Model

[0065] The scheduling model of VNF can be modeled from two aspects: physical network and SFC request. The physical network is represented as an undirected weighted graph G = (N, L), where N = {n 1 ,n 2 ,…,n |NP|} represents the set of physical nodes, |NP| represents the number of physical nodes, L = {l 1 ,l 2 ,…,l |LP|} represents the set of physical links, and |LP| represents the number of physical links. Define V = {v 1 ,v 2 ,…,v |VP|} is a set of VNF types, where |VP| is the total number of VNF types; for any physical node n l ∈N, several VNFv may be deployed on this node. k ∈V, then Indicates the v deployed on the node k The computing resources allocated to this VNF, Indicates that v is processed on this node k The processing latency of this VNF.

[0066] There are |SP| SFCs in a group of SFCs to be scheduled, that is, S 1 ,S 2 …S |SP| , each SFCS i They are all serial requests and can be represented as a directed weighted graph G i =(F i ,E i ), F i and E i Figure G i The vertices and edges of K i For S i The number of VNFs in f ij For S i The jth VNF in the i ; For Si The set of all links, M i is the number of links. For any f ij , Cal(f ij ) represents its computing resource requirements, d(f ij ) is the processing delay of the VNF. The processing delay is related to which physical node the VNF selects. If f ij Choose the one that can handle v k One of the function nodes n l , then

[0067] 1.3 Disjunctive Graph Model

[0068] The disjunctive graph model is often used to solve the Job Shop Schedule Problem (JSSP). The VNF scheduling problem is similar to the JSSP problem. There are also dependencies between functions and constraints such as processing nodes and processing time. Therefore, the present invention further describes the VNF scheduling problem based on the form of the disjunctive graph model. Figure 2 As shown. D =(P,C,B) to represent a disjunctive graph, as shown in the attached figure. Figure 2 As shown in (a), where P = {f ij ∪I∪O} represents the set of nodes including all VNF requests f in SFC ij ∈F i As well as the source node I and the target node O, that is, Figure 2 All vertices in (a); is the virtual link requested by all SFCs, representing the directed arc set of the VNF execution order in each SFC, namely, Figure 2 The edge of the solid line in (a); is a set of directed disjunctive arcs, each of which can be viewed as a pair of bidirectional directed arcs, representing all nodes n l ∈N can handle which VNF sets, where B l For node n l The set of VNFs that can be processed, namely Figure 2 The dashed edge in (a).

[0069] In the attached Figure 2 In the above equation, (a) indicates Figure 1 The scheduling problem described in the figure has 4 nodes and 3 SFCs. The disjunctive arcs of different colors represent the VNFs that the corresponding physical nodes can handle. For example, the red node D can handle both VNF1 and VNF4, while the f of SFC1 12 f is VNF1 and SFC2 21 and SFC3's f 33For VNF4, the red undirected disjunctive arc connects these three nodes, indicating that node D can process these VNF requests in a certain order. Figure 2 (b) is a scheduling solution obtained after calculation, corresponding to the attached Figure 1 The scheduling scheme of (c) satisfies the VNF processing order in the SFC request, and the solved directed disjunctive arc represents the order scheme of the physical node processing VNF. The disjunctive graph model can be well applied to the VNF scheduling problem to be solved by the present invention. The problem model and some constraints can be described intuitively in the form of a graph, and it is also more suitable for the next step of using graph neural network related algorithms to solve the VNF scheduling problem.

[0070] 1.4 Delay-Sensitive VNF Scheduling Optimization Model

[0071] The present invention mainly considers the impact of processing delay and optimizes the total delay through a reasonable scheduling scheme. The impact of other delay types, link bandwidth, physical node storage capacity, etc. is not considered for the time being. The continuous time is divided into discrete forms with time slots of Δt. ts represents the tsth time slot and is also used to represent the time when the current time slot ends. Therefore, each scheduling starts from time 0. The present invention assumes that each time slot is 1ms. At time ts, if the physical node n l v k If the function is in use, then δ lk (ts) is 1, otherwise it is 0, that is,

[0072]

[0073] At time ts, if S i Occupying physical node n l , then μ il (ts) is 1, otherwise it is 0, that is,

[0074]

[0075] For an SFC, the present invention mainly considers the processing delay d(f ij ) and waiting delay d w (f ij Waiting delay refers to the delay caused by a VNF in the SFC being scheduled to be processed by a certain node, but the node is processing VNFs in other SFCs. i The delay is

[0076]

[0077] For the disjunctive graph model, it is the time when the last node on each branch starts processing plus the processing delay of the node, let T(fij ) is f ij When the processing starts,

[0078]

[0079] Then the total delay after a group of SFC requests are scheduled is T max is the maximum value of all SFC delays, i.e.

[0080] T max =max T(S i ),i=1,2,…,|SP| (5)

[0081] In summary, the optimization goal of the present invention is to minimize the total delay, that is, to minimize the maximum completion time:

[0082]

[0083] The constraints are

[0084] C1:

[0085] C2:

[0086] C3:

[0087] C4:

[0088] C5:

[0089] In formula (7), C1 represents the ij Select node n l When processing, the v deployed on the node k Should satisfy f ij The computing resource requirements of SFC are: C2 means that each VNF in SFC should follow the serial processing order; C3 means that each physical node should also process the corresponding VNF in the scheduled order. For node n l Start processing v k C4 and C5 mean that each physical node can only process one VNF at most at the same time, and can only process requests from at most one SFC.

[0090] Step 2: Use the Markov decision process model to analyze the decision process of the delay-sensitive VNF scheduling problem.

[0091] Usually, the Markov decision process (MDP) model consists of five parts, expressed as (S, A, P, R, π), which are state, action, state transition probability, reward and strategy. The application scope of the MDP model is very wide, covering many practical problems. The VNF scheduling problem studied in this invention involves making a series of decisions in different time steps. Using the MDP model to analyze the VNF scheduling problem can help understand the state transition behavior of the system. Based on the established disjunctive graph model, the VNF scheduling problem can be regarded as an operation of selecting a disjunctive arc and its direction in a certain state of the disjunctive graph. The MDP model is as follows:

[0092] (1) Status

[0093] The state s(t) at decision step t represents the current disjunctive graph state, which contains the disjunctive graph G D = The states of several sets in (P, C, B), mainly the states of nodes and disjunctive arcs. ij The state of ∈P is expressed as follows:

[0094]

[0095] In addition, record f ij The estimated earliest completion time of the node, expressed as C LB (f ij ,s(t)) indicates that for the nodes that have been scheduled, there are C LB (f ij ,s(t))=T(f ij )+d(f ij ); for nodes that have not been scheduled, the best situation (same S i Medium ij Schedule this node immediately after the previous node is processed) recursively calculate C LB (f ij ,s(t))=C LB (f i(j-1) ,s(t))+d(f ij ). The state of the disjunctive arc is represents a directed disjunctive arc that has been decided. Represents the remaining disjunctive arcs whose choices and directions have not yet been determined. Therefore, the initial state s(0) is the disjunctive graph G D , the final state s(T) is That is, all disjunctive arcs are assigned a direction.

[0096] (2) Action

[0097] Action a(t)∈A(t) is an operation that meets the constraints in state s(t), and A(t) is all operations that meet the constraints in state s(t), that is, the action set. ij The operation to be processed is the operation that selects the disjunctive arc and its direction. As the state transitions, the action set A(t) will decrease as t increases until it becomes an empty set.

[0098] (3) State Transfer

[0099] After the next scheduled action is determined according to the greedy strategy, the corresponding disjunctive arc is selected, the time at which the action starts is assigned, and the state s(t+1) is updated. Figure 3 As shown in Figure 1, (ad) represent the state transition from s(5) to s(8), orange represents the scheduled VNF, and green represents the operation selected in the previous state. In state s(5), according to the SPT policy decision, f is selected. 23 At node A, select the disjunctive arc and update the state as shown in the attached figure. Figure 3 As shown in (b); in s(6), according to the MWKR strategy decision, f is selected 13 At node C, select the disjunctive arc and update the state as shown in the attached figure. Figure 3 As shown in (c); finally attached Figure 3 s(8) in (d) is the final result of this scheduling.

[0100] The greedy algorithm is one of the classic algorithm ideas. It means that the best option for the current state is selected at each decision. However, the final solution is not necessarily the overall optimal solution. The quality of the solution is related to the choice of the greedy strategy. The greedy strategies used in solving the VNF scheduling problem in the present invention include the following four:

[0101] The shortest processing time (SPT) is to sort the processing time of VNFs on different nodes and give priority to the scheduling with the shortest processing delay. The SPT strategy can reduce the waiting time and processing time of a single SFC, thereby improving the efficiency of task completion. The SPT strategy can usually achieve a lower average SFC completion time, which is closer to the optimal solution, but may cause unbalanced resource utilization.

[0102] The Most Work Remaining (MWKR) is to sort the sum of the VNF processing delays that have not been processed by all SFCs, and give priority to the ones with the longest unprocessed delay. The MWKR strategy can give priority to tasks with greater demand, thereby reducing the remaining delay. The MWKR strategy helps to balance the overall task load, but may cause a delay in the completion of a single SFC, which in turn affects the average delay.

[0103] The Least Work Remaining (LWKR) strategy is opposite to the strategy in the Maximum Work Remaining Task. It gives priority to tasks with the shortest unprocessed latency. The LWKR strategy can give priority to tasks with less remaining latency, thereby reducing the number of remaining SFCs.

[0104] Most Operations Remaining (MOPNR) sorts the number of VNFs that have not been processed in all SFCs, and gives priority to those with more unprocessed VNFs. The MOPNR strategy selects the task with the largest number of remaining VNFs, which can give priority to SFCs with a large number of VNFs, thereby reducing the number of remaining SFCs. However, the MOPNR strategy may cause a longer delay for a single SFC.

[0105] For the optimization target completion time in the present invention, the SPT strategy tends to minimize the completion time, and the MOPNR strategy has the least impact on the completion time because it focuses on the maximum number of remaining operations rather than the completion time. For resource utilization, the MWKR and LWKR strategies are more conducive to the balance of resource utilization because they focus on the remaining workload of the task. These greedy strategies are all local optimal choices made based on current information and cannot guarantee that the global optimal solution is achieved in all cases. Therefore, the present invention will further utilize deep reinforcement learning methods to learn which strategy should be used in different states to achieve the global optimal solution.

[0106] (4) Rewards

[0107] The reward is R(a(t),s(t))=H(s(t))-H(s(t+1)), where H(s(t))=max i,j {C LB (f ij (t),s(t))}, that is, the more the overall delay can be reduced after the state change, the greater the reward value, and the discount factor γ=1.

[0108] (5) Strategy

[0109] The learned random strategy π(a(t)|s(t)) outputs the action distribution of A(t). If only one greedy strategy is used, the output strategy π is not a distribution but a one-hot one, that is, the probability of the action selected by the greedy strategy is 1.

[0110] Step 3: Design of delay-sensitive VNF scheduling algorithm based on proximal policy optimization algorithm.

[0111] 3.1 Overall design of the algorithm

[0112] First, a graph neural network is used to embed the state information of the disjunctive graph. The output of the graph neural network is a p-dimensional vector. Then, an action selection network, namely a greedy strategy network, is designed to determine the distribution of the output actions. Finally, a deep reinforcement learning algorithm is applied to train the parameter θ in the strategy. The overall framework of the algorithm in the present invention is shown in the attached figure. Figure 4 shown.

[0113] 3.2 Graph Isomorphic Network (Graph Neural Network)

[0114] GNN is a neural network structure used to process graph data, which draws on the ideas and methods of convolutional networks and recurrent networks in deep learning. It has been widely used in computer vision, graph-based recommendation systems and other fields. GIN is selected in the present invention. It is a variant method based on GNN and has the strongest expression ability compared with other GNN and its variant methods. GIN focuses on processing graph data with isomorphic structures, that is, graphs with the same nodes and edges. It updates the representation of nodes by weighted summation of node features and nonlinear transformation of multilayer perceptron (MLP). The main idea of ​​the GIN model is to aggregate node features layer by layer and infer the representation of nodes by weighted summation of neighbor features around the nodes.

[0115] Given a graph Perform X iterations to calculate each node The p-dimensional embedding of GIN is

[0116]

[0117] This formula represents the xth iteration of GIN. is the original feature of the input; is a parameter θ x Multilayer perceptron of ;∈ is the parameter to be learned; is the neighborhood of node v. After X iterations, a global average pooling layer is used to reduce the dimension of the feature map to a p-dimensional vector The formula is

[0118]

[0119] The disjunctive graph model constructed in step 1 is a directed graph, and each disjunctive arc is a bidirectional arc. This makes the graph too dense and makes GIN processing inefficient. Therefore, the operation of selecting arcs during state transfer can be represented in the graph by "adding" arcs, as shown in the attached figure. Figure 5 As shown, this makes the graph sparse and more efficient. ij The original feature of ∈P is defined as a 2D vector The node embedding after X iterations is The global embedding after pooling is

[0120] 3.3 Action Selection Network

[0121] After feature embedding, an action selection network is needed to generate the probability distribution of action A(t). First, an MLP is used to obtain the scalar score of each action a(t)

[0122]

[0123] Formula and The concatenation is then used to calculate the probability distribution P(a(t)) of the title score using the softmax function. Training is performed based on the distribution, and during the test, the action with the highest probability is used to make decisions. In the design method of the present invention, all parameters are shared among all nodes in the graph, which better achieves generalization of problems of different scales. Therefore, it is not limited by the size of the actual problem and does not require repeated training.

[0124] 3.4 Proximal Strategy Optimization Algorithm

[0125] The PPO algorithm is a reinforcement learning algorithm that aims to solve reinforcement learning problems by optimizing strategies. It is essentially a policy gradient algorithm. PPO is an actor-critic algorithm, where the actor refers to the policy network π θ , critic v φ Share the same GIN network with actors, After input, use a state value to predict the network To output a scalar to estimate the cumulative reward of state s(t). According to the principle of PPO, the specific training algorithm is shown in Table 1 below, where the input content includes: actor network π θ and actor networks With trainable parameters θ old =θ; critic network v φ , with trainable parameters φ; total number of iterations U PPO , the number of independent instances is the number of actors N PPO , model parameter update cycle K PPO ; Discount factor γ PPO , strategy loss coefficient c p , value function loss coefficient c v , entropy loss coefficient c e , crop ratio ∈ PPO .

[0126] Table 1 PPO algorithm

[0127]

[0128] The greedy policy network is determined by the parameter θ output by the PPO algorithm. After the next scheduling action is determined according to the selected greedy policy network, the final scheduling result is output based on the state transition.

[0129] Simulation experiment:

[0130] In order to verify the effectiveness of the method proposed in this invention, Python 3.10 programming software is used to evaluate and analyze the proposed algorithm. The simulation environment and parameter settings will be described in detail below, and the experimental results will be analyzed.

[0131] Simulation environment settings:

[0132] This experiment relies on the Featurize machine learning online laboratory, uses the Python 3.10 environment, is equipped with a GPURTX 3060 to accelerate the model training process, and uses the deep learning framework provided by PyTorch 2.0.1 to build, train, and evaluate the model. In addition, PyCharm is used locally as the main integrated development environment to facilitate code development, debugging, and experiment management.

[0133] The experiment set up 7 experimental scenarios, as shown in Table 2. In Table 2, scenarios 1-4 are mainly used to generate instances for training models and for verifying models, and models 1-4 are trained respectively; scenarios 5-7 are relatively large-scale experimental scenarios, mainly used to generate instances for verifying models.

[0134] Table 2 Experimental scenario statistics

[0135]

[0136] Other parameters are shown in Table 3 below, where the selection of hyperparameters is based on setting the initial starting point through empirical rules and then adjusted through experiments, and will be analyzed in detail based on the experimental results.

[0137] Table 3 Simulation parameters

[0138]

[0139] Experimental results analysis

[0140] Four models were trained according to the method of the present invention and the above parameter settings, namely models 1-4, which are models trained by examples generated by scenarios 1-4 respectively. The scales of the models are from small to large, with model 1 being the smallest model, and models 2-4 being the same network carrying different sizes of SFC numbers. The simulation results are shown in the attached figure. Figure 6 As shown, attached Figure 6(a) is the training process of the four models, and (b) is the training time of the four models. It can be seen that for models 2-4, the delay curve during the training process and the total training time curve are almost linearly related, which is in line with objective reality. Figure 6 (c) is the loss function of the four models. The light color is the actual numerical curve, and the corresponding dark color is the smoothed curve. It can be seen that under the same parameter settings, the loss values ​​tend to be stable after about 800 iterations, and the larger the model scale, the faster the loss function converges and the smaller the value. However, the difference between the loss value curves of the several models is small, indicating that the parameter settings in this simulation experiment are relatively reasonable.

[0141] Then, the test set is used to test the delay calculated by applying different models to each scenario to verify the generalization ability of the model. The results are shown in Table 4 below, where each case is calculated 20 times and the average value is calculated. The table shows the best performing model in each scenario. It can be seen that the optimal results of scenarios 1-4 are all corresponding models, and the calculation results of other models are relatively different; while for relatively large scenarios such as scenarios 5-7, the results of several models are relatively different, indicating that the method proposed in the present invention has good generalization ability.

[0142] Table 4 Model generalization ability test (ms)

[0143]

[0144] In order to verify the effectiveness of the model, the simulation experiment designed the following comparative experiments, which respectively used the method in the present invention and several greedy strategy algorithms (shortest processing time priority algorithm (SPT), maximum duration task priority algorithm (MWKR), shortest duration task priority algorithm (LWKR), most remaining operations priority algorithm (MOPNR), and the commonly used PSO algorithm for comparison. The PSO algorithm uses the encoding method in the literature [Ge Jing, Gao Guangyu, Wang Qianxiang. Improved particle swarm algorithm for solving workshop job scheduling problems [J]. Modern Computer, 2022, 28 (13): 39-44 + 50.], the number of iterations is set to 500, and the number of particles is set to 25.

[0145] The comparison algorithm is also run 10 times and the average value is calculated. The method in the present invention takes the average delay of several models in each scenario in Table 4, as shown in Table 5 below. The bolded ones are the methods with the smallest average scheduling delay in several scenarios. It can be seen that the algorithm proposed in the present invention has obtained good scheduling delay results in 7 scenarios, indicating that the algorithm in the present invention has good performance. Figure 7The scheduling delays of the algorithms in scenarios 2-4 and 5-7 are plotted respectively. When the number of SFCs is the same but the number of nodes is different, the delays of the algorithms basically increase linearly with the increase of the number of SFCs. It can be seen that the algorithm proposed in the present invention can achieve the best optimization effect of delay.

[0146] Table 5 Control experiment results (ms)

[0147]

[0148] Attached Figure 8-10 The Gantt chart of the corresponding model scheduling application in different scenarios is drawn, where different color blocks represent VNFs in different SFCs, and the numbers in the color blocks represent the jth VNF in the i-th SFC, as shown in the attached figure. Figure 8 The “6.5” on the blue block in the lower right corner represents the 5th VNF of the 6th SFC. Figure 8 , 9 10 show the scheduling Gantt charts under scenarios 1, 2, and 5, respectively. It can be seen that the total delay of the scheduling corresponds to the experimental results in Table 5.

[0149] In the training model, some hyperparameters are involved, such as GIN's multi-layer perceptron The number of hidden layers and hidden dimensions, cropping ratio ∈ PPO , Adam optimizer learning rate lr, etc. Taking scenario 1 as an example, each model is iterated 1000 times. The effects of different hyperparameter settings on model training are shown in the attached figure. Fig.11 As shown, Fig.11 The light-medium color is the real training curve, and the dark color is the smoothed curve. In the PPO algorithm used in the present invention, the loss function is used to measure the difference between the current strategy and the old strategy, so as to guide the update direction of the strategy. By observing the loss function, the learning ability, training progress, convergence speed, etc. of the model can be explained, which can be used as the basis for selecting hyperparameters.

[0150] In GNN, the number of hidden layers and hidden dimensions are two important hyperparameters that have a key impact on the performance and expressiveness of the model. The number of hidden layers refers to the number of graph neural network layers stacked in GNN. As a classic GNN, GIN generally achieves good performance when the number of hidden layers is 2-4. When the number of layers exceeds 2-4, overfitting and gradient disappearance may occur. The hidden dimension refers to the representation dimension of each node in GNN. Increasing the hidden dimension can increase the number of parameters and expressiveness of the model, thereby improving the model's ability to model node features. However, too high a hidden dimension will increase the computational complexity of the model and may increase the risk of overfitting. From the attached Fig.11 (a) and attached Fig.11Based on the experimental results in (b), and considering the computational complexity and the impact of parameters on model performance, we choose 2 hidden layers and 64 hidden dimensions for GIN.

[0151] In the PPO algorithm, the clipping ratio is an important hyperparameter for controlling the update step size of the strategy. Usually, the appropriate range of the clipping ratio is 0.1-0.3. Fig.11 From the experimental results in (c), it can be seen that the three curves almost overlap, so the actual effect of this parameter on the model is not significant, and in the present invention, it is selected as 0.2.

[0152] The Adam optimizer is an adaptive learning rate optimization algorithm that combines the first-order moment estimate and the second-order moment estimate of the gradient and uses them to adaptively adjust the learning rate of each parameter. The Adam algorithm is relatively robust to the choice of learning rate, but the learning rate still has an important impact on the optimization process and the final result. Fig.11 As shown in (d), where lr = 2 × 10 -2 , that is, the orange-red curve obviously shows that the loss function converges too slowly, while the performance differences of the other three are small, especially after 600 iterations, they are basically stable at the same value; and usually a small learning rate is more suitable for a large-scale model. Since the model 1 selected in the present invention when testing the learning rate performance is the smallest model, the learning rate of the present invention is set to lr=2×10 -5 Models 2, 3 and 4 are more suitable for larger scales than Model 1.

[0153] In summary, the present invention proposes an optimization algorithm based on deep reinforcement learning to solve the VNF scheduling problem. First, the VNF scheduling problem is described using a disjunctive graph model, and the state transition of the model is analyzed using an MDP model. Then, the GIN in the graph GNN is used to embed the problem state, and finally the PPO algorithm is used to train the policy network. Experiments show that compared with the greedy strategy algorithm and the commonly used PSO algorithm, the algorithm in the present invention has better performance, with latency reduced by 13.7% and 4% respectively, and the model in the present invention has better generalization performance, achieving the purpose of training on a model of 6 nodes and 6 SFCs, but can be applied to 20 nodes, 100 SFCs, or even larger scale problems.

[0154] Embodiment 2:

[0155] Embodiment 2 provides a delay-sensitive VNF scheduling system based on a proximal policy optimization algorithm, which specifically includes a VNF scheduling optimization model building module, a Markov decision process model analysis module, and an optimization model solving module;

[0156] The VNF scheduling optimization model building module is used to determine the scheduling problem of latency-sensitive VNFs and build a VNF scheduling optimization model;

[0157] The Markov decision process model analysis module uses the Markov decision process model to analyze the decision process of the delay-sensitive VNF scheduling problem;

[0158] The optimization model solving module adopts an optimization algorithm based on the proximal strategy to solve the VNF scheduling optimization model and obtain the optimal scheduling strategy.

[0159] It should be noted that the VNF scheduling optimization model establishment module, the Markov decision process model analysis module and the optimization model solving module in the scheduling system all use the method described in Example 1 to implement their corresponding functions.

[0160] Embodiment three:

[0161] Embodiment three provides a delay-sensitive VNF scheduling device based on a proximal policy optimization algorithm, comprising at least one processor and a memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the method described in embodiment one.

[0162] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A delay-sensitive VNF scheduling method based on a proximal policy optimization algorithm, characterized in that: The following steps are included: S1: Determine the scheduling problem of latency-sensitive VNFs and establish a VNF scheduling optimization model; S2: Use the Markov decision process model to analyze the decision process of the delay-sensitive VNF scheduling problem; S3: Use the proximal strategy-based optimization algorithm to solve the VNF scheduling optimization model and obtain the optimal scheduling strategy.

2. The delay-sensitive VNF scheduling method based on the proximal policy optimization algorithm according to claim 1 is characterized in that: The specific operation of step S1 includes the following steps: S101: Determine the scheduling problem of the delay-sensitive VNF; S102: Establish VNF scheduling models from two aspects: physical network and SFC request; S103: Based on the disjunctive graph model, the VNF scheduling problem is converted into a graph form; S104: Based on the analysis results of the disjunctive graph model, a VNF scheduling optimization model is established.

3. The delay-sensitive VNF scheduling method based on the proximal policy optimization algorithm according to claim 2 is characterized in that: The VNF scheduling optimization model in step S104 is expressed as Where, T max is the scheduling delay, S i is the i-th SFC, T() represents the delay; |SP| is the number of SFCs in the SFC to be scheduled; For S i K i VNFs; for any d(f iKi ) represents the processing delay of the VNF.

4. The delay-sensitive VNF scheduling method based on the proximal policy optimization algorithm according to claim 3 is characterized in that: The constraints of the VNF scheduling optimization model are: The physical network is represented as an undirected weighted graph G = (N, L), where N = {n1, n2, ..., n |NP| } represents the set of physical nodes, |NP| represents the number of physical nodes, L = {l1,l2,…,l |LP| } represents the set of physical links, |LP| represents the number of physical links; define V = {v1,v2,…,v |VP| } is a set of VNF types, where |VP| is the total number of VNF types; for any physical node n l ∈N, several VNFs v are deployed on this node. k ∈V, then Indicates the v deployed on the node k The computing resources allocated to this VNF, Indicates that v is processed on this node k The processing latency of this VNF, Indicates the v deployed on the node k The computing resources allocated to this VNF; at time ts, if the physical node n l v k If the function is in use, then δ lk (ts) is 1, otherwise it is 0; at time ts, if S i Occupying physical node n l , then μ il (ts) is 1, otherwise it is 0; For node n l Start processing v k moment.

5. The delay-sensitive VNF scheduling method based on the proximal policy optimization algorithm according to claim 4 is characterized in that: The Markov decision process model described in step S2 includes states, actions, state transitions, rewards and strategies. According to the Markov decision process model, the scheduling problem of the delay-sensitive VNF is converted into an operation of selecting a disjunctive arc and its direction in a state of the disjunctive graph.

6. The delay-sensitive VNF scheduling method based on the proximal policy optimization algorithm according to claim 5 is characterized in that: The Markov decision process model corresponding to the scheduling problem of delay-sensitive VNF is as follows: State: Node f ij The state of ∈P is represented as Where P = {f ij ∪IO} represents a node set Action: Action a(t)∈A(t) is an operation that meets the constraints in state s(t), s(t) is the state of decision step t, which represents the current state of the disjunctive graph; A(t) is all operations that meet the constraints in state s(t), that is, the action set; State transfer: After determining the next scheduled action according to the greedy strategy, select the corresponding disjunctive arc, assign the start time of the operation, and update the state s(t+1); Reward: R(a(t),s(t))=H(s(t))-H(s(t+1)), where H(s(t))=max i,j {C LB (f ij (t),s(t))}; Strategy: The learned random strategy π(a(t)|s(t)) outputs the action distribution A(t).

7. The delay-sensitive VNF scheduling method based on the proximal policy optimization algorithm according to claim 6 is characterized in that: The greedy strategies described in the state transition include shortest processing time, maximum duration task, shortest duration task, and most remaining operations.

8. The delay-sensitive VNF scheduling method based on the proximal policy optimization algorithm according to claim 7 is characterized in that: The specific operation of step S3 includes the following steps: S301: embed the state information of the disjunctive graph using a graph neural network GIN, the output of which is a p-dimensional vector including delay information; S302: Apply the deep reinforcement learning algorithm PPO to train the network model and determine an action selection network, that is, a greedy strategy network, for generating a probability distribution of actions; S303: Based on the greedy strategy selected in step S302, determine the action for the next scheduling, and output the final scheduling result according to the state transfer operation.

9. A delay-sensitive VNF scheduling system based on a proximal policy optimization algorithm, characterized by: The scheduling system adopts the scheduling method described in any one of claims 1-8 to implement the scheduling of delay-sensitive VNFs.

10. A delay-sensitive VNF scheduling device based on a proximal policy optimization algorithm, characterized in that: The invention comprises at least one processor and a memory communicatively connected to the processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the processor so that the processor can execute the method according to any one of claims 1 to 8.