CN112437468A - Task unloading algorithm based on time delay and energy consumption weight calculation - Google Patents
Task unloading algorithm based on time delay and energy consumption weight calculation Download PDFInfo
- Publication number
- CN112437468A CN112437468A CN202011048168.1A CN202011048168A CN112437468A CN 112437468 A CN112437468 A CN 112437468A CN 202011048168 A CN202011048168 A CN 202011048168A CN 112437468 A CN112437468 A CN 112437468A
- Authority
- CN
- China
- Prior art keywords
- task
- energy consumption
- time delay
- unloading
- algorithm
- 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.)
- Pending
Links
- 238000005265 energy consumption Methods 0.000 title claims abstract description 39
- 238000004422 calculation algorithm Methods 0.000 title claims abstract description 21
- 238000004364 calculation method Methods 0.000 title claims abstract description 16
- 238000013468 resource allocation Methods 0.000 claims abstract description 13
- 238000005457 optimization Methods 0.000 claims abstract description 6
- 238000000034 method Methods 0.000 claims description 11
- 239000011159 matrix material Substances 0.000 claims description 6
- 230000035945 sensitivity Effects 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000012163 sequencing technique Methods 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 claims description 2
- 230000000747 cardiac effect Effects 0.000 claims description 2
- 238000003860 storage Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/18—Negotiating wireless communication parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/18—Negotiating wireless communication parameters
- H04W28/22—Negotiating communication rate
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
The invention provides a task unloading algorithm based on time delay and energy consumption weight calculation aiming at calculating time delay and energy consumption weight coefficients of task execution and solving the problem of task unloading of mobile terminal equipment in mobile edge calculation, and aims to reduce the task execution overhead of the terminal equipment according to user requirements and the electric quantity state of the equipment. The algorithm provides a task unloading and resource allocation strategy based on limited energy and time delay aiming at computation unloading and computation energy consumption coefficient of a task under a single MEC multi-user scene. And solving the optimal allocation resources of the local equipment, solving the resource allocation of the MEC end by utilizing convex optimization, and obtaining the optimal channel allocation through an iterative optimization algorithm on the basis of meeting the time delay and the energy consumption. The unloading scheme provided by the invention can minimize the time delay and energy consumption of the user, meet the user requirements and improve the user experience quality.
Description
Technical Field
The invention belongs to the field of task unloading of mobile edge computing, and particularly relates to a task unloading algorithm based on time delay and energy consumption weight computing.
Background
With the development of the internet of things and the arrival of the world of everything interconnection, more and more terminal devices are applied to our lives, but the existing technology and the design limit of the terminal device manufacture limit the computing resources and the battery capacity of the mobile device. The requirements of current emerging mobile applications such as interactive games, augmented reality and the like on calculation and storage are higher and higher, and when the applications run on terminal equipment, the requirements of tasks on processing capacity and cruising capacity are sometimes difficult to meet. When a large amount of calculation programs are operated, the response is slow, the power consumption is fast, and the user experience quality is difficult to meet.
How to solve the contradiction between the limited resources of the mobile terminal equipment and the computing resources required by the application process becomes one of the main problems to be solved urgently in the mobile communication network. The computation offload technique in the mobile edge computation is considered as one of the key techniques to effectively solve the above-described problems. The mobile edge computing does not need to upload the task to a far-end central cloud, but unloads the task to an edge server close to the user terminal, so that transmission delay and energy consumption are greatly reduced, and the problem of resource limitation of the mobile terminal can be effectively solved.
For task unloading, a good unloading method or strategy can not only effectively meet the user requirements, improve the service quality of the user, but also greatly reduce the complexity. Therefore, it is necessary to provide a task offloading algorithm based on time delay and energy consumption weight calculation.
Disclosure of Invention
The invention aims to: aiming at the task unloading problem of mobile terminal equipment in mobile edge calculation, a task unloading algorithm based on time delay and energy consumption weight calculation is provided, and the task execution overhead of the terminal equipment is reduced according to user requirements and the electric quantity state of the equipment. In order to achieve the purpose, the technical scheme adopted by the invention comprises the following parts:
1. a task unloading algorithm based on time delay and energy consumption weight calculation specifically comprises the following implementation steps:
step 1, each terminal device has a task to be processed, the device submits the task, and the time delay and the energy consumption coefficient of the task in the device are respectively calculated.
And 2, performing local optimal resource allocation on the tasks in the equipment.
Step 3, initially unloading all tasks to an MEC server for execution, and setting a for all tasksi=1。
And 4, performing optimal resource allocation on the tasks needing to be unloaded to the MEC server for execution.
And 5, carrying out channel allocation according to the algorithm 1.
And 6, making an unloading decision according to the cost of each task at the MEC end and the local end.
And 7, judging whether the unloading decision is changed or not, and if not, stopping the algorithm. Otherwise, the process goes to step 4.
2. The time delay and energy consumption weight calculation of step 1 of claim 1, wherein:
remember REciThe residual ratio of the electric quantity of the terminal equipment is as follows:
from which the coefficient of energy consumption Ec is setiThat is, the smaller the value of the remaining power is in proportion to the maximum power of the terminal device, the stronger the demand for reducing the energy consumption is.
Determining the urgency of the task according to the task deadline, the size of the task and the required computing capacity, and recording as TcriIn this document, the urgency of the task is characterized as the sensitivity of the task to the time delay, and the smaller the numerical value, the higher the sensitivity of the task to the time delay.
Thereby obtaining the time delay coefficient Tci:
Because the weight coefficient of the time delay and the energy consumption needs to satisfy the condition: eci+TciFor this purpose, the weight coefficient is corrected to obtain a delay weight coefficient leiAnd energy consumption weight coefficient lti。
3. The cardiac channel allocation of step 5 of claim 1, wherein:
when selecting the channel, the following strategies are adopted:
and sequencing all tasks to be unloaded according to the formula (7), and sequentially calculating the minimum transmission rate required by each task. And calculating the reachable rate of each task on any channel according to the formula (8) to form a rate overhead matrix.
Initial channel selection was performed using the Argmax function:
j=argmax(Ri,j) (10)
thereby forming a decision matrix. From the second iteration, the channel selection is performed again according to the equations (9) and (10) according to the channel selected by the previous generation.
The task unloading method provided by the invention has the following advantages and beneficial effects: according to the method, the user experience and the self condition of the equipment are considered, the optimal resource allocation of the local equipment is solved, the resource allocation of the MEC end is solved by utilizing convex optimization, the optimal channel allocation is obtained through an iterative optimization algorithm on the basis of meeting the time delay and the energy consumption, the time delay and the energy consumption of a user can be minimized through the unloading scheme, the user requirement is met, and the user experience quality is improved.
Drawings
Fig. 1 is a flowchart of a task offloading algorithm based on delay and energy consumption weight calculation according to the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical problems, technical solutions and technical effects in the present application, a task offloading algorithm based on time delay and energy consumption weight calculation according to the present invention is further described in detail below with reference to the accompanying drawings and the detailed description.
FIG. 1 shows the steps of the present invention:
step 1, each terminal device has a task to be processed, the device submits the task, and the time delay and the energy consumption coefficient of the task in the device are respectively calculated. The set of terminal devices is denoted N ═ SMD1,...,SMDi,...,SMDn]Wherein each terminal device has three attributes, denoted asfi lRepresenting the computational power of the device, i.e. the number of cycles performed in one second. EleciRepresenting the current remaining capacity of the device in joules.Representing the maximum charge storage capacity of the device in joules. Each terminal device has a computationally intensive task to be processed, denoted Ti=[expti,datai,ci]Wherein, exptiData representing expected completion timeiIndicating the size of the data volume, ciIndicating the computational power required to complete the task, i.e., the number of cpu cycles required.
Remember REciThe residual ratio of the electric quantity of the terminal equipment is as follows:
from which the coefficient of energy consumption Ec is setiThat is, the smaller the value of the remaining power is in proportion to the maximum power of the terminal device, the stronger the demand for reducing the energy consumption is.
Determining the urgency of the task according to the task deadline, the size of the task and the required computing capacity, and recording as TcriIn this document, the urgency of the task is characterized as the sensitivity of the task to the time delay, and the smaller the numerical value, the higher the sensitivity of the task to the time delay.
Thereby obtaining the time delay coefficient Tci:
Because the weight coefficient of the time delay and the energy consumption needs to satisfy the condition: eci+TciFor this purpose, the weight coefficient is corrected to obtain a delay weight coefficient leiAnd energy consumption weight coefficient lti。
And 2, performing local optimal resource allocation on the tasks in the equipment.
Each local device resource allocation problem can be formalized as:
it can be seen that the local overhead is only related to the local device computing resources. Order:
wherein the formula (9) satisfies the time delay and remaining energy consumption constraint conditions. Therefore, we have a look at f in the above formulai lAnd (5) derivation to obtain:
obtaining an optimal solution:
when fi l>fi max,fi l<fi minAnd the time delay and energy consumption constraints are not satisfied.
When fi min≤fi l≤fi maxIn time, three situations are distinguished, specifically:
step 3, initially unloading all tasks to an MEC server for execution, and setting a for all tasksi=1。
And 4, performing optimal resource allocation on the tasks needing to be unloaded to the MEC server for execution according to the formula (13).
And 5, carrying out channel allocation according to the algorithm 1.
When selecting the channel, the following strategies are adopted:
and sequencing all tasks to be unloaded according to the formula (7), and sequentially calculating the minimum transmission rate required by each task. And calculating the reachable rate of each task on any channel according to the formula (8) to form a rate overhead matrix.
Initial channel selection was performed using the Argmax function:
j=argmax(Ri,j) (10)
thereby forming a decision matrix. From the second iteration, the channel selection is performed again according to the equations (9) and (10) according to the channel selected by the previous generation.
And 6, making an unloading decision according to the cost of each task at the MEC end and the local end. If the local execution overhead is less than or equal to the offload overhead, i.e., if the local execution overhead is less than or equal to the offload overheadThen aiWith 0, the task is executed locally.
If the local execution overhead is greater than the offload overhead, i.e., if the local execution overhead is greater than the offload overheadThen aiAnd 1, unloading the task to the MEC server for execution.
And 7, judging whether the unloading decision is changed or not, and if not, stopping the algorithm. Otherwise, the process goes to step 4.
The above examples are only used to illustrate the present invention and not to limit the technical solutions described in the present invention, and it should be understood by those skilled in the art that the task offloading algorithm based on the time delay and energy consumption weight calculation disclosed in the above invention may be modified on the basis of the above without departing from the broad scope, and these modifications are also considered as protection of the present invention.
Claims (3)
1. A task unloading algorithm based on time delay and energy consumption weight calculation specifically comprises the following implementation steps:
step 1, each terminal device has a task to be processed, the device submits the task, and the time delay and the energy consumption coefficient of the task in the device are respectively calculated.
And 2, performing local optimal resource allocation on the tasks in the equipment.
Step 3, initially unloading all tasks to an MEC server for execution, and setting a for all tasksi=1。
And 4, performing optimal resource allocation on the tasks needing to be unloaded to the MEC server for execution.
And 5, carrying out channel allocation according to the algorithm 1.
And 6, making an unloading decision according to the cost of each task at the MEC end and the local end.
And 7, judging whether the unloading decision is changed or not, and if not, stopping the algorithm. Otherwise, the process goes to step 4.
2. The time delay and energy consumption weight calculation of step 1 of claim 1, wherein:
remember REciThe residual ratio of the electric quantity of the terminal equipment is as follows:
from which the coefficient of energy consumption Ec is setiThat is, the smaller the value of the remaining power is in proportion to the maximum power of the terminal device, the stronger the demand for reducing the energy consumption is.
Determining the urgency of the task according to the task deadline, the size of the task and the required computing capacity, and recording as TcriIn this document, the urgency of the task is characterized as the sensitivity of the task to the time delay, and the smaller the numerical value, the higher the sensitivity of the task to the time delay.
Thereby obtaining the time delay coefficient Tci:
Because the weight coefficient of the time delay and the energy consumption needs to satisfy the condition: eci+TciFor this purpose, the weight coefficient is corrected to obtain a delay weight coefficient leiAnd energy consumption weight coefficient lti。
3. The cardiac channel allocation of step 5 of claim 1, wherein:
when selecting the channel, the following strategies are adopted:
and sequencing all tasks to be unloaded according to the formula (7), and sequentially calculating the minimum transmission rate required by each task. And calculating the reachable rate of each task on any channel according to the formula (8) to form a rate overhead matrix.
Initial channel selection was performed using the Argmax function:
j=arg max(Ri,j) (10)
thereby forming a decision matrix. From the second iteration, the channel selection is performed again according to the equations (9) and (10) according to the channel selected by the previous generation.
The task unloading method provided by the invention has the following advantages and beneficial effects: according to the method, the user experience and the self condition of the equipment are considered, the optimal resource allocation of the local equipment is solved, the resource allocation of the MEC end is solved by utilizing convex optimization, the optimal channel allocation is obtained through an iterative optimization algorithm on the basis of meeting the time delay and the energy consumption, the time delay and the energy consumption of a user can be minimized through the unloading scheme, the user requirement is met, and the user experience quality is improved.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011048168.1A CN112437468A (en) | 2020-09-29 | 2020-09-29 | Task unloading algorithm based on time delay and energy consumption weight calculation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011048168.1A CN112437468A (en) | 2020-09-29 | 2020-09-29 | Task unloading algorithm based on time delay and energy consumption weight calculation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112437468A true CN112437468A (en) | 2021-03-02 |
Family
ID=74690352
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011048168.1A Pending CN112437468A (en) | 2020-09-29 | 2020-09-29 | Task unloading algorithm based on time delay and energy consumption weight calculation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112437468A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112787920A (en) * | 2021-03-03 | 2021-05-11 | 厦门大学 | Underwater acoustic communication edge calculation time delay and energy consumption optimization method for ocean Internet of things |
CN114816721A (en) * | 2022-06-29 | 2022-07-29 | 常州庞云网络科技有限公司 | Multitask optimization scheduling method and system based on edge calculation |
-
2020
- 2020-09-29 CN CN202011048168.1A patent/CN112437468A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112787920A (en) * | 2021-03-03 | 2021-05-11 | 厦门大学 | Underwater acoustic communication edge calculation time delay and energy consumption optimization method for ocean Internet of things |
CN112787920B (en) * | 2021-03-03 | 2021-11-19 | 厦门大学 | Underwater acoustic communication edge calculation time delay and energy consumption optimization method for ocean Internet of things |
CN114816721A (en) * | 2022-06-29 | 2022-07-29 | 常州庞云网络科技有限公司 | Multitask optimization scheduling method and system based on edge calculation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109814951B (en) | Joint optimization method for task unloading and resource allocation in mobile edge computing network | |
CN111401552B (en) | Federal learning method and system based on batch size adjustment and gradient compression rate adjustment | |
CN110418416B (en) | Resource allocation method based on multi-agent reinforcement learning in mobile edge computing system | |
CN108920280B (en) | Mobile edge computing task unloading method under single-user scene | |
CN107911478B (en) | Multi-user calculation unloading method and device based on chemical reaction optimization algorithm | |
CN109922479B (en) | Calculation task unloading method based on time delay estimation | |
CN112689303B (en) | Edge cloud cooperative resource joint allocation method, system and application | |
CN111132235B (en) | Mobile offload migration algorithm based on improved HRRN algorithm and multi-attribute decision | |
CN110543336A (en) | Edge calculation task unloading method and device based on non-orthogonal multiple access technology | |
CN111556516B (en) | Distributed wireless network task cooperative distribution method facing delay and energy efficiency sensitive service | |
CN112437468A (en) | Task unloading algorithm based on time delay and energy consumption weight calculation | |
CN110968366B (en) | Task unloading method, device and equipment based on limited MEC resources | |
CN110149401B (en) | Method and system for optimizing edge calculation task | |
CN109587735B (en) | Cooperative service caching method based on time delay measurement mobile edge calculation | |
CN110851277A (en) | Task scheduling strategy based on edge cloud cooperation in augmented reality scene | |
CN111711962A (en) | Cooperative scheduling method for subtasks of mobile edge computing system | |
CN116170844A (en) | Digital twin auxiliary task unloading method for industrial Internet of things scene | |
CN115473896A (en) | Electric power internet of things unloading strategy and resource configuration optimization method based on DQN algorithm | |
CN114449490A (en) | Multi-task joint computing unloading and resource allocation method based on D2D communication | |
CN112769910B (en) | Fog calculation task unloading method based on dynamic voltage regulation technology | |
CN114116061A (en) | Workflow task unloading method and system in mobile edge computing environment | |
CN115955479A (en) | Task rapid scheduling and resource management method in cloud edge cooperation system | |
CN112600869B (en) | Calculation unloading distribution method and device based on TD3 algorithm | |
CN113553188B (en) | Mobile edge computing and unloading method based on improved longhorn beetle whisker algorithm | |
CN115150892A (en) | VM-PM (virtual machine-to-PM) repair strategy method in MEC (media independent center) wireless system with bursty service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210302 |