Cloud edge-end cooperative computing unloading method and device, electronic equipment and storage medium

By building a cloud-edge-end collaboration system model and using graph neural networks and reinforcement learning methods, the task offloading strategy is optimized, and the problem of IoT device calculation offloading under the cloud-edge-end collaboration architecture is solved under the conditions of task dependency and resource constraints under the cloud-edge-end collaboration architecture. , achieves the effect of minimizing average energy consumption and maximizing system benefits.

CN118972899AActive Publication Date: 2024-11-15SOUTH CHINA UNIV OF TECH

Patent Information

Application Number
CN202411258161.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-11-15
Estimated Expiration
2044-09-09

AI Technical Summary

Technical Problem

Under the cloud-edge-end collaboration architecture, the existing technology fails to effectively consider the dependencies between tasks, resulting in the difficulty of optimizing the computing and offloading strategies of IoT devices when executing complex applications, and cannot meet resource-intensive and delay-sensitive types when executing complex applications. Application requirements, especially in scenarios where multiple IoT devices have task dependencies, how to minimize average energy consumption and maximize system benefits is a challenge.

Method used

By building a cloud-edge-end collaborative system model, using graph neural networks and reinforcement learning methods to obtain task offload strategies, optimize task offload decisions, consider task dependencies and communication costs, and minimize the average energy consumption of IoT devices. The specific steps include establishing a task dependency model, communication model and computing model, using directed acyclic graph to represent task dependencies, defining optimization goals and constraints, and obtaining task offloading strategies through graph neural networks.

Benefits of technology

It realizes effective scheduling under the cloud-edge-end collaboration architecture under the conditions of resource constraints, shortens the overall execution time, improves system throughput, and reduces the IoT device's default on meeting the deadline Average energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972899A_ABST
    Figure CN118972899A_ABST
Patent Text Reader

Abstract

The invention relates to a cloud-side-end cooperative computing unloading method and device, electronic equipment and a storage medium, and the method comprises the steps: building a system model: building a cloud-side-end cooperative system model which comprises a plurality of IoT devices, an edge server and a remote cloud server, and the system model comprises a task dependence model, a communication model and a computing model; problem formulation: constructing an optimization target of a task unloading decision and a corresponding constraint condition thereof, wherein the optimization target is to minimize the average energy consumption of equipment in the system; and calculation unloading: obtaining a task unloading strategy by using a graph neural network and a reinforcement learning method, and realizing unloading scheduling of cloud edge-end cooperation, and the unloading scheduling is carried out according to time slots. According to the method, in a scene with unknown sub-task information, a graph neural network and a reinforcement learning method are utilized to schedule a plurality of tasks with a dependency relationship in each time slot to obtain a task unloading strategy, so that the average energy consumption of IoT equipment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and more specifically, to a cloud-edge-end collaborative computing offloading method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of mobile communications and IoT technologies, the demand for smart mobile devices has surged, especially for computing-intensive tasks such as augmented reality, virtual reality, and real-time online games. At the same time, the types and number of IoT devices have also increased dramatically, such as wearable devices and smart cars. However, these developments not only put higher demands on the computing power of IoT (Internet of Things) devices, but also pose a more severe challenge to the battery life of the devices. Limited by design size, battery life, and heat dissipation issues, the computing resources of IoT devices are limited and it is difficult to meet the increasingly complex application and service requirements.

[0003] Currently, cloud computing and edge computing are both effective paradigms for solving the computing and storage needs of IoT devices. Cloud computing provides a large amount of computing and storage capabilities in cloud data centers through centralized resource deployment, enabling IoT devices to connect through the operator's core network and the Internet. However, since cloud data centers are usually geographically far away from IoT devices, high communication latency results, which is often unacceptable for resource-intensive and latency-sensitive IoT applications. Edge computing, as an effective supplement to cloud computing, deploys computing resources to locations closer to IoT devices, such as smart gateways, access points, and base stations. This allows tasks that require less computing to be processed directly on edge nodes, significantly reducing communication latency and the demand for network bandwidth. Despite this, the computing power of edge servers is still limited compared to cloud data centers. When a large number of tasks are offloaded to edge servers at the same time, or the computing resource requirements of IoT device tasks exceed the processing capacity of edge servers, these edge computing nodes are difficult to meet the needs of complex applications.

[0004] Since single cloud computing or edge computing cannot solve all offloading problems, combining the rich computing resources in cloud computing with the advantages of low communication cost, short response time and strong network adaptability in edge computing, building a cloud-edge-end collaborative computing architecture has become a feasible solution. This architecture can provide better computing performance and transmission performance than single cloud computing or edge computing. However, in current research, some work does not take into account the complexity of tasks in real scenarios. When performing offloading, each computing task is only regarded as an indivisible whole, ignoring the dependencies between computing tasks, such as the literature "Chouikhi S, Esseghir M, Merghem-Boulahia L. Energy-Efficient Computation Offloading Based on Multi-Agent Deep Reinforcement Learning forIndustrial Internet of Things Systems[J]. IEEE Internet of Things Journal, 2023". Another part of the work considers the dependencies between tasks, but is usually only performed in a two-layer offloading architecture (such as a cloud-edge architecture or an edge-end architecture), without taking into account cloud-edge-end collaborative scenarios or random dependencies. For example, the paper "Wang J, Chen P, Yin Q, et al. A DRL-based algorithm for Dependent TaskOffloading in Multi-access Edge Computing[C] / / 2023 5th International AcademicExchange Conference on Science and Technology Innovation (IAECST). IEEE,2023: 38-43". Due to factors such as the complexity of computing the communication cost between subtasks, it is challenging to make offloading decisions in a cloud-edge-end architecture while considering scenarios with task dependencies. Summary of the invention

[0005] The present invention aims to overcome at least one defect (shortcoming) of the above-mentioned prior art and provide a cloud-edge-end collaborative computing offloading method, device, electronic device and computer storage medium to solve the problem of how to make effective computing offloading strategy decisions to optimize the average energy consumption of all IoT devices and maximize the benefits of the system when multiple IoT devices execute an application composed of multiple sub-tasks with task dependencies under a cloud-edge-end collaborative architecture.

[0006] According to a first aspect of the present application, a cloud-edge-device collaborative computing offloading method is provided, the method comprising: System model construction: Establish a cloud-edge-end collaboration system model including multiple IoT devices, an edge server and a remote cloud server. The system model includes a task dependency model, a communication model and a computational model. Problem formulation: Construct the optimization objective of the task offloading decision and its corresponding constraints, where the optimization objective is to minimize the average energy consumption of the devices in the system; Computation offloading: Use graph neural networks and reinforcement learning methods to obtain task offloading strategies and implement cloud-edge-end collaborative offloading scheduling, which is performed in time slots.

[0007] Optionally, the IoT device is used to execute an application, the application is composed of a plurality of interdependent subtasks, and the subtasks are executed in a certain order or under certain conditions; each of the IoT devices executes a part of the subtasks in the application that have a dependent relationship; The time series is divided into time slots, in any time slot In the example, it is assumed that the bandwidth required by each subtask remains unchanged; the application arrives at the IoT device according to the time slot; Suppose the interdependent subtasks in the application are The number of IoT devices is , definition For the The deadline for the application running on each IoT device to complete, , for the The applications running on the IoT devices include k Subtasks , subtask Can be written as: (1) in, k Represents the index of the subtask, k The value of ; To run subtasks The required computing resources, that is, the CPU cycles required for each bit of the task; For subtask The data size; For subtask Deadline for completion; The task dependency model is as follows: The first The applications running on the IoT devices are divided into subtasks, whose task dependencies are represented by a directed acyclic graph DAG, that is ,in is a set of nodes, where each subtask is a node; is the set of edges that are data dependent between tasks, i.e. directed edges Describes any two subtask nodes and Priority constraints between subtasks The direct predecessor task When not completed, subtasks Cannot start execution; Record The applications running on the IoT devices include k Subtasks The set of direct predecessor tasks is , the set of direct successor tasks is The end node is ; Define a task node without a direct predecessor task as a start task node, and a task node without a direct successor task as a termination task node; the start node is one or more, and the multiple start nodes are executed serially or in parallel; there can be only one termination node, and the termination node represents the completion node of the application; Defined in The start time of running the application on the IoT device is , No. The applications running on the IoT devices include k Subtasks The time when execution can begin is the preparation time of the subtask , subtask The time when the operation ends is the completion time ; Based on the task dependencies, the preparation time of the subtask can be obtained as follows: The rate at which the IoT device uploads to the edge server through the wireless channel can be obtained according to the Shannon formula: The transmission rate of IoT devices offloading subtasks to edge servers , as follows: in, For subtask The channel bandwidth to the edge server, For the The transmission power of each IoT device, For IoT devices The distance to the edge server, is the reference distance, is the path loss exponent, is the path loss constant, is the variance of the additive white Gaussian channel noise.

[0008] The computing model includes a local computing model, an edge computing model, and a cloud computing model, which are as follows: Local computing processes subtasks on IoT devices; in the local computing model, we define For the The computing power of IoT devices, so the subtask Execution time It is expressed as: The corresponding local completion time It is expressed as: The energy consumption of each computing cycle is defined as ,in is the energy factor, represents the computing power of IoT devices; therefore, the energy consumption corresponding to local computing is expressed as: (6) In the edge computing model, for subtasks that are offloaded to edge servers for computing, the subtasks The processing consists of two stages: In the transmission phase, the subtask is sent from the IoT device to the edge server via the wireless uplink channel. Due to the limited channel capacity, the subtask may need to wait until the channel is idle before it can be uploaded. In addition, the uploaded data has a certain size, and the data transmission process will also generate delays. In the calculation phase, the subtask is uploaded to the edge server and the calculation is completed on the edge server; For the transmission phase, define the earliest arrival time of the task For subtask The earliest arrival time to the corresponding edge server is calculated as follows: in, For subtask From The channel transmission time from an IoT device to the edge server is calculated as follows: Subtasks Energy consumption sent from IoT devices to edge servers for: For the calculation phase, define is the computing power of the edge server; subtask Execution time required to execute on edge servers as follows: in is the queuing time of the task on the edge server; Subtasks Completion time of offloading to edge servers for: In the cloud computing model, IoT devices also need to transfer data to edge servers before uploading tasks to the cloud. This process goes through the following two stages: In the upload phase, the subtask is sent from the IoT device to the edge server via the wireless uplink channel, and then forwarded by the edge server to the cloud server; In the cloud server computing phase, after receiving the subtask, the cloud server will immediately compute the subtask. Therefore, the delay of the cloud server computing phase is the computing delay of the subtask in the cloud server. For the upload phase, the wired transmission rate between the edge server and the cloud server is , you can get the subtask The time it takes to transfer from the edge server to the cloud server for: For the cloud server computing phase, is the computing power of the cloud server, then the subtask The execution time on the cloud server is: Subtasks The time it takes to complete the execution after passing through the edge server and uploading to the cloud server for: Optionally, the reinforcement learning method includes three elements: state, action and reward function; The state is defined as the feature vector obtained by graph embedding the system state through the graph neural network GCN, denoted as ; The action set is , where for any subtask , Represents a subtask Execute locally, Represents a subtask Offload to edge server for execution, Represents a subtask After being transferred by the edge server, it is uploaded to the cloud server for execution; The reward function is set as: in, For subtask Energy consumption for local execution; Take action for the current the energy consumption generated; is the completion rate of the application, that is, the ratio of the number of completed subtasks to the number of all subtasks; Parameters related to the deadline; is the application completion rate weight; is the cut-off time weight; It can be obtained by the following formula: in is the deadline penalty coefficient, The distance coefficient from the current moment to the application deadline, that is, the closer the task is to the application deadline, the The smaller the value of; Indicates the distance coefficient threshold; From the following formula: in For subtask The deadline, is the current time.

[0009] By building a cloud-edge-end collaborative system model and using graph neural networks and reinforcement learning methods to obtain task offloading strategies, the average energy consumption of all IoT devices can be minimized.

[0010] Optionally, during the calculation offloading process, for each time slot , the agent obtains the current time slot from the environment Environmental status , and from the action space Based on strategy Select Action Among them, strategy Indicates in status Take action The probability of state transition is Enter the next state , and according to the reward function Return a reward to the agent ; According to the above process, a round of training of the agent is as follows: S3.1. Reset the environment and get the initial system state , set the current time slot ; S3.2. Get the current time slot All subtasks that have not started to be executed on the IoT devices that have started the application; S3.3, merge DAG according to dependency, collect relevant information of each subtask, and integrate DAG and subtask information and input them into GCN for processing to obtain the current system status ; S3.4. Usage strategy For the current Task selection actions that can be started at any time , perform actions and receive rewards and the next state ; S3.5 Storage To Cache ; S3.6. Check the current time slot Are there any subtasks that have not been scheduled? If all subtasks have been scheduled, calculate the advantage estimate ; Otherwise, the time slot , return to step S3.2; the advantage estimate Calculated according to the following formula: in, represents the timing difference error, represents the discount factor, represents the attenuation factor; S3.7, repeat the following steps K times: The size of the random selection is The samples are used for learning and the network parameters of the model are updated ; S3.8. Clear the cache , a round of training process ends.

[0011] By representing dependent tasks as directed acyclic graphs (DAGs) and using GCN to process DAGs, the system can efficiently understand and handle complex dependencies between tasks; by continuously interacting with the environment, collecting rewards and updating network parameters, the agent can gradually learn better scheduling strategies.

[0012] Optionally, the graph neural network is used to embed the dependency relationship between tasks into a vector space so that each task can be represented in the form of a vector of specific features and association relationships; the feature extraction process of the graph neural network includes the following steps: Initialization node characteristics: each of the node characteristics includes the execution time, data volume, and energy consumption of the subtask; Graph merging and adjacency matrix construction: In each time slot, the status of the device that has started to execute the application is obtained. When the services of the subtasks are the same, the subtasks are directly merged; When the services of the subtasks are different, a virtual start node is added, and the virtual start node is connected to the start nodes of all DAGs; In any time slot , set each device The corresponding DAG composed of unfinished subtasks is expressed as ,in, , then in the time slot Get all The merged task dependency graph is used It is expressed as: Multi-layer GCN processing: Use multi-layer GCN to merge the task dependency graph Perform feature extraction, the features of each node include its own attributes and dependencies with other tasks.

[0013] Through multi-layer GCN processing, the dependencies between tasks are further embedded into the high-dimensional vector space, so that each task can be represented in the form of a vector containing specific features and associations, thereby enhancing the accuracy of task scheduling.

[0014] Optionally, the optimization objective of the task offloading decision and its corresponding constraints are as follows: For each subtask , there are corresponding uninstall strategies ,in They represent local execution, offloading to edge servers for execution, and uploading to cloud servers for execution after being transferred by edge servers. The offloading strategy satisfies the following constraints: Wherein, formula (14) indicates that each time in the unloading strategy You can only choose one of them; No. The latency of executing applications on IoT devices for: No. The total energy consumption of IoT devices executing applications is: in For fixed circuit power of IoT devices, the This includes the power consumed by digital-to-analog converters, analog-to-digital converters, frequency synthesizers, and mixers; The overall uninstallation strategy of the system is defined as , the optimization problem model is formulated as follows: Among them, constraints C1 and C2 are constraints of the offloading strategy, that is, each subtask can only choose one of the three: local calculation, offloading to the edge node, and offloading to the cloud server; constraint C3 means that the execution of any subtask on any device must be completed within its limited maximum deadline; constraints C4 and C5 represent the dependency relationship between subtasks, where constraint C4 means that the subtask It must be executed after all its direct predecessor tasks are completed. Constraint C5 means that when a subtask is a starting node task, the subtask starts executing in parallel at the start time of offloading.

[0015] Through constraints, tasks can be offloaded under constraints such as the computing power of the device, power consumption, and dependencies between tasks, thereby improving the accuracy of formulating offloading strategies.

[0016] According to a second aspect of the present application, a cloud-edge-device collaborative computing offloading device is provided, the device comprising: The cloud-edge-end collaborative system architecture module is used to build a cloud-edge-end collaborative system model with multiple IoT devices, an edge server, and a cloud data center, including task dependency model, communication model, and computing model; A task offloading decision optimization module is used to construct an optimization target for task offloading decision and its corresponding constraints, wherein the optimization target is to minimize the average energy consumption of the devices in the system; Offloading calculation module: Use graph neural network and reinforcement learning methods to obtain task offloading strategies and implement cloud-edge-end collaborative offloading scheduling, which is performed in time slots; According to a third aspect of the present application, an electronic device is provided, including: a memory for storing one or more computer programs; The processor implements the cloud-edge-device collaborative computing offloading method described in the first aspect when the one or more computer programs are executed by the processor.

[0017] According to a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cloud-edge collaborative computing offloading method described in the first aspect when executed.

[0018] Based on any of the above aspects, the cloud-edge-device collaborative computing offloading method, device, electronic device, and computer storage medium provided by the embodiments of the present application have the following beneficial effects compared with the prior art: 1. In establishing the system model, the scenario where there are task dependencies between applications running on devices under the cloud-edge-end collaborative architecture is taken into consideration, and a directed acyclic graph is used to model the task dependencies. Using a directed acyclic graph for modeling can simplify the expression of task dependencies and reduce the complexity of task scheduling decisions. The DAG model supports parallel processing of tasks. Under the cloud-edge-end collaborative architecture, the system can use multiple computing nodes to process multiple tasks that can be executed in parallel, thereby shortening the overall execution time and improving system throughput. Therefore, using a directed acyclic graph to model task dependencies under the cloud-edge-end collaborative architecture can effectively schedule and obtain task offloading strategies under the conditions of dependency and resource constraints.

[0019] 2. In the cloud-edge-end collaborative architecture, the resources of IoT devices, edge servers and cloud are limited, and there are dependencies between tasks. The optimization goal is to meet the deadlines of all tasks. Graph neural networks and reinforcement learning methods are used to obtain task offloading strategies to minimize the average energy consumption of IoT devices during task execution. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A flowchart of the cloud-edge collaborative computing offloading method provided in this embodiment.

[0022] Figure 2 This is a schematic diagram of the cloud-edge-end collaboration system model in this embodiment.

[0023] Figure 3Schematic diagram of the task dependency model in this embodiment.

[0024] Figure 4 Schematic diagram of the interaction between the intelligent agent and the environment provided in this embodiment.

[0025] Figure 5 A task scheduling flowchart for the cloud-edge collaborative computing offloading method provided in this embodiment.

[0026] Figure 6 Schematic diagram of average energy consumption of the cloud-edge collaborative computing offloading method provided in this embodiment under different numbers of subtasks.

[0027] Figure 7 This is a schematic diagram of the structure of an electronic device provided in this embodiment.

[0028] Figure 8 A schematic diagram of the cloud-edge collaborative computing offloading device provided for this embodiment. DETAILED DESCRIPTION

[0029] The drawings of this application are only used for illustrative purposes and should not be construed as limiting the present application. In order to better illustrate the following embodiments, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product; it is understandable to those skilled in the art that some well-known structures and their descriptions in the drawings may be omitted.

[0030] In order to enable those skilled in the art to better understand the present application, the technical solutions 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. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] Cloud computing and edge computing have limitations in solving the problem of task offloading. Although it is feasible to build a cloud-edge-end collaborative computing architecture by combining cloud computing and edge computing, in current research, the offloading decision under this architecture does not fully consider the complexity of tasks in real scenarios, especially the dependencies between tasks; even if task dependencies are considered, they are often limited to a two-layer offloading architecture, and do not consider cloud-edge-end collaborative scenarios, especially those involving random dependencies. Therefore, in a cloud-edge-end architecture, it is a challenging technical problem to consider both task dependencies and communication cost complexity when making offloading decisions.

[0033] This embodiment provides a technical solution that can solve the above-mentioned problem. The specific implementation methods of this application are described in detail below in conjunction with the accompanying drawings.

[0034] like Figure 1 As shown, this embodiment provides a cloud-edge collaborative computing offloading method, which may include the following steps: S110, system model construction: establish a cloud-edge-end collaboration system model including multiple IoT devices, an edge server and a remote cloud server, and the system model includes a task dependency model, a communication model and a computing model.

[0035] like Figure 2 As shown, in this embodiment, the cloud-edge-end collaboration system model includes An IoT device, an edge server and a remote cloud server, each of the IoT devices is connected to the edge server accessible to the IoT device via a wireless link, and the edge server is connected to the remote cloud server via a wired link.

[0036] In this embodiment, the IoT device is used to execute an application. There may be an application that needs to be executed on the IoT device. The application consists of multiple interdependent subtasks, which must be executed in a certain order or condition. Each IoT device will execute a part of the subtasks of the application that have dependencies, and there may be overlapping task subsets between IoT devices, but each IoT device autonomously executes the subtasks assigned to it without the intervention of other IoT devices. Divide the time series into time slots, assuming that in any time slot The bandwidth required by each subtask remains unchanged, the application arrives at the IoT device time slot by time slot, and in this embodiment, the scheduler has no prior knowledge about when the task will arrive in the future.

[0037] Suppose the interdependent subtasks in the application are , definition For the The deadline for the application running on each IoT device to complete, , for the The applications running on the IoT devices include k Subtasks , subtask attributes Can be written as: (1) in, k Represents the index of each subtask, k The value of ; To run subtasks The required computing resources, that is, the CPU cycles required to calculate each bit of the task, Depends on the computational complexity of the task; is the data size of this subtask; The deadline for completing this subtask.

[0038] In this embodiment, the task dependency model is as follows: The first The applications running on the IoT devices are divided into Subtasks, such as Figure 3 As shown, the task dependency of the application can be represented by a directed acyclic graph DAG, that is, ,in Represented as a set of nodes containing each subtask; Represented as a set of edges that represent data dependencies between tasks, i.e. directed edges Describes any two subtask nodes and Priority constraints between subtasks The direct predecessor task When not completed, subtasks Cannot start execution; Record The applications running on the IoT devices include k Subtasks The set of direct predecessor tasks is , the set of direct successor tasks is The end node is The task node without a direct predecessor task is defined as the start task node, and the task node without a direct successor task is defined as the end task node. In this embodiment, there can be one or more start nodes, and the application can execute these tasks as start nodes in series or in parallel; there can be only one end node, which represents the completion node of the application; In order to express task dependencies, we define The start time of running the application on the IoT device is , No. of the applications running on IoT devices k Subtasks The time when execution can begin is the preparation time of the subtask , subtask The time when the operation ends is the completion time ; Get the preparation time of subtasks according to task dependencies as follows: The communication model includes the rate at which IoT devices upload to the edge server through the wireless channel. According to the Shannon formula, we can get The transmission rate of IoT devices offloading subtasks to edge servers , as follows: in, For subtask The channel bandwidth to the edge server, For the The transmission power of each IoT device, For IoT devices The distance to the edge server, is the reference distance, is the path loss exponent, is the path loss constant, is the variance of the additive white Gaussian channel noise.

[0039] In this embodiment, the computing model includes a local computing model, an edge computing model, and a cloud computing model, which are as follows: Local computing model: Local computing means that subtasks are processed directly on IoT devices without offloading. In the local computing model, we define For the The computing power of IoT devices, so the subtask Execution time It is expressed as: (4) Correspondingly, the local completion time It is expressed as: The energy consumption of each computation cycle is defined as ,in is the energy factor, Indicates the computing power of IoT devices. In the specific implementation process, The value depends on the chip architecture and is generally Therefore, the energy consumption of local computing is It can be expressed as: (6) Edge computing model: In the edge computing model, for subtasks that are offloaded to edge servers for computing, the subtasks The processing consists of two stages: Transmission phase: The subtask is sent from the IoT device to the edge server via the wireless uplink channel. Due to the limited channel capacity, the subtask may need to wait until the channel is idle before it can be uploaded, and the uploaded data has a certain size, so the data transmission process will also generate delays.

[0040] Computation phase: After the subtask is uploaded to the edge server, the computing resources of the edge server may be occupied. At this time, it is necessary to wait in the queue and complete the calculation on the edge server; For the transmission phase, define the earliest arrival time of the task For subtask The earliest arrival time to the corresponding edge server is calculated as follows: in, For subtask From The channel transmission time from an IoT device to the edge server is calculated as follows: Subtasks Energy consumption sent from IoT devices to edge servers for: For the calculation phase, define is the computing power of the edge server; subtask Execution time required to execute on edge servers as follows: in The queuing time of the task on the edge server.

[0041] During specific implementation, the number of tasks that the edge server executes simultaneously is generally limited. For example, in some embodiments, the number of tasks that the edge server executes simultaneously will not exceed 10 at most.

[0042] In summary, we can get the subtask Completion time of offloading to edge servers for: Cloud computing model: In the cloud computing model, IoT devices upload tasks to the cloud. They also need to first transfer data to the edge server, and then upload the tasks from the edge server to the cloud server. This process goes through the following two stages: Upload phase: The subtask is sent from the IoT device to the edge server via the wireless uplink channel, and then forwarded by the edge server to the cloud server. Due to the limited channel capacity and the certain size of the uploaded data, the data transmission process will generate delays.

[0043] Cloud server computing phase: After receiving the subtask, the cloud server will immediately compute the subtask. Therefore, the delay of this cloud server computing phase is the computing delay of the subtask in the cloud server.

[0044] For the upload phase, the subtask is uploaded from the edge server to the cloud server. The wired transmission rate between the edge server and the cloud server is , you can get the subtask The time it takes to transfer from the edge server to the cloud server for: For the cloud server computing phase, is the computing power of the cloud server, then the subtask The execution time on the cloud server is: In summary, subtasks The time it takes to upload to the edge server and complete on the cloud server for: S120. Problem formulation: Construct the optimization objective of the task offloading decision and its corresponding constraints.

[0045] The optimization objectives of the task offloading decision and its corresponding constraints are as follows: For each subtask , define the corresponding uninstallation strategy ,in Represents subtasks Execute locally, offload to edge server for execution, and upload to cloud server for execution after being transferred by edge server. The offload strategy meets the following constraints: Wherein, formula (14) indicates that each time in the unloading strategy Only one of them can be selected.

[0046] No. The latency of executing applications on IoT devices for: No. The total energy consumption of IoT devices executing applications is: in It is the fixed circuit power of IoT devices, including the power consumed by digital-to-analog converters, analog-to-digital converters, frequency synthesizers, mixers and other components.

[0047] The overall uninstallation strategy of the system is defined as , the optimization problem model is formulated as follows: Among them, constraints C1 and C2 are the constraints of the offloading strategy, that is, each subtask Only one of the three options can be selected: local computing, offloading to edge nodes, and offloading to cloud servers; Constraint C3 indicates that the execution of any subtask on any device must be completed within its limited maximum deadline; Constraints C4 and C5 indicate the dependency between subtasks, where constraint C4 indicates that subtask The task must be executed after all its direct predecessor tasks are completed. Constraint C5 indicates that when the subtask is the starting node task, the task can be executed in parallel at the start time of offloading.

[0048] S130, computing offloading: Use graph neural network and reinforcement learning methods to obtain task offloading strategies and implement cloud-edge-end collaborative offloading scheduling, where the offloading scheduling is performed in time slots.

[0049] The calculation offloading specifically includes the following method: like Figure 4 As shown in Figure 1, reinforcement learning includes three key elements: state, action, and reward function. The state is defined as the feature vector obtained by embedding the system state into the graph neural network GCN, denoted as The action set is , where for any subtask , Represents a subtask Execute locally, Represents a subtask Offload to edge server for execution, Represents a subtask After being transferred by the edge server, it is uploaded to the cloud server for execution. The reward function is set as: in, For subtask Energy consumption for local execution; Take action for the current the energy consumption generated; is the completion rate of the application, that is, the ratio of the number of completed subtasks to the number of all subtasks; Parameters related to the deadline; is the application completion rate weight; is the deadline weight. In the specific implementation process, the weight coefficient can be adjusted and to balance the relative importance of these factors. It can be obtained by the following formula: in is the deadline penalty coefficient, is the distance coefficient from the current moment to the application deadline, that is, the closer the task is to the application deadline, The smaller the value of; Indicates the distance coefficient threshold, which can be adjusted according to actual needs In this embodiment, is 0.2. It can be obtained by the following formula: in For subtask The deadline, is the current time.

[0050] like Figure 5 As shown, for each time slot , the agent obtains the current time slot from the environment Environmental status , and from the action space Based on strategy Select an action , where strategy is the agent in the environment state Select action The environment then changes according to the state transition probability Enter the next state , and according to the reward function Return a reward to the agent ; According to the above process, a round of training of the agent is as follows: S3.1. Reset the environment and get the initial system state , set the current time slot ; S3.2. Get the current time slot Subtasks that have not started to be executed on all applied IoT devices; S3.3. Merge DAG (directed acyclic graph) according to dependencies, collect relevant information of each subtask, and integrate DAG and subtask information into GCN for processing to obtain the current system status S3.4. Usage strategy For the current Task selection actions that can be started at any time , perform actions and receive rewards and the next state ; S3.5 Storage To Cache ; S3.6. Check the current time slot Are there any subtasks that have not been scheduled? If all subtasks have been scheduled, calculate the advantage estimate ; Otherwise, the time slot , return to step S3.2; the advantage estimate Calculated according to the following formula: in, represents the timing difference error, represents the discount factor, Represents the attenuation factor.

[0051] S3.7, repeat the following steps K times: The size of the random selection is Small batch samples are used for learning and network parameters are updated ; S3.8. Clear the cache , a round of training process ends.

[0052] In step S3.3, the graph neural network GCN is used to embed the dependencies between tasks into the vector space, so that each task can be represented in the form of a vector of specific features and association relationships, thereby capturing the similarities, dependencies and other important association features between tasks.

[0053] The feature extraction process of the graph neural network GCN includes the following steps: S3.3.1. Initialization of node characteristics: During initialization, each node characteristic contains basic information of the subtask, such as execution time, data volume, energy consumption, etc.

[0054] S3.3.2, Graph merging and adjacency matrix construction: In each time slot, the status of the device that has started to execute the application is obtained. When the services of the subtasks are the same, the subtasks are directly merged and an adjacency matrix is ​​constructed to represent the dependency relationship between the tasks; When the services of the subtasks are different, a virtual start node is added, and the virtual start node is connected to the start nodes of all DAGs.

[0055] S3.3.3. Multi-layer GCN processing: Use multi-layer GCN to merge the task dependency graph Perform feature extraction, the features of each node include its own attributes and dependencies with other tasks.

[0056] In step 3.3.1, the characteristic information of the node includes: subtask related attributes, that is, the inherent attributes of the subtask, such as the amount of data (KB) that the subtask needs to process; the number of subtasks, that is, how many devices need to execute such subtasks in this time slot; the deadline of the subtask, that is, when the subtask can be completed at the latest; the energy consumption of uploading the subtask, that is, the energy consumption of the IoT device uploading the subtask calculation data to the edge server through the wireless channel; the energy consumption of local execution of the subtask, that is, the local energy consumption of the IoT device adopting the local execution strategy; the execution time of the subtask choosing to execute in the cloud, edge, or local, that is, the time required to execute the subtask when the IoT device chooses to execute in the cloud, edge, or local respectively; the execution time of the subtask choosing to execute in the cloud, edge, or local, that is, the time required to execute the subtask when the IoT device chooses to execute in the cloud, edge, or local respectively.

[0057] In step S3.3.2, in each time slot, the scheduler can obtain the status of the device that has started executing the application and merge the dependency graphs of the unfinished subtasks on different devices. For subtasks of the same service, the scheduler can directly merge them; for subtasks of different services, their original dependencies remain unchanged, and a virtual start node is added, which is connected to the start nodes of all directed acyclic graphs (DAGs). In any time slot , set each device The corresponding DAG composed of unfinished subtasks is expressed as ,in, , then in the time slot Get all The merged task dependency graph is used It is expressed as: In step S3.3.3, this embodiment uses a three-layer GCN to merge the task dependency graph Perform feature extraction. The features of each node include its own attributes and dependencies with other tasks. In the forward propagation process of GCN, the forward propagation formula is as follows: in, is the feature matrix of the node, is the enhanced adjacency matrix, is the activation function, , and They are the weight matrices of the three GCN layers respectively.

[0058] Exemplarily, this embodiment is implemented by programming simulation using Python language on a PC. In this simulation, the system includes 20 IoT devices, and the distribution of IoT devices in the environment is random and uniform. The size of each subtask conforms to the uniform distribution of (200, 300) KB. The computing power of different IoT devices conforms to the uniform distribution of (0.5, 1.0) GHz, the computing power of the edge server is 3GHz, and the computing power of the cloud server is 6GHz. The constant circuit power of the device in idle state is 0.2W, the computational complexity is 30 cycles / bit, and the duration of each time slot is 0.15 seconds. In terms of network communication, the wired transmission rate between the edge server and the cloud server is fixed at 5MB / s, and the wireless bandwidth between the IoT device and the edge server follows a uniform distribution of (5.0, 7.0) MHz. For the edge server, at any given moment, the number of tasks that can be executed in parallel will not exceed 10.

[0059] In a specific embodiment, Figure 6 This is a schematic diagram of average energy consumption compared with four different schemes. The four schemes are local computing scheme, edge-first offloading scheme, cloud-first offloading scheme and randomly selected offloading scheme. The local computing scheme means that all computing tasks are executed on the IoT device where they are located; the edge-first offloading scheme means that computing tasks are preferentially offloaded to edge servers for execution; the cloud-first offloading scheme means that computing tasks are preferentially offloaded to cloud servers for execution; the randomly selected offloading scheme means that an offloading strategy is randomly generated for each computing task among the local, edge server and cloud server. In this simulation, the number of IoT devices is 25, and the number of subtasks contained in the application running on each IoT device ranges from 5 to 25. From Figure 5 It can be seen that the average energy consumption of the solution in this embodiment in IoT devices is lower than that of the other four solutions, which verifies the feasibility and efficiency of the present invention.

[0060] The following is an explanation of the technical solution of the cloud-edge collaborative computing offloading method provided in this application in conjunction with a specific embodiment.

[0061] like Figure 8 As shown, the embodiment of the present application further provides a cloud-edge-device collaborative computing unloading device 610. Optionally, the cloud-edge-device collaborative computing unloading device 610 may include: A model building module 611 is used to build a cloud-edge-end collaboration system model with multiple IoT devices, an edge server and a cloud data center, including a task dependency model, a communication model and a computing model; The task offloading decision optimization module 612 is used to construct the optimization target of the task offloading decision and its corresponding constraint conditions, wherein the optimization target is to minimize the average energy consumption of the devices in the system; The offloading calculation module 613 is used to obtain the task offloading strategy using the graph neural network and reinforcement learning method to realize the offloading scheduling of cloud-edge collaboration, and the offloading scheduling is performed according to time slots.

[0062] It can be understood that the above-mentioned device embodiments and the above-mentioned method embodiments can correspond to each other, and similar descriptions of the device embodiments can refer to the method embodiments. To avoid repetition, it will not be repeated here. A cloud-edge collaborative computing unloading device provided in an embodiment of the present application can execute a cloud-edge collaborative computing unloading method provided in any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method. The functional modules of the cloud-edge collaborative computing unloading device can be implemented in the form of hardware, can be implemented by instructions in the form of software, or can be implemented by a combination of hardware and software modules.

[0063] Specifically, each step of the method embodiment of the present application can be completed by the hardware integrated logic circuit and / or software instructions in the processor. The steps of the cloud-edge collaborative computing unloading method in combination with the embodiment of the present application can be directly embodied as a hardware encoding processor for execution, or a combination of hardware and software modules in the encoding processor for execution. Optionally, the software module can be located in a random access memory, a read-only memory, a programmable read-only memory, a flash memory, an electrically erasable programmable memory, a register, or other storage media. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in combination with its hardware.

[0064] The present application embodiment provides an electronic device 710, whose structure is as follows: Figure 7 The electronic device 710 may be Figure 1 The server 100 or the terminal 200 is shown.

[0065] like Figure 7 As shown, the electronic device 710 includes a memory 711, a processor 712, a communication module 713 and an input / output interface 714, etc. Optionally, the memory 711, the processor 712, the communication module 713 and the input / output interface 714 can be connected and communicated through a bus 715.

[0066] The memory 711 is used to store one or more computer programs and transfer the code of the computer program to the processor 712; when the one or more computer programs are executed by the processor 711, the cloud-edge collaborative computing offloading method in the embodiment of the present application is implemented.

[0067] Optionally, the electronic device 710 can be connected to a network via a communication module 713 to communicate with other devices, such as a terminal or a server, through the network to achieve data interaction. The electronic device 710 can be various forms of digital computers, such as desktop computers, servers, workstations, mainframe computers or other types of computers. The electronic device 710 can also be various forms of mobile terminals, such as smart phones, tablet computers, wearable devices (such as helmets, glasses, watches, etc.) and other similar mobile terminals.

[0068] Optionally, the electronic device 710 can be connected to the required input / output devices, such as a keyboard, a display device, etc., through the input / output interface 714. The electronic device 710 itself can have a display device, and can also be connected to other display devices through the input / output interface 714. Optionally, a storage device, such as a hard disk, can also be connected through the input / output interface 714, so that data in the electronic device 710 can be stored in the storage device, or data in the storage device can be read, and data in the storage device can also be stored in the memory 711. It can be understood that the input / output interface 714 can be a wired interface or a wireless interface. Depending on the actual application scenario, the device connected to the input / output interface 714 can be a component of the electronic device 710, or it can be an external device connected to the electronic device 710 when needed.

[0069] Optionally, the memory 711 may be a volatile memory and / or a non-volatile memory, the volatile memory may be a random access memory, etc., and the non-volatile memory may be a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory or a flash memory, etc.

[0070] Optionally, the computer program stored in the processor 711 may be divided into one or more modules, which are stored in the memory 711 and executed by the processor 712 to complete the method provided in the embodiment. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the computer program instruction segments are used to describe the execution process of the computer program in the electronic device 710.

[0071] Optionally, the processor 712 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 712 include, but are not limited to, a central processing unit, a graphics processing unit, a digital signal processor, various dedicated artificial intelligence computing chips, various processors running machine learning model algorithms, and any appropriate controller, microcontroller, processor, etc. The processor 712 executes the various methods and processes of this embodiment, illustratively, such as a cloud-edge collaborative computing unloading method in an embodiment of the present application.

[0072] Optionally, the bus 715 may include a path for transmitting information. The bus 715 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. According to different functions, the bus 715 may be divided into an address bus, a data bus, a control bus, etc.

[0073] In an optional implementation, the embodiment of the present application further provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer is enabled to perform the method of the above method embodiment. Part or all of the computer program can be loaded and / or installed on the memory 711 of the electronic device 710. When the computer program is executed by the processor 712, one or more steps of a cloud-edge-end collaborative computing offloading method of the embodiment of the present application can be executed.

[0074] Optionally, the computer-readable storage medium may be a random access memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, or the like.

[0075] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the technical solution of the present invention, and are not intended to limit the specific implementation methods of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the claims of the present invention shall be included in the protection scope of the claims of the present invention.

Claims

1. A cloud-edge-device collaborative computing offloading method, It is characterized in that The method comprises: System model construction: Establish a cloud-edge-end collaboration system model including multiple IoT devices, an edge server and a remote cloud server. The system model includes a task dependency model, a communication model and a computational model. Problem formulation: Construct the optimization objective of the task offloading decision and its corresponding constraints, where the optimization objective is to minimize the average energy consumption of the devices in the system; Computation offloading: Use graph neural networks and reinforcement learning methods to obtain task offloading strategies and implement cloud-edge-end collaborative offloading scheduling, which is performed in time slots.

2. According to the cloud-edge-device collaborative computing offloading method of claim 1, It is characterized in that The IoT device is used to execute an application, the application is composed of a plurality of interdependent subtasks, and the subtasks are executed in a certain order or condition; each of the IoT devices executes a part of the subtasks in the application that have a dependent relationship; Divide the time series into time slots, in any time slot In the example, it is assumed that the bandwidth required by each subtask remains unchanged; the application arrives at the IoT device according to the time slot; Suppose the interdependent subtasks in the application are The number of IoT devices is , definition For the The deadline for the application running on each IoT device to complete, , for the The applications running on the IoT devices include k Subtasks , subtask writing: (1) in, k Represents the index of the subtask, k The value of ; To run subtasks The required computing resources, that is, the CPU cycles required for each bit of the task; For subtask The data size; For subtask Deadline for completion; The task dependency model is as follows: The first The applications running on the IoT devices are divided into subtasks, whose task dependencies are represented by a directed acyclic graph DAG, that is ,in is a set of nodes, where each subtask is a node; is the set of edges that are data dependent between tasks, i.e. directed edges Describes any two subtask nodes and Priority constraints between: subtasks The direct predecessor task When not completed, subtasks Cannot start execution; Record The applications running on the IoT devices include k Subtasks The set of direct predecessor tasks is , the set of direct successor tasks is The end node is ; Define a task node without a direct predecessor task as a start task node, and a task node without a direct successor task as a termination task node; the start node is one or more, and the multiple start nodes are executed serially or in parallel; there can be only one termination node, and the termination node represents the completion node of the application; Defined in The start time of running the application on the IoT device is , No. The applications running on the IoT devices include k Subtasks The time when execution can begin is the preparation time of the subtask , subtask The time when the operation ends is the completion time ; Get the preparation time of subtasks according to task dependencies as follows: The rate at which the IoT device uploads to the edge server through the wireless channel is obtained according to the Shannon formula: The transmission rate of IoT devices offloading subtasks to edge servers , as follows: in, For subtask The channel bandwidth to the edge server, For the The transmission power of each IoT device, For IoT devices The distance to the edge server, is the reference distance, is the path loss exponent, is the path loss constant, is the variance of the additive white Gaussian channel noise.

3. A cloud-edge-device collaborative computing offloading method according to claim 2, It is characterized in that The computing model includes a local computing model, an edge computing model, and a cloud computing model, which are as follows: Local computing processes subtasks on IoT devices; in the local computing model, we define For the The computing power of IoT devices, so the subtask Execution time It is expressed as: The corresponding local completion time It is expressed as: The energy consumption of each computing cycle is defined as ,in is the energy factor, represents the computing power of IoT devices; therefore, the energy consumption corresponding to local computing is expressed as: (6) In the edge computing model, for subtasks that are offloaded to edge servers for computing, The processing consists of two stages: In the transmission phase, the subtasks are sent from the IoT device to the edge server via the wireless uplink channel; In the calculation phase, the subtask is uploaded to the edge server and the calculation is completed on the edge server; For the transmission phase, define the earliest arrival time of the task For subtask The earliest time to reach the corresponding edge server is calculated as follows: in, For subtask From The channel transmission time from an IoT device to the edge server is calculated as follows: Subtasks Energy consumption sent from IoT devices to edge servers for: For the calculation phase, define is the computing power of the edge server; subtask Execution time required to execute on edge servers as follows: in is the queuing time of the task on the edge server; Subtasks Completion time of offloading to edge servers for: In the cloud computing model, IoT devices need to transfer data to edge servers before uploading tasks to cloud servers. This process goes through the following two stages: In the upload phase, the subtask is sent from the IoT device to the edge server via the wireless uplink channel, and then forwarded by the edge server to the cloud server; In the cloud server computing phase, after receiving the subtask, the cloud server will immediately compute the subtask. Therefore, the delay of the cloud server computing phase is the computing delay of the subtask in the cloud server. For the upload phase, the wired transmission rate between the edge server and the cloud server is , then we get the subtask The time it takes to transfer from the edge server to the cloud server for: For the cloud server computing phase, is the computing power of the cloud server, then the subtask The execution time on the cloud server is: Subtasks The time it takes to complete the execution after passing through the edge server and uploading to the cloud server for: 。 4. A cloud-edge-device collaborative computing offloading method according to claim 3, It is characterized in that The reinforcement learning method includes three elements: state, action and reward function; The state is a feature vector obtained by embedding the system state into the graph neural network GCN, denoted as ; The action set is , where for any subtask , Represents a subtask Execute locally, Represents a subtask Offload to edge server for execution, Represents a subtask After being transferred by the edge server, it is uploaded to the cloud server for execution; Reward Function Set to: in, For subtask Energy consumption for local execution; Take action for the current the energy consumption generated; is the completion rate of the application, that is, the ratio of the number of completed subtasks to the number of all subtasks; Parameters related to the deadline; is the application completion rate weight; is the deadline weight; It is obtained from the following formula: in is the deadline penalty coefficient, The distance coefficient from the current moment to the application deadline, that is, the closer the task is to the application deadline, the The smaller the value of; Indicates the distance coefficient threshold; From the following formula: in For subtask The deadline, is the current time.

5. A cloud-edge-device collaborative computing offloading method according to claim 4, It is characterized in that During the computation offloading process, for each time slot , the agent obtains the current time slot from the environment Environmental status , and from the action space Based on strategy Select Action Among them, strategy Indicates in status Take action The probability of state transition is Enter the next state , and according to the reward function Return a reward to the agent ; According to the above process, a round of training of the agent is as follows: S3.

1. Reset the environment and get the initial system state , set the current time slot ; S3.

2. Get the current time slot All subtasks that have not started to be executed on the IoT devices that have started the application; S3.3, merge DAG according to dependency, collect relevant information of each subtask, and integrate DAG and subtask information and input them into GCN for processing to obtain the current system status ; S3.

4. Usage Strategy For the current Task selection actions that can be started at any time , perform actions and receive rewards and the next state ; S3.5 Storage To Cache ; S3.

6. Check the current time slot Is there any subtask that has not been scheduled? If all subtasks have been scheduled, calculate the advantage estimate ; Otherwise, the time slot , return to step S3.2; the advantage estimate Calculated according to the following formula: in, represents the timing difference error, represents the discount factor, represents the attenuation factor; S3.7, repeat the following steps K times: The size of the random selection is The samples are used for learning and the network parameters of the model are updated ; S3.

8. Clear the cache , a round of training process ends.

6. A cloud-edge-device collaborative computing offloading method according to claim 4, It is characterized in that The graph neural network is used to embed the dependency relationship between tasks into the vector space, so that each task can be represented in the form of a vector of specific features and association relationships; the feature extraction process of the graph neural network includes the following steps: Initialization node characteristics: each of the node characteristics includes the execution time, data volume, and energy consumption of the subtask; Graph merging and adjacency matrix construction: In each time slot, the status of the device that has started to execute the application is obtained. When the services of the subtasks are the same, the subtasks are directly merged; When the services of the subtasks are different, a virtual start node is added, and the virtual start node is connected to the start nodes of all DAGs; In any time slot , set each device The corresponding DAG composed of unfinished subtasks is expressed as ,in, , then in the time slot Get all The merged task dependency graph is used It is expressed as: Multi-layer GCN processing: Use multi-layer GCN to merge the task dependency graph Perform feature extraction, the features of each node include its own attributes and dependencies with other tasks.

7. A cloud-edge-device collaborative computing offloading method according to claim 3, It is characterized in that The optimization objectives of the task offloading decision and its corresponding constraints are as follows: For each subtask , there are corresponding uninstall strategies ,in They represent local execution, offloading to edge servers for execution, and uploading to cloud servers for execution after being transferred by edge servers. The offloading strategy satisfies the following constraints: Wherein, formula (14) indicates that each time in the unloading strategy You can only choose one of them; No. The latency of executing applications on IoT devices for: No. The total energy consumption of IoT devices executing applications is: in For fixed circuit power of IoT devices, the This includes the power consumed by digital-to-analog converters, analog-to-digital converters, frequency synthesizers, and mixers; The overall uninstallation strategy of the system is defined as , the optimization problem model is formulated as follows: Among them, constraints C1 and C2 are constraints of the offloading strategy, that is, each subtask can only choose one of the three: local calculation, offloading to the edge node, and offloading to the cloud server; constraint C3 means that the execution of any subtask on any device must be completed within its limited maximum deadline; constraints C4 and C5 represent the dependency relationship between subtasks, where constraint C4 means that the subtask It must be executed after all its direct predecessor tasks are completed. Constraint C5 means that when a subtask is a starting node task, the subtask starts executing in parallel at the start time of offloading.

8. A cloud-edge-device collaborative computing offloading device, It is characterized in that The device comprises: The cloud-edge-end collaborative system architecture module is used to build a cloud-edge-end collaborative system model with multiple IoT devices, an edge server, and a cloud data center, including task dependency model, communication model, and computing model; A task offloading decision optimization module is used to construct an optimization target for task offloading decision and its corresponding constraints, wherein the optimization target is to minimize the average energy consumption of the devices in the system; Offloading computing module: Use graph neural network and reinforcement learning methods to obtain task offloading strategies and implement cloud-edge-end collaborative offloading scheduling, which is performed according to time slots.

9. An electronic device, It is characterized in that include: a memory for storing one or more computer programs; The processor implements the cloud-edge collaborative computing offloading method as described in any one of claims 1 to 7 when the one or more computer programs are executed by the processor.

10. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cloud-edge collaborative computing offloading method as described in any one of claims 1-7 when executed.

Citation Information

Patent Citations

  • Energy consumption perception-based side cloud collaborative dynamic unloading scheduling method

    CN111756812A

  • Multi-user time sequence dependent service calculation unloading method based on graph neural network

    CN116450241A

  • Mobility unloading method based on graph neural network

    CN117149416A

  • A fair task offloading and migration method for edge service networks

    US20240264883A1

Cited By

  • Cloud side-end cooperative control method and system based on remote communication

    CN121262210A

  • Joint optimization method for directed acyclic graph task unloading and double-layer service caching

    CN122614521A