Multi-type service provision and resource allocation method and system for local edge cloud collaboration

Through the Alopex-DE optimization model and differential evolution algorithm, the problem of delay and energy consumption optimization of multi-type services in local edge cloud computing is solved, low-latency and low-energy consumption service supply is realized, and it is suitable for resource allocation of multi-type services, improving improve the performance of the local edge cloud network.

CN117729116BActive Publication Date: 2024-09-20JIANGXI UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311737834.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-18
Publication Date
2024-09-20
Estimated Expiration
2043-12-18

AI Technical Summary

Technical Problem

In the local edge cloud computing model, the problem of computing offloading of multiple types of services has not received sufficient attention, especially in terms of latency and energy consumption. It is difficult for existing technologies to effectively optimize the supply performance of multiple types of services, especially in scenarios such as smart medical care. , the types of services are diverse and have high requirements on latency and resources.

Method used

Using the Alopex-DE optimization model combined with the differential evolution algorithm to build a distributed system model, through iterative optimization of multi-type service deployment solutions, the resource allocation of services among local devices, edge servers and cloud servers is optimized to reduce latency and energy consumption. Achieve service provision with low latency and low energy consumption.

Benefits of technology

It achieves low-latency supply of multiple types of services in local edge cloud collaboration, optimizes resource allocation, and improves service supply performance. Compared with other algorithms, it has faster convergence speed and better resource utilization, and is suitable for high-dimensional Complex optimization problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117729116B
    Figure CN117729116B
Patent Text Reader

Abstract

The present invention relates to a method and system for multi-type service provision and resource allocation for local edge cloud collaboration, the method comprising: constructing a distributed system architecture for local edge cloud service provision, sensing and driving service targets according to the distributed system architecture, and obtaining multi-type service deployment solutions; constructing an Alopex-DE optimization model, iteratively optimizing the multi-type service deployment solutions based on the Alopex-DE optimization model, and obtaining the best service deployment solution. The present invention uses a fast resource allocation strategy to encourage local devices, nearby edge servers, and remote cloud centers to cooperate well with each other, and optimizes the performance of multi-type service provision while considering latency, resources, and energy consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of service provisioning and resource allocation, and in particular to a method and system for multi-type service provisioning and resource allocation in collaboration with a local edge cloud. Background Art

[0002] Cloud-edge-device collaboration has become a distributed architecture technology with great application prospects due to its diversified computing power advantages. One of the most important topics discussed in local edge cloud computing is service provision, which can be widely used in smart healthcare, smart cities, smart homes, smart transportation, the Internet of Things, virtual reality and other fields.

[0003] It is increasingly difficult to ignore that the latency and energy consumption of computing models in the collaboration of local edge cloud computing models have not been well explored in terms of service provisioning compared to single computing models (edge ​​computing or cloud computing). The multi-computing advantage of the local edge cloud computing model makes it an effective way to slow down the rapid growth of energy demand in cloud computing or edge computing, while meeting the growing demand for computing resources and accelerating the service provisioning process. In addition, many current works do not pay attention to the type of service, but in practical application areas, the types and requirements of services are diverse, which has an important impact on the allocation of computing resources. The problem of computing offloading under a single service type has been well solved. However, the problem of computing offloading for multi-type services requires more attention. Smart healthcare is a good example, especially for multi-type services, using the local edge cloud computing model to achieve efficient interconnection and information sharing between local medical devices, nearby edge servers and remote cloud centers. Under the collaboration of multiple resources such as computing, storage, network, and data, according to user needs, improve medical scenarios with strong demand for real-time return of high-quality computing results. For example, some services monitor the physical condition of patients and require timely feedback of abnormal situations. Since these services have privacy protection and are sensitive to delays, they should be provided through local devices first; services that analyze patient examination data have higher requirements for computer computing power and can be provided by nearby available edge servers or clouds. In this scenario, although edge servers can reduce the transmission delay caused by their proximity to local devices, and local devices can also store medical records, their computing resources and energy supply are still limited.

[0004] Therefore, it is necessary to propose a multi-type service provision and resource allocation method and system for local edge cloud collaboration. Through a fast resource allocation strategy, local devices, nearby edge servers and remote cloud centers are encouraged to cooperate well with each other, and the performance of multi-type service provision is optimized while considering latency, resources and energy consumption. Summary of the invention

[0005] The purpose of the present invention is to provide a method and system for multi-type service provision and resource allocation in local edge cloud collaboration, which, through a fast resource allocation strategy, encourages local devices, nearby edge servers and remote cloud centers to cooperate well with each other, and optimizes the performance of multi-type service provision while considering latency, resources and energy consumption.

[0006] To achieve the above object, the present invention provides the following solutions:

[0007] A multi-type service provisioning and resource allocation method for local edge cloud collaboration, including:

[0008] Construct a distributed system model for local edge cloud service provision, perceive and drive service targets based on the distributed system model, and obtain multi-type service deployment solutions;

[0009] An Alopex-DE optimization model is constructed, and the multi-type service deployment solutions are iteratively optimized based on the Alopex-DE optimization model to obtain the best service deployment solution.

[0010] Optionally, constructing the distributed system model for local edge cloud service provision includes: a bottom layer, a middle layer and a top layer, wherein the bottom layer includes a local device, the middle layer is set as an edge server, and the top layer is a cloud server;

[0011] Among them, services include: service memory size, CPU execution cycles required to calculate data under fixed storage values, maximum delay, and service type;

[0012] The service types include: computationally intensive, delay-sensitive, and privacy-required.

[0013] Optionally, the method for obtaining the multi-type service deployment solution is:

[0014]

[0015] Among them, x i Deploy solutions for multiple types of services, X K,C The value is 1 or 0. Indicates that the service will k Assigned to edge server LD L m , Indicates that the service will k Assigned to ES E n , X k,C =1 means service s k Assigned to the cloud.

[0016] Optionally, obtaining the optimal service deployment solution includes:

[0017] Step 1. Initialize the population:

[0018] in, are all populations under iterative counters, S 1 Deployment scheme population for multiple types of services, S 2 is the co-evolution population of the mutation operator and the crossover operator, G is the iteration counter, NP is the population size, F is the mutation operator of the differential evolution algorithm; CR is the crossover operator of the differential evolution algorithm, and x is the multi-type service deployment scheme;

[0019] Step 2. Objective function representation: Calculate the service under the iteration counter The objective function value is:

[0020]

[0021] Where K is the total number of services, k is the kth service, η 1 and η 2 are weight factors related to the significant impact of the delay and energy parameters of the node selected to complete the service, T k is the latency of the entire execution of the kth service, E k The energy consumed by the entire execution of the kth service;

[0022] Step 3. Population variation:

[0023] Among them, i is the i-th individual, r 1 ,r 2 is a randomly obtained individual that is not i, is the mutation operator corresponding to individual i, is the new individual obtained after mutation;

[0024] Step 4. Population crossover:

[0025] in, is the crossover operator corresponding to individual i; is the new individual obtained after crossover; j is the jth device, Whether the i-th service is executed on the j-th device;

[0026] Step 5. Population selection:

[0027] in, is the new individual obtained after crossover, is the parent population selected for the next generation, is the current parent population;

[0028] Step 6. Parameter adaptation based on Alopex strategy:

[0029]

[0030]

[0031]

[0032]

[0033]

[0034]

[0035]

[0036]

[0037]

[0038] if or but or if or but or k 1 , k 2 are randomly selected individuals;

[0039] Step 7. Population co-evolution based on Alopex strategy:

[0040]

[0041]

[0042]

[0043]

[0044]

[0045] in, is the individual in the next generation parent population obtained after using the Alopex strategy;

[0046] Step 8. Select the global optimal individual:

[0047] Among them, x * is the global optimal individual;

[0048] Step 9. If the maximum number of iterations is not completed, repeat steps 3-5 until the maximum number of iterations is completed;

[0049] Step 10: Obtain the optimal service deployment solution.

[0050] Optionally, the entire execution completion delay T of the kth service is obtained. k The method is:

[0051]

[0052] Among them, T k is the latency of the entire execution of the kth service, The delay of serving on LD, X k,m For the kth service S k Deployed in LD L m superior, is the transmission time required for the kth service from the mth LD to the nth ES, Send the kth service to the nth ES for calculation. is the time required for the mth LD to receive the result from the nth ES, LD-Cloud transmission time, The kth service is sent to the Cloud for computation, X k,C For the kth service S k Deployed on Cloud C, X k,n For the kth service s k Deployed on ES E n superior, is the time required for the mth LD to receive the result from the cloud.

[0053] Optionally, get the latency of the service remaining on the LD The method is:

[0054]

[0055] Among them, d k is the size of the kth service; u k The CPU execution cycles required to calculate the service; τ m is the processing capacity of the mth LD; f m is the CPU frequency of the mth LD;

[0056] Get the transmission time required for the kth service from the mth LD to the nth ES The method is;

[0057]

[0058]

[0059] Among them, d k The size of the k-th service in bits; To calculate the transmission rate between the mth LD and the nth ES, is the transmission power from the mth LD to the nth ES; h(p m,n ) is the distance between the mth LD and the nth ES, p m,n is the corresponding channel power gain; N 0 is the noise power spectral density; The uplink bandwidth allocated to the mth LD when communicating with ESs;

[0060] Get LD-Cloud transmission time The method is:

[0061]

[0062] in, is the uplink data transmission rate from the mth LD to the Cloud, p m,C is the distance between the mth LD and Cloud, The uplink bandwidth allocated to the mth LD when communicating with the Cloud;

[0063] Get the kth service and send it to the nth ES to perform calculations The method is:

[0064]

[0065] in, is the processing capacity of the nth ES; f n is the CPU frequency of the nth ES;

[0066] Get the time required for the mth LD to receive the result from the nth ES The method is:

[0067]

[0068] Among them, d k,res Calculate the data size of the processing result of the kth service for the nth ES; is the downlink data transmission rate from the nth ES to the mth LD; p n,m is the distance between the nth ES and the mth LD; The downlink bandwidth allocated to the mth LD when communicating with the nth LD;

[0069] Get the kth service and send it to the Cloud for calculation The method is:

[0070]

[0071] Among them, τ C is the processing power of Cloud, C is the CPU frequency of Cloud;

[0072] Get the time required for the mth LD to receive the result from the Cloud The method is:

[0073]

[0074] Among them, d k,res The data size of the processing result of the kth service completed by Cloud computing, is the downlink data transmission rate from Cloud to the mth LD, p C,m is the distance between Cloud and the mth LD, The downlink bandwidth allocated to the mth LD when communicating with the Cloud.

[0075] Optionally, obtain the energy E consumed by the entire execution of the kth service k The method is:

[0076]

[0077] in, To calculate the energy consumption of the kth service on the mth LD, is the energy consumption required for the mth LD to transmit data to the nth ES, The energy consumption required to deploy the kth service to the nth ES for computing, After the kth service is deployed on the nth ES and executed, the energy consumption required for the downlink transmission of the service result data back to the mth LD is, is the energy consumption required for the mth LD to transmit data to the Cloud, The energy consumption required to complete the calculation of the kth service deployed on the Cloud, After the kth service is deployed on the Cloud and executed, the energy consumption required for the downlink transmission of the service result data back to the mth LD.

[0078] Optionally, obtain the energy consumed by computing the kth service on the mth LD The method is:

[0079]

[0080] Among them, a mis the capacitance constant of the mth LD;

[0081] Get the energy consumption required by the mth LD to transmit data to the nth ES The method is:

[0082]

[0083] in, is the unit transmission power from the mth LD to the nth ES;

[0084] Get the energy consumption required to complete the calculation of the kth service deployed on the nth ES The method is:

[0085]

[0086] Among them, b n is the capacitance constant corresponding to the nth ES;

[0087] Get the energy consumption required for downlink transmission of the kth service deployed on the nth ES and returning the service result data to the mth LD The method is:

[0088]

[0089] in, is the unit transmission power from the nth ES to the mth LD;

[0090] Get the energy consumption required by the mth LD to transmit data to the Cloud The method is:

[0091]

[0092] in, is the unit transmission power from the mth LD to the Cloud;

[0093] Get the energy consumption required to complete the calculation of the kth service deployed on the Cloud The method is:

[0094]

[0095] Among them, g C is the capacitance constant corresponding to Cloud;

[0096] Get the energy consumption required for downlink transmission of the service result data back to the mth LD after the kth service is deployed on the Cloud and executed. The method is:

[0097]

[0098] in, Indicates the unit transmission power from Cloud to the mth LD.

[0099] To achieve the above objectives, the present invention also provides a local edge cloud collaborative multi-type service provision and resource allocation system, including:

[0100] A multi-type service perception module is used to build a distributed system architecture for local edge cloud service provision, perceive and drive service targets according to the distributed system architecture, and obtain multi-type service deployment solutions;

[0101] A service deployment iteration module, used to construct an Alopex-DE optimization model, and iteratively optimize the multi-type service deployment solutions based on the Alopex-DE optimization model to obtain the best service deployment solution;

[0102] The resource space allocation module is used to reserve space for the next service while ensuring the best service deployment solution as iterative optimization progresses;

[0103] Among them, the multi-type service perception module, the service deployment iteration module and the resource space allocation module are connected in sequence.

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

[0105] In the present invention, we propose a method and system for multi-type service provisioning and resource allocation in local edge cloud collaboration, which is used to provide low-latency multi-type services in local edge cloud collaboration.

[0106] This paper adopts the differential evolution algorithm based on Alopex to optimize the service provision performance of the local edge cloud network while considering latency, resources and energy consumption. First, a system model is established to analyze the latency and energy consumption under different computing modes to minimize the latency and energy consumption of service provision, and finally obtain the optimal resource allocation solution.

[0107] This paper proposes a hybrid differential evolution algorithm integrated with Alopex (Alopex-DE) to solve the proposed scenario and analyzes that our approach can achieve near-optimal performance compared with three other state-of-the-art algorithms. BRIEF DESCRIPTION OF THE DRAWINGS

[0108] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0109] Figure 1 A schematic diagram of a multi-type service provisioning and resource allocation method for local edge cloud collaboration according to an embodiment of the present invention;

[0110] Figure 2 A schematic diagram of a service provision scenario according to an embodiment of the present invention;

[0111] Figure 3 Schematic diagram of convergence of four algorithms according to an embodiment of the present invention;

[0112] Figure 4 Schematic diagram of service success rate under four algorithms of an embodiment of the present invention;

[0113] Figure 5 A schematic diagram of resource occupancy rates of LDs and ESs according to an embodiment of the present invention;

[0114] Figure 6 A schematic diagram of average resource occupancy rate of the service quantity increase according to an embodiment of the present invention;

[0115] Figure 7 A schematic diagram of average resource occupancy rate of the edge servers according to an embodiment of the present invention when the number of edge servers increases;

[0116] Figure 8 A schematic diagram of average resource occupancy rate of the increase in the number of local devices according to an embodiment of the present invention;

[0117] Fig. 9 A schematic diagram of the weighted sum of latency and energy consumption when the number of services increases from 1 to 100 according to an embodiment of the present invention;

[0118] Fig.10 A schematic diagram of the weighted sum of latency and energy consumption when the number of services increases from 110 to 200 in an embodiment of the present invention;

[0119] Fig.11 A weighted sum diagram of delay and energy consumption when the number of edge servers increases according to an embodiment of the present invention;

[0120] Fig.12 Schematic diagram of stability impact under four algorithms of an embodiment of the present invention. DETAILED DESCRIPTION

[0121] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0122] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0123] like Figure 1 As shown, the present invention discloses a method for solving multi-type service provision and resource allocation problems based on the Alopex-DE algorithm, comprising the following steps:

[0124] Design a distributed system architecture for local edge cloud service provisioning;

[0125] Propose the Alopex-DE algorithm for multi-type service provisioning and resource allocation;

[0126] An efficient service provisioning and resource allocation method with low latency and low energy consumption is obtained.

[0127] The present invention also discloses a multi-type service provision and resource allocation system for local edge cloud collaboration, which mainly includes three parts:

[0128] (1) Multi-type service sensor: Multi-type services are generated and sensed on the local device;

[0129] (2) Service deployment iterator: Calculates the delay and energy consumption of service deployment based on the parameters of the service and hardware devices and the Alopex-DE algorithm, and obtains the optimal service deployment method with low delay and low energy consumption through continuous optimization;

[0130] (3) Resource space allocator: Allocates effective resource space for services to be deployed. As the iteration evolves, it ensures maximum resource utilization while reserving space for the next service.

[0131] Figure 2 Given a scenario of service provision, taking the smart medical scenario as an example, the underlying architecture includes M local devices (LDs), represented by L = {L 1 , …, L m , …, L M}, LDs participate in the process of sensing and driving patients, and generate various types of services in this process, such as temperature sensors, image sensors, etc.; the middle layer is composed of edge servers (ESs), represented by E = {E1 ,…,E n , …, E N}, ESs are deployed at the base station; a cloud server represented by symbol C is deployed on the top layer, which has unlimited computing power and storage space, so it can provide powerful computing-intensive services.

[0132] Assuming that there are K services that need to be provided by the local edge cloud computing system in time slot t, represented by S, it can be expressed as S = {s 1 ,…,s k ,…,s K}.

[0133] Services k Using a set of attributes To characterize, where d k Indicates the service memory size in bits, u k is the CPU execution cycle required to calculate 1 bit of data, is the maximum delay allowed, service type TY k They are divided into three categories: computationally intensive, delay-sensitive, or privacy-required. Among them, delay-sensitive services can be processed on ESs or LDs, while computationally intensive and privacy-required services need to be processed on the cloud and LDs, respectively.

[0134] Multi-type service provisioning is to allocate K services to M LDs, N ESs and a cloud, and find the best multi-type service provisioning solution with low latency and low energy consumption through continuous optimization. Indicates that the service will k Deployed in LD L m superior, Indicates that the service will k Deployed on ES E n Up, X k,C =1 means service s k Deployed on the cloud. Vector x i Represents a multi-type service provisioning scheme for local edge cloud computing:

[0135]

[0136] Among them, x i Deploy solutions for multiple types of services, X K,C The value is 1 or 0. Indicates that service sk is assigned to edge server LD L m , Indicates that service sk is assigned to ES E n , while X k,C =1 means service sk Assigned to the cloud.

[0137] When multiple services are generated and perceived on LDs, LDs consider whether to offload services and which services to offload to ESs or cloud servers. The memory space of LD, ES, and cloud needs to meet twice the sum of the input data size of the service deployed on the device and the result size after the corresponding service is executed.

[0138] The objective function of the method for obtaining efficient service provision and resource allocation with low latency and low energy consumption described in the present invention is:

[0139]

[0140] Where K is the total number of services, k is the kth service, η 1 and η 2 are weight factors related to the significant impact of the delay and energy parameters of the node selected to complete the service, T k is the latency of the entire execution of the kth service, E k The energy consumed by the entire execution of the kth service;

[0141] T k The delay for the entire execution of the kth service is calculated as follows;

[0142]

[0143] Among them, T k is the latency of the entire execution of the kth service, The delay of serving on LD, X k,m For the kth service s k Deployed in LD L m superior, is the transmission time required for the kth service from the mth LD to the nth ES, Send the kth service to the nth ES for calculation. is the time required for the mth LD to receive the result from the nth ES, LD-Cloud transmission time, The kth service is sent to the Cloud for computation, X k,C For the kth service s k Deployed on Cloud C, X k,n For the kth service S k Deployed on ES E n superior, is the time required for the mth LD to receive the result from the cloud.

[0144] Consider the case where the kth service needs to be delivered to the nth ES. First, the mth LD needs to transfer a memory size of d to the nth ES. k The service data will consume a certain amount of time and energy. The LD-ES transmission time required for the kth service from the mth LD to the nth ES is: where d k The size of the k-th service in bits; To calculate the transmission rate between the mth LD and the nth ES: in, is the transmission power from the mth LD to the nth ES; h(p m,n ) is the distance between the mth LD and the nth ES, p m,n is the corresponding channel power gain; N 0 is the noise power spectral density; The uplink bandwidth allocated to the mth LD when communicating with ESs;

[0145] Similar to the above LD-ES transmission time, The transmission time for LD-Cloud can be defined as: in is the uplink data transmission rate from the mth LD to the Cloud; p m,C is the distance between the mth LD and Cloud; The uplink bandwidth allocated to the mth LD when communicating with the Cloud; Send the k-th service to the n-th ES to perform calculations: where τ n is the processing capacity of the nth ES; f n is the CPU frequency of the nth ES;

[0146] After the nth ES completes the calculation of the kth service, the ES needs to return the execution result to the mth LD. The time required for the mth LD to receive the result from the nth ES: where d k,res Calculate the data size of the processing result of the kth service for the nth ES; is the downlink data transmission rate from the nth ES to the mth LD; p n,m is the distance between the nth ES and the mth LD; The downlink bandwidth allocated to the mth LD when communicating with the nth LD; Send the kth service to the Cloud for computation: where τ C is the processing power of Cloud; Cis the CPU frequency of Cloud;

[0147] After completing the computation of the kth service on the Cloud, the Cloud needs to return the execution result to the mth LD. Time required to receive results from Cloud for the mth LD: where d k,res The data size of the processing result of the kth service completed by Cloud calculation; is the downlink data transmission rate from Cloud to the mth LD; p C,m is the distance between Cloud and the mth LD; The downlink bandwidth allocated to the mth LD when communicating with the Cloud; X k,m =1 indicates the kth service s k Deployed in LD L m Up,X k,n =1 indicates the kth service s k Deployed on ESE n Up,X k,C =1 indicates the kth service s k Deployed on Cloud C k The energy consumed by the entire execution of the kth service.

[0148]

[0149] in: To calculate the energy consumption of the kth service on the mth LD: where a m is the capacitance constant of the mth LD; The energy consumption required for the mth LD to transmit data to the nth ES is: in is the unit transmission power from the mth LD to the nth ES, The energy consumption required to complete the calculation for the kth service deployed on the nth ES: where b n is the capacitance constant corresponding to the nth ES; After the kth service is deployed on the nth ES and completed, the energy consumption required for downlink transmission of the service result data returned to the mth LD is: in represents the unit transmission power from the nth ES to the mth LD; The energy consumption required for the mth LD to transmit data to the Cloud is: in is the unit transmission power from the mth LD to the Cloud The energy consumption required to complete the calculation for the kth service deployed on the Cloud: where g C is the capacitance constant corresponding to Cloud; After the kth service is deployed on the Cloud and executed, the energy consumption required for the downlink transmission of the service result data back to the mth LD is: in represents the unit transmission power from Cloud to the mth LD;

[0150] Aiming at the problem of multi-type service provision and resource allocation of local edge cloud collaboration, the present invention adopts the differential evolution algorithm based on Alopex to optimize the multi-type service provision performance of the local edge cloud network while considering delay, resources and energy consumption. First, a system model is established to analyze the delay and energy consumption under different computing modes to minimize the delay and energy consumption of service provision, and finally obtain the optimal resource allocation decision. A hybrid differential evolution algorithm integrated with Alopex (Alopex-DE) is proposed to solve the problem. The Alopex-DE algorithm mainly includes the following steps:

[0151] Alopex-DE algorithm: Initialize the population: Let G is the iteration counter; NP is the population size; F is the mutation operator population of the differential evolution algorithm; CR is the mutation operator population of the differential evolution algorithm, are all populations under iterative counters, s 1 Deployment scheme population for multiple types of services, s 2 is the co-evolution population of the mutation operator and the crossover operator, G is the iteration counter, NP is the population size, F is the mutation operator of the differential evolution algorithm; CR is the crossover operator of the differential evolution algorithm, and x is the multi-type service deployment scheme;

[0152] Objective function characterization: calculation Objective function value

[0153]

[0154] Where K is the total number of services, k is the kth service, η 1 and η 2 are weight factors related to the significant impact of the delay and energy parameters of the node selected to complete the service, T k is the latency of the entire execution of the kth service, E k The energy consumed by the entire execution of the kth service;

[0155] Population mutation: using DE / rand / 1 operator

[0156]

[0157] Among them: i is the i-th individual, r 1 , r 2 is a randomly obtained individual that is not i, is the mutation operator corresponding to individual i; is the new individual obtained after mutation;

[0158] Population crossover:

[0159]

[0160] Among them: Among them, is the crossover operator corresponding to individual i; is the new individual obtained after crossover; j is the jth device, Whether the i-th service is executed on the j-th device;

[0161] Population selection:

[0162]

[0163] in, is the new individual obtained after crossover, is the parent population selected for the next generation, is the current parent population;

[0164] Parameter adaptation based on Alopex strategy:

[0165]

[0166]

[0167]

[0168]

[0169]

[0170]

[0171]

[0172]

[0173]

[0174] if or but or if or but or

[0175] Where: k 1 , k 2 are randomly selected individuals;

[0176] Population co-evolution based on Alopex strategy:

[0177]

[0178]

[0179]

[0180]

[0181]

[0182] in, is the individual in the next generation parent population obtained after using the Alopex strategy;

[0183] Select the global optimal individual:

[0184]

[0185] Where: x * is the global optimal individual.

[0186] If the maximum number of iterations has not been completed, repeat steps (3) to (5) until the maximum number of iterations has been completed;

[0187] Get the best deployment solution for multiple types of services.

[0188] Find the best multi-type service provisioning solution x through Alopex-DE algorithm * Finally, the optimal resource allocation scheme Λ is calculated based on the memory resource size allocated to each facility being twice the sum of the data sizes of all services deployed on the facility. * .

[0189] The process of service deployment and resource allocation using the method of the present invention is as follows:

[0190] Service supply stage: local devices, such as temperature sensors and image sensors, participate in the patient's perception and driving process, and generate various types of services in this process;

[0191] Service deployment phase: Based on the Alopex-DE algorithm, iterative optimization is performed on the basis of the objective function and multi-party constraints to find the best multi-type service deployment method with low latency and low energy consumption;

[0192] Resource allocation stage: As the iteration evolves, while maximizing resource utilization, space is reserved for the next service.

[0193] Repeat steps 2) and 3) until the maximum number of iterations is reached to find the best low-latency and low-energy service deployment and resource allocation solution.

[0194] The data results of the method of the present invention (Alopex-DE) and conventional methods (differential evolution algorithm DE, genetic algorithm GA, particle swarm algorithm TLS-PSO based on three learning strategies) were compared. Figure 3 It can be seen that the method of the present invention can obtain the optimal low-latency, low-energy consumption, multi-type service deployment solution and resource allocation method in the local edge cloud environment, and compared with the other three algorithms, the method of the present invention converges faster. Figure 4 It can be seen that, as the number of services provided in the same time slot increases, the effect of the method of the present invention is almost unaffected, and compared with the other three methods, it is more suitable for solving high-dimensional complex optimization problems. Figure 5 It can be seen that the method of the present invention performs well in maintaining the resource utilization of LDs and ESs, reserving space for tasks that arrive later and avoiding the whole system from being blocked due to congestion. Figure 6 It can be seen that under different numbers of services, the average resource occupancy rate obtained by Alopex-DE is lower than that of the other three algorithms, which means that our algorithm can better solve the scenario we proposed and achieve better resource utilization. Figure 7 It can be seen that in order to ensure lower energy consumption and delay consumption, the method of the present invention can deploy services in a more dispersed manner, thereby resulting in a lower average resource occupancy rate. Figure 8 It can be seen that, in more extreme cases, the method of the present invention can still search for the optimal solution. Fig. 9 and Fig.10 It is verified that the effect of the method of the present invention is almost unaffected as the number of services provided in the same time slot increases, and compared with the other three methods, it is more suitable for solving high-dimensional complex optimization problems. Fig.11 It can be seen that the increase in the number of ESs has no regular effect on the weighted sum. However, from this figure, we can still see that the method of the present invention can solve our problem well. Fig.12 It shows that Alopex-DE has higher convergence accuracy and better algorithm stability.

[0195] The local edge cloud collaborative multi-type service provision and resource allocation method and system provided by the present invention can also be applied to the fields of Internet of Things, smart cities, intelligent transportation, virtual reality, etc.

[0196] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. A multi-type service provision and resource allocation method for local edge cloud collaboration, characterized in that: include: Construct a distributed system model for local edge cloud service provision, perceive and drive service targets based on the distributed system model, and obtain multi-type service deployment solutions; Construct an Alopex-DE optimization model, and iteratively optimize the multi-type service deployment solutions based on the Alopex-DE optimization model to obtain the best service deployment solution: Step 1. Initialize the population: in, All are populations under iteration counters, s1 is the population of multi-type service deployment solutions, s2 is the co-evolution population of mutation operator and crossover operator, G is the iteration counter, NP is the population size, F is the mutation operator of the differential evolution algorithm; CR is the crossover operator of the differential evolution algorithm, and x is the multi-type service deployment solution; Step 2. Objective function representation: Calculate the service under the iteration counter The objective function value is: Where K is the total number of services, k is the kth service, η1 and η2 are weight factors related to the significant impact of the delay and energy parameters of the node selected to complete the service, T k is the latency of the entire execution of the kth service, E k The energy consumed by the entire execution of the kth service; Step 3. Population variation: Among them, i is the i-th individual, r1 and r2 are randomly obtained individuals that are not i. is the mutation operator corresponding to individual i, is the new individual obtained after mutation; Step 4. Population crossover: in, is the crossover operator corresponding to individual i; is the new individual obtained after crossover; j is the jth device, Whether the i-th service is executed on the j-th device; Step 5. Population selection: in, is the new individual obtained after crossover, is the parent population selected for the next generation, is the current parent population; Step 6. Parameter adaptation based on Alopex strategy: if or but or if or but or k1 and k2 are randomly selected individuals; Step 7. Population co-evolution based on Alopex strategy: in, is the individual in the next generation parent population obtained after using the Alopex strategy; Step 8. Select the global optimal individual: in, is the global optimal individual; Step 9. If the maximum number of iterations is not completed, repeat steps 3-5 until the maximum number of iterations is completed; Step 10: Obtain the optimal service deployment solution.

2. The method for multi-type service provision and resource allocation for local edge cloud collaboration according to claim 1, characterized in that: Constructing the distributed system model for local edge cloud service provision includes: a bottom layer, a middle layer and a top layer, wherein the bottom layer includes local devices, the middle layer is set as an edge server, and the top layer is a cloud server; Among them, services include: service memory size, CPU execution cycles required to calculate data under fixed storage values, maximum delay, and service type; The service types include: computationally intensive, delay-sensitive, and privacy-required.

3. The method for multi-type service provision and resource allocation for local edge cloud collaboration according to claim 1, characterized in that: The method for obtaining the multi-type service deployment solution is: Among them, x i Deploy solutions for multiple types of services, X K,C The value is 1 or 0. Indicates that the service will k Assigned to edge server LD L m , Indicates that the service will k Assigned to ES E n , X k,C =1 means service s k Assigned to the cloud.

4. The method for multi-type service provision and resource allocation for local edge cloud collaboration according to claim 1, characterized in that: Get the delay T of the entire execution completion of the kth service k The method is: Among them, T k is the latency of the entire execution of the kth service, The delay of serving on LD, X k,m For the kth service S k Deployed in LD L m superior, is the transmission time required for the kth service from the mth LD to the nth ES, Send the kth service to the nth ES for calculation. is the time required for the mth LD to receive the result from the nth ES, The transmission time of LD-Cloud is The kth service is sent to the Cloud for computation, X k,C For the kth service s k Deployed on Cloud C, X k,n For the kth service S k Deployed on ES E n superior, is the time required for the mth LD to receive the result from the cloud.

5. The method for multi-type service provision and resource allocation for local edge cloud collaboration according to claim 4, characterized in that: Get the latency of the service to be executed on LD The method is: Among them, d k is the size of the kth service; u k The CPU execution cycles required to calculate the service; τ m is the processing capacity of the mth LD; f m is the CPU frequency of the mth LD; Get the transmission time required for the kth service from the mth LD to the nth ES The method is; Among them, d k The size of the k-th service in bits; To calculate the transmission rate between the mth LD and the nth ES, is the transmission power from the mth LD to the nth ES; h(p m,n ) is the distance between the mth LD and the nth ES, p m,n is the corresponding channel power gain; N0 is the noise power spectrum density; The uplink bandwidth allocated to the mth LD when communicating with ESs; Get LD-Cloud transmission time The method is: in, is the uplink data transmission rate from the mth LD to the Cloud, p m,C is the distance between the mth LD and Cloud, The uplink bandwidth allocated to the mth LD when communicating with the Cloud; Get the kth service and send it to the nth ES to perform calculations The method is: in, is the processing capacity of the nth ES; f n is the CPU frequency of the nth ES; Get the time required for the mth LD to receive the result from the nth ES The method is: Among them, d k,res Calculate the data size of the processing result of the kth service for the nth ES; is the downlink data transmission rate from the nth ES to the mth LD; p n,m is the distance between the nth ES and the mth LD; The downlink bandwidth allocated to the mth LD when communicating with the nth LD; Get the kth service and send it to the Cloud for calculation The method is: Among them, τ C is the processing power of Cloud, C is the CPU frequency of Cloud; Get the time required for the mth LD to receive the result from the Cloud The method is: Among them, d k,res The data size of the processing result of the kth service completed by Cloud computing, is the downlink data transmission rate from Cloud to the mth LD, p C,m is the distance between Cloud and the mth LD, The downlink bandwidth allocated to the mth LD when communicating with the Cloud.

6. The method for multi-type service provision and resource allocation for local edge cloud collaboration according to claim 1, characterized in that: Get the energy E consumed by the entire execution of the kth service k The method is: in, To calculate the energy consumption of the kth service on the mth LD, is the energy consumption required for the mth LD to transmit data to the nth ES, The energy consumption required to deploy the kth service to the nth ES for computing, After the kth service is deployed on the nth ES and executed, the energy consumption required for the downlink transmission of the service result data back to the mth LD is, is the energy consumption required for the mth LD to transmit data to the Cloud, The energy consumption required to complete the calculation of the kth service deployed on the Cloud, After the kth service is deployed on the Cloud and executed, the energy consumption required for the downlink transmission of the service result data back to the mth LD.

7. The method for multi-type service provision and resource allocation for local edge cloud collaboration according to claim 6, characterized in that: Get the energy consumption of computing the kth service on the mth LD The method is: Among them, a m is the capacitance constant of the mth LD; Get the energy consumption required by the mth LD to transmit data to the nth ES The method is: in, is the unit transmission power from the mth LD to the nth ES; Get the energy consumption required to complete the calculation of the kth service deployed on the nth ES The method is: Among them, b n is the capacitance constant corresponding to the nth ES; Get the energy consumption required for downlink transmission of the kth service deployed on the nth ES and returning the service result data to the mth LD The method is: in, is the unit transmission power from the nth ES to the mth LD; Get the energy consumption required by the mth LD to transmit data to the Cloud The method is: in, is the unit transmission power from the mth LD to the Cloud; Get the energy consumption required to complete the calculation of the kth service deployed on the Cloud The method is: Among them, g C is the capacitance constant corresponding to Cloud; Get the energy consumption required for downlink transmission of the service result data back to the mth LD after the kth service is deployed on the Cloud and executed. The method is: in, Indicates the unit transmission power from Cloud to the mth LD.

8. A multi-type service provisioning and resource allocation system for local edge cloud collaboration, characterized in that: include: A multi-type service perception module is used to build a distributed system architecture for local edge cloud service provision, perceive and drive service targets according to the distributed system architecture, and obtain multi-type service deployment solutions; The service deployment iteration module is used to build an Alopex-DE optimization model, and iteratively optimize the multi-type service deployment solutions based on the Alopex-DE optimization model to obtain the best service deployment solution: Step 1. Initialize the population: in, All are populations under iteration counters, s1 is the population of multi-type service deployment solutions, s2 is the co-evolution population of mutation operator and crossover operator, G is the iteration counter, NP is the population size, F is the mutation operator of the differential evolution algorithm; CR is the crossover operator of the differential evolution algorithm, and x is the multi-type service deployment solution; Step 2. Objective function representation: Calculate the service under the iteration counter The objective function value is: Where K is the total number of services, k is the kth service, η1 and η2 are weight factors related to the significant impact of the delay and energy parameters of the node selected to complete the service, T k is the latency of the entire execution of the kth service, E k The energy consumed by the entire execution of the kth service; Step 3. Population variation: Among them, i is the i-th individual, r1 and r2 are randomly obtained individuals that are not i. is the mutation operator corresponding to individual i, is the new individual obtained after mutation; Step 4. Population crossover: in, is the crossover operator corresponding to individual i; is the new individual obtained after crossover; j is the jth device, Whether the i-th service is executed on the j-th device; Step 5. Population selection: in, is the new individual obtained after crossover, is the parent population selected for the next generation, is the current parent population; Step 6. Parameter adaptation based on Alopex strategy: if or but or if or but or k1 and k2 are randomly selected individuals; Step 7. Population co-evolution based on Alopex strategy: in, is the individual in the next generation parent population obtained after using the Alopex strategy; Step 8. Select the global optimal individual: in, is the global optimal individual; Step 9. If the maximum number of iterations is not completed, repeat steps 3-5 until the maximum number of iterations is completed; Step 10. Obtain the optimal service deployment solution; The resource space allocation module is used to reserve space for the next service while ensuring the best service deployment solution as iterative optimization progresses; Among them, the multi-type service perception module, the service deployment iteration module and the resource space allocation module are connected in sequence.