A task scheduling method and system based on edge computing

By encapsulating computing tasks and related data into task blocks and using machine learning algorithms for merging and sorting, the problem of edge node load imbalance in large-scale IoT systems is solved, and optimal scheduling of computing tasks and data timeliness are achieved. properties, improving the reliability and efficiency of the system.

CN111400007BActive Publication Date: 2024-09-17NINGBO TELIAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010177979.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-13
Publication Date
2024-09-17
Estimated Expiration
2040-03-13

AI Technical Summary

Technical Problem

In large-scale IoT systems, the spatial and temporal changes in computing tasks and data volume are large, resulting in unbalanced load on edge nodes and making it difficult to achieve optimal scheduling of computing tasks.

Method used

Adopting a task scheduling method based on edge computing, by encapsulating computing tasks and related data into task blocks, using machine learning algorithms (BP neural network model) to merge and sort task block features, according to the matching degree of edge nodes and task blocks Scheduling is performed to ensure that task blocks are executed on appropriate edge nodes.

Benefits of technology

It achieves optimal scheduling of computing tasks, reduces communication load, improves system reliability and efficiency, and ensures data timeliness and accuracy of processing results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111400007B
    Figure CN111400007B
Patent Text Reader

Abstract

The present invention proposes a task scheduling method based on edge computing, comprising the following steps: S1, collecting or generating data; S2, generating computing tasks and calling data related to the computing tasks; S3, encapsulating computing tasks and related data, obtaining task blocks, and generating task block features; S4, screening schedulable task blocks, merging and sorting schedulable task blocks according to the similarity of task block features, and generating task block queues; S5, scheduling schedulable task blocks to matching edge nodes according to the matching degree between edge nodes and schedulable task blocks in each task block queue, and the edge nodes perform computing tasks. Based on the method, a matching system is designed, which is conducive to realizing the optimal scheduling of computing tasks by classifying the features of task blocks in large-scale Internet of Things systems where computing tasks and data volumes vary greatly in space and time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of task scheduling and neural network technology, and more specifically to a task scheduling method and system based on edge computing. Background Art

[0002] The Internet of Things aims to achieve interconnection and data sharing between all things by using technical means such as sensing, communication, and intelligent control. In large-scale application scenarios such as smart cities, smart buildings, smart business districts, and smart communities, the Internet of Things can be used as a medium to connect sensors of different types, functions, and locations in cities or building complexes, such as temperature, light, traffic volume, infrared, and other types of sensors, as well as smart devices such as video cameras, air conditioners, programmable lamps, access control machines, and cloud platforms. The scale of the Internet of Things formed in this way is very large. The amount of data generated, transmitted, and processed in the Internet of Things is massive, and there are also massive, parallel, and diverse types of data computing tasks to be performed. In order to reduce costs, enhance system reliability, and promote the collection of big data, the hardware and software structure of sensors and smart devices at the front end of the Internet of Things is simplified. The front end is only responsible for collecting and generating data and feeding back calculation results, so that both data and computing tasks are taken to the background of the Internet of Things for execution. However, allocating all data computing tasks to the cloud platform not only puts huge load pressure on the server that hosts the cloud platform, but also puts pressure on the bandwidth of the Internet of Things because the sensors and smart devices at the front end of the Internet of Things need to transmit data with the cloud platform, and the communication traffic is very large.

[0003] At present, more and more large-scale IoTs adopt edge computing architecture, that is, a certain number of edge nodes with communication transmission, data storage and computing task execution capabilities are deployed at the edge of the IoT close to the front-end sensors and smart devices. They are responsible for collecting and storing data from the front-end sensors and smart devices, as well as executing computing tasks according to needs and feeding back computing results to the front-end. Edge nodes can be implemented in the form of local gateways and local servers of the IoT. Only when the current computing task exceeds the authority or execution capability of the edge node, the computing task is uploaded to the cloud platform for execution; in this way, on the one hand, massive computing tasks and related data are dispersed to a certain number of edge nodes, avoiding excessive load on a single node. At the same time, most of the data communication transmission required for computing tasks is carried out between the front-end sensors, smart devices and edge nodes close to the front end, reducing the communication load.

[0004] However, for large-scale IoT systems, the computing tasks and data volumes generated vary greatly in space and time. If a fixed IoT architecture is used, that is, an edge node receives computing tasks and related data from a fixed number of sensors and smart devices, the loads borne by each edge node will be very unbalanced. For example, some edge nodes are idle, while the computing tasks, storage space, and communication capabilities of some edge nodes are overloaded. Obviously, in order to reasonably optimize the IoT system, it is necessary to allocate and schedule computing tasks and related data between edge nodes; since the computing tasks and data volumes in large-scale IoT are massive and highly concurrent, and the imbalance in space and time is relatively strong, in addition, the data life cycle and the time requirements of computing tasks are very diverse, resulting in the allocation and scheduling of computing tasks and related data between edge nodes. It is very complicated and difficult to achieve optimization.

[0005] Therefore, how to reasonably schedule computing tasks and their related data and evenly distribute computing tasks to matching edge nodes is an urgent problem to be solved by those skilled in the art. Summary of the invention

[0006] In view of this, the present invention provides a task scheduling method and system based on edge computing. For massive, high-concurrency, unbalanced computing tasks and related data, the scheduling paradigm unit encapsulates the computing task and its related data into a task block according to the characteristics of each computing task and its related data; based on a machine learning algorithm, the task blocks are merged and sorted according to the similarity of the characteristics to form multiple parallel task block queues; finally, according to the matching degree between the edge node and the task block, the task blocks in each task block queue are scheduled to the edge node suitable for the task block, so as to achieve the optimal scheduling of computing tasks in a large-scale Internet of Things system where the computing tasks and data volume vary greatly in space and time.

[0007] In order to achieve the above object, the present invention adopts the following technical solution:

[0008] A task scheduling method based on edge computing includes the following steps:

[0009] S1, collect or generate data;

[0010] S2, generating a computing task and calling data related to the computing task;

[0011] S3, encapsulates the computing task and its related data, obtains the task block, and generates the task block features;

[0012] S4, screening the schedulable task blocks, merging and sorting the schedulable task blocks according to the similarity of the task block features, and generating a task block queue;

[0013] S5, according to the matching degree between the edge node and the schedulable task blocks in each task block queue, the schedulable task blocks are scheduled to the matching edge nodes, and the edge nodes execute the computing tasks.

[0014] Specifically, the front-end nodes of the Internet of Things include sensors and smart devices, which are used to collect or generate data by themselves. The data has a life cycle. The data is called before the end of the life cycle of the data. When the life cycle is exceeded, the data becomes invalid. The existence of the life cycle ensures the timeliness of the data called when the edge node performs computing tasks.

[0015] Preferably, the computing task is generated by the IoT front-end node according to its own functions and needs; the constraint time of the computing task includes the scheduled completion time of the computing task and the life cycle of related data called by the computing task, and the computing task needs to be completed within the constraint time; the scheduled completion time of the computing task is preset according to the needs of the IoT front-end node that generates the computing task, and the generation of the constraint time ensures that the processing results meet the needs of the IoT front-end node, while ensuring the timeliness of the generation of the processing results.

[0016] Preferably, the task block characteristics include the time requirement of the computing task, the life cycle of the computing task-related data, the task type of the computing task, the data type and data volume of the related data, which is conducive to the subsequent merging and sorting of the task blocks according to the task block characteristics, and integrating the task blocks with high similarity to generate a task block queue.

[0017] Specifically, when task blocks are classified according to similarity, based on a machine learning algorithm, taking the BP neural network model as an example, the BP neural network model is trained with a large number of task block feature samples to obtain a BP neural network model that can accurately output the similarity between task blocks, and the task block features of the task blocks to be classified are input into the BP neural network model. The similarity between the task block and the task blocks in each task block queue is output through the BP neural network model, and the task block and the task blocks with large similarity are classified into the same task block queue to form multiple parallel task block queues. Using a machine learning algorithm, task blocks can be quickly and accurately classified according to similarity, meeting the classification requirements of massive and real-time computing tasks of the Internet of Things.

[0018] Preferably, a large-scale Internet of Things system has a massive, concurrent task block, and it is not ruled out that the task blocks are associated with each other. The computing task of the associated task block needs to call the processing result of the previous task block to complete the computing task of the task block. Therefore, not all task blocks can be scheduled at the same time. The method of screening the schedulable task blocks in S4 is as follows: when the task blocks are associated with each other, the associated task blocks are integrated in the order of operation logic to generate a task tree, and the task blocks in the task tree that can currently execute computing tasks are screened as schedulable task blocks; independent task blocks that are not associated with other task blocks are screened as schedulable task blocks.

[0019] Based on the above method, the following system is generated:

[0020] A task scheduling system based on edge computing includes: an Internet of Things front-end node, a scheduling paradigm unit, and an edge node; wherein,

[0021] The scheduling paradigm unit includes a feature generation subunit, a classification subunit and an allocation subunit;

[0022] The IoT front-end node is used to collect or generate data;

[0023] The IoT front-end node is also used to generate computing tasks and call data related to the computing tasks;

[0024] The feature generation subunit is used to encapsulate the computing task and its related data, obtain the task block, and generate the task block feature;

[0025] The classification subunit is used to screen the schedulable task blocks, merge and sort the schedulable task blocks according to the similarity of the task block features, and generate a task block queue;

[0026] The allocation subunit is used to schedule the schedulable task blocks to the matching edge nodes according to the matching degree between the edge nodes and the schedulable task blocks in each task block queue;

[0027] The edge node is used to execute the computing tasks in the matching schedulable task block.

[0028] Specifically, the data has a life cycle, and the data is called before the end of the life cycle of the data. When the life cycle is exceeded, the data becomes invalid.

[0029] Specifically, the time constraint of the computing task includes the scheduled completion time of the computing task and the life cycle of related data called by the computing task.

[0030] Specifically, the task block characteristics include the time requirement of the computing task, the life cycle of the data related to the computing task, the task type of the computing task, and the data type and data volume of the related data.

[0031] Preferably, the classification subunit screens the schedulable task blocks in the following manner: when the task blocks are interrelated, the related task blocks are integrated in the order of operational logic to generate a task tree, and the task blocks in the task tree that can currently execute computing tasks are screened as schedulable task blocks; independent task blocks that are not associated with other task blocks are screened as schedulable task blocks.

[0032] The present invention has the following beneficial effects:

[0033] It can be seen from the above technical solution that, based on the prior art, the present invention proposes a task scheduling method and system based on edge computing. In a large-scale Internet of Things system where computing tasks and data volumes vary greatly in space and time, the optimal scheduling of computing tasks is achieved by classifying task blocks according to their features. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0035] Figure 1 It is a flow chart of a task scheduling method based on edge computing;

[0036] Figure 2 This is a block diagram of a task scheduling system based on edge computing. DETAILED DESCRIPTION

[0037] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] like Figure 1 As shown, the present invention provides the following method:

[0039] A task scheduling method based on edge computing includes the following steps:

[0040] S1, collect or generate data;

[0041] Specifically, data is collected or generated by the front-end nodes of the Internet of Things, wherein the front-end nodes of the Internet of Things include sensors and smart devices located at the front end of the Internet of Things; sensors can collect data, such as thermal sensors, light sensors, etc., which can automatically detect temperature, light intensity and other data at the front end of the Internet of Things, and smart devices usually have sensitive and accurate perception functions, correct thinking and judgment functions, and effective execution functions. Therefore, smart devices are used as the front end of the Internet of Things to collect and generate data, such as smart phones, which can obtain user needs and accurately convert user needs into demand data that can be transmitted by the Internet of Things.

[0042] The collected or generated data has a preset life cycle. If the life cycle is exceeded, the data will become invalid. For example, the life cycle of light intensity data collected by photosensors installed around smart lamps is 0-30 minutes. Due to changes in sunlight or other light sources, after 30 minutes, the previously collected light intensity data will not be able to truly reflect the current light intensity, so the previously collected data is invalid; therefore, if it is necessary to call a certain data to execute a computing task, the call to the data must be implemented before the end of the life cycle of the data.

[0043] S2, generating a computing task and calling data related to the computing task;

[0044] Specifically, the IoT front-end node generates a computing task according to its own functions or needs; and the data required to complete the computing task can be data collected or generated by the IoT front-end node, or data collected or generated by other IoT front-end nodes can be called. For example, when a smart light completes its lighting calculation task, it needs to obtain light intensity data collected by photosensors in a certain area around it. At this time, it is necessary not only to obtain the light intensity data collected by the IoT front-end node, but also to call the light intensity data collected by other photosensors within a certain range.

[0045] In addition, the computing task is subject to the scheduled completion time of the computing task and the life cycle of the related data called by the computing task, so the completion of each computing task has a certain time limit.

[0046] S3, encapsulates the computing task and its related data, obtains the task block, and generates the task block features;

[0047] Specifically, task block features are generated based on the features of the computing task and its related data. The task block features include the time requirement of the computing task, the life cycle of the data related to the computing task, the task type of the computing task, and the data type and amount of the related data.

[0048] S4, screening the schedulable task blocks, merging and sorting the schedulable task blocks according to the similarity of the task block features, and generating a task block queue;

[0049] Since large-scale IoT systems have a large number of concurrent task blocks, it is possible that there are associations between task blocks. The computational tasks of the associated task blocks need to call the processing results of the previous task blocks to complete the computational tasks of the task blocks. For example, computational task B needs to obtain the computational results of computational task A before it can be executed; or the result of computational task A is used to determine whether to execute computational task B or computational task C next. Therefore, not all task blocks can be scheduled at the same time, and whether a task block can be scheduled depends on the computational progress of other task blocks that are associated with the task block. In order to filter out the task blocks that can be scheduled in such a complex task block relationship, it is necessary to integrate the associated task blocks into a task tree in the order of operation logic, and filter the task blocks in the task tree that can currently execute computational tasks as schedulable task blocks; in addition, since some task blocks are not associated with other task blocks, these independent task blocks can be directly used as schedulable task blocks.

[0050] Specifically, a machine learning algorithm is used to merge and sort the schedulable task blocks. Taking the BP neural network model as an example, the BP neural network model is first trained using a large number of task block feature samples of the task blocks, that is, the task block feature samples are input into the input layer, and each neuron in the input layer receives the task block feature samples and transmits them to the middle layer for processing and generates similarities with other task blocks. The output layer outputs the results, and the output results are compared with the expected output results. The weights of each layer are continuously corrected until the similarity between the output and other task blocks is within an acceptable range of the expected results. In this way, a BP neural network model that can accurately output the similarity between task blocks is obtained, and then the task block features of the task blocks to be classified are input into the BP neural network model, the similarity between task blocks is output, and the task block and the task blocks with large similarity are placed in the same task block queue to form multiple parallel task block queues.

[0051] S5, according to the matching degree between the edge node and the schedulable task blocks in each task block queue, the schedulable task blocks are scheduled to the matching edge nodes, and the edge nodes execute the computing tasks.

[0052] Specifically, according to the characteristics of the task blocks in each task block queue, namely, the time requirements of the computing tasks, the life cycle of the data related to the computing tasks, the task type of the computing tasks, the data type and amount of the related data, the edge nodes responsible for carrying the computing tasks are matched with their own computing power and storage capacity to finally obtain the allocated edge nodes.

[0053] Then, the task blocks matching the edge nodes are allocated to the edge nodes; and the computing tasks are executed by the edge nodes.

[0054] like Figure 2 As shown, based on the above method, the following system is set up:

[0055] A task scheduling system based on edge computing includes: an Internet of Things front-end node 1, a scheduling paradigm unit 2, and an edge node 3; wherein,

[0056] The scheduling paradigm unit 2 includes a feature generation subunit 21, a classification subunit 22, and an allocation subunit 23;

[0057] The IoT front-end node 1 is used to collect or generate data;

[0058] The IoT front-end node 1 is also used to generate computing tasks and call data related to the computing tasks;

[0059] The feature generation subunit 21 is used to encapsulate the computing task and its related data, obtain the task block, and generate the task block feature;

[0060] The classification subunit 22 is used to screen the schedulable task blocks, merge and sort the schedulable task blocks according to the similarity of the task block characteristics, and generate a task block queue;

[0061] The allocation subunit 23 is used to schedule the schedulable task blocks to the matching edge nodes 3 according to the matching degree between the edge nodes 3 and the schedulable task blocks in each task block queue;

[0062] The edge node 3 is used to execute the computing tasks in the matching schedulable task blocks.

[0063] Specifically, the data has a life cycle, and the data is called before the end of the life cycle of the data. When the life cycle is exceeded, the data becomes invalid.

[0064] Specifically, the time constraint of the computing task includes the scheduled completion time of the computing task and the life cycle of the related data called by the computing task.

[0065] Specifically, the task block characteristics include the time requirement of the computing task, the life cycle of the data related to the computing task, the task type of the computing task, the data type and data volume of the related data.

[0066] In order to further optimize the above technical features, the classification sub-unit 22 screens the schedulable task blocks as follows: when the task blocks are interrelated, the related task blocks are integrated according to the operation logic order to generate a task tree, and the task blocks in the task tree that can currently execute computing tasks are screened as schedulable task blocks; independent task blocks that are not related to other task blocks are screened as schedulable task blocks.

[0067] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0068] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A task scheduling method based on edge computing, characterized in that: The steps include: S1, collect or generate data; S2, generating a computing task and calling data related to the computing task; the time constraint of the computing task includes the scheduled completion time of the computing task and the life cycle of the related data called by the computing task; S3, encapsulating the computing task and the data related to the computing task call, obtaining the task block, and generating the task block characteristics; the task block characteristics include the time requirement of the computing task, the life cycle of the data related to the computing task call, the task type of the computing task, and the data type and data volume of the data related to the computing task call; S4, screening schedulable task blocks, merging and sorting the schedulable task blocks according to the similarity of the task block features, and generating a task block queue; the method of screening the schedulable task blocks is as follows: when the task blocks are related to each other, the related task blocks are integrated according to the operation logic order to generate a task tree, and the task blocks in the task tree that can currently execute computing tasks are screened as schedulable task blocks; independent task blocks that are not related to other task blocks are screened as schedulable task blocks; The schedulable task blocks are merged and sorted, specifically as follows: first, the task block feature samples of the task blocks are used to train the BP neural network model: the task block feature samples are input into the input layer, each neuron in the input layer receives the task block feature samples, and transmits them to the middle layer for processing and generating similarities with other task blocks, the output layer outputs the results, the output results are compared with the expected output results, and the weights of each layer are continuously corrected until the similarities with other task blocks are within the acceptable range of the expected results, then a BP neural network model that outputs the similarities between task blocks is obtained, and then the task block features of the task blocks to be classified are input into the BP neural network model, the similarities between task blocks are output, and the task blocks with large similarities are classified into the same task block queue to form multiple parallel task block queues; S5, according to the matching degree between the edge node and the schedulable task blocks in each task block queue, the schedulable task blocks are scheduled to the matching edge nodes, and the edge nodes perform the computing tasks; The relevant data is called before the life cycle of the relevant data called by the computing task ends. The relevant data becomes invalid when the life cycle is exceeded.

2. A task scheduling system based on edge computing, using the method of claim 1, characterized in that: include: IoT front-end nodes, scheduling paradigm units, and edge nodes; among them, The scheduling paradigm unit includes a feature generation subunit, a classification subunit and an allocation subunit; The IoT front-end node is used to collect or generate data; The IoT front-end node is also used to generate computing tasks and call data related to the computing tasks; The feature generation subunit is used to encapsulate the computing task and the relevant data called by the computing task, obtain the task block, and generate the task block feature; The classification subunit is used to screen the schedulable task blocks, merge and sort the schedulable task blocks according to the similarity of the task block features, and generate a task block queue; The allocation subunit is used to schedule the schedulable task blocks to the matching edge nodes according to the matching degree between the edge nodes and the schedulable task blocks in each task block queue; The edge node is used to execute the computing tasks in the matching schedulable task block.

3. The task scheduling system according to claim 2, characterized in that: The relevant data is called before the life cycle of the relevant data called by the computing task ends. The relevant data becomes invalid when the life cycle is exceeded.

4. The task scheduling system according to claim 2, characterized in that: The constraint time of the computing task includes the scheduled completion time of the computing task and the life cycle of the related data called by the computing task.

5. The task scheduling system according to claim 2, characterized in that: The task block characteristics include the time requirement of the computing task, the life cycle of the relevant data called by the computing task, the task type of the computing task, and the data type and data volume of the relevant data called by the computing task.

6. The task scheduling system according to claim 2, characterized in that: The classification subunit screens the schedulable task blocks in the following manner: when the task blocks are interrelated, the related task blocks are integrated in the order of operation logic to generate a task tree, and the task blocks in the task tree that can currently execute computing tasks are screened as schedulable task blocks; independent task blocks that are not related to other task blocks are screened as schedulable task blocks.