Mobile service edge collaborative offloading method, device, equipment and medium
By clustering edge nodes in the Internet of Vehicles environment to form a collaboration domain, and combining the DQN algorithm to optimize offloading decisions, the problem of task offloading delay and high resource consumption is solved, the processing power and resource utilization of edge computing are improved, and low Delay efficient task processing.
Patent Information
- Application Number
- CN202210583735.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-05-25
AI Technical Summary
In the Internet of Vehicles environment, task offloading decisions have problems such as high latency and high resource consumption. Especially when the waiting time of the edge server is unknown, it is difficult to achieve low latency and efficient task processing.
By clustering multiple edge nodes to form node clusters to form an edge node collaboration domain, and combining the sequence subtask execution model and the edge collaboration service domain service capability model, a subtask edge collaboration balanced offloading mechanism is proposed to determine the offloading mode, offloading location and service Path, the DQN algorithm is used to optimize offloading decisions to minimize the average execution time and energy consumption.
It effectively improves the business processing capabilities and resource utilization of the edge computing system, achieves appropriate energy-delay trade-offs, significantly improves the effect of offloading decisions, and reduces the average execution time and energy consumption.
Smart Images

Figure CN115134829B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communication technologies, and in particular to a mobile service edge collaborative unloading method, device, equipment and medium. Background Art
[0002] With the development of autonomous driving, the demand for data communication and computation offloading of connected and autonomous vehicles will surge in the foreseeable future. How to effectively schedule the use of resources in the network for optimal utilization when communication and computing capabilities are limited is a fundamental research question. In recent years, there has been increasing interest in connected and autonomous vehicles, which integrate information and communication technologies and play an important role in safer and smarter transportation systems. Vehicular communication networks have attracted much attention from academia and industry in the past decade. Traditional vehicular networks aim to improve the driving experience and enable safety applications through data exchange in vehicle-to-everything (V2X) communications. In the 5G era, the concept of vehicular networks has been extended to the Internet of Vehicles, where intelligent and interactive applications are enabled by communication and computing technologies. Countless IoT applications can be implemented in an IoT environment, such as assisted / autonomous driving and platformization, urban traffic management, and in-vehicle infotainment services.
[0003] However, the increasing number of connected and autonomous vehicles and their resource-hungry applications pose huge challenges. In connected vehicle applications, the high mobility and complex driving operations of vehicles make local processing of data and strict latency requirements extremely important. Based on this, the paradigm of vehicle edge computing (VEC) is proposed to enhance service capabilities by moving computing nodes close to the vehicle. This reduces the latency caused by long-distance network transmission and achieves higher performance advantages at a lower cost. Task offloading in VEC involves multiple challenges. For example, it is difficult to achieve low latency, which is critical to ensuring acceptable quality of experience (QoE).
[0004] To make reliable offloading decisions, the vehicle should understand the task and network parameters. Although the task size and the number of processing operations can be predetermined by the vehicle, the waiting time on the edge server side is unknown depending on the network load. Therefore, since the waiting time on the edge server side is unknown, there are problems with high latency and high resource consumption in the decision of task offloading. Summary of the invention
[0005] The present invention provides a mobile service edge collaborative offloading method, device, equipment and medium to solve the defects of excessive delay and excessive resource consumption in the decision of task offloading in the prior art, achieve appropriate energy-delay trade-off, and minimize average execution time and energy consumption.
[0006] The present invention provides a mobile service edge collaborative unloading method, comprising:
[0007] Cluster multiple edge nodes to obtain node clusters, and the nodes in each node cluster constitute an edge node cooperation domain;
[0008] According to the service capability of the edge cooperative service domain and the task information of the mobile service to be processed, the average execution time and energy consumption of the mobile service to be processed by the edge cooperative service domain are minimized to determine the offloading decision of the mobile service to be processed in the edge node cooperative domain;
[0009] Sending the offloading decision to a target mobile terminal corresponding to the edge cooperative service domain, so that the target mobile terminal uploads the mobile service to be processed to the edge node corresponding to the offloading decision for assisted processing;
[0010] The offloading decision includes an offloading mode, an offloading location and a service path, and the service capacity is determined based on the number of edge nodes in the edge collaboration service domain, the remaining computing capacity and the pre-cached service components.
[0011] According to a mobile service edge collaborative offloading method provided by the present invention, determining the target mobile terminal includes:
[0012] The mobile terminals that enter the edge node cooperation domain within the same time period are determined, and the target mobile terminals corresponding to the edge node cooperation domain are obtained.
[0013] According to a mobile service edge cooperative unloading method provided by the present invention, according to the service capability of the edge cooperative service domain and the task information of the mobile service to be processed, the average execution time and energy consumption of the mobile service to be processed by the edge cooperative service domain are minimized to determine the unloading decision of the mobile service to be processed in the edge node cooperative domain, including:
[0014] determining a stay time of the target mobile terminal according to a user trajectory of the target mobile terminal corresponding to the edge node cooperation domain;
[0015] An offloading decision of the mobile service to be processed in the edge node cooperation domain is determined according to the service capability of the edge cooperation service domain, the task information of the mobile service to be processed and the residence time.
[0016] According to a mobile service edge collaborative offloading method provided by the present invention, determining task information of a mobile service to be processed includes:
[0017] Receiving task information of pending mobile services;
[0018] According to the task information, the mobile service to be processed is split according to service functions to obtain a plurality of subtask sets with a processing order.
[0019] According to a mobile service edge cooperative unloading method provided by the present invention, according to the service capability of the edge cooperative service domain and the task information of the mobile service to be processed, determining the unloading decision of the mobile service to be processed in the edge node cooperative domain, comprising:
[0020] The DQN algorithm is used to determine the offloading decision of the mobile service to be processed in the edge node cooperation domain.
[0021] According to a mobile service edge cooperative unloading method provided by the present invention, according to the service capability of the edge cooperative service domain and the task information of the mobile service to be processed, minimizing the average execution time and energy consumption of the edge cooperative service domain to execute the mobile service to be processed, so as to determine the unloading decision of the mobile service to be processed in the edge node cooperative domain, the method further includes:
[0022] According to the offloading decision, an optimal CPU frequency and an optimal transmission power corresponding to the target mobile terminal are determined.
[0023] The present invention also provides a mobile service edge collaborative unloading device, comprising:
[0024] A clustering module is used to cluster multiple edge nodes to obtain node clusters, and the nodes in each node cluster constitute an edge node cooperation domain;
[0025] An unloading decision module, configured to minimize the average execution time and energy consumption of the edge cooperative service domain in executing the mobile service to be processed according to the service capability of the edge cooperative service domain and the task information of the mobile service to be processed, so as to determine the unloading decision of the mobile service to be processed in the edge node cooperative domain;
[0026] A decision issuing module, used for issuing the offloading decision to a target mobile terminal corresponding to the edge cooperative service domain, so that the target mobile terminal uploads the mobile service to be processed to the edge node corresponding to the offloading decision for assisted processing;
[0027] The offloading decision includes an offloading mode, an offloading location and a service path, and the service capacity is determined based on the number of edge nodes in the edge collaboration service domain, the remaining computing capacity and the pre-cached service components.
[0028] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the mobile service edge collaborative unloading method as described above is implemented.
[0029] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the mobile service edge collaborative unloading method as described in any one of the above is implemented.
[0030] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the mobile service edge collaborative offloading methods described above.
[0031] The mobile service edge collaborative unloading method, device, equipment and medium provided by the present invention, by aggregating single edge nodes into the form of node clusters to form an edge node collaborative domain, this way of processing the mobile services of the corresponding mobile terminals in a node cluster is beneficial to improving the business processing capability of the edge computing system, as well as effectively improving the resource utilization of the edge nodes; combining the sequence subtask execution model with the edge collaborative service domain service capability model, a subtask edge collaborative balanced unloading mechanism is proposed, and while considering the service software deployment, the unloading mode, unloading location and service path of the subtasks in the domain are solved, and appropriate energy-delay trade-offs are made to minimize the average execution time and energy consumption, thereby greatly improving the effect of the unloading decision. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 It is one of the flow diagrams of the mobile service edge collaborative offloading method provided by the present invention;
[0034] Figure 2 This is the second flow chart of the mobile service edge collaborative offloading method provided by the present invention;
[0035] Figure 3 This is the third flow chart of the mobile service edge collaborative offloading method provided by the present invention;
[0036] Figure 4 is the system cost under different numbers of users in the simulation result diagram;
[0037] Figure 5 is the system cost of different business sizes in the simulation result diagram;
[0038] Figure 6 is the system cost under different edge node computing capabilities;
[0039] Figure 7It is a structural schematic diagram of the mobile service edge collaborative offloading device provided by the present invention;
[0040] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] Combine the following Figure 1-Figure 6 The mobile service edge collaborative offloading method of the present invention is described.
[0043] Please refer to Figure 1 The mobile service edge collaborative unloading method proposed by the present invention comprises:
[0044] Step 10, clustering multiple edge nodes to obtain node clusters, and the nodes in each node cluster constitute an edge node cooperation domain;
[0045] In this embodiment, the mobile service edge collaborative unloading method proposed in the present invention is applied to an edge server cluster. The edge nodes in the edge server cluster can be clustered according to the geographical location to which the edge nodes belong, to obtain multiple node clusters, and the edge nodes in the node cluster can be used as edge node collaborative domains. For example, the edge nodes within the signal radiation range of the base station device can be clustered into the same node cluster, or the edge nodes within the signal radiation range of the same base station or device can be used as the same node cluster, or within a range of a preset length radius centered on the target node. Among them, the basis for clustering, in addition to the geographical location of the edge node, can also be based on the communication method of the edge node, for example, the edge nodes belonging to the same private network or intranet are clustered into the same node cluster.
[0046] In this embodiment, by aggregating single edge nodes into node clusters to form edge node collaboration domains, this method of processing mobile services of corresponding mobile terminals in node clusters is conducive to improving the business processing capabilities of the edge computing system and effectively improving the resource utilization of edge nodes.
[0047] Step 20, minimizing the average execution time and energy consumption of the edge cooperative service domain in executing the mobile service to be processed according to the service capability of the edge cooperative service domain and the task information of the mobile service to be processed, so as to determine the offloading decision of the mobile service to be processed in the edge node cooperative domain;
[0048] Step 30, sending the offloading decision to the target mobile terminal corresponding to the edge cooperative service domain, so that the target mobile terminal uploads the to-be-processed mobile service to the edge node corresponding to the offloading decision for assisted processing;
[0049] The service capacity is determined based on the number of edge nodes in the edge collaboration service domain, the remaining computing capacity and the pre-cached service components.
[0050] It should be noted that the service capability of the edge collaboration service domain is determined based on the service model of the edge collaboration service domain. Before determining the service capability of the edge collaboration service domain, the service model of the edge collaboration service domain needs to be pre-built. The service model of the edge collaboration service domain is as follows:
[0051] We use UD = {1,2,...,u} to represent the mobile terminal, and N = {1,2,...,N} to represent the edge node ENs in the system. The mobile terminal UD and the edge node ENs use orthogonal spectrum for data transmission. The mobile terminal occupies a subchannel, and there is no interference between different terminal devices. Cluster multiple adjacent edge nodes according to the service capabilities of the edge nodes. After clustering, we can get a group of edge node clusters, which we call the collaborative edge service domain ECSD, which can be represented by ECSD = {1,2,...,E}. The service type set can be represented as I = {i1,i2,......,i n}, subtask j of business i is g ij Business processing requires corresponding service software. Represents. Subtask sequence G i (t) = {g i1 , g i1 ,...,g ij ,... iJ} is a series of subtasks generated by business i and should be processed in sequence.
[0052] We use the number of edge nodes, the remaining computing power, and the pre-cached service components to represent the service capacity of the edge collaboration service domain. The service capacity model of the collaboration domain e is as follows:
[0053]
[0054] Where H(t)={h1(t),h2(t),…hn R(t) = {r1(t), r2(t), … r n Q(t)={Q1(t),Q2(t),…Q n C(t)={C1(t),C2(t),…C n M(t) = {m1(t),m2(t),…m n (t)} is the set of cache capacities of edge nodes ENs; It is the coverage of the collaborative edge service domain ECSD.
[0055] In this embodiment, according to the service capabilities of the edge collaborative service domain and the task information of the pending mobile service, an unloading decision is made for unloading balance, and the unloading decision includes the unloading mode, unloading location and service path of the pending mobile service, and finally determines the unloading mode, unloading location and service path of the pending mobile service. After obtaining the unloading mode, unloading location and service path of the pending mobile service, the unloading mode, unloading location and service path corresponding to the pending mobile service are sent to the target mobile terminal; after receiving the unloading decision, the target mobile terminal uploads its pending mobile service to the edge node corresponding to the unloading decision of the edge collaborative service domain according to the unloading decision.
[0056] To achieve balanced offloading decisions, it is necessary to minimize the average execution time and energy consumption of the subtask set executed by the edge collaborative service domain, thereby greatly improving the effect of the offloading decision. Among them, the offloading mode includes the local computing offloading mode and the edge computing offloading mode. The local computing offloading mode is that the local node offloads the subtask set to the mobile terminal for processing and uploading, and the edge computing offloading mode is that the edge node offloads the subtask set to the mobile terminal for processing and uploading. The offloading location is the mobile terminal where the subtask is to be offloaded, and the service path is the service component that processes the subtask and the order of the service components.
[0057] Local computing offloading mode: For subtask g ij The local execution delay of is the processing subtask g of mobile terminal u ij The computing power, c ij To process subtask g ij The CPU cycles required for the subtask are ij The local execution latency can be expressed as:
[0058]
[0059] The corresponding energy consumption is:
[0060]
[0061] Among them, κ represents the computational energy efficiency parameter.
[0062] Edge computing offloading mode: End-to-end delay consists of transmission delay and processing delay.
[0063] First, we consider the transmission delay and express the communication rate between the mobile terminal UD u and the nearest edge node n as:
[0064]
[0065] Where B is the available spectrum bandwidth of the edge node EN n, is the transmission power of the mobile terminal UD u, ω0 is the Gaussian white noise power, is the distance from the mobile terminal UD u to the edge node EN n; β is the path loss exponent; and the channel fading coefficient is represented by h.
[0066] Therefore, the uplink transmission delay of the subtask is:
[0067]
[0068] Among them, s ij Represents subtask g ij The input data size.
[0069] definition From (4) and (5) we can conclude that:
[0070]
[0071] Then, the energy consumption in transmission is:
[0072]
[0073] Please note that since formula (6) is about the inverse function of the convex function, therefore, formula (7) is about the transmission time Convex function of .
[0074] Since we assume that edge nodes are connected via optical fibers, the transmission delay can be calculated by the number of hops TL. The processing delay of a subtask at an edge node EN n can be expressed as:
[0075]
[0076] in, is the edge node EN n assigned to subtask g ijIn our problem, we express the offloading decision as satisfying the one-climb strategy, i.e., the execution of each subtask is migrated from the mobile terminal UD to the edge node EN at most once when optimal.
[0077] When the service software is missing, the time it takes for the edge node EN to obtain the service software q(ij) through the backhaul link with a bandwidth of R bits per second is is the size of the service software q(ij). Let the variable Indicates whether the edge node EN n caches the service software q(ij). The replacement strategy of the service component adopts the least recently used replacement strategy.
[0078] In summary, we conclude that the total computational delay and communication delay of service i is:
[0079]
[0080]
[0081] Among them, ij It is subtask g ij The offloading decision (including offloading mode, offloading location and offloading service path) Indicates that the subtask g ij Offload to edge node ENn for execution, Indicates that the subtask is executed locally. Represents the delay in software acquisition.
[0082] Therefore, the total execution time of business i is:
[0083] T i =T i comp +T i tr (11)
[0084] In addition, we can calculate the total energy consumption of processing business i by:
[0085]
[0086] The optimization problem of offloading subtasks in the edge collaborative service domain ECSD e can be expressed as:
[0087] (P1)min:ω1E+ω2T
[0088]
[0089]
[0090]
[0091]
[0092] C5:T i ≤T i require (13)
[0093] Among them, ω1 and ω2 are adjustment coefficients, satisfying ω1, ω2 ≤ 1. The general constraints of the optimization model include: C1 ensures that the service software required by the subtask should be cached on the edge node EN n before offloading; C2 indicates that the software cache decision is limited by the EN cache capacity; C3 and C4 correspond to the maximum CPU frequency and transmission power of the mobile terminal UD. C5 ensures that the end-to-end delay meets the service delay requirements. In (2) and (6), and and There is a one-to-one correspondence between them. By substituting t into {f, p}, we can equivalently express (P1) as:
[0094] (P2)min:ω1E+ω2T
[0095]
[0096]
[0097]
[0098]
[0099] C5:T i ≤T i require (14)
[0100] In the formulated MDP problem, the large state space and action space make it difficult to find the optimal task offloading policy π*. Fortunately, reinforcement learning techniques are very powerful in dealing with scheduling problems. Reinforcement learning is a major branch of machine learning, where an agent learns to take a series of actions to maximize future cumulative rewards by giving it a corresponding policy to the state. Therefore, the MDP we proposed can be viewed as a reinforcement learning problem to minimize the cumulative future loss.
[0101] The management node load of the edge node cooperation domain can be formulated based on the subtask offloading strategy of DQN. We assume that the management node can obtain real-time channel state information and the remaining computing resources of the edge node EN. In order to optimize the RL strategy, we define it as the state space:
[0102] s t ={S e (t),Ge (t)} (15)
[0103] Among them, S e (t) is the service capacity of the edge collaborative service domain ECSD e in time slot t (expressed by edge nodes, remaining computing capacity, and pre-cached service components), G e (t) represents the set of subtasks allocated and offloaded in the edge collaborative service domain ECSD e.
[0104] The mobile service edge collaborative unloading method proposed in the present invention aggregates single edge nodes into node clusters to form an edge node collaborative domain. This method of processing the mobile services of the corresponding mobile terminals in node clusters is beneficial to improving the business processing capabilities of the edge computing system and effectively improving the resource utilization of edge nodes. Combining the sequential subtask execution model with the edge collaborative service domain service capability model, a subtask edge collaborative balanced unloading mechanism is proposed. Taking into account the service software deployment, the unloading mode, unloading location and service path of the subtasks in the domain are solved, and appropriate energy-delay trade-offs are made to minimize the average execution time and energy consumption, thereby greatly improving the effect of the unloading decision.
[0105] In a possible embodiment, step 30, determining the target mobile terminal, includes:
[0106] Step 31: determine the mobile terminals that enter the edge node cooperation domain within the same time period, and obtain the target mobile terminal corresponding to the edge node cooperation domain.
[0107] In this embodiment, the target mobile terminal corresponding to the edge node cooperation domain is determined in the following manner: in the same time period, the mobile terminals that enter the range corresponding to the edge node cooperation domain in the same time period are used as the target mobile terminals corresponding to the edge node cooperation domain. It should be noted that, since there are many vehicles (mobile terminals) coming and going on highways or urban lanes, when vehicles (mobile terminals) pass through red light intersections and wait, a large number of mobile terminals (i.e., vehicles) gather during the period of waiting for the traffic light at the traffic light intersection. Therefore, when a large number of mobile terminals gather in the same time period, the currently gathered vehicle mobile terminals are determined as the target mobile terminals.
[0108] In one possible embodiment, please refer to Figure 2 Step 20: according to the service capability of the edge cooperation service domain and the task information of the mobile service to be processed, minimizing the average execution time and energy consumption of the mobile service to be processed by the edge cooperation service domain to determine the offloading decision of the mobile service to be processed in the edge node cooperation domain, including:
[0109] Step 201, determining the residence time of the target mobile terminal according to the user trajectory of the target mobile terminal corresponding to the edge node cooperation domain;
[0110] Step 202: Determine an offloading decision for the mobile service to be processed in the edge node cooperation domain according to the service capability of the edge cooperation service domain, the task information of the mobile service to be processed, and the residence time.
[0111] In this embodiment, when a mobile terminal enters an edge node cooperation domain, it is necessary to calculate the residence time of the mobile terminal in the edge node cooperation domain, wherein the residence time is the time the mobile terminal is in the edge node cooperation domain, and the residence time is used to determine the target subtask assigned to the target mobile terminal. It should be noted that different subtasks correspond to different processing times, therefore, the residence time is used to assign the target subtask whose processing time is less than the residence time to the mobile terminal for processing. This embodiment improves the rationality of the allocation by planning the allocation of subtasks by the residence time.
[0112] In one possible embodiment, please refer to Figure 3 Step 20: determining the task information of the mobile service to be processed, including:
[0113] Step 211, receiving task information of the mobile service to be processed;
[0114] Step 212: split the to-be-processed mobile service according to service functions according to the task information to obtain a plurality of subtask sets having a processing order.
[0115] In this embodiment, mobile services have a processing order. Therefore, when mobile services that need to be processed are received, the received mobile services are first divided according to service functions to obtain multiple subtask sets with a processing order. In this step, the mobile services are split according to functions and then distributed to different edge collaborative service domains for processing, thereby improving the efficiency of task processing.
[0116] It should be noted that mobile services are computationally intensive tasks generated by terminals. Mobile services can be computationally intensive tasks such as image recognition, voice recognition, infrared thermal imaging modeling, etc., which cannot be processed by terminals. Therefore, the mobile terminal first uploads the generated task information to the edge center of the edge server cluster; the edge center receives the task information transmitted by the mobile terminal, and determines the unloading decision based on the task information. After the edge center obtains the unloading decision, it sends the unloading decision to the mobile terminal. Therefore, the mobile terminal uploads the corresponding task to the corresponding edge collaboration domain for collaborative processing based on the unloading decision.
[0117] In a possible embodiment, step 20, determining an offloading decision of the mobile service to be processed in the edge node cooperation domain according to the service capability of the edge cooperation service domain and the task information of the mobile service to be processed, includes:
[0118] The DQN algorithm is used to determine the offloading decision of the mobile service to be processed in the edge node cooperation domain.
[0119] In this embodiment, the DQN method is adopted to solve the unloading mode, unloading location and service path of the subtask in the domain while considering the deployment of the service software, and to make appropriate energy-delay trade-offs to minimize the average execution time and energy consumption. Among them, the main algorithm flow of the DQN algorithm is to combine the neural network with the Q-learning algorithm. Utilizing the powerful representation ability of the neural network, the high-dimensional input data is used as the state in reinforcement learning and as the input of the neural network model (Agent); then the neural network model outputs the value (Q value) corresponding to each action to obtain the action to be performed. The goal of reinforcement learning is to obtain the maximum reward through learning.
[0120] At time slot t, we can define the reward for subtask offloading as:
[0121]
[0122] Among them, r t is the weighted average cost of energy and delay.
[0123] In a possible embodiment, according to the service capability of the edge cooperative service domain and the task information of the mobile service to be processed, minimizing the average execution time and energy consumption of the edge cooperative service domain to execute the mobile service to be processed, so as to determine the offloading decision of the mobile service to be processed in the edge node cooperative domain, further comprising:
[0124] Step 40: Determine the optimal CPU frequency and optimal transmit power corresponding to the target mobile terminal according to the offloading decision.
[0125] In this embodiment, the present invention calculates the CPU frequency and transmit power corresponding to any given offloading decision. It should be noted that the best offloading decision is obtained through the above calculation, so the CPU frequency and transmit power corresponding to the offloading decision calculated herein are respectively referred to as the best CPU frequency and the best transmit power, wherein the best CPU frequency and the best transmit power can be the CPU frequency and transmit power of any mobile terminal, or the CPU frequency and transmit power of the edge collaborative service domain. Among them, the CPU frequency is used by the edge node of the edge collaborative service domain to process the mobile services to be processed, and the transmit power is used by the edge node of the edge collaborative service domain to transmit the processing results to the target mobile terminal after the processing subtask is completed.
[0126] The present invention provides an accurate expression of the optimal CPU frequency and the optimal transmit power for any given offloading decision, thereby reducing the complexity of solving the optimization problem. In addition, the subtasks are processed according to the calculated optimal CPU frequency and the optimal transmit power is uploaded to improve the energy efficiency of the mobile terminal.
[0127] Specifically, at time slot t, the agent selects an action from the action space. The action at time slot t can be defined as:
[0128] A t ={o i1 (t),o i2 (t),...,o ij (t),...,o iJ (t)} (16)
[0129] Among them, ij It is subtask g ij uninstall decision.
[0130] For any given offloading decision o, the optimization of the remaining {f, p, t} is a convex problem. The optimal CPU frequency of the mobile terminal UD satisfies:
[0131]
[0132] The optimal transmission power of UD satisfies:
[0133]
[0134] Among them, L1 is L2 is
[0135] In order to better illustrate the effect of the mobile service edge collaborative offloading method proposed by the present invention, the following is an illustration in conjunction with a simulation example:
[0136] We constructed a 10*10 grid map to represent the entire service area. Each grid is 200 meters long, and an EN is placed at the intersection of the grid. We consider 10 types of components, each of which occupies 100MB-200MB of storage space. The data size of the subtask is 20MB-40MB. The component storage space of each node is m n The size is 2000MB, the maximum CPU frequency of the node 4GHz-36GHz, user local storage space is 200MB, terminal transmission power The Gaussian white noise power ω0 is -100dBm.
[0137] To verify the performance of the algorithm, we simulated it using TensorFlow 2.0 on a simulator based on Python 3.7 and compared the proposed scheme with the following algorithms:
[0138] Local Execution Scheme (LES): It only allows subtasks to be executed locally on the user device.
[0139] Edge Execution Scheme (EES): When the service components required for subtask j are cached in the edge node, the user delegates all tasks to the directly connected edge node for execution. If not, the edge node obtains the required service components from the cloud server and then executes the subtask.
[0140] ECSD with Pre-Caching and Backup (ECSD-P) (proposed by this invention): We allow edge nodes to form multiple ECSD and pre-caching service software according to user needs.
[0141] Please refer to the simulation test results Figure 4-6 .
[0142] To show the performance of our proposed edge cooperative offloading approach in minimizing the total system cost for all mobile users, Figure 4It is compared with two existing scheduling procedures, LES and EES. Intuitively, the system cost of all schemes increases naturally while increasing. This is because when the number of mobile users is large, the system will be more crowded, resulting in larger processing delays and energy consumption of the system. In addition, due to the limited resources of UDs and the lack of help from ENs, LES has the largest average business execution delay. EES only allows one engineer to handle tasks by himself. As the number of users increases, the computing power and storage capacity of a single edge node are not enough to meet the offloading needs of all devices, so it also has a large computing delay. The "ECSD" scheme proposed in this patent is always better than the baseline scheme because in most cases it can formulate the optimal offloading strategy by performing reasoning online.
[0143] Figure 5 The system cost with respect to the increase in data size of the offloaded traffic is shown. Obviously, jobs with larger data size require more time and energy. Therefore, the system cost increases with the increase in data size. As we expected, the curve of the LES scheme increases the fastest with the increase in data size. This indicates that the larger the job size, the higher the energy consumption of MUs. Figure 6 The variation of system cost under different edge node computing power is given. It is observed that with the increase of offloading amount, the system cost of the other two offloading schemes, except for the LES scheme, is significantly reduced. This is because the LES scheme calculates jobs locally, so the amount of computing resources owned by the edge node does not affect the system cost of using the LES scheme. On the contrary, with the improvement of edge node computing power, the job execution time of the other two schemes can be shortened because the edge node will allocate more computing resources to handle the offloaded tasks accordingly. In addition, with the increase of edge node computing power, offloading business to edge nodes gradually becomes the best strategy to minimize time cost. When the computing power of edge nodes reaches 32Ghz, the system cost of EES and ECSD schemes is almost the same.
[0144] The mobile service edge collaborative unloading device provided by the present invention is described below. The mobile service edge collaborative unloading device described below and the mobile service edge collaborative unloading method described above can be referenced to each other.
[0145] Please refer to Figure 7 The mobile service edge collaborative unloading device proposed by the present invention includes:
[0146] A clustering module is used to cluster multiple edge nodes to obtain node clusters, and the nodes in each node cluster constitute an edge node cooperation domain;
[0147] An unloading decision module, configured to minimize the average execution time and energy consumption of the edge cooperative service domain in executing the mobile service to be processed according to the service capability of the edge cooperative service domain and the task information of the mobile service to be processed, so as to determine the unloading decision of the mobile service to be processed in the edge node cooperative domain;
[0148] A decision issuing module, used for issuing the offloading decision to a target mobile terminal corresponding to the edge cooperative service domain, so that the target mobile terminal uploads the mobile service to be processed to the edge node corresponding to the offloading decision for assisted processing;
[0149] The offloading decision includes an offloading mode, an offloading location and a service path, and the service capacity is determined based on the number of edge nodes in the edge collaboration service domain, the remaining computing capacity and the pre-cached service components.
[0150] Furthermore, the mobile service edge collaborative unloading device further includes:
[0151] The target mobile terminal determination module is used to: determine the mobile terminals that enter the edge node cooperation domain within the same time period, and obtain the target mobile terminal corresponding to the edge node cooperation domain.
[0152] Furthermore, the uninstallation decision module is also used to:
[0153] determining a stay time of the target mobile terminal according to a user trajectory of the target mobile terminal corresponding to the edge node cooperation domain;
[0154] An offloading decision of the mobile service to be processed in the edge node cooperation domain is determined according to the service capability of the edge cooperation service domain, the task information of the mobile service to be processed and the residence time.
[0155] Furthermore, the uninstallation decision module is also used to:
[0156] Receiving task information of pending mobile services;
[0157] According to the task information, the mobile service to be processed is split according to service functions to obtain a plurality of subtask sets with a processing order.
[0158] Furthermore, the uninstallation decision module is also used to:
[0159] The DQN algorithm is used to determine the offloading decision of the mobile service to be processed in the edge node cooperation domain.
[0160] Furthermore, the mobile service edge collaborative unloading device further includes:
[0161] The processing parameter determination module is used to determine the optimal CPU frequency and optimal transmission power corresponding to the target mobile terminal according to the offloading decision.
[0162] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor (processor) 810, a communication interface (Communications Interface) 820, a memory (memory) 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call the logic instructions in the memory 830 to execute the mobile service edge collaborative unloading method, which includes: clustering multiple edge nodes to obtain node clusters, and the nodes in each node cluster constitute an edge node collaborative domain; according to the service capability of the edge collaborative service domain and the task information of the mobile service to be processed, minimizing the average execution time and energy consumption of the edge collaborative service domain to execute the mobile service to be processed, so as to determine the unloading decision of the mobile service to be processed in the edge node collaborative domain; sending the unloading decision to the target mobile terminal corresponding to the edge collaborative service domain, so that the target mobile terminal uploads the mobile service to be processed to the edge node corresponding to the unloading decision for assisted processing; wherein, the unloading decision includes the unloading mode, the unloading location and the service path, and the service capability is determined based on the number of edge nodes in the edge collaborative service domain, the remaining computing power and the pre-cached service components.
[0163] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0164] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the mobile service edge collaborative unloading method provided by the above methods, the method including: clustering multiple edge nodes to obtain node clusters, the nodes in each node cluster forming an edge node collaborative domain; minimizing the average execution time and energy consumption of the edge collaborative service domain to execute the mobile service to be processed according to the service capability of the edge collaborative service domain and the task information of the mobile service to be processed, so as to determine the unloading decision of the mobile service to be processed in the edge node collaborative domain; sending the unloading decision to the target mobile terminal corresponding to the edge collaborative service domain, so that the target mobile terminal uploads the mobile service to be processed to the edge node corresponding to the unloading decision for assisted processing; wherein the unloading decision includes an unloading mode, an unloading location and a service path, and the service capability is determined based on the number of edge nodes in the edge collaborative service domain, the remaining computing power and the pre-cached service components.
[0165] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the mobile service edge collaborative unloading method provided by the above-mentioned methods, the method comprising: clustering multiple edge nodes to obtain node clusters, the nodes in each node cluster forming an edge node collaborative domain; minimizing the average execution time and energy consumption of the edge collaborative service domain in executing the mobile service to be processed according to the service capability of the edge collaborative service domain and the task information of the mobile service to be processed, so as to determine the unloading decision of the mobile service to be processed in the edge node collaborative domain; sending the unloading decision to the target mobile terminal corresponding to the edge collaborative service domain, so that the target mobile terminal uploads the mobile service to be processed to the edge node corresponding to the unloading decision for assisted processing; wherein the unloading decision includes an unloading mode, an unloading location and a service path, and the service capability is determined based on the number of edge nodes in the edge collaborative service domain, the remaining computing power and the pre-cached service components.
[0166] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0167] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0168] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A mobile service edge collaborative offloading method, characterized in that: include: Cluster multiple edge nodes to obtain node clusters, and the nodes in each node cluster constitute an edge node cooperation domain; According to the service capability of the edge cooperative service domain and the task information of the mobile service to be processed, the average execution time and energy consumption of the mobile service to be processed by the edge cooperative service domain are minimized to determine the offloading decision of the mobile service to be processed in the edge node cooperative domain; Sending the offloading decision to a target mobile terminal corresponding to the edge cooperative service domain, so that the target mobile terminal uploads the mobile service to be processed to the edge node corresponding to the offloading decision for assisted processing; The offloading decision includes an offloading mode, an offloading location, and a service path, and the service capacity is determined based on the number of edge nodes in the edge collaboration service domain, the remaining computing capacity, and the pre-cached service components; Among them, local computing offloading mode: For subtask The local execution delay of Processing subtask for mobile terminal u The computing power of To handle subtasks CPU cycles required, subtask The local execution delay of is expressed as: (2); The corresponding energy consumption is: (3); in, Indicates the calculation energy efficiency parameter; Edge computing offloading mode: end-to-end latency consists of transmission latency and processing latency; The communication rate between the mobile terminal UD u and the nearest edge node n is expressed as: (4); Where B is the available spectrum bandwidth of the edge node EN n, is the transmission power of the mobile terminal UD u, is the Gaussian white noise power, is the distance from the mobile terminal UD u to the edge node EN n; is the path loss exponent; the channel fading coefficient is represented by h; The uplink transmission delay of the subtask is: (5); in, Represents a subtask The input data size; definition , from (4) and (5) we can conclude that: (6); The energy consumption during transmission is: (7); The transmission delay is calculated by the number of hops TL, and the processing delay of the subtask at the edge node ENn is expressed as: (8); in, is the edge node EN n assigned to the subtask computing resources; When the service software is missing, the edge node EN obtains the service software through the backhaul link with a bandwidth of R bits per second. q(ij) The time is , Software as a Service q(ij) The size of Indicates whether the edge node EN n caches the service software q(ij) ; The total computation delay and communication delay of service i is: (9); (10); in, It is a subtask The uninstall decision =1 means to set the subtask Offload to edge node ENn for execution, =1 means the subtask is executed locally; represents the delay in software acquisition; The total execution time of business i is: (11); The total energy consumption of processing business i is calculated as follows: (12); The optimization problem of offloading subtasks in the edge collaborative service domain ECSD e is expressed as: (13); in, and is the adjustment coefficient, satisfying , ≤1; the general constraints of the optimization model include: C1 ensures that the service software required by the subtask should be cached on the edge node EN n before offloading; C2 indicates that the software cache decision is limited by the EN cache capacity; C3 and C4 correspond to the maximum CPU frequency and transmission power of the mobile terminal UD; C5 ensures that the end-to-end delay meets the service delay requirements; in (2) and (6), and , and There is a one-to-one correspondence between t Substitution , equivalently (P1) is expressed as: (14)。 2. The mobile service edge collaborative offloading method according to claim 1, characterized in that: Determining the target mobile terminal includes: The mobile terminals that enter the edge node cooperation domain within the same time period are determined, and the target mobile terminals corresponding to the edge node cooperation domain are obtained.
3. The mobile service edge collaborative offloading method according to claim 1, characterized in that: According to the service capability of the edge cooperative service domain and the task information of the mobile service to be processed, minimizing the average execution time and energy consumption of the mobile service to be processed by the edge cooperative service domain to determine the unloading decision of the mobile service to be processed in the edge node cooperative domain, including: determining a stay time of the target mobile terminal according to a user trajectory of the target mobile terminal corresponding to the edge node cooperation domain; An offloading decision of the mobile service to be processed in the edge node cooperation domain is determined according to the service capability of the edge cooperation service domain, the task information of the mobile service to be processed and the residence time.
4. The mobile service edge collaborative offloading method according to claim 1, characterized in that: Determine the task information of the mobile business to be processed, including: Receiving task information of pending mobile services; According to the task information, the mobile service to be processed is split according to service functions to obtain a plurality of subtask sets with a processing order.
5. The mobile service edge collaborative offloading method according to claim 1, characterized in that: Determining an offloading decision of the mobile service to be processed in the edge node cooperation domain according to the service capability of the edge cooperation service domain and the task information of the mobile service to be processed, including: The DQN algorithm is used to determine the offloading decision of the mobile service to be processed in the edge node cooperation domain.
6. The mobile service edge collaborative offloading method according to claim 1, characterized in that: According to the service capability of the edge cooperative service domain and the task information of the mobile service to be processed, minimizing the average execution time and energy consumption of the edge cooperative service domain in executing the mobile service to be processed, so as to determine the offloading decision of the mobile service to be processed in the edge node cooperative domain, further comprising: According to the offloading decision, an optimal CPU frequency and an optimal transmission power corresponding to the target mobile terminal are determined.
7. A mobile service edge collaborative unloading device, characterized in that: include: A clustering module is used to cluster multiple edge nodes to obtain node clusters, and the nodes in each node cluster constitute an edge node cooperation domain; An unloading decision module is used to minimize the average execution time and energy consumption of the edge cooperation service domain to execute the mobile service to be processed according to the service capability of the edge cooperation service domain and the task information of the mobile service to be processed, so as to determine the unloading decision of the mobile service to be processed in the edge node cooperation domain; A decision issuing module, used for issuing the offloading decision to a target mobile terminal corresponding to the edge cooperative service domain, so that the target mobile terminal uploads the mobile service to be processed to the edge node corresponding to the offloading decision for assisted processing; The offloading decision includes an offloading mode, an offloading location, and a service path, and the service capacity is determined based on the number of edge nodes in the edge collaboration service domain, the remaining computing capacity, and the pre-cached service components; Among them, local computing offloading mode: For subtask The local execution delay of Processing subtask for mobile terminal u The computing power of To handle subtasks CPU cycles required, subtask The local execution delay of is expressed as: (2); The corresponding energy consumption is: (3); in, Indicates the calculation energy efficiency parameter; Edge computing offloading mode: end-to-end latency consists of transmission latency and processing latency; The communication rate between the mobile terminal UD u and the nearest edge node n is expressed as: (4); Where B is the available spectrum bandwidth of the edge node EN n, is the transmission power of the mobile terminal UD u, is the Gaussian white noise power, is the distance from the mobile terminal UD u to the edge node EN n; is the path loss exponent; the channel fading coefficient is represented by h; The uplink transmission delay of the subtask is: (5); in, Represents a subtask The input data size; definition , from (4) and (5) we can conclude that: (6); The energy consumption during transmission is: (7); The transmission delay is calculated by the number of hops TL, and the processing delay of the subtask at the edge node ENn is expressed as: (8); in, is the edge node EN n assigned to the subtask computing resources; When the service software is missing, the edge node EN obtains the service software through the backhaul link with a bandwidth of R bits per second. q(ij) The time is , Software as a Service q(ij) The size of Indicates whether the edge node EN n caches the service software q(ij) ; The total computation delay and communication delay of service i is: (9); (10); in, It is a subtask The uninstall decision =1 means to set the subtask Offload to edge node ENn for execution, =1 means the subtask is executed locally; represents the delay in software acquisition; The total execution time of business i is: (11); The total energy consumption of processing business i is calculated as follows: (12); The optimization problem of offloading subtasks in the edge collaborative service domain ECSD e is expressed as: (13); in, and is the adjustment coefficient, satisfying , ≤1; the general constraints of the optimization model include: C1 ensures that the service software required by the subtask should be cached on the edge node EN n before offloading; C2 indicates that the software cache decision is limited by the EN cache capacity; C3 and C4 correspond to the maximum CPU frequency and transmission power of the mobile terminal UD; C5 ensures that the end-to-end delay meets the service delay requirements; in (2) and (6), and , and There is a one-to-one correspondence between t Substitution , equivalently (P1) is expressed as: (14)。 8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the mobile service edge collaborative offloading method as described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the mobile service edge collaborative offloading method as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the mobile service edge collaborative offloading method as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
End-edge collaborative federation learning optimization method based on edge calculation
CN112565331A
Task unloading method and device
CN113918240A
