Virtual network function migration method for dynamic resource demand prediction assisted by digital twin
Through the digital twin-assisted 5G cloud wireless access network slicing architecture and multi-task prediction framework, combined with deep learning algorithms, the VNF migration strategy is optimized to solve the VNF resource supervision and migration delay issues and improve network performance.
Patent Information
- Application Number
- CN202310138615.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-02-20
AI Technical Summary
Existing technologies fail to effectively supervise VNF resource requirements during the VNF migration process, resulting in resource overload or light load, and the SDN controller has a large delay in synchronizing VNF prediction resource data, affecting network performance.
The digital twin-assisted 5G cloud wireless access network slicing architecture is adopted, and the multi-task VNF resource prediction framework and TransDT-GRU model are used for real-time monitoring and prediction. It is combined with the MAPPO and MADDPG algorithms to optimize the VNF migration strategy to reduce network energy consumption and resource variance. and synchronization delay.
It realizes real-time monitoring and prediction of VNF resource requirements, reduces VNF migration delay and SDN synchronization delay, and ensures network performance after migration.
Smart Images

Figure CN116137593B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of mobile communications and relates to a virtual network function migration method for digital twin-assisted dynamic resource demand prediction. Background Art
[0002] 5G network slicing divides a single physical network into multiple virtual networks by using NFV and SDN, and realizes the segmentation and reorganization of physical resources to meet the dynamic service requirements in different application scenarios. Through NFV technology, the network system can instantiate VNFs on different physical nodes according to service requirements, and guide user traffic to form SFCs in an orderly VNF sequence to provide network services. Through SDN technology, the network system realizes the separation of the control plane and the data plane, allowing the controller to arbitrarily configure network resources and dynamically plan routes to provide network services.
[0003] However, while NFV and SDN technologies enable flexible management of network resources, they also bring a series of problems, including VNF migration. VNF migration refers to the VNF currently mapped on the physical node and the virtual link mapped on the physical link. Due to the dynamic changes in network traffic, the resources of the physical node or link exceed their resource usage threshold, resulting in network performance degradation and unbalanced network load. In severe cases, it will also cause node and link resource overload, and the normal operation of the service cannot be guaranteed. At this time, if a new VNF is re-instantiated on other physical nodes, the state information of the original VNF will be lost. To solve the problem of VNF state information loss, the VNF on the underloaded node can be migrated, and the physical node can be shut down to ensure network performance. At the same time, the VNF and overloaded link on the overloaded node can be migrated to ensure network load balancing.
[0004] Existing technologies use VNF's historical resource usage data to predict future resource requirements. They can find physical nodes with overloaded or underloaded resource usage and formulate VNF migration plans in advance to ensure network service performance. However, on the one hand, existing technologies do not consider the problems of link overload and lack of supervision of VNFs, and most of them collect data to SDN nodes for centralized prediction, which cannot meet the requirements of large-scale data training. On the other hand, they do not consider the delay problem of SDN controller synchronizing all VNF predicted resource demand data. The smaller the synchronization delay, the earlier the SDN controller can formulate a migration plan based on the predicted VNF resource demand, thus preventing the occurrence of network service lag problems. Summary of the invention
[0005] In view of this, the purpose of the present invention is to provide a virtual network function migration method with digital twin assisted dynamic resource demand prediction, to solve the latency problems caused by lack of VNF supervision and VNF migration, while reducing the latency of the SDN controller to synchronize all VNF predicted resource data and ensure network performance after migration.
[0006] In order to achieve the above object, the present invention provides the following technical solutions:
[0007] A virtual network function migration method for digital twin-assisted dynamic resource demand prediction, characterized in that the method comprises the following steps:
[0008] S1. Build a digital twin-assisted 5G cloud radio access network slice architecture and monitor VNFs in real time by building VNF digital twins in twin service nodes.
[0009] S2. A multi-task VNF resource prediction framework based on online learning is used to predict VNF resource requirements. In combination with transfer learning, a multi-task TransDT-GRU-based VNF resource prediction framework is used to solve the problem of insufficient node memory resources caused by centralized training of large-scale data.
[0010] S3. Under the constraints of computing, memory, bandwidth resources, VNF mapping, and digital twin construction, a model for minimizing network energy consumption, resource variance, and network synchronization delay after VNF migration is constructed.
[0011] S4. Based on the predicted VNF resource prediction results, set VNF migration trigger conditions with multiple computing resource usage thresholds, and associate VNF migration with twin service node links to reduce the network energy consumption, resource variance and VNF average synchronization delay of the system after migration.
[0012] Further, in step S1, the network slicing scenario includes an infrastructure layer, a virtualization layer, and an application layer. The infrastructure layer includes NFV nodes and twin service nodes, the NFV nodes are used to process VNFs, and the twin service nodes are used to build corresponding VNF digital twins; the virtualization layer is used to realize flexible allocation of virtual resources; and the application layer includes multiple SFCs.
[0013] Further, in step S2, the multi-task VNF resource prediction framework based on online learning includes an offline training module, an online learning module, and an online migration and twin service node link association module.
[0014] The offline training module is specifically as follows: Assume that the input feature set in the offline training module is:
[0015] w={w1,w2,…,w k-1 ,w k,…}
[0016] In the formula, w k represents the kth feature sample set of the jth VNF on the i-th SFC, and:
[0017] w k ={X ij (t),X ij (t-1),…,X ij (t-d+1)}
[0018] Where d represents the length of the time slot in the sample, which also refers to the sliding window in the online learning prediction phase, and X ij (t) represents the characteristics consisting of CPU resource requirements, storage resource requirements, and link bandwidth resources, and in, represents the CPU computing resource requirement of the jth VNF on the i-th SFC, Indicates memory resource requirements, It represents the bandwidth resource requirement of the virtual link between VNF j and VNFk on the i-th SFC;
[0019] Using a multi-task learning method, multiple tasks such as CPU, storage, and link bandwidth resources are input as a feature into the same GRU network for training, fully exploring the correlation between different resource prediction tasks and improving the model accuracy of each subtask; by inputting all stored historical features into the GRU network for offline pre-training and adjusting the training parameters, good initial model parameters are provided for the online learning module;
[0020] The online learning module specifically includes: using the pre-trained parameters in the offline training phase as initial parameters for online learning, discarding the oldest sample features each time a new actual value of resource demand is stored, keeping the sliding window length unchanged, and updating the model parameters through forward propagation parameters and reverse fine-tuning, thereby providing an online VNF resource prediction model for the network system;
[0021] The online migration and twin service node link association module is specifically as follows: the SDN controller collects the VNF resource requirements predicted by each twin service node, determines the underloaded NFV nodes, overloaded NFV nodes and links in the physical network, and formulates corresponding VNF migration strategies and twin service node link association strategies to ensure network performance.
[0022] Further, in step S2, the VNF resource demand prediction framework based on multi-task TransDT-GRU is specifically as follows:
[0023] First, when VNF1 is first mapped to the NFV node and associated with the twin service node, the twin service node can train the model parameters ω(t) through the VNF resource demand algorithm based on the multi-task DT-GRU; then, when the VNF migrates, its associated twin service node also changes, resulting in the migration of the VNF digital twin; at this time, the new digital twin will update the weights according to the newly collected VNF resource demand data.
[0024] Furthermore, in step S3, when the resource utilization of the physical node is low, the network energy consumption is reduced by migrating the VNF or digital twin on the physical node and associating the physical node; when the resource utilization of the physical node or link is high, the network resource variance and VNF synchronization delay are reduced by adjusting the migrated VNF or VNF digital twin, or scheduling the link.
[0025] Further, the minimization model can be expressed as:
[0026]
[0027] In the formula, α, β and γ are weight factors, P total (t), L total (t) and They represent the total energy consumption, total resource variance and average synchronization delay of VNF in the entire network system at time t, respectively. max Represents the maximum energy consumption of the network system, L max represents the maximum resource variance of the network system, τ max Indicates the maximum average synchronization delay of all VNFs.
[0028] Further, in step S4, the network energy consumption, resource variance and VNF average synchronization delay after VNF migration are minimized by designing a MAPPO-based VNF migration sub-algorithm and a MADDPG-based twin service node link association sub-algorithm in stages. The steps of the MAPPO-based VNF migration sub-algorithm are as follows:
[0029] 1) Each agent interacts with the network system, obtains the status information of physical nodes and links from the network environment, and obtains resource demand prediction information from the SDN controller;
[0030] 2) Calculate the CPU utilization, storage utilization, and link bandwidth utilization of each NFV node based on resource requirements. If there is an NFV node whose resource utilization is higher than the upper threshold κ up or below the lower threshold κ d , or there is a link utilization higher than the upper threshold κ up If the situation is, the VNF migration and twin service node link association mechanism will be triggered;
[0031] 3) In the VNF migration phase, the algorithm will first initialize the actor network parameters, critic network parameters and maximum number of iterations of each agent;
[0032] 4) In each round of iteration, the first state will be initialized directly by the network, and the subsequent states need to wait for the MADDPG association algorithm to be completed before they can be obtained;
[0033] 5) Repeat the decision-making steps and store the trajectory until the maximum number of steps in the iteration is reached;
[0034] 6) Estimate the advantage function by generalized advantage estimation method;
[0035] 7) During the training phase, the Actor and Critic network parameters are updated through the Adam optimizer.
[0036] Further, in step S4, the steps of the MADDPG-based twin service node link association sub-algorithm are as follows:
[0037] 1) Each intelligent agent interacts with the network system, obtains physical node and link information from the network environment, and obtains the actual resource requirements and node link mapping strategy of the VNF to build the VNF digital twin on the twin service node after VNF migration from the SDN controller;
[0038] 2) Initialize a random process N and cache pool D2 for action exploration, and initialize the Actor network parameters as The parameters of the critic network are The state action after receiving the execution action from the MAPPO algorithm is used to update the MADDPG association algorithm state;
[0039] 3) For each agent v, the current strategy and random exploration factor N t Select current action After the MADDPG association algorithm completes the action, it obtains a reward and sends the executed state action to the MAPPO algorithm, waiting for the MAPPO algorithm to complete the execution and then update to the next state in the next round;
[0040] 4) Each agent samples a small batch of data with a data size of B2 from the cache pool D2 and calculates the target value y j , and update the Critic network through the loss function;
[0041] 5) For each agent, a soft update method is used to update the target network parameters to update.
[0042] The beneficial effects of the present invention are as follows: the present invention constructs a digital twin-assisted 5G cloud wireless access network slicing architecture, and realizes real-time monitoring of VNFs through VNF digital twins; at the same time, each digital twin can perform model online training and resource prediction through the VNF resource demand prediction framework of the multi-task TransDT-GRU according to historical data and migration models; finally, based on the predicted VNF resource demand results, VNF migration trigger conditions with multiple computing resource usage thresholds are set, and solved through the VNF migration sub-algorithm and the twin service node association sub-algorithm, thereby reducing the migration delay and SDN synchronization delay, while ensuring the network performance after migration.
[0043] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:
[0045] Figure 1 A diagram of the cloud radio access network slice architecture assisted by digital twins;
[0046] Figure 2 This is a flowchart of a feasible path algorithm based on depth-first search;
[0047] Figure 3 For multi-task VNF based on online learning;
[0048] Figure 4 The diagram shows the VNF resource requirement prediction framework based on multi-task TransDT-GRU. DETAILED DESCRIPTION
[0049] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.
[0050] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0051] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0052] The present invention proposes a virtual network function migration method with digital twin-assisted dynamic resource demand prediction, which solves the delay problems caused by lack of VNF supervision and VNF migration. At the same time, it can effectively reduce the delay of the SDN controller in synchronizing all VNF predicted resource data and ensure the network performance after migration.
[0053] The method comprises the following steps:
[0054] Step 1: Due to the lack of supervision of VNF, a digital twin-assisted 5G cloud wireless access network slicing architecture is built, and VNF digital twins are built on twin service nodes for real-time monitoring.
[0055] Figure 1 The following is a diagram of the 5G cloud wireless access network slice architecture assisted by digital twins. Its physical layer is defined as a fully connected undirected graph G P =(N P ,L P ), where N P Represents the underlying physical node set, L P Represents the set of underlying physical links. Physical nodes can be used for both VNF operation and VNF digital twin construction, but a node can only be used to deploy VNF instances or to build VNF digital twins. Therefore, nodes can be divided into two categories, namely, the set of VNF function nodes that process VNF instances and the set of VNF function nodes that process VNF instances. and the node set that builds the VNF digital twin That is Assume that each node n∈N P The available resources can be calculated by C n (Hz) and Mn (Byte) means, where C n and M n They represent the computing resources and storage resources of node n respectively; the physical link between physical nodes n and m can be represented as l nm ; Physical link l nm The bandwidth resources of ∈L can be obtained by B nm express.
[0056] At the application layer, let X represent a set of service requests, and X = {X1, X2, …, X k ,…,X K}, where K represents the total number of service requests. i It can be represented as X i =({f ij j=1,2,…,I i},T i ), where f ij represents the jth virtual network function of the i-th SFC, I i represents the set of VNFs for service i, T i represents the end-to-end delay requirement of SFCi. In addition, suppose the i-th SFC can be abstracted as a directed graph in is the set of all VNFs on the i-th SFC, is the set of all virtual links on the i-th SFC. Finally, let represents the CPU computing resource requirement of the jth VNF on the i-th SFC at time t, Indicates memory resource requirements, It represents the virtual link between VNF j and VNF k on the i-th SFC at time t The bandwidth resource requirements and Finally, A binary variable indicating whether VNF j on the i-th SFC at time t is mapped to physical node n. Indicates whether VNF j is mapped to physical node n at time t, otherwise it is not mapped. Indicates whether the virtual link on the i-th SFC is Mapping to physical link l mn superior.
[0057] Assume that all VNFs running on physical nodes have been associated with the corresponding twin service nodes and the construction of VNF digital twins has been completed. Assume that the digital twin of VNF j on SFCi can be modeled as DT ij ={D ij ,S ij ,M ij}, where Dij Represents the historical data of VNFj; S ij Indicates the running status information of VNF j; M ij Denotes the digital model of VNF j, which also refers to the digital twin model to be migrated in the VNF migration problem, which mainly includes the historical state information of VNF in d time slots before time t and the parameters of the VNF resource demand online training prediction model. Let D ij,w represents the model parameter data packet size of the digital twin of VNF j on SFCi. Indicates whether the jth VNF mapped to physical node n at time t is associated with node l. Indicates that the digital twin is built on the twin service node l, otherwise it is not built. represents the physical link l on the associated path of the twin service node of VNF j on the i-th SFC at time t uv bandwidth resource requirements; represents the physical link l on the digital twin migration path of VNF j on the i-th SFC at time t cd bandwidth resource requirements.
[0058] Finally, to simplify the complexity of the link selection problem, we assume represents the path selection of VNF j mapped to NFV node n on the i-th SFC at time t and associated with the twin service node l, represents the path selection of the digital twin of VNF j on the i-th SFC at time t to migrate from the original twin service node h to the new twin service node k. In particular, Indicates that the migration path is empty, that is, the digital twin does not need to be migrated. and All are discrete variables. All feasible paths are obtained by the depth-first search algorithm. The algorithm flow is as follows: Figure 2 As shown, the specific steps are as follows:
[0059] 1) Record the physical network graph G through the adjacency matrix P =(N P ,L P ), initialize the associated path set X or the migration path set (Y).
[0060] 2) Start traversing from the source node n or (l), first determine whether it is possible to continue traversing downwards, if so, visit the adjacent nodes that the current node has not visited. If the destination node l or (k) is visited, add the path to the set X or (Y); otherwise, return to the most recently visited node p in turn, and if p still has adjacent nodes that have not been visited, continue searching.
[0061] 3) When the source node is traced back, the algorithm ends. The delays of all paths in the associated path set X or the migration path set (Y) are calculated, sorted from small to large, and added to the path set in sequence. Since there is a case where the migration path set is empty, 0 is set to indicate that the set is empty. If there is an associated path So represents the path with the shortest delay from node n to l, represents the path with the longest delay. In particular, Indicates that the migration path is empty, that is, the digital twin does not need to be migrated.
[0062] Step 2: To address the latency issues caused by VNF migration and existing migration strategies due to dynamic traffic changes, a multi-task VNF resource prediction framework based on online learning is used to predict VNF resource requirements. In combination with transfer learning, a multi-task TransDT-GRU VNF resource prediction framework is used to solve the problem of insufficient node memory resources caused by centralized training of large-scale data.
[0063] like Figure 3 As shown, the multi-task VNF resource prediction framework based on online learning adopted by the present invention includes three sub-modules: offline training, online learning, and online migration and twin service node link association.
[0064] (1) Offline training module: Let the input feature set be w = {w1,w2,…,w k-1 ,w k ,…}, where w k represents the kth feature sample set of VNF j on SFCi and w k ={X ij (t),X ij (t-1),…,X ij (t-d+1)}, d represents the length of the time slot in the sample, also refers to the sliding window in the online learning prediction phase, X ij (t) represents the characteristics consisting of CPU resource requirements, storage resource requirements and link bandwidth resources and The multi-task learning method is adopted to input multiple tasks of CPU, storage and link bandwidth resources as a feature into the same GRU network for training, fully exploring the correlation between different resource prediction tasks and improving the model accuracy of each subtask. The algorithm inputs all stored historical features into the GRU network for offline pre-training and adjusts the training parameters to provide good initial model parameters for the online learning module.
[0065] (2) Online learning module: The pre-trained parameters in the offline training phase are used as the initial parameters for online learning. Each time a new actual value of resource demand is stored, the oldest sample features are discarded, the sliding window length is kept unchanged, and the model parameters are updated through forward propagation and reverse fine-tuning, providing an online VNF resource prediction model for the network system.
[0066] (3) Online migration and twin service node link association module: The SDN controller collects the predicted VNF resource requirements of each twin service node, determines the underloaded NFV nodes, overloaded NFV nodes and links in the physical network, and formulates corresponding VNF migration strategies and twin service node link association strategies to ensure network performance.
[0067] like Figure 4 As shown in the figure, the VNF resource demand prediction framework based on multi-task TransDT-GRU is trained as follows:
[0068] First, when VNF1 is first mapped to the NFV node and associated with the twin service node, the twin service node can train the model parameters ω(t) through the VNF resource demand algorithm based on the multi-task DT-GRU. Then, when the VNF migrates, its associated twin service node may also change, resulting in the migration of the VNF digital twin. At this time, the new digital twin will update the weights according to the newly collected VNF resource demand data.
[0069] Taking VNF j as an example, let g j,ω represents the weight gradient, L represents the number of consecutive time slots associated with the same twin service node, and f j (·) represents the network model function, y j (t) represents the true value of resource demand, then the gradient and model parameter update method on the first twin service associated node is:
[0070]
[0071]
[0072] In the formula, ρ represents the learning rate of the multi-task TransDT-GRU model. The gradient and model parameter update methods of other twin service associated nodes are:
[0073]
[0074]
[0075] In the formula, q represents the initial time on other twin service associated nodes.
[0076] Step 3: Under the constraints of computing, memory, bandwidth resources, VNF mapping and digital twin construction, a minimization model is constructed by comprehensively considering network energy consumption, resource variance and network synchronization delay. When the resource utilization of physical nodes is low, the network energy consumption is reduced by migrating the VNF or digital twin on the physical node and associating the physical node; when the resource utilization of physical nodes or links is high, the network resource variance and VNF synchronization delay are reduced by adjusting the migrated VNF or VNF digital twin, or scheduling the link.
[0077] The minimization model can be expressed as:
[0078]
[0079] In the formula, α, β and γ are weight factors, P total (t), L total (t) and They represent the total energy consumption, total resource variance and average synchronization delay of VNF in the entire network system at time t, respectively. max Represents the maximum energy consumption of the network system, L max represents the maximum resource variance of the network system, τ max Indicates the maximum average synchronization delay of all VNFs.
[0080] Furthermore, the network energy consumption of the entire network system at time t can be expressed as:
[0081]
[0082] Where P m (t) and They represent the network energy consumption of NFV node m and twin service node l respectively.
[0083] The resource variance of the entire network system at time t can be expressed as:
[0084]
[0085] Where γ1, γ2 and γ3 are weight factors and γ1 = γ2 = γ3 = 1 / 3, and They represent the CPU resource variance, storage resource variance, and bandwidth resource variance of all nodes and all links, respectively.
[0086] The VNF synchronization delay of the entire network system at time t can be expressed as:
[0087]
[0088] In the formula, and They represent the physical link l on the path associated with VNF j in SFCi at time t.mn The transmission delay and propagation delay of and They represent the physical link l on the migration path of VNF j in SFCi at time t. mn transmission delay and propagation delay.
[0089] The optimization target is subject to the constraints of C1 to C18 to ensure the effectiveness of the optimization target. Considering the complexity of the problem, the present invention solves the problem in stages, mainly divided into the VNF migration stage and the twin service node link association stage, where constraints C1 to C11 represent the constraints that need to be met in the VNF migration stage, and C12 to C18 represent the constraints that need to be met in the twin service node link association stage.
[0090]
[0091] C1 is to ensure that each VNF can only be mapped to one virtual node. C2 is to ensure that the virtual link between adjacent VNFs can only be mapped to one physical link. C3 and C4 represent the CPU computing resource limit and storage resource limit of the NFV node, respectively. d , κ up are the lower and upper limits of node resources respectively. C5 is used to ensure the end-to-end delay limit of all SFCs, where T(m,n) represents the physical link l mn The transmission delay of represents the data processing delay of physical node n, T i Indicates the end-to-end delay requirement of SFC. C6 indicates that when two adjacent VNFs in SFC are mapped to NFV nodes m and n, there must be a continuous path l mn , satisfying the flow balance principle. C7 indicates that if there is a VNF mapping on NFV node n, then this node must be in the open state, where g n (t) is a binary variable, indicating whether the NFV node m is in the open state. C8 represents the bandwidth resource limit of the link in the VNF migration phase. C9 to C11 are a series of binary variable constraints in the VNF migration phase. C12 is used to ensure that each VNF can only be associated with one twin service node. Indicates whether the jth VNF mapped to physical node n at time t is associated with node l. C13 and C14 respectively represent the CPU and storage resource limits of the twin service node. C15 indicates that if the twin service node has a VNF association, then this node must also be in the open state. l(t) is a binary variable, indicating whether the twin service node l is in the open state. C16 represents the bandwidth resource constraint that the link needs to meet during the twin service node link association phase. C17-C18 are a series of binary variable constraints during the twin service node link association phase. C19-C20 are multi-ary discrete variables.
[0092] Step 4: Based on the predicted VNF resource prediction results, set the VNF migration trigger conditions with various computing resource usage thresholds, and design the MAPPO-based VNF migration sub-algorithm and the MADDPG-based twin service node link association sub-algorithm in stages.
[0093] The MAPPO algorithm classifies the VNF migration subproblem into a discrete-time Markov decision process, and learns the best migration strategy through multiple agents interacting with the environment. In the MAPPO algorithm, each SFC is learned as an agent. The MAPPO algorithm uses GAE to estimate the quality of the action taken. The advantage function of agent u is expressed as follows:
[0094]
[0095] In the formula, represents the temporal difference (TD) error, γ v1 is the discount factor, λ∈(0,1) is the attenuation factor, T is the iteration step length of one round of iteration, and They represent the state and action of agent u during the VNF migration phase respectively.
[0096] Secondly, a clipping-based optimization objective loss function is used to prevent the new strategy from deviating seriously from the old strategy. The loss function of the Actor network is expressed as follows:
[0097]
[0098] Where E t {·} represents the expected value, θ represents the network parameters of the Actor network, represents the ratio of the new and old strategies, 1-ε and 1+ε represent the lower and upper limits of the clipping interval respectively. If it falls outside the interval (1-ε, 1+ε), the loss function needs to be clipped. The clipping method is: The value is 1+ε; if The value is 1-ε; if If it is within (1-ε,1+ε), no clipping is required.
[0099] The loss function of the Critic network can be expressed as:
[0100]
[0101] in, and Represents the state-action value function of the Critic network under the old strategy and the new strategy.
[0102] Finally, agent u calculates the network gradient Δθ by the following formula u and Δω u , used for Actor network parameters θ u and Critic network parameter ω u The update is as follows:
[0103]
[0104]
[0105] In the formula, α a represents the Actor network learning rate, α c Represents the Critic network learning rate.
[0106] In the twin service node link association stage, the specific process of the MADDPG algorithm is as follows:
[0107] 1) Each intelligent agent interacts with the network system, obtains physical node and link information from the network environment, and obtains the actual resource requirements and node link mapping strategy of the VNF to build the VNF digital twin on the twin service node after VNF migration from the SDN controller;
[0108] 2) Initialize a random process N and cache pool D2 for action exploration, and initialize the Actor network parameters as The parameters of the critic network are The state action after receiving the execution action from the MAPPO algorithm is used to update the MADDPG association algorithm state;
[0109] 3) For each agent v, the current strategy and random exploration factor N t Select current action After the MADDPG association algorithm completes the action, it obtains a reward and sends the executed state action to the MAPPO algorithm, waiting for the MAPPO algorithm to complete the execution and then update to the next state in the next round;
[0110] 4) Each agent samples a small batch of data with a data size of B2 from the cache pool D2 and calculates the target value y j , and update the Critic network through the loss function;
[0111] 5) For each agent, a soft update method is used to update the target network parameters to update.
[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.
Claims
1. A virtual network function migration method for dynamic resource demand prediction assisted by digital twins, Features: The method comprises the following steps: S1. Build a digital twin-assisted 5G cloud radio access network slice architecture and monitor VNFs in real time by building VNF digital twins in twin service nodes. S2. A multi-task VNF resource prediction framework based on online learning is used to predict VNF resource requirements, and a multi-task TransDT-GRU-based VNF resource prediction framework is used in combination with transfer learning; the multi-task VNF resource prediction framework based on online learning includes an offline training module, an online learning module, and an online migration and twin service node link association module; The offline training module is specifically as follows: Assume that the input feature set of the offline training module is: in={in 1 ,In 2 ,…,In k-1 ,In k ,…} In the formula, w k represents the kth feature sample set of the jth VNF on the i-th SFC, and: Where d represents the length of the time slot in the sample, which also refers to the sliding window in the online learning prediction phase, and X ij (t) represents the characteristics consisting of CPU resource requirements, storage resource requirements, and link bandwidth resources, and in, represents the CPU computing resource requirement of the jth VNF on the i-th SFC, Indicates memory resource requirements, It represents the bandwidth resource requirement of the virtual link between VNF j and VNF k on the i-th SFC; Using a multi-task learning method, multiple tasks such as CPU, storage, and link bandwidth resources are input as a feature into the same GRU network for training, fully exploring the correlation between different resource prediction tasks and improving the model accuracy of each subtask; by inputting all stored historical features into the GRU network for offline pre-training and adjusting the training parameters, good initial model parameters are provided for the online learning module; The online learning module specifically includes: using the pre-trained parameters in the offline training phase as initial parameters for online learning, discarding the oldest sample features each time a new actual value of resource demand is stored, keeping the sliding window length unchanged, and updating the model parameters through forward propagation parameters and reverse fine-tuning, thereby providing an online VNF resource prediction model for the network system; The online migration and twin service node link association module is specifically as follows: the SDN controller collects the VNF resource requirements predicted by each twin service node, determines the underloaded NFV nodes, overloaded NFV nodes and links in the physical network, and formulates corresponding VNF migration strategies and twin service node link association strategies to ensure network performance; The VNF resource demand prediction framework based on multi-task TransDT-GRU is specifically as follows: First, when VNF1 is first mapped to the NFV node and associated with the twin service node, the twin service node can train the model parameters ω(t) through the VNF resource demand algorithm based on the multi-task DT-GRU; then, when the VNF migrates, its associated twin service node also changes, resulting in the migration of the VNF digital twin; at this time, the new digital twin will update the weights according to the newly collected VNF resource demand data; S3. Under the constraints of computing, memory, bandwidth resources, VNF mapping and digital twin construction, a model for minimizing network energy consumption, resource variance and network synchronization delay after VNF migration is constructed; the minimization model is expressed as: In the formula, α, β and γ are weight factors, P total (t), L total (t) and They represent the total energy consumption, total resource variance and average synchronization delay of VNF in the entire network system at time t, respectively. max Indicates the maximum energy consumption of the network system, L max represents the maximum resource variance of the network system, τ max Indicates the maximum average synchronization delay of all VNFs; S4. Based on the predicted VNF resource prediction results, set VNF migration trigger conditions with multiple computing resource usage thresholds, and associate VNF migration and twin service node links to reduce the network energy consumption, resource variance and VNF average synchronization delay of the system after migration. Specifically, minimize the optimization model by designing a MAPPO-based VNF migration sub-algorithm and a MADDPG-based twin service node link association sub-algorithm in stages.
2. The virtual network function migration method according to claim 1, Features: In step S1, the network slicing scenario includes an infrastructure layer, a virtualization layer and an application layer; the infrastructure layer includes NFV nodes and twin service nodes, the NFV nodes are used to process VNFs, and the twin service nodes are used to build corresponding VNF digital twins; the virtualization layer is used to achieve flexible allocation of virtual resources; the application layer includes multiple SFCs.
3. The virtual network function migration method according to claim 1, Features: In step S3, when the resource utilization of the physical node is low, the network energy consumption is reduced by migrating the VNF or digital twin on the physical node and associating the physical node; when the resource utilization of the physical node or link is high, the network resource variance and VNF synchronization delay are reduced by adjusting the migrated VNF or VNF digital twin, or scheduling the link.
4. The virtual network function migration method according to claim 1, Features: The steps of the MAPPO-based VNF migration sub-algorithm are as follows: 1) Each agent interacts with the network system, obtains the status information of physical nodes and links from the network environment, and obtains resource demand prediction information from the SDN controller; 2) Calculate the CPU utilization, storage utilization, and link bandwidth utilization of each NFV node based on resource requirements. If there is an NFV node whose resource utilization is higher than the upper threshold κ up or below the lower threshold κ d , or there is a link utilization higher than the upper threshold κ up If the situation is, the VNF migration and twin service node link association mechanism will be triggered; 3) In the VNF migration phase, the algorithm will first initialize the actor network parameters, critic network parameters and maximum number of iterations of each agent; 4) In each round of iteration, the first state will be initialized directly by the network, and the subsequent states need to wait for the MADDPG association algorithm to be completed before they can be obtained; 5) Repeat the decision-making steps and store the trajectory until the maximum number of steps in the iteration is reached; 6) Estimate the advantage function by generalized advantage estimation method; 7) During the training phase, the Actor and Critic network parameters are updated through the Adam optimizer.
5. The virtual network function migration method according to claim 1, Features: The steps of the MADDPG-based twin service node link association sub-algorithm are as follows: 1) Each intelligent agent interacts with the network system, obtains physical node and link information from the network environment, and obtains the actual resource requirements and node link mapping strategy of the VNF to build the VNF digital twin on the twin service node after VNF migration from the SDN controller; 2) Initialize a random process N and cache pool D for action exploration 2 , initialize the Actor network parameters to The parameters of the critic network are The state action after receiving the execution action from the MAPPO algorithm is used to update the MADDPG association algorithm state; 3) For each agent v, the current strategy and random exploration factor N t Select current action After the MADDPG association algorithm completes the action, it obtains a reward and sends the executed state action to the MAPPO algorithm, waiting for the MAPPO algorithm to complete the execution and then update to the next state in the next round; 4) Each agent takes a buffer from the cache pool D 2 The amount of sampled data is B 2 Small batch data, calculate the target value y j , and update the Critic network through the loss function; 5) For each agent, a soft update method is used to update the target network parameters to update.
