Unmanned aerial vehicle-assisted task offloading and resource allocation method based on service caching

By adopting service caching and optimization methods in the mobile edge computing system, combining drone caching and ground terminal equipment caching, task offloading and resource allocation are optimized, and the problems of drone-assisted task offloading and resource allocation delay and energy consumption are solved , achieving lower task completion delay and energy consumption.

WO2024216841A1PCT designated stage expired Publication Date: 2024-10-24NANJING UNIV OF POSTS & TELECOMM

Patent Information

Application Number
PCT/CN2023/120756
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-21
Filing Date
2023-09-22
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

In mobile edge computing systems, due to shadow fading and multipath effects, ground communication signals are seriously attenuated, resulting in prolonged UAV-assisted task offloading and resource allocation delays. Moreover, UAV energy is limited, and existing technologies are difficult to effectively optimize task completion. Latency and energy consumption.

Method used

A UAV-assisted task offloading and resource allocation method based on service cache is adopted, and three sub-problems of task offloading decision-making, UAV resource allocation and UAV trajectory are solved through slack variables, Lagrange multiplier method and Taylor expansion method. Decoupling, optimizing task offloading decisions and resource allocation, using the pre-built minimization total delay optimization problem, combined with drone caching and ground terminal equipment caching solutions, to optimize task offloading and resource allocation.

Benefits of technology

It effectively reduces the total delay and energy consumption of ground terminal equipment request tasks, improves the hit rate of drone cache services, makes full use of the mobility of drones, optimizes computing resource allocation, and significantly reduces task completion delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023120756_24102024_PF_FP_ABST
    Figure CN2023120756_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed by the present invention are an unmanned aerial vehicle-assisted task offloading and resource allocation method based on service caching, which is used for a multi-unmanned aerial vehicle-assisted MEC system. Service caching and computing offloading are considered at the same time, wherein an unmanned aerial vehicle may cache some programs to execute computing tasks offloaded by a ground terminal device, and meanwhile, a local terminal device may cache a small number of programs to execute some computing tasks. The total time delay optimization problem of minimizing all ground terminal device request tasks is established under the constraint conditions that the tasks of all devices and an unmanned aerial vehicle achieve delay requirements and the energy of the unmanned aerial vehicle is limited. Said problem is a mixed integer nonlinear programming problem, which is decoupled into three subproblems: task offloading decision, unmanned aerial vehicle resource allocation, and unmanned aerial vehicle trajectory. Each of the subproblems is iteratively solved by using a slack variable, a Lagrange multiplier, and Taylor expansion, thereby attaining the optimal solutions for task offloading decision, unmanned aerial vehicle resource allocation, and unmanned aerial vehicle trajectory.
Need to check novelty before this filing date? Find Prior Art

Description

A UAV-assisted task offloading and resource allocation method based on service cache Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method for unmanned aerial vehicle (UAV)-assisted task offloading and resource allocation based on service cache. Background Art

[0002] With the advancement of information technology, numerous intelligent applications are emerging, such as facial recognition, interactive gaming, and virtual reality. These applications are often computationally intensive and latency-sensitive. The emergence of Mobile Edge Computing (MEC) facilitates the implementation of these computing tasks. In practical applications, ground-based communications suffer from severe signal attenuation due to shadow fading and multipath effects. Therefore, MEC systems assisted by Unmanned Aerial Vehicles (UAVs) are gaining attention for their flexible mobility and low cost. In mobile edge computing systems, edge service caching involves pre-storing the programs required to execute computing tasks on MEC servers. When computing tasks are offloaded to MEC servers, the servers must have the corresponding service programs to complete the tasks. Service caching effectively reduces the real-time latency and communication costs associated with acquiring and initializing service applications.

[0003] Summary of the Invention

[0004] The purpose of the present invention is to propose a drone-assisted task offloading and resource allocation method based on service cache. This method targets the interest competition relationship among users in the collaborative computing process. The drone can cache some programs to execute computing tasks offloaded by ground terminal devices, and at the same time, the local ground terminal devices can cache a small amount of programs to execute some computing tasks.

[0005] To achieve the above functions, the present invention designs a service-caching-based UAV-assisted task offloading and resource allocation method. This method establishes an optimization problem for minimizing the total latency of all ground terminal device requests, subject to the task completion latency requirements of all devices and UAVs and the constraints of limited UAV energy. This problem, a mixed-integer nonlinear programming problem, is decoupled into three subproblems: task offloading decision-making, UAV resource allocation, and UAV trajectory. These subproblems are iteratively solved using slack variables, the Lagrange multiplier method, and the Taylor expansion method, respectively, to obtain the optimal solutions for task offloading decision-making, UAV resource allocation, and UAV trajectory.

[0006] Technical solution: To solve the above technical problems, the technical solution adopted by the present invention is:

[0007] In a first aspect, the present invention provides a method for unmanned aerial vehicle (UAV)-assisted task offloading and resource allocation based on service cache, comprising:

[0008] S1. Obtain local popularity based on the historical service needs of the ground terminal device. The drone selects the required service for caching based on the local popularity, and obtains the drone caching solution.

[0009] S2. The ground terminal device caches services in a random manner to obtain a ground terminal device cache solution;

[0010] S3. In response to a task request from a ground terminal device, based on the UAV caching scheme and the ground terminal device caching scheme, jointly optimize the task offloading decision, UAV resource allocation, and UAV trajectory using a pre-built optimization problem for minimizing the total latency of all ground terminal device request tasks;

[0011] S4. According to the optimized task offloading decision, the task requested by the ground terminal device is calculated on the local terminal device, or the task is offloaded to the corresponding UAV for calculation; the UAV flies according to the optimized UAV trajectory, and resources are allocated to the ground terminal device according to the optimized UAV resource allocation.

[0012] In some embodiments, step S4 includes:

[0013] S41. The task requested by the ground terminal device is calculated on the local terminal device;

[0014] S411. If the ground terminal device has cached the required service, directly perform the task calculation;

[0015] S412. If the ground terminal device does not cache the required service but the drone caches the service requested by the ground terminal device, then based on the optimized drone trajectory and resource allocation, the corresponding service program is downloaded from the drone to the ground terminal device, and the computing service is performed directly on the ground terminal device;

[0016] S413. If the ground terminal device does not cache the required service and the drone does not cache the service requested by the ground terminal device, the service program is downloaded from the remote end to the drone through the base station using the wireless backhaul link. Based on the optimized drone trajectory and resource allocation, the corresponding service program is downloaded from the drone to the ground terminal device, and the computing service is directly performed on the ground terminal device.

[0017] In some other embodiments, step S4 includes:

[0018] S42. The ground terminal device offloads the task to the corresponding UAV for calculation;

[0019] S421. The drone caches the service requested by the ground terminal device, and the optimized drone trajectory and resource allocation are calculated directly on the drone;

[0020] S422. If the service requested by the ground terminal device is not cached on the drone, the service program is downloaded from the remote end to the drone via the base station using the wireless backhaul link, and calculations are performed on the drone based on the optimized drone trajectory and resource allocation.

[0021] In some embodiments, step S1 includes:

[0022] S11. The access method between the ground terminal equipment and the UAV is the closest distance access. When the ground terminal equipment is within the coverage range of the UAV, the nearest UAV will provide services. Suppose M k The number of ground terminal devices serving UAV k;

[0023] S12. The probability that ground terminal device m requests service s is p ms , then the request probability matrix P of all ground terminal devices is:

[0024] S13. Based on the request probability p of the ground terminal device m for service s ms , get local popularity

[0025] S14. Since there is no coupling relationship between the content deployments of drones, in order to improve the hit rate of drone cache services, the service programs with higher local popularity are cached in the drones.

[0026] In some embodiments, in step S3, minimizing the total delay optimization problem P1 of all ground terminal device request tasks includes:

[0027] Among them, C1 is the delay limit, T m is the total delay of completing the task requested by the ground terminal device m, K = {1, 2, ..., K} and M = {1, 2, ..., M} are the sets of UAVs and ground terminal devices respectively, B = (b m,k ∈{0,1}:m∈M,k∈K) is the set sum of whether the ground terminal device m is connected to the drone k, F=(f k,m :m∈M,k∈K) is the sum of the computing capabilities of UAV k to ground terminal device m, C=(c m,k ∈{0,1}:m∈M,k∈K) represents the set sum of whether the computing task of the ground terminal device m is offloaded to the UAV, Q=(Q k :k∈K) is the horizontal position coordinate of UAV k; is the maximum task delay of ground terminal device m, represents any mathematical symbol; C2 is the user's energy consumption limit, E m is the total energy consumption of ground terminal equipment m, is the maximum energy consumption of the ground terminal device m; C3 is the energy consumption limit of the UAV, E k is the total energy consumption of UAV k, is the maximum energy consumption of the UAV; C4 is the resource limit allocated to the UAV, f k,m is the computing power of UAV k to ground terminal device m, is the maximum computing capacity of UAV k; C5 is the causal constraint, that is, the ground terminal device can choose to offload the calculation only after it is connected to the UAV, c m,k ∈{0,1} indicates whether the computing task of the ground terminal device m is offloaded to the UAV, 1 means offloading, 0 means not offloading; b m,k ∈{0,1} is whether the ground terminal device m is connected to the drone k, 1 means connected, 0 means not connected; C6 stipulates that a ground terminal device can only connect to one drone; C7 is the maximum number of ground terminal devices that can be connected to the drone, is the maximum number of ground terminal devices connected; C8 is the maximum distance limit between drones, and the horizontal position coordinate of drone k is Q k =(x k ,y k ), Q l is the horizontal position coordinate of UAV l, d m is the maximum distance between drones; C9 stipulates that ground terminal equipment can only access drones when it is within the maximum range of the drone. k,m is the distance between the ground terminal device m and the drone k, The maximum communication range of the UAV; C10 indicates c m,k ,a k,s ,b m,k ,e m,s is a binary variable, a k,s ∈{0,1} indicates whether drone k caches service s, 1 means cache, 0 means no cache, e m,s ∈{0,1} indicates whether the ground terminal device m caches the service s, 1 indicates caching, and 0 indicates no caching.

[0028] In some embodiments, a method for constructing an optimization problem for minimizing the total latency of all ground terminal device request tasks includes:

[0029] Due to the coverage problem of the base station, the ground terminal devices in the area cannot communicate directly with the base station BS; the base station is connected to the cloud center through a wired optical fiber link, and the drone communicates with the base station through a wireless backhaul link; assuming that the front-end and backhaul links operate on different frequency bands, the wireless backhaul link capacity of each drone to the base station BS is R b For the front-end link, the ground terminal equipment within the coverage of each drone adopts orthogonal frequency division multiple access, and the bandwidth is evenly divided among multiple ground terminal equipment. Assuming that the total uplink / downlink communication bandwidth is B, the two-way wireless communication spectrum bandwidth from drone k to ground terminal equipment is B / |M k |, where M k The total number of users served by drone k;

[0030] The horizontal position coordinate of UAV k is Q k =(x k ,y k ), the height is fixed, and the horizontal position coordinate of the ground terminal equipment m is Q m =(x m ,y m ), then the distance between the ground terminal device m and the drone k is The channel gain between the ground terminal device m and the drone k is h0 is the channel gain at the reference distance d0=1, and H is the flight altitude of each unmanned aerial vehicle. Assuming that the two-way channel gain between the ground terminal device m and the drone k is the same, the uplink and downlink rates between the ground terminal device m and the drone k are

[0031] Among them, p m is the transmission power of ground terminal equipment m, p k is the transmission power allocated by UAV k to ground terminal device m, and N0 is the noise power of the receiver;

[0032] The local calculation time is The energy consumption of local computing by ground terminal equipment is Where κ is a coefficient that depends on the chip structure, f m is the computing power of the ground terminal equipment, C m The number of CPU cycles required for computing tasks on ground terminal equipment;

[0033] The ground terminal device chooses to offload the task to the drone for calculation. The time for uploading the task to the drone is The energy consumption of task upload is The task calculation time is The energy consumption of the task calculation is Among them, lm The size of the input data of the ground terminal device m, f k,m is the computing power of UAV k for ground terminal device m. If the maximum computing power of UAV k is but

[0034] When local computing is selected but the ground terminal device does not cache the corresponding service, the time it takes for the ground terminal device to download the corresponding service from the drone is Among them, c s is the size of the service s program; the energy consumption of UAV k sending service s to ground terminal device m is

[0035] If the drone does not have the service program corresponding to the task requested by the user, it needs to download the corresponding service from the remote base station. The time to download the service is

[0036] If the ground terminal device m chooses local calculation, the total delay of local calculation is for:

[0037] Among them, b m,k ∈{0,1} represents whether the ground terminal device m is connected to the drone k, 1 means connected, 0 means not connected; e m,s ∈{0,1} indicates whether the ground terminal device m caches the service s, 1 indicates caching, and 0 indicates no caching;

[0038] The task is to calculate the total energy consumption locally at the ground terminal device m for:

[0039] The total time that the computing task of the ground terminal device m is executed on the drone k for:

[0040] where a k,s ∈{0,1} indicates whether drone k caches service s, 1 indicates caching, and 0 indicates no caching;

[0041] The total energy consumption of computing tasks of ground terminal device m executed on drone k for:

[0042] If the ground terminal device m chooses to offload the calculation, the calculation time of the ground terminal device m is calculated on the drone k. for:

[0043] Energy consumption of computing tasks of ground terminal device m on drone k for:

[0044] where c m,k ∈{0,1} indicates whether the computing task of the ground terminal device m is offloaded to the UAV;

[0045] The total delay T for completing the task requested by the ground terminal device m m :

[0046] Total energy consumption E of ground terminal equipment m m :

[0047] The total energy consumption E of UAV k k :

[0048] In some embodiments, in step S3, a pre-built optimization problem of minimizing the total delay of all ground terminal device request tasks is used to jointly optimize the task offloading decision, UAV resource allocation, and UAV trajectory, including:

[0049] S31. When the resources of the drones are allocated and the drone trajectories are determined, the task offloading decision problem is solved and the optimization problem P1 is transformed into P1.1:

[0050] The binary variable c m,k Relaxation to continuous variables That is, 0≤c m,k ≤1, where:

[0051] in represents the total delay in completing the task requested by the ground terminal device m, the total energy consumption of the ground terminal device m, and the total energy consumption of the UAV k after relaxation;

[0052] The optimization problem P1.1 is transformed into P1.2:

[0053] The optimization problem P1.2 is a linear programming problem. All the constraints are linear. Therefore, the optimization problem P1.2 is a convex problem. We use CVX in the MATLAB toolbox to solve it and get the better c m,k ;

[0054] S32. Under the conditions of task offloading decisions and drone trajectory determination, solve the drone resource allocation problem. On this basis, the optimization problem P1 is transformed into P1.3:

[0055] The Lagrangian and KKT constraints are used to solve the problem, and two constraint factors λ are introduced. m ,ν m , while λ m >0,ν m > 0, define the Lagrangian equation as:

[0056] Since the optimization problem P1.3 is convex, by applying the KKT condition, we get and Solve the optimal UAV resource allocation f k,m * :

[0057] S33. When the task offloading decision is made and the UAV resource allocation is determined, the UAV trajectory problem is solved. The optimization problem P1 is transformed into the optimization problem P1.4:

[0058] The transmission delay of ground terminal equipment in the objective function, the energy consumption of drone multicast software and the energy consumption of task upload in the constraint are related to Q k is non-convex, but for the variable Q k , formula ||Q k -Q l || 2 It is convex, so the continuous convex approximation method is used; because the first-order Taylor expansion of any point of any convex function is the global lower bound of the convex function, the convex function can be approximated by the first-order Taylor expansion; the transmission rate from the ground terminal equipment to the drone Approximately:

[0059] in,

[0060] Among them, Q k [i] is the i-th order Taylor expansion of the UAV trajectory, Z m,k [i], G m,k is the intermediate parameter; the intermediate parameter When the optimization problem P1.4 is introduced, P1.4 is a standard convex optimization problem. It is solved by using CVX in the MATLAB toolbox to obtain a better Q k ;

[0061] S34. Obtain the solution to P1 by iteratively solving the three sub-problems P1.2, P1.3, and P1.4 and updating the corresponding solutions: task offloading decision, UAV resource allocation, and UAV trajectory.

[0062] In a second aspect, the present invention provides a UAV-assisted task offloading and resource allocation device based on service cache, comprising a processor and a storage medium;

[0063] The storage medium is used to store instructions;

[0064] The processor is configured to operate according to the instructions to perform the method according to the first aspect.

[0065] In a third aspect, the present invention provides a device comprising:

[0066] Memory;

[0067] processor;

[0068] as well as

[0069] computer programs;

[0070] The computer program is stored in the memory and is configured to be executed by the processor to implement the method described in the first aspect above.

[0071] In a fourth aspect, the present invention provides a storage medium having a computer program stored thereon, wherein the computer program implements the method described in the first aspect when executed by a processor.

[0072] Beneficial effects: Compared with the prior art, the advantages of the present invention include:

[0073] This paper comprehensively considers the concept of service caching in drone-assisted mobile edge computing. When computing tasks are offloaded to MEC servers, the servers must have corresponding service programs to complete the corresponding computing tasks. Service caching effectively reduces the real-time delay and communication cost of acquiring and initializing service applications.

[0074] 2. The present invention jointly considers caching the required services in the drone in advance according to local popularity, effectively reducing the user completion delay.

[0075] 3. Unlike traditional computing task offloading methods, this method fully utilizes the mobility of drones and jointly optimizes the three sub-problems of computing resource allocation and drone placement, effectively reducing the task completion delay. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] FIG1 is a schematic diagram of a method flow chart provided according to an embodiment of the present invention;

[0077] FIG2 is a schematic diagram of a system model provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0078] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention and are not intended to limit the scope of protection of the present invention.

[0079] In the description of the present invention, "several" means more than one, "plurality" means more than two, "greater than," "less than," and "exceed" are understood to exclude the number itself, while "above," "below," and "within" are understood to include the number itself. The use of "first" and "second" in the description is solely for the purpose of distinguishing technical features and should not be construed as indicating or implying relative importance, implicitly specifying the number of the indicated technical features, or implicitly specifying the order of the indicated technical features.

[0080] In the description of the present invention, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the exemplary expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0081] Example 1

[0082] In a first aspect, this embodiment provides a method for unmanned aerial vehicle (UAV)-assisted task offloading and resource allocation based on service cache, including:

[0083] S1. Obtain local popularity based on the historical service needs of the ground terminal device. The drone selects the required service for caching based on the local popularity, and obtains the drone caching solution.

[0084] S2. The ground terminal device caches services in a random manner to obtain a ground terminal device cache solution;

[0085] S3. In response to a task request from a ground terminal device, based on the UAV caching scheme and the ground terminal device caching scheme, jointly optimize the task offloading decision, UAV resource allocation, and UAV trajectory using a pre-built optimization problem for minimizing the total latency of all ground terminal device request tasks;

[0086] S4. According to the optimized task offloading decision, the task requested by the ground terminal device is calculated on the local terminal device, or the task is offloaded to the corresponding UAV for calculation; the UAV flies according to the optimized UAV trajectory, and resources are allocated to the ground terminal device according to the optimized UAV resource allocation.

[0087] In some embodiments, step S4 includes:

[0088] S41. The task requested by the ground terminal device is calculated on the local terminal device;

[0089] S411. If the ground terminal device has cached the required service, directly perform the task calculation;

[0090] S412. If the ground terminal device does not cache the required service but the drone caches the service requested by the ground terminal device, then based on the optimized drone trajectory and resource allocation, the corresponding service program is downloaded from the drone to the ground terminal device, and the computing service is performed directly on the ground terminal device;

[0091] S413. If the ground terminal device does not cache the required service and the drone does not cache the service requested by the ground terminal device, the service program is downloaded from the remote end to the drone through the base station using the wireless backhaul link. Based on the optimized drone trajectory and resource allocation, the corresponding service program is downloaded from the drone to the ground terminal device, and the computing service is directly performed on the ground terminal device.

[0092] In some other embodiments, step S4 includes:

[0093] S42. The ground terminal device offloads the task to the corresponding UAV for calculation;

[0094] S421. The drone caches the service requested by the ground terminal device, and the optimized drone trajectory and resource allocation are calculated directly on the drone;

[0095] S422. If the service requested by the ground terminal device is not cached on the drone, the service program is downloaded from the remote end to the drone via the base station using the wireless backhaul link, and calculations are performed on the drone based on the optimized drone trajectory and resource allocation.

[0096] In some specific embodiments, referring to Figures 1 and 2 , this embodiment provides a multi-UAV-assisted Mobile Edge Computing (MEC) system, comprising a base station, K rotary-wing UAVs (UAVs), and M ground-based terminal devices, where K = {1, 2, ..., K} and M = {1, 2, ..., M} are the sets of UAVs and ground-based terminal devices, respectively. Each UAV is equipped with a small server that provides computing and caching services for the ground-based terminal devices. UAVs cache services based on popularity, while terminal devices cache services randomly.

[0097] In some embodiments, step S1. obtaining local popularity based on historically requested services of a ground terminal device, and the drone selecting a cached service based on the local popularity, thereby obtaining a drone caching solution, includes:

[0098] S11. The access method between the ground terminal equipment and the UAV is the closest distance access. When the ground terminal equipment is within the coverage range of the UAV, the nearest UAV will provide services. Suppose M k The number of ground terminal devices serving UAV k;

[0099] S12. The probability that ground terminal device m requests service s is p ms , then the request probability matrix P of all ground terminal devices is:

[0100] S13. Based on the request probability p of the ground terminal device m for service s ms , get local popularity

[0101] S14. Since there is no coupling relationship between the content deployments of drones, in order to improve the hit rate of drone cache services, the service programs with higher local popularity are cached in the drones.

[0102] In some embodiments, a method for constructing an optimization problem for minimizing the total latency of all ground terminal device request tasks includes:

[0103] Due to the coverage problem of the base station, the ground terminal devices in the area cannot communicate directly with the base station BS; the base station is connected to the cloud center through a wired optical fiber link, and the drone communicates with the base station through a wireless backhaul link; assuming that the front-end and backhaul links operate on different frequency bands, the wireless backhaul link capacity of each drone to the base station BS is R b For the front-end link, the ground terminal equipment within the coverage of each drone adopts orthogonal frequency division multiple access, and the bandwidth is evenly divided among multiple ground terminal equipment. Assuming that the total uplink / downlink communication bandwidth is B, the two-way wireless communication spectrum bandwidth from drone k to ground terminal equipment is B / |M k |, where M k The total number of users served by drone k;

[0104] The horizontal position coordinate of UAV k is Q k =(x k ,y k ), the height is fixed, and the horizontal position coordinate of the ground terminal equipment m is Q m =(x m ,y m ), then the distance between the ground terminal device m and the drone k is The channel gain between the ground terminal device m and the drone k is h0 is the channel gain at the reference distance d0=1, and H is the flight altitude of each unmanned aerial vehicle. Assuming that the two-way channel gain between the ground terminal device m and the drone k is the same, the uplink and downlink rates between the ground terminal device m and the drone k are

[0105] Among them, p m is the transmission power of ground terminal equipment m, p k is the transmission power allocated by UAV k to ground terminal device m, and N0 is the noise power of the receiver;

[0106] The local calculation time is The energy consumption of local computing by ground terminal equipment is Where κ is a coefficient that depends on the chip structure, f m is the computing power of the ground terminal equipment, C m The number of CPU cycles required for computing tasks on ground terminal equipment;

[0107] The ground terminal device chooses to offload the task to the drone for calculation. The time for uploading the task to the drone is The energy consumption of task upload is The task calculation time is The energy consumption of the task calculation is Among them, l m The size of the input data of the ground terminal device m, f k,m is the computing power of UAV k for ground terminal device m. If the maximum computing power of UAV k is but

[0108] When local computing is selected but the ground terminal device does not cache the corresponding service, the time it takes for the ground terminal device to download the corresponding service from the drone is Among them, c s is the size of the service s program; the energy consumption of UAV k sending service s to ground terminal device m is

[0109] If the drone does not have the service program corresponding to the task requested by the user, it needs to download the corresponding service from the remote base station. The time to download the service is

[0110] If the ground terminal device m chooses local calculation, the total delay of local calculation is for:

[0111] Among them, b m,k∈{0,1} represents whether the ground terminal device m is connected to the drone k, 1 means connected, 0 means not connected; e m,s ∈{0,1} indicates whether the ground terminal device m caches the service s, 1 indicates caching, and 0 indicates no caching;

[0112] The task is to calculate the total energy consumption locally at the ground terminal device m for:

[0113] The total time that the computing task of the ground terminal device m is executed on the drone k for:

[0114] where a k,s ∈{0,1} indicates whether drone k caches service s, 1 indicates caching, and 0 indicates no caching;

[0115] The total energy consumption of computing tasks of ground terminal device m executed on drone k for:

[0116] If the ground terminal device m chooses to offload the calculation, the calculation time of the ground terminal device m is calculated on the drone k. for:

[0117] Energy consumption of computing tasks of ground terminal device m on drone k for:

[0118] where c m,k ∈{0,1} indicates whether the computing task of the ground terminal device m is offloaded to the UAV;

[0119] The total delay T for completing the task requested by the ground terminal device m m :

[0120] Total energy consumption E of ground terminal equipment m m :

[0121] The total energy consumption E of UAV k k :

[0122] In some embodiments, in step S3, minimizing the total delay optimization problem P1 of all ground terminal device request tasks includes:

[0123] Among them, C1 is the delay limit, T mis the total delay of completing the task requested by the ground terminal device m, K = {1, 2, ..., K} and M = {1, 2, ..., M} are the sets of UAVs and ground terminal devices respectively, B = (b m,k ∈{0,1}:m∈M,k∈K) is the set sum of whether the ground terminal device m is connected to the drone k, F=(f k,m :m∈M,k∈K) is the sum of the computing capabilities of UAV k to ground terminal device m, C=(c m,k ∈{0,1}:m∈M,k∈K) represents the set sum of whether the computing task of the ground terminal device m is offloaded to the UAV, Q=(Q k :k∈K) is the horizontal position coordinate of UAV k; is the maximum task delay of ground terminal device m, represents any mathematical symbol; C2 is the user's energy consumption limit, E m is the total energy consumption of ground terminal equipment m, is the maximum energy consumption of the ground terminal device m; C3 is the energy consumption limit of the UAV, E k is the total energy consumption of UAV k, is the maximum energy consumption of the UAV; C4 is the resource limit allocated to the UAV, f k,m is the computing power of UAV k to ground terminal device m, is the maximum computing capacity of UAV k; C5 is the causal constraint, that is, the ground terminal device can choose to offload the calculation only after it is connected to the UAV, c m,k ∈{0,1} indicates whether the computing task of the ground terminal device m is offloaded to the UAV, 1 means offloading, 0 means not offloading; b m,k ∈{0,1} is whether the ground terminal device m is connected to the drone k, 1 means connected, 0 means not connected; C6 stipulates that a ground terminal device can only connect to one drone; C7 is the maximum number of ground terminal devices that can be connected to the drone, is the maximum number of ground terminal devices connected; C8 is the maximum distance limit between drones, and the horizontal position coordinate of drone k is Q k =(x k ,y k ), Q l is the horizontal position coordinate of UAV l, d m is the maximum distance between drones; C9 stipulates that ground terminal equipment can only access drones when it is within the maximum range of the drone. k,m is the distance between the ground terminal device m and the drone k, The maximum communication range of the UAV; C10 indicates c m,k ,a k,s ,b m,k ,e m,sis a binary variable, a k,s ∈{0,1} indicates whether drone k caches service s, 1 means cache, 0 means no cache, e m,s ∈{0,1} indicates whether the ground terminal device m caches the service s, 1 indicates caching, and 0 indicates no caching.

[0124] In some embodiments, in step S3, the pre-built optimization problem of minimizing the total delay of all ground terminal device request tasks is used to jointly optimize the task offloading decision, UAV resource allocation, and UAV trajectory, including:

[0125] S31. When the resources of the drones are allocated and the drone trajectories are determined, the task offloading decision problem is solved and the optimization problem P1 is transformed into P1.1:

[0126] The binary variable c m,k Relaxation to continuous variables That is, 0≤c m,k ≤1, where:

[0127] in represents the total delay in completing the task requested by the ground terminal device m, the total energy consumption of the ground terminal device m, and the total energy consumption of the UAV k after relaxation;

[0128] The optimization problem P1.1 is transformed into P1.2:

[0129] The optimization problem P1.2 is a linear programming problem. All the constraints are linear. Therefore, the optimization problem P1.2 is a convex problem. We use CVX in the MATLAB toolbox to solve it and get the better c m,k ;

[0130] S32. Under the conditions of task offloading decisions and drone trajectory determination, solve the drone resource allocation problem. On this basis, the optimization problem P1 is transformed into P1.3:

[0131] The Lagrangian and KKT constraints are used to solve the problem, and two constraint factors λ are introduced. m ,ν m , while λ m >0,ν m > 0, define the Lagrangian equation as:

[0132] Since the optimization problem P1.3 is convex, by applying the KKT condition, we get and Solve the optimal UAV resource allocation f k,m * :

[0133] S33. When the task offloading decision is made and the UAV resource allocation is determined, the UAV trajectory problem is solved. The optimization problem P1 is transformed into the optimization problem P1.4:

[0134] The transmission delay of ground terminal equipment in the objective function, the energy consumption of drone multicast software and the energy consumption of task upload in the constraint are related to Q k is non-convex, but for the variable Q k , formula ||Q k -Q l || 2 It is convex, so the continuous convex approximation method is used; because the first-order Taylor expansion of any point of any convex function is the global lower bound of the convex function, the convex function can be approximated by the first-order Taylor expansion; the transmission rate from the ground terminal equipment to the drone Approximately:

[0135] in,

[0136] Among them, Q k [i] is the i-th order Taylor expansion of the UAV trajectory, Z m,k [i], G m,k is the intermediate parameter; When the optimization problem P1.4 is introduced, P1.4 is a standard convex optimization problem. It is solved by using CVX in the MATLAB toolbox to obtain a better Q k ;

[0137] S34. Obtain the solution to P1 by iteratively solving the three subproblems P1.2, P1.3, and P1.4 and updating the corresponding solutions: task offloading decision, UAV resource allocation, and UAV trajectory;

[0138] Since the object value of P1 does not increase after each iteration and the optimal value is also bounded, S34 is guaranteed to converge after a finite number of iterations.

[0139] Example 2

[0140] In a second aspect, based on embodiment 1, this embodiment provides a UAV-assisted task offloading and resource allocation device based on service cache, including a processor and a storage medium;

[0141] The storage medium is used to store instructions;

[0142] The processor is configured to operate according to the instructions to execute the method according to embodiment 1.

[0143] Example 3

[0144] In a third aspect, based on embodiment 1, this embodiment provides a device, including:

[0145] Memory;

[0146] processor;

[0147] as well as

[0148] computer programs;

[0149] The computer program is stored in the memory and is configured to be executed by the processor to implement the method described in embodiment 1.

[0150] Example 4

[0151] In a fourth aspect, based on Example 1, this embodiment provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in Example 1 is implemented.

[0152] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0153] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.

[0154] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0156] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for unmanned aerial vehicle assisted task offloading and resource allocation based on service cache, characterized in that: The method comprises: S1. Obtain local popularity based on the historical services required by the ground terminal device, and the drone selects the cached services based on the local popularity to obtain the drone caching solution; S2. The ground terminal device caches the service in a random manner to obtain a cache solution for the ground terminal device; S3. In response to the task request from the ground terminal device, based on the UAV cache solution and the ground terminal device cache solution, the pre-built total delay optimization problem of minimizing all ground terminal device request tasks is used to jointly optimize the task offloading decision, UAV resource allocation and UAV trajectory; S4. According to the optimized task offloading decision, the task requested by the ground terminal device is calculated on the local terminal device, or the task is offloaded to the corresponding UAV for calculation; the UAV flies according to the optimized UAV trajectory, and the ground terminal device is allocated resources according to the optimized UAV resource allocation.

2. The method for unmanned aerial vehicle-assisted task offloading and resource allocation based on service cache according to claim 1, characterized in that: Step S4 includes: S41. The task requested by the ground terminal device is calculated on the local terminal device; S411. If the ground terminal device has cached the required service, directly perform task calculation; S412. If the ground terminal device does not cache the required service but the drone caches the service requested by the ground terminal device, then based on the optimized drone trajectory and resource allocation, the corresponding service program is downloaded from the drone to the ground terminal device, and the computing service is directly performed on the ground terminal device; S413. If the ground terminal device does not cache the required service and the drone does not cache the service requested by the ground terminal device, use the wireless backhaul link to download the service program from the remote end to the drone through the base station, and based on the optimized drone trajectory and resource allocation, download the corresponding service program from the drone to the ground terminal device, and perform computing services directly on the ground terminal device.

3. The method for unmanned aerial vehicle-assisted task offloading and resource allocation based on service cache according to claim 1, characterized in that: Step S4 includes: S42. The ground terminal device offloads the task to the corresponding drone for calculation; S421. The drone caches the service requested by the ground terminal device, and the drone is directly calculated based on the optimized drone trajectory and resource allocation; S422. If the service requested by the ground terminal device is not cached on the drone, the service program is downloaded from the remote end to the drone via the base station using the wireless backhaul link, and the calculation is performed on the drone based on the optimized drone trajectory and resource allocation.

4. The method for unmanned aerial vehicle-assisted task offloading and resource allocation based on service cache according to claim 1, characterized in that: Step S1 includes: S11. The access method between the ground terminal equipment and the drone adopts the closest distance access. When the ground terminal equipment is within the coverage of the drone, the nearest drone will provide services. Suppose M k The number of ground terminal devices serving UAV k; S12. The probability that ground terminal device m requests service s is p ms , then the request probability matrix P of all ground terminal devices is: S13. Based on the request probability p of the ground terminal device m for service s ms , get local popularity S14. Since there is no coupling relationship between the content deployment of drones, in order to improve the drone cache service In order to improve the hit rate of the service, the service programs with higher local popularity are cached in the drone.

5. The method for unmanned aerial vehicle-assisted task offloading and resource allocation based on service cache according to claim 1, characterized in that: In step S3, the total delay optimization problem P1 of minimizing all ground terminal device request tasks includes: Among them, C1 is the delay limit, T m is the total delay of completing the task requested by the ground terminal device m, K = {1, 2, ..., K} and M = {1, 2, ..., M} are the sets of UAVs and ground terminal devices respectively, B = (b m,k ∈{0,1}:m∈M,k∈K) is the set sum of whether the ground terminal device m is connected to the drone k, F=(f k,m :m∈M,k∈K) is the sum of the computing capabilities of UAV k to ground terminal device m, C=(c m,k ∈{0,1}:m∈M,k∈K) represents the sum of whether the computing task of the ground terminal device m is offloaded to the UAV, Q=(Q k :k∈K) is the horizontal position coordinate of UAV k; For ground terminal equipment m Maximum task delay, represents any mathematical symbol; C2 is the user's energy consumption limit, E m is the total energy consumption of ground terminal equipment m, is the maximum energy consumption of the ground terminal device m; C3 is the energy consumption limit of the UAV, E k is the total energy consumption of UAV k, is the maximum energy consumption of the UAV; C4 is the resource limit allocated to the UAV, f k,m is the computing power of UAV k to ground terminal device m, is the maximum computing capacity of UAV k; C5 is the causal constraint, that is, the ground terminal device can only choose to offload the calculation after it is connected to the UAV, c m,k ∈{0,1} indicates whether the computing task of the ground terminal device m is offloaded to the UAV, 1 means offloading, 0 means not offloading; b m,k ∈{0,1} is whether the ground terminal device m is connected to the drone k, 1 means connected, 0 means not connected; C6 stipulates that a ground terminal device can only connect to one drone; C7 is the maximum number of ground terminal devices that can be connected to the drone, is the maximum number of connected ground terminal devices; C8 is the maximum distance limit between drones, and the horizontal position coordinate of drone k is Q k =(x k ,y k ), Q l is the horizontal position coordinate of UAV l, d m is the maximum distance between drones; C9 stipulates that ground terminal equipment can access drones only when they are within the maximum range of drones. k,m is the distance between the ground terminal device m and the drone k, is the maximum communication range of the drone; C10 indicates c m,k ,a k,s ,b m,k ,e m,s is a binary variable, a k,s ∈{0,1} indicates whether drone k caches service s, 1 indicates caching, 0 indicates no caching, e m,s ∈{0,1} indicates whether the ground terminal device m caches the service s, 1 indicates caching, and 0 indicates no caching.

6. The method for unmanned aerial vehicle-assisted task offloading and resource allocation based on service cache according to claim 5, characterized in that: The construction method of minimizing the total delay optimization problem of all ground terminal device request tasks includes: Due to the coverage problem of the base station, the ground terminal devices in the area cannot communicate directly with the base station BS; the base station is connected to the cloud center through a wired optical fiber link, and the drone communicates with the base station through a wireless backhaul link; assuming that the front-end and backhaul links operate on different frequency bands, the wireless backhaul link capacity of each drone to the base station BS is R b For the front-end link, the ground terminal equipment within the coverage of each drone adopts orthogonal frequency division multiple access, and the bandwidth is evenly divided among multiple ground terminal equipment. Assuming that the total bandwidth of uplink / downlink communication is B, Then the spectrum bandwidth of the two-way wireless communication from UAV k to the ground terminal device is B / |M k |, where M k The total number of users served by drone k; The horizontal position coordinate of drone k is Q k =(x k ,y k ), the height is fixed, and the horizontal position coordinate of the ground terminal equipment m is Q m =(x m ,y m ), then the distance between the ground terminal device m and the drone k is The channel gain between the ground terminal device m and the drone k is h0 is the channel gain at the reference distance d0=1, and H is the flight height of each unmanned aerial vehicle. Assuming that the two-way channel gain between the ground terminal device m and the drone k is the same, the uplink and downlink rates between the ground terminal device m and the drone k are Among them, p m is the transmission power of the ground terminal device m, p k is the transmission power allocated by UAV k to the ground terminal device m, and N0 is the noise power of the receiver; The local calculation time is The energy consumption of local computing by ground terminal equipment is Among them, κ is a coefficient that depends on the chip structure, f m is the computing power of the ground terminal equipment, C m The number of CPU cycles required for computing tasks in ground terminal equipment; The ground terminal device chooses to offload to the drone for calculation. The time for uploading the task to the drone is The energy consumption of task upload is The task calculation time is The energy consumption of task calculation is Among them, l m is the size of the input data of the ground terminal device m, f k,m is the computing power of UAV k for ground terminal device m. If the maximum computing power of UAV k is but When local computing is selected but the ground terminal device does not cache the corresponding service, the download time of the ground terminal device downloading the corresponding service from the drone is Among them, c s is the size of the service s program; the energy consumption of UAV k sending service s to ground terminal device m is If the drone does not have the service program corresponding to the task requested by the user, it needs to download the corresponding service from the remote through the base station. The time to download the service is If the ground terminal device m chooses local calculation, the total delay of local calculation is for: Among them, b m,k ∈{0,1} is whether the ground terminal device m is connected to the drone k, 1 means connected, 0 means not connected; e m,s ∈{0,1} indicates whether the ground terminal device m caches service s, 1 indicates caching, and 0 indicates no caching; The task is to calculate the total energy consumption locally at the ground terminal device m for: The total time that the computing task of the ground terminal device m is executed on the drone k for: where a k,s ∈{0,1} indicates whether drone k caches service s, 1 indicates caching, and 0 indicates no caching; The total energy consumption of computing tasks of ground terminal device m executed on drone k for: If the ground terminal device m chooses to offload the calculation, the calculation time of the ground terminal device m on the drone k is for: Energy consumption of computing tasks of ground terminal device m on drone k for: where c m,k ∈{0,1} indicates whether the computing task of the ground terminal device m is offloaded to the UAV; The total delay T for the task requested by the ground terminal device m to complete m : The total energy consumption E of the ground terminal equipment m m : The total energy consumption E of drone k k :

7. The method for unmanned aerial vehicle-assisted task offloading and resource allocation based on service cache as claimed in claim 5, characterized in that: In step S3, the pre-built optimization problem of minimizing the total delay of all ground terminal device request tasks is used to jointly optimize the task offloading decision, UAV resource allocation and UAV trajectory, including: S31. When the resources of the drone are allocated and the trajectory of the drone is determined, the task offloading decision problem is solved and the optimization problem P1 is transformed into P1.1: The binary variable c m,k Relaxation to continuous variables That is, 0≤c m,k ≤1, where: in represents the total delay in completing the task requested by the ground terminal device m, the total energy consumption of the ground terminal device m, and the total energy consumption of the UAV k after relaxation; The optimization problem P1.1 is transformed into P1.2: The optimization problem P1.2 is a linear programming problem, and the constraints are all linear. Therefore, the optimization problem P1.2 is a convex problem. We use CVX in the MATLAB toolbox to solve it and get a better c m,k ; S32. Under the condition that the task offloading decision is made and the UAV trajectory is determined, the UAV resource allocation problem is solved. On this basis, the optimization problem P1 is transformed into P1.3: The Lagrangian and KKT constraints are used to solve the problem, and two constraint factors λ are introduced. m ,ν m , while m >0,ν m >0, define the Lagrangian equation as: Since the optimization problem P1.3 is convex, by applying the KKT condition, we get and Solve the optimal allocation of drone resources S33. When the task offloading decision is made and the UAV resource allocation is determined, the UAV trajectory problem is solved, and the optimization problem P1 is transformed into the optimization problem P1.4: The transmission delay of ground terminal equipment in the objective function, the energy consumption of drone multicast software in the constraints, and the energy consumption of task upload have important effects on Q k is non-convex, but for the variable Q k , formula ||Q k -Q l || 2 is convex, so the continuous convex approximation method is used; because the first-order Taylor expansion of any point of any convex function is the global lower bound of the convex function, the convex function can be approximated by the first-order Taylor expansion; the transmission rate from the ground terminal equipment to the drone Approximately: in, Among them, Q k [i] is the i-th order Taylor expansion of the UAV trajectory, Z m,k [i] G m,k is the intermediate parameter; When the optimization problem P1.4 is introduced, P1.4 is a standard convex optimization problem. The CVX in the MATLAB toolbox is used to solve it and the optimal Q is obtained. k ; S34. The solution to P1 is obtained by iteratively solving the three sub-problems P1.2, P1.3 and P1.4, and updating the corresponding solutions: task offloading decision, UAV resource allocation and UAV trajectory.

8. A drone-assisted task offloading and resource allocation device based on service cache, characterized in that: including processor and storage medium; The storage medium is used to store instructions; The processor is configured to operate according to the instructions to perform the method according to any one of claims 1 to 7.

9. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Path planning and task scheduling method based on unmanned aerial vehicle calculation unloading

    CN113378369A

  • Unmanned aerial vehicle assisted service cache edge calculation optimal calculation unloading decision and resource allocation method

    CN113873660A

  • Method for assisting edge Internet of Vehicles service and content hybrid caching by unmanned aerial vehicle

    CN115174481A

  • Unmanned aerial vehicle auxiliary task unloading and resource allocation method based on service cache

    CN116367234A

  • Fire door system with airtightness

    KR102280808B1

Cited By

  • Heterogeneous unmanned aerial vehicle network task unloading method based on service cache

    CN119136258A

  • Delay-aware computing unloading method and system in unmanned aerial vehicle auxiliary edge computing system

    CN119316881A

  • Unmanned aerial vehicle deployment and transmission method, electronic equipment and readable storage medium

    CN119483721A

  • UAV and USV network resource allocation system and method based on improved whale algorithm

    CN119835690A

  • Unmanned aerial vehicle assisted calculation unloading method and system and computer storage medium

    CN119883405A