Joint optimization method and system for mobile edge computing

Through the joint optimization method of mobile edge computing, the analytic hierarchy process and the heuristic redistribution algorithm are used to optimize the access and service placement of tasks in the edge cloud, solving the problems of insufficient computing resources of mobile devices and cloud computing delays, and achieving efficient Task completion and low-latency application processing.

CN113918318BActive Publication Date: 2024-10-25SHANDONG NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111033954.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-03
Publication Date
2024-10-25
Estimated Expiration
2041-09-03

AI Technical Summary

Technical Problem

When mobile devices process computing-intensive applications, due to insufficient computing resources and storage capabilities, and high communication delays caused by remote cloud computing, it is difficult to meet the needs of delay-sensitive applications.

Method used

A joint optimization method for mobile edge computing is proposed. By obtaining task information, establishing a task priority queue, using the analytic hierarchy process to calculate the probability of task access to the edge cloud and service placement in the edge cloud, and redistributing tasks through a heuristic redistribution algorithm. to maximize task completion rates.

Benefits of technology

Effectively utilize edge cloud resources to maximize task completion rate, reduce communication delay, have good applicability and low complexity, and can maximize the total task completion rate within each task completion time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113918318B_ABST
    Figure CN113918318B_ABST
Patent Text Reader

Abstract

The present disclosure provides a joint optimization method and system for mobile edge computing, including the following steps: obtaining task information of mobile edge computing; obtaining a priority queue of task information based on the obtained task information and a preset fitness function, and calculating the probability of each task in the task information accessing the edge cloud and placing the service on the edge cloud; redistributing the task information based on the obtained probability, and obtaining the access edge cloud and the service placement edge cloud when the preset task information completion rate is achieved; wherein the redistribution of task information is based on the redundant time of the task information, and the task information is redistributed with the preset task information completion rate as the target. The present disclosure simultaneously considers the influence of factors such as storage space, computing capacity, and communication delay, and proposes to maximize the total completion rate of tasks within each task completion time; it can effectively utilize the available resources of the edge cloud, maximize the completion rate of tasks, and has low complexity and good applicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the field of mobile communication technology, and in particular relates to a joint optimization method and system for mobile edge computing. Background Art

[0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.

[0003] With the development of mobile devices such as smartphones and tablets, computing-intensive applications (augmented reality, Internet of Vehicles, etc.) have emerged. Such applications usually require large computing resources and low latency, which has led to an exponential growth in the demand for data storage, processing, and transmission. Due to the limitations of mobile devices themselves (such as limited computing resources and battery capacity), it is difficult to meet these requirements. Remote cloud servers have unlimited computing and storage capabilities, which can make up for the shortage of computing, storage and other resources in mobile devices, but remote clouds are often far away from users, and sending tasks to remote clouds for processing often incurs high communication delays. For example, for high-quality virtual reality applications, an end-to-end delay of 20 to 25 ms is required, but due to the long distance between users and remote cloud servers, it is difficult to meet these requirements. Therefore, neither mobile devices nor cloud computing can meet the needs of latency-sensitive applications.

[0004] Mobile edge computing is considered a promising approach to address current issues by deploying servers with more computing resources near users. Edge servers are usually only one or a few hops away from users. Users can forward tasks to these edge servers for processing, solving the problems of low efficiency of running resource-intensive applications on mobile devices and high latency in remote cloud computing communications, and improving the quality of service for users. However, edge cloud servers have limited computing resources, and when mobile devices have many tasks, they cannot process all tasks within their coverage area at the same time. In addition, the same user may have one or more tasks, and there are dependencies between the tasks of the same user. A task can only be executed when its predecessor task is completed. Tasks of different users are independent of each other, and different tasks require different services.

[0005] Therefore, the order of task execution and how to schedule tasks are urgent issues that need to be addressed in edge computing. Summary of the invention

[0006] In order to solve the above problems, the present disclosure proposes a joint optimization method and system for mobile edge computing. The present disclosure studies the joint optimization problem of edge cloud access selection and service data layout in a mobile edge computing system, and establishes a joint optimization problem with the goal of maximizing the total task completion ratio under the premise of considering the completion time of each task; a heuristic reallocation algorithm is proposed to obtain the optimal solution.

[0007] According to some embodiments, a first solution of the present disclosure provides a joint optimization method for mobile edge computing, which adopts the following technical solutions:

[0008] A joint optimization method for mobile edge computing includes the following steps:

[0009] Get task information of mobile edge computing;

[0010] According to the acquired task information and the preset fitness function, the priority queue of the task information is obtained, and the probability of each task in the task information accessing the edge cloud and the service placing the edge cloud is calculated;

[0011] Redistribute the task information according to the obtained probability, and obtain the access edge cloud and service placement edge cloud when the preset task information completion rate is reached;

[0012] Among them, the redistribution of task information is based on the redundant time of task information and takes the preset task information completion rate as the target to reallocate task information.

[0013] As a further technical limitation, before obtaining the task information of mobile edge computing, the mobile users and edge clouds are initialized. Each edge cloud is equipped with multiple edge servers, which execute the tasks initiated by the mobile users when the edge cloud stores the services required for the task information. The mobile users are distributed in the coverage area of ​​the edge cloud, and the coverage area of ​​the edge cloud overlaps due to the high deployment density of the edge cloud.

[0014] As a further technical limitation, tasks initiated by different users are arranged in a priority queue according to the completion time of each task information, and the priority queues of the obtained task information are sorted.

[0015] Furthermore, according to the priority queue sorting of task information, the edge cloud is accessed and the service is placed in the edge cloud of all tasks during the initial allocation period. The probability of accessing the edge cloud and placing the service in the edge cloud for each task in the task information is calculated using the hierarchical analysis method.

[0016] As a further technical limitation, the preset fitness function is an effect function that satisfies the constraints of all task information and maximizes the total completion rate of task information. Among them, R k represents the proportion of tasks completed by user k when he starts multiple tasks, and R k ≥Ra, Ra represents the preset task information completion rate; MC ki represents the completion time of task i started by user k, CMC ki represents the completion time constraint of task i initiated by user k.

[0017] Furthermore, task i from user k is executed earlier than another task from other users in the backup queue, and the predecessor of task i is completed, even if the priority of task i is lower than that of another task; the unloading order will extend the completion time of tasks in the backup queue while improving efficiency; if there is a task in the backup queue that exceeds its latest allowed completion time due to the unloading of task i, then task i cannot be unloaded; if any task meets the latest allowed completion time in the backup queue, then task i will actually be unloaded to the selected edge cloud; after actually unloading task i, the current storage capacity of the edge cloud is updated, and the next task is unloaded until all tasks are processed.

[0018] Furthermore, according to the redundant time of the task information, the task information is reallocated with the preset task information completion rate as the target. The specific process is as follows:

[0019] After the initial allocation, the mobile user changes the access edge cloud and execution cloud, and reallocates the task information with the preset task information completion rate as the target; during the reallocation, redundant time is introduced to select suitable tasks; after the initial allocation, the completion time of all tasks is calculated, and the task with the highest redundant time is selected; from the reallocated tasks that meet the constraints, the task information with the maximum completion ratio is selected; the reallocation of tasks and services is updated, and the reallocation process is repeated until the preset task information completion rate is obtained.

[0020] According to some embodiments, a second solution of the present disclosure provides a joint optimization system for mobile edge computing, which adopts the following technical solutions:

[0021] A joint optimization system for mobile edge computing, comprising:

[0022] An information acquisition module is used to obtain task information of mobile edge computing;

[0023] The probability calculation module is used to obtain the priority queue of the task information according to the acquired task information and the preset fitness function, and calculate the probability of each task in the task information being connected to the edge cloud and the service being placed on the edge cloud;

[0024] A reallocation module is used to reallocate the task information according to the obtained probability, and obtain the access edge cloud and service placement edge cloud when the preset task information completion rate is reached;

[0025] Among them, the redistribution of task information is based on the redundant time of task information and takes the preset task information completion rate as the target to reallocate task information.

[0026] According to some embodiments, a third solution of the present disclosure provides a computer-readable storage medium, which adopts the following technical solution:

[0027] A computer-readable storage medium stores a program thereon, which, when executed by a processor, implements the steps in the joint optimization method for mobile edge computing as described in the first aspect of the present disclosure.

[0028] According to some embodiments, a fourth solution of the present disclosure provides an electronic device, which adopts the following technical solution:

[0029] An electronic device comprises a memory, a processor and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the joint optimization method for mobile edge computing as described in the first aspect of the present disclosure are implemented.

[0030] Compared with the prior art, the present invention has the following beneficial effects:

[0031] The present invention simultaneously considers the influence of factors such as storage space, computing capacity and communication delay, and proposes to maximize the total completion rate of tasks within the completion time of each task; it can effectively utilize the available resources of the edge cloud to maximize the completion rate of tasks, and has low complexity and good applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings constituting a part of the present disclosure are used to provide a further understanding of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure.

[0033] Figure 1 is a schematic diagram of a mobile edge computing scenario in the first embodiment of the present disclosure;

[0034] Figure 2 is an example of a task graph of two applications in the first embodiment of the present disclosure;

[0035] Figure 3 is a flowchart of a joint optimization method for mobile edge computing in Embodiment 1 of the present disclosure;

[0036] Figure 4 It is a structural block diagram of the joint optimization system of mobile edge computing in the second embodiment of the present disclosure. DETAILED DESCRIPTION

[0037] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.

[0038] It should be noted that the following detailed descriptions are all illustrative and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present disclosure belongs.

[0039] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0040] In the absence of conflict, the embodiments in the present disclosure and the features in the embodiments may be combined with each other.

[0041] Embodiment 1

[0042] Embodiment 1 of the present disclosure introduces a joint optimization method for mobile edge computing.

[0043] like Figure 3 A joint optimization method for mobile edge computing is shown, comprising the following steps:

[0044] Step S01: Initialize the system and obtain real-time information of each task;

[0045] Step S02: Determine the fitness function according to the current system information;

[0046] Step S03: Priority queue sorting: tasks initiated by different users are arranged in a priority queue according to the completion time of each task;

[0047] Step S04: Calculate the probability of each possible solution using the hierarchical analysis method, and calculate the probability of each task selecting its feasible access edge cloud and executing the edge cloud with service data according to the task order of the priority queue;

[0048] Step S05: reallocate, reallocate tasks according to their redundant time to maximize the completion rate.

[0049] Step S06: Determine whether the termination condition is met. If no higher completion rate is found, the iteration is terminated. Output the best access edge cloud and service placement edge cloud.

[0050] like Figure 1 As shown, in step S01, the edge computing system considered in this embodiment includes multiple mobile users and edge clouds. Mobile users include mobile phones, iPads, notebooks, etc., and edge clouds include base stations, WiFi, etc. Each edge cloud is equipped with multiple edge servers, and the storage and computing capabilities of edge servers are limited. Tasks initiated by mobile users can only be executed when these edge clouds store the corresponding services required for the tasks. Mobile users are randomly located in the edge cloud coverage area, and the edge cloud coverage area may overlap due to the high density of edge cloud deployment.

[0051] Therefore, mobile users located in overlapping areas are covered by more than one edge cloud. The mobile user can access any edge cloud that covers itself. Mobile users are independent of each other, and some mobile users may initiate multiple tasks. Among mobile users, their tasks have an intrinsic relationship. This means that a task will only be executed after its predecessor is completed. Mobile users are able to offload their tasks to the access edge cloud that covers them. Tasks initiated by the same user may be offloaded to different edge clouds. The method introduced in this embodiment selects the best access edge cloud and service placement cloud for the task, which can make up for the lack of computing and storage capabilities of local devices, and can effectively maximize the total completion rate of the task and meet the user's network service quality QoS requirements.

[0052] In step S02, the preset fitness function is an effect function that maximizes the total completion rate of the task while satisfying all constraints, such as Figure 2 As shown, the details are as follows:

[0053] Let Rk be the completion rate of mobile user k, A ki A is the completion variable of task i of mobile user k. ki = 1 means that task i of mobile user k is completed within the completion time constraint, and A ki =0 means that task i is not completed before the deadline.

[0054]

[0055] Where MCki is the completion time of task i initiated by user k, and CMCki is the completion time constraint of task i initiated by user k.

[0056] Let I k represents the set of tasks started by user k.

[0057]

[0058] For user k who starts multiple tasks, the proportion of completed tasks to the entire task cannot be lower than the predefined threshold Ra, that is,

[0059] R k ≥Ra (3)

[0060] Then the effect function of maximizing the total completion rate of the task while satisfying all constraints can be expressed as:

[0061]

[0062] sMc ki ≤CMC ki

[0063] Eq.(1-3)(6-12) (4)

[0064] Among them, Eq. (1-3) (6-12) represents all formulas numbered 1-3 and 6-12.

[0065] In this embodiment, the determination of access to edge cloud and service placement is as follows:

[0066] Let M denote the set of edge clouds and N denote the set of mobile users. Due to the high density of edge cloud deployment, a mobile user may be located in the overlapping area of ​​multiple edge clouds. A mobile user can access any edge cloud that covers it. For mobile user k, the set of covered edge clouds is M(k). When mobile user k starts task i, it must select an access edge cloud to offload the task. Let x jk (i) represents the edge cloud selection variable for mobile user k’s task i. jk (i) = 1 means that mobile user k chooses to access edge cloud j to offload task i, and x jk (i) = 0 means that mobile user k does not select edge cloud j. Since a mobile user can only access one edge cloud at a time, we can get

[0067]

[0068] For task i of mobile user k, the required service is placed on one of the edge clouds to satisfy the task request of user k. Note that there is no relationship between service placement and access edge cloud selection. In other words, due to the limited communication distance, mobile user k must be connected to edge cloud j∈M(k), while the necessary service can be placed on any edge cloud q∈M. Let y qk (i) represents the service placement variable for task i of mobile user k. qk (i) = 1 means that the service required by task i of mobile user k is placed on edge cloud q, and y qk (i) = 0 means that the service is not placed on the edge cloud q. Since the service corresponding to the task must be placed on the edge cloud, we can get

[0069]

[0070] Assume k (i) represents the service storage requirement of task i for mobile user k, R q represents the limited storage capacity of the edge cloud q∈M. Since the storage capacity of the edge cloud is not fully reserved for service storage, we can get

[0071]

[0072] Among them, b q Indicates the reserved ratio of service storage.

[0073] In this embodiment, the determination of MCki and CMCki in the effect function is as follows:

[0074] When mobile user k starts task i and chooses to access edge cloud q, there are two execution scenarios because service placement is independent of access edge cloud. In the first scenario, the corresponding service of task i is placed on access edge cloud q. Task i is executed on cloud q without additional communication delay. In the second scenario, the corresponding service of task i is placed on an edge cloud other than edge cloud q to reduce the computational pressure when edge cloud q belongs to a hotspot access edge cloud. This service placement achieves load balancing of the entire edge cloud at the expense of communication delay between the access edge cloud and the service placement edge cloud.

[0075] a) If the corresponding service of task i is placed on the access edge cloud q, edge cloud q executes task i and returns the execution result to user k. Therefore, the completion time includes the execution time in edge cloud q and the transmission time between user k and edge cloud q. Let Lki be the length of task i initiated by user k, Lki be the result length of task i, and v be the wireless channel rate. The transmission time of sending task i to edge cloud q is Tkqi=Lki / v, and the result of sending task i to user k is Tqki=lki / v. Let TEqk(i) represent the time to execute task i initiated by user k in edge cloud q. Then, the completion time Tqk(i) is derived as

[0076] T qk (i) = T kqi +TE qk (i)+T qki (8)

[0077] b) If the corresponding service of task i is placed on edge cloud x instead of accessing edge cloud q, edge cloud q relays task i to edge cloud x. After executing task i, edge cloud x returns the result to edge cloud q, and edge cloud q forwards the result to user k. In this case, some hot edge clouds, such as edge cloud q, reduce the storage and computing pressure to achieve load balancing, while the task transmission time increases. For task i, the transmission time between edge cloud q and x is determined by network services. Let TExk(i) represent the execution time of task i initiated by user k on edge cloud p, Tqxi is the task transmission time from edge cloud q to x, and Txqi is the result transmission time from edge cloud x to q. The completion time Txk(i) is

[0078] T xk (i) = T kqi +T qxi +TE xk (i)+T xqi +T qki (9)

[0079] When edge clouds execute tasks initiated by mobile users, they care about their server utilization. The cost of edge clouds is represented by execution time. For edge cloud x, the total cost cannot exceed a threshold Thx. That is

[0080]

[0081] Considering the task dependencies, task i cannot be sent to the accessible edge cloud q before all its predecessors are completed. If the corresponding service of task i is placed on edge cloud q, task i is executed immediately when there is an idle server in edge cloud q. Otherwise, when all services of edge cloud q are busy, task i must wait for the service to be available. Similarly, if the corresponding service of task i is placed on another edge cloud p, the start execution time of task i is determined by the availability of the service in edge cloud p. Let MBkxi be the start time of task i initiated by user k in edge cloud x, P be the set of all predecessors of task i, MCku be the completion time of task u∈P, and MAkxi be the available time of task i in edge cloud x. Then, we can get

[0082]

[0083] Based on formulas (8) and (9), we can obtain the completion time Txk(i) of task i in edge cloud x. Let MCkxi be the completion time of task i executed by edge cloud x. We can obtain

[0084] MC kxi =MB kxi +T xk (i) (12)

[0085] Let MCki be the completion time of task i initiated by user k. If task i is executed in edge cloud x, then MCki is equal to MCkxi. Since every task should be completed on time, the completion time constraint is used to represent the task deadline. Let CMCki be the completion time constraint of task i initiated by user k. The completion time MCki of task i should be less than CMCki to meet the timeliness. That is,

[0086] MC ki ≤CMC ki (13)

[0087] The heuristic reallocation algorithm proposed in this embodiment solves the problem of edge cloud access selection and service data layout in mobile edge computing, and specifically includes three steps: priority queue, initial allocation and reallocation.

[0088] In step S03, priority queue sorting arranges tasks initiated by different users in a priority queue according to the completion time of each task, as follows:

[0089] For task i initiated by mobile user k, its latest allowed completion time is represented by LCMki, which cannot exceed the completion time constraint CMCki. Let S be the set of successors of task i, LCMku be the latest allowed completion time of task u∈S, and Tx(ku) be the completion time of task u in edge cloud x. For the last task w initiated by user k, its latest allowed completion time is equal to the completion time constraint CMCkw. For the predecessor task initiated by user k, its latest allowed completion time is calculated backwards from the last task w. In addition, the predecessor task must be completed before the completion time constraint. Then, it is derived

[0090]

[0091] For task i initiated by mobile user k, its latest allowed start time, denoted by LBMki, is obtained as

[0092]

[0093] The latest allowed start time is used to evaluate the task urgency. If the latest allowed start time value of a task is smaller, it means that the task is more urgent and should be assigned earlier than other tasks to avoid breaking the time limit. Therefore, a smaller LBMki means that the priority of task i started by user k is higher. Using (14) and (15), the latest allowed start time of any task is calculated and the tasks are placed in the priority queue according to this indicator.

[0094] In step S04, the probability of each possible solution is calculated using the hierarchical analysis method. According to the task order of the priority queue, the probability of each task selecting its feasible access edge cloud and executing the edge cloud with service data is calculated as follows:

[0095] According to the order of the priority queue, the edge cloud is selected for access and the service is placed in the edge cloud for all tasks during the initial allocation. The initial allocation considers several factors such as storage capacity, execution cost, and completion time.

[0096] Select the task with the highest priority from the tasks that have not been offloaded. Assume that this task is task i, which is started by user k. Since user k may have multiple tasks and there are internal relationships between these tasks, task i cannot be offloaded if its predecessor task has not been completed. Instead, store it in another queue, the backup queue. If the predecessor task of task i has been completed, task i can be offloaded, and user k tries to access the neighbor edge cloud to offload task i.

[0097] User k is able to access any edge cloud that covers itself and offload task i to that edge cloud. It should be noted that task i does not have to be executed in the access edge cloud, which may be a hotspot with heavy load or does not meet the constraints of computing and storage. Task i is executed on the edge cloud where its corresponding service data is stored. In other words, the edge cloud being executed is the service placement location for task i. Task i initiated by user k not only needs to select the access edge cloud x ki , you also need to choose to execute edge cloud y ki . (x ki ,y ki ) needs to consider factors such as storage capacity, execution cost, and completion time, which determines the completion rate of the task.

[0098] For user k, the set of covered edge clouds is represented by M(k). Using formula (7), formula (10), formula (1) and formula (3), we can obtain the potential execution edge clouds for task i that satisfy the storage capacity, execution cost and completion time constraints. The set of execution edge clouds is represented by W k (i) indicates that M(k) and W k Considering the influence of these factors, we use the hierarchical analysis method to select (x ki ,y ki ), where x ki ∈M(k) and y ki ∈W k (i). When using hierarchical analysis to determine the probability, the hierarchical model of task i has three layers. The first layer (target layer) represents the appropriateness (x ki ,y ki The second layer (standard layer) describes the storage capacity, execution cost and completion time, which are the factors affecting (x ki ,y ki ) selection conditions. The third layer (scheme layer) describes the selection conditions from M(k) and W k (i) All possible combinations of accessing edge clouds and executing edge clouds. Let J ki represents a set of possible combinations. For task i, the contrast matrix of the second layer is

[0099]

[0100] Among them, z 1 (ki) represents the ratio of storage capacity to execution cost, z 2 (ki) represents the ratio of storage capacity to completion time, z 3 (ki) indicates that in choosing the appropriate (x ki ,y ki ) is the ratio of execution cost to completion time.

[0101] For the solution layer, each solution needs to design a corresponding matrix for the criterion layer. Since the criterion layer has three influencing factors, three matrices are defined, namely, Y 1 , Y 2 and Y 3 Let sc(ki,j) denote the storage capacity of combination j, j∈J ki Then, the matrix Y 1 The element Y 1 (j,s) is

[0102]

[0103] Let ec(ki,j) denote the execution cost of the combination j of accessing the edge cloud and executing the edge cloud. Then, the matrix Y 2 The element Y 2 (j,s) is

[0104]

[0105] Let ct(ki,j) denote the completion time of combination j of accessing edge cloud and executing edge cloud. Then, the matrix Y 3 The element Y 3 (j,s) is

[0106]

[0107] Y 1 , Y 2 and Y 3 The elements of the array are restricted to a certain range [1,9]. When an element value is less than 1, it is set to 1. When an element value is greater than 9, it is set to 9.

[0108] Check the consistency between these matrices. Let CI be the degree of deviation of the matrix. The smaller the value of CI, the closer the matrix is ​​to consistency. CI is obtained as

[0109]

[0110] Among them, λ m represents the maximum eigenvalue of the matrix, and y represents the dimension of the matrix. The consistency test CR is

[0111]

[0112] Where RI represents the consistency index, which is obtained from the correlation table. If CR < 0.10, the consistency of the matrix is ​​acceptable. Otherwise, the matrix should be modified until this condition is met.

[0113] Corresponding to the maximum eigenvalue λ m , Zki The eigenvector of

[0114]

[0115] Matrix Y 1 The eigenvector of

[0116]

[0117] Matrix Y 2 The eigenvector of

[0118]

[0119] Matrix Y 3 The eigenvector of

[0120]

[0121] The weight of the mth combination can be obtained as

[0122] W kim =Z ki (1)Y 1 (m)+Z ki (2)Y 2 (m)+Z ki (3)Y 3 (m) (26)

[0123] The total weight of all combinations is

[0124]

[0125] Therefore, the probability of selecting the mth combination for task i initiated by user k is

[0126]

[0127] For each task, the probability of any potential combination is calculated. Based on the calculated probability, each task is offloaded to a combination of the access edge cloud and the execution edge cloud.

[0128] The feature of this embodiment is that the execution process of the task does not rely solely on the priority queue, as follows:

[0129] There are multiple independent users in the system, and the tasks initiated by different users are unrelated. Therefore, task i from user k can be executed earlier than another task from other users in the backup queue as long as the predecessor of task i is completed, even if task i has a lower priority than the other task. The offloading order improves efficiency, but it also brings another disadvantage. The offloading of task i may extend the completion time of tasks in the backup queue. In the worst case, these tasks exceed the latest allowed completion time shown in (14), which will break the task deadline. Therefore, after the predecessor of task i is completed, it should not be offloaded immediately before evaluating its impact on the tasks in the backup queue. Assume that task i is offloaded and calculate the completion time of each task in the backup queue. If there is a task in the backup queue that exceeds its latest allowed completion time due to the offloading of task i, task i cannot be offloaded. Instead, task i is stored in the backup queue. If any task meets the latest allowed completion time in the backup queue, task i is actually offloaded to the selected edge cloud. After the actual offloading of task i, the current storage capacity of the edge cloud is updated, and the next task is offloaded until all tasks are processed.

[0130] In step S05, the tasks are reallocated according to their redundant time to maximize the completion rate, as follows:

[0131] After the initial allocation, mobile users change the access edge cloud and execution cloud, and the services are reallocated to different edge clouds. The goal of the reallocation is to maximize the ratio of completed tasks that meet all constraints (including cost, time, and storage constraints).

[0132] Here, slack time is introduced during reallocation to select the appropriate task. After the initial allocation, the completion time of all tasks can be calculated. Let RCMki be the completion time of task i started by user k. The distance between RCMki and CMCki, i.e., the completion time constraint of task i started by user k, is used to account for the slack time. Let RTki be the slack time of task i started by user k. It can be obtained

[0133] RT ki =CMC ki -RCM ki (29)

[0134] When RTki is large, task i is far away from its time constraint. In other words, when task i is moved to another edge cloud for execution, the possibility of breaking the time constraint is small. Therefore, the task with the highest redundancy time is selected. If task i is initiated by user k, user k offloads task i to another access edge cloud and execution cloud, resulting in changes in its corresponding service layout. With the change of task i and its corresponding service, all subsequent tasks will be affected. Since M(k) and W k(i) represents the set of coverage edge cloud and execution edge cloud respectively, so task i has |M(k)W k (i) |-1 reallocation cases. Some reallocation cases break the time or cost constraints and should be removed. From the reallocation cases that satisfy the constraints, the case with the maximum proportion of completed tasks is selected. Then, both the task and service allocations are updated with the selected reallocation. After that, the reallocation process is repeated until no higher proportion of completed tasks can be found.

[0135] Embodiment 2

[0136] Embodiment 2 of the present disclosure introduces a joint optimization system for mobile edge computing.

[0137] like Figure 4 A joint optimization system for mobile edge computing is shown, which adopts the joint optimization method for mobile edge computing introduced in the first embodiment, including:

[0138] An information acquisition module is used to obtain task information of mobile edge computing;

[0139] The probability calculation module is used to obtain the priority queue of the task information according to the acquired task information and the preset fitness function, and calculate the probability of each task in the task information being connected to the edge cloud and the service being placed on the edge cloud;

[0140] A reallocation module is used to reallocate the task information according to the obtained probability, and obtain the access edge cloud and service placement edge cloud when the preset task information completion rate is reached;

[0141] Among them, the redistribution of task information is based on the redundant time of task information and takes the preset task information completion rate as the target to reallocate task information.

[0142] The detailed steps are the same as the joint optimization method of mobile edge computing provided in Example 1 and will not be repeated here.

[0143] Embodiment 3

[0144] Embodiment 3 of the present disclosure provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the steps in the joint optimization method of mobile edge computing as described in Embodiment 1 of the present disclosure are implemented.

[0145] The detailed steps are the same as the joint optimization method of mobile edge computing provided in Example 1 and will not be repeated here.

[0146] Embodiment 4

[0147] Embodiment 4 of the present disclosure provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the joint optimization method for mobile edge computing as described in Embodiment 1 of the present disclosure are implemented.

[0148] The detailed steps are the same as the joint optimization method of mobile edge computing provided in Example 1 and will not be repeated here.

[0149] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

[0150] Although the above describes the specific implementation methods of the present disclosure in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present disclosure. Technical personnel in the relevant field should understand that on the basis of the technical solution of the present disclosure, various modifications or variations that can be made by those skilled in the art without creative work are still within the scope of protection of the present disclosure.

Claims

1. A joint optimization method for mobile edge computing, It is characterized in that The following steps are involved: Get task information of mobile edge computing; According to the acquired task information and the preset fitness function, the priority queue of the task information is obtained, and the probability of each task in the task information accessing the edge cloud and the service placing the edge cloud is calculated; Redistribute the task information according to the obtained probability, and obtain the access edge cloud and service placement edge cloud when the preset task information completion rate is reached; Among them, the redistribution of task information is to redistribute task information based on the redundant time of task information and the preset task information completion rate as the target; According to the completion time of each task information, tasks initiated by different users are arranged in a priority queue, and the priority queues of the obtained task information are sorted; According to the priority queue sorting of task information, the edge cloud is accessed and the service is placed in the edge cloud of all tasks during the initial allocation period. The probability of each task accessing the edge cloud and the service being placed in the edge cloud in the task information is calculated using the hierarchical analysis method.

2. A joint optimization method for mobile edge computing as claimed in claim 1, It is characterized in that Before obtaining the task information of mobile edge computing, the mobile users and edge clouds are initialized. Each edge cloud is equipped with multiple edge servers, which execute the tasks initiated by the mobile users when the edge cloud stores the services required for the task information. Mobile users are distributed in the coverage area of ​​the edge cloud, and the coverage area of ​​the edge cloud overlaps due to the high deployment density of the edge cloud.

3. A joint optimization method for mobile edge computing as claimed in claim 1, It is characterized in that The preset fitness function is an effect function that satisfies the constraint conditions of all task information and maximizes the total completion rate of task information.

4. A joint optimization method for mobile edge computing as claimed in claim 3, It is characterized in that A task from a user is executed earlier than another task from other users in the backup queue, and the predecessor of the task is completed, even if the priority of the task is lower than that of another task; the offloading order will extend the completion time of tasks in the backup queue while improving efficiency; if there is a task in the backup queue that exceeds its latest allowed completion time due to the offloading of the task, the task cannot be offloaded; if any task meets the latest allowed completion time in the backup queue, the task will actually be offloaded to the selected edge cloud; after the task is actually offloaded, the current storage capacity of the edge cloud is updated, and the next task is offloaded until all tasks are processed.

5. A joint optimization method for mobile edge computing as claimed in claim 4, It is characterized in that According to the redundant time of task information, the task information is reallocated with the preset task information completion rate as the goal. The specific process is as follows: After the initial allocation, the mobile user changes the access edge cloud and execution cloud, and reallocates the task information with the preset task information completion rate as the target; during the reallocation, redundant time is introduced to select suitable tasks; after the initial allocation, the completion time of all tasks is calculated, and the task with the highest redundant time is selected; from the reallocated tasks that meet the constraints, the task information with the maximum completion ratio is selected; the reallocation of tasks and services is updated, and the reallocation process is repeated until the preset task information completion rate is obtained.

6. A joint optimization system for mobile edge computing based on the method according to any one of claims 1 to 5, It is characterized in that include: An information acquisition module is used to obtain task information of mobile edge computing; The probability calculation module is used to obtain the priority queue of the task information according to the acquired task information and the preset fitness function, and calculate the probability of each task in the task information being connected to the edge cloud and the service being placed on the edge cloud; A reallocation module is used to reallocate the task information according to the obtained probability, and obtain the access edge cloud and service placement edge cloud when the preset task information completion rate is reached; Among them, the redistribution of task information is based on the redundant time of task information and takes the preset task information completion rate as the target to reallocate task information.

7. A computer-readable storage medium having a program stored thereon, It is characterized in that When the program is executed by a processor, the steps in the joint optimization method for mobile edge computing as described in any one of claims 1 to 5 are implemented.

8. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps in the joint optimization method for mobile edge computing as described in any one of claims 1 to 5 are implemented.