Task scheduling strategy determination method and device, electronic equipment and storage medium

By adjusting the task scheduling strategy in the heterogeneous Internet of Things, combined with delay constraints and energy consumption optimization, the efficiency problem caused by only considering delay in the existing technology is solved, and the optimal task scheduling effect is achieved.

CN118655974APending Publication Date: 2024-09-17PEKING UNIV CHONGQING RES INST OF BIG DATA
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410771527.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The existing technology only considers the reduction of delay when scheduling tasks, and lacks constraints on the energy consumption of terminal equipment, resulting in the inability to achieve optimal inference efficiency.

Method used

By obtaining the target application of user terminal equipment in the heterogeneous Internet of Things, the initial task scheduling strategy is determined, and the strategy is adjusted to minimize the total energy consumption under the delay constraint. The task offloading strategy, task uploading strategy and task caching strategy are adopted, combined with genetic Algorithm and branch-and-bound method to optimize task scheduling.

Benefits of technology

Under the condition that the delay constraints of the Internet of Things application are met, the total energy consumption is minimized, the efficiency of task scheduling is improved, and the problem of terminal equipment energy consumption constraints not being considered is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655974A
    Figure CN118655974A
Patent Text Reader

Abstract

The invention discloses a task scheduling strategy determination method and device, electronic equipment and a storage medium. The method comprises the steps that a target application corresponding to user terminal equipment in the heterogeneous Internet of Things is acquired, and the target application comprises at least one target task needing to be executed by the user terminal equipment; determining a first time delay required for each user terminal device to execute all target tasks corresponding to the interaction wheel according to the initial task scheduling strategy in each interaction wheel; and under the condition that a preset constraint condition is met, adjusting the initial task scheduling strategy until the total energy consumption corresponding to all the user terminal devices executing all the target tasks according to the initial task scheduling strategy is minimum, and obtaining a target task scheduling strategy. According to the method and the device, the technical problem that the optimal inference efficiency cannot be realized due to the fact that only the optimization target of reducing the time delay is usually considered and the energy consumption constraint of the terminal equipment is not considered when task scheduling is carried out in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data scheduling and processing, and in particular to a method, device, electronic device and storage medium for determining a task scheduling strategy. Background Art

[0002] In the heterogeneous Internet of Things with a ternary divide-and-conquer architecture, an end-edge collaborative task scheduling optimization algorithm can be adopted. The collaboration between the end and the edge enables different options for task processing. Whether the task needs to be offloaded to other resources for execution, which end or edge resource to offload to for execution, and the scheduling rules for processing the task on the resources are all issues that need to be considered comprehensively.

[0003] At present, relevant technologies often only consider the optimization goal of reducing latency when performing task scheduling, and lack consideration of the energy consumption constraints of terminal devices. As a result, the computing power of edge devices and terminal devices cannot be fully utilized, and the optimal inference efficiency cannot be achieved.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for determining a task scheduling strategy, so as to at least solve the technical problem that the optimal inference efficiency cannot be achieved because the related technology often only considers the optimization goal of reducing latency when performing task scheduling, and lacks consideration of the energy consumption constraints of the terminal device.

[0006] According to one aspect of an embodiment of the present application, a method for determining a task scheduling strategy is provided, including: obtaining a target application corresponding to a user terminal device in a heterogeneous Internet of Things, wherein the target application includes at least one target task that needs to be executed by the user terminal device, and the process of the user terminal executing the target application includes at least one interaction round, and the user terminal executes a group of target tasks in each interaction round; determining a first delay required for each user terminal device to execute all target tasks corresponding to the interaction round according to an initial task scheduling strategy in each interaction round, wherein the initial task scheduling strategy is used to indicate that the target task is executed locally by the user terminal device or by an edge server cluster; adjusting the initial task scheduling strategy when preset constraints are met until the total energy consumption corresponding to all target tasks executed by all user terminal devices according to the initial task scheduling strategy is minimized, and obtaining a target task scheduling strategy, wherein the preset constraints include: the first delay is not greater than the second delay, and the second delay is the delay required for each user terminal device to locally execute all target tasks corresponding to the interaction round in each interaction round.

[0007] Optionally, the initial task scheduling strategy includes: a task offloading strategy, a task uploading strategy and a task caching strategy, wherein the task offloading strategy is used to indicate whether the user terminal device offloads the target task to the edge server cluster for execution in the interaction round, the task uploading strategy is used to indicate whether the user terminal device uploads the target task to the edge server cluster in the interaction round, and the task caching strategy is used to characterize whether the target task has been cached in the edge server cluster in the interaction round.

[0008] Optionally, the method also includes: determining the executor of each target task based on the task offloading strategy; when the executor is a local user terminal device, determining the energy consumption of the user terminal device executing the target task locally as the energy consumption of the user terminal device executing the target task in the interaction round; and, when the executor is an edge server cluster, determining whether the user terminal device is required to upload the target task to the edge server cluster based on the task caching strategy and / or the task uploading strategy; when it is determined that the user terminal device is required to upload the target task to the edge server cluster, determining the energy consumption of the user terminal device executing the target task in the interaction round based on the energy consumption required for uploading the target task and the energy consumption of executing the target task in the edge server cluster; when it is determined that the user terminal device is not required to upload the target task to the edge server cluster, determining the energy consumption of the user terminal device executing the target task in the interaction round based on the energy consumption of executing the target task in the edge server cluster; and determining the total energy consumption corresponding to all user terminal devices executing all target tasks according to the initial task scheduling strategy based on the energy consumption of each user terminal device executing each target task in each interaction round.

[0009] Optionally, determining the first delay required for each user terminal device to execute all target tasks corresponding to the interaction round in each interaction round according to the initial task scheduling strategy includes: determining a first task set and a second task set based on a task offloading strategy, wherein the target tasks in the first task set are target tasks that need to be executed locally by the user terminal device in the interaction round, and the target tasks in the second task set are target tasks that need to be offloaded to the edge server cluster for execution in the interaction round; determining a third task set based on a task uploading strategy, wherein the target tasks in the third task set are target tasks that need to be uploaded to the edge server cluster by the user terminal device in the interaction round; determining the third delay as the sum of the upload delay of the user terminal device uploading all target tasks in the third task set and the execution delay of the edge server cluster executing all target tasks in the second task set; determining the fourth delay required for the user terminal device to execute all target tasks in the first task set locally, and taking the larger value of the third delay and the fourth delay as the first delay.

[0010] Optionally, the preset constraint condition also includes: the data volume of the target task cached in the edge server cluster is not greater than a preset ratio multiple of the total data volume of all target tasks in the target application, wherein the preset ratio multiple is a positive number not greater than 1.

[0011] Optionally, the process of adjusting the initial task scheduling strategy includes: a first stage and a second stage, wherein in the first stage it is assumed that there is available capacity in the edge server cache, and in the second stage there is no available capacity in the edge server cluster cache; adjusting the initial task scheduling strategy includes: in the first stage, constructing a first mapping function between the task cache strategy and the task offloading strategy, and a second mapping function between the task offloading strategy and the task upload strategy based on heuristic rules; based on the first mapping function and the second mapping function, converting the process of adjusting the initial task scheduling strategy in the first stage into a process of solving an optimization problem with a single task cache strategy variable; using a target algorithm to solve the optimization problem with a single task cache strategy variable to obtain the initial task scheduling strategy after adjustment in the first stage, wherein the target algorithm includes at least one of the following: a genetic algorithm, a greedy algorithm.

[0012] Optionally, when there is no available capacity in the edge server cluster cache in the second stage, there is no need to adjust the task cache strategy; adjusting the initial task scheduling strategy also includes: converting the process of adjusting the initial task scheduling strategy in the second stage into a process of solving a 0-1 linear programming problem; using the branch and bound method to solve the 0-1 linear programming problem to obtain the initial task scheduling strategy adjusted in the second stage; determining the target task scheduling strategy based on the initial task scheduling strategy adjusted in the first stage and the initial task scheduling strategy adjusted in the second stage.

[0013] According to another aspect of an embodiment of the present application, a task scheduling strategy determination device is also provided, including: an application acquisition module, used to acquire a target application corresponding to a user terminal device in a heterogeneous Internet of Things, wherein the target application includes at least one target task that needs to be executed by the user terminal device, and the process of the user terminal executing the target application includes at least one interaction round, and the user terminal executes a group of target tasks in each interaction round; a delay determination module, used to determine the first delay required for each user terminal device to execute all target tasks corresponding to the interaction round according to the initial task scheduling strategy in each interaction round, wherein the initial task scheduling strategy is used to indicate that the target task is executed locally by the user terminal device or by an edge server cluster; a scheduling optimization module, used to adjust the initial task scheduling strategy under the condition of satisfying preset constraints, until the total energy consumption corresponding to all target tasks executed by all user terminal devices according to the initial task scheduling strategy is minimized, and the target task scheduling strategy is obtained, wherein the preset constraints include: the first delay is not greater than the second delay, and the second delay is the delay required for each user terminal device to locally execute all target tasks corresponding to the interaction round in each interaction round.

[0014] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including: a memory and a processor, the processor being configured to run a program stored in the memory, wherein the task scheduling strategy determination method is executed when the program is running.

[0015] According to another aspect of the embodiments of the present application, a non-volatile storage medium is provided, the non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the task scheduling strategy determination method by running the computer program.

[0016] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, which implements the steps of the task scheduling strategy determination method when the computer program is executed by a processor.

[0017] In an embodiment of the present application, a target application corresponding to a user terminal device in a heterogeneous Internet of Things is obtained, wherein the target application includes at least one target task that needs to be executed by the user terminal device, and the process of the user terminal executing the target application includes at least one interaction round, and the user terminal executes a group of target tasks in each interaction round; a first delay required for each user terminal device to execute all target tasks corresponding to the interaction round according to an initial task scheduling strategy in each interaction round is determined, wherein the initial task scheduling strategy is used to indicate that the target task is executed locally by the user terminal device or by an edge server cluster; when the preset constraints are met, the initial task scheduling strategy is adjusted until all users are The total energy consumption corresponding to the user terminal device executing all the target tasks according to the initial task scheduling strategy is minimized, and the target task scheduling strategy is obtained, wherein the preset constraints include: the first delay is not greater than the second delay, and the second delay is the delay required for each user terminal device to locally execute all the target tasks corresponding to the interaction round in each interaction round. By minimizing the total energy consumption under the condition of satisfying the delay constraint of the Internet of Things application, the purpose of optimizing the task scheduling effect is achieved, thereby solving the technical problem of not being able to achieve the optimal inference efficiency due to the fact that related technologies often only consider the optimization goal of reducing the delay when performing task scheduling, and lack consideration of the energy consumption constraints of the terminal equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 It is a hardware structure block diagram of a computer terminal (or electronic device) for implementing a method for determining a task scheduling strategy according to an embodiment of the present application;

[0020] Figure 2 It is a schematic diagram of a method flow for determining a task scheduling strategy provided in an embodiment of the present application;

[0021] Figure 3 It is a schematic diagram of a heterogeneous Internet of Things ternary divide-and-conquer architecture provided according to an embodiment of the present application;

[0022] Figure 4 is a schematic diagram of a multi-terminal task architecture based on an edge cluster provided according to an embodiment of the present application;

[0023] Figure 5 It is a code schematic diagram of a TGCOA algorithm provided according to an embodiment of the present application;

[0024] Figure 6It is a structural diagram of a task scheduling strategy determination device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] 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. 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 the present application.

[0026] 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.

[0027] In the related technologies, the following problems are proposed to solve the problems of heterogeneous network elements, multi-state discrete cross-domain resources, and complex application service coupling in the current Internet of Things: Figure 3 The heterogeneous IoT three-way architecture driven by applications is shown in the figure. Starting from the three levels of "data-resources-services", according to the characteristics of specific application requirements, the three-way relationship is changed from the traditional tightly coupled relationship to a loosely coupled relationship with unified management within the element and interconnection and collaboration between elements, breaking the traditional IoT architecture with system and traffic as the core. With "data-resources-services" as the core, the three-way architecture can use an open end-edge collaborative task scheduling optimization algorithm to perform end-edge collaborative task offloading and scheduling.

[0028] The coordination between the end and the edge makes the processing of tasks have different options. Whether the task needs to be offloaded to other resources for execution, which resource on the end or edge to offload to, and the scheduling rules for processing the task on the resource are all issues that need to be considered comprehensively. These issues need to be considered comprehensively in many factors, such as task latency requirements, task cost requirements, equipment working power, cost of using services, data transmission bandwidth, and limited computing resources. Industrial-level tasks generally have real-time requirements, but equipment resources generally cannot meet their requirements. Therefore, task latency is one of the factors that need to be considered in the task offloading process. From the user's perspective, each user has a project budget for a project. Users pursue profit as the purpose, but not at the expense of product quality. Therefore, the offloading solution selected in the offloading process should minimize production costs while ensuring quality. Due to the limited transmission and computing resources, the task offloading and scheduling process should coordinate resource usage, try to achieve load balancing, and find the optimal processing solution. Combined with the above factors, in order to maximize the task production efficiency, it is necessary to study the task offloading and scheduling strategy of the end-edge-cloud collaboration under the industrial Internet.

[0029] At present, there have been many studies on edge-end collaboration technology at home and abroad. In the related technology, there is a binary offloading decision algorithm proposed for applications with real-time requirements such as multimedia applications. When the energy consumption of the terminal for calculation is greater than the sum of the energy consumption of transmitting data between the terminal and the edge server and the energy consumption of edge server calculation, the task will be transferred to the edge server for calculation. In the related technology, it is also proposed to optimize the task offloading of multiple devices by jointly optimizing radio and computing resources in dense deployment scenarios with mutual interference. This study first established the equivalence between the original non-convex problem and the convex problem in a single user scenario and established a closed form of the global optimal solution. Then, based on the continuous convex approximation technology, an iterative algorithm that can achieve local optimality was designed. Finally, this method proposed an alternative decomposition algorithm, which solved the original centralized problem through a distributed form that requires new signal transmission. Experiments have shown that this method can effectively save energy compared with other methods. However, the above coarse-grained task offloading methods cannot give full play to the computing power of edge devices and terminal devices, and cannot achieve the optimal inference efficiency.

[0030] Focusing on the task offloading and scheduling issues of end-edge collaboration in the industrial Internet. Most of the existing end-edge collaboration research is based on theoretical analysis and modeling. Although many theoretical research results have been achieved on how to allocate tasks to terminals and edge devices, there is a lack of system design and experiments in actual operating environments, especially the lack of end-edge collaboration optimization systems that consider complex environmental constraints. From the perspective of tasks, many researchers model this problem as a single-objective optimization problem with the goal of maximizing task completion and minimizing latency or cost. At present, there have been certain studies on task offloading and scheduling optimization of end-edge collaboration at home and abroad, and certain results have been achieved. However, there are still some problems in these studies:

[0031] 1) Current edge-end collaboration technology still uses coarse-grained division of tasks, without fine-grained division of tasks, and without considering the performance differences of heterogeneous processors in smart terminal devices and the temperature constraints of devices;

[0032] 2) The current end-edge collaborative inference methods are often ill-considered and fail to comprehensively consider constraints such as the computing power of the terminal device, the computing power of the edge device, the network conditions between the end and the edge, and the energy consumption of the terminal device. The dynamic changes of these constraints make it difficult to ensure low latency and robustness of the inference.

[0033] 3) Existing related research work often only considers the optimization goal of reducing latency, and lacks consideration of factors such as energy consumption constraints of terminal devices and memory read and write latency. Unlike large devices, on the one hand, small smart terminal devices often have many restrictions on energy consumption. In actual use, when the energy consumption of terminal devices is too high, the devices often take methods such as frequency reduction to reduce the energy consumption of the devices, which will affect the performance of the terminal devices; on the other hand, the performance of smart terminal devices is often relatively poor, and the memory is relatively small compared to edge devices. As the number of layers of the model increases and the amount of data increases, the memory occupied by the parameters in the model also increases. Therefore, for large models, existing smart terminal devices may not be able to read the entire model into memory at once. At this time, the terminal device will terminate the inference. Therefore, during the inference process, it is necessary to ensure that the number of parameters of the execution part of the terminal device is less than the memory size of the terminal device.

[0034] 4) Existing related research work ignores the computational load constraints of edge devices. Compared with smart terminal devices, edge devices have stronger computing power and storage capabilities. Therefore, previous research work often assumes that the computing power of edge devices is strong enough and the computing latency of edge devices can be ignored. However, on the one hand, with the improvement of the computing performance of smart terminal devices, the computing power gap between edge devices and terminal devices is gradually narrowing, and the larger model also makes the inference latency of edge devices impossible to be ignored; on the other hand, unlike terminal devices that usually only need to perform a single task, edge devices often face multiple computing tasks at the same time. Therefore, when considering the computing power of edge devices, it is necessary to consider the load of edge devices.

[0035] 5) Existing related work ignores the dynamic variability of the edge-to-edge collaborative environment. The network bandwidth and edge device computing load in the edge-to-edge collaborative environment may change during the continuous operation of the inference task, resulting in the original edge-to-edge collaborative model segmentation strategy being unable to achieve the lowest inference latency, and even unable to complete the inference task in extreme environments. Therefore, it is necessary to adaptively adjust the model segmentation strategy according to the dynamic changes in the edge-to-end environment.

[0036] In order to solve the above problems, relevant solutions are provided in the embodiments of the present application. In the heterogeneous Internet of Things environment with end-edge-cloud integration, edge computing brings hope to terminals with limited computing power and energy supply. It assists terminal devices in completing computing tasks by computing offload, saves terminal energy consumption, and improves the performance of terminal devices. With the rapid development of the intelligent Internet of Things and the communication field, the number of terminal devices has increased dramatically, resulting in a rapid increase in data and tasks, which has added great pressure to the load of edge servers. However, edge computing has limited computing, storage, bandwidth and other resources. Therefore, how to make full use of the computing power of terminals and edge nodes is a problem that needs to be solved. It is of great practical significance to build an end-edge collaborative network architecture to effectively schedule the resources of edge servers and study the task offloading and scheduling of end-edge collaboration based on this.

[0037] Task offloading is usually considered to be when the terminal issues a task offloading request, the system selects the appropriate edge server in real time to offload the task according to the current edge server and network environment. However, in some real-world scenarios, meeting the task offloading requirements through real-time resource scheduling will increase resource over-scheduling, resulting in resource waste and higher latency. Therefore, under the condition of meeting the latency constraint, minimizing the total energy consumption is a very realistic and valuable research direction.

[0038] The present application scheme proposes an end-to-edge collaborative task offloading and scheduling optimization algorithm, which aims to minimize the total energy consumption, that is, minimize the nonlinear combination of task offloading delay and energy consumption, while satisfying the delay constraints of IoT applications. The detailed description is as follows.

[0039] According to an embodiment of the present application, a method embodiment of determining a task scheduling strategy is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0040] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal (or electronic device) for implementing a method for determining a task scheduling strategy. Figure 1 As shown, the computer terminal 10 (or electronic device) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0041] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or electronic device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0042] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the task scheduling strategy determination method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the above-mentioned task scheduling strategy determination method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0043] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0044] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or electronic device).

[0045] In the above operating environment, the embodiment of the present application provides a method for determining a task scheduling strategy. Figure 2 is a schematic diagram of a method flow for determining a task scheduling strategy according to an embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:

[0046] Step S202, obtaining a target application corresponding to a user terminal device in a heterogeneous Internet of Things, wherein the target application includes at least one target task that needs to be executed by the user terminal device, and the process of the user terminal executing the target application includes at least one interaction round, and the user terminal executes a set of target tasks in each interaction round;

[0047] Step S204, determining a first delay required for each user terminal device to execute all target tasks corresponding to the interaction round according to the initial task scheduling strategy in each interaction round, wherein the initial task scheduling strategy is used to indicate that the target task is executed locally by the user terminal device or by the edge server cluster;

[0048] Step S206, when the preset constraints are met, adjust the initial task scheduling strategy until all user terminal devices execute all target tasks according to the initial task scheduling strategy with the minimum total energy consumption, and obtain the target task scheduling strategy, wherein the preset constraints include: the first delay is not greater than the second delay, and the second delay is the delay required for each user terminal device to locally execute all target tasks corresponding to the interaction round in each interaction round.

[0049] Through the above steps, the total energy consumption is minimized while satisfying the delay constraints of the IoT application, and the purpose of optimizing the task scheduling effect is achieved, thereby solving the technical problem of being unable to achieve the optimal inference efficiency due to the fact that related technologies often only consider the optimization goal of reducing latency when scheduling tasks, and lack consideration of the energy consumption constraints of terminal devices.

[0050] The following further introduces the method for determining the task scheduling strategy in steps S202 to S206 of the embodiment of the present application.

[0051] Figure 4 is a schematic diagram of a multi-terminal task architecture based on edge clusters provided according to an embodiment of the present application. The present application scheme can be applied to Figure 4 The system architecture shown in Figure 4 As shown in Figure 1, the architecture includes: a target application for task reuse, a group of user terminal devices, and an edge computing system (edge ​​server cluster) configured with multiple edge servers. The user executes a group in each round of interaction with the application. The task quality of service (QoS) is mainly the task execution latency. In this scenario, the same target task may be executed multiple times by multiple user terminal devices at the same time, or by the same user terminal device multiple times in different rounds of interaction.

[0052] by Figure 4 Take the target application architecture shown as an example, which includes 3 user terminal devices, a target application with 10 target tasks and 2 rounds of interaction (i.e., 2 interaction rounds), and an edge computing system (edge ​​server cluster). Among them, target task 1 is a task reused by all user terminal devices. When target task 1 is unloaded and cached in the edge server cluster, as long as one user terminal device uploads the target task, other user terminal devices can directly execute the target task remotely. Therefore, in this type of problem, the task scheduling strategy determination method of the present application is applied to solve the scheduling of task reuse through terminal collaboration, which can enhance the efficient collaboration of heterogeneous network elements in the end and edge clusters, thereby further reducing user-side energy consumption, optimizing network transmission structure, and improving computing resource utilization. The task scheduling strategy determination method of the present application is further explained below.

[0053] In some embodiments of the present application, the initial task scheduling strategy includes: a task offloading strategy, a task uploading strategy and a task caching strategy, wherein the task offloading strategy is used to indicate whether the user terminal device offloads the target task to the edge server cluster for execution in the interaction round, the task uploading strategy is used to indicate whether the user terminal device uploads the target task to the edge server cluster in the interaction round, and the task caching strategy is used to characterize whether the target task has been cached in the edge server cluster in the interaction round.

[0054] Specifically, in this embodiment, three binary variables I are introduced: k,n,m ∈I,U k,n,m ∈U,J k,m ∈J represent the task offloading strategy, task uploading strategy and task caching strategy to be optimized. k,n,m Indicates whether the user terminal device n offloads the target task m to the edge server cluster for execution in the kth round of interaction (i.e., the kth interaction round); U k,n,m Indicates whether the user terminal device n is responsible for uploading the target task m to the edge server cluster in the kth round of interaction; J k,m Indicates whether the target task m already exists in the cluster of edge servers in the kth round.

[0055] According to the above-mentioned task offloading strategy, task uploading strategy and task caching strategy, the energy consumption of each user terminal device in executing each target task in each interaction round can be determined, and then the total energy consumption corresponding to all user terminal devices executing all target tasks according to the initial task scheduling strategy can be determined. The specific steps are as follows.

[0056] In some embodiments of the present application, the method also includes the following steps: determining the executor of each target task based on the task offloading strategy; when the executor is a local user terminal device, determining the energy consumption of the user terminal device executing the target task locally as the energy consumption of the user terminal device executing the target task in the interaction round; and, when the executor is an edge server cluster, determining whether the user terminal device is required to upload the target task to the edge server cluster based on the task caching strategy and / or the task uploading strategy; when it is determined that the user terminal device is required to upload the target task to the edge server cluster, determining the energy consumption of the user terminal device executing the target task in the interaction round based on the energy consumption required for uploading the target task and the energy consumption of executing the target task in the edge server cluster; when it is determined that the user terminal device is not required to upload the target task to the edge server cluster, determining the energy consumption of the user terminal device executing the target task in the interaction round based on the energy consumption of executing the target task in the edge server cluster; and determining the total energy consumption corresponding to all user terminal devices executing all target tasks according to the initial task scheduling strategy based on the energy consumption of each user terminal device executing each target task in each interaction round.

[0057] Specifically, the energy consumption E of the user terminal device n in executing the target task m in the kth round is k,n,m It can be expressed as the following formula:

[0058]

[0059] Among them, V k,n,m Indicates whether the user terminal device n processes the target task m in the kth round of execution, represents the local execution energy consumption when the user terminal device n executes the target task m, represents the remote execution energy consumption of executing the target task m, Indicates whether the data of target task m is cached and the transmission energy consumption of uploading program data. After obtaining the energy consumption E of each user terminal device to execute each target task in each interaction round k,n,m After that, the total energy consumption corresponding to all user terminal devices executing all target tasks according to the initial task scheduling strategy can be determined as:

[0060] In addition, it is also necessary to determine the first delay of user terminal device n to execute all target tasks in the kth round based on the above-mentioned task unloading strategy, task uploading strategy and task caching strategy, that is, to determine the first delay required for each user terminal device to execute all target tasks corresponding to the interaction round in each interaction round according to the initial task scheduling strategy. The specific steps are as follows.

[0061] In some embodiments of the present application, determining the first delay required for each user terminal device to execute all target tasks corresponding to the interaction round in each interaction round according to the initial task scheduling strategy includes the following steps: determining a first task set and a second task set based on a task offloading strategy, wherein the target tasks in the first task set are target tasks that need to be executed locally by the user terminal device in the interaction round, and the target tasks in the second task set are target tasks that need to be offloaded to the edge server cluster for execution in the interaction round; determining a third task set based on a task uploading strategy, wherein the target tasks in the third task set are target tasks that need to be uploaded to the edge server cluster by the user terminal device in the interaction round; determining the third delay as the sum of the upload delay of the user terminal device uploading all target tasks in the third task set and the execution delay of the edge server cluster executing all target tasks in the second task set; determining a fourth delay required for the user terminal device to execute all target tasks in the first task set locally, and taking the larger value of the third delay and the fourth delay as the first delay.

[0062] Specifically, the first delay T of the user terminal device n to execute all target tasks in the kth round is k,n It can be determined by the following formula:

[0063]

[0064] in, represents a task set (i.e., the first task set) determined to be executed locally in the target task of the user terminal device n according to the task offloading decision; represents a task set (i.e., the second task set) determined to be remotely executed in the target task of the user terminal device n according to the task offloading decision; represents the set of target tasks that need to be uploaded according to the task upload strategy in the target tasks of the user terminal device n (that is, the third task set mentioned above), V k,n,a Indicates whether the user terminal device n processes the target task a in the kth round of execution, represents the local delay of user terminal device n executing task a, Indicates the execution of task c, V k,n,b express, Indicates the transmission delay of remote execution of task b.

[0065] After obtaining the total energy consumption corresponding to all target tasks performed by all user terminal devices according to the initial task scheduling strategy and the first delay required for each user terminal device to perform all target tasks corresponding to the interaction round according to the initial task scheduling strategy in each interaction round, the initial task scheduling strategy can be adjusted under the condition of satisfying the preset constraints until the total energy consumption corresponding to all target tasks performed by all user terminal devices according to the initial task scheduling strategy is minimized, and the target task scheduling strategy is obtained. The specific optimization problem is shown in the following formula:

[0066]

[0067] st

[0068]

[0069] in, represents the latency of local execution on device n, d m Indicates the size of the task program data.

[0070] Specifically, the optimization goal is to minimize the total energy consumption of all user terminal devices under the preset constraint that the first delay of each user terminal device does not exceed the total delay of all local executions of the target task (i.e., the above-mentioned second delay). In addition, in this embodiment, in addition to the above-mentioned delay constraint, the preset constraint also includes a cache capacity limitation, as follows.

[0071] In some embodiments of the present application, the preset constraint condition also includes: the data volume of the target task cached in the edge server cluster is not greater than a preset proportional multiple of the total data volume of all target tasks in the target application, wherein the preset proportional multiple is a positive number not greater than 1.

[0072] Specifically, considering the limited cache capacity in the edge server cluster, the data size of all tasks cached in the edge server cluster cannot exceed α times the total amount of all task data (ie, the above-mentioned preset ratio multiple), where 0≤α≤1.

[0073] The following is a further introduction to the process of adjusting the initial task scheduling strategy based on the above optimization problem in the present application solution.

[0074] The present application scheme aims at the end-edge collaboration, and takes advantage of the characteristics of data overlap of homogeneous tasks to propose a greedy two-stage collaborative offloading algorithm to minimize the energy consumption of task execution. The original optimization problem is split into two sub-optimization problems and solved separately. In some embodiments of the present application, the process of adjusting the initial task scheduling strategy includes: a first stage and a second stage, wherein in the first stage, it is assumed that there is available capacity in the edge server cache, and in the second stage, there is no available capacity in the edge server cluster cache;

[0075] Specifically, in the first stage above, it is assumed that there is available capacity in the edge server cache, and the task can be cached to the edge server. In this stage, it is necessary to solve the optimal cache strategy, offload strategy and upload strategy. By applying heuristic rules, it is proposed to construct a mapping function between two offload strategies, upload strategy and cache strategy, so as to convert the optimization problem into an optimization problem with a single cache strategy variable; and in the second stage above, the edge server cache has no available capacity, that is, there is no need to solve the cache strategy, only the optimal offload strategy and upload strategy in this stage need to be solved. The optimization problem can be converted into a 0-1 linear programming problem, which can be solved by the branch and bound method. Then, based on the existing cache strategy and heuristic rules, the upload strategy can be obtained by trimming the upload strategy, which is described in detail below.

[0076] In some embodiments of the present application, adjusting the initial task scheduling strategy includes the following steps: in a first stage, constructing a first mapping function between the task caching strategy and the task offloading strategy, and a second mapping function between the task offloading strategy and the task uploading strategy based on heuristic rules; based on the first mapping function and the second mapping function, converting the process of adjusting the initial task scheduling strategy in the first stage into a process of solving an optimization problem with a single task caching strategy variable; using a target algorithm to solve the optimization problem with a single task caching strategy variable to obtain the initial task scheduling strategy after adjustment in the first stage, wherein the target algorithm includes at least one of the following: a genetic algorithm and a greedy algorithm.

[0077] Specifically, first, P1 is used to represent the first stage. In the first stage, it is assumed that there is available capacity in the edge server cache and the tasks can be cached to the edge server. In this stage, it is necessary to solve the optimal task caching strategy, task offloading strategy and task uploading strategy. By applying heuristic rules, it is proposed to construct a mapping function between two task offloading strategies, task uploading strategies and task caching strategies (that is, the first mapping function and the second mapping function mentioned above), so as to convert the optimization problem into an optimization problem with a single cache strategy variable. The converted problem can be solved by using improved heuristic algorithms based on genetic algorithms, greedy algorithms, etc. The optimization problem at this stage is described as follows:

[0078]

[0079] st

[0080] I *1 =f(J)

[0081] U *1 =g(I *1 )

[0082] C1-C2

[0083] Among them, I *1 , U *1 , J * They are the optimal task offloading strategy, task uploading strategy and task caching strategy obtained in this stage after solving, f() represents the first mapping function, and g() represents the second mapping function.

[0084] Afterwards, when there is no available capacity in the edge server cluster cache in the second stage, there is no need to adjust the task cache strategy; adjusting the initial task scheduling strategy also includes the following steps: converting the process of adjusting the initial task scheduling strategy in the second stage into a solution process for a 0-1 linear programming problem; using the branch and bound method to solve the 0-1 linear programming problem to obtain the initial task scheduling strategy adjusted in the second stage; determining the target task scheduling strategy based on the initial task scheduling strategy adjusted in the first stage and the initial task scheduling strategy adjusted in the second stage.

[0085] Specifically, P2 represents the second stage. In the second stage, the edge server cache has no available capacity, that is, there is no need to solve the cache strategy, only the best unloading strategy and upload strategy for this stage. The optimization problem can be converted into a 0-1 linear programming problem, which can be solved by the branch and bound method. Then, based on the existing cache strategy and heuristic rules, the upload strategy can be obtained by trimming the upload strategy. The optimization problem at this stage is described as follows:

[0086]

[0087] st

[0088] U *2 =h(I 2 )

[0089] C1-C2

[0090] Among them, h() is used to represent the mapping function between the task offloading strategy and the task uploading strategy, I *2 , U *2 are the best unloading strategy and uploading strategy obtained after solving. Finally, I *1 ∪I *2 , U *1 ∪U *2 , J * That is, the obtained task collaborative offloading strategy, upload strategy and cache strategy, that is, the target task strategy.

[0091] Based on the two optimization problems in the above two stages, the present application proposes a greedy two-phase collaborative offloading algorithm TGCOA (Two-phase Greedy-based Collaborative Offloading Algorithm). Figure 5 is a code schematic diagram of a TGCOA algorithm provided according to an embodiment of the present application, such as Figure 5 As shown in the figure, each round of the TGCOA algorithm consists of two stages. First, the target tasks need to be unloaded in descending order according to EDR (Energy Data-size Ratio) until there is not enough cache or the constraints are not met. Then, in this round, non-cached tasks are continuously unloaded from large to small according to MES (Maximum Energy Savings). When a task needs to be uploaded, the user with the highest RE (Remaining Energy) is assigned to the upload task. After K cycles, the final strategy is obtained. Figure 5 Lines 4 to 16 show the idea of ​​caching and offloading tasks from large to small according to EDR, which is used to solve problem P1. Lines 17 to 27 show the idea of ​​offloading tasks from large to small according to MES, which is used to solve P2.

[0092] Specifically, the Energy Data Ratio (EDR) indicator is designed as a candidate indicator for the greedy algorithm, and caching and unloading strategies are formulated for tasks with positive EDR values ​​from large to small, until the cache inventory is insufficient. For tasks that do not have caching and unloading strategies, the Maximum Energy Savings (MES) indicator is designed as a candidate indicator for the greedy algorithm, and unloading strategies are formulated for tasks with positive MES values ​​from large to small. When multiple devices unload a reused task at the same time, the device with the largest current remaining energy RE (Remaining Energy) is optimized to perform the data upload operation.

[0093] In this embodiment, the optimization algorithm proposed in this application is experimentally simulated and verified by using the MATLAB2013a development tool, and compared with four existing competitive methods, namely: local execution (LCA), cache-assisted random offload algorithm (CROA), cache-assisted total offload algorithm (CTOA) and cache-enhanced simulated optimization offload scheme (AOOCS). Under the same test environment and test parameters, the energy consumption cost ratios of these different optimization algorithms are analyzed and compared. Specifically, the energy consumption cost ratios of the optimization algorithms under different cache factors α are shown in the following table.

[0094]

[0095] Taking into account the randomness of task parameter settings, the performance indicator uses the cost ratio, and the energy cost ratio = total energy consumption / total energy consumption of the LCA algorithm. Therefore, the energy cost ratio of the LCA algorithm is always 100%. The above table shows the energy cost ratio of the TGCOA proposed in this application and the four competing methods under different cache factors α. Under different α, the TGCOA algorithm proposed in this application can always achieve better performance than other algorithms. Under different alphas, the energy cost ratio of the proposed TGCOA is reduced by 1.55% to 99.62% compared with the other four methods. When α is greater than or equal to 0.8, CROA and CTOA decrease faster. This is because the increase in cache capacity allows a large number of tasks to be cached in the edge server.

[0096] According to an embodiment of the present application, an embodiment of a task scheduling strategy determination device is also provided. Figure 6 Schematic diagram of a task scheduling strategy determination device provided according to an embodiment of the present application. Figure 6 As shown, the device comprises:

[0097] The application acquisition module 60 is used to acquire a target application corresponding to a user terminal device in a heterogeneous Internet of Things, wherein the target application includes at least one target task that needs to be executed by the user terminal device, and the process of the user terminal executing the target application includes at least one interaction round, and the user terminal executes a set of target tasks in each interaction round;

[0098] The delay determination module 62 is used to determine the first delay required for each user terminal device to execute all target tasks corresponding to the interaction round according to the initial task scheduling strategy in each interaction round, wherein the initial task scheduling strategy is used to indicate that the target task is executed locally by the user terminal device or by the edge server cluster;

[0099] The scheduling optimization module 64 is used to adjust the initial task scheduling strategy while satisfying the preset constraints, until the total energy consumption corresponding to all target tasks performed by all user terminal devices in accordance with the initial task scheduling strategy is minimized, and the target task scheduling strategy is obtained, wherein the preset constraints include: the first delay is not greater than the second delay, and the second delay is the delay required for each user terminal device to locally execute all target tasks corresponding to the interaction round in each interaction round.

[0100] Optionally, the initial task scheduling strategy includes: a task offloading strategy, a task uploading strategy and a task caching strategy, wherein the task offloading strategy is used to indicate whether the user terminal device offloads the target task to the edge server cluster for execution in the interaction round, the task uploading strategy is used to indicate whether the user terminal device uploads the target task to the edge server cluster in the interaction round, and the task caching strategy is used to characterize whether the target task has been cached in the edge server cluster in the interaction round.

[0101] Optionally, the delay determination module 62 is also used to: determine the executor of each target task based on the task offloading strategy; when the executor is a local user terminal device, determine the energy consumption of the user terminal device executing the target task locally as the energy consumption of the user terminal device executing the target task in the interaction round; and, when the executor is an edge server cluster, determine whether the user terminal device is required to upload the target task to the edge server cluster based on the task caching strategy and / or the task uploading strategy; when it is determined that the user terminal device is required to upload the target task to the edge server cluster, determine the energy consumption of the user terminal device executing the target task in the interaction round based on the energy consumption required for uploading the target task and the energy consumption of executing the target task in the edge server cluster; when it is determined that the user terminal device is not required to upload the target task to the edge server cluster, determine the energy consumption of the user terminal device executing the target task in the interaction round based on the energy consumption of executing the target task in the edge server cluster; and determine the total energy consumption corresponding to all user terminal devices executing all target tasks according to the initial task scheduling strategy based on the energy consumption of each user terminal device executing each target task in each interaction round.

[0102] Optionally, determining the first delay required for each user terminal device to execute all target tasks corresponding to the interaction round in each interaction round according to the initial task scheduling strategy includes: determining a first task set and a second task set based on a task offloading strategy, wherein the target tasks in the first task set are target tasks that need to be executed locally by the user terminal device in the interaction round, and the target tasks in the second task set are target tasks that need to be offloaded to the edge server cluster for execution in the interaction round; determining a third task set based on a task uploading strategy, wherein the target tasks in the third task set are target tasks that need to be uploaded to the edge server cluster by the user terminal device in the interaction round; determining the third delay as the sum of the upload delay of the user terminal device uploading all target tasks in the third task set and the execution delay of the edge server cluster executing all target tasks in the second task set; determining the fourth delay required for the user terminal device to execute all target tasks in the first task set locally, and taking the larger value of the third delay and the fourth delay as the first delay.

[0103] Optionally, the preset constraint condition also includes: the data volume of the target task cached in the edge server cluster is not greater than a preset ratio multiple of the total data volume of all target tasks in the target application, wherein the preset ratio multiple is a positive number not greater than 1.

[0104] Optionally, the process of adjusting the initial task scheduling strategy includes: a first stage and a second stage, wherein in the first stage it is assumed that there is available capacity in the edge server cache, and in the second stage there is no available capacity in the edge server cluster cache; adjusting the initial task scheduling strategy includes: in the first stage, constructing a first mapping function between the task cache strategy and the task offloading strategy, and a second mapping function between the task offloading strategy and the task upload strategy based on heuristic rules; based on the first mapping function and the second mapping function, converting the process of adjusting the initial task scheduling strategy in the first stage into a process of solving an optimization problem with a single task cache strategy variable; using a target algorithm to solve the optimization problem with a single task cache strategy variable to obtain the initial task scheduling strategy after adjustment in the first stage, wherein the target algorithm includes at least one of the following: a genetic algorithm, a greedy algorithm.

[0105] Optionally, when there is no available capacity in the edge server cluster cache in the second stage, there is no need to adjust the task cache strategy; adjusting the initial task scheduling strategy also includes: converting the process of adjusting the initial task scheduling strategy in the second stage into a process of solving a 0-1 linear programming problem; using the branch and bound method to solve the 0-1 linear programming problem to obtain the initial task scheduling strategy adjusted in the second stage; determining the target task scheduling strategy based on the initial task scheduling strategy adjusted in the first stage and the initial task scheduling strategy adjusted in the second stage.

[0106] It should be noted that the various modules in the above-mentioned task scheduling strategy determination device can be program modules (for example, a set of program instructions that implement a certain specific function) or hardware modules. For the latter, it can be expressed in the following forms, but is not limited to this: the expression form of each of the above-mentioned modules is a processor, or the functions of each of the above-mentioned modules are implemented by a processor.

[0107] It should be noted that the task scheduling strategy determination device provided in this embodiment can be used to execute Figure 2 The task scheduling strategy determination method shown, therefore, the relevant explanations and descriptions of the above-mentioned task scheduling strategy determination method are also applicable to the embodiments of the present application and will not be repeated here.

[0108] The embodiment of the present application also provides a non-volatile storage medium, the non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the following task scheduling strategy determination method by running the computer program: obtaining a target application corresponding to a user terminal device in a heterogeneous Internet of Things, wherein the target application includes at least one target task that needs to be executed by the user terminal device, and the process of the user terminal executing the target application includes at least one interaction round, and the user terminal executes a group of target tasks in each interaction round; determining a first delay required for each user terminal device to execute all target tasks corresponding to the interaction round according to an initial task scheduling strategy in each interaction round, wherein the initial task scheduling strategy is used to indicate that the target task is executed locally by the user terminal device or by an edge server cluster; when a preset constraint condition is met, adjusting the initial task scheduling strategy until the total energy consumption corresponding to all target tasks executed by all user terminal devices according to the initial task scheduling strategy is minimized, and obtaining the target task scheduling strategy, wherein the preset constraint condition includes: the first delay is not greater than the second delay, and the second delay is the delay required for each user terminal device to locally execute all target tasks corresponding to the interaction round in each interaction round.

[0109] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the task scheduling strategy determination method described in each embodiment of the present application.

[0110] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0111] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0112] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0113] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0114] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0115] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0116] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for determining a task scheduling strategy, It is characterized in that include: Acquire a target application corresponding to a user terminal device in a heterogeneous Internet of Things, wherein the target application includes at least one target task that needs to be executed by the user terminal device, and the process in which the user terminal executes the target application includes at least one interaction round, and the user terminal executes a group of the target tasks in each interaction round; Determine a first delay required for each of the user terminal devices to execute all the target tasks corresponding to the interaction round according to an initial task scheduling strategy in each interaction round, wherein the initial task scheduling strategy is used to indicate that the target task is executed locally by the user terminal device or by an edge server cluster; Under the condition of satisfying the preset constraints, the initial task scheduling strategy is adjusted until the total energy consumption corresponding to all the target tasks executed by all the user terminal devices according to the initial task scheduling strategy is minimized, and the target task scheduling strategy is obtained, wherein the preset constraints include: the first delay is not greater than the second delay, and the second delay is the delay required for each of the user terminal devices to locally execute all the target tasks corresponding to the interaction round in each interaction round.

2. The method for determining a task scheduling strategy according to claim 1, It is characterized in that The initial task scheduling strategy includes: a task offloading strategy, a task uploading strategy and a task caching strategy, wherein the task offloading strategy is used to indicate whether the user terminal device offloads the target task to the edge server cluster for execution in the interaction round, the task uploading strategy is used to indicate whether the user terminal device uploads the target task to the edge server cluster in the interaction round, and the task caching strategy is used to characterize whether the target task has been cached in the edge server cluster in the interaction round.

3. The method for determining a task scheduling strategy according to claim 2, It is characterized in that The method further comprises: Determining the executor of each of the target tasks according to the task offloading strategy; In the case where the executor is the local user terminal device, the energy consumption of the user terminal device executing the target task locally is determined as the energy consumption of the user terminal device executing the target task in the interaction round; and In the case where the executor is the edge server cluster, determining whether the user terminal device is required to upload the target task to the edge server cluster according to the task cache strategy and / or the task upload strategy; In the case where it is determined that the user terminal device needs to upload the target task to the edge server cluster, determining the energy consumption of the user terminal device executing the target task in the interaction round according to the energy consumption required for uploading the target task and the energy consumption of executing the target task in the edge server cluster; In the case where it is determined that the user terminal device does not need to upload the target task to the edge server cluster, the energy consumption of the user terminal device executing the target task in the interaction round is determined by the energy consumption of executing the target task in the edge server cluster; The total energy consumption corresponding to all the user terminal devices executing all the target tasks according to the initial task scheduling strategy is determined based on the energy consumption of each of the user terminal devices executing each of the target tasks in each of the interaction rounds.

4. The method for determining a task scheduling strategy according to claim 2, It is characterized in that Determining the first time delay required for each of the user terminal devices to execute all the target tasks corresponding to the interaction round according to the initial task scheduling strategy in each interaction round includes: According to the task offloading strategy, a first task set and a second task set are determined, wherein the target tasks in the first task set are the target tasks that need to be executed locally by the user terminal device in the interaction round, and the target tasks in the second task set are the target tasks that need to be offloaded to the edge server cluster for execution in the interaction round; Determine a third task set according to the task uploading strategy, wherein the target task in the third task set is the target task that the user terminal device needs to upload to the edge server cluster in the interaction round; Determine the sum of the upload delay of the user terminal device uploading all the target tasks in the third task set and the execution delay of the edge server cluster executing all the target tasks in the second task set as the third delay; Determine a fourth delay required for the user terminal device to locally execute all the target tasks in the first task set, and use a larger value between the third delay and the fourth delay as the first delay.

5. The method for determining a task scheduling strategy according to claim 2, It is characterized in that The preset constraint condition also includes: the data volume of the target task cached in the edge server cluster is not greater than a preset ratio multiple of the total data volume of all the target tasks in the target application, wherein the preset ratio multiple is a positive number not greater than 1.

6. The method for determining a task scheduling strategy according to claim 5, It is characterized in that The process of adjusting the initial task scheduling strategy includes: a first stage and a second stage, wherein in the first stage, it is assumed that there is available capacity in the edge server cache, and in the second stage, there is no available capacity in the edge server cluster cache; adjusting the initial task scheduling strategy includes: In the first stage, a first mapping function between the task cache strategy and the task offloading strategy, and a second mapping function between the task offloading strategy and the task uploading strategy are constructed according to heuristic rules; According to the first mapping function and the second mapping function, converting the process of adjusting the initial task scheduling strategy in the first stage into a process of solving an optimization problem with a single task cache strategy variable; The optimization problem with a single task cache strategy variable is solved by using a target algorithm to obtain the initial task scheduling strategy after the first stage adjustment, wherein the target algorithm includes at least one of the following: a genetic algorithm and a greedy algorithm.

7. The method for determining a task scheduling strategy according to claim 6, It is characterized in that In the case where there is no available capacity in the edge server cluster cache in the second stage, there is no need to adjust the task cache strategy; Adjusting the initial task scheduling strategy also includes: Converting the process of adjusting the initial task scheduling strategy in the second stage into a process of solving a 0-1 linear programming problem; Using the branch and bound method, the 0-1 linear programming problem is solved to obtain the initial task scheduling strategy after the second stage adjustment; The target task scheduling strategy is determined according to the initial task scheduling strategy adjusted in the first stage and the initial task scheduling strategy adjusted in the second stage.

8. A task scheduling strategy determination device, It is characterized in that include: An application acquisition module, used to acquire a target application corresponding to a user terminal device in a heterogeneous Internet of Things, wherein the target application includes at least one target task that needs to be executed by the user terminal device, and the process of the user terminal executing the target application includes at least one interaction round, and the user terminal executes a group of the target tasks in each interaction round; a delay determination module, used to determine a first delay required for each of the user terminal devices to execute all the target tasks corresponding to the interaction round in accordance with an initial task scheduling strategy in each interaction round, wherein the initial task scheduling strategy is used to indicate that the target task is executed locally by the user terminal device or by an edge server cluster; A scheduling optimization module is used to adjust the initial task scheduling strategy while satisfying preset constraints until the total energy consumption corresponding to all the target tasks performed by all the user terminal devices in accordance with the initial task scheduling strategy is minimized, thereby obtaining a target task scheduling strategy, wherein the preset constraints include: the first delay is not greater than the second delay, and the second delay is the delay required for each of the user terminal devices to locally execute all the target tasks corresponding to the interaction round in each interaction round.

9. An electronic device, It is characterized in that include: A memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the program executes the task scheduling strategy determination method described in any one of claims 1 to 7 when running.

10. A non-volatile storage medium, It is characterized in that The non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the task scheduling strategy determination method described in any one of claims 1 to 7 by running the computer program.

11. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the task scheduling strategy determination method described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Task scheduling method and device and storage medium

    CN120386611A