[go: up one dir, main page]

CN115134370A - Multi-unmanned-aerial-vehicle-assisted mobile edge calculation unloading method - Google Patents

Multi-unmanned-aerial-vehicle-assisted mobile edge calculation unloading method Download PDF

Info

Publication number
CN115134370A
CN115134370A CN202210718376.0A CN202210718376A CN115134370A CN 115134370 A CN115134370 A CN 115134370A CN 202210718376 A CN202210718376 A CN 202210718376A CN 115134370 A CN115134370 A CN 115134370A
Authority
CN
China
Prior art keywords
time slot
user
unmanned aerial
aerial vehicle
unloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210718376.0A
Other languages
Chinese (zh)
Other versions
CN115134370B (en
Inventor
蓝康伟
刘义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN202210718376.0A priority Critical patent/CN115134370B/en
Publication of CN115134370A publication Critical patent/CN115134370A/en
Application granted granted Critical
Publication of CN115134370B publication Critical patent/CN115134370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1021Server selection for load balancing based on client or server locations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/185Space-based or airborne stations; Stations for satellite systems
    • H04B7/18502Airborne stations
    • H04B7/18506Communications with or from aircraft, i.e. aeronautical mobile service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1023Server selection for load balancing based on a hash applied to IP addresses or costs
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Astronomy & Astrophysics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a multi-unmanned aerial vehicle assisted mobile edge calculation unloading method, which comprises the following steps: collecting position information of each user on the ground through a software defined network; segmenting different user groups through a clustering algorithm; each unmanned aerial vehicle is set to be in charge of one group; data are transmitted between the users in each area and the corresponding unmanned aerial vehicles in a time division multiple access communication mode, and the data are processed in a partial unloading mode; constructing a mobile edge calculation unloading model; optimizing the constructed mobile edge calculation unloading model to obtain an optimal unmanned aerial vehicle flight track, an optimal calculation task amount of each time slot and an optimal partial unloading variable of each time slot; and carrying out multi-unmanned aerial vehicle-assisted mobile edge calculation unloading according to the optimal unmanned aerial vehicle flight trajectory, the optimal calculation task amount of each time slot and the optimal partial unloading variable of each time slot. The invention can solve the problems of multiple unmanned aerial vehicles and multiple users in a centralized manner, and reduce the energy consumption in the data processing process.

Description

一种多无人机辅助的移动边缘计算卸载方法A multi-UAV-assisted offloading method for mobile edge computing

技术领域technical field

本发明涉及边缘计算的技术领域,尤其涉及到一种多无人机辅助的移动边缘计算卸载方法。The invention relates to the technical field of edge computing, in particular to a method for offloading mobile edge computing assisted by multiple unmanned aerial vehicles.

背景技术Background technique

大量的科技产品出现在人们的生活之中。然而,大部分科技产品都是计算敏感性的,不仅对CPU的处理能力有者较高的要求,也对时延等用户体验具有比较高的要求,比如智慧城市,无人驾驶汽车,虚拟现实(AR)等应用。大多数本地用户都没有足够的计算能力在所需要满足的时延情况下去完成任务,并且可能需要耗费大量的能量才能够完成计算任务,对用户的体验非常的糟糕。虽然云计算是个解决方案,但是如果大量的用户都选择上传到云端计算,这会造成严重的网络阻塞,用户的(Qos)用户体验会非常的差。移动边缘计算(Mobile edge computing)是解决上述问题的一个很好的潜在解决方案,相比于传统的通信网络架构来说,网络边缘端可以放置一个或多个边缘服务器,同时具有计算资源和存储资源。移动边缘计算的诞生并不是要取代云计算,而是与云计算起着相辅相成的作用,有效改善只有云计算所带来的缺点。A large number of technological products appear in people's lives. However, most technology products are computationally sensitive, and not only have higher requirements on the processing power of the CPU, but also have higher requirements on user experience such as latency, such as smart cities, driverless cars, and virtual reality. (AR) and other applications. Most local users do not have enough computing power to complete the task with the required delay, and may need to consume a lot of energy to complete the computing task, which is very bad for the user experience. Although cloud computing is a solution, if a large number of users choose to upload to cloud computing, it will cause serious network congestion and the user's (Qos) user experience will be very poor. Mobile edge computing is a good potential solution to the above problems. Compared with the traditional communication network architecture, one or more edge servers can be placed at the edge of the network, with both computing resources and storage. resource. The birth of mobile edge computing is not to replace cloud computing, but to complement cloud computing, effectively improving the shortcomings of cloud computing.

软件定义网络(SDN)可以与边缘计算很好的结合在一起。SDN是集中式的网络架构,通过将网络管理的控制层和数据层有机的分离出来。SDN能够动态的收集全局网络信息,收集网络数据,并且通过控制层去全局调控网络的部署调度情况,优化网络状态,有效改善网络的管理效率。Software-defined networking (SDN) can be well combined with edge computing. SDN is a centralized network architecture that organically separates the control layer and data layer of network management. SDN can dynamically collect global network information, collect network data, and globally regulate the deployment and scheduling of the network through the control layer, optimize the network status, and effectively improve the management efficiency of the network.

无人机在边缘计算用着丰富的应用场景。无人机可以充当一个边缘服务器,在有着大量计算敏感性任务的场所和人员密集场所中,无人机部署方式便捷灵活,可以快速飞行到目标位置,使得用户可以及时的将计算任务卸载给无人机计算,提高网络吞吐量,能够有效的改善用户的体验。无人机可以充当一个中继节点,由于无人机飞行在空中,使得其有良好的视距通信(Line Of Sight)特点,可以作为用户和边缘服务器或者基站之间的桥梁,及时的恢复网络状态。基于软件定义网络(SDN),无人机和地面用户能够作为数据层,SDN可以收集无人机和用户的网络信息,环境位置等内容,然后通过控制器来对无人机的轨迹,资源分配和用户的卸载决策等变量进行优化。即使随着网络环境的变化也能够灵活的进行网络配置。UAVs are used in various application scenarios in edge computing. UAVs can act as an edge server. In places with a large number of computing-sensitive tasks and densely populated places, UAVs can be deployed in a convenient and flexible way, and can quickly fly to the target location, allowing users to offload computing tasks to unmanned aircraft in a timely manner. Human-computer computing can improve network throughput and effectively improve user experience. The UAV can act as a relay node. Since the UAV is flying in the air, it has good line of sight communication (Line Of Sight) characteristics. It can be used as a bridge between users and edge servers or base stations to restore the network in time. state. Based on software-defined network (SDN), drones and ground users can act as a data layer. SDN can collect network information of drones and users, environmental location, etc., and then use the controller to allocate the trajectory and resources of the drone. and the user's uninstall decision and other variables to optimize. Even with the change of the network environment, the network configuration can be flexibly carried out.

当前单无人机中的卸载策略有了比较充分的研究,然而对于多无人机的情况,缺乏根据用户位置而做出卸载决策的判断,并且没有考虑部分卸载方案而导致用户需要消耗更多的能量。而多无人机的轨迹调度也能够使得无人机更好的靠近用户而提供更好的计算服务,同时减少无人机本身消耗的能量。在大规模用户的应用场景中,缺乏一种集中式的控制器来收集用户和无人机的信息来更好的做出调度策略,使得用户的体验更好。At present, the unloading strategy in a single drone has been fully studied. However, in the case of multiple drones, there is a lack of judgment to make the unloading decision based on the user's location, and some unloading schemes are not considered, so the user needs to consume more energy of. The trajectory scheduling of multiple drones can also make the drones closer to the user and provide better computing services, while reducing the energy consumed by the drone itself. In the application scenario of large-scale users, there is a lack of a centralized controller to collect user and UAV information to make better scheduling strategies and make the user experience better.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于克服现有技术的不足,提供一种多无人机辅助的移动边缘计算卸载方法。The purpose of the present invention is to overcome the deficiencies of the prior art and provide a multi-UAV-assisted mobile edge computing offloading method.

为实现上述目的,本发明所提供的技术方案为:For achieving the above object, the technical scheme provided by the present invention is:

一种多无人机辅助的移动边缘计算卸载方法,包括以下步骤:A multi-UAV-assisted mobile edge computing offloading method, comprising the following steps:

S1、通过软件定义网络收集地面上各个用户的位置信息;S1. Collect location information of each user on the ground through a software-defined network;

S2、基于每个用户的位置信息,通过聚类算法分割出不同的用户群体,一个用户群体为一个区域;S2. Based on the location information of each user, different user groups are segmented through a clustering algorithm, and one user group is an area;

S3、设置多个无人机,每个无人机负责一个区域;S3. Set up multiple drones, each drone is responsible for one area;

S4、每个区域的用户与对应的无人机之间通过时分多址的通信方式传输数据,且采用部分卸载的方式处理数据,即部分数据在用户本地进行处理,另外的部分数据在无人机处进行处理;S4. Data is transmitted between the users in each area and the corresponding drones through time division multiple access communication, and the data is processed by partial unloading, that is, part of the data is processed locally by the user, and the other part of the data is unmanned. processing at the machine;

S5、构建移动边缘计算卸载模型;S5. Build a mobile edge computing offloading model;

S6、对步骤S5构建的移动边缘计算卸载模型进行优化,得到最优的无人机飞行轨迹、最优的每个时隙的计算任务量、最优的每个时隙部分卸载变量;S6, optimizing the mobile edge computing unloading model constructed in step S5, to obtain the optimal UAV flight trajectory, the optimal computing task amount for each time slot, and the optimal partial unloading variable for each time slot;

S7、依据最优的无人机飞行轨迹、最优的每个时隙的计算任务量、最优的每个时隙部分卸载变量进行多无人机辅助的移动边缘计算卸载。S7. Perform multi-UAV-assisted mobile edge computing offloading according to the optimal UAV flight trajectory, the optimal computing task amount per time slot, and the optimal partial unloading variable of each time slot.

进一步地,所述步骤S5中,移动边缘计算卸载模型的目标函数为全部用户传输数据所需能量与用户本地计算能量所需的能量之和,即得到下面的优化问题P:Further, in the step S5, the objective function of the mobile edge computing offloading model is the sum of the energy required by all users to transmit data and the energy required by the user's local computing energy, that is, the following optimization problem P is obtained:

P:P:

Figure BDA0003710337040000031
Figure BDA0003710337040000031

s.t.s.t.

Figure BDA0003710337040000032
Figure BDA0003710337040000032

Figure BDA0003710337040000033
Figure BDA0003710337040000033

C3:lk[i]>Γ,k∈KC3: l k [i]>Γ, k∈K

Figure BDA0003710337040000034
Figure BDA0003710337040000034

Figure BDA0003710337040000035
Figure BDA0003710337040000035

Figure BDA0003710337040000036
Figure BDA0003710337040000036

Figure BDA0003710337040000037
Figure BDA0003710337040000037

C8:0<=ρk,u[i]<=1,k∈K,u∈U,i∈IC8: 0<=ρ k,u [i]<=1,k∈K,u∈U,i∈I

C9:Ckρk,u[i]lk[i]/fk<=δ,k∈K,i∈IC9:C k ρ k,u [i]l k [i]/f k <=δ,k∈K,i∈I

目标函数中,

Figure BDA0003710337040000038
为用户k在第i个时隙内用于本地计算而损耗的能量,
Figure BDA0003710337040000039
为用户k在第i个时隙内输送数据至无人机u所消耗的能量;In the objective function,
Figure BDA0003710337040000038
is the energy dissipated by user k for local computation in the ith slot,
Figure BDA0003710337040000039
is the energy consumed by user k to transmit data to UAV u in the ith time slot;

约束C1式用于保证无人机u在工作时间内,卸载计算的能耗和飞行能耗小于其电池的容量;其中,U为无人机的集合;K为用户的集合;I表示将服务时长T平均分后所得到的时隙的个数;αk,u为卸载决策变量,取值为0或1;

Figure BDA00037103370400000310
为无人机u在第i个时隙内为用户k完成卸载任务所需要的能量;
Figure BDA0003710337040000041
为无人机u在第i个时隙内所需要消耗的飞行能量;τ为电池容量;The constraint C1 is used to ensure that the unloading calculation energy consumption and flight energy consumption of the drone u are less than the capacity of its battery during the working hours; among them, U is the set of drones; K is the set of users; The number of time slots obtained after the average division of the duration T; α k, u is the unloading decision variable, which takes the value of 0 or 1;
Figure BDA00037103370400000310
is the energy required for the drone u to complete the unloading task for the user k in the ith time slot;
Figure BDA0003710337040000041
is the flight energy that the drone u needs to consume in the ith time slot; τ is the battery capacity;

约束C2式用于保证在服务时长T内能处理完用户所需要的处理的数据量;lk[i]为用户k在第i个时隙内需要进行计算的计算量;Lk为用户k在服务时长T内需要完成的计算量;The constraint C2 is used to ensure that the amount of data required by the user can be processed within the service duration T; l k [i] is the amount of calculation that the user k needs to perform in the i-th time slot; L k is the user k The amount of computation that needs to be completed within the service duration T;

约束C3式用于约束用户每个时隙的计算量必须大于某个设定值;Γ为设定值;The constraint C3 formula is used to constrain the calculation amount of each time slot of the user must be greater than a certain set value; Γ is the set value;

约束C4-C5式用于规定无人机u的初始位置和最终时隙停靠的位置;

Figure BDA0003710337040000042
为无人机u的初始位置;
Figure BDA0003710337040000043
为无人机u最终时隙停靠的位置;Constraints C4-C5 are used to specify the initial position of UAV u and the final time slot docking position;
Figure BDA0003710337040000042
is the initial position of the drone u;
Figure BDA0003710337040000043
is the position where the drone u stops in the final time slot;

约束C6式用于保证无人机u的最高速度不能够超过无人机u所能允许达到的最高速度;δ为一个时隙的时间长度,

Figure BDA0003710337040000044
为无人机u所能允许达到的最高速度;The constraint C6 is used to ensure that the maximum speed of the drone u cannot exceed the maximum speed that the drone u can allow; δ is the time length of a time slot,
Figure BDA0003710337040000044
is the maximum speed allowed by the drone u;

约束C7用于保证用户k在整个的的时间T内至多只能选择一个无人机作为选择卸载的边缘服务器;Constraint C7 is used to ensure that user k can only select at most one drone as the edge server to be uninstalled in the entire time T;

约束C8用于保证用户k进行部分卸载的量不能超过用户k在第i个时隙所需要处理的任务量;ρk,u[i]为用户k在第i个时隙内传输到无人机u时卸载量的部分因子;Constraint C8 is used to ensure that the amount of partial unloading performed by user k cannot exceed the amount of tasks that user k needs to process in the i-th time slot; Partial factor of the unloading amount at machine u;

约束C9用于保证用户k在第i个时隙处理部分本地数据的时间不能超过时隙时间的大小;Ck为用户k本地计算时计算1bit所需要的计算机周期。Constraint C9 is used to ensure that the time for user k to process part of the local data in the ith time slot cannot exceed the time slot time; C k is the computer cycle required to calculate 1 bit when user k calculates locally.

进一步地,所述步骤S5中,用户k在第i个时隙内用于本地计算而损耗的能量的计算过程包括:Further, in the step S5, the calculation process of the energy lost by the user k for the local calculation in the ith time slot includes:

用户k根据第i个时隙所需要花费的计算时间为:The calculation time that user k needs to spend according to the ith slot is:

Figure BDA0003710337040000045
Figure BDA0003710337040000045

式(1)中,Ck为用户k本地计算时计算1bit所需要的计算机周期;fk为用户k的计算频率;αk,u为卸载决策变量,取值为0或1;K为用户的集合;U为无人机的集合;Lk[i]为第i个时隙内用户k需要进行计算的计算量;ρk,u[i]为第i个时隙内用户k传输到无人机u时卸载量的部分因子;In formula (1), C k is the computer cycle required to calculate 1 bit when user k calculates locally; f k is the calculation frequency of user k ; U is the set of UAVs; L k [i] is the calculation amount that user k needs to perform in the i-th time slot; ρ k,u [i] is the i-th time slot that user k transmits to Partial factor of the unloading amount when the drone is u;

根据能耗公式,得到第i个时隙内,用户k用于本地计算而损耗的能量为:According to the energy consumption formula, the energy consumed by user k for local calculation in the i-th time slot is:

Figure BDA0003710337040000051
Figure BDA0003710337040000051

式(2)中,γk,u为用户k的CPU处理器晶体管的电容相关能量消耗因子。In formula (2), γ k, u is the capacitance-related energy consumption factor of the CPU processor transistor of user k.

进一步地,所述步骤S5中,用户k在第i个时隙内输送数据至无人机u所消耗的能量的计算过程包括:Further, in the step S5, the calculation process of the energy consumed by the user k to transmit data to the drone u in the ith time slot includes:

用户k在初始时隙选择卸载任务到无人机u后,在整个T时间内将此无人机当作卸载对象,在一个时隙内,有多个用户传输数据到无人机u上,并且采用时分多址通信方式;假设Wk,u[i]为在第i个时隙选择上传的任务量,根据香农公式,则传输数据大小为:After the user k selects the unloading task to the drone u in the initial time slot, the drone is regarded as the unloading object in the whole time T. In one time slot, multiple users transmit data to the drone u. And the time division multiple access communication method is adopted; assuming that W k,u [i] is the amount of tasks to be uploaded in the i-th time slot, according to the Shannon formula, the transmission data size is:

Figure BDA0003710337040000052
Figure BDA0003710337040000052

式(3)中,B为传输的带宽,N0为传输信号时的高斯白噪声,δ为一个时隙的时间长度;Ku为无人机u所负责卸载的用户数量,Pk,u为用户在第i个时隙的从用户k到无人机u的传输功率,gk,u为对应的传输功率的增益,与距离相关,定义为In formula (3), B is the transmission bandwidth, N 0 is the Gaussian white noise when transmitting the signal, δ is the time length of a time slot; Ku is the number of users unloaded by the UAV u , P k,u is the transmission power of the user from the user k to the UAV u in the i-th time slot, and g k, u is the gain of the corresponding transmission power, which is related to the distance and is defined as

Figure BDA0003710337040000053
Figure BDA0003710337040000053

式(4)中,g0为距离1m时的信道增益,λ为路径衰落指数,dk,u为用户k到无人机u的欧式距离:In formula (4), g 0 is the channel gain at a distance of 1 m, λ is the path fading index, and d k, u is the Euclidean distance from user k to UAV u:

Figure BDA0003710337040000054
Figure BDA0003710337040000054

式(5)中,xk和yk为用户k的坐标,xu和yu为无人机u的坐标,H为无人机u离地面的高度;In formula (5), x k and y k are the coordinates of the user k, x u and y u are the coordinates of the drone u, and H is the height of the drone u from the ground;

由上述的定义可知,忽略为了发送数据包而需要携带通信协议所需要的数据大小,则有:As can be seen from the above definition, ignoring the data size required to carry the communication protocol in order to send data packets, there are:

Wk,u=αk,u(1-ρk,u[i])lk[i],k∈K,u∈U (6)W k,uk,u (1-ρ k,u [i])l k [i],k∈K,u∈U (6)

进行变量代换得到传输功率,然后根据能量等于功率乘以时间得到用户发送数据包所需要的传输能量为:Perform variable substitution to obtain the transmission power, and then according to the energy equal to the power multiplied by the time, the transmission energy required by the user to send the data packet is obtained as:

Figure BDA0003710337040000061
Figure BDA0003710337040000061

Kv为每个无人机服务的用户数量;K v the number of users served by each drone;

若用户将任务卸载到无人机后,无人机将数据处理完后需返回给用户的数据量小,则忽略用户接受数据所需要的能量消耗。If the user unloads the task to the drone, and the amount of data that the drone needs to return to the user after processing the data is small, the energy consumption required by the user to accept the data is ignored.

进一步地,所述步骤S5中,无人机u在第i个时隙内所需要消耗的飞行能量的计算过程包括:Further, in the step S5, the calculation process of the flight energy that the drone u needs to consume in the ith time slot includes:

为了无人机在一个时隙的时间内能完成用户在上一个时隙传输的数据,无人机需要满足至少fu[i]以上的计算频率,才能在所定义的时间内完成计算卸载;为了满足多个用户,保证任务的正常进行,因此需要对所卸载的对象任务进行求和:In order for the UAV to complete the data transmitted by the user in the previous time slot within one time slot, the UAV needs to meet the calculation frequency of at least f u [i] or more to complete the calculation unloading within the defined time; In order to satisfy multiple users and ensure the normal progress of tasks, it is necessary to sum the unloaded object tasks:

Figure BDA0003710337040000062
Figure BDA0003710337040000062

式(8)中,Cu为无人机处理器计算1bit所需要的CPU周期;In formula (8), C u is the CPU cycle required by the UAV processor to calculate 1 bit;

在第i个时隙,无人机u为完成任务所需要的能量为:In the i-th time slot, the energy required by the UAV u to complete the task is:

Figure BDA0003710337040000063
Figure BDA0003710337040000063

考虑无人机的飞行消耗能量与无人机的飞行速度相关,假设无人机在一个时隙内的速度不变,即速度在一个时隙内只与时隙两端无人机所处的位置有关,则速度为:Considering that the flight energy consumption of the UAV is related to the flight speed of the UAV, it is assumed that the speed of the UAV in a time slot is constant, that is, the speed in a time slot is only related to the speed of the UAV at both ends of the time slot. position, the velocity is:

Figure BDA0003710337040000071
Figure BDA0003710337040000071

式(10)中,qu[i]为无人机u在第i个时隙所处的位置;In formula (10), q u [i] is the position of the drone u in the i-th time slot;

因此无人机u在第i个时隙内所需要消耗的飞行能量为:Therefore, the flight energy that the drone u needs to consume in the ith time slot is:

Figure BDA0003710337040000072
Figure BDA0003710337040000072

式(11)中,g为是无人机受力面积相关的飞行常数,m为无人机u的质量。In formula (11), g is the flight constant related to the force area of the drone, and m is the mass of the drone u.

进一步地,所述步骤S6包括:Further, the step S6 includes:

S6-1、初始化迭代数n=0,设定最大迭代数N;S6-1, initialize the number of iterations n=0, set the maximum number of iterations N;

S6-2、计算无人机的飞行轨迹;S6-2. Calculate the flight trajectory of the UAV;

S6-3、计算每个时隙的计算任务量;S6-3, calculate the calculation task amount of each time slot;

S6-4、计算每个时隙部分卸载变量;S6-4, calculate the partial unloading variable of each time slot;

S6-5、判断n是否达到最大迭代数N,若是,则输出最新的无人机的飞行轨迹、每个时隙的计算任务量、每个时隙部分卸载变量,并将输出分别对应作为最优的无人机的飞行轨迹、最优的每个时隙的计算任务量、最优的每个时隙部分卸载变量,若否,则n=n+1,并返回步骤S6-2。S6-5. Determine whether n reaches the maximum number of iterations N. If so, output the latest UAV flight trajectory, the amount of computing tasks in each time slot, and the partial unloading variable in each time slot, and use the outputs as the maximum number of iterations. The optimal flight trajectory of the UAV, the optimal amount of computing tasks per time slot, and the optimal partial unloading variable in each time slot, if not, n=n+1, and return to step S6-2.

进一步地,所述步骤S6-2包括:Further, the step S6-2 includes:

固定部分卸载变量和每个时隙用户的卸载数据大小变量得到P1问题,该问题是个凸问题,通过CVX工具箱求解得出无人机的轨迹:Fixed part of the unloading variable and the unloading data size variable of each time slot user to obtain the P1 problem, which is a convex problem, and the trajectory of the UAV is obtained by solving the CVX toolbox:

Figure BDA0003710337040000073
Figure BDA0003710337040000073

进一步地,固定轨迹变量和部分卸载变量得到P2问题,通过CVX工具箱求解得出每个时隙需要进行计算的任务量:Further, the fixed trajectory variables and partial unloading variables are used to obtain the P2 problem, and the CVX toolbox is used to solve the task amount that needs to be calculated for each time slot:

Figure BDA0003710337040000081
Figure BDA0003710337040000081

进一步地,所述步骤S6-4包括:Further, the step S6-4 includes:

固定轨迹变量和每个时隙的计算量,求出部分卸载变量:Fixing the trajectory variables and the amount of computation per time slot, find the partial unloading variables:

Figure BDA0003710337040000082
Figure BDA0003710337040000082

与现有技术相比,本方案原理及优点如下:Compared with the prior art, the principle and advantages of this scheme are as follows:

1、使用软件定义网络(SDN)这个架构收集数据并且作出算法决策,集中式地解决了多无人机和多用户的问题1. Using the software-defined network (SDN) architecture to collect data and make algorithmic decisions, centrally solve the problem of multiple drones and multiple users

2、通过全局Kmeans算法对用户进行分类,进行预处理,既解决了用户的卸载决策问题,也让后续算法的时间复杂度降低。2. The users are classified and preprocessed by the global Kmeans algorithm, which not only solves the user's uninstall decision problem, but also reduces the time complexity of the subsequent algorithm.

3、使用块坐标下降的方法解决多变量强耦合的最优化问题,使用户的能量消耗得到降低。3. Use the method of block coordinate descent to solve the optimization problem of multi-variable strong coupling, so that the user's energy consumption is reduced.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的服务作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the services required in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only For some embodiments of the present invention, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本发明一种多无人机辅助的移动边缘计算卸载方法的原理流程图;Fig. 1 is the principle flow chart of a kind of multi-UAV-assisted mobile edge computing offloading method of the present invention;

图2为多无人机多用户的数据传输及处理系统;Figure 2 is a data transmission and processing system for multiple drones and multiple users;

图3为用户群体划分的示意图。FIG. 3 is a schematic diagram of user group division.

具体实施方式Detailed ways

下面结合具体实施例对本发明作进一步说明:Below in conjunction with specific embodiment, the present invention will be further described:

地面用户由于计算能力不足,而需要将计算任务以无线通信的方式部分卸载到携带边缘服务器的无人机,即无人机帮助用户进行计算。软件定义网络(SDN)负责收集地面用户的地理位置信息和需要计算服务的信息。在该场景下,需要对地面用户的卸载策略作出决策,即用户需要卸载到哪架无人机上去,并且需要卸载的任务量为多少,同时需要对无人机的轨迹进行调度,使得用户的传输任务消耗能量和计算能量达到最小,为了解决这个多变量强耦合的问题,采用全局K-means均值聚类算法解决无人机与用户的一对多问题,之后采用块坐标下降的方法,将问题依次变为凸优化问题进行求解。Due to insufficient computing power, ground users need to partially offload computing tasks to UAVs carrying edge servers by means of wireless communication, that is, UAVs help users perform calculations. Software-Defined Networking (SDN) is responsible for collecting the geographic location information of terrestrial users and the information needed for computing services. In this scenario, it is necessary to make a decision on the unloading strategy of the ground user, that is, which drone the user needs to unload to, and how many tasks need to be unloaded. At the same time, the trajectory of the drone needs to be scheduled so that the user's The energy consumption and calculation energy of the transmission task are minimized. In order to solve this multivariate strong coupling problem, the global K-means mean clustering algorithm is used to solve the one-to-many problem between the UAV and the user. The problem in turn becomes a convex optimization problem to be solved.

如图1所示,本实施例所述的一种多无人机辅助的移动边缘计算卸载方法,包括以下步骤:As shown in FIG. 1 , the method for offloading mobile edge computing assisted by multiple UAVs described in this embodiment includes the following steps:

S1、通过软件定义网络收集地面上各个用户的位置信息;其中使用到如图2所示的系统,UAVs为无人机,SDN controller为控制器;S1. Collect the location information of each user on the ground through a software-defined network; the system shown in Figure 2 is used, where UAVs are unmanned aerial vehicles, and SDN controller is the controller;

S2、基于每个用户的位置信息,通过聚类算法分割出不同的用户群体,一个用户群体为一个区域,如图3所示;S2. Based on the location information of each user, different user groups are segmented through a clustering algorithm, and one user group is an area, as shown in Figure 3;

S3、设置多个无人机,每个无人机负责一个区域;S3. Set up multiple drones, each drone is responsible for one area;

S4、每个区域的用户与对应的无人机之间通过时分多址的通信方式传输数据,且采用部分卸载的方式处理数据,即部分数据在用户本地进行处理,另外的部分数据在无人机处进行处理;S4. Data is transmitted between the users in each area and the corresponding drones through time division multiple access communication, and the data is processed by partial unloading, that is, part of the data is processed locally by the user, and the other part of the data is unmanned. processing at the machine;

S5、构建移动边缘计算卸载模型;S5. Build a mobile edge computing offloading model;

其中,移动边缘计算卸载模型的目标函数为全部用户传输数据所需能量与用户本地计算能量所需的能量之和,即得到下面的优化问题P:Among them, the objective function of the mobile edge computing offloading model is the sum of the energy required by all users to transmit data and the energy required by the user's local computing energy, that is, the following optimization problem P is obtained:

P:P:

Figure BDA0003710337040000101
Figure BDA0003710337040000101

s.t.s.t.

Figure BDA0003710337040000102
Figure BDA0003710337040000102

Figure BDA0003710337040000103
Figure BDA0003710337040000103

C3:lk[i]>Γ,k∈KC3: l k [i]>Γ, k∈K

Figure BDA0003710337040000104
Figure BDA0003710337040000104

Figure BDA0003710337040000105
Figure BDA0003710337040000105

Figure BDA0003710337040000106
Figure BDA0003710337040000106

Figure BDA0003710337040000107
Figure BDA0003710337040000107

C8:0<=ρk,u[i]<=1,k∈K,u∈U,i∈IC8: 0<=ρ k,u [i]<=1,k∈K,u∈U,i∈I

C9:Ckρk,u[i]lk[i]/fk<=δ,k∈K,i∈IC9:C k ρ k,u [i]l k [i]/f k <=δ,k∈K,i∈I

目标函数中,

Figure BDA0003710337040000108
为用户k在第i个时隙内用于本地计算而损耗的能量,
Figure BDA0003710337040000109
为用户k在第i个时隙内输送数据至无人机u所消耗的能量;In the objective function,
Figure BDA0003710337040000108
is the energy dissipated by user k for local computation in the ith slot,
Figure BDA0003710337040000109
is the energy consumed by user k to transmit data to UAV u in the ith time slot;

约束C1式用于保证无人机u在工作时间内,卸载计算的能耗和飞行能耗小于其电池的容量;其中,U为无人机的集合;K为用户的集合;I表示将服务时长T平均分后所得到的时隙的个数;αk,u为卸载决策变量,取值为0或1;

Figure BDA00037103370400001010
为无人机u在第i个时隙内为用户k完成卸载任务所需要的能量;
Figure BDA00037103370400001011
为无人机u在第i个时隙内所需要消耗的飞行能量;τ为电池容量;The constraint C1 is used to ensure that the unloading calculation energy consumption and flight energy consumption of the drone u are less than the capacity of its battery during the working hours; among them, U is the set of drones; K is the set of users; The number of time slots obtained after the average division of the duration T; α k, u is the unloading decision variable, which takes the value of 0 or 1;
Figure BDA00037103370400001010
is the energy required for the drone u to complete the unloading task for the user k in the ith time slot;
Figure BDA00037103370400001011
is the flight energy that the drone u needs to consume in the ith time slot; τ is the battery capacity;

约束C2式用于保证在服务时长T内能处理完用户所需要的处理的数据量;lk[i]为用户k在第i个时隙内需要进行计算的计算量;Lk为用户k在服务时长T内需要完成的计算量;The constraint C2 is used to ensure that the amount of data required by the user can be processed within the service duration T; l k [i] is the amount of calculation that the user k needs to perform in the i-th time slot; L k is the user k The amount of computation that needs to be completed within the service duration T;

约束C3式用于约束用户每个时隙的计算量必须大于某个设定值;Γ为设定值;The constraint C3 formula is used to constrain the calculation amount of each time slot of the user must be greater than a certain set value; Γ is the set value;

约束C4-C5式用于规定无人机u的初始位置和最终时隙停靠的位置;

Figure BDA0003710337040000111
为无人机u的初始位置;
Figure BDA0003710337040000112
为无人机u最终时隙停靠的位置;Constraints C4-C5 are used to specify the initial position of UAV u and the final time slot docking position;
Figure BDA0003710337040000111
is the initial position of the drone u;
Figure BDA0003710337040000112
is the position where the drone u stops in the final time slot;

约束C6式用于保证无人机u的最高速度不能够超过无人机u所能允许达到的最高速度;δ为一个时隙的时间长度,

Figure BDA0003710337040000113
为无人机u所能允许达到的最高速度;The constraint C6 is used to ensure that the maximum speed of the drone u cannot exceed the maximum speed that the drone u can allow; δ is the time length of a time slot,
Figure BDA0003710337040000113
is the maximum speed allowed by the drone u;

约束C7用于保证用户k在整个的的时间T内至多只能选择一个无人机作为选择卸载的边缘服务器;Constraint C7 is used to ensure that user k can only select at most one drone as the edge server to be uninstalled in the entire time T;

约束C8用于保证用户k进行部分卸载的量不能超过用户k在第个i时隙所需要处理的任务量;ρk,u[i]为用户k在第i个时隙内传输到无人机u时卸载量的部分因子;Constraint C8 is used to ensure that the amount of partial unloading performed by user k cannot exceed the amount of tasks that user k needs to process in the i-th time slot; Partial factor of the unloading amount at machine u;

约束C9用于保证用户k在第i个时隙处理部分本地数据的时间不能超过时隙时间的大小;Ck为用户k本地计算时计算1bit所需要的计算机周期。Constraint C9 is used to ensure that the time for user k to process part of the local data in the ith time slot cannot exceed the time slot time; C k is the computer cycle required to calculate 1 bit when user k calculates locally.

上述中,用户k在第i个时隙内用于本地计算而损耗的能量的计算过程包括:In the above, the calculation process of the energy lost by user k for local calculation in the ith time slot includes:

用户k根据第i个时隙所需要花费的计算时间为:The calculation time that user k needs to spend according to the ith slot is:

Figure BDA0003710337040000114
Figure BDA0003710337040000114

式(1)中,Ck为用户k本地计算时计算1bit所需要的计算机周期;fk为用户k的计算频率;αk,u为卸载决策变量,取值为0或1;K为用户的集合;U为无人机的集合;Lk[i]为第i个时隙内用户k需要进行计算的计算量;ρk,u[i]为第i个时隙内用户k传输到无人机u时卸载量的部分因子;In formula (1), C k is the computer cycle required to calculate 1 bit when user k calculates locally; f k is the calculation frequency of user k ; U is the set of UAVs; L k [i] is the calculation amount that user k needs to perform in the i-th time slot; ρ k,u [i] is the i-th time slot that user k transmits to Partial factor of the unloading amount when the drone is u;

根据能耗公式,得到第i个时隙内,用户k用于本地计算而损耗的能量为:According to the energy consumption formula, the energy consumed by user k for local calculation in the i-th time slot is:

Figure BDA0003710337040000115
Figure BDA0003710337040000115

式(2)中,γk,u为用户k的CPU处理器晶体管的电容相关能量消耗因子。In formula (2), γ k, u is the capacitance-related energy consumption factor of the CPU processor transistor of user k.

上述中,用户k在第i个时隙内输送数据至无人机u所消耗的能量的计算过程包括:In the above, the calculation process of the energy consumed by the user k to transmit data to the drone u in the ith time slot includes:

用户k在初始时隙选择卸载任务到无人机u后,在整个T时间内将此无人机当作卸载对象,在一个时隙内,有多个用户传输数据到无人机u上,并且采用时分多址通信方式;假设Wk,u[i]为在第个i时隙选择上传的任务量,根据香农公式,则传输数据大小为:After the user k selects the unloading task to the drone u in the initial time slot, the drone is regarded as the unloading object in the whole time T. In one time slot, multiple users transmit data to the drone u. And the time division multiple access communication method is adopted; assuming that W k,u [i] is the amount of tasks to be uploaded in the i-th time slot, according to Shannon's formula, the transmission data size is:

Figure BDA0003710337040000121
Figure BDA0003710337040000121

式(3)中,B为传输的带宽,N0为传输信号时的高斯白噪声,δ为一个时隙的时间长度;Ku为无人机u所负责卸载的用户数量,Pk,u为用户在第i个时隙的从用户k到无人机u的传输功率,gk,u为对应的传输功率的增益,与距离相关,定义为In formula (3), B is the transmission bandwidth, N 0 is the Gaussian white noise when transmitting the signal, δ is the time length of a time slot; Ku is the number of users unloaded by the UAV u , P k,u is the transmission power of the user from the user k to the UAV u in the i-th time slot, and g k, u is the gain of the corresponding transmission power, which is related to the distance and is defined as

Figure BDA0003710337040000122
Figure BDA0003710337040000122

式(4)中,g0为距离1m时的信道增益,λ为路径衰落指数,dk,u为用户k到无人机u的欧式距离:In formula (4), g 0 is the channel gain at a distance of 1 m, λ is the path fading index, and d k, u is the Euclidean distance from user k to UAV u:

Figure BDA0003710337040000123
Figure BDA0003710337040000123

式(5)中,xk和yk为用户k的坐标,xu和yu为无人机u的坐标,H为无人机u离地面的高度;In formula (5), x k and y k are the coordinates of the user k, x u and y u are the coordinates of the drone u, and H is the height of the drone u from the ground;

由上述的定义可知,忽略为了发送数据包而需要携带通信协议所需要的数据大小,则有:As can be seen from the above definition, ignoring the data size required to carry the communication protocol in order to send data packets, there are:

Wk,u=αk,u(1-ρk,u[i])lk[i],k∈K,u∈U (6)W k,uk,u (1-ρ k,u [i])l k [i],k∈K,u∈U (6)

进行变量代换得到传输功率,然后根据能量等于功率乘以时间得到用户发送数据包所需要的传输能量为:Perform variable substitution to obtain the transmission power, and then according to the energy equal to the power multiplied by the time, the transmission energy required by the user to send the data packet is obtained as:

Figure BDA0003710337040000131
Figure BDA0003710337040000131

Kv为每个无人机服务的用户数量;K v the number of users served by each drone;

若用户将任务卸载到无人机后,无人机将数据处理完后需返回给用户的数据量小,则忽略用户接受数据所需要的能量消耗。If the user unloads the task to the drone, and the amount of data that the drone needs to return to the user after processing the data is small, the energy consumption required by the user to accept the data is ignored.

上述中,无人机u在第i个时隙内所需要消耗的飞行能量的计算过程包括:In the above, the calculation process of the flight energy that the drone u needs to consume in the ith time slot includes:

为了无人机在一个时隙的时间内能完成用户在上一个时隙传输的数据,无人机需要满足至少fu[i]以上的计算频率,才能在所定义的时间内完成计算卸载;为了满足多个用户,保证任务的正常进行,因此需要对所卸载的对象任务进行求和:In order for the UAV to complete the data transmitted by the user in the previous time slot within one time slot, the UAV needs to meet the calculation frequency of at least f u [i] or more to complete the calculation unloading within the defined time; In order to satisfy multiple users and ensure the normal progress of tasks, it is necessary to sum the unloaded object tasks:

Figure BDA0003710337040000132
Figure BDA0003710337040000132

式(8)中,Cu为无人机处理器计算1bit所需要的CPU周期;In formula (8), C u is the CPU cycle required by the UAV processor to calculate 1 bit;

在第i个时隙,无人机u为完成任务所需要的能量为:In the i-th time slot, the energy required by the UAV u to complete the task is:

Figure BDA0003710337040000133
Figure BDA0003710337040000133

考虑无人机的飞行消耗能量与无人机的飞行速度相关,假设无人机在一个时隙内的速度不变,即速度在一个时隙内只与时隙两端无人机所处的位置有关,则速度为:Considering that the flight energy consumption of the UAV is related to the flight speed of the UAV, it is assumed that the speed of the UAV in a time slot is constant, that is, the speed in a time slot is only related to the speed of the UAV at both ends of the time slot. position, the velocity is:

Figure BDA0003710337040000134
Figure BDA0003710337040000134

式(10)中,qu[i]为无人机u在第i个时隙所处的位置;In formula (10), q u [i] is the position of the drone u in the i-th time slot;

因此无人机u在第i个时隙内所需要消耗的飞行能量为:Therefore, the flight energy that the drone u needs to consume in the ith time slot is:

Figure BDA0003710337040000135
Figure BDA0003710337040000135

式(11)中,g为是无人机受力面积相关的飞行常数,m为无人机u的质量。In formula (11), g is the flight constant related to the force area of the drone, and m is the mass of the drone u.

S6、对步骤S5构建的移动边缘计算卸载模型进行优化,得到最优的无人机飞行轨迹、最优的每个时隙的计算任务量、最优的每个时隙部分卸载变量;S6, optimizing the mobile edge computing unloading model constructed in step S5, to obtain the optimal UAV flight trajectory, the optimal computing task amount for each time slot, and the optimal partial unloading variable for each time slot;

本步骤具体包括:This step specifically includes:

S6-1、初始化迭代数n=0,设定最大迭代数N;S6-1, initialize the number of iterations n=0, set the maximum number of iterations N;

S6-2、计算无人机的飞行轨迹:S6-2. Calculate the flight trajectory of the UAV:

固定部分卸载变量和每个时隙用户的卸载数据大小变量得到P1问题,该问题是个凸问题,通过CVX工具箱求解得出无人机的轨迹:Fixed part of the unloading variable and the unloading data size variable of each time slot user to obtain the P1 problem, which is a convex problem, and the trajectory of the UAV is obtained by solving the CVX toolbox:

Figure BDA0003710337040000141
Figure BDA0003710337040000141

S6-3、计算每个时隙的计算任务量:S6-3. Calculate the amount of computing tasks in each time slot:

固定轨迹变量和部分卸载变量得到P2问题,通过CVX工具箱求解得出每个时隙需要进行计算的任务量:Fixed trajectory variables and partial unloading variables get the P2 problem, and the CVX toolbox is used to solve the task amount that needs to be calculated for each time slot:

Figure BDA0003710337040000142
Figure BDA0003710337040000142

S6-4、计算每个时隙部分卸载变量:S6-4. Calculate the partial unloading variable of each time slot:

固定轨迹变量和每个时隙的计算量,求出部分卸载变量:Fixing the trajectory variables and the amount of computation per time slot, find the partial unloading variables:

Figure BDA0003710337040000151
Figure BDA0003710337040000151

S6-5、判断n是否达到最大迭代数N,若是,则输出最新的无人机的飞行轨迹、每个时隙的计算任务量、每个时隙部分卸载变量,并将输出分别对应作为最优的无人机的飞行轨迹、最优的每个时隙的计算任务量、最优的每个时隙部分卸载变量,若否,则n=n+1,并返回步骤S6-2。S6-5. Determine whether n reaches the maximum number of iterations N. If so, output the latest UAV flight trajectory, the amount of computing tasks in each time slot, and the partial unloading variable in each time slot, and use the outputs as the maximum number of iterations. The optimal flight trajectory of the UAV, the optimal amount of computing tasks per time slot, and the optimal partial unloading variable in each time slot, if not, n=n+1, and return to step S6-2.

S7、依据最优的无人机飞行轨迹、最优的每个时隙的计算任务量、最优的每个时隙部分卸载变量进行多无人机辅助的移动边缘计算卸载。S7. Perform multi-UAV-assisted mobile edge computing offloading according to the optimal UAV flight trajectory, the optimal computing task amount per time slot, and the optimal partial unloading variable of each time slot.

以上所述之实施例子只为本发明之较佳实施例,并非以此限制本发明的实施范围,故凡依本发明之形状、原理所作的变化,均应涵盖在本发明的保护范围内。The above-mentioned embodiments are only preferred embodiments of the present invention, and are not intended to limit the scope of implementation of the present invention. Therefore, any changes made according to the shape and principle of the present invention should be included within the protection scope of the present invention.

Claims (9)

1. A multi-unmanned aerial vehicle assisted mobile edge computing unloading method is characterized by comprising the following steps:
s1, collecting the position information of each user on the ground through a software defined network;
s2, based on the position information of each user, segmenting different user groups through a clustering algorithm, wherein one user group is an area;
s3, arranging a plurality of unmanned aerial vehicles, wherein each unmanned aerial vehicle is in charge of an area;
s4, data are transmitted between the users in each area and the corresponding unmanned aerial vehicles in a time division multiple access communication mode, and data are processed in a partial unloading mode, namely, part of data are processed locally by the users, and the other part of data are processed by the unmanned aerial vehicles;
s5, constructing a mobile edge calculation unloading model;
s6, optimizing the moving edge calculation unloading model constructed in the step S5 to obtain an optimal unmanned aerial vehicle flight path, an optimal calculation task amount of each time slot and an optimal partial unloading variable of each time slot;
and S7, carrying out multi-unmanned aerial vehicle assisted mobile edge calculation unloading according to the optimal unmanned aerial vehicle flight path, the optimal calculation task amount of each time slot and the optimal partial unloading variable of each time slot.
2. The method for offloading computation of mobile edge assisted by multiple drones according to claim 1, wherein in step S5, the objective function of the model for offloading computation of mobile edge is the sum of energy required for data transmission of all users and energy required for local computation of energy of users, which is to say, the following optimization problem P is obtained:
P:
Figure FDA0003710337030000011
s.t.
C1:
Figure FDA0003710337030000012
C2:
Figure FDA0003710337030000013
C3:l k [i]>Γ,k∈K
C4:
Figure FDA0003710337030000014
C5:
Figure FDA0003710337030000021
C6:
Figure FDA0003710337030000022
C7:
Figure FDA0003710337030000023
C8:0<=ρ k,u [i]<=1,k∈K,u∈U,i∈I
C9:C k ρ k,u [i]l k [i]/f k <=δ,k∈K,i∈I
in the objective function, the target function is,
Figure FDA0003710337030000024
the energy lost for user k to use for local computation in the ith slot,
Figure FDA0003710337030000025
energy consumed by user k to transmit data to unmanned aerial vehicle u in ith time slot;
the constraint C1 type is used for ensuring that the energy consumption of unloading calculation and flight energy consumption of the unmanned aerial vehicle u are smaller than the capacity of a battery of the unmanned aerial vehicle u in the working time; wherein U is a set of unmanned aerial vehicles; k is a set of users; i denotes to average the service duration TThe number of the time slots obtained after the averaging; alpha is alpha k,u Taking the value of 0 or 1 for the unloading decision variable;
Figure FDA0003710337030000026
the energy required by the unmanned aerial vehicle u to complete the unloading task for the user k in the ith time slot;
Figure FDA0003710337030000027
flight energy required to be consumed by the unmanned aerial vehicle u in the ith time slot; τ is the battery capacity;
constraint C2 is used to ensure that the data amount required by the user can be processed within the service duration T; l k [i]Calculating the amount of calculation required to be carried out in the ith time slot for the user k; l is a radical of an alcohol k Calculating the amount of calculation required to be completed by a user k within a service time length T;
constraint C3 is used to constrain the amount of computation per time slot of the user to be greater than a set value; gamma is a set value;
constraints C4-C5 are used to specify the initial position of drone u and the position of the final slotted landing;
Figure FDA0003710337030000028
is the initial position of drone u;
Figure FDA0003710337030000029
the position of the unmanned plane u for the final time slot stop;
constraint C6 is used to ensure that the maximum speed of drone u cannot exceed the maximum speed that drone u can allow to reach; delta is the length of time of one time slot,
Figure FDA00037103370300000210
the highest speed that the unmanned plane u can allow to reach;
constraint C7 is used to ensure that user k can only select one drone at most as an edge server to choose to offload during the entire time T;
constraint C8 is used to ensure that user k partially offloadsThe amount of the user k cannot exceed the task amount required to be processed by the user k in the ith time slot; rho k,u [i]The partial factors of the unloading amount when the user k transmits to the unmanned plane u in the ith time slot are shown;
constraint C9 is used to ensure that the time for user k to process partial local data at the ith slot cannot exceed the slot time; c k The computer period required for calculating 1bit when the user k calculates locally.
3. The method of claim 2, wherein in step S5, the step of calculating the energy consumed by user k for local calculation in the ith time slot includes:
the computation time that the user k needs to spend according to the ith time slot is as follows:
Figure FDA0003710337030000031
in the formula (1), C k Calculating a computer period required by 1bit during local calculation for a user k; f. of k Calculating a frequency for user k; alpha is alpha k,u Taking the value of 0 or 1 for the unloading decision variable; k is a set of users; u is the set of unmanned aerial vehicles; l is k [i]The calculated amount needed to be calculated for the user k in the ith time slot; rho k,u [i]Partial factors of the unloading capacity when the user k in the ith time slot transmits to the unmanned plane u;
according to the energy consumption formula, the energy consumed by the user k for local calculation in the ith time slot is obtained as follows:
Figure FDA0003710337030000032
in the formula (2), gamma k,u The capacitance dependent energy dissipation factor of the CPU processor transistor for user k.
4. The method of claim 2, wherein the step S5 of calculating the energy consumed by the user k to deliver data to the drone u in the ith time slot includes:
after a user k selects an unloading task to an unmanned aerial vehicle u in an initial time slot, taking the unmanned aerial vehicle as an unloading object in the whole T time, transmitting data to the unmanned aerial vehicle u by a plurality of users in one time slot, and adopting a time division multiple access communication mode; suppose W k,u [i]Selecting the uploaded task amount in the ith time slot, and according to a shannon formula, the size of the transmitted data is as follows:
Figure FDA0003710337030000041
in formula (3), B is the transmission bandwidth, N 0 Is white gaussian noise when transmitting signals, delta is the time length of one time slot; k u Number of users, P, responsible for offloading for UAV u k,u For the transmission power of user k to drone u in ith slot, g k,u The gain for the corresponding transmission power, which is distance-dependent, is defined as
Figure FDA0003710337030000042
In the formula (4), g 0 Is the channel gain at a distance of 1m, λ is the path fading index, d k,u The Euclidean distance from the user k to the unmanned plane u is as follows:
Figure FDA0003710337030000043
in the formula (5), x k And y k As the coordinates of user k, x u And y u Is the coordinate of the unmanned plane u, and H is the height of the unmanned plane u from the ground;
ignoring the data size needed to carry the communication protocol in order to send a packet, there are:
W k,u =α k,u (1-ρ k,u [i])l k [i],k∈K,u∈U (6)
carrying out variable substitution to obtain transmission power, and then obtaining the transmission energy required by a user for sending a data packet according to the fact that the energy is equal to the power multiplied by time:
Figure FDA0003710337030000044
K v the number of users served for each drone;
if the data amount required to be returned to the user after the unmanned aerial vehicle processes the data is small after the user unloads the task to the unmanned aerial vehicle, the energy consumption required by the user to receive the data is ignored.
5. The method of claim 2, wherein in step S5, the calculation process of the flight energy required to be consumed by the drone u in the ith time slot includes:
in order for an unmanned aerial vehicle to complete data transmitted in the last time slot by a user within the time of one time slot, the unmanned aerial vehicle needs to satisfy at least f u [i]The calculation frequency is above, the calculation unloading can be completed within the defined time; in order to satisfy multiple users and ensure the normal operation of tasks, the unloaded object tasks need to be summed:
Figure FDA0003710337030000051
in formula (8), C u Calculating the CPU period required by 1bit for the unmanned aerial vehicle processor;
in the ith time slot, the energy required by the unmanned plane u to complete the task is as follows:
Figure FDA0003710337030000052
considering that flight energy consumption of the unmanned aerial vehicle is related to the flight speed of the unmanned aerial vehicle, assuming that the speed of the unmanned aerial vehicle in a time slot is unchanged, that is, the speed in a time slot is only related to the positions of the unmanned aerial vehicles at the two ends of the time slot, the speed is:
Figure FDA0003710337030000053
in the formula (10), q u [i]The position of the unmanned plane u in the ith time slot is determined;
therefore, the flight energy that the unmanned plane u needs to consume in the ith time slot is:
Figure FDA0003710337030000054
in the formula (11), g is a flight constant related to the stress area of the unmanned aerial vehicle, and m is the mass of the unmanned aerial vehicle u.
6. The method of claim 2, wherein the step S6 includes:
s6-1, setting the number of initialization iterations N as 0, and setting the maximum number of iterations N;
s6-2, calculating the flight track of the unmanned aerial vehicle;
s6-3, calculating the calculation task amount of each time slot;
s6-4, calculating each time slot partial unloading variable;
and S6-5, judging whether N reaches the maximum iteration number N, if so, outputting the latest flight path of the unmanned aerial vehicle, the calculation task amount of each time slot and each time slot partial unloading variable, and outputting the output to be used as the optimal flight path of the unmanned aerial vehicle, the optimal calculation task amount of each time slot and the optimal each time slot partial unloading variable respectively, if not, N is N +1, and returning to the step S6-2.
7. The method of claim 6, wherein the step S6-2 includes:
the fixed partial offload variable and the offload data size variable for each time slot user result in a P1 problem, which is a convex problem that is solved by the CVX toolbox to arrive at the trajectory of the drone:
Figure FDA0003710337030000061
8. the method of claim 6, wherein the step S6-3 includes:
and (3) obtaining a P2 problem by fixing the track variables and the partial unloading variables, and solving by a CVX tool box to obtain the task quantity required to be calculated in each time slot:
Figure FDA0003710337030000062
9. the method of claim 6, wherein the step S6-4 comprises:
and (3) fixing the track variable and the calculated amount of each time slot, and solving a partial unloading variable:
Figure FDA0003710337030000071
CN202210718376.0A 2022-06-23 2022-06-23 A Multi-UAV Assisted Offloading Method for Mobile Edge Computing Active CN115134370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210718376.0A CN115134370B (en) 2022-06-23 2022-06-23 A Multi-UAV Assisted Offloading Method for Mobile Edge Computing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210718376.0A CN115134370B (en) 2022-06-23 2022-06-23 A Multi-UAV Assisted Offloading Method for Mobile Edge Computing

Publications (2)

Publication Number Publication Date
CN115134370A true CN115134370A (en) 2022-09-30
CN115134370B CN115134370B (en) 2023-06-02

Family

ID=83379741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210718376.0A Active CN115134370B (en) 2022-06-23 2022-06-23 A Multi-UAV Assisted Offloading Method for Mobile Edge Computing

Country Status (1)

Country Link
CN (1) CN115134370B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116339994A (en) * 2023-03-27 2023-06-27 南京邮电大学 Optimization method of unmanned aerial vehicle auxiliary mobile edge computing system based on user cooperation and wireless power transmission
CN116669051A (en) * 2023-05-31 2023-08-29 中国人民解放军陆军工程大学 Tactical self-organizing network edge computing framework based on game theory
CN116862152A (en) * 2023-06-19 2023-10-10 广东电网有限责任公司汕尾供电局 Load balancing-based task allocation method for power tower acceptance unmanned aerial vehicle
CN119277452A (en) * 2024-11-04 2025-01-07 吉林大学 An optimization method for multi-UAV assisted mobile edge computing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108966286A (en) * 2018-07-11 2018-12-07 郑州航空工业管理学院 Unmanned plane assists mobile edge calculations system and its information bit distribution method
CN110207712A (en) * 2019-07-02 2019-09-06 南京理工大学 The unmanned plane paths planning method reached based on edge calculations dynamic task
CN111885504A (en) * 2020-08-05 2020-11-03 广州大学 Unmanned aerial vehicle track optimization method for assisting wireless communication of mobile vehicle
CN113709883A (en) * 2021-08-30 2021-11-26 北京邮电大学 Dynamic resource allocation method and device under multi-unmanned-aerial-vehicle-assisted industrial scene

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108966286A (en) * 2018-07-11 2018-12-07 郑州航空工业管理学院 Unmanned plane assists mobile edge calculations system and its information bit distribution method
CN110207712A (en) * 2019-07-02 2019-09-06 南京理工大学 The unmanned plane paths planning method reached based on edge calculations dynamic task
CN111885504A (en) * 2020-08-05 2020-11-03 广州大学 Unmanned aerial vehicle track optimization method for assisting wireless communication of mobile vehicle
CN113709883A (en) * 2021-08-30 2021-11-26 北京邮电大学 Dynamic resource allocation method and device under multi-unmanned-aerial-vehicle-assisted industrial scene

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116339994A (en) * 2023-03-27 2023-06-27 南京邮电大学 Optimization method of unmanned aerial vehicle auxiliary mobile edge computing system based on user cooperation and wireless power transmission
CN116339994B (en) * 2023-03-27 2025-04-25 南京邮电大学 Optimization method of unmanned aerial vehicle auxiliary mobile edge computing system based on user cooperation and wireless power transmission
CN116669051A (en) * 2023-05-31 2023-08-29 中国人民解放军陆军工程大学 Tactical self-organizing network edge computing framework based on game theory
CN116862152A (en) * 2023-06-19 2023-10-10 广东电网有限责任公司汕尾供电局 Load balancing-based task allocation method for power tower acceptance unmanned aerial vehicle
CN116862152B (en) * 2023-06-19 2024-03-05 广东电网有限责任公司汕尾供电局 A load balancing-based task allocation method for power pole tower acceptance drones
CN119277452A (en) * 2024-11-04 2025-01-07 吉林大学 An optimization method for multi-UAV assisted mobile edge computing
CN119277452B (en) * 2024-11-04 2025-05-23 吉林大学 An optimization method for multi-UAV assisted mobile edge computing

Also Published As

Publication number Publication date
CN115134370B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
CN115134370A (en) Multi-unmanned-aerial-vehicle-assisted mobile edge calculation unloading method
CN112104502B (en) Time-sensitive multitask edge computing and cache cooperation unloading strategy method
CN110602633B (en) Explosive flow-oriented mobile edge computing unmanned aerial vehicle cluster auxiliary communication method
CN112118287B (en) Optimal Scheduling Decision Method for Network Resources Based on Alternating Direction Multiplier Algorithm and Mobile Edge Computing
CN112784362B (en) A hybrid optimization method and system for drone-assisted edge computing
CN110493757B (en) Mobile edge computing unloading method for reducing system energy consumption under single server
CN109905470A (en) A cost-optimized task scheduling method based on edge gateway system
CN112381265B (en) UAV-based charging and task unloading system and its task time-consuming optimization method
CN113452956B (en) Intelligent distribution method and system for power transmission line inspection tasks
CN111757361B (en) A UAV-assisted task offloading method in fog network
CN113254188B (en) Scheduling optimization method and device, electronic equipment and storage medium
CN111629443B (en) Optimization method and system for dynamic spectrum slicing frame in super 5G Internet of vehicles
CN113114738B (en) SDN-based optimization method for internet of vehicles task unloading
CN108966286A (en) Unmanned plane assists mobile edge calculations system and its information bit distribution method
CN114630397B (en) Unmanned aerial vehicle access selection method based on time slot division
CN115134364B (en) Energy-saving computing offload system and method based on O-RAN Internet of Things system
CN116916383A (en) Task data processing method, device, storage medium, unmanned aerial vehicle and base station
CN115665798A (en) A problem decoupling method for long-term task offloading optimization of air-ground 6G network
Chen et al. Vehicular Edge Computing Networks Optimization via DRL-Based Communication Resource Allocation and Load Balancing
CN118250720A (en) Resource allocation and task unloading optimization method based on edge calculation
CN111784029A (en) A fog node resource allocation method
CN117412262A (en) Air-ground vehicle networking collaborative computing problem decoupling method based on URLLC perception
CN117528655A (en) Multi-unmanned aerial vehicle auxiliary multi-vehicle edge calculation method and system
CN116528301A (en) A Robustness-Based Multi-UAV Assisted Mobile Edge Computing Method
CN113840329B (en) Collaborative computing and cache scheduling policy method and system in unmanned aerial vehicle network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant