Time-sensitive task-oriented heterogeneous resource adaptation method for space-ground convergence network
By using the comprehensive service cost index function and the directed acyclic graph scheduling scheme in the space-earth convergence network, the allocation of computing resources is optimized, the problem of computing offloading of time-sensitive tasks in a heterogeneous resource environment is solved, and low latency and efficient resources are achieved. use.
Patent Information
- Application Number
- CN202410822544.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-10
AI Technical Summary
In space-terrestrial convergence networks, the computational offloading problem of time-sensitive tasks fails to effectively consider the heterogeneity of heterogeneous resources and the dynamics of multi-satellite topology, resulting in resource waste and high latency.
Adopt the heterogeneous resource adaptation method of space and earth fusion network for time-sensitive tasks, determine the task offloading sequence through the comprehensive service cost index function, design the subtask scheduling scheme of directed acyclic graph, optimize the allocation of computing resources, and ensure the optimal offloading path and Hysteresis offloading path, combined with Lagrangian algorithm to optimize computing resource allocation.
It effectively reduces the delay and cost of computing offloading, improves resource utilization, and ensures the timely completion of time-sensitive tasks and the stable transmission of resources.
Smart Images

Figure CN118632304A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of satellite communication in a space-ground fusion network, and in particular relates to a space-ground fusion network heterogeneous resource adaptation method for time-sensitive tasks. Background Art
[0002] With the continuous development of satellite communication technology, in response to the problems of narrow coverage and low communication rate of traditional network architecture, an emerging network architecture, namely the space-ground fusion network, has been proposed for future 6G communication scenarios. As a highly innovative network architecture, the space-ground fusion network is being widely deployed and applied around the world. The space-ground fusion network mainly includes computing and communication networks at multiple location levels such as space-based satellites, air-based aircraft, and ground computing stations. Its core lies in the integration and development of heterogeneous networks. The space-ground fusion network currently envisioned can achieve full communication coverage of the global ground network through the deployment of multi-orbit satellites and the cooperation of various IoT devices, thereby realizing barrier-free high-speed information transmission around the world, effectively solving the problems of difficult communication and poor service in remote areas.
[0003] In the space-ground integrated network computing and communication scenario, LEO satellite networks usually serve as a supplement to ground networks, and the calculation of user tasks often requires the mutual cooperation of computing nodes in various domains within the space-ground integrated network. Compared with traditional ground networks, edge computing nodes in space-ground integrated networks have heterogeneous characteristics, and have obvious differences in resource types, resource costs, and resource quality. Therefore, how to optimally match differentiated business needs with heterogeneous computing nodes is an issue that needs to be studied urgently. In addition, the time-sensitive tasks generated by users can often be split into multiple subtasks with a sequential relationship. How to select the best computing offloading path for these subtasks to ensure that time-sensitive tasks can be completed within the specified deadline at the lowest cost is also one of the key issues in this chapter.
[0004] At present, the research on computing offloading in heterogeneous resource network environments basically discusses user task offloading, and less consideration is given to time-sensitive tasks and the sequential dependencies between their subtasks. Secondly, other studies often assume that there is only one visible satellite covering the space-based satellite and that it can always be directly connected to the cloud server. This assumption does not take into account the multi-satellite topological dynamics of the space-based satellite network, and is not suitable for the current giant constellation scenario and the actual situation that the links between satellites and core networks are intermittent. In addition, other research works generally only perform task offloading between edge servers, and the research on offloading between edge servers and remote servers is not sufficient, resulting in a waste of resources within the network. At the same time, the trade-off between end-to-end latency and energy consumption in heterogeneous computing offloading systems is rarely considered. Summary of the invention
[0005] To solve the above problems, the present invention provides a space-ground fusion network heterogeneous resource adaptation method for time-sensitive tasks, which can effectively reduce the total computing offloading delay and computing offloading cost, and improve the overall resource utilization of the system.
[0006] A method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks includes the following steps:
[0007] S1: Obtain the unloading order of a series of time-sensitive tasks randomly generated by each user according to the comprehensive service cost indicator function; wherein each time-sensitive task corresponds to a directed acyclic graph, and each node of each directed acyclic graph is composed of multiple subtasks split from the time-sensitive task;
[0008] S2: Obtain the optimal unloading path and delayed unloading path of each subtask in each time-sensitive task from each directed acyclic graph, wherein for each directed acyclic graph, the optimal unloading path includes the entry node and the exit node of the directed acyclic graph, and the subtasks corresponding to the nodes on the optimal unloading path are executed first, and the subtasks corresponding to the nodes on the delayed unloading path are executed after the optimal unloading path is executed;
[0009] S3: Taking minimizing the computing offloading cost as the objective function, the computing resources of the space-ground fusion network are allocated to each subtask in turn according to the offloading order of all time-sensitive tasks, the optimal offloading path of each subtask of each time-sensitive task, and the delayed offloading path. The computing resources include space-based edge computing nodes, air-based edge computing nodes, local computing nodes, and cloud computing nodes, and all entry nodes and exit nodes on the optimal offloading path are executed on the local computing nodes.
[0010] Furthermore, the order of unloading a series of time-sensitive tasks randomly generated by each user is obtained according to the comprehensive service cost indicator function:
[0011] Assume that there are N users in the local computing area. A series of time-sensitive tasks randomly generated by N users can be decomposed into multiple subtasks with sequential succession relationships. Let U = {u1,u2,...,u n ,...,u N} represents the user set, n=1,2,...,N, the nth user u n The generated time-sensitive task set For user u n The i-th time-sensitive task generated, i=1,2,...,q n ,q n For user u n The total number of time-sensitive tasks generated; user u n The i-th time-sensitive task Corresponding subtask set m is user un The i-th time-sensitive task The number of corresponding subtasks;
[0012] Get the comprehensive service cost index function F(app j )as follows:
[0013]
[0014] in, F(app j ) is the comprehensive service cost index function of the jth time-sensitive task, Δ(app j ) is the maximum tolerable delay of the jth time-sensitive task, T(app j ) represents the estimated processing time of the jth time-sensitive task, R(app j ) is the amount of resources required to process the jth time-sensitive task;
[0015] The comprehensive service cost index function F(app j ) in ascending order to obtain the unloading order of all time-sensitive services, among which the comprehensive service cost index function F(app j ) is smaller, the corresponding time-sensitive tasks will be given priority.
[0016] Furthermore, the optimal offloading path and delayed offloading path for any time-sensitive task are obtained as follows:
[0017] Traverse the nodes of the directed acyclic graph corresponding to the current time-sensitive task in reverse order, and take each node as the current node to perform the following steps:
[0018] S21: Determine whether the current node is an entry node or an exit node. If yes, add the current node to the optimal unloading path, and the entry node is the starting node of the optimal unloading path, and the exit node is the end node of the optimal unloading path. If no, proceed to step S22;
[0019] S22: Determine whether the subsequent node of the current node is a node on the optimal unloading path. If yes, proceed to step S23. If no, the current node is a node on the delayed unloading path, wherein the subsequent node of the current node satisfies: being a child node of the current node in the directed acyclic graph and being arranged before the current node in the reverse order traversal;
[0020] S23: Compare the cost values of all nodes connected to the subsequent nodes described in step S22 in the layer to which the current node belongs in the directed acyclic graph. If yes, the current node is a node on the optimal unloading path. If no, the current node is a node on the delayed unloading path. The cost value of any node is the edge weight between it and its parent node.
[0021] Furthermore, the subtasks corresponding to the nodes on the delayed offloading path are sorted according to the cost value of the nodes corresponding to each subtask, wherein the larger the cost value, the earlier the execution order.
[0022] Furthermore, for the subtasks corresponding to the nodes on the optimal offloading path, the execution order of each subtask is the order of the subtasks on the optimal offloading path.
[0023] Furthermore, when allocating computing resources of the space-ground fusion network to any subtask, the objective function of the current subtask constructed is as follows:
[0024] min(η c T+η e E)
[0025] Where min is the minimization function, T is the unloading delay of the current subtask, E is the unloading energy consumption of the current subtask, η c is the weight of the offloading delay, η e is the weight of unloading energy consumption;
[0026] The constraints C1 to C8 of the objective function are as follows:
[0027]
[0028] Where k is the number of each subtask, k = 1, 2, ..., K, K is the total number of all subtasks, s is the number of each computing node in the computing resource, s = 1, 2, ..., S, S is the total number of all computing nodes in the computing resource, is the offloading variable of the kth subtask, where Indicates that the kth subtask is not assigned to the sth computing node. Indicates that the kth subtask is assigned to the sth computing node, p fk is the energy consumption required when the kth subtask is executed on the sth computing node, is the total energy consumption of the sth computing node, R u is the set maximum communication transmission rate, R s is the communication transmission rate required to offload the k-th subtask to the s-th computing node, is the computing resources required when the kth subtask is executed on the sth computing node, is the maximum computing resource of the sth computing node, is the storage resource required when the kth subtask is executed on the sth computing node, is the maximum storage resource of the sth computing node, T k is the total computation delay of the kth subtask, t kis the delay constraint of the kth subtask.
[0029] Furthermore, the solution method of the objective function of the current subtask is:
[0030] The normalized cost function is constructed as follows:
[0031] aηp c +b(1-η)p R =1
[0032] Among them, p c is the computational energy consumption of the current subtask, p R is the communication energy consumption of the current subtask, a is the normalized constant of the computing energy consumption, b is the normalized constant of the communication energy consumption, and η represents the proportionality coefficient;
[0033] According to the normalized cost function, the communication energy consumption p of the current subtask is obtained R The computing power of the current computing node to which the current subtask is assigned The relationship between them is as follows:
[0034]
[0035] Among them, k u is the energy consumption coefficient;
[0036] According to the unloading delay T of the current subtask and the communication energy consumption p R The mapping relationship between the unloading energy consumption E of the current subtask and the communication energy consumption p R The mapping relationship between them simplifies the objective function min(η of the current subtask c T+η e E), after simplification, there is only a single variable The objective function is as follows:
[0037]
[0038] Among them, B is the bandwidth of the channel occupied by the current subtask transmission, N d is the size of the noise in the transmission process of the current subtask, ω is the CPU cycle of the current computing node, and C is the amount of data of the subtask that has been unloaded to the current computing node;
[0039] The Lagrangian algorithm is used to solve the problem with only a single variable. The objective function determines the computing resources allocated to the current subtask.
[0040] Furthermore, after the objective function of step S3 determines the allocation of computing resources of the space-ground fusion network to each subtask, the following operations are performed to adjust the allocation scheme:
[0041] When offloading each subtask to the corresponding computing resource, determine whether the computing delay of the subtask is greater than the communication delay of the subsequent subtask. If so, offload the subsequent subtask and the subtask to the same computing resource for computing offloading.
[0042] Beneficial effects:
[0043] 1. The present invention provides a method for adapting heterogeneous resources of a space-ground fusion network for time-sensitive tasks. First, the optimal task offloading order is determined according to a comprehensive service cost indicator function; secondly, a sequential subtask scheduling scheme based on a directed acyclic graph is designed to find the optimal offloading path and delayed offloading path of each subtask; furthermore, the present invention not only considers the priority sorting of time-sensitive tasks, but also introduces an objective function to optimize the selection of computing resource nodes in terms of comprehensive delay and energy consumption in view of the heterogeneity of space-ground fusion network resources, and obtains the optimal allocation scheme of computing resources; it can be seen that the present invention can effectively reduce the total computing offloading delay and computing offloading cost, and improve the overall resource utilization of the system.
[0044] 2. The present invention provides a method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks. The subtasks corresponding to the entry node and the subtasks corresponding to the exit node are calculated and processed at the local node, which can ensure the stable transmission of the preliminary calculation results and the timely return of the final calculation results to reduce communication losses.
[0045] 3. The present invention provides a method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks, which transforms the dual-variable objective function into a single-variable minimization function value problem under certain constraints, so that only the server computing power exists in the offloading selection sub-problem. As the only variable, the subsequent optimization problem solving process is greatly simplified. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A flow chart of a method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks provided by the present invention.
[0047] Figure 2 This is a model diagram of a heterogeneous edge computing scenario in a space-ground fusion network provided by the present invention.
[0048] Figure 3 This is a two-layer nested task relationship model diagram provided by the present invention.
[0049] Figure 4 This is a comparison chart of the overall latency of edge computing offloading under different numbers of subtasks for different algorithms proposed in the embodiments of the present invention.
[0050] Figure 5This is a comparison chart of the overall latency of edge computing offloading under different numbers of servers for different algorithms proposed in the embodiments of the present invention.
[0051] Figure 6 This is a comparison chart of the overall delay of edge computing offloading under different delay tolerances of different algorithms proposed in the embodiments of the present invention.
[0052] Figure 7 This is a comparison chart of the overall cost of edge computing offloading under different experimental tolerances of different algorithms proposed in the embodiments of the present invention. DETAILED DESCRIPTION
[0053] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0054] In order to integrate multi-region heterogeneous computing nodes to solve the technical problems of difficult scheduling of heterogeneous resources, difficult sequential acceptance of subtasks of user tasks, and complex selection of task computing offloading, the present invention provides a method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks. First, the user schedules tasks with latency and dependency awareness according to the task type and local resource status, and prioritizes the user subtasks based on a directed acyclic graph; secondly, based on the existing task priority queue and according to the heterogeneous network task offloading algorithm based on multi-objective decision-making, the heterogeneity of network computing node resources is considered, and the device cost is introduced to increase the priority of the task. Weight factors are used to assign different weights to different devices, perform weighted substitution on the computing and communication costs of heterogeneous nodes, and use the Lagrangian algorithm to solve the task computing offloading decision problem, and complete the task minimum cost offloading decision for the MEC server; secondly, user tasks perform local calculations according to the computing offloading strategy, or upload tasks to space-based edge computing nodes or air-based edge computing nodes through communication links; space-based edge computing nodes can directly process computing tasks, or forward tasks to cloud computing; finally, after each edge computing node completes task migration and task processing, it returns the task execution results to the ground user according to the shortest route.
[0055] Specifically, Figure 1 As shown, a method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks includes the following steps:
[0056] S1: Obtain the unloading order of a series of time-sensitive tasks randomly generated by each user according to the comprehensive service cost indicator function; each time-sensitive task corresponds to a directed acyclic graph (DAG), and each node of each DAG is composed of multiple subtasks split from the time-sensitive task;
[0057] like Figure 2As shown in the figure, the scenario of the space-ground fusion network model mainly includes multiple active users in the region, space-based and air-based computing platforms, cloud computing centers, etc. These users randomly generate a series of time-sensitive tasks, and these time-sensitive tasks can be decomposed into multiple subtasks with a sequential relationship. Each subtask can be processed locally, or it can be offloaded to the edge server or cloud server through the satellite-to-ground, air-to-ground, and intersatellite links, and the calculation of a user task can be completed through the collaboration of heterogeneous computing nodes. Compared with the space-based computing platform, the movement speed of IoT devices is much slower. The relative movement of other computing platforms and the space-based computing platform mainly depends on the movement of the space-based computing platform. Therefore, other devices can be regarded as quasi-static devices, keeping their relative positions unchanged. Therefore, in the research process, only the relative movement between space-based satellites and between satellites and the ground needs to be considered, thereby weakening the impact of network dynamics on the computing offloading strategy.
[0058] It should be noted that since the air-based computing platform and the space-based computing platform work in the V band and the Ka band respectively, there is no inter-layer interference. The air-based computing platform and the space-based computing platform transmit various necessary information including their own communication and computing resource occupancy through uplinks and downlinks. IoT devices in the area covered by these space-based or air-based aircraft send task computing requirements or transmit computing power data to visible space-based or air-based aircraft through air-ground transmission links and ground-ground transmission links. The space-based computing platform and the air-based computing platform transmit the information they collect to each other through intersatellite communication links and air-space links, realize information interaction within and between layers, and build a heterogeneous air-space network that can realize resource interaction perception.
[0059] Specifically, the order of unloading a series of time-sensitive tasks randomly generated by each user is obtained according to the comprehensive service cost indicator function as follows:
[0060] Assume that there are N users in the local computing area. A series of time-sensitive tasks randomly generated by N users can be decomposed into multiple subtasks with sequential succession relationships. Let U = {u1,u2,...,u n ,...,u N} represents the user set, n=1,2,...,N, the nth user u n The generated time-sensitive task set For user u n The i-th time-sensitive task generated, i=1,2,...,q n ,q n For user u n The total number of time-sensitive tasks generated; user u n The i-th time-sensitive task Corresponding subtask set m is user u nThe i-th time-sensitive task The number of corresponding subtasks;
[0061] Get the comprehensive service cost index function F(app j )as follows:
[0062]
[0063] in, F(app j ) is the comprehensive service cost index function of the jth time-sensitive task, Δ(app j ) is the maximum tolerable delay of the jth time-sensitive task, T(app j ) represents the estimated processing time of the jth time-sensitive task, R(app j ) is the amount of resources required to process the jth time-sensitive task;
[0064] The comprehensive service cost index function F(app j ) in ascending order to obtain the unloading order of all time-sensitive services, among which the comprehensive service cost index function F(app j ) is smaller, the corresponding time-sensitive tasks will be given priority.
[0065] It can be seen that in step S1, the MEC server aims to minimize the task processing cost, and combines the task deadline delay and the directed acyclic graph to judge and sort the task priority, and decide the unloading order of user tasks to be processed locally or migrated to the edge computing node for processing; at the same time, at the beginning of each time slot, the system arranges all internal time-sensitive tasks in ascending order according to the service cost indicator function, and stores them in the time-sensitive task queue in order to prepare for the subsequent time-sensitive task calculation unloading work. After the time-sensitive task calculation unloading in each time slot is completed, the system makes real-time dynamic adjustments to the queue content, including the queue position of low-priority urgent tasks, the rescheduling of timed tasks, and the reasonable allocation of reserved space. Secondly, the system queue is designed with reserved queue space, which is generated after the current time-sensitive task is added to the queue after priority sorting, and is used to handle sudden urgent time-sensitive tasks; when a high-priority service that needs to be processed immediately appears in the queue, this part of the reserved resources can be used to timely unload the task calculation to ensure that the time-sensitive task can be completed in time.
[0066] It should be noted that the directed acyclic graph corresponding to the time-sensitive task is constructed as follows:
[0067] First, the priority queues of various time-sensitive tasks are sorted according to the final deadline delays of the time-sensitive tasks generated by the users, and the first-level task relationship queue is constructed according to the deadline delay order. The computation offloading work of the time-sensitive tasks is performed in sequence from the head end of the queue. Then, for each subtask with a sequential succession relationship divided by each time-sensitive task, the second-level subtask relationship diagram is constructed with reference to the directed acyclic graph, and the specific operation steps are designed as follows: take the entry subtask as the starting subtask, construct the first-level subtask node layer and first perform computational offloading on it; then set the subtasks that are adjacent to it in sequence as subsequent nodes and place them after the entry subtask node to construct the second-level subtask node layer of the DAG; set the connection links according to the continuity between the two-level subtasks, and use the amount of data interacted between the two-level subtasks as the link weight; similarly, set the subtasks that are adjacent to the second-level subtask nodes and are not in the first level as subsequent nodes and place them after the second-level subtask nodes to construct the third-level subtask node layer of the DAG; and so on, gradually construct other subtask layer nodes of the directed acyclic graph until the exit subtask of the time-sensitive task is traversed and it is used as the bottom-level node of the graph, thus forming a directed acyclic graph of user subtasks. Figure 3 As shown, Figure 3 The lower part shows a complete directed acyclic graph consisting of time-sensitive task subtasks. Node v1 represents the entry subtask node of time-sensitive task app2, that is, time-sensitive task app2 starts to execute from this subtask, and according to the link arrow sequence, the next step is to select one of the nodes v2 and v3 in the second layer to continue computing and unloading. By analogy, each layer completes the computing process for at least one of the subtask nodes, and finally gradually completes the computing process to the exit subtask node v9, and the computing work of the entire time-sensitive task app2 is completed. Among them, the link weight between node v1 and node v2 is 28, which means that the amount of data exchanged between the two nodes is 28 bits.
[0068] S2: Obtain the optimal unloading path and delayed unloading path of each subtask in each time-sensitive task from each directed acyclic graph, wherein for each directed acyclic graph, the optimal unloading path includes the entry node and the exit node of the directed acyclic graph, and the subtasks corresponding to the nodes on the optimal unloading path are executed first, and the subtasks corresponding to the nodes on the delayed unloading path are executed after the optimal unloading path is executed;
[0069] Among them, the method for obtaining the optimal offloading path and delayed offloading path of any time-sensitive task is:
[0070] Traverse the nodes of the directed acyclic graph corresponding to the current time-sensitive task in reverse order, and take each node as the current node to perform the following steps:
[0071] S21: Determine whether the current node is an entry node or an exit node. If yes, add the current node to the optimal unloading path, and the entry node is the starting node of the optimal unloading path, and the exit node is the end node of the optimal unloading path. If no, proceed to step S22;
[0072] S22: Determine whether the subsequent node of the current node is a node on the optimal unloading path. If yes, proceed to step S23. If no, the current node is a node on the delayed unloading path, wherein the subsequent node of the current node satisfies: being a child node of the current node in the directed acyclic graph and being arranged before the current node in the reverse order traversal;
[0073] For example, suppose the current node is Figure 3 If V6 in the example, the subsequent node of V6 is V8, and V8 is a node on the optimal unloading path, then step S23 is executed; assuming that the current node is Figure 3 If V4 is in the unloading path, the subsequent node of V4 is V7. If V7 is not a node on the optimal unloading path, V4 is a node on the delayed unloading path.
[0074] S23: Compare the cost values of all nodes connected to the subsequent nodes described in step S22 in the layer to which the current node belongs in the directed acyclic graph, and determine whether the cost value of the current node is the minimum. If so, the current node is a node on the optimal unloading path; if not, the current node is a node on the lagging unloading path; wherein the cost value of any node is the edge weight between it and its parent node.
[0075] Assuming that the current node is V6, and its subsequent node is node V8 on the optimal unloading path, it is necessary to determine the cost values of V5 and V6 that belong to the same layer and are connected to V8, wherein the cost value of V5 is 18, and the cost value of V6 is 16, so the current node V6 is a node on the optimal unloading path; similarly, assuming that the current node is V5, and its subsequent node is node V8 on the optimal unloading path, it is necessary to determine the cost values of V5 and V6 that belong to the same layer and are connected to V8, wherein the cost value of V5 is 18, and the cost value of V6 is 16, so the current node V5 is a node on the lagging unloading path; it can be seen that when the subsequent node of the current node is a node on the optimal unloading path, the current node itself is not necessarily a node on the optimal unloading path;
[0076] like Figure 3 In the directed acyclic graph shown, the optimal unloading path obtained after executing steps S21 to S23 is V1-V3-V6-V8-V9.
[0077] It should be noted that the subtasks corresponding to the nodes on the delayed unloading path are temporarily put on hold until all the subtasks on the optimal unloading path have completed the calculation and unloading. Then, they are sorted according to the cost values of the nodes corresponding to the subtasks on the delayed unloading path. The larger the cost value, the earlier the execution order. For the subtasks corresponding to the nodes on the optimal unloading path, the execution order of each subtask is the order of their order on the optimal unloading path.
[0078] It should be noted that the subtask nodes that have completed traversal can be hidden from the directed acyclic graph, and then the algorithm scheduling of the predecessor subtask will continue to be executed until the entry subtask node also completes the traversal, proving that all subtask nodes on the optimal offloading path have been executed for calculation offloading scheduling. At this time, the first-level time-sensitive task priority scheduling algorithm is used to determine whether there are still sufficient resources to execute the subtasks corresponding to the nodes on the delayed offloading path that have not been executed and are located in the waiting queue.
[0079] S3: Taking minimizing the computing offloading cost as the objective function, the computing resources of the space-ground fusion network are allocated to each subtask in turn according to the offloading order of all time-sensitive tasks, the optimal offloading path of each subtask of each time-sensitive task, and the delayed offloading path. The computing resources include space-based edge computing nodes, air-based edge computing nodes, local computing nodes, and cloud computing nodes, and all entry nodes and exit nodes on the optimal offloading path are executed on the local computing nodes.
[0080] For example, user tasks perform local calculations according to the calculation offloading strategy, or upload tasks to space-based edge computing nodes or air-based edge computing nodes through communication links; space-based edge computing nodes can directly process computing tasks or forward tasks to cloud computing. After each edge computing node completes task migration and task processing, it returns the task execution results to the ground user according to the shortest route.
[0081] It should be noted that due to the differences in computing power and communication costs between different computing platforms in heterogeneous networks, the present invention sets different network parameters for heterogeneous networks, so that different computing platforms have obvious distinctions, providing guidance and assistance for the design and optimization of subsequent computing offloading strategies. In view of the unequal resource costs of various devices in heterogeneous networks, the present invention introduces the device attribute matrix A to construct the optimization problem, which includes the known computing power of the device (such as server CPU cycle ω and computing power n f ), energy consumption coefficient k u , the communication bandwidth B between platforms and within the platform, and the distance d between devices obtained in real time through the interaction of links between platforms, etc.
[0082] Specifically, when allocating computing resources of the space-ground fusion network to any subtask, the objective function of the current subtask constructed is as follows:
[0083] min(η c T+η e E)
[0084] Where min is the minimization function, T is the unloading delay of the current subtask, E is the unloading energy consumption of the current subtask, η c is the weight of the offloading delay, η e is the weight of unloading energy consumption;
[0085] The constraints C1 to C8 of the objective function are as follows:
[0086]
[0087] Where k is the number of each subtask, k = 1, 2, ..., K, K is the total number of all subtasks, s is the number of each computing node in the computing resource, s = 1, 2, ..., S, S is the total number of all computing nodes in the computing resource, is the offloading variable of the kth subtask, where Indicates that the kth subtask is not assigned to the sth computing node. Indicates that the kth subtask is assigned to the sth computing node, p fk is the energy consumption required when the kth subtask is executed on the sth computing node, is the total energy consumption of the sth computing node, R u is the set maximum communication transmission rate, R s is the communication transmission rate required to offload the k-th subtask to the s-th computing node, is the computing resources required when the kth subtask is executed on the sth computing node, is the maximum computing resource of the sth computing node, is the storage resource required when the kth subtask is executed on the sth computing node, is the maximum storage resource of the sth computing node, T k is the total computation delay of the kth subtask, t k is the delay constraint of the kth subtask.
[0088] It should be noted that constraint C1 indicates that any subtask has only two options: offloading or not. Constraint C2 indicates that each subtask can only be offloaded and exist on a certain edge computing server at the same time. Constraint C3 indicates that the total energy consumption of subtasks executed and processed on a certain node does not exceed the maximum total energy that the node can load. Constraint C4 indicates that the subtask transmission rate is not less than the transmission threshold. Constraint C5 indicates that the total computing amount of subtasks executed and processed on a certain node does not exceed the maximum computing capacity that the node can load. Constraint C6 indicates that the storage space occupied by each task on a certain node does not exceed the total storage capacity of the node. Constraint C7 indicates that the completion time of the subtask must not exceed its deadline delay. Constraint C8 is the cost weight ratio.
[0089] It should be noted that the above optimization problem is an NP-hard problem and cannot be solved directly. Therefore, the present invention first proposes a delay and dependency-aware task priority sorting algorithm to solve this optimization problem. Specifically, the solution method for the objective function of the current subtask is:
[0090] In order to achieve the optimal balance between computational cost and communication cost during computation offloading, the normalized cost function is constructed as follows:
[0091] aηp c +b(1-η)p R =1
[0092] Among them, p c is the computational energy consumption of the current subtask, p R is the communication energy consumption of the current subtask, a is the normalized constant of the computing energy consumption, b is the normalized constant of the communication energy consumption, and η represents the proportionality coefficient;
[0093] According to the normalized cost function, the communication energy consumption p of the current subtask is obtained R The computing power of the current computing node to which the current subtask is assigned The relationship between them is as follows:
[0094]
[0095] Among them, k u is the energy consumption coefficient;
[0096] According to the unloading delay T of the current subtask and the communication energy consumption p R The mapping relationship between the unloading energy consumption E of the current subtask and the communication energy consumption p R The mapping relationship between them simplifies the objective function min(η of the current subtask c T+η e E), after simplification, there is only a single variable The objective function is as follows:
[0097]
[0098] Among them, B is the bandwidth of the channel occupied by the current subtask transmission, N d is the size of the noise in the transmission process of the current subtask, ω is the CPU cycle of the current computing node, and C is the amount of data of the subtask that has been unloaded to the current computing node;
[0099] The Lagrangian algorithm is used to solve the problem with only a single variable. The objective function determines the computing resources allocated to the current subtask.
[0100] It can be seen that the present invention transforms the dual-variable objective function into a single-variable minimization function value problem under certain constraints. The offloading selection subproblem is a typical convex optimization problem. After the above operation, there is only one variable in the problem: server computing capacity. The subsequent optimization problem solving process is greatly simplified, and the common Lagrangian algorithm can be used to solve the minimization problem.
[0101] It should be noted that after the objective function of step S3 determines the computing resources of the space-ground fusion network to be allocated to each subtask, the following operations are performed to adjust the allocation plan: when unloading each subtask to the corresponding computing resource, determine whether the computing delay of the subtask is greater than the communication delay of the subsequent subtask. If so, the subsequent subtask is unloaded to the same computing resource as the subtask for computing offloading.
[0102] In summary, the present invention provides a method for adapting heterogeneous resources of a space-ground fusion network for time-sensitive tasks. First, a delay- and dependency-aware task priority sorting algorithm is proposed. The deadline delay of the time-sensitive task and the sequential dependency between subtasks are comprehensively considered, and nested scheduling of task priorities is realized based on a directed acyclic graph (DAG). That is, after multiple user tasks are sorted by their deadline delays for the first-level priority, a directed acyclic graph is constructed for the subtasks that can be split and have sequential dependencies, with the weighted cost of subtask offloading as the edge weight, and the optimal subtask offloading priority order is obtained according to the minimum weighted path; then, based on the existing task priority queue, a heterogeneous network task offloading method based on multi-objective decision-making is proposed, considering the heterogeneity of network computing node resources, by introducing a device cost weighting factor, giving different weights to different devices, weighted permutation of heterogeneous node computing and communication costs, and using the Lagrangian algorithm to solve the task computing offloading decision problem, and complete the task minimum cost offloading decision for MEC servers.
[0103] Further, the present invention is designed as follows Figure 2The edge computing scenario of the space-ground fusion network shown in the figure considers deploying 10 user devices that can randomly generate time-sensitive tasks in a ground area of 1km*1km. This section assumes that each time-sensitive task can be split into the same number of subtasks for execution. Multiple edge computing platforms with different distances and computing capabilities are set up respectively, including 72 full-coverage LEO satellites 600km away from the ground, air-based aircraft 10km away from the ground and with more than 70% coverage time throughout the day, and ground computing centers that need to be forwarded through satellite communications. They can all provide edge computing services for user devices. By adjusting the number of tasks and the number of servers, the algorithm proposed in the present invention and other common offloading strategy algorithms are applied to this scenario, and the overall delay and cost required for edge computing are compared. Each experimental result is obtained after 300 repeated tests.
[0104] Figure 4 The relationship between the total delay of time-sensitive task processing and the number of subtasks under the MDSCO algorithm proposed in this invention is shown, and compared with the MPTO algorithm and the traditional greedy algorithm. Among them, the increase in the number of time-sensitive tasks or the increase in the number of subtasks that can be split into time-sensitive tasks will lead to an increase in the total number of subtasks in the same period. Figure 4 From the curve trend in , we can see that with the increase in the number of subtasks, the total delay required for time-sensitive task processing under each algorithm will increase accordingly. This is because with the increase in the number of subtasks, the various resources required for time-sensitive task calculations will increase. Under certain computing and communication capabilities, the time-sensitive task processing requirements can only be met by extending the service time. By comparing the simulation curves of the three algorithms, it can be found that the offloading algorithm proposed in this paper has a significant reduction in the delay of time-sensitive task processing compared to the traditional greedy algorithm, and has a slight advantage over the MPTO algorithm. This is because the offloading algorithm proposed in this chapter performs multiple operations in the priority sorting of time-sensitive tasks to ensure that each subtask can be processed in order according to the degree of urgency and without conflict; at the same time, compared with the other two algorithms, the multi-dimensional service cost optimization MEC offloading algorithm can perform parallel offloading calculations on subtasks, which enables the originally independent communication delay and computing delay to be processed simultaneously, which can effectively reduce the total delay of time-sensitive task processing.
[0105] Figure 5 The relationship between the total computing offloading latency of time-sensitive tasks and the number of MEC servers under the three algorithms is shown. MEC servers include multi-domain heterogeneous servers, and the number of each type of server increases with the total number of servers at a fixed relative ratio. Figure 5From the curve in , we can see that as the number of MEC servers increases, the total latency of time-sensitive task computing offloading will gradually decrease. However, after the number of MEC servers reaches a certain level, the total computing offloading latency tends to stabilize. This is caused by the sequential succession relationship between the subtasks of the time-sensitive task. Although there are sufficient idle resources in the entire system, the subsequent subtasks cannot continue to offload computing at the same time, resulting in the total latency being limited to a certain value. At the same time, compared with the other two algorithms in the figure, the MDSCO algorithm proposed in this chapter still maintains the advantage of lower computing offloading latency under different server numbers.
[0106] Figure 6 The figure shows the changes in the total delay of time-sensitive task computation offloading after the execution of the three algorithms under different delay tolerance conditions. It can be seen from the black line in the figure that under low delay tolerance conditions, the traditional greedy algorithm is difficult to meet the deadline delay requirements of time-sensitive tasks, which will lead to a high abandonment rate of time-sensitive tasks. Observing the entire figure, it can be seen that with the increase of delay tolerance, the total delay of computation offloading of each algorithm has increased to varying degrees. This is because under low delay tolerance requirements, many delay-sensitive tasks are forced to be abandoned, and the number of executable time-sensitive tasks decreases. At the same time, the algorithm chooses to use communication links less frequently to perform computation offloading, and the communication delay is reduced, resulting in a decrease in the total delay of computation offloading. Higher delay tolerance gives each algorithm a wider scheduling option, and it can use idle communication resources to offload subtasks to other MEC servers for computational processing, thereby giving full play to the superiority of the algorithm and better meeting the execution requirements of each time-sensitive task. However, this is accompanied by an increase in communication delay, which leads to an increase in the total delay of computation offloading. Combined with Figure 7 The changes in the total cost of offloading time-sensitive tasks after the execution of the three algorithms under different delay tolerance conditions are shown. Although the total delay of offloading time-sensitive tasks in the system increases under high delay tolerance requirements, the total cost shows a downward trend in the long run. This is because more cost-effective computing resources can be selected to process tasks, which reduces the energy consumption of task processing while fully balancing computing resources and communication resources to ensure a high execution rate of time-sensitive tasks. At the same time, no matter in Figure 6 Still in Figure 7 In the results, the MDSCO algorithm shows better algorithm performance than the other two algorithms.
[0107] Of course, the present invention may have many other embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art may certainly make various corresponding changes and modifications based on the present invention, but these corresponding changes and modifications should all fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks, characterized in that: The following steps are involved: S1: Obtain the unloading order of a series of time-sensitive tasks randomly generated by each user according to the comprehensive service cost indicator function; wherein each time-sensitive task corresponds to a directed acyclic graph, and each node of each directed acyclic graph is composed of multiple subtasks split from the time-sensitive task; S2: Obtain the optimal unloading path and delayed unloading path of each subtask in each time-sensitive task from each directed acyclic graph, wherein for each directed acyclic graph, the optimal unloading path includes the entry node and the exit node of the directed acyclic graph, and the subtasks corresponding to the nodes on the optimal unloading path are executed first, and the subtasks corresponding to the nodes on the delayed unloading path are executed after the optimal unloading path is executed; S3: Taking minimizing the computing offloading cost as the objective function, the computing resources of the space-ground fusion network are allocated to each subtask in turn according to the offloading order of all time-sensitive tasks, the optimal offloading path of each subtask of each time-sensitive task, and the delayed offloading path. The computing resources include space-based edge computing nodes, air-based edge computing nodes, local computing nodes, and cloud computing nodes, and all entry nodes and exit nodes on the optimal offloading path are executed on the local computing nodes.
2. The method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks as described in claim 1, characterized in that: The specific order of unloading a series of time-sensitive tasks randomly generated by each user is obtained according to the comprehensive service cost indicator function: Assume that there are N users in the local computing area. A series of time-sensitive tasks randomly generated by N users can be decomposed into multiple subtasks with sequential succession relationships. Let U = {u1,u2,…,u n ,…,u N } represents the user set, n=1,2,...,N, the nth user u n The generated time-sensitive task set For user u n The i-th time-sensitive task generated, i=1,2,...,q n ,q n For user u n The total number of time-sensitive tasks generated; user u n The i-th time-sensitive task Corresponding subtask set m is user u n The i-th time-sensitive task The number of corresponding subtasks; Get the comprehensive service cost index function F(app j )as follows: in, F(app j ) is the comprehensive service cost index function of the jth time-sensitive task, Δ(app j ) is the maximum tolerable delay of the jth time-sensitive task, T(app j ) represents the estimated processing time of the jth time-sensitive task, R(app j ) is the amount of resources required to process the jth time-sensitive task; The comprehensive service cost index function F(app j ) in ascending order to obtain the unloading order of all time-sensitive services, among which the comprehensive service cost index function F(app j ) is smaller, the corresponding time-sensitive tasks will be given priority.
3. The method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks as described in claim 1, characterized in that: The method for obtaining the optimal offloading path and delayed offloading path for any time-sensitive task is: Traverse the nodes of the directed acyclic graph corresponding to the current time-sensitive task in reverse order, and take each node as the current node to perform the following steps: S21: Determine whether the current node is an entry node or an exit node. If yes, add the current node to the optimal unloading path, and the entry node is the starting node of the optimal unloading path, and the exit node is the end node of the optimal unloading path. If no, proceed to step S22; S22: Determine whether the subsequent node of the current node is a node on the optimal unloading path. If yes, proceed to step S23. If no, the current node is a node on the delayed unloading path, wherein the subsequent node of the current node satisfies: being a child node of the current node in the directed acyclic graph and being arranged before the current node in the reverse order traversal; S23: Compare the cost values of all nodes connected to the subsequent nodes described in step S22 in the layer to which the current node belongs in the directed acyclic graph. If yes, the current node is a node on the optimal unloading path. If no, the current node is a node on the delayed unloading path. The cost value of any node is the edge weight between it and its parent node.
4. The method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks as claimed in claim 3, characterized in that: The subtasks corresponding to the nodes on the delayed unloading path are sorted according to the cost value of the nodes corresponding to each subtask, wherein the larger the cost value, the earlier the execution order.
5. The method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks as claimed in claim 3, characterized in that: For the subtasks corresponding to the nodes on the optimal offloading path, the execution order of each subtask is the order of the subtasks on the optimal offloading path.
6. The method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks as claimed in claim 1, characterized in that: When allocating computing resources of the space-ground fusion network to any subtask, the objective function of the current subtask constructed is as follows: min(the c T+n e E) Where min is the minimization function, T is the unloading delay of the current subtask, E is the unloading energy consumption of the current subtask, η c is the weight of the offloading delay, η e is the weight of unloading energy consumption; The constraints C1 to C8 of the objective function are as follows: C7:T k ≤t k C8:h c +n e =1 Where k is the number of each subtask, k = 1, 2, ..., K, K is the total number of all subtasks, s is the number of each computing node in the computing resource, s = 1, 2, ..., S, S is the total number of all computing nodes in the computing resource, is the offloading variable of the kth subtask, where Indicates that the kth subtask is not assigned to the sth computing node. Indicates that the kth subtask is assigned to the sth computing node, p fk is the energy consumption required when the kth subtask is executed on the sth computing node, is the total energy consumption of the sth computing node, R u is the set maximum communication transmission rate, R s is the communication transmission rate required to offload the k-th subtask to the s-th computing node, is the computing resources required when the kth subtask is executed on the sth computing node, is the maximum computing resource of the sth computing node, is the storage resource required when the kth subtask is executed on the sth computing node, is the maximum storage resource of the sth computing node, T k is the total computation delay of the kth subtask, t k is the delay constraint of the kth subtask.
7. The method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks as claimed in claim 6, characterized in that: The solution method for the objective function of the current subtask is: The normalized cost function is constructed as follows: aip c +b(1-n)p R =1 Among them, p c is the computational energy consumption of the current subtask, p R is the communication energy consumption of the current subtask, a is the normalized constant of the computing energy consumption, b is the normalized constant of the communication energy consumption, and η represents the proportionality coefficient; According to the normalized cost function, the communication energy consumption p of the current subtask is obtained R The computing power of the current computing node to which the current subtask is assigned The relationship between them is as follows: Among them, k u is the energy consumption coefficient; According to the unloading delay T of the current subtask and the communication energy consumption p R The mapping relationship between the unloading energy consumption E of the current subtask and the communication energy consumption p R The mapping relationship between them simplifies the objective function min(η of the current subtask c T+η e E), after simplification, there is only a single variable The objective function is as follows: Among them, B is the bandwidth of the channel occupied by the current subtask transmission, N d is the size of the noise in the transmission process of the current subtask, ω is the CPU cycle of the current computing node, and C is the amount of data of the subtask that has been unloaded to the current computing node; The Lagrangian algorithm is used to solve the problem with only a single variable. The objective function determines the computing resources allocated to the current subtask.
8. The method for adapting heterogeneous resources in a space-ground fusion network for time-sensitive tasks as claimed in claim 1, characterized in that: After determining the allocation of computing resources of the space-ground fusion network to each subtask through the objective function of step S3, the following operations are performed to adjust the allocation scheme: When offloading each subtask to the corresponding computing resource, determine whether the computing delay of the subtask is greater than the communication delay of the subsequent subtask. If so, offload the subsequent subtask and the subtask to the same computing resource for computing offloading.
Citation Information
Cited By
Multi-target constrained aerospace heterogeneous computing power network scheduling method and system
CN122332137A
