WO2020119648A1 - 一种基于代价优化的计算任务卸载算法 - Google Patents

一种基于代价优化的计算任务卸载算法 Download PDF

Info

Publication number
WO2020119648A1
WO2020119648A1 PCT/CN2019/124084 CN2019124084W WO2020119648A1 WO 2020119648 A1 WO2020119648 A1 WO 2020119648A1 CN 2019124084 W CN2019124084 W CN 2019124084W WO 2020119648 A1 WO2020119648 A1 WO 2020119648A1
Authority
WO
WIPO (PCT)
Prior art keywords
edge
cost
task
cloud
computing
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.)
Ceased
Application number
PCT/CN2019/124084
Other languages
English (en)
French (fr)
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.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
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 Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Publication of WO2020119648A1 publication Critical patent/WO2020119648A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • the present invention relates to the field of information technology, and in particular, to a calculation task offloading algorithm based on cost optimization.
  • edge cloud computing which is a combination of edge computing and cloud computing
  • how to offload tasks from the cloud to the edge is the key to improving the efficiency of computing task processing and playing the edge cloud computing framework.
  • Edge devices such as mobile base stations, mobile phones, and gateways are close to users, that is, close to data sources, and the data transmission path and transmission time are greatly shortened compared to traditional cloud computing. But in contrast, the computing power of edge devices is much lower than the computing power of cloud computing centers, so it is impossible to determine where to perform tasks based solely on the transmission distance.
  • edge computing model Only by reasonably offloading the computing tasks from the cloud to the edge device, can we better integrate the edge computing model and the cloud computing model, not only take advantage of the edge device, but also reduce the pressure on the cloud data center and network bandwidth, and optimize resources. The purpose of improving efficiency.
  • the existing edge cloud computing model generally uses a simple topology diagram to represent a batch of computing tasks.
  • the points in the graph represent a single computing task.
  • the task generally has two weights, which represent the computational cost of the computing task at different ends; and between the points
  • the edge of represents the communication between the two computing tasks, and the weight on the edge represents the computational cost when the two tasks communicate across the end.
  • the task unloading algorithm MOCOP takes this task graph as an input parameter, and proposes a task unloading algorithm based on the maximum flow minimum cut theorem. The algorithm divides the task graph into two parts, one part is executed at the edge and the other part is executed in the cloud.
  • the total execution cost of the final task is the sum of the execution cost of the task at the edge and the execution cost of the task in the cloud, and the communication cost between the edge and the cloud.
  • the algorithm gives the optimal offload strategy, but because the algorithm does not take into account the cost of the same-end communication and the asymmetry of the cross-end communication in the side cloud model, it is difficult to apply this algorithm to the actual In the edge cloud model, the given offload strategy is not the optimal offload strategy.
  • the current research on computing task offloading algorithms is based on a simple edge cloud computing model. This simplified model does not consider the communication cost when the task is at the edge device or the cloud device, but only considers the communication cost between tasks at different ends. That is, when both tasks are located in the cloud or on the edge, the communication cost between computing tasks is ignored. When a computing task is in the cloud and a computing task is at the edge, the communication cost between the two tasks is considered.
  • the current computing task offload algorithm is also based on a simple assumption, that is, the cost of cross-end communication is symmetric: the communication cost of tasks from the cloud to the edge and the communication cost of tasks from the edge to the cloud are equal.
  • the proposed task offloading algorithm only optimizes the task calculation cost and symmetric cross-end communication cost.
  • a service consists of multiple applications, and multiple applications are distributed on different machines.
  • the communication cost is Can not be ignored.
  • the cost of cross-end communication is often asymmetric. Therefore, the current computing task offload algorithm cannot give an accurate offload strategy in the actual edge cloud computing model.
  • the present invention proposes a calculation task offloading algorithm based on cost optimization, which is more suitable for task offloading between edge and cloud platforms in actual situations, and the given offloading strategy can also
  • the overall cost of the task is greatly optimized, that is, the task execution cost, communication cost, and offload cost.
  • a calculation task offloading algorithm based on cost optimization which is special in that it includes the following steps:
  • the new cloud computing model includes three important costs:
  • step 1.1) calculates the execution cost of the task, specifically:
  • steps 1.2) and 1.3) calculate the communication cost between tasks, specifically:
  • step 1.3) calculates the offload cost of the task, specifically:
  • the offload cost must be taken into consideration when task i is offloaded from the cloud to the edge.
  • the task offload cost C tran (G) is written as:
  • the original total execution cost is the sum of the calculation cost, communication cost, and offload cost. Because the calculation cost and offload cost are combined, the optimal task allocation offload in edge calculation can be expressed as follows:
  • the expansion of the new model of edge cloud computing specifically includes:
  • edge cloud computing there are four possible communication costs on the edge e(v i , v j ) representing the communication between every two task nodes v i , v j Expand a single edge with four weights to four edges with A certain communication cost on each edge.
  • step 3 the combined calculation cost is specifically:
  • edge weight For each side (x,y ⁇ E(Edge),C(Cloud) ⁇ ), the edge weight To:
  • step 4) the optimized offload strategy is solved based on the greedy criterion, specifically:
  • versus Incompatible edges mean, for example: when the task Choose to execute on the edge, Executed in the cloud, then with the edge The incompatible side is The side represents the task All choose to execute in the cloud;
  • the side represents the task All choose to execute on the edge; and
  • the side represents the task Choose to execute in the cloud, Perform on the edge.
  • the present invention is a calculation task offloading algorithm based on cost optimization, which solves the optimization problem of calculation task offloading in the new model of edge cloud computing.
  • the algorithm adds the same-end communication cost ignored in the existing research, and the cross-end communication non-communication Symmetrical characteristics, taking into account the heterogeneity and isomorphism of network resources; the algorithm of the present invention is proposed based on the new model, which is more suitable for offloading computing tasks in the edge cloud computing environment; the present invention proposes task offloading based on the principle of greed Algorithm:
  • the present invention uses a greedy algorithm to solve the approximate optimal offload strategy; the algorithm has low time complexity and space complexity, and can quickly and efficiently solve the approximate optimal computing task offload strategy; compared with the current With technology, the algorithm can simultaneously optimize the computational cost, the communication cost of the same end and the cross-end, and the task offload cost.
  • FIG. 2 is an example diagram of the result of uninstalling a computing task in an embodiment of the present invention
  • FIG. 3 is a diagram of an example of a task in the embodiment of the present invention.
  • FIG. 5 is a diagram 1 of step 4) of the algorithm of the present invention.
  • FIG. 6 is a second illustration of step 4) of the algorithm of the present invention.
  • step 7 is a diagram 3 of step 4) of the algorithm of the present invention.
  • Fig. 8 is a diagram 4 of step 4) of the algorithm of the present invention.
  • FIG. 1 is a task example diagram in a new model of edge cloud computing according to an embodiment of the present invention
  • FIG. 2 implements the present invention.
  • calculation task offloading algorithm based on cost optimization of the present invention includes the following steps:
  • the new model of edge cloud computing includes the calculation of three important costs. That is, firstly, the problem of offloading the optimized computing task is expressed in the following form:
  • the offload cost must be taken into consideration when task i is offloaded from the cloud to the edge.
  • the task offload cost C tran (G) is written as:
  • the original total execution cost is the sum of the calculation cost, communication cost, and offload cost. Because the calculation cost and offload cost are combined, the optimal task allocation offload in edge calculation can be expressed as follows:
  • the first and second parts are simplified calculation models.
  • the points representing the computing tasks on the task map have two point weights, and there are four edge weights on the sides representing the communication between the computing tasks (respectively represent the cost of the tasks to communicate on the cloud device, all in The cost of communication on the edge device, the cost of one task in the cloud device, the cost of one task in the edge device, and the cost of one task in the edge device, and the cost of one task in the cloud device), the two calculation costs of the task It depends on the execution position of the task, and the communication cost between tasks depends on the relative execution position of the two tasks.
  • the algorithm mainly expands the single communication edge between tasks into four edges, each edge represents a communication possibility, and each edge has a certain edge weight, that is, the communication cost.
  • the point weight which is the computational cost of the task, is also incorporated into the edge weight, so that the complex calculation model is converted into a traditional simple calculation model.
  • the third part is to solve the offload strategy of computing tasks; in order to reduce the time complexity and space complexity, the present invention adopts the greedy principle to implement the task offload strategy.
  • edge weight For each side (x,y ⁇ E(Edge),C(Cloud) ⁇ ), the edge weight To:
  • Incompatible edges mean, for example: when the task Choose to execute on the edge, Executed in the cloud, then with the edge
  • the incompatible side is The side represents the task All choose to execute in the cloud; The side represents the task All choose to execute on the edge; and The side represents the task Choose to execute in the cloud, Perform on the edge.
  • the algorithm selects the red dotted edge (representing computing task 1 is executed in the cloud, and computing task 2 is offloaded to the edge).
  • the red edge represents the edge that is incompatible with the red dotted edge (red edges represent the (Task 1 is executed on the edge, or task 2 is executed on the cloud, which is inconsistent with the aforementioned calculation tasks 1, 2 that are executed on the cloud and the edge, respectively.) Deleting these red edges and red dotted edges from E a at the same time means that the next edge will not be selected from these edges in the future.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明涉及信息技术领域,具体而言,涉及一种基于代价优化的计算任务卸载算法,主要包括以下步骤:1)构建边云计算新模型;所述边云计算新模型包括计算三种重要的代价:计算任务的执行代价、同端计算任务之间的通信代价、跨端计算任务之间的非对称通信代价;2)对边云计算新模型进行扩展;3)合并计算代价;4)基于贪婪准则来求解优化卸载策略。本发明的算法解决了边缘计算和云计算的结合框架中,计算任务的卸载优化问题。

Description

一种基于代价优化的计算任务卸载算法 技术领域
本发明涉及信息技术领域,具体而言,涉及一种基于代价优化的计算任务卸载算法。
背景技术
在边云计算,也即边缘计算以及云计算的结合框架中,如何将任务从云端卸载到边缘端是提升计算任务处理效率、发挥边云计算框架的关键。边缘设备如移动基站、手机、网关等,靠近用户,也即靠近数据源,数据传输路径与传输时间相比于传统云计算而言大大缩短。但相比之下,边缘设备计算能力远低于云计算中心的计算能力,因此不能仅仅根据传输距离来确定任务在哪里执行。对于一批任务而言,如果将所有的数据都卸载到边缘设备上处理,其处理能力带来的问题比全部放在云端处理更严重;也不能随机将任务从云计算中心卸载边缘设备上处理,因为不同任务有不同的资源需求。比如有的任务需要大量计算资源,那么卸载到边缘设备上处理的性能就逊色于在云端处理的性能,因为数据中心的处理能力优势可以抵消掉数据传输带来的劣势;而有的任务不需要太多计算资源,但是对实时性有很高的要求,那么就适合卸载到边缘设备上处理。只有合理地将计算任务从云端卸载到边缘设备上,才能达到更好地结合边缘计算模型和云计算模型,既发挥边缘设备的优势,又降低云数据中心和网络带宽的压力,达到优化资源,提升效率的目的。
现有的边云计算模型一般采用简单的拓扑图形式表示一批计算任务,图中的点代表单个计算任务,任务一般有两个权重,分别代表计算任务在不同端的计算代价;而点之间的边代表两个计算任务之间存在通信,边上的权重代表了当两个任务跨端通信时的计算代价。任务卸载算法MOCOP将这种任务图作为输入参数,提出了基于最大流最小割定理的任务卸载算法。该算法将任务图分割成为两个部分,一部分在边缘执行,一部分在云端执行。最后的任务总执行代价为在边缘的任务的执行代价和在云端的任务的执行代价,以及边缘和云端 之间的通信代价的总和。基于上述的简单计算模型该算法给出了最优卸载策略,但是由于该算法并没有考虑到实际情况中边云模型同端通信代价以及跨端通信非对称等情况,因此该算法难以应用在实际的边云模型中,给出的卸载策略也并非最优卸载策略。
目前的计算任务卸载算法研究均基于一个简单的边云计算模型,该简化模型中没有考虑当任务同处于边缘设备或者云设备时的通信代价,而只考虑处于不同端的任务之间的通信代价,也即,当两个任务均位于云端或者均位于边缘端的时候,忽略计算任务之间的通信代价。而当一个计算任务在云端,一个计算任务在边缘端的时候,才考虑两个任务之间存在通信代价。此外,目前的计算任务卸载算法还基于一个简单的假设,也即,跨端通信代价是对称的:任务从云端到边缘端的通信与任务从边缘端到云端的通信代价是相等的。从而提出的任务卸载算法,也只优化任务计算代价以及对称的跨端通信代价。现实情况中,一个服务由多个应用组成,而多个应用分布在不同的机器上,当两个应用进行通信的时候,无论应用是位于同端的机器还是位于不同端的机器上,通信代价都是不可忽略的。此外,由于网络上下行带宽不一致,网络拥塞等因素的存在,跨端通信的代价也往往非对称。因此当前的计算任务卸载算法在实际的边云计算模型中无法给出精确的卸载策略。
发明内容
为解决上述背景技术中存在的问题,本发明提出一种基于代价优化的计算任务卸载算法,其更适用于实际情况中的在边和云平台之间的任务卸载,给出的卸载策略也能够大幅度优化任务的整体代价,也即任务的执行代价、通信代价和卸载代价。
本发明解决上述问题的技术方案是:一种基于代价优化的计算任务卸载算法,其特殊之处在于,包括以下步骤:
1)构建边云计算新模型
所述边云计算新模型包括计算三种重要的代价:
1.1)计算任务的执行代价;
1.2)同端计算任务之间的通信代价;
1.3)跨端计算任务之间的非对称通信代价;
2)对边云计算新模型进行扩展;
3)合并计算代价;
4)基于贪婪准则来求解优化卸载策略。
进一步地,上述步骤1.1)计算任务的执行代价,具体为:
给定任务图G,将任务的执行代价C comp(G)表达为如下形式:
Figure PCTCN2019124084-appb-000001
其中
Figure PCTCN2019124084-appb-000002
Figure PCTCN2019124084-appb-000003
分别表示任务i在边缘(E:edge)和在云端(C:cloud)的执行代价,布尔变量x i=0的时候,代表任务i保留在云端执行,x i=1的时候,代表任务i卸载到边缘执行。
进一步地,上述步骤1.2)及1.3)计算任务之间的通信代价,具体为:
Figure PCTCN2019124084-appb-000004
表示同端通信代价和跨端不对称的通信代价,也即任务i到任务j从边缘到边缘、边缘到云端、云端到边缘、边缘到边缘这四种通信代价;这四种通信代价统一用C comm(G)表示为如下形式:
Figure PCTCN2019124084-appb-000005
进一步地,上述步骤1.3)计算任务的卸载代价,具体为:
任务i从云端卸载到边缘必须要考虑卸载代价,任务卸载代价C tran(G)记为:
Figure PCTCN2019124084-appb-000006
为了进一步简化,将任务i的计算代价和卸载代价合并到一起:
Figure PCTCN2019124084-appb-000007
因此,原本总执行代价是计算代价、通信代价和卸载代价的总和,因为合并了计算代价和卸载代价,边缘计算中求解最优任务分配卸载可以表示为如下形式:
Figure PCTCN2019124084-appb-000008
具体可表达为:
Figure PCTCN2019124084-appb-000009
边云计算新模型中,代价优化的计算任务卸载问题最终表达为如上最小化问题。
进一步地,上述步骤2)中,对边云计算新模型进行扩展具体为;
边云计算新模型中,每两个任务节点v i,v j之间的代表通信的边e(v i,v j)上均有四种通信代价可能
Figure PCTCN2019124084-appb-000010
将四个权重的单条边扩展为四条边
Figure PCTCN2019124084-appb-000011
Figure PCTCN2019124084-appb-000012
每条边上一个确定的通信代价。
进一步地,上述步骤3)中,合并计算代价具体为:
将节点上的两个计算代价合并到通信代价中:
首先,定义计算节点v i的邻居节点(与v i存在通信的任务节点)集合为N i
N i={v j|e(v i,v j)=1}  (5.7),
对于每一条边
Figure PCTCN2019124084-appb-000013
(x,y∈{E(Edge),C(Cloud)}),将其边权
Figure PCTCN2019124084-appb-000014
改为:
Figure PCTCN2019124084-appb-000015
进一步地,上述步骤4)中,基于贪婪准则来求解优化卸载策略,具体为:
定义E a为所有边
Figure PCTCN2019124084-appb-000016
(x,y∈{E(Edge),C(Cloud)})的集合,每次从该集合中按照如下贪婪规则选取一条边:
Figure PCTCN2019124084-appb-000017
选取这条边后,将该边从E a中删除,并将与边
Figure PCTCN2019124084-appb-000018
不兼容的边,也即
Figure PCTCN2019124084-appb-000019
从E a中删除;
接下来循环该步骤,直至E a为空。
进一步地,上述步骤4)中,
Figure PCTCN2019124084-appb-000020
不兼容的边是指,比如:当任务
Figure PCTCN2019124084-appb-000021
选择在边缘执行,
Figure PCTCN2019124084-appb-000022
在云端执行,那么与边
Figure PCTCN2019124084-appb-000023
不兼容的边就是
Figure PCTCN2019124084-appb-000024
该边代表任务
Figure PCTCN2019124084-appb-000025
均选择在云端执行;
Figure PCTCN2019124084-appb-000026
该边代表任务
Figure PCTCN2019124084-appb-000027
均选择在边缘执行;以及
Figure PCTCN2019124084-appb-000028
该边代表任务
Figure PCTCN2019124084-appb-000029
选择在云端执行,
Figure PCTCN2019124084-appb-000030
在边缘执行。
本发明的优点:
本发明是一种基于代价优化的计算任务卸载算法,解决了边云计算新模型中的计算任务卸载的优化问题,算法中加入了已有研究中忽略的同端通信代价,以及跨端通信非对称的特点,同时考虑了网络资源的异构性和同构性;本发明算法基于新模型而提出,更加适用于边云计算环境中的计算任务卸载;本发明提出了基于贪婪原则的任务卸载算法:当网络资源异构时,本发明利用贪婪算法求解近似最优卸载策略;该算法时间复杂度以及空间复杂度都较低,可以快速高效求解近似最优计算任务卸载策略;相较于现有技术,该算法可以同时优化计算代价以及同端、跨端的通信代价,以及任务卸载代价。
附图说明
图1是本发明实施例中的边云计算新模型中的任务例图,
图2是本发明实施例中的计算任务的卸载结果例图;
图3是本发明实施例中的一个任务例图;
图4是本发明算法步骤2)和步骤3)的图解;
图5是本发明算法进行步骤4)的图解一;
图6是本发明算法进行步骤4)的图解二;
图7是本发明算法进行步骤4)的图解三;
图8是本发明算法进行步骤4)的图解四。
具体实施方式
为使本发明实施方式的目的、技术方案和优点更加清楚,下面将结合本发明实施方式中的附图,对本发明实施方式中的技术方案进行清楚、完整地描述,显然,所描述的实施方式是本发明一部分实施方式,而不是全部的实施方式。基于本发明中的实施方式,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施方式,都属于本发明保护的范围。因此,以下对在附图中提供的本发明的实施方式的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施方式。基于本发明中的实施方式,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施方式,都属于本发明保护的范围。
以下结合图1、2对本发明所提供的基于代价优化的计算任务卸载算法做详细说明,其中,图1是本发明实施例中的边云计算新模型中的任务例图,图2本发明实施例中的计算任务的卸载结果例图。由图1可知,边云计算新模型相较于简单的计算模型,在计算任务卸载策略时需要考虑更多的影响因素。
详细地,本发明基于代价优化的计算任务卸载算法,包括以下步骤:
1)构建边云计算新模型,所述边云计算新模型包括计算三种重要的代价,即首先将代价优化的计算任务卸载问题表达为如下形式:
1.1)计算任务的执行代价。
本实施例中,具体为:
给定任务图G,将任务的执行代价C comp(G)表达为如下形式:
Figure PCTCN2019124084-appb-000031
其中
Figure PCTCN2019124084-appb-000032
Figure PCTCN2019124084-appb-000033
分别表示任务i在边缘(E:edge)和在云端(C:cloud)的执行代价,布尔变量x i=0的时候,代表任务i保留在云端执行,x i=1的时候,代表任务i卸载到边缘执行。
1.2)计算任务之间的通信代价。
本实施例中,具体为:
具体为:
Figure PCTCN2019124084-appb-000034
表示同端通信代价和跨端不对称的通信代价,也即任务i到任务j从边缘到边缘、边缘到云端、云端到边缘、边缘到边缘这四种通信代价;这四种通信代价统一用C comm(G)表示为如下形式:
Figure PCTCN2019124084-appb-000035
1.3)计算任务之间的通信代价。
本实施例中,具体为:具体为:
任务i从云端卸载到边缘必须要考虑卸载代价,任务卸载代价C tran(G)记为:
Figure PCTCN2019124084-appb-000036
为了进一步简化,将任务i的计算代价和卸载代价合并到一起:
Figure PCTCN2019124084-appb-000037
因此,原本总执行代价是计算代价、通信代价和卸载代价的总和,因为合并了计算代价和卸载代价,边缘计算中求解最优任务分配卸载可以表示为如下形式:
Figure PCTCN2019124084-appb-000038
具体可表达为:
Figure PCTCN2019124084-appb-000039
以上可以看出,相比于简单的计算模型,边云计算新模型复杂度大大增加,不利于算法求解。故本发明继续对提出的算法进行简化、求解,包括三部分:
第一、二部分为简化计算模型。由于加入上述参数之后,任务图上代表计算任务的点具有两个点权,而代表计算任务之间通信的边存在四个边权(分别代表任务均在云设备上进行通信的代价,均在边缘设备上进行通信的代价,一个任务在云设备,一个任务在边缘设备上进行通信的代价,以及一个任务在边缘设备,一个任务在云设备上进行通信的代价),任务的两个计算代价依据任务的执行位置而定,任务之间的通信代价又依据两个任务的相对执行位置而定。由于情况多变复杂,难以在低时间空间复杂度的情况下进行处理,因此本算法很重要的一步就是要对计算模型进行简化,同时要保证各个参数不变。为了简化计算模型,本算法主要将任务之间的单个通信边扩展成为四条边,每条边代表一种通信可能性,同时每条边都有一个确定的边权,也即通信代价。此外,还将点权,也即任务的计算代价合并到边权中,如此一来将复杂的计算模型转换成了一个传统的简单的计算模型。
第三部分为求解计算任务卸载策略;本发明为了降低时间复杂度和空间复杂度,采用贪婪原则来实现任务卸载策略。
这里结合图3-图8做出具体说明:
2)扩展计算模型:
如图3所示,边云计算新模型中,每两个任务节点v i,v j之间的代表通信的边e(v i,v j)上均有四种通信代价可能
Figure PCTCN2019124084-appb-000040
(为了简便,这里图上并没有给出具体的四个值,而是用w(e(v i,v j))来代替四种通信代价);将图3中具有四个权重可能的单条边,扩展为图4所示的四条边,也即
Figure PCTCN2019124084-appb-000041
Figure PCTCN2019124084-appb-000042
Figure PCTCN2019124084-appb-000043
每条边代表一种通信可能,以及一个确定的通信代价;
3)合并计算代价:
由于每个计算节点都有两种计算代价,本算法进一步将节点上的两个计算代价合并到通信代价中:
首先,定义计算节点v i的邻居节点(与v i存在通信的任务节点)集合为N i
N i={v j|e(v i,v j)=1}    (5.7),
对于每一条边
Figure PCTCN2019124084-appb-000044
(x,y∈{E(Edge),C(Cloud)}),将其边权
Figure PCTCN2019124084-appb-000045
改为:
Figure PCTCN2019124084-appb-000046
4)定义E a为所有边
Figure PCTCN2019124084-appb-000047
(x,y∈{E(Edge),C(Cloud)})的集合,每次从该集合中按照如下贪婪规则选取一条边:
Figure PCTCN2019124084-appb-000048
选取这条边后,将该边从E a中删除,并将与边
Figure PCTCN2019124084-appb-000049
不兼容的边,也即
Figure PCTCN2019124084-appb-000050
从E a中删除;与
Figure PCTCN2019124084-appb-000051
不兼容的边是指,比如:当任务
Figure PCTCN2019124084-appb-000052
选择在边缘执行,
Figure PCTCN2019124084-appb-000053
在云端执行,那么与边
Figure PCTCN2019124084-appb-000054
不兼容的边就是
Figure PCTCN2019124084-appb-000055
该边代表任务
Figure PCTCN2019124084-appb-000056
均选择在云端执行;
Figure PCTCN2019124084-appb-000057
该边代表任务
Figure PCTCN2019124084-appb-000058
均选择在边缘执行;以及
Figure PCTCN2019124084-appb-000059
该边代表任务
Figure PCTCN2019124084-appb-000060
选择在云端执行,
Figure PCTCN2019124084-appb-000061
在边缘执行。
接下来循环该步骤,直至E a为空。
以图5为例。第一步,根据贪婪准则,本算法选择了红色虚线边(代表计算任务1在云端执行,计算任务2卸载到边缘执行),红色边代表与红色虚线边不兼容的边(红色边分别代表了任务1在边缘端执行,或者任务2在云端执行这几种情况,与前面提到的计算任务1、2分别在云端和在边缘端执行相互矛盾)。将这些红色边以及红色虚线边同时从E a中删除,代表以后不会从这些边中选取下一条边。接下来如图6所示,继续根据贪婪准则,选取蓝色虚线边(代表计算 任务2在边缘端执行,计算任务3在云端执行),与前面提到的相同,蓝色的边也代表了与蓝色虚线边不兼容的边。接下来同时将这些边从E a中删除。由于E a不为空,算法继续。接下来如图7所示,继续选取棕色虚线边,棕色虚线边代表了计算任务1在云端执行,计算任务4在边缘设备执行。然后将这些棕色虚线边以及实线边从E a中删去。最后如图8所示,选取黄色的虚线边,代表计算任务1和计算任务3均在云端执行。将黄色边从E a中删除后,由于E a为空,算法停止。最后的卸载策略就是,计算任务1,3在云端执行,计算任务2,4在边缘设备上执行。
具体算法伪代码可以参见图1,算法中的符号及其含义对照表可以参见表2。
表1:算法伪代码
Figure PCTCN2019124084-appb-000062
表2:算法中的符号与含义对照表
Figure PCTCN2019124084-appb-000063
以上所述仅为本发明的实施例,并非以此限制本发明的保护范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的系统领域,均同理包括在本发明的保护范围内。

Claims (8)

  1. 一种基于代价优化的计算任务卸载算法,其特征在于,包括以下步骤:
    1)构建边云计算新模型;所述边云计算新模型包括计算三种重要的代价:
    1.1)计算任务的执行代价;
    1.2)同端计算任务之间的通信代价;
    1.3)跨端计算任务之间的非对称通信代价;
    2)对边云计算新模型进行扩展;
    3)合并计算代价;
    4)基于贪婪准则来求解优化卸载策略。
  2. 根据权利要求1所述的一种基于代价优化的计算任务卸载算法,其特征在于:上述步骤1.1)计算任务的执行代价,具体为:
    给定任务图G,将任务的执行代价C comp(G)表达为如下形式:
    Figure PCTCN2019124084-appb-100001
    其中
    Figure PCTCN2019124084-appb-100002
    Figure PCTCN2019124084-appb-100003
    分别表示任务i在边缘(E:edge)和在云端(C:cloud)的执行代价,布尔变量x i=0的时候,代表任务i保留在云端执行,x i=1的时候,代表任务i卸载到边缘执行。
  3. 根据权利要求2所述的一种基于代价优化的计算任务卸载算法,其特征在于:上述步骤1.2)计算任务之间的通信代价,具体为:
    Figure PCTCN2019124084-appb-100004
    表示同端通信代价和跨端不对称的通信代价,也即任务i到任务j从边缘到边缘、边缘到云端、云端到边缘、边缘到边缘这四种通信代价;这四种通信代价统一用C comm(G)表示 为如下形式:
    Figure PCTCN2019124084-appb-100005
  4. 根据权利要求3所述的一种基于代价优化的计算任务卸载算法,其特征在于:上述步骤1.3)计算任务的卸载代价,具体为:
    任务i从云端卸载到边缘必须要考虑卸载代价,任务卸载代价C tran(G)记为:
    Figure PCTCN2019124084-appb-100006
    为了进一步简化,将任务i的计算代价和卸载代价合并到一起:
    Figure PCTCN2019124084-appb-100007
    因此,原本总执行代价是计算代价、通信代价和卸载代价的总和,因为合并了计算代价和卸载代价,边缘计算中求解最优任务分配卸载可以表示为如下形式:
    Figure PCTCN2019124084-appb-100008
    具体可表达为:
    Figure PCTCN2019124084-appb-100009
  5. 根据权利要求4所述的一种基于代价优化的计算任务卸载算法,其特征在于:上述步骤2)中,对边云计算新模型进行扩展具体 为;
    边云计算新模型中,每两个任务节点v i,v j之间的代表通信的边e(v i,v j)上均有四种通信代价可能
    Figure PCTCN2019124084-appb-100010
    将四个权重的单条边扩展为四条边
    Figure PCTCN2019124084-appb-100011
    Figure PCTCN2019124084-appb-100012
    每条边上一个确定的通信代价。
  6. 根据权利要求5所述的一种基于代价优化的计算任务卸载算法,其特征在于:上述步骤3)中,合并计算代价具体为:
    将节点上的两个计算代价合并到通信代价中:
    首先,定义计算节点v i的邻居节点(与v i存在通信的任务节点)集合为N i
    N i={v j|e(v i,v j)=1}(5.7),
    对于每一条边
    Figure PCTCN2019124084-appb-100013
    (x,y∈{E(Edge),C(Cloud)}),将其边权
    Figure PCTCN2019124084-appb-100014
    改为:
    Figure PCTCN2019124084-appb-100015
  7. 根据权利要求6所述的一种基于代价优化的计算任务卸载算法,其特征在于:上述步骤4)中,基于贪婪准则来求解优化卸载策略,具体为:
    定义E a为所有边
    Figure PCTCN2019124084-appb-100016
    (x,y∈{E(Edge),C(Cloud)})的集合,每次从该集合中按照如下贪婪规则选取一条边:
    Figure PCTCN2019124084-appb-100017
    选取这条边后,将该边从E a中删除,并将与边
    Figure PCTCN2019124084-appb-100018
    不兼容的边,也即
    Figure PCTCN2019124084-appb-100019
    从E a中删除;
    接下来循环该步骤,直至E a为空。
  8. 根据权利要求7所述的一种基于代价优化的计算任务卸载算法,其特征在于:上述步骤4)中,
    Figure PCTCN2019124084-appb-100020
    不兼容的边是指,比如:当任务
    Figure PCTCN2019124084-appb-100021
    选择在边缘执行,
    Figure PCTCN2019124084-appb-100022
    在云端执行,那么与边
    Figure PCTCN2019124084-appb-100023
    不兼容的边就是
    Figure PCTCN2019124084-appb-100024
    该边代表任务
    Figure PCTCN2019124084-appb-100025
    均选择在云端执行;
    Figure PCTCN2019124084-appb-100026
    该边代表任务
    Figure PCTCN2019124084-appb-100027
    均选择在边缘执行;以及
    Figure PCTCN2019124084-appb-100028
    该边代表任务
    Figure PCTCN2019124084-appb-100029
    选择在云端执行,
    Figure PCTCN2019124084-appb-100030
    在边缘执行。
PCT/CN2019/124084 2018-12-14 2019-12-09 一种基于代价优化的计算任务卸载算法 Ceased WO2020119648A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811537034.9 2018-12-14
CN201811537034.9A CN109698861B (zh) 2018-12-14 2018-12-14 一种基于代价优化的计算任务卸载方法

Publications (1)

Publication Number Publication Date
WO2020119648A1 true WO2020119648A1 (zh) 2020-06-18

Family

ID=66231627

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/124084 Ceased WO2020119648A1 (zh) 2018-12-14 2019-12-09 一种基于代价优化的计算任务卸载算法

Country Status (2)

Country Link
CN (1) CN109698861B (zh)
WO (1) WO2020119648A1 (zh)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930436A (zh) * 2020-07-13 2020-11-13 兰州理工大学 一种基于边缘计算的随机型任务排队卸载优化方法
CN112148492A (zh) * 2020-09-28 2020-12-29 南京大学 一种考虑多用户移动性的服务部署和资源分配方法
CN112272390A (zh) * 2020-10-20 2021-01-26 广州大学 基于物理层的任务卸载及带宽分配的处理方法和系统
CN112698940A (zh) * 2020-12-17 2021-04-23 北京交通大学 用于车路协同的车辆辅助边缘计算任务分配系统
CN113452625A (zh) * 2021-06-28 2021-09-28 重庆大学 基于深度强化学习的卸载调度与资源分配方法
CN113590229A (zh) * 2021-08-12 2021-11-02 中山大学 一种基于深度强化学习的工业物联网图任务卸载方法及系统
CN113778550A (zh) * 2021-08-17 2021-12-10 南京邮电大学 一种基于移动边缘计算的任务卸载系统和方法
CN114024977A (zh) * 2021-10-29 2022-02-08 深圳市高德信通信股份有限公司 一种基于边缘计算的数据调度方法、装置及系统
CN114051266A (zh) * 2021-11-08 2022-02-15 首都师范大学 基于移动云-边缘计算的无线体域网任务卸载方法
CN114928609A (zh) * 2022-04-27 2022-08-19 南京工业大学 物联网场景的异构云-边环境的最优任务卸载方法
CN115051998A (zh) * 2022-06-09 2022-09-13 电子科技大学 自适应边缘计算卸载方法、装置及计算机可读存储介质
CN116800745A (zh) * 2023-03-13 2023-09-22 国网浙江省电力有限公司 一种用于综合能源多站协同边缘计算与调度的方法及装置
CN119767360A (zh) * 2025-03-06 2025-04-04 江西师范大学 一种基于任务传输控制和改进贪心策略的计算卸载方法

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698861B (zh) * 2018-12-14 2020-07-03 深圳先进技术研究院 一种基于代价优化的计算任务卸载方法
CN113125675A (zh) * 2021-04-19 2021-07-16 北京物资学院 边缘计算架构的堆场煤炭自燃预警装置和预警方法
CN114296814B (zh) * 2021-12-10 2024-06-21 中国科学院深圳先进技术研究院 一种边云计算任务卸载方法、系统、终端以及存储介质
CN114785782B (zh) * 2022-03-29 2023-02-03 南京工业大学 面向异构云-边计算的通用的任务卸载方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899103A (zh) * 2015-07-03 2015-09-09 中国人民解放军国防科学技术大学 一种移动云计算终端节能调度方法和装置
US20170134186A1 (en) * 2013-07-10 2017-05-11 Sunil Mukundan Network-link method useful for a last-mile connectivity in an edge-gateway multipath system
CN108600299A (zh) * 2018-03-02 2018-09-28 中国科学院上海微系统与信息技术研究所 分布式多用户间计算任务卸载方法及系统
CN108920280A (zh) * 2018-07-13 2018-11-30 哈尔滨工业大学 一种单用户场景下的移动边缘计算任务卸载方法
CN109698861A (zh) * 2018-12-14 2019-04-30 深圳先进技术研究院 一种基于代价优化的计算任务卸载算法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9935862B2 (en) * 2015-09-08 2018-04-03 At&T Intellectual Property I, L.P. Low-impact proactive monitoring of customer access to virtualized network elements in a cloud platform
CN108541027B (zh) * 2018-04-24 2022-05-31 南京邮电大学 一种基于边缘云网络的通信计算资源置换方法
CN108901046B (zh) * 2018-06-14 2020-10-09 北京大学 面向移动边缘计算的协同任务卸载算法及系统设计方案
CN108540406B (zh) * 2018-07-13 2021-06-08 大连理工大学 一种基于混合云计算的网络卸载方法
CN108964817B (zh) * 2018-08-20 2021-02-09 重庆邮电大学 一种异构网络联合计算卸载及资源分配方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170134186A1 (en) * 2013-07-10 2017-05-11 Sunil Mukundan Network-link method useful for a last-mile connectivity in an edge-gateway multipath system
CN104899103A (zh) * 2015-07-03 2015-09-09 中国人民解放军国防科学技术大学 一种移动云计算终端节能调度方法和装置
CN108600299A (zh) * 2018-03-02 2018-09-28 中国科学院上海微系统与信息技术研究所 分布式多用户间计算任务卸载方法及系统
CN108920280A (zh) * 2018-07-13 2018-11-30 哈尔滨工业大学 一种单用户场景下的移动边缘计算任务卸载方法
CN109698861A (zh) * 2018-12-14 2019-04-30 深圳先进技术研究院 一种基于代价优化的计算任务卸载算法

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930436A (zh) * 2020-07-13 2020-11-13 兰州理工大学 一种基于边缘计算的随机型任务排队卸载优化方法
CN112148492B (zh) * 2020-09-28 2023-07-28 南京大学 一种考虑多用户移动性的服务部署和资源分配方法
CN112148492A (zh) * 2020-09-28 2020-12-29 南京大学 一种考虑多用户移动性的服务部署和资源分配方法
CN112272390A (zh) * 2020-10-20 2021-01-26 广州大学 基于物理层的任务卸载及带宽分配的处理方法和系统
CN112272390B (zh) * 2020-10-20 2023-06-20 广州大学 基于物理层的任务卸载及带宽分配的处理方法和系统
CN112698940A (zh) * 2020-12-17 2021-04-23 北京交通大学 用于车路协同的车辆辅助边缘计算任务分配系统
CN112698940B (zh) * 2020-12-17 2023-11-14 北京交通大学 用于车路协同的车辆辅助边缘计算任务分配系统
CN113452625B (zh) * 2021-06-28 2022-04-15 重庆大学 基于深度强化学习的卸载调度与资源分配方法
CN113452625A (zh) * 2021-06-28 2021-09-28 重庆大学 基于深度强化学习的卸载调度与资源分配方法
CN113590229B (zh) * 2021-08-12 2023-11-10 中山大学 一种基于深度强化学习的工业物联网图任务卸载方法及系统
CN113590229A (zh) * 2021-08-12 2021-11-02 中山大学 一种基于深度强化学习的工业物联网图任务卸载方法及系统
CN113778550A (zh) * 2021-08-17 2021-12-10 南京邮电大学 一种基于移动边缘计算的任务卸载系统和方法
CN114024977A (zh) * 2021-10-29 2022-02-08 深圳市高德信通信股份有限公司 一种基于边缘计算的数据调度方法、装置及系统
CN114024977B (zh) * 2021-10-29 2024-02-06 深圳市高德信通信股份有限公司 一种基于边缘计算的数据调度方法、装置及系统
CN114051266A (zh) * 2021-11-08 2022-02-15 首都师范大学 基于移动云-边缘计算的无线体域网任务卸载方法
CN114051266B (zh) * 2021-11-08 2024-01-12 首都师范大学 基于移动云-边缘计算的无线体域网任务卸载方法
CN114928609A (zh) * 2022-04-27 2022-08-19 南京工业大学 物联网场景的异构云-边环境的最优任务卸载方法
CN114928609B (zh) * 2022-04-27 2023-02-03 南京工业大学 物联网场景的异构云-边环境的最优任务卸载方法
CN115051998A (zh) * 2022-06-09 2022-09-13 电子科技大学 自适应边缘计算卸载方法、装置及计算机可读存储介质
CN116800745A (zh) * 2023-03-13 2023-09-22 国网浙江省电力有限公司 一种用于综合能源多站协同边缘计算与调度的方法及装置
CN119767360A (zh) * 2025-03-06 2025-04-04 江西师范大学 一种基于任务传输控制和改进贪心策略的计算卸载方法

Also Published As

Publication number Publication date
CN109698861B (zh) 2020-07-03
CN109698861A (zh) 2019-04-30

Similar Documents

Publication Publication Date Title
WO2020119648A1 (zh) 一种基于代价优化的计算任务卸载算法
CN109257287B (zh) 一种最短路径确定方法及控制器
CN107566194B (zh) 一种实现跨域虚拟网络映射的方法
CN115396514B (zh) 资源分配方法、装置及存储介质
WO2019233420A1 (zh) 基于模板的5g端到端网络切片生成方法及装置
CN108667657B (zh) 一种面向sdn的基于局部特征信息的虚拟网络映射方法
Lin et al. Three-tier capacity and traffic allocation for core, edges, and devices for mobile edge computing
WO2019200716A1 (zh) 面向雾计算的节点计算任务调度方法及其设备
WO2019062830A1 (zh) 实例业务拓扑的生成方法及装置
CN103746852B (zh) 业务路由配置方法及网络管理设备
US10356185B2 (en) Optimal dynamic cloud network control
CN104734954A (zh) 一种用于软件定义网络的路由确定方法和装置
CN110958133A (zh) 网络切片映射方法、设备、服务器和存储介质
CN107979545A (zh) 一种基于节点属性的虚拟网络映射方法
CN106470165A (zh) 一种负载分担方法、系统及相关设备
CN116367225A (zh) 服务发现的处理方法、设备和存储介质
WO2024198976A1 (zh) 一种切分点确定方法及装置
CN118474108A (zh) 一种基于网络流的流式计算负载均衡方法、系统及设备
CN108347377B (zh) 数据转发方法及装置
CN109361547A (zh) 一种网络切片链路部署方法与装置
CN113014302B (zh) 一种面向卫星网络的网络功能服务链部署方法
CN119420659B (zh) 一种多模态网络环境下网络模态共存的优化部署方法
CN104822175A (zh) 一种适用于蜂窝网络的代码迁移方法及系统
CN108965025A (zh) 云计算系统中流量的管理方法和装置
KR20210067911A (ko) 에지 컴퓨팅에서 멀티 연합 학습 서비스 오케스트레이터 및 이의 실행 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19895867

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02/11/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19895867

Country of ref document: EP

Kind code of ref document: A1