Virtual Network Function Placement Method Based on Learning Optimization Method in Edge-Cloud Collaborative System

By adopting a virtual network function placement decision-making method based on learning optimization in the edge-cloud collaboration system, combined with deep reinforcement learning and combination optimization, the resource utilization efficiency and cost control problems of virtualization technology in the edge-cloud collaboration system are solved, and a better solution is achieved. Low system overhead and better service experience.

CN115883371BActive Publication Date: 2024-09-03CHONGQING YUNTOU FUSHANG NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211497563.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-26
Publication Date
2024-09-03
Estimated Expiration
2042-11-26

AI Technical Summary

Technical Problem

In edge-cloud collaboration systems, existing virtualization technologies such as VM-VNF have limitations such as slow startup and migration, high resource overhead, etc., making it difficult to cope with the dynamic needs of complex tasks, and how to choose the virtualization form and placement affects operating expenses. This makes service quality and cost control difficult.

Method used

A virtual network function placement decision-making method based on learning optimization method is adopted. By obtaining edge-cloud collaboration system resource data, the placement decision of virtual network functions is optimized. Combining deep reinforcement learning and combination optimization, a dual placement framework of 'action-discrimination' is proposed to select Proper virtualization type and placement to minimize system overhead.

Benefits of technology

It achieves good adaptability in edge cloud scenarios of different sizes, obtains lower system overhead, service delay and better service experience, and effectively controls operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115883371B
    Figure CN115883371B
Patent Text Reader

Abstract

The present invention proposes a virtual network function placement decision method based on a learning optimization method in an edge-cloud collaborative system, including the following steps: S1, obtaining edge cloud and third-party cloud data; S2, making optimized placement decisions based on the obtained edge cloud and third-party cloud data. The present invention first establishes a cost-based optimization decision problem for virtual network function placement, and then describes the model as a Markov decision model; by combining deep reinforcement learning with combinatorial optimization solution, a dual placement framework for virtual network function placement based on "action-discrimination" is proposed. The proposed network function placement algorithm has good adaptability in edge cloud scenarios of different scales, and can obtain lower system overhead through reasonable virtualization type selection and placement location decision, and provide lower service delay and better service experience for demand-side users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of edge-cloud collaboration technology, and in particular to a virtual network function placement method based on a learning optimization method in an edge-cloud collaboration system. Background Art

[0002] In order to meet the significant demands of various new applications in terms of low latency, low energy consumption and high bandwidth, application service providers have formed an edge computing service model to improve service quality by distributing service nodes at the edge of the network closer to users. However, although the introduction of edge computing enables service providers to have the ability to flexibly place services, the limited resources (computing power, bandwidth and storage) of edge service nodes have made them weak in the face of complex and diversified tasks. To this end, the academic community has further combined edge computing with the massive resource supply of cloud computing to derive a new model of edge-cloud collaborative services. In addition, by introducing virtualization technology in edge computing, physical resources can be abstracted into virtual network function units (VNFs), thereby improving the utilization efficiency of limited resources while meeting user business needs. In current edge computing, virtualization technology (VM-VNF) based on virtual machines (VMs) is the most widely used. However, VM-VNF has limitations such as slow startup and migration and high resource overhead, which makes it slow in the face of dynamic task requirements. With the recent rise of serverless computing, network functions or complex tasks can be flexibly placed in the form of lighter containers (CT), thus forming container-based virtualization technology (CT-VNF). It has become a new trend for application service providers to simultaneously manage and schedule VM-VNF and CT-VNF in the environment of edge-cloud collaborative services. Application service providers can obtain better reliability and performance by placing VM-VNF at the edge, but the resource overhead is relatively larger, while placing CT-VNF in the cloud usually obtains better service flexibility but needs to pay cloud service providers according to the rental time. Therefore, how to choose the virtualization form and placement location of the service will directly affect the operating expenses of the application service provider. Solving this problem is of great significance to improving the service quality of application service providers and effectively controlling the operating expenses of service facilities. Summary of the invention

[0003] The present invention aims to at least solve the technical problems existing in the prior art, and in particular innovatively proposes a virtual network function placement decision method based on a learning optimization method in an edge-cloud collaborative system.

[0004] In order to achieve the above-mentioned object of the present invention, the present invention provides a virtual network function placement decision method based on a learning optimization method in an edge-cloud collaborative system, comprising the following steps:

[0005] S1, obtains data of various resources in the edge-cloud collaborative system;

[0006] S2, optimizes placement decisions based on the acquired edge-cloud collaboration data.

[0007] In a preferred embodiment of the present invention, step S1 includes:

[0008]

[0009] Among them, T L It represents the queuing delay caused by placing a virtual network function i in the edge-cloud collaborative system;

[0010] γ C Indicates the service rate of the service node;

[0011] δ c Indicates the computing rate of virtual network requests;

[0012] f x Indicates the virtual network requests currently queued by the service nodes in the edge collaboration system;

[0013] h represents the set of edge cloud service nodes;

[0014]

[0015] Among them, T C Indicates the delay caused by the virtual network request to obtain network bandwidth resources and storage resources at the service node; δ B Indicates the percentage of bandwidth resources used by the service node to the total bandwidth resources;

[0016] δ S Indicates that the service node has used storage resources;

[0017] γ B Indicates the total bandwidth resources;

[0018] γ S Indicates the total storage resources of the node;

[0019]

[0020] Among them, T t Represents the communication delay of transmitting virtual network requests to the third-party cloud;

[0021] δ B Indicates the percentage of bandwidth resources used by the service node to the total bandwidth resources;

[0022] Indicates the transmission rate of requests to the third-party cloud;

[0023] T e =T L +T c (4)

[0024] T C =T L +T c +T t (5)

[0025] Among them, T e represents the total latency of placing a request in the edge cloud;

[0026] T L It represents the queuing delay caused by placing a virtual network function i in the edge-cloud collaborative system;

[0027] T c Indicates the delay caused by the virtual network request to obtain network bandwidth resources and storage resources at the service node;

[0028] T C Indicates the total latency of placing in a third-party cloud;

[0029] T t Represents the communication delay of transmitting virtual network requests to the third-party cloud;

[0030] F e =E i +E u (6)

[0031] Among them, F e Indicates the payment cost of each service node in the third-party cloud;

[0032] E i It represents the maintenance cost of the enabled edge cloud service nodes and the overhead of placing virtual network requests in the form of virtual machines on the service nodes;

[0033] E u It represents the service cost when the edge cloud service node provides computing services;

[0034]

[0035] Among them, E u It represents the service cost when the edge cloud service node provides computing services;

[0036] δ C Indicates the computing resources used in the service node;

[0037] γ Crepresents the total computing resources;

[0038] P C The weight representing the utilization of computing resources;

[0039] δ B Indicates the percentage of bandwidth resources used by the service node to the total bandwidth resources;

[0040] γ B Indicates the total bandwidth resources;

[0041] P B The weight representing the bandwidth resource utilization;

[0042] δ S Indicates that the service node has used storage resources;

[0043] γ S Indicates the total storage resources of the node;

[0044] P S The weight representing the storage resource utilization;

[0045]

[0046] Among them, F c Indicates the payment cost of each service node in the third-party cloud;

[0047] Indicates the computing resources used by service nodes in the third-party cloud;

[0048] Indicates the price of computing resources in the third-party cloud;

[0049] Indicates the bandwidth resources used by service nodes in the third-party cloud;

[0050] Indicates the price of bandwidth resources in the third-party cloud;

[0051] Indicates the storage resources used by service nodes in the third-party cloud;

[0052] Indicates the price of storage resources in the third-party cloud;

[0053]

[0054] Among them, k e represents the cost of placing virtual network requests in the edge cloud in the form of virtual machines; H e Represents a set of edge cloud service nodes;

[0055] F erepresents the computational cost of a virtual network request;

[0056] T e Indicates the latency cost of virtual network requests;

[0057] Indicates the weight of latency cost in edge cloud;

[0058] f x1 represents the decision variable;

[0059]

[0060] Among them, k c represents the cost of placing virtual network requests in a third-party cloud in the form of containers; H C Represents a collection of third-party cloud service nodes;

[0061] F C Indicates the payment cost of the virtual network request;

[0062] T C Indicates the latency cost of virtual network requests;

[0063] Indicates the weight of latency cost in the third-party cloud;

[0064] f x2 represents the third-party cloud decision variable;

[0065] k=k e +k c (11)

[0066] k represents the total cost of the current edge-cloud collaborative system;

[0067] k e represents the cost of placing virtual network requests in the edge cloud in the form of virtual machines;

[0068] k c Represents the cost of placing virtual network requests in a third-party cloud in the form of containers.

[0069] In a preferred embodiment of the present invention, step S2 includes:

[0070]

[0071]

[0072]

[0073]

[0074]

[0075]

[0076] Among them, Min() takes the minimum value;

[0077] H e Represents a set of edge cloud service nodes;

[0078] F e represents the computational cost of a virtual network request;

[0079] T e Indicates the latency cost of virtual network requests;

[0080] Indicates the weight of latency cost in edge cloud;

[0081] f x1 represents the decision variable;

[0082] H C Represents a collection of third-party cloud service nodes;

[0083] F C Indicates the payment cost of the virtual network request;

[0084] T C Indicates the latency cost of virtual network requests;

[0085] Indicates the weight of latency cost in the third-party cloud;

[0086] f x2 represents the third-party cloud decision variable;

[0087] st means restricted by;

[0088] δ C Indicates the computing resources used in the service node;

[0089] Indicates the computing resources owned by the current edge cloud service node;

[0090] Indicates the computing resources used by service nodes in the third-party cloud;

[0091] Indicates the remaining available computing resources of the current third-party cloud service node;

[0092] δ B Indicates the percentage of bandwidth resources used by the service node to the total bandwidth resources;

[0093] Indicates the bandwidth resources currently owned by the edge cloud service node;

[0094] Indicates the bandwidth resources used by service nodes in the third-party cloud;

[0095] Indicates the remaining available bandwidth resources of the current third-party cloud service node;

[0096] δ S Indicates that the service node has used storage resources;

[0097] Indicates the storage resources owned by the current edge cloud service node;

[0098] Indicates the storage resources used by service nodes in the third-party cloud;

[0099] Indicates the remaining available storage resources of the current third-party cloud service node;

[0100] γ L (n,u) represents the link bandwidth between edge cloud service nodes;

[0101] γ L (n C ,u C ) represents the link bandwidth between third-party cloud service nodes;

[0102] In a preferred embodiment of the present invention, it also includes:

[0103]

[0104]

[0105] Among them, r(t) represents the reward function;

[0106] H e Represents a set of edge cloud service nodes;

[0107] F e represents the computational cost of a virtual network request;

[0108] T e Indicates the latency cost of virtual network requests;

[0109] Indicates the weight of latency cost in edge cloud;

[0110] f x1 represents the decision variable;

[0111] H C Represents a collection of third-party cloud service nodes;

[0112] F C Indicates the payment cost of the virtual network request;

[0113] T C Indicates the latency cost of virtual network requests;

[0114] Indicates the weight of latency cost in the third-party cloud;

[0115] f x2 represents the third-party cloud decision variable;

[0116] J(t) represents the penalty function;

[0117] λ x Indicates the penalty ratio for violating different constraints;

[0118] J x (t) represents the penalty function of different constraints;

[0119]

[0120] Where R(t) represents the cumulative return at time t;

[0121] reward(t) represents the immediate benefit of placing a virtual network request;

[0122] η represents the discount factor;

[0123] reward(t+1) represents the reward value when the number of iterations is 1;

[0124] reward(t+2) represents the reward value when the number of iterations is 2;

[0125] reward(t+n) represents the reward value when the number of iterations is n;

[0126] Q π (s(t),a(t))=E[R(t)|s(t),a(t)]

[0127] =E[reward(t)+η·reward(t)+...|s(t),a(t)] (21)

[0128] =E[reward(t)+Q π (s(t+1),a(t+1))+...|s(t),a(t)]

[0129] Among them, E[R(t)|s(t),a(t)] represents the expectation of action a(t) in state s(t);

[0130] π*=argmax(Q π (s,a)) (22)

[0131] Among them, argmax() represents the maximum value.

[0132] In a preferred embodiment of the present invention, the solution is:

[0133]

[0134] Where r(t) represents the reward function;

[0135] J(t) represents the penalty function;

[0136] H e Represents a set of edge cloud service nodes;

[0137] F e represents the computational cost of a virtual network request;

[0138] T e Indicates the latency cost of virtual network requests;

[0139] Indicates the weight of latency cost in edge cloud;

[0140] f x1 represents the decision variable;

[0141] H C Represents a collection of third-party cloud service nodes;

[0142] F C Indicates the payment cost of the virtual network request;

[0143] T C Indicates the latency cost of virtual network requests;

[0144] Indicates the weight of latency cost in the third-party cloud;

[0145] f x2 represents the third-party cloud decision variable;

[0146] λ x Indicates the penalty ratio for violating different constraints;

[0147] J x (t) represents the penalty function of different constraints;

[0148] Q π (s(t),a(t))≈Q π (s(t),a(t),θ Q ) (twenty four)

[0149] Among them, θ Q Represents the weight value of the deep neural network;

[0150] σ=r t+1 +ξQ_(s(t),a(t))-Q(s(t),a(t)) (25)

[0151] Among them, σ represents the time difference value;

[0152] r t+1 Indicates the return value;

[0153] ξ represents the weight factor;

[0154] Q_(s(t),a(t)) represents the Q value obtained when the last state is input into the discriminant network;

[0155] Q(s(t),a(t)) represents the Q value obtained by inputting the s state into the discriminant network;

[0156] σ'=L+r t+1 +ξQ_(s(t),a(t))-Q(s(t),a(t)) (26)

[0157] Loss(θ Q )=E[σ'(t) 2 ] (27)

[0158] Wherein, σ' represents the time difference value based on the Lagrange dual function;

[0159] L represents the Lagrangian logarithm value;

[0160] r t+1 represents the reward function;

[0161] ξ represents the weight factor;

[0162] Q_(s(t),a(t)) represents the Q value obtained when the last state is input into the discriminant network;

[0163] Q(s(t),a(t)) represents the Q value obtained by inputting the s state into the discriminant network

[0164] Loss(θ Q ) represents the loss function of the discriminant network;

[0165] σ'(t) 2 represents the square loss function;

[0166]

[0167] Among them, θ μ represents the weight of the action network;

[0168] represents the placement strategy of the action network;

[0169] σ represents the time difference value of the discriminant network;

[0170] π*=π(s(t),a(t),θ μ ) (29)

[0171] Among them, π* represents the optimal strategy;

[0172] π(·,·,) represents the strategy;

[0173] s(t) represents the state;

[0174] a(t) represents action;

[0175] θ μ represents the weight of the action network.

[0176] To summarize, due to the adoption of the above-mentioned technical scheme, the present invention first establishes a cost-based optimization decision problem for virtual network function placement, and then describes the model as a Markov decision model; by combining deep reinforcement learning with combinatorial optimization solution, a dual placement framework for virtual network function placement based on "action-discrimination" is proposed. The proposed network function placement algorithm has good adaptability in edge cloud scenarios of different scales, and can obtain lower system overhead through reasonable virtualization type selection and placement location decision, and provide demand-side users with lower service latency and better service experience.

[0177] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0178] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0179] Figure 1 It is a schematic diagram of the edge-cloud collaborative service system framework of the present invention.

[0180] Figure 2 It is a schematic diagram of the online and offline collaborative problem-solving mode of the present invention.

[0181] Figure 3 It is a schematic diagram of a virtual network function placement strategy solution framework of the present invention.

[0182] Figure 4 It is a schematic diagram of the convergence of the loss functions of the action module and the discriminant module under different flow rates.

[0183] Figure 5 It is a schematic diagram of the changes in the total system cost and the cost changes of the edge cloud and third-party cloud in the edge-cloud collaborative system.

[0184] Figure 6 It is a schematic diagram of the system cost reduction and algorithm convergence status of deploying interconnection requests in a large-scale edge-cloud collaborative system.

[0185] Figure 7 It is a schematic diagram comparing the execution time of the algorithm deployed in the basic edge-cloud collaborative system and the execution time of the algorithm in the large-scale edge-cloud collaborative system.

[0186] Figure 8 This is a schematic diagram of the average system cost of different algorithms in the edge-cloud collaborative system.

[0187] Fig. 9 This is a schematic diagram comparing the average penalty values ​​of different deployment algorithms in the edge-cloud collaborative system.

[0188] Fig.10 This is a schematic diagram comparing the delay costs caused by different deployment algorithms in the edge-cloud collaborative system.

[0189] Fig.11 It is a schematic diagram of type decision of action-discrimination based virtual network function deployment algorithm, random selection algorithm and algorithm for minimizing operational overhead.

[0190] Fig.12 This is a schematic diagram comparing the deployment costs of the action-discrimination based virtual network function deployment algorithm, the random selection algorithm, and the algorithm that minimizes operational overhead. DETAILED DESCRIPTION

[0191] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0192] The present invention mainly includes: a cost minimization model of edge-cloud collaborative system based on mixed integer linear programming model, and a virtual network function placement strategy solution framework based on "action-discrimination". The edge-cloud collaborative service system framework considered is as follows: Figure 1As shown, multiple interconnected edge service nodes are placed in the edge service area, and the edge nodes can jointly provide near-end computing, network and storage services to end users. Cloud resources are provided by third-party cloud service providers, such as Alibaba Cloud, Tencent Cloud or Amazon AWS. In order to effectively control operating costs (i.e., OPEX) while responding to various complex business requests from users, service providers can simultaneously manage two virtualized instances, VM-VNF and CT-VNF, through a control system that integrates virtual infrastructure managers (VIMs) in an edge-cloud collaborative environment, for example, using OpenWhisk. Users submit various complex tasks to the edge-cloud collaborative system through nearby base stations or wireless hotspots. Such tasks can be: end-to-end applications including multiple VNFs or distributed machine learning task requests, etc. The service provider instantiates the task request into multiple interrelated virtual network function entities through VIM and completes the placement decision in the edge-cloud environment, and finally realizes the service of complex tasks. In particular, the present invention studies the placement problem of virtual network functions and simultaneously considers the decision on the instantiation form of virtual network functions and the placement location decision of the instantiated virtual network functions. The former is the virtualization technology used for decision making, that is, selecting and instantiating VM-VNF and CT-VNF. The latter is to make decisions on the placement of virtualized entities between edge service nodes and cloud nodes based on the possible overhead incurred during the system service process.

[0193] 1. Minimizing the cost model of edge-cloud collaborative system based on mixed integer linear programming model

[0194] In this invention, a cost model for minimizing edge-cloud collaborative system based on mixed integer linear programming model is first established. To formalize the system cost model, the following definition is made. The set of n edge service nodes is For one of the edge service nodes definition and are the computing power, network bandwidth and storage resources they possess respectively. In the third-party cloud, the set of m service nodes used for edge-cloud collaboration is represented as For a cloud service node Define and is the computing power, network bandwidth and storage resources of the cloud service node. At the same time, define the undirected graph G e =(H edge ,E edge ), where H edge and E edge The edge regions G e The set of service nodes and the set of links between nodes in E(n,u),e(n,u)∈Eedge Indicates edge service node and The network links between γ L (n,u) represents the bandwidth resources required by link e(n,u). Similarly, define the undirected graph G c =(H cloud ,E cloud ), H C and E C are the service node set and the link set between nodes in the third-party cloud for edge-cloud collaboration, respectively. C ,u C ),e(n C ,u C )∈H C Indicates a third-party cloud service node and The network link between L (n C ,u C ) represents the link e(n C ,u C ) bandwidth resources. Further, using the multi-tuple Represents a complex task i, and the |V that serves the complex task i |A collection of virtual network functions The computing power, network bandwidth, and storage resources required by one of the virtual network functions j (j∈Vi) required by task i are and The data interaction between any two virtual network functions j and k in Vi requires the network link bandwidth resources occupied by

[0195] When studying the placement of virtual network functions, the present invention also takes into account factors such as business service quality and third-party cloud rental fees. To this end, a weighted cost function consisting of energy consumption, latency and payment is defined, and the placement of virtualized network functions is modeled as a multi-objective optimization model based on minimizing costs.

[0196] Placing virtualized network functions on edge nodes or cloud nodes with heterogeneous service capabilities will cause delays in the service process. Delay will directly affect the service quality of complex tasks as the most important indicator. The delay mainly includes: queuing delay caused by placing network functions on physical edge cloud nodes, computing delay, and transmission delay caused by data transmission in the edge cloud. Therefore, the queuing delay T generated by placing a virtual network function i in the edge cloud collaborative system is L , where δ c is the computing rate of virtual network requests, γC is the service rate of the service node, f x is a decision variable, which represents the virtual network requests currently queued by the service nodes in the edge collaboration system.

[0197]

[0198] Among them, T L It represents the queuing delay caused by placing a virtual network function i in the edge-cloud collaborative system;

[0199] γ C Indicates the service rate of the service node;

[0200] δ c Indicates the computing rate of virtual network requests;

[0201] f x Indicates the virtual network requests currently queued by the service nodes in the edge collaboration system;

[0202] h represents the set of edge cloud service nodes;

[0203] Secondly, the delay T caused by the virtual network request to obtain network bandwidth resources and storage resources at the service node is defined C .

[0204]

[0205] Among them, T C Indicates the delay caused by the virtual network request to obtain network bandwidth resources and storage resources at the service node;

[0206] δ B Indicates the percentage of bandwidth resources used by the service node to the total bandwidth resources;

[0207] δ S Indicates that the service node has used storage resources;

[0208] γ B Indicates the total bandwidth resources;

[0209] γ S Indicates the total storage resources of the node;

[0210] Finally, the communication delay T for transmitting virtual network requests to the third-party cloud is defined t , the communication delay placed in the edge cloud is negligible compared to the communication delay of the third-party cloud, where The transfer rate of requests to the third-party cloud.

[0211]

[0212] Among them, T tRepresents the communication delay of transmitting virtual network requests to the third-party cloud;

[0213] δ B Indicates the percentage of bandwidth resources used by the service node to the total bandwidth resources;

[0214] Indicates the transmission rate of requests to the third-party cloud;

[0215] To sum up, the total delay of placing the request in the edge cloud is T e , the total delay placed in the third-party cloud is T C .

[0216] T e =T L +T c (4)

[0217] T C =T L +T c +T t (5)

[0218] Among them, T e represents the total latency of placing a request in the edge cloud;

[0219] T L It represents the queuing delay caused by placing a virtual network function i in the edge-cloud collaborative system;

[0220] T c Indicates the delay caused by the virtual network request to obtain network bandwidth resources and storage resources at the service node;

[0221] T C Indicates the total latency of placing in a third-party cloud;

[0222] T t Represents the communication delay of transmitting virtual network requests to the third-party cloud;

[0223] In the calculation model, consider using F e Calculate the computational cost of each service node in the edge cloud. i is the maintenance cost of the enabled edge cloud service nodes and the overhead of placing virtual network requests in the form of virtual machines on the service nodes. u It is the service cost when the edge cloud service node provides computing services.

[0224] F e =E i +E u (6)

[0225] Among them, F eIndicates the payment cost of each service node in the third-party cloud;

[0226] E i It represents the maintenance cost of the enabled edge cloud service nodes and the overhead of placing virtual network requests in the form of virtual machines on the service nodes;

[0227] E u It represents the service cost when the edge cloud service node provides computing services;

[0228] In computing the linear function of cost F e In, E u Represents the computing cost of each service node. In formula (7), the ratio of computing resources used in the service node to total computing resources is used to represent computing resource utilization, the ratio of bandwidth resources used in the service node to total bandwidth resources is used to represent bandwidth resource utilization, and the ratio of storage resources used in the service node to total storage resources of the node is used to represent storage resource utilization. When edge cloud service nodes process virtual network requests, the order of resource importance is computing resources, bandwidth resources, and storage resources. Therefore, the weight of computing resource utilization of virtual network requests is P C The weight P should be higher than the bandwidth resource utilization. B The weight P of storage resource utilization S .

[0229]

[0230] Among them, E u It represents the service cost when the edge cloud service node provides computing services;

[0231] δ C Indicates the computing resources used in the service node;

[0232] γ C represents the total computing resources;

[0233] P C The weight representing the utilization of computing resources;

[0234] δ B Indicates the percentage of bandwidth resources used by the service node to the total bandwidth resources;

[0235] γ B Indicates the total bandwidth resources;

[0236] P B The weight representing the bandwidth resource utilization;

[0237] δ S Indicates that the service node has used storage resources;

[0238] γ SIndicates the total storage resources of the node;

[0239] P S The weight representing the storage resource utilization;

[0240] In the payment model, the payment-by-usage model in third-party clouds is mainly considered. Generally speaking, the placement characteristics of containers close to bare metals make it possible to greatly save payment costs by placing virtual network requests in third-party clouds. Therefore, third-party clouds often place virtual network requests in the form of containers and charge according to data usage. The payment cost of each service node in the third-party cloud is expressed in formula (8).

[0241]

[0242] Among them, F c Indicates the payment cost of each service node in the third-party cloud;

[0243] Indicates the computing resources used by service nodes in the third-party cloud;

[0244] Indicates the price of computing resources in the third-party cloud;

[0245] Indicates the bandwidth resources used by service nodes in the third-party cloud;

[0246] Indicates the price of bandwidth resources in the third-party cloud;

[0247] Indicates the storage resources used by service nodes in the third-party cloud;

[0248] Indicates the price of storage resources in the third-party cloud;

[0249] In the linear function (8) of the computational cost, and They respectively represent the computing resources, bandwidth resources, and storage resources used by service nodes in the third-party cloud. and The charging prices for computing resources, bandwidth resources and storage resources in third-party clouds.

[0250] The present invention models the placement problem of virtual network requests in the edge cloud collaborative system as a combinatorial optimization problem consisting of delay cost, computing cost and cost cost. Based on the above model, if ISPS places virtual network requests in the edge cloud in the form of virtual machines, the cost can be expressed as:

[0251]

[0252] Among them, k e represents the cost of placing virtual network requests in the edge cloud in the form of virtual machines;

[0253] H e Represents a set of edge cloud service nodes;

[0254] F e represents the computational cost of a virtual network request;

[0255] T e Indicates the latency cost of virtual network requests;

[0256] Indicates the weight of latency cost in edge cloud;

[0257] f x1 represents the decision variable;

[0258] In formula (9), F e and T e are the computational cost and latency cost of virtual network requests, respectively. is the weight of latency cost in edge cloud, f x1 is a decision variable, representing the type decision of the current virtual network request as the virtual machine type, and the location decision as the edge cloud service node x1, x1∈H e .

[0259] When ISPS places virtual network requests in the form of containers in a third-party cloud, the cost can be expressed as:

[0260]

[0261] Among them, k c It represents the cost of placing virtual network requests in a third-party cloud in the form of containers;

[0262] H C Represents a collection of third-party cloud service nodes;

[0263] F C Indicates the payment cost of the virtual network request;

[0264] T C Indicates the latency cost of virtual network requests;

[0265] Indicates the weight of latency cost in the third-party cloud;

[0266] f x2 represents the third-party cloud decision variable;

[0267] In formula (10), F C and T Care the payment and latency costs of virtual network requests, respectively. is the weight of latency cost in the third-party cloud, which is greater than f x2 is a decision variable, representing the type of the current virtual network request as a container type, and its location as a third-party cloud service node x2, x2∈H C .

[0268] To sum up, the total cost of the current edge-cloud collaborative system is:

[0269] k=k e +k c (11)

[0270] k represents the total cost of the current edge-cloud collaborative system;

[0271] k e represents the cost of placing virtual network requests in the edge cloud in the form of virtual machines;

[0272] k c It represents the cost of placing virtual network requests in a third-party cloud in the form of containers;

[0273] In the present invention, the purpose of constructing the optimization model is to make a dual decision of location decision and placement decision in the system intelligently according to the characteristics of the virtual network request and the load of the edge-cloud collaborative system when a virtual network request of a logical virtualized network arrives at the edge-cloud collaborative system, so as to minimize the total cost. Therefore, the problem of placing virtual network requests in the edge-cloud collaborative system can be modeled as:

[0274]

[0275]

[0276]

[0277]

[0278]

[0279]

[0280] Among them, Min() takes the minimum value;

[0281] H e Represents a set of edge cloud service nodes;

[0282] F e represents the computational cost of a virtual network request;

[0283] T eIndicates the latency cost of virtual network requests;

[0284] Indicates the weight of latency cost in edge cloud;

[0285] f x1 represents the decision variable;

[0286] H C Represents a collection of third-party cloud service nodes;

[0287] F C Indicates the payment cost of the virtual network request;

[0288] T C Indicates the latency cost of virtual network requests;

[0289] Indicates the weight of latency cost in the third-party cloud;

[0290] f x2 represents the third-party cloud decision variable;

[0291] st means restricted by;

[0292] δ C Indicates the computing resources used in the service node;

[0293] Indicates the computing resources owned by the current edge cloud service node;

[0294] Indicates the computing resources used by service nodes in the third-party cloud;

[0295] Indicates the remaining available computing resources of the current third-party cloud service node;

[0296] δ B Indicates the percentage of bandwidth resources used by the service node to the total bandwidth resources;

[0297] Indicates the bandwidth resources currently owned by the edge cloud service node;

[0298] Indicates the bandwidth resources used by service nodes in the third-party cloud;

[0299] Indicates the remaining available bandwidth resources of the current third-party cloud service node;

[0300] δ S Indicates that the service node has used storage resources;

[0301] Indicates the storage resources owned by the current edge cloud service node;

[0302] Indicates the storage resources used by service nodes in the third-party cloud;

[0303] Indicates the remaining available storage resources of the current third-party cloud service node;

[0304] γ L (n,u) represents the link bandwidth between edge cloud service nodes;

[0305] γ L (n C ,u C ) represents the link bandwidth between third-party cloud service nodes;

[0306] In the constraint condition of the model (13), f x1 =1 and f x2 = 1 as a decision variable to realize the dual decision function of ISPS, which respectively represents the virtual network request placed in the service node x1 in the edge cloud as a virtual machine type and the service node x2 in the third-party cloud as a container type. Constraint formula (14) represents the demand for computing resources for the virtual network request placed in the edge cloud in the form of a virtual machine δ C No more than the computing resources of the current edge cloud service node Similarly, the demand for computing resources by virtual network requests placed in third-party clouds in the form of containers Must not exceed the remaining available computing resources of the current third-party cloud service node Constraint (15) represents the bandwidth resource demand of virtual network requests placed in the edge cloud in the form of virtual machines δ B The bandwidth resources of the current edge cloud service node must not exceed Similarly, the bandwidth requirements of virtual network requests placed in third-party clouds in the form of containers Must not exceed the remaining available bandwidth resources of the current third-party cloud service node Correspondingly, Equation (16) represents the storage resource constraints in the edge cloud and the third-party cloud. Constraint Equation (17) is the link bandwidth limit between service nodes in the edge-cloud collaborative system.

[0307] The combinatorial optimization problem defined in the previous section is modeled as an MDP model according to the Markov decision process, and a model of deep reinforcement learning based on action-discrimination is constructed. First, the MDP model is described as M = {S, A, P, R, η}, where:

[0308] S is the state space, and definition represents the state space at time t, h includes the service nodes of the edge cloud and the edge cloud collaborative system of the third-party cloud, and H represents the state space of the service nodes in the current edge cloud collaborative system. C (t), γ B (t) and γ S (t) represent the computing resource requirements, bandwidth resource requirements and storage resource requirements of the virtual network request for the service node at time t.

[0309] A is the action space, and the action space at time t is defined as A(t) = {a h(t) ,h(t)∈H},a h(t) The table shows the mapping actions of virtual network requests arriving at the edge-cloud collaborative system.

[0310] P is the state transition probability. Selecting action a(t) in state s(t) at time t will cause the state to transition to the state s(t+1) at the next time. The state transition probability is P(s(t+1)s(t),a(t)).

[0311] R is the benefit function, and a reward function is defined as the reward for each action. This function uses the objective function of the combinatorial optimization model (12) as the reward function r(t), and uses the constraint function (13) to (17) as the penalty function, where λ x is the penalty ratio for violating different constraints, and x represents different types of constraints, namely computing constraints, bandwidth constraints, storage constraints, and link bandwidth constraints.

[0312]

[0313]

[0314] Among them, r(t) represents the reward function;

[0315] H e Represents a set of edge cloud service nodes;

[0316] F e represents the computational cost of a virtual network request;

[0317] T e Indicates the latency cost of virtual network requests;

[0318] Indicates the weight of latency cost in edge cloud;

[0319] f x1 represents the decision variable;

[0320] H C Represents a collection of third-party cloud service nodes;

[0321] FC Indicates the payment cost of the virtual network request;

[0322] T C Indicates the latency cost of virtual network requests;

[0323] Indicates the weight of latency cost in the third-party cloud;

[0324] f x2 represents the third-party cloud decision variable;

[0325] J(t) represents the penalty function;

[0326] λ x Indicates the penalty ratio for violating different constraints;

[0327] J x (t) represents the penalty function of different constraints;

[0328] Therefore, the immediate benefit of placing a virtual network request is reward(t) = r(t) - J(t), and its cumulative reward at time t is formula (20), where η∈(0,1) is the discount factor and n is the number of iterations. As the number of iterations increases, the future reward brought by the current action will gradually decrease, so a certain discount needs to be implemented on the future benefits.

[0329]

[0330] Where R(t) represents the cumulative return at time t;

[0331] reward(t) represents the immediate benefit of placing a virtual network request;

[0332] η represents the discount factor;

[0333] reward(t+1) represents the reward value when the number of iterations is 1;

[0334] reward(t+2) represents the reward value when the number of iterations is 2;

[0335] reward(t+n) represents the reward value when the number of iterations is n;

[0336] At time t, the environment in state s(t) will choose action a(t)=π(s(t)) according to strategy π. Based on this strategy π, the environment will pass the value function Q π (s(t),a(t)) evaluates action a(t) and makes a reasonable choice.

[0337] Q π (s(t),a(t))=E[R(t)|s(t),a(t)]

[0338] =E[reward(t)+η·reward(t)+...|s(t),a(t)] (21)

[0339] =E[reward(t)+Q π (s(t+1),a(t+1))+...|s(t),a(t)]

[0340] Among them, E[R(t)|s(t),a(t)] represents the expectation of action a(t) in state s(t);

[0341] Therefore, the optimal strategy π for placing virtual network requests in the edge-cloud collaborative system is * That is formula (22).

[0342] π*=argmax(Q π (s,a)) (22)

[0343] Among them, argmax() represents the maximum value;

[0344] 2. Virtual Network Function Placement Strategy Solution Framework Based on “Action-Discrimination”

[0345] At present, more and more scholars are using deep reinforcement learning methods to solve MDP problems, and have achieved relatively excellent results. Deep reinforcement learning methods usually do not require assumptions about the model, but learn the pros and cons of the current strategy through continuous interaction with the environment and gradually achieve the purpose of maximizing returns. The virtual network request requirements for computing resources, bandwidth requirements and storage requirements considered in the present invention are all randomly generated, so it is impossible to obtain its state transition probability distribution. The key to solving this problem is to select a suitable placement method and placement position for the virtual network request, and the dimensions of the environmental state and action space are high. Inspired by the excellent performance of deep reinforcement learning methods in solving combinatorial optimization problems, it is considered to continue to use deep reinforcement learning methods to complete the solution of the model. In view of the characteristics of continuous states and high action dimensions such as the current virtual network request placement problem, traditional deep reinforcement learning algorithms such as Q learning will have problems such as difficulty in convergence and dimensionality explosion. Therefore, it is considered to use the more emerging model-free method action-discrimination algorithm in academia, which can solve the problems of large state space and high action dimensions.

[0346] The present invention proposes a new mode for solving the virtual network placement problem online based on action-discrimination in an edge-cloud collaborative system. This mode optimizes the placement model through offline training and automatically solves the placement strategy based on the optimization model online. Figure 2The online and offline collaborative solution model based on action-discrimination is demonstrated, which organically combines offline training and online decision-making. First, offline training is carried out with the optimization goal of the objective function as the learning direction. The optimal parameters of multiple agents are obtained according to the optimization goal, and the optimal parameters are passed to the online decision-making module. The online decision is based on the greedy search strategy, and the optimal model is selected from multiple models. The optimization solution is selected based on the optimization goal.

[0347] The action-discrimination algorithm actually refers to a reinforcement learning method based on value evaluation and strategy generation. The algorithm combines the strategy scheme and value function scheme of reinforcement learning, where action refers to the strategy function, which is used to generate actions, and discrimination refers to the value function, which is used to evaluate the performance of actions. This method can efficiently learn random strategies in continuous action space, that is, it solves the problem of high dimension. At the same time, the algorithm also has good convergence, which greatly shortens the training time. In the Monte Carlo policy gradient, the parameters are updated in the form of sampling, that is, the reward value at time t is used as an unbiased estimate of the action value function under the current strategy. However, there are still some problems in this method. First, the intelligent agent will take multiple actions in one training, and it is impossible to determine which step of the action has a positive effect on the final result, that is, the method has a high variance problem. Secondly, the time required for training is higher than the discussion, and its convergence speed is slow. The action-discrimination algorithm of the solution framework of the present invention handles the problem of high variance by introducing a discriminant evaluation mechanism, that is, introducing a strategy evaluation mechanism to calculate the value function of the action. The action module in the framework will generate a corresponding placement strategy based on random parameters and the state of the environment and the state of the virtual network request. The discriminant will then evaluate the reward obtained after executing the action and update the evaluation network, i.e., the value function, through time difference (Time Difference-Error, TD-error). After the discriminant completes the value function evaluation module and parameter update, the action module will generate a new placement strategy based on the output update of the discriminant module, i.e., the action module will select the action with higher reward.

[0348] like Figure 3 As shown in Figure 1, the action network and the discriminant network in the action-discriminant network in the solution framework are both composed of an encoder and a decoder, where both the encoder and the decoder are composed of a long short-term memory network, which can be used for sequence memory. First, the action network receives the virtual network request S arriving at the edge-cloud collaborative system. v ={v1,v2,...,v s} and converts it into a word vector and inputs it into the encoder of the action network. After the operation of the long short-term memory network in the encoder and the weighted processing, it is input into the decoder, and the decoder decodes the result using the same network structure, and finally outputs the placement strategy, which includes both type decision and position decision, that is, state S tNext action A t The discriminant network changes according to the state S after executing the action. t+1 The reward L processed by the Lagrangian method is used to evaluate the placement strategy output by the action network, reducing the correlation of parameters in the deep neural network, thereby avoiding the occurrence of overfitting problems to a large extent. In particular, the use of Lagrangian relaxation technology in the discriminant module can effectively prevent the reward from converging to a suboptimal value, so that the discriminant can complete the evaluation work more efficiently. It is specifically expressed as formula (23), which transforms the placement problem into an unconstrained problem. Among them, is the sum of the penalty values ​​generated by the placement strategy violating the computing constraints, bandwidth constraints, storage resource constraints, and link constraints, λ x are the Lagrange multipliers corresponding to different constraints.

[0349]

[0350] Where r(t) represents the reward function;

[0351] J(t) represents the penalty function;

[0352] H e Represents a set of edge cloud service nodes;

[0353] F e represents the computational cost of a virtual network request;

[0354] T e Indicates the latency cost of virtual network requests;

[0355] Indicates the weight of latency cost in edge cloud;

[0356] f x1 represents the decision variable;

[0357] H C Represents a collection of third-party cloud service nodes;

[0358] F C Indicates the payment cost of the virtual network request;

[0359] T C Indicates the latency cost of virtual network requests;

[0360] Indicates the weight of latency cost in the third-party cloud;

[0361] f x2 represents the third-party cloud decision variable;

[0362] λ x Indicates the penalty ratio for violating different constraints;

[0363] J x (t) represents the penalty function of different constraints;

[0364] In formula (22), Q π The value of (s(t), a(t)) is approximated by the estimated Q network in the discriminant network in the action-discriminant algorithm, which is formula (24), where θ Q is the weight value of the deep neural network, and the action a(t) in the discriminant Q network is obtained by the output of the action network.

[0365] Q π (s(t),a(t))≈Q π (s(t),a(t),θ Q ) (twenty four)

[0366] Among them, θ Q Represents the weight value of the deep neural network;

[0367] The discrimination will eventually generate a temporal difference value (TD-error), and the TD-error will be fed back to the action network. Its specific expression is shown in formula (25).

[0368] σ=r t+1 +ξQ_(s(t),a(t))-Q(s(t),a(t)) (25)

[0369] Among them, σ represents the time difference value;

[0370] r t+1 Indicates the return value;

[0371] ξ represents the weight factor;

[0372] Q_(s(t),a(t)) represents the Q value obtained when the last state is input into the discriminant network;

[0373] Q(s(t),a(t)) represents the Q value obtained by inputting the s state into the discriminant network;

[0374] The discriminant network uses the gradient descent method to complete its own training based on TD-error, and its loss function is Equation (26) and Equation (27).

[0375] σ'=L+r t+1 +ξQ_(s(t),a(t))-Q(s(t),a(t)) (26)

[0376] Loss(θ Q )=E[σ'(t) 2 ] (27)

[0377] Wherein, σ' represents the time difference value based on the Lagrange dual function;

[0378] L represents the Lagrangian logarithm value;

[0379] r t+1 represents the reward function;

[0380] ξ represents the weight factor;

[0381] Q_(s(t),a(t)) represents the Q value obtained when the last state is input into the discriminant network;

[0382] Q(s(t),a(t)) represents the Q value obtained by inputting the s state into the discriminant network

[0383] Loss(θ Q ) represents the loss function of the discriminant network;

[0384] σ'(t) 2 represents the square loss function;

[0385] The action network is fed with the input placement policy π(s,a,θ μ ), where θ μ is the weight of the action network, and its parameters are updated using the policy gradient method combined with the TD-error output by the discriminant network. Its parameter update is as follows: The softmax function is used.

[0386]

[0387] Among them, θ μ represents the weight of the action network;

[0388] represents the placement strategy of the action network;

[0389] σ represents the time difference value of the discriminant network;

[0390] After the action network parameters are trained, the approximate optimal strategy can be obtained, which is formula (29).

[0391] π*=π(s(t),a(t),θ μ ) (29)

[0392] Among them, π* represents the optimal strategy;

[0393] π(·,·,) represents the strategy;

[0394] s(t) represents the state;

[0395] a(t) represents action;

[0396] θ μ represents the weight of the action network;

[0397] The offline training algorithm for virtual network request placement based on the action-discrimination algorithm can be expressed as Table 1.

[0398] Table 1 Offline training algorithm for virtual network function placement based on action-discrimination algorithm

[0399]

[0400] The online decision of placing virtual network request based on action-discrimination algorithm can be expressed as Table 2.

[0401] Table 2 Online decision-making algorithm for virtual network function placement based on action-discrimination algorithm

[0402]

[0403] The new mode of solving the virtual network placement problem online based on action-discrimination in the edge-cloud collaborative system proposed by the present invention will be placed in the control system integrated with the virtual architecture manager. The control system will coordinate the entire edge-cloud collaborative system to complete the placement of complex business requests, such as Figures 4 to 12 As shown, the corresponding experimental results are shown.

[0404] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A virtual network function placement decision method based on learning optimization method in edge-cloud collaborative system, It is characterized in that The following steps are involved: S1, obtains data of various resources in the edge-cloud collaborative system; S2, optimizes placement decisions based on the acquired edge-cloud collaboration data; Step S1 includes: (1) in, It represents the queuing delay caused by placing a virtual network function i in the edge-cloud collaborative system; Indicates the service rate of the service node; Indicates the computing rate of virtual network requests; Indicates the virtual network requests currently queued by the service nodes in the edge collaboration system; Represents a set of edge cloud service nodes; (2) in, Indicates the delay caused by the virtual network request to obtain network bandwidth resources and storage resources at the service node; Indicates that the service node has used bandwidth resources; Indicates that the service node has used storage resources; Indicates the total bandwidth resources; Indicates the total storage resources of the node; (3) in, Represents the communication delay of transmitting virtual network requests to the third-party cloud; Indicates the transmission rate of requests to the third-party cloud; (4) (5) in, represents the total latency of placing a request in the edge cloud; Indicates the total latency of placing in a third-party cloud; (6) in, Indicates the payment cost of each service node in the third-party cloud; It represents the maintenance cost of the enabled edge cloud service nodes and the overhead of placing virtual network requests in the form of virtual machines on the service nodes; It represents the service cost when the edge cloud service node provides computing services; (7) in, Indicates that computing resources have been used in the service node; represents the total computing resources; The weight representing the utilization of computing resources; The weight representing the bandwidth resource utilization; The weight representing the storage resource utilization; (8) in, Indicates the payment cost of the virtual network request; Indicates the computing resources used by service nodes in the third-party cloud; Indicates the price of computing resources in the third-party cloud; Indicates the bandwidth resources used by service nodes in the third-party cloud; Indicates the price of bandwidth resources in the third-party cloud; Indicates the storage resources used by service nodes in the third-party cloud; Indicates the price of storage resources in the third-party cloud; (9) in, represents the cost of placing virtual network requests in the edge cloud in the form of virtual machines; Indicates the weight of latency cost in edge cloud; represents the decision variable; (10) in, It represents the cost of placing virtual network requests in a third-party cloud in the form of containers; Represents a collection of third-party cloud service nodes; Indicates the weight of latency cost in the third-party cloud; represents the third-party cloud decision variable; (11) Represents the total cost of the current edge-cloud collaborative system; Step S2 includes: (12) (13) (14) (15) (16) (17) in, Take the minimum value; Indicates that it is limited to; Indicates the computing resources owned by the current edge cloud service node; Indicates the remaining available computing resources of the current third-party cloud service node; Indicates the bandwidth resources currently owned by the edge cloud service node; Indicates the remaining available bandwidth resources of the current third-party cloud service node; Indicates the storage resources owned by the current edge cloud service node; Indicates the remaining available storage resources of the current third-party cloud service node; Indicates the link bandwidth between edge cloud service nodes; Indicates the link bandwidth between third-party cloud service nodes; (18) (19) in, represents the reward function; represents the penalty function; Indicates the penalty ratio for violating different constraints; Penalty functions representing different constraints; (20) in, Indicated in Cumulative returns of the moment; Indicates the immediate benefit of placing virtual network requests; represents the discount factor; Indicates the reward value when the number of iterations is 1; Indicates the return value when the number of iterations is 2; It means the number of iterations is The return value; (21) in, Indicates status Next action expectations; (22) in, Indicates the maximum value.

2. According to the virtual network function placement decision method based on the learning optimization method in the edge-cloud collaborative system of claim 1, It is characterized in that The solution is: (23) in, Indicates the penalty ratio for violating different constraints; Penalty functions representing different constraints; (24) in, Represents the weight value of the deep neural network; (25) in, Indicates the time difference value; Indicates the return value; represents the weight factor; Indicates the state obtained by inputting the last state into the discriminant network value; Indicates that The state is input into the discriminant network. value; (26) (27) in, represents the time difference value based on the Lagrange dual function; represents the Lagrangian logarithm; represents the weight factor; Represents the loss function of the discriminant network; represents the square loss function; (28) in, represents the weight of the action network; represents the placement strategy of the action network; (29) in, represents the optimal strategy; Representation strategy; Indicates status; Indicates action; represents the weight of the action network.