CN110740473A - management method for mobile edge calculation and edge server - Google Patents
management method for mobile edge calculation and edge server Download PDFInfo
- Publication number
- CN110740473A CN110740473A CN201911007166.5A CN201911007166A CN110740473A CN 110740473 A CN110740473 A CN 110740473A CN 201911007166 A CN201911007166 A CN 201911007166A CN 110740473 A CN110740473 A CN 110740473A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- decision
- task
- delay
- mobile
- 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
Links
- 238000004364 calculation method Methods 0.000 title claims abstract description 73
- 238000007726 management method Methods 0.000 title claims description 18
- 230000005540 biological transmission Effects 0.000 claims abstract description 43
- 238000000034 method Methods 0.000 claims description 72
- 238000013468 resource allocation Methods 0.000 claims description 29
- 230000008569 process Effects 0.000 claims description 26
- 238000004891 communication Methods 0.000 claims description 23
- 230000004044 response Effects 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 4
- 238000011161 development Methods 0.000 abstract description 5
- 238000005457 optimization Methods 0.000 description 17
- 238000004422 calculation algorithm Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 7
- 230000001934 delay Effects 0.000 description 6
- 238000001228 spectrum Methods 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000005562 fading Methods 0.000 description 4
- 238000004088 simulation Methods 0.000 description 4
- 230000007547 defect Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000011521 glass Substances 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007774 longterm Effects 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
- 230000003287 optical effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012795 verification 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/02—Traffic management, e.g. flow control or congestion control
- H04W28/0231—Traffic management, e.g. flow control or congestion control based on communication conditions
- H04W28/0236—Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/16—Performing reselection for specific purposes
- H04W36/165—Performing reselection for specific purposes for reducing network power consumption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/16—Performing reselection for specific purposes
- H04W36/22—Performing reselection for specific purposes for handling the traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/50—Allocation or scheduling criteria for wireless resources
- H04W72/53—Allocation or scheduling criteria for wireless resources based on regulatory allocation policies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/50—Allocation or scheduling criteria for wireless resources
- H04W72/54—Allocation or scheduling criteria for wireless resources based on quality criteria
- H04W72/542—Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明在边缘服务器提供辅助计算前,综合考虑上行传输时延、计算时延和下行传输时延对总时延的影响,为各移动终端对系统当前有限的资源进行优化分配,以降低执行所有用户任务的总时延。特别是在目前因技术发展导致一些场景的下行数据的大小较大无法忽略的情形下,本发明能让执行任务请求对应的所有任务的总时延最小,而对于下行数据的大小较小的情形,本发明也能够让执行任务请求对应的所有任务的总时延最小,能够高效地满足不同场景下用户低时延的需求,从而提高用户体验。
Before the edge server provides auxiliary calculation, the present invention comprehensively considers the influence of the uplink transmission delay, the calculation delay and the downlink transmission delay on the total delay, and optimizes the allocation of the current limited resources of the system for each mobile terminal, so as to reduce the execution of all The total latency of user tasks. Especially in the current situation where the size of downlink data in some scenarios is too large to be ignored due to technological development, the present invention can minimize the total delay of all tasks corresponding to the task execution request, and for the case where the size of downlink data is small , the present invention can also minimize the total delay of all tasks corresponding to the task request, and can efficiently meet the user's low-latency requirements in different scenarios, thereby improving user experience.
Description
技术领域technical field
本发明涉及无线通信领域,具体来说涉及移动边缘计算中计算卸载与资源分配的联合优化,更具体地说,涉及一种用于移动边缘计算的管理方法及边缘服务器。The present invention relates to the field of wireless communication, in particular to the joint optimization of computing offloading and resource allocation in mobile edge computing, and more particularly, to a management method and an edge server for mobile edge computing.
背景技术Background technique
随着移动通信的高速发展以及智能移动终端快速的普及,许多新型应用如:虚拟现实、增强现实以及自动驾驶等随之产生。而这类具有低时延高可靠通信需求的应用对移动终端的计算能力提出较高要求。由于计算能力有限的移动终端在处理这类应用时将产生较高的应用处理时延并影响终端用户的服务体验,因此如何降低应用处理时延,提升终端用户的服务体验是目前亟需解决的关键问题之一。With the rapid development of mobile communications and the rapid popularization of intelligent mobile terminals, many new applications such as virtual reality, augmented reality and autonomous driving have emerged. Such applications with low latency and high reliability communication requirements place higher requirements on the computing power of the mobile terminal. Since mobile terminals with limited computing power will generate high application processing delay when processing such applications and affect the service experience of end users, how to reduce the application processing delay and improve the service experience of end users is an urgent need to solve. one of the key questions.
针对以上问题,移动云计算(mobile cloud computing,MCC)技术被提出。MCC的目标是将云端丰富的计算资源扩展至资源受限的移动终端,从而增强移动终端潜在的计算能力,降低应用处理时延。为达到该目标,移动终端需要将计算密集的任务通过无线接入的方式迁移到云服务器。尽管这种方式可以降低移动终端的负载但也存在明显的缺陷,即移动终端与云服务器较远的距离以及大量的终端业务请求都将导致网络时延的增加,从而降低终端用户服务体验。In response to the above problems, mobile cloud computing (MCC) technology is proposed. The goal of MCC is to extend the abundant computing resources of the cloud to resource-constrained mobile terminals, thereby enhancing the potential computing capabilities of mobile terminals and reducing application processing delays. To achieve this goal, mobile terminals need to migrate computationally intensive tasks to cloud servers through wireless access. Although this method can reduce the load of the mobile terminal, it also has obvious defects, that is, the long distance between the mobile terminal and the cloud server and a large number of terminal service requests will increase the network delay, thereby reducing the service experience of the terminal user.
欧洲电信标准协会(ETSI)提出一种新的技术:移动边缘计算(mobile edgecomputing(MEC)),在新提出的技术架构中,将位置固定且具有强大计算能力的服务器布置在网络边缘(如基站),以降低其覆盖范围内用户的通信负载与网络时延。然而,由于成本的限制,与云服务器相比,通常边缘服务器的计算资源相对有限。因此,对于边缘服务器,过多的任务可能为服务节点带来额外的负载从而影响网络时延。The European Telecommunications Standards Institute (ETSI) proposes a new technology: mobile edge computing (MEC). ) to reduce the communication load and network delay of users within its coverage area. However, due to cost constraints, edge servers usually have relatively limited computing resources compared to cloud servers. Therefore, for edge servers, too many tasks may bring extra load to service nodes and affect network latency.
目前主要有三类方法来降低MEC网络中移动终端任务时延:At present, there are mainly three types of methods to reduce the task delay of the mobile terminal in the MEC network:
第一类方法是设计并优化移动用户的卸载方案。这类方法假设基站可以获知用户的基本信息,如传输距离、请求的任务类型、当前小区用户数以及蜂窝网中用户在小区中位置信息、边缘服务器的计算能力等。移动用户通过比较任务在边缘服务器的执行时延以及在本地的执行时延,进行卸载选择,从而完成卸载策略的优化同时使终端用户获得最低的时延。在这类方法中,边缘服务器最大的计算能力是根据小区用户总数动态变化的且资源是平均分配给每一个请求用户的,且忽略了下行链路带宽资源的分配。因此,该方法存在至少两个缺陷,一个是不能根据用户任务的大小不同有差别地为用户分配适配的计算资源,导致计算资源不能被充分利用或者不满足需求;另一个是忽略了下行传输时延,当用户中有涉及到例如AR、VR等应用场景的用户时,其计算结果的数据的大小无法忽略,下行传输时延可能较大,极大地影响用户体验。The first approach is to design and optimize the offloading scheme for mobile users. This type of method assumes that the base station can obtain the basic information of the user, such as the transmission distance, the type of task requested, the current number of users in the cell, the location information of the user in the cell in the cellular network, and the computing power of the edge server. Mobile users make offload selections by comparing the execution delay of tasks on the edge server and the local execution delay, thereby completing the optimization of the offload strategy and enabling end users to obtain the lowest delay. In this type of method, the maximum computing power of the edge server is dynamically changed according to the total number of users in the cell, and the resources are evenly allocated to each requesting user, and the allocation of downlink bandwidth resources is ignored. Therefore, there are at least two defects in this method. One is that adaptive computing resources cannot be allocated to users according to the size of the user's task, resulting in the computing resources not being fully utilized or not meeting the requirements; the other is that downlink transmission is ignored. Delay. When there are users involved in application scenarios such as AR and VR, the size of the data in the calculation result cannot be ignored, and the downlink transmission delay may be large, which greatly affects the user experience.
第二类方法是设计卸载策略与资源分配联合优化方案。这类方法相对于第一类方法,更近一步限定了边缘服务器的计算能力以及系统通信资源,当有用户任务请求时,边缘服务器将通过获得的任务请求,为用户进行上行链路资源以及计算资源的优化分配,使其时延最低。随后根据优化分配得到的时延与本地计算时延进行比较,进而得到优化卸载策略以及最低时延。该方法中计算资源分配是按照按需分配的,也就是说用户的任务请求需要的计算资源多就多分点,需要的计算资源少就少分点,最后是在总计算资源约束条件下,以所有用户总时延最低为目标,按需进行资源优化分配。虽然第二类方法在多用户发起任务请求时,通过优化分配算法对通信资源、计算资源以及卸载策略进行联合优化进而最小化用户任务的执行时延,但是,第二类方法依然没有考虑下行链路资源有限的情形对任务总时延的影响。The second type of method is to design a joint optimization scheme of offloading strategy and resource allocation. Compared with the first type of method, this type of method further limits the computing power and system communication resources of the edge server. When there is a user task request, the edge server will perform uplink resources and computing for the user through the obtained task request. Optimal allocation of resources to minimize latency. Then, the delay obtained according to the optimized allocation is compared with the local computing delay, and then the optimized offloading strategy and the minimum delay are obtained. In this method, the allocation of computing resources is allocated according to needs, that is to say, the more computing resources required by the user's task request, the more points are allocated, and the less computing resources required, the less points are allocated. Finally, under the constraints of total computing resources, the The minimum total delay for all users is the goal, and resources are allocated optimally as needed. Although the second type of method jointly optimizes communication resources, computing resources and offloading strategies when multiple users initiate task requests to minimize the execution delay of user tasks, the second type of method still does not consider the downlink. The impact of limited road resources on the total task delay.
第三类方法是通过加入云服务器,云服务器被假定为具有无限资源的服务器,用户可以在本地、边缘服务器、云服务器三者中进行执行任务,以最小化应用处理时延为目标完成计算卸载。但是,第三类方法的缺点是距离远,增加了用户的通信时延,且多个用户进行业务请求时,容易导致网络阻塞,进一步增加应用处理时延,而且,第三类方法也没有考虑下行传输时延对任务总时延的影响。The third method is to add cloud servers. The cloud server is assumed to be a server with unlimited resources. Users can perform tasks in the local, edge server, and cloud server, and complete the calculation offloading with the goal of minimizing the application processing delay. . However, the disadvantage of the third type of method is that the distance is long, which increases the communication delay of users, and when multiple users make service requests, it is easy to cause network congestion, which further increases the application processing delay. Moreover, the third type of method does not consider The effect of downlink transmission delay on the total task delay.
由此可见,现有计算卸载与资源优化方案是在忽略下行链路资源影响的条件下对移动终端的任务时延进行优化的。由于任务由输入数据、输出数据以及输入数据所需的CPU循环(受计算资源影响)三部分组成,因此移动终端的任务时延将受以下几个方面影响:第一是上行链路的传输时延,当用户输入数据后,如何为用户分配最优的带宽资源满足用户需求是十分重要;第二是任务时延,如何为一个任务分配最优的计算资源以满足用户的时延需求也是十分重要的,第三是下行链路的传输时延,输入数据计算完成后,输出数据到用户时,如何为用户分配最优的带宽资源满足输出数据的传输需求是十分影响用户体验的。It can be seen that the existing calculation offloading and resource optimization scheme optimizes the task delay of the mobile terminal under the condition of ignoring the influence of downlink resources. Since the task consists of input data, output data, and CPU cycles required for the input data (affected by computing resources), the task delay of the mobile terminal will be affected by the following aspects: The first is the transmission time of the uplink. After the user enters data, it is very important to allocate the optimal bandwidth resources to the user to meet the user's needs; the second is the task delay, how to allocate the optimal computing resources for a task to meet the user's delay needs is also very important. The third important thing is the transmission delay of the downlink. After the calculation of the input data is completed, when the output data is sent to the user, how to allocate the optimal bandwidth resources to the user to meet the transmission requirements of the output data greatly affects the user experience.
除了以上三类主要方法,还有一些其他方法,未能穷举。比如,随机卸载算法(ROC),在用户有任务请求时为各用户随机分配卸载决策,从而随机地让部分用户的任务在本地执行,另外一部分用户的任务卸载到边缘服务器上执行。In addition to the above three main methods, there are some other methods, which cannot be exhaustive. For example, the random offloading algorithm (ROC) randomly assigns offloading decisions to each user when a user has a task request, thereby randomly allowing some users' tasks to be executed locally, while other users' tasks are offloaded to the edge server for execution.
以上所有方法中都假设输出数据较小,从而忽略了下行链路的传输时延。但是,在实际缓存通信应用场景中,一些情形下的下行数据较大,比如AR、VR以及远程监控等情况下,下行数据将严重影响用户时延,因此无法忽略,尤其在一些特殊应用场景中,对低用户时延有着极大的需求。例如:在无人驾驶技术中,用户需要通过移动终端对车辆进行实时监控,然而在此过程中车辆的监控信息将经过边缘服务器计算处理并通过下行链路将计算结果返回给用户的移动终端,因此在该应用场景中,下行链路资源的优化对降低任务时延是十分重要地。All the above methods assume that the output data is small, thus ignoring the downlink transmission delay. However, in the actual buffer communication application scenarios, the downlink data in some cases is large, such as AR, VR and remote monitoring, the downlink data will seriously affect the user delay, so it cannot be ignored, especially in some special application scenarios , there is a great demand for low user latency. For example: in driverless technology, the user needs to monitor the vehicle in real time through the mobile terminal. However, during this process, the monitoring information of the vehicle will be calculated and processed by the edge server and the calculation result will be returned to the user's mobile terminal through the downlink. Therefore, in this application scenario, the optimization of downlink resources is very important to reduce the task delay.
综上所述,现有方案适用的场景有限,在目前因技术发展导致一些场景的下行数据的大小较大无法忽略的情形下,无法高效地满足不同场景下用户低时延的需求。因此,有必要对现有技术进行改进。To sum up, the applicable scenarios of the existing solutions are limited. In some scenarios, the size of downlink data is too large and cannot be ignored due to technological development, and it cannot efficiently meet the low latency requirements of users in different scenarios. Therefore, it is necessary to improve the existing technology.
发明内容SUMMARY OF THE INVENTION
因此,本发明的目的在于克服上述现有技术的缺陷,提供一种综合考虑执行用户任务的上行传输时延、计算时延、下行传输时延对任务总时延影响的用于移动边缘计算的管理方法及边缘服务器。Therefore, the purpose of the present invention is to overcome the above-mentioned defects of the prior art, and to provide a mobile edge computing device for mobile edge computing that comprehensively considers the influence of the uplink transmission delay, calculation delay, and downlink transmission delay of executing user tasks on the total task delay. A management method and an edge server.
根据本发明的一方面,本发明提供一种用于移动边缘计算的管理方法,用于基站和基站覆盖范围内的移动终端、边缘服务器组成的系统的边缘辅助计算及辅助计算前的系统资源优化分配,针对每一个基站覆盖区域,执行如下步骤:According to an aspect of the present invention, the present invention provides a management method for mobile edge computing, which is used for edge-assisted computing of a system composed of a base station, a mobile terminal and an edge server within the coverage of the base station, and system resource optimization before the auxiliary computing. Allocate, for each base station coverage area, perform the following steps:
S1、响应当前时刻所有移动终端的任务请求,初始化每个移动终端的卸载决策,将每个移动终端的初始卸载决策随机设置为第一决策或第二决策;S1, in response to the task requests of all mobile terminals at the current moment, initialize the unloading decision of each mobile terminal, and randomly set the initial unloading decision of each mobile terminal as the first decision or the second decision;
S2、基于移动终端信息、系统当前的资源和步骤S1中所设置的初始卸载决策,计算所有移动终端的任务根据初始决策执行时对应的包含上行传输时延、计算时延、下行传输时延在内的总时延;S2. Based on the mobile terminal information, the current resources of the system, and the initial unloading decision set in step S1, the tasks of calculating all mobile terminals when executed according to the initial decision include the uplink transmission delay, the calculation delay, and the downlink transmission delay at The total delay in
S3、依次计算每个移动终端的卸载决策调整为与当前卸载决策相反的决策时的总时延,其中,若某个移动终端调整当前卸载决策后会使得总时延减小,则调整该移动终端的卸载决策,反之则不调整;S3. Calculate in turn the total delay when the unloading decision of each mobile terminal is adjusted to a decision opposite to the current unloading decision, wherein, if a certain mobile terminal adjusts the current unloading decision, the total delay will be reduced, then adjust the mobile terminal. The uninstallation decision of the terminal, otherwise it will not be adjusted;
S4、对于每个移动终端计算一轮后确定没有任何一个移动终端在该轮调整过程中调整其卸载决策,结束调整过程,得到每个移动终端的最终的卸载决策及最终的系统资源分配方案;S4. After one round of calculation for each mobile terminal, it is determined that no mobile terminal has adjusted its unloading decision during the round of adjustment, and the adjustment process is ended to obtain the final unloading decision and final system resource allocation scheme of each mobile terminal;
S5、为最终的卸载决策为第一决策的移动终端根据系统资源分配方案独立地分配本次的上行、下行通信资源和本次用于辅助计算其任务所需的边缘服务器的计算资源;S5, independently allocate the current uplink and downlink communication resources and the computing resources of the edge server this time for assisting the calculation of the task required by the mobile terminal for the final unloading decision according to the system resource allocation scheme;
S6、按照每个移动终端的最终的卸载决策执行其任务请求;和/或S6. Execute the task request of each mobile terminal according to the final uninstallation decision of each mobile terminal; and/or
S7、在完成当前时刻所有移动终端的任务请求后进入下一个任务周期,重新执行步骤S1-S7;S7, enter the next task cycle after completing the task requests of all mobile terminals at the current moment, and re-execute steps S1-S7;
其中,第一决策表示该移动终端将其任务请求对应的任务卸载至边缘服务器上计算,第二决策表示该移动终端将其任务请求对应的任务放置在本地计算,上行或者下行通信资源是按照将带宽资源以百分比形式分配给最终的卸载决策为第一决策的移动终端,边缘服务器的计算资源是按照将边缘服务器的计算资源以百分比形式分配给最终的卸载决策为第一决策的移动终端,每一个最终的卸载决策为第一决策的移动终端所占资源百分比是其任务请求需求在最终卸载决策为第一决策的所有移动终端对应的任务请求总需求中的百分比占比。The first decision indicates that the mobile terminal offloads the task corresponding to its task request to the edge server for calculation, the second decision indicates that the mobile terminal places the task corresponding to its task request for local computing, and the uplink or downlink communication resources are calculated according to the The bandwidth resources are allocated in percentage to the mobile terminal whose final unloading decision is the first decision, and the computing resources of the edge server are allocated in percentage to the mobile terminal whose final unloading decision is the first decision. The percentage of resources occupied by a mobile terminal whose final unloading decision is the first decision is the percentage ratio of its task request demand to the total task request demand corresponding to all mobile terminals whose final unloading decision is the first decision.
其中,所述步骤S3包括:Wherein, the step S3 includes:
S31、依次计算每个移动终端的卸载决策调整为与当前卸载决策相反的决策时的总时延,该总时延每次是基于当前移动终端调整后与所有移动终端的卸载决策相适配的系统资源分配方案计算得出;和/或S31. Calculate in turn the total delay when the unloading decision of each mobile terminal is adjusted to a decision opposite to the current unloading decision, and the total delay is adapted to the unloading decisions of all mobile terminals after being adjusted based on the current mobile terminal each time System resource allocation plan is calculated; and/or
S32、若某个移动终端调整当前卸载决策后会使得总时延减小,则调整该移动终端的卸载决策和资源分配方案,反之则不调整。S32. If a mobile terminal adjusts the current offloading decision so that the total time delay is reduced, adjust the offloading decision and resource allocation scheme of the mobile terminal, otherwise, do not adjust.
优选的,下行传输时延为计算结果数据的大小与下行传输速率之比。在计算下行传输时延时,可以根据以下方式中的其中一种提供对应的计算结果数据的大小:在边缘服务器前期计算过相同的任务的情况下,根据边缘服务器的历史数据提供前期得出的计算结果数据的大小作为对应任务的计算结果数据的大小;在边缘服务器前期没有计算过相同但计算过同类型的任务的情况下,根据边缘服务器的历史数据形成参考范围且在该参考范围内随机提供第一随机值作为对应任务的计算结果的大小;和在边缘服务器前期既没有计算过相同且也没有计算过同类型的任务的情况下,由边缘服务器随机提供一个小于等于该任务的大小的第二随机值作为对应的计算结果的大小。Preferably, the downlink transmission delay is the ratio of the size of the calculation result data to the downlink transmission rate. When calculating the downlink transmission delay, the size of the corresponding calculation result data can be provided according to one of the following methods: In the case that the edge server has calculated the same task in the early stage, according to the historical data of the edge server, provide the data obtained in the early stage. The size of the calculation result data is used as the size of the calculation result data of the corresponding task; if the edge server has not calculated the same but the same type of task in the early stage, a reference range is formed according to the historical data of the edge server and random within the reference range Provide the first random value as the size of the calculation result of the corresponding task; and if the edge server has neither calculated the same nor the same type of task in the early stage, the edge server randomly provides a size smaller than or equal to the size of the task. The second random value is used as the size of the corresponding calculation result.
根据本发明的另一方面,本发明提供一种边缘服务器,用于为与其相关的基站覆盖的区域中的移动终端提供至少包括辅助计算的服务,所述边缘服务器包括:一个或多个处理器;以及存储器,其中存储器用于存储可执行指令;所述一个或多个处理器被配置为经由执行所述可执行指令以执行前述方法。According to another aspect of the present invention, the present invention provides an edge server for providing services including at least auxiliary computing for mobile terminals in an area covered by a base station associated therewith, the edge server comprising: one or more processors and a memory, wherein the memory is used to store executable instructions; the one or more processors are configured to perform the aforementioned method by executing the executable instructions.
与现有技术相比,本发明的优点在于:本发明充分考虑执行所有用户任务的上行传输时延、计算时延、下行传输时延对任务总时延影响,在边缘服务器提供辅助计算前,综合考虑上行传输时延、计算时延和下行传输时延对总时延的影响,为各移动终端对系统当前有限的资源进行优化分配,以降低执行所有用户任务的总时延。特别是在目前因技术发展导致一些场景的下行数据的大小较大无法忽略的情形下,本发明能让执行任务请求对应的所有任务的总时延最小,而对于下行数据的大小较小的情形,本发明也能够让执行任务请求对应的所有任务的总时延最小,能够高效地满足不同场景下用户低时延的需求,从而提高用户体验。Compared with the prior art, the advantages of the present invention are: the present invention fully considers the influence of the uplink transmission delay, calculation delay, and downlink transmission delay of executing all user tasks on the total task delay, and before the edge server provides auxiliary computing, Considering the influence of uplink transmission delay, calculation delay and downlink transmission delay on the total delay, the current limited resources of the system are optimally allocated for each mobile terminal to reduce the total delay of executing all user tasks. Especially in the current situation where the size of downlink data in some scenarios is too large to be ignored due to technological development, the present invention can minimize the total delay of all tasks corresponding to the task execution request, and for the case where the size of downlink data is small , the present invention can also minimize the total delay of all tasks corresponding to the task request, and can efficiently meet the user's low-latency requirements in different scenarios, thereby improving user experience.
附图说明Description of drawings
以下参照附图对本发明实施例作进一步说明,其中:The embodiments of the present invention will be further described below with reference to the accompanying drawings, wherein:
图1为根据本发明实施例的基站系统常规架构的示意图;1 is a schematic diagram of a conventional architecture of a base station system according to an embodiment of the present invention;
图2为根据本发明实施例的用于移动边缘计算的管理方法以及三个现有方法在不同移动终端数量下各自对应的总时延比较示意图;2 is a schematic diagram illustrating a comparison of total delays corresponding to a management method for mobile edge computing and three existing methods under different numbers of mobile terminals according to an embodiment of the present invention;
图3为根据本发明实施例的用于移动边缘计算的管理方法以及三个现有方法在不同输入数据大小下各自对应的总时延比较示意图;3 is a schematic diagram illustrating a comparison of total delays corresponding to a management method for mobile edge computing and three existing methods under different input data sizes according to an embodiment of the present invention;
图4为根据本发明实施例的用于移动边缘计算的管理方法以及三个现有方法在不同计算结果数据大小下各自对应的总时延比较示意图。FIG. 4 is a schematic diagram showing a comparison of total delays corresponding to a management method for mobile edge computing according to an embodiment of the present invention and three existing methods under different data sizes of calculation results.
具体实施方式Detailed ways
为了使本发明的目的,技术方案及优点更加清楚明白,以下结合附图通过具体实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings through specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
首先,介绍一下本发明的背景。First, the background of the present invention is described.
发明人在进行降低用户时延的研究时,通过研究现有移动边缘计算网络中影响移动用户时延的因素以及相关解决方案,发现影响移动用户的时延因子中,下行数据的传输时延是十分重要且无法忽略的。因此在考虑下行数据传输的基础上综合上行数据传输和计算资源对移动终端任务时延进行优化是十分必要的。在优化过程中,由于单基站覆盖的区域中不同用户的计算能力不同,另外不同用户执行任务也具有不同特点,即:输入数据大小、输出数据大小以及任务所需的CPU循环数不同,也就是不同用户任务请求所需的上行网络带宽资源、下行网络带宽资源、边缘服务器计算资源都不同。此外在单基站多用户的场景中,边缘服务器的计算能力与基站的频谱资源有限。因此如何在多用户请求下,使得所有用户对应的移动终端获取最低的总时延是一个重要的问题。本申请提出的方案在考虑上、下行通信资源的场景中可以显著降低移动用户的任务时延,进而提高用户服务体验。When the inventor is conducting research on reducing user delay, by studying the factors affecting mobile user delay in the existing mobile edge computing network and related solutions, it is found that among the delay factors affecting mobile users, the transmission delay of downlink data is very important and cannot be ignored. Therefore, it is necessary to optimize the task delay of the mobile terminal by integrating the uplink data transmission and computing resources on the basis of considering the downlink data transmission. In the optimization process, due to the different computing capabilities of different users in the area covered by a single base station, the tasks performed by different users also have different characteristics, that is, the input data size, output data size and the number of CPU cycles required for the task are different, that is The uplink network bandwidth resources, downlink network bandwidth resources, and edge server computing resources required by different user task requests are different. In addition, in a single base station multi-user scenario, the computing power of the edge server and the spectrum resources of the base station are limited. Therefore, it is an important issue how to make the mobile terminals corresponding to all users obtain the lowest total delay under the request of multiple users. The solution proposed in the present application can significantly reduce the task delay of the mobile user in the scenario of considering the uplink and downlink communication resources, thereby improving the user service experience.
其次,对本发明中所使用的部分术语作如下定义:Secondly, some terms used in the present invention are defined as follows:
边缘服务器是指部署于网络边缘如基站附近为相应的用户提供服务的服务器。在本申请中,服务至少包括辅助计算服务,用户可以是指移动终端。An edge server refers to a server deployed at the edge of the network, such as near a base station, to provide services to corresponding users. In this application, a service includes at least an auxiliary computing service, and a user may refer to a mobile terminal.
CPU循环是指每秒执行指令的次数,对应的英文名称为CPU cycles。CPU cycles refer to the number of times an instruction is executed per second, and the corresponding English name is CPU cycles.
图1示出了根据本发明一个实施例的基站系统常规架构的示意图,系统包括基站、边缘服务器以及基站覆盖范围内的移动终端。该边缘服务器部署于处于网络边缘的基站处,为该基站覆盖区域内的移动终端提供服务。在本申请中,每个移动终端即对应于基站的一个用户。基站负责为移动终端提供通信服务,边缘服务器负责为移动终端提供计算服务。移动终端会发出任务请求,以寻求边缘服务器提供辅助计算服务。但是,在由基站、边缘服务器和移动终端组成的系统中,系统当前的资源是受限的,不可能满足每个移动终端的任务请求。因此,在边缘服务器提供辅助计算前,如何为各移动终端对系统资源进行优化分配,需要综合考虑上行传输时延、计算时延和下行传输时延。在目前因技术发展导致一些场景的下行数据的大小较大无法忽略的情形下,让执行任务请求对应的所有任务的总时延最小,能够高效地满足不同场景下用户低时延的需求,从而提高用户体验。FIG. 1 shows a schematic diagram of a conventional architecture of a base station system according to an embodiment of the present invention. The system includes a base station, an edge server, and a mobile terminal within the coverage of the base station. The edge server is deployed at the base station at the edge of the network, and provides services for mobile terminals within the coverage area of the base station. In this application, each mobile terminal corresponds to a user of the base station. The base station is responsible for providing communication services for mobile terminals, and the edge server is responsible for providing computing services for mobile terminals. The mobile terminal will issue a task request to seek the edge server to provide auxiliary computing services. However, in a system composed of base stations, edge servers and mobile terminals, the current resources of the system are limited, and it is impossible to satisfy the task request of each mobile terminal. Therefore, before the edge server provides auxiliary computing, how to optimally allocate system resources for each mobile terminal needs to comprehensively consider the uplink transmission delay, calculation delay and downlink transmission delay. In the current situation that the size of downlink data in some scenarios is too large to be ignored due to technological development, the total delay of all tasks corresponding to the task execution request can be minimized, which can efficiently meet the user's low-latency requirements in different scenarios. Improve user experience.
根据本发明一个实施例,本发明提供一种用于移动边缘计算的管理方法,用于基站和基站覆盖范围内的移动终端、边缘服务器组成的系统的边缘辅助计算及辅助计算前的系统资源优化分配,针对每一个基站覆盖区域,执行如下主要步骤:According to an embodiment of the present invention, the present invention provides a management method for mobile edge computing, which is used for edge-assisted computing of a system composed of a base station, a mobile terminal within the coverage of the base station, and an edge server, and system resource optimization before the auxiliary calculation. Allocate, for each base station coverage area, perform the following main steps:
S1、响应当前时刻所有移动终端的任务请求,初始化每个移动终端的卸载决策,将每个移动终端的初始卸载决策随机设置为第一决策或第二决策;S1, in response to the task requests of all mobile terminals at the current moment, initialize the unloading decision of each mobile terminal, and randomly set the initial unloading decision of each mobile terminal as the first decision or the second decision;
S2、基于移动终端信息、系统当前的资源和步骤S1中所设置的初始卸载决策,计算所有移动终端的任务根据初始决策执行时对应的包含上行传输时延、计算时延、下行传输时延在内的总时延;S2. Based on the mobile terminal information, the current resources of the system, and the initial unloading decision set in step S1, the tasks of calculating all mobile terminals when executed according to the initial decision include the uplink transmission delay, the calculation delay, and the downlink transmission delay at The total delay within;
S3、依次计算每个移动终端的卸载决策调整为与当前卸载决策相反的决策时的总时延,其中,若某个移动终端调整当前卸载决策后会使得总时延减小,则调整该移动终端的卸载决策,反之则不调整;S3. Calculate in turn the total delay when the unloading decision of each mobile terminal is adjusted to a decision opposite to the current unloading decision, wherein, if a certain mobile terminal adjusts the current unloading decision, the total delay will be reduced, then adjust the mobile terminal. The uninstallation decision of the terminal, otherwise it will not be adjusted;
S4、对于每个移动终端计算一轮后确定没有任何一个移动终端在该轮调整过程中调整其卸载决策,结束调整过程,得到每个移动终端的最终的卸载决策及最终的系统资源分配方案;S4. After one round of calculation for each mobile terminal, it is determined that no mobile terminal has adjusted its unloading decision during the round of adjustment, and the adjustment process is ended to obtain the final unloading decision and final system resource allocation scheme of each mobile terminal;
S5、为最终的卸载决策为第一决策的移动终端根据系统资源分配方案独立地分配本次的上行、下行通信资源和本次用于辅助计算其任务所需的边缘服务器的计算资源;S5, independently allocate the current uplink and downlink communication resources and the computing resources of the edge server this time for assisting the calculation of the task required by the mobile terminal for the final unloading decision according to the system resource allocation scheme;
S6、按照每个移动终端的最终的卸载决策执行其任务请求;和/或S6. Execute the task request of each mobile terminal according to the final uninstallation decision of each mobile terminal; and/or
S7、在完成当前时刻所有移动终端的任务请求后进入下一个任务周期,重新执行步骤S1-S7;S7, enter the next task cycle after completing the task requests of all mobile terminals at the current moment, and re-execute steps S1-S7;
其中,第一决策表示该移动终端将其任务请求对应的任务卸载至边缘服务器上计算,第二决策表示该移动终端将其任务请求对应的任务放置在本地计算,上行或者下行通信资源是按照将带宽资源以百分比形式分配给最终的卸载决策为第一决策的移动终端,边缘服务器的计算资源是按照将边缘服务器的计算资源以百分比形式分配给最终的卸载决策为第一决策的移动终端,每一个最终的卸载决策为第一决策的移动终端所占资源百分比是其任务请求需求在最终卸载决策为第一决策的所有移动终端对应的任务请求总需求中的百分比占比。The first decision indicates that the mobile terminal offloads the task corresponding to its task request to the edge server for calculation, the second decision indicates that the mobile terminal places the task corresponding to its task request for local computing, and the uplink or downlink communication resources are calculated according to the The bandwidth resources are allocated in percentage to the mobile terminal whose final unloading decision is the first decision, and the computing resources of the edge server are allocated in percentage to the mobile terminal whose final unloading decision is the first decision. The percentage of resources occupied by a mobile terminal whose final unloading decision is the first decision is the percentage ratio of its task request demand to the total task request demand corresponding to all mobile terminals whose final unloading decision is the first decision.
优选的,该方法还可以包括:每次在执行步骤S1之前,获取基站覆盖区域中所有移动终端的移动终端信息并刷新记载移动终端信息的用户信息表,以每次基于用户信息表中更新的移动终端信息计算本次的总时延。移动终端信息包括该移动终端的位置信息、计算能力和请求的具体的任务信息。移动终端信息还可以包括该移动终端的发送功率。Preferably, the method may further include: each time before step S1 is performed, acquiring the mobile terminal information of all mobile terminals in the coverage area of the base station and refreshing the user information table recording the mobile terminal information, so that each time based on the updated information in the user information table The mobile terminal information calculates the total delay this time. The mobile terminal information includes location information, computing capability and requested specific task information of the mobile terminal. The mobile terminal information may also include the transmit power of the mobile terminal.
优选的,针对步骤S1,边缘服务器可以是完成覆盖范围内的用户的一轮的任务请求并对接收到的移动终端卸载的任务进行辅助计算出的计算结果发送给相应的移动终端后,再开始响应新一轮的当前时刻所有移动终端的任务请求。Preferably, for step S1, the edge server may complete a round of task requests of users within the coverage area and perform auxiliary calculation on the received task unloaded by the mobile terminal, and then send the calculation result to the corresponding mobile terminal before starting. Respond to task requests of all mobile terminals at the current moment in a new round.
为了更好的理解本发明,下面结合具体的实施例针对每一个步骤分别进行详细说明。For better understanding of the present invention, each step is described in detail below with reference to specific embodiments.
S1、响应当前时刻所有移动终端的任务请求,初始化每个移动终端的卸载决策,将每个移动终端的初始卸载决策随机设置为第一决策或第二决策。比如,假设当前基站覆盖区域内有三个用户的移动终端发出了任务请求,这时,当前时刻所有移动终端的任务请求即为这三个用户发出的任务请求,边缘服务器响应当前时刻所有移动终端的任务请求,将这三个用户对应的初始卸载决策随机设置为0或1,比如,三个用户对应的初始卸载决策分别被随机设置为0、1、1,其中,1代表第一决策,0代表第二决策。S1. In response to the task requests of all mobile terminals at the current moment, initialize the uninstallation decision of each mobile terminal, and randomly set the initial uninstallation decision of each mobile terminal as the first decision or the second decision. For example, assuming that there are three user mobile terminals in the coverage area of the current base station that have sent task requests, at this time, the task requests of all mobile terminals at the current moment are the task requests sent by these three users, and the edge server responds to all mobile terminals at the current moment. For task request, the initial uninstallation decision corresponding to the three users is randomly set to 0 or 1. For example, the initial uninstallation decision corresponding to the three users is randomly set to 0, 1, and 1 respectively, where 1 represents the first decision and 0 represents the second decision.
S2、基于移动终端信息、系统当前的资源和步骤S1中所设置的初始卸载决策,计算所有移动终端的任务根据初始决策执行时对应的包含上行传输时延、计算时延、下行传输时延在内的总时延。随机设置各用户的初始卸载决策后,会根据用户的初始卸载决策对系统资源进行对应的分配,形成一个对应于初始卸载决策的初始的系统资源分配方案,从而据此计算出根据初始卸载决策的初始的系统资源分配方案得出的对应的总时延。根据本发明的一个实施例,假设每个移动终端只请求执行一个任务wi={si,di,ci},其中si表示任务对应的输入数据的大小,di表示计算结果数据的大小,ci表示一个任务所需CPU循环总量。所有移动终端的卸载决策的集合为卸载策略。S2. Based on the mobile terminal information, the current resources of the system, and the initial unloading decision set in step S1, the tasks of calculating all mobile terminals when executed according to the initial decision include the uplink transmission delay, the calculation delay, and the downlink transmission delay at total delay in . After the initial uninstallation decision of each user is randomly set, system resources will be allocated correspondingly according to the user's initial uninstallation decision to form an initial system resource allocation scheme corresponding to the initial uninstallation decision, so as to calculate the The corresponding total delay derived from the initial system resource allocation scheme. According to an embodiment of the present invention, it is assumed that each mobile terminal only requests to execute one task w i ={s i ,d i , ci }, where s i represents the size of the input data corresponding to the task, and d i represents the calculation result data The size of ci represents the total amount of CPU cycles required for a task. The set of uninstallation decisions of all mobile terminals is an uninstallation policy.
由此,上行传输时延可以表示为其中,表示上行传输数据的速率,可以表示为:Therefore, the uplink transmission delay can be expressed as in, Indicates the rate of uplink data transmission, which can be expressed as:
其中,ki表示移动终端i上传其任务所占上行带宽百分比,Pi,s表示移动终端i的发送功率,hi,B表示从移动终端i到基站的信道衰落系数,d表示移动终端i与基站的距离,r表示路径损耗,σ2表示信道的噪声功率。Among them, ki represents the percentage of uplink bandwidth occupied by mobile terminal i uploading its tasks, P i,s represents the transmit power of mobile terminal i, hi ,B represents the channel fading coefficient from mobile terminal i to the base station, and d represents mobile terminal i The distance from the base station, r represents the path loss, and σ 2 represents the noise power of the channel.
下行传输时延可以表示为其中,表示下行传输数据的速率,可以表示为:The downlink transmission delay can be expressed as in, Represents the rate of downlink data transmission, which can be expressed as:
其中,ξi表示移动终端i接收下行数据时所占的带宽百分比,hB,i表示从基站到移动终端i的信道衰落系数,PB表示基站的发射功率。Among them, ξ i represents the bandwidth percentage occupied by mobile terminal i when receiving downlink data, h B,i represents the channel fading coefficient from the base station to the mobile terminal i, and P B represents the transmit power of the base station.
计算时延分为两种,一种是任务在边缘服务器上执行时的计算时延,另一种是任务在本地执行时的计算时延。There are two types of computing delays, one is the computing delay when the task is executed on the edge server, and the other is the computing delay when the task is executed locally.
任务在边缘服务器上执行的计算时延可以表示为:fi,m表示边缘服务器为移动终端i分配的计算资源。The computing delay of tasks executed on the edge server can be expressed as: f i,m represents the computing resources allocated by the edge server to the mobile terminal i.
任务在本地执行的计算时延可以表示为:fi,l表示移动终端i本地的计算能力。The computational delay of the task executing locally can be expressed as: f i,l represents the local computing capability of the mobile terminal i.
因此,移动终端i的任务卸载至边缘服务器执行产生的时延可以表示为:Ui,m=ti,u+ti,d+ti,m。移动终端i的任务在本地执行产生的时延可以表示为:Ui,l=ti,l。可见,由移动终端卸载至边缘服务器上执行任务的时延包括上行传输时延、计算时延和下行传输时延。移动终端在本地执行任务的时延包括计算时延,由于没有上传任务和接收计算结果数据的过程,因此移动终端在本地执行任务的时延没有上行传输时延和下行传输时延。Therefore, the delay caused by offloading the task of the mobile terminal i to the edge server for execution can be expressed as: U i,m =t i,u +t i,d +t i,m . The time delay caused by the local execution of the task of the mobile terminal i can be expressed as: U i,l =t i,l . It can be seen that the delay of offloading the task from the mobile terminal to the edge server includes the uplink transmission delay, the calculation delay and the downlink transmission delay. The delay of the mobile terminal executing the task locally includes the calculation delay. Since there is no process of uploading the task and receiving the calculation result data, the delay of the mobile terminal executing the task locally has no uplink transmission delay and downlink transmission delay.
优选的,针对步骤S2,可以通过建立时延问题基本模型的方式将影响总时延的因子进行形式化表述,限定总时延的计算方式。换言之,时延问题基本模型可以用于基于系统当前的资源和移动终端信息对影响总时延的因素进行形式化表述。本发明实施例提出的时延问题模型是在单基站覆盖的区域中多用户任务请求时的模型。在时延问题基本模型中,每个移动终端的计算能力可以不同、每个任务可以不同,此外带宽资源可以按照百分比进行设计;该时延问题基本模型中每个移动终端每次可以请求一个或者多个任务。边缘服务器具有并发的处理能力,即:可以同时处理多个任务。因此,在初始阶段,基站需要收集系统中用户的移动终端信息。移动终端信息可以包括各移动终端的计算能力、相对于基站的位置信息和/或移动终端的发射功率。这些移动终端信息可以记录在用户信息表中并进行周期性地刷新。Preferably, for step S2, the factors affecting the total delay can be formally expressed by establishing a basic model of the delay problem, and the calculation method of the total delay can be limited. In other words, the basic model of the delay problem can be used to formally express the factors affecting the total delay based on the current resources of the system and the information of the mobile terminal. The time delay problem model proposed by the embodiment of the present invention is a model for multi-user task requests in an area covered by a single base station. In the basic model of the delay problem, the computing power of each mobile terminal can be different, each task can be different, and the bandwidth resources can be designed according to percentages; in the basic model of the delay problem, each mobile terminal can request one or more at a time. multiple tasks. Edge servers have concurrent processing capabilities, that is, they can process multiple tasks at the same time. Therefore, in the initial stage, the base station needs to collect the mobile terminal information of the users in the system. The mobile terminal information may include the computing capability of each mobile terminal, location information relative to the base station, and/or the transmit power of the mobile terminal. These mobile terminal information can be recorded in the user information table and refreshed periodically.
优选的,时延问题基本模型可以表示为:Preferably, the basic model of the delay problem can be expressed as:
其中,A表示卸载策略,A={ai}i∈L,ai表示移动终端i的卸载决策,ai∈{0,1},当ai=1时,表示移动终端i的卸载决策为第一决策,移动终端i将其任务请求对应的任务卸载至边缘服务器上计算;当ai=0时,则表示移动终端i的卸载决策为第二决策,移动终端i将其任务请求对应的任务放置在本地计算,L表示所有移动终端的集合,L={i:i=1,2,...N},fi,m表示边缘服务器为移动终端i分配的计算资源,fm表示边缘服务器可提供的总的计算能力,ki表示移动终端i上传其任务所占上行带宽百分比,ξi表示移动终端i接收下行数据时所占的带宽百分比,a表示具体的一组卸载决策,a={a1,a2,...an},an中的n是当前实际的用户总数,即实际的移动终端的总个数,Ui,m表示移动终端i将其任务卸载至边缘服务器计算产生的总时延,Ui,l表示移动终端i将任务放置在本地计算产生的计算时延,限制条件C1表示分配给至少两个移动终端的计算资源的和要小于等于服务器的计算能力,限制条件C2表示为分配给至少两个移动终端的上行频谱资源总和要小于等于系统的总上行带宽,限制条件C3表示为分配给至少两个移动终端的下行频谱资源总和要小于等于系统的总下行带宽,限制条件C4表示移动终端i的本地计算资源是非负的,限制条件C5表示为移动终端i的卸载决策是第一决策或者第二决策。Among them, A represents the uninstall strategy, A={a i } i∈L , a i represents the uninstall decision of the mobile terminal i, a i ∈{0,1}, when a i =1, it represents the uninstall decision of the mobile terminal i For the first decision, mobile terminal i unloads the task corresponding to its task request to the edge server for calculation; when a i = 0, it means that the unloading decision of mobile terminal i is the second decision, and mobile terminal i corresponds to its task request. The tasks are placed in local computing, L represents the set of all mobile terminals, L={i:i=1,2,...N}, f i,m represents the computing resources allocated by the edge server to the mobile terminal i, f m represents the total computing power that the edge server can provide, k i represents the percentage of uplink bandwidth occupied by mobile terminal i uploading its tasks, ξ i represents the bandwidth percentage occupied by mobile terminal i when receiving downlink data, a represents a specific set of offloading decisions, a={a 1 , a 2 ,...a n }, n in an is the current actual The total number of users, that is, the actual total number of mobile terminals, U i,m represents the total delay caused by the mobile terminal i offloading its tasks to the edge server for computing, U i,l represents the mobile terminal i places the tasks on the local computing generation. The calculation delay, the restriction condition C1 indicates that the sum of the computing resources allocated to at least two mobile terminals should be less than or equal to the computing capability of the server, and the restriction condition C2 means that the sum of the uplink spectrum resources allocated to the at least two mobile terminals should be less than or equal to the system Constraint C3 means that the sum of downlink spectrum resources allocated to at least two mobile terminals is less than or equal to the total downlink bandwidth of the system, Constraint C4 means that the local computing resource of mobile terminal i is non-negative, Constraint C5 means The offloading decision for mobile terminal i is the first decision or the second decision.
S3、依次计算每个移动终端的卸载决策调整为与当前卸载决策相反的决策时的总时延,其中,若某个移动终端调整当前卸载决策后会使得总时延减小,则调整该移动终端的卸载决策,反之则不调整;S3. Calculate in turn the total delay when the unloading decision of each mobile terminal is adjusted to a decision opposite to the current unloading decision, wherein, if a certain mobile terminal adjusts the current unloading decision, the total delay will be reduced, then adjust the mobile terminal. The uninstallation decision of the terminal, otherwise it will not be adjusted;
S4、对于每个移动终端计算一轮后确定没有任何一个移动终端在该轮调整过程中调整其卸载决策,结束调整过程,得到每个移动终端的最终的卸载决策及最终的系统资源分配方案。。S4. After one round of calculation for each mobile terminal, it is determined that no mobile terminal adjusts its unloading decision during this round of adjustment, and the adjustment process is ended to obtain the final unloading decision and final system resource allocation scheme of each mobile terminal. .
根据本发明一个实施例,步骤S3中,依次计算每个移动终端的卸载决策调整为与当前卸载决策相反的决策时的总时延的调整过程中,每次调整的卸载决策的个数可以是一个或者多个。比如,依次计算每个移动终端的卸载决策调整为与当前卸载决策相反的决策时的总时延时,可以是每次仅调整其中单个移动终端的卸载决策而其他移动终端的卸载决策本次不调整,以此来计算该移动终端的卸载决策调整为与当前卸载决策相反的决策时的总时延。具体来说,若当前调整到某个移动终端,该移动终端的当前的卸载决策是1,则调整0,其余移动终端的卸载决策本次不调整,以此计算调整后的总时延。又或者,依次计算每个移动终端的卸载决策调整为与当前卸载决策相反的决策时的总时延时,可以是每次调整其中两个移动终端的卸载决策而其他移动终端的卸载决策本次不调整,以此来计算这两个移动终端的卸载决策调整为与当前卸载决策相反的决策时的总时延。具体来说,若当前调整到某两个移动终端,这两个移动终端的当前的卸载决策分别是1、0,则分别调整为0、1,其余移动终端的卸载决策本次不调整,以此计算调整后的总时延。According to an embodiment of the present invention, in step S3, in the adjustment process of calculating the total delay when the unloading decision of each mobile terminal is adjusted to a decision opposite to the current unloading decision in turn, the number of unloading decisions adjusted each time may be one or more. For example, calculating in turn the total time delay when the unloading decision of each mobile terminal is adjusted to a decision opposite to the current unloading decision may be adjusted each time only the unloading decision of a single mobile terminal and the unloading decisions of other mobile terminals are not adjusted this time. adjustment, so as to calculate the total delay when the unloading decision of the mobile terminal is adjusted to a decision opposite to the current unloading decision. Specifically, if the current unloading decision of a mobile terminal is adjusted to 1, it is adjusted to 0, and the unloading decisions of other mobile terminals are not adjusted this time, so as to calculate the adjusted total delay. Or, the total time delay when the unloading decision of each mobile terminal is adjusted to a decision opposite to the current unloading decision is calculated in turn. No adjustment is made, so as to calculate the total delay when the unloading decision of the two mobile terminals is adjusted to a decision opposite to the current unloading decision. Specifically, if it is currently adjusted to some two mobile terminals, and the current uninstallation decisions of these two mobile terminals are 1 and 0, respectively, they are adjusted to 0 and 1 respectively, and the uninstallation decisions of the remaining mobile terminals are not adjusted this time, so that This calculates the adjusted total delay.
根据本发明一个实施例,针对步骤S3~S4,可以通过构建时延问题解决模型的方式来分析和确定最终的卸载决策及系统资源分配方案,本实施例提出的时延问题解决模型采用博弈模型,但解决该问题不仅限于博弈模型。构建时延问题解决模型的原因在于,上述时延问题基本模型求解的计算时间可能较长或者难于求得直解,因此在构建的时延问题基本模型的基础上基于博弈论重新建模,以构建时延问题解决模型,从而缩短求解时间。时延问题解决模型可以用于分析得到能使得完成所有任务请求对应的任务所需的总时延最小化的最终的卸载策略和最终的资源分配方案。应当理解的是,最终的卸载策略即是每个移动终端的最终的卸载决策的集合。According to an embodiment of the present invention, for steps S3 to S4, the final unloading decision and system resource allocation scheme can be analyzed and determined by constructing a delay problem solving model. The delay problem solving model proposed in this embodiment adopts a game model , but solving this problem is not limited to game models. The reason for constructing the model for solving the delay problem is that the calculation time for solving the basic model of the above-mentioned delay problem may be long or it is difficult to obtain a direct solution. Build time-delay problem solving models to reduce solution time. The delay problem solving model can be used to analyze and obtain the final offloading strategy and the final resource allocation scheme that can minimize the total delay required to complete the tasks corresponding to all task requests. It should be understood that the final uninstall policy is a set of final uninstall decisions of each mobile terminal.
优选的,时延问题解决模型可以表示为:Preferably, the delay problem solving model can be expressed as:
G={L,(Ai)i∈L,ui};G={L, (A i ) i∈L , u i };
其中,L表示所有移动终端的集合,Ai表示移动终端i的卸载策略,ui表示移动终端i的时延效用函数,移动终端i的时延表示为 表示至少两个移动终端中除了移动终端i以外的其他移动终端j的卸载决策。Among them, L represents the set of all mobile terminals, A i represents the unloading strategy of mobile terminal i, ui represents the delay utility function of mobile terminal i, and the delay of mobile terminal i is expressed as represents the uninstallation decision of the other mobile terminal j except the mobile terminal i among the at least two mobile terminals.
根据本发明一个实施例,本申请的方法可以通过时延问题解决模型让各移动终端经过博弈得到最终的包含最优解的资源分配方案,表示为:According to an embodiment of the present invention, the method of the present application can allow each mobile terminal to obtain a final resource allocation scheme including an optimal solution through a game through a time delay problem solving model, which is expressed as:
边缘服务器为移动终端i分配的计算资源的最优解 Optimal solution of computing resources allocated by edge server to mobile terminal i
移动终端i上传其任务所占上行带宽百分比的最优解 The optimal solution for the percentage of uplink bandwidth that mobile terminal i uploads its tasks
移动终端i接收下行数据时所占的带宽百分比的最优解 The optimal solution for the percentage of bandwidth occupied by mobile terminal i receiving downlink data
其中,B表示总频谱带宽,hi,B表示从移动终端i到基站的信道衰落系数,Pi,s表示为移动终端i的发送功率,d表示移动终端i与基站的距离,r表示路径损耗,σ2表示信道的噪声功率,hB,i表示从基站到移动终端i的信道衰落系数,PB表示基站的发射功率,μ、λ和θ分别为第一、第二和第三优化因子。第一优化因子μ、第二优化因子λ和第三优化因子θ在迭代调整的过程中每次相应移动终端的卸载决策发生调整时则对应地进行优化更新,优化更新所采用的公式分别为:in, B represents the total spectrum bandwidth, hi ,B represents the channel fading coefficient from the mobile terminal i to the base station, Pi ,s represents the transmit power of the mobile terminal i, d represents the distance between the mobile terminal i and the base station, r represents the path loss, σ 2 represents the noise power of the channel, h B,i represents the channel fading coefficient from the base station to the mobile terminal i, P B represents the transmit power of the base station, μ, λ and θ are the first, second and third optimization factors, respectively. In the iterative adjustment process, the first optimization factor μ, the second optimization factor λ and the third optimization factor θ are optimized and updated accordingly every time the unloading decision of the corresponding mobile terminal is adjusted, and the formulas used for the optimization and update are:
其中,为迭代步长,迭代步长的取值范围可以为10-5~10-7,t为迭代次数且t≥0,μ(t+1)、λ(t+1)和θ(t+1)分别为μ、λ和θ在本次调整后的数值,μ(t)、λ(t)和λ(t)分别为μ、λ和θ在本次调整前的数值。在一种情况下,虽然μ(t)-μ(t+1)≤10-6、λ(t)-λ(t+1)≤10-6和θ(t)-θ(t+1)≤10-6的情况并未完全满足,但是在调整过程中,在从某一个移动终端开始经历一轮调整过程再次回到该移动终端的整个过程中,均没有任何一个移动终端在该轮调整过程中调整其卸载决策,则结束调整过程,得到最小化总时延对应的每个移动终端的最终的卸载决策及最终的系统资源分配方案。在另一种情况下,某次相应移动终端的卸载决策发生调整且在本次调整后μ(t)-μ(t+1)≤10-6、λ(t)-λ(t+1)≤10-6和θ(t)-θ(t+1)≤10-6的情况下确认得到最优解。优选的,迭代次数可以是预设的。比如,迭代次数可以是由人为设定的或者由边缘服务器根据经验设定和调整的。迭代次数比如可以设定为10000次~20000次中的某个值。迭代次数是指迭代的最大次数。实际情况下,可能还未达到最大次数已经得到了最终的卸载决策及最终的系统资源分配方案。比如,迭代次数设置为15000次,实际调整过程中,可能8000次时已经出现了上述两种情况之一,则调整过程结束。in, is the iteration step size, the value range of the iteration step size can be 10 -5 ~ 10 -7 , t is the number of iterations and t≥0, μ(t+1), λ(t+1) and θ(t+1 ) are the values of μ, λ and θ after this adjustment, respectively, and μ(t), λ(t) and λ(t) are the values of μ, λ and θ before this adjustment, respectively. In one case, although μ(t)-μ(t+1)≤10 -6 , λ(t)-λ(t+1)≤10 -6 and θ(t)-θ(t+1) The condition of ≤10 -6 is not completely satisfied, but during the adjustment process, during the whole process of going through a round of adjustment process from a certain mobile terminal and returning to the mobile terminal, none of the mobile terminals are in this round of adjustment. If the unloading decision is adjusted during the process, the adjustment process is ended, and the final unloading decision and the final system resource allocation scheme of each mobile terminal corresponding to the minimized total delay are obtained. In another case, the unloading decision of a corresponding mobile terminal is adjusted and after this adjustment μ(t)-μ(t+1)≤10 -6 , λ(t)-λ(t+1) In the case of ≤10 -6 and θ(t)-θ(t+1)≤10 -6 , it was confirmed that the optimal solution was obtained. Preferably, the number of iterations may be preset. For example, the number of iterations can be set manually or set and adjusted by the edge server based on experience. For example, the number of iterations can be set to a certain value from 10,000 times to 20,000 times. The number of iterations refers to the maximum number of iterations. In actual situations, the final unloading decision and the final system resource allocation scheme may not have been reached yet. For example, if the number of iterations is set to 15,000 times, in the actual adjustment process, one of the above two situations may have occurred at 8,000 times, and the adjustment process ends.
从上可以看出,系统资源分配方案包括第一、第二和第三最优解。第一最优解是为相应的移动终端分配的计算资源。第二最优解是为相应的移动终端分配的上传其任务所占上行带宽百分比。第三最优解是为相应的移动终端分配的接收下行数据时所占的带宽百分比。第一、第二和第三最优解分别对应于第一、第二和第三优化因子。优选的,为了防止迭代时间过长,根据本发明的一个实施例,该方法还包括:在执行步骤S3~S4的过程中,若出现以下情况之一,则结束调整过程:T1、用于优化系统资源分配方案的第一、第二和第三优化因子的减小值均小于设定的阈值;和T2、实际迭代调整的次数达到设定的最大的迭代次数。在这种情况下,本次结束调整过程后,以结束调整过程时每个移动终端的卸载决策及系统资源分配方案作为每个移动终端的最终的卸载决策及最终的系统资源分配方案。第一、第二和第三优化因子的减小值即是指通过μ(t)-μ(t+1)、λ(t)-λ(t+1)和θ(t)-θ(t+1)得出的计算值。在得到最终的卸载策略后,最终的卸载策略可以写入用户信息表中。此种情况下,虽未得到最优的卸载决策及系统资源分配方案,但是避免了长时间的求解导致求解时间过长而影响用户体验。It can be seen from the above that the system resource allocation scheme includes the first, second and third optimal solutions. The first optimal solution is the computing resource allocated for the corresponding mobile terminal. The second optimal solution is the percentage of uplink bandwidth occupied by the uploading task assigned to the corresponding mobile terminal. The third optimal solution is the bandwidth percentage allocated for the corresponding mobile terminal when receiving downlink data. The first, second and third optimal solutions correspond to the first, second and third optimization factors, respectively. Preferably, in order to prevent the iteration time from being too long, according to an embodiment of the present invention, the method further includes: in the process of executing steps S3 to S4, if one of the following conditions occurs, the adjustment process is ended: T1, used for optimization The reduction values of the first, second and third optimization factors of the system resource allocation scheme are all smaller than the set threshold; and T2, the number of actual iterative adjustments reaches the set maximum number of iterations. In this case, after the adjustment process is finished this time, the unloading decision and system resource allocation scheme of each mobile terminal at the end of the adjustment process are taken as the final unloading decision and the final system resource allocation scheme of each mobile terminal. The reduction values of the first, second and third optimization factors are defined by μ(t)-μ(t+1), λ(t)-λ(t+1) and θ(t)-θ(t +1) to the calculated value. After obtaining the final uninstall policy, the final uninstall policy can be written into the user information table. In this case, although the optimal unloading decision and system resource allocation scheme are not obtained, it is avoided that the long-term solution causes the solution time to be too long and affects the user experience.
根据上述分析获得最终的系统资源分配方案为各移动终端分配系统资源,即,上行通信资源、计算资源和下行通信资源。随后,基站和边缘服务器在本次分配的上行通信资源条件下接收最终的卸载决策为第一决策的移动终端卸载的任务且完成对接收的任务的辅助计算后,在本次分配的下行通信资源条件下将该任务对应的计算结果传输给对应的移动终端。由此,通过该方式最小化执行所有任务的总时延,提高用户体验。According to the above analysis, a final system resource allocation scheme is obtained to allocate system resources to each mobile terminal, that is, uplink communication resources, computing resources and downlink communication resources. Subsequently, the base station and the edge server receive the task unloaded by the mobile terminal whose final unloading decision is the first decision under the condition of the currently allocated uplink communication resources and complete the auxiliary calculation of the received task, and then use the currently allocated downlink communication resources Under certain conditions, the calculation result corresponding to the task is transmitted to the corresponding mobile terminal. Therefore, in this way, the total time delay of executing all tasks is minimized, and the user experience is improved.
优选的,在步骤S4中,结束调整过程的要求是:在从某一个移动终端开始经历一轮调整过程中,所有移动终端中没有任何一个移动终端在该轮调整过程中调整其卸载决策。比如,假设共有5个移动终端发出了任务请求,将五个移动终端的初始卸载决策随机设置为第一决策或第二决策时,五个移动终端的初始卸载决策分别为1、0、1、0、0,经历多次调整之后五个移动终端的卸载决策分别变为0、0、1、1、0,经历前期调整后,在下一轮,从第一个移动终端开始到第五个移动终端结束,都没有调整其卸载决策,在该轮调整结束后,五个移动终端的卸载决策仍然为0、0、1、1、0,则结束调整过程。Preferably, in step S4, the requirement for ending the adjustment process is: in a round of adjustment process from a certain mobile terminal, no mobile terminal among all mobile terminals adjusts its unloading decision during this round of adjustment process. For example, assuming that a total of 5 mobile terminals have issued task requests, when the initial uninstallation decisions of the five mobile terminals are randomly set as the first decision or the second decision, the initial uninstallation decisions of the five mobile terminals are 1, 0, 1, 0, 0, after multiple adjustments, the unloading decisions of the five mobile terminals become 0, 0, 1, 1, 0 respectively. After the previous adjustment, in the next round, from the first mobile terminal to the fifth mobile terminal After the end of the terminal, its unloading decision has not been adjusted. After the round of adjustment, the unloading decisions of the five mobile terminals are still 0, 0, 1, 1, and 0, and the adjustment process is ended.
在实际场景下,任务经过计算得到计算结果数据之前,结果数据的大小是难于预知的。因此,优选的,根据本发明的一个实施例,本发明方法还可以包括:对于计算过的任务,关联地保留该任务的信息及其对应的计算结果数据的大小,以便基于历史数据为相应任务的计算结果数据的大小提供参考。In actual scenarios, before the task is calculated to obtain the calculation result data, the size of the result data is difficult to predict. Therefore, preferably, according to an embodiment of the present invention, the method of the present invention may further include: for a calculated task, the information of the task and the size of the corresponding calculation result data are associated with each other, so that the corresponding task is based on historical data. The size of the calculation result data provides a reference.
根据本发明一个实施例,为了利用计算结果数据的大小提前进行下行通信资源分配,可以根据以下方式中的其中一种提供对应的计算结果数据的大小:According to an embodiment of the present invention, in order to use the size of the calculation result data to perform downlink communication resource allocation in advance, the size of the corresponding calculation result data can be provided according to one of the following methods:
第一种方式:在边缘服务器前期计算过相同的任务的情况下,根据边缘服务器的历史数据提供前期得出的计算结果数据的大小作为对应任务的计算结果数据的大小;比如,某个任务边缘服务器前期是计算过的,边缘服务器保留了历史数据,历史数据中记录了该任务的信息及其对应的计算结果数据的大小,从而可以基于前期得出的计算结果数据的大小作为对应任务的计算结果数据的大小。相同的任务可以是指具体的计算任务相同,相应地,其对应的计算结果数据也相同。The first way: In the case that the edge server has calculated the same task in the early stage, the size of the calculation result data obtained in the previous stage is provided according to the historical data of the edge server as the size of the calculation result data of the corresponding task; for example, a task edge The server has been calculated in the early stage, and the edge server retains historical data. The historical data records the information of the task and the size of the corresponding calculation result data, so that the size of the calculation result data obtained in the previous stage can be used as the calculation of the corresponding task. The size of the resulting data. The same task may refer to the same specific computing task, and correspondingly, the corresponding computing result data is also the same.
第二种方式:在边缘服务器前期没有计算过相同但计算过同类型的任务的情况下,根据边缘服务器的历史数据形成参考范围且在该参考范围内随机提供第一随机值作为对应任务的计算结果的大小;比如,对于一个任务,其是AR领域的某种数据格式,该边缘服务器前期没有计算过相同的任务,但是,前期计算过一次同类型的数据格式的任务,历史数据表明该数据格式的计算结果数据的大小与任务的大小之比为20%,则用任务的大小乘以10%~30%形成一个参考范围,如果前期计算过两次,历史数据表明前期两次计算中,该数据格式的计算结果数据的大小与任务的大小之比分别为20%、40%,则用任务的大小乘以20%~40%形成一个参考范围,如果前期计算过三次,历史数据表明前期三次计算中,该数据格式的计算结果数据的大小与任务的大小之比分别为10%、20%、40%,则用任务的大小乘以10%~40%形成一个参考范围,然后在该参考范围内随机取值作为对应任务的计算结果的大小。同类型的任务可以是指具有相同数据格式的任务。The second method: In the case that the edge server has not calculated the same task but has calculated the same type of task in the early stage, a reference range is formed according to the historical data of the edge server, and the first random value is randomly provided within the reference range as the calculation of the corresponding task The size of the result; for example, for a task, which is a certain data format in the AR field, the edge server has not calculated the same task in the previous stage, but has calculated a task in the same type of data format in the previous stage, and the historical data indicates that the data The ratio of the size of the calculation result data in the format to the size of the task is 20%, then the size of the task is multiplied by 10% to 30% to form a reference range. The ratio of the size of the calculation result data in this data format to the size of the task is 20% and 40% respectively, then multiply the size of the task by 20% to 40% to form a reference range. In the three calculations, the ratio of the size of the calculation result data in this data format to the size of the task is 10%, 20%, and 40% respectively, then multiply the size of the task by 10% to 40% to form a reference range, and then use the The random value within the reference range is used as the size of the calculation result of the corresponding task. A task of the same type may refer to a task with the same data format.
第三种方式:在边缘服务器前期既没有计算过相同且也没有计算过同类型的任务的情况下,由边缘服务器随机提供一个小于等于该任务的大小的第二随机值作为对应的计算结果的大小。The third way: when the edge server has neither calculated the same nor the same type of task in the early stage, the edge server randomly provides a second random value less than or equal to the size of the task as the corresponding calculation result. size.
优选的,移动终端可以包括手机、平板电脑、笔记本电脑、车载电脑、VR眼镜、AR眼镜和智能手表中的至少一种。优选的,车载电脑例如可以是汽车的行车电脑。Preferably, the mobile terminal may include at least one of a mobile phone, a tablet computer, a notebook computer, a vehicle-mounted computer, VR glasses, AR glasses and a smart watch. Preferably, the on-board computer can be, for example, a trip computer of an automobile.
根据本发明一个示例,通过以下仿真参数对本发明的所提出的方法进行仿真验证。表1中给出了在仿真验证过程中所使用的仿真参数。According to an example of the present invention, the proposed method of the present invention is simulated and verified through the following simulation parameters. The simulation parameters used in the simulation verification process are given in Table 1.
表1仿真参数Table 1 Simulation parameters
图2、3和4中,CORAG曲线对应于本申请采用的方法,其是基于博弈论的计算卸载与资源分配算法(computation offloading and resource allocation game,CORAG)的简称。LOC曲线对应于本地卸载算法(Local offloading completely,LOC),该算法中,所有的任务均不卸载到边缘服务器执行,都在各移动终端本地执行。ROC曲线对应于随机卸载算法(random offloading completely,ROC)。COURG曲线对应于计算卸载与上行频谱资源分配(computation offloading and uplink resource game,COURG),背景技术的第二类方法即采用了该算法。In Figs. 2, 3 and 4, the CORAG curve corresponds to the method adopted in the present application, which is an abbreviation of a computation offloading and resource allocation game (CORAG) based on game theory. The LOC curve corresponds to the local offloading completely (LOC) algorithm. In this algorithm, all tasks are not offloaded to the edge server for execution, but are executed locally on each mobile terminal. The ROC curve corresponds to the random offloading completely (ROC) algorithm. The COURG curve corresponds to calculation offloading and uplink spectrum resource allocation (computation offloading and uplink resource game, COURG), and the second method of the background art adopts this algorithm.
图2示出了根据本发明一个实施例的用于辅助边缘计算的方法以及三个现有方法在不同移动终端数量下各自对应的总时延比较示意图。从图2可以看出,本发明提出的方法的性能优于LOC、ROC以及COURG算法。随着移动终端数量增加CORAG算法优势更加明显。这是因为在计算与通信资源有限的条件下,CORAG算法可以更好地为不同的移动终端分配最优的计算与通信资源,因此所有移动终端的总时延最低。图2的输入参数采用表1中所列的参数,其中,部分的输入参数是变化的。比如,表1中的最后四项参数是由计算机在上述正态分布范围内随机给出的随机值。FIG. 2 is a schematic diagram showing a method for assisting edge computing according to an embodiment of the present invention and a schematic diagram of the total delay corresponding to each of the three existing methods under different numbers of mobile terminals. It can be seen from FIG. 2 that the performance of the method proposed by the present invention is better than that of the LOC, ROC and COURG algorithms. With the increase of the number of mobile terminals, the advantages of CORAG algorithm are more obvious. This is because under the condition of limited computing and communication resources, the CORAG algorithm can better allocate optimal computing and communication resources for different mobile terminals, so the total delay of all mobile terminals is the lowest. The input parameters of FIG. 2 adopt the parameters listed in Table 1, wherein some of the input parameters are varied. For example, the last four parameters in Table 1 are random values given randomly by the computer within the normal distribution range described above.
图3示出了根据本发明实施例的用于移动边缘计算的管理方法以及三个现有方法在不同输入数据大小下各自对应的总时延比较示意图。从图3可以看出,随着上行输入数据的增大,CORAG算法总时延低于LOC、ROC、以及COURG算法。这是因为随着输入数据的增大,CORAG算法可以根据输入数据的大小分配最优的上、下行带宽资源以及计算资源,进而使得所有终端设备的总时延最低。FIG. 3 is a schematic diagram showing a management method for mobile edge computing according to an embodiment of the present invention and a comparison diagram of total delay corresponding to each of three existing methods under different input data sizes. As can be seen from Figure 3, with the increase of uplink input data, the total delay of the CORAG algorithm is lower than that of the LOC, ROC, and COURG algorithms. This is because as the input data increases, the CORAG algorithm can allocate the optimal uplink and downlink bandwidth resources and computing resources according to the size of the input data, so as to minimize the total delay of all terminal devices.
图4示出了根据本发明实施例的用于移动边缘计算的管理方法以及三个现有方法在不同计算结果数据大小下各自对应的总时延比较示意图。从图4可以看出,随着计算结果数据的逐渐增大,CORAG算法的总时延低于LOC、ROC以及COURG三种算法。CORAG算法性能明显优于其他三种算法且随着计算结果数据的逐渐增大,CORAG算法性能优势更加明显。FIG. 4 shows a management method for mobile edge computing according to an embodiment of the present invention and a schematic diagram of a comparison of total delays corresponding to each of three existing methods under different data sizes of calculation results. As can be seen from Figure 4, with the gradual increase of the calculation result data, the total delay of the CORAG algorithm is lower than the three algorithms of LOC, ROC and COURG. The performance of the CORAG algorithm is obviously better than the other three algorithms, and with the gradual increase of the calculation result data, the performance advantage of the CORAG algorithm is more obvious.
在本发明的又一个实施例中,还提供了一种边缘服务器,可以用于为与其相关的基站覆盖的区域中的移动终端提供至少包括辅助计算的服务。该边缘服务器包括:一个或多个处理器;以及存储器,其中存储器用于存储可执行指令;所述一个或多个处理器被配置为经由执行所述可执行指令以执行前述任一实施例中介绍的技术方案和/或本申请的方法。In yet another embodiment of the present invention, an edge server is also provided, which can be used to provide a service including at least auxiliary computing for mobile terminals in an area covered by a base station associated therewith. The edge server includes: one or more processors; and memory, wherein the memory is used to store executable instructions; the one or more processors are configured to perform any of the preceding embodiments by executing the executable instructions. The technical solutions presented and/or the methods of the present application.
在本发明的又一个实施例中,还提供了一种电子设备,更具体地,可以称为一种通信设备,包括彼此通信连接的边缘服务器和基站。该边缘服务器能为该基站覆盖的区域中的移动终端提供至少包括辅助计算的服务。边缘服务器包括:一个或多个处理器;以及存储器,其中存储器用于存储可执行指令;一个或多个处理器被配置为经由执行所述可执行指令以执行前述任一实施例中介绍的技术方案和/或本申请的方法。In yet another embodiment of the present invention, there is also provided an electronic device, more specifically, it can be referred to as a communication device, including an edge server and a base station that are communicatively connected to each other. The edge server can provide services including at least auxiliary computing for mobile terminals in the area covered by the base station. The edge server includes: one or more processors; and memory, wherein the memory is used to store executable instructions; the one or more processors are configured to perform the techniques described in any of the preceding embodiments by executing the executable instructions Protocols and/or methods of the present application.
需要说明的是,虽然上文按照特定顺序描述了各个步骤,但是并不意味着必须按照上述特定顺序来执行各个步骤,实际上,这些步骤中的一些可以并发执行,甚至改变顺序,只要能够实现所需要的功能即可。It should be noted that although the steps are described above in a specific order, it does not mean that the steps must be executed in the above-mentioned specific order. In fact, some of these steps can be executed concurrently, or even change the order, as long as it can be achieved The required function can be.
本发明可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本发明的各个方面的计算机可读程序指令。The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the present invention.
计算机可读存储介质可以是保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以包括但不限于电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。A computer-readable storage medium may be a tangible device that retains and stores instructions for use by the instruction execution device. Computer-readable storage media may include, but are not limited to, electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing, for example. More specific examples (non-exhaustive list) of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above.
以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Various embodiments of the present invention have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911007166.5A CN110740473B (en) | 2019-10-22 | 2019-10-22 | A management method and edge server for mobile edge computing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911007166.5A CN110740473B (en) | 2019-10-22 | 2019-10-22 | A management method and edge server for mobile edge computing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110740473A true CN110740473A (en) | 2020-01-31 |
CN110740473B CN110740473B (en) | 2021-07-20 |
Family
ID=69270865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911007166.5A Active CN110740473B (en) | 2019-10-22 | 2019-10-22 | A management method and edge server for mobile edge computing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110740473B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112685163A (en) * | 2021-01-06 | 2021-04-20 | 北京信息科技大学 | Computing unloading method based on mobile edge computing and mobile edge computing server |
CN112783567A (en) * | 2021-01-05 | 2021-05-11 | 中国科学院计算技术研究所 | DNN task unloading decision method based on global information |
CN112867061A (en) * | 2021-04-26 | 2021-05-28 | 香港中文大学(深圳) | Resource allocation method and device |
CN112995280A (en) * | 2021-02-03 | 2021-06-18 | 北京邮电大学 | Data distribution method and device for multi-content demand service |
CN113344152A (en) * | 2021-04-30 | 2021-09-03 | 华中农业大学 | System and method for intelligently detecting and uploading full-chain production information of dairy products |
CN114158094A (en) * | 2021-11-29 | 2022-03-08 | 浙江工业大学 | Single-user task unloading method and device based on downlink NOMA |
CN114443261A (en) * | 2020-11-02 | 2022-05-06 | 中国联合网络通信集团有限公司 | Terminal task offloading method and device |
CN116432082A (en) * | 2023-03-29 | 2023-07-14 | 武汉理工大学 | Ship fault feature analysis method, system and storage medium |
CN116483585A (en) * | 2023-06-16 | 2023-07-25 | 江西师范大学 | Multi-service pre-deployment method based on edge computing |
CN117119444A (en) * | 2023-10-25 | 2023-11-24 | 成都信息工程大学 | Position privacy protection method based on mobile edge calculation |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017152723A1 (en) * | 2016-03-07 | 2017-09-14 | 大唐移动通信设备有限公司 | Data transmission method, apparatus and system |
CN107249218A (en) * | 2017-06-05 | 2017-10-13 | 东南大学 | Radio Resource and the combined distributing method of cloud resource in a kind of MEC |
CN107682443A (en) * | 2017-10-19 | 2018-02-09 | 北京工业大学 | An Efficient Offloading Method for Computational Tasks in Mobile Edge Computing Systems Considering Latency and Energy Consumption Jointly |
CN108901075A (en) * | 2018-06-28 | 2018-11-27 | 电子科技大学 | A kind of resource allocation methods based on GS algorithm |
-
2019
- 2019-10-22 CN CN201911007166.5A patent/CN110740473B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017152723A1 (en) * | 2016-03-07 | 2017-09-14 | 大唐移动通信设备有限公司 | Data transmission method, apparatus and system |
CN107249218A (en) * | 2017-06-05 | 2017-10-13 | 东南大学 | Radio Resource and the combined distributing method of cloud resource in a kind of MEC |
CN107682443A (en) * | 2017-10-19 | 2018-02-09 | 北京工业大学 | An Efficient Offloading Method for Computational Tasks in Mobile Edge Computing Systems Considering Latency and Energy Consumption Jointly |
CN108901075A (en) * | 2018-06-28 | 2018-11-27 | 电子科技大学 | A kind of resource allocation methods based on GS algorithm |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114443261A (en) * | 2020-11-02 | 2022-05-06 | 中国联合网络通信集团有限公司 | Terminal task offloading method and device |
CN112783567A (en) * | 2021-01-05 | 2021-05-11 | 中国科学院计算技术研究所 | DNN task unloading decision method based on global information |
CN112685163B (en) * | 2021-01-06 | 2023-05-02 | 北京信息科技大学 | Calculation unloading method based on mobile edge calculation and mobile edge calculation server |
CN112685163A (en) * | 2021-01-06 | 2021-04-20 | 北京信息科技大学 | Computing unloading method based on mobile edge computing and mobile edge computing server |
CN112995280A (en) * | 2021-02-03 | 2021-06-18 | 北京邮电大学 | Data distribution method and device for multi-content demand service |
CN112867061A (en) * | 2021-04-26 | 2021-05-28 | 香港中文大学(深圳) | Resource allocation method and device |
CN113344152A (en) * | 2021-04-30 | 2021-09-03 | 华中农业大学 | System and method for intelligently detecting and uploading full-chain production information of dairy products |
CN114158094A (en) * | 2021-11-29 | 2022-03-08 | 浙江工业大学 | Single-user task unloading method and device based on downlink NOMA |
CN116432082A (en) * | 2023-03-29 | 2023-07-14 | 武汉理工大学 | Ship fault feature analysis method, system and storage medium |
CN116432082B (en) * | 2023-03-29 | 2024-01-09 | 武汉理工大学 | Ship fault feature analysis method, system and storage medium |
CN116483585A (en) * | 2023-06-16 | 2023-07-25 | 江西师范大学 | Multi-service pre-deployment method based on edge computing |
CN116483585B (en) * | 2023-06-16 | 2023-09-15 | 江西师范大学 | Multi-service pre-deployment method based on edge computing |
CN117119444A (en) * | 2023-10-25 | 2023-11-24 | 成都信息工程大学 | Position privacy protection method based on mobile edge calculation |
CN117119444B (en) * | 2023-10-25 | 2024-01-16 | 成都信息工程大学 | Position privacy protection method based on mobile edge calculation |
Also Published As
Publication number | Publication date |
---|---|
CN110740473B (en) | 2021-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110740473B (en) | A management method and edge server for mobile edge computing | |
CN109814951B (en) | Joint optimization method for task unloading and resource allocation in mobile edge computing network | |
CN113612843A (en) | A task offloading and resource allocation method for MEC based on deep reinforcement learning | |
CN109951897A (en) | A MEC offloading method under the constraints of energy consumption and delay | |
WO2024174426A1 (en) | Task offloading and resource allocation method based on mobile edge computing | |
CN111565380B (en) | Hybrid offloading method based on NOMA-MEC in the Internet of Vehicles | |
CN108924796B (en) | Resource allocation and unloading proportion joint decision method | |
CN109756912B (en) | Multi-user multi-base station joint task unloading and resource allocation method | |
CN112512018B (en) | Method for dynamically unloading tasks among cooperative vehicles based on mobile edge calculation | |
CN111163143B (en) | Low-delay task unloading method for mobile edge calculation | |
CN111711962B (en) | A method for coordinated scheduling of subtasks in mobile edge computing systems | |
CN111949409B (en) | Method and system for unloading computing task in power wireless heterogeneous network | |
CN112491957B (en) | Distributed computing offloading method and system in edge network environment | |
CN114143346A (en) | A joint optimization method and system for task offloading and service caching of Internet of Vehicles | |
CN114340016A (en) | A method and system for offloading and distributing power grid edge computing | |
CN113254095B (en) | Task unloading, scheduling and load balancing system and method for cloud edge combined platform | |
CN111813539A (en) | An edge computing resource allocation method based on priority and collaboration | |
CN114205353A (en) | Calculation unloading method based on hybrid action space reinforcement learning algorithm | |
CN111511028A (en) | A kind of multi-user resource allocation method, device, system and storage medium | |
CN116367231A (en) | Edge computing Internet of vehicles resource management joint optimization method based on DDPG algorithm | |
CN116709378A (en) | Task scheduling and resource allocation method based on federal reinforcement learning in Internet of vehicles | |
CN113573363A (en) | MEC calculation unloading and resource allocation method based on deep reinforcement learning | |
CN114168328A (en) | A mobile edge node computing task scheduling method and system based on federated learning | |
CN118102386A (en) | Joint optimization method and system for service caching and task offloading in D2D-assisted MEC networks | |
CN113986370A (en) | Base station selection and task offloading method, device, device and medium for mobile edge computing system |
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 |