Edge-to-edge collaborative task processing method, device and system adapted to power Internet of Things
Through the collaborative processing of multiple edge IoT agents in the edge IoT, the optimal edge IoT agent is selected for task collaboration, which solves the problem of network pressure during the installation and upgrading of APPs in the power IoT, reduces network overhead, and has important Economic value.
Patent Information
- Application Number
- CN202110959114.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-20
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2041-08-20
AI Technical Summary
In the power Internet of Things, batch updates of edge IoT agents lead to congestion of Internet of Things management platform servers and large network costs. The existing technology does not have the ability to collaborate side by side, and cannot effectively solve the network pressure during APP installation and upgrading. question.
Through multiple edge IoT agents collaborative task processing, a task collaborative evaluation request is sent to the edge cloud, and the edge IoT agent that meets time constraints and has the lowest cost is selected as the collaborative object, so as to realize the collaborative processing of file download and installation upgrade, and reduce network load .
It effectively solves the network pressure of APP installation and upgrading on the power Internet of Things, greatly reduces the network overhead of the power Internet of Things, and has important economic value.
Smart Images

Figure CN113721938B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information technology, and specifically relates to an edge-to-edge collaborative task processing method adapted to the power Internet of Things, and also relates to an edge-to-edge collaborative task processing device adapted to the power Internet of Things, and an edge-to-edge collaborative task processing system adapted to the power Internet of Things. Background Art
[0002] When building the power Internet of Things, building a smart IoT system based on edge IoT agents and edge computing frameworks has become a key technology. However, the current edge computing framework is based on the ability of cloud-edge collaboration to achieve remote management and monitoring of edge IoT agents by the IoT management platform, and does not yet have the ability of edge-edge collaboration. At the same time, for various forms of edge IoT agents such as smart distribution terminals and integrated terminals, they are deployed in distribution stations, substations, and outdoor environments to collect and forward power supply and energy metering, distribution information, and electricity consumption information.
[0003] In the process of implementing business application management and control on the IoT management platform, the IoT management platform will send control commands for APP installation and upgrade to the edge IoT agent according to the needs of the business system. The edge IoT agent then downloads the installation file from the file server of the IoT management platform and completes the installation and upgrade process. Due to the large number of edge IoT agents, batch updates will cause network congestion on the IoT management platform server, and large-scale APP downloads will incur high network costs. This has become a key issue in the promotion of the power IoT. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and provide an edge-to-edge collaborative task processing method suitable for the power Internet of Things. Through the collaborative task processing of multiple edge IoT agents, the technical problem in the prior art that the edge IoT agents each download installation files and complete the installation and upgrade process is solved.
[0005] To solve the above technical problems, the technical solution of the present invention is as follows.
[0006] In a first aspect, the present invention provides an edge-to-edge collaborative task processing method adapted to the power Internet of Things, comprising the following process:
[0007] In response to receiving a task command sent by the IoT management platform, sending a task collaborative evaluation request to other edge IoT agents in the edge cloud;
[0008] Receiving response information returned by other edge IoT agents, wherein the response information includes the cost of task collaborative processing and the task scheduling time calculated by the other edge IoT agents based on the task command content;
[0009] Based on the cost of collaborative processing of tasks of each edge IoT agent and the task scheduling time, the edge IoT agent that meets the time constraint and has the lowest cost is selected as the collaborative object;
[0010] Send a task collaboration request to the edge IoT agent corresponding to the collaboration object;
[0011] Receiving response information returned by the collaborative object, wherein the response information includes a file obtained by the collaborative object performing the task collaboratively;
[0012] Continue to execute the task based on the obtained file and return the task execution result to the IoT management platform.
[0013] Optionally, the content of the task command includes: task type, file name, server path, file hash value, file size and / or maximum response time T m ;in:
[0014] Task type: including file download, APP installation and APP upgrade types;
[0015] Server path: including the absolute path where the file is saved on the IoT management platform;
[0016] File hash value: includes the hash value obtained by performing summary calculation on the file;
[0017] Maximum response time T m : Includes the time required for the IoT management platform to require the edge IoT agent to perform the task. The execution and response must be completed within this time period at the latest.
[0018] Optionally, the task collaborative evaluation request includes: collaborative request node IP, task type, file name, server path, file hash value, file size and / or request maximum response time T r ;in:
[0019] Collaborative request node IP: includes the edge IoT proxy IP address that sends the request;
[0020] Request maximum response time T r : It includes the need to return a response message within a specified time period, otherwise it is considered a timeout.
[0021] Optionally, selecting an edge IoT agent that satisfies the time constraint and has the lowest cost as a collaborative object based on the cost of collaborative processing of tasks of each edge IoT agent and the task scheduling time includes:
[0022] Based on the task scheduling time of each edge IoT agent, determine whether it meets T m <T c +T s Time constraints, where T mis the maximum response time, T c is the download delay time, T s Schedule time for tasks;
[0023] The edge IoT agents that meet the time constraint conditions are taken as candidate edge IoT agents to form a candidate edge IoT agent set;
[0024] Select C+a*T from the candidate edge IoT agent set c The edge IoT agent with the lowest cost is taken as the collaborative object, where C is the traffic tariff and a is a constant.
[0025] Optionally, it also includes:
[0026] If there is no edge IoT agent that meets T m <T c +T s If the time constraint is not met, the edge IoT agent will no longer initiate a collaborative request and complete the file download on its own.
[0027] Optionally, the task collaboration request includes: collaboration request node IP, file name, server path, file hash value and / or task start delay T n ; Among them: Task start delay T n Indicates that the task is in T n Start execution after time.
[0028] In a second aspect, the present invention further provides an edge-to-edge collaborative task processing device adapted to the power Internet of Things, comprising:
[0029] A collaborative evaluation request module, configured to send a task collaborative evaluation request to other edge IoT agents in the edge cloud in response to receiving a task command sent by the IoT management platform; the task includes file download, APP installation or APP upgrade;
[0030] A collaborative evaluation receiving module, used to receive response information returned by other edge IoT agents, wherein the response information includes the cost of task collaborative processing and task scheduling time calculated by other edge IoT agents based on the task command content;
[0031] A collaborative object selection module is used to select an edge IoT agent that meets the time constraint and has the lowest cost as a collaborative object based on the cost of collaborative processing of each edge IoT agent task and the task scheduling time;
[0032] A collaborative request module is used to send a task collaborative request to the edge IoT agent corresponding to the collaborative object;
[0033] A collaborative result receiving module, used to receive response information returned by the collaborative object, wherein the response information includes files obtained by the collaborative object performing task collaboration;
[0034] The task execution module is used to continue executing the task based on the obtained file and return the task execution result to the IoT management platform.
[0035] Optionally, in the collaborative object selection module, based on the cost of collaborative processing of each edge IoT agent task and the task scheduling time, an edge IoT agent that meets the time constraint and has the lowest cost is selected as the collaborative object, including:
[0036] Based on the task scheduling time of each edge IoT agent, determine whether it meets T m <T c +T s Time constraints, where T m is the maximum response time, T c is the download delay time, T s Schedule time for tasks;
[0037] The edge IoT agents that meet the time constraint conditions are taken as candidate edge IoT agents to form a candidate edge IoT agent set;
[0038] Select C+a*T from the candidate edge IoT agent set c The edge IoT agent with the lowest cost is taken as the collaborative object, where C is the traffic tariff and a is a constant.
[0039] In a third aspect, the present invention further provides an edge-to-edge collaborative task processing method adapted to the power Internet of Things, comprising the following process:
[0040] Receive a task collaborative evaluation request sent by an edge IoT agent in the edge cloud;
[0041] Based on the task command content in the task collaborative evaluation request, the cost of task collaborative processing and the task scheduling time are calculated; and the cost and task scheduling time are combined into a response message and returned to the edge IoT agent of the request;
[0042] Receive task collaboration requests sent by the edge IoT agent;
[0043] Execute the task collaboratively to obtain the corresponding file; and combine this file into the task collaborative processing result and return it to the requesting edge IoT agent.
[0044] Optionally, the executing task and collaboratively obtaining corresponding files include:
[0045] Compare whether the local cache contains the specified file;
[0046] If the file exists in the local cache, it is obtained directly;
[0047] If the file does not exist in the local cache, the file is requested from the IoT management platform, and the file download is completed, the file is obtained and stored in the local cache.
[0048] In a fourth aspect, the present invention further provides an edge-to-edge collaborative task processing device adapted to the power Internet of Things, comprising:
[0049] A collaborative evaluation request receiving module is used to receive a task collaborative evaluation request sent by an edge IoT agent in an edge cloud;
[0050] The collaborative evaluation calculation module is used to calculate the cost of task collaborative processing and the task scheduling time based on the task command content in the task collaborative evaluation request; and the cost and the task scheduling time are combined into a response information and returned to the edge IoT agent of the request;
[0051] A collaborative request receiving module is used to receive a task collaborative request sent by an edge IoT agent;
[0052] The collaborative processing module is used to execute tasks collaboratively to obtain corresponding files; and to combine these files into task collaborative processing results and return them to the edge IoT agent that requested it.
[0053] Optionally, in the collaborative processing module, executing tasks collaboratively to obtain corresponding files includes:
[0054] Compare whether the local cache contains the specified file;
[0055] If the file exists in the local cache, it is obtained directly;
[0056] If the file does not exist in the local cache, the file is requested from the IoT management platform, and the file download is completed, the file is obtained and stored in the local cache.
[0057] In a fifth aspect, the present invention further provides an edge-to-edge collaborative task processing system adapted to the power Internet of Things, comprising: a plurality of edge IoT agents and an IoT management platform; the edge IoT agents and the IoT management platform constitute an edge cloud, and the edge IoT agents and the IoT management platform are connected and communicated with each other;
[0058] The IoT management platform is used to send a task command to the edge IoT agent, where the task includes file download, APP installation or APP upgrade; or receive a task execution result returned by the edge IoT agent;
[0059] The edge IoT agent is configured to send a task collaborative evaluation request to other edge IoT agents in the edge cloud in response to receiving a task command sent by the IoT management platform;
[0060] Receiving response information returned by other edge IoT agents, wherein the response information includes the cost of task collaborative processing and the task scheduling time calculated by the other edge IoT agents based on the task command content;
[0061] Based on the cost of collaborative processing of tasks of each edge IoT agent and the task scheduling time, the edge IoT agent that meets the time constraint and has the lowest cost is selected as the collaborative object;
[0062] Send a task collaboration request to the edge IoT agent corresponding to the collaboration object;
[0063] Receiving response information returned by the collaborative object, wherein the response information includes a file obtained by the collaborative object performing the task collaboratively;
[0064] Continue to execute the task based on the obtained file and return the task execution result to the IoT management platform.
[0065] Compared with the prior art, the beneficial effects achieved by the present invention are: the present invention effectively solves the network pressure of the power Internet of Things caused by APP installation and upgrade through collaborative task processing by multiple edge IoT agents, and at the same time greatly reduces the network overhead of the power Internet of Things, which has important economic value. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 Flow chart of the method of the present invention. DETAILED DESCRIPTION
[0067] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0068] The present invention makes full use of the infrastructure of the edge IoT agent in the power distribution room, so that the edge devices running in the perception layer can self-discover and self-organize to form an edge cloud. The control command for APP installation and upgrade is issued to the IoT management platform, and the APP download with minimum network load and minimum network traffic is realized based on the edge-to-edge collaboration solution. It effectively solves the network pressure of APP installation and upgrade on the power IoT, and greatly reduces the network overhead of the power IoT.
[0069] Example 1
[0070] The invention relates to a method for processing edge-to-edge collaborative tasks in the power Internet of Things. Figure 1 As shown, the following steps are included:
[0071] S1. The edge IoT agent deployed in the same LAN runs the edge device discovery program NMAP to discover other edge IoT agents with different IP addresses in the same network segment. The edge IoT agent connects to the IoT management platform and accepts control commands from the IoT management platform. Each edge IoT agent and the IoT management platform together form a LAN edge cloud.
[0072] When the edge IoT agent is started, it is necessary to open the edge collaboration port, which is the network communication port for task collaboration. Any edge IoT agent device can send a detection message to the address in the local area network where the edge IoT agent is located through this port. When a message is returned, it is considered that there are other edge IoT agents running in the local area network. The process of each edge IoT agent and the IoT management platform forming an edge cloud is not necessary in the present invention, but the present invention requires that the local area network communication port must be used to receive the communication of collaborative tasks.
[0073] S2. When the edge IoT agent receives a file download task such as APP installation or upgrade or file download sent by the IoT management platform to the edge IoT agent, it first determines whether the file is cached on the local machine. If the file is cached, it continues to execute the corresponding task according to the task type; if the file is not cached on the local machine, it performs the collaborative stage of task processing.
[0074] When the edge IoT agent receives a control command task such as APP installation or upgrade, file download, etc. that requires downloading files from the IoT management platform, it starts the method specified in the present invention to achieve edge-to-edge collaborative task processing.
[0075] First, the control command must contain the name, version, and hash value of the file to be downloaded, which can uniquely identify the file. Second, the control command can contain the maximum response time of the task, that is, the time required for the task to complete and respond, which includes the time for file download, file installation, and other processes. The maximum response time is not required, but it is recommended to support it.
[0076] The content of the control command is as follows:
[0077] <Task type, file name, server path, file hash value, file size, maximum response time T m >
[0078] in:
[0079] Task type: including file download, APP installation and APP upgrade types;
[0080] File name: refers to the name and version number of the APP or file;
[0081] Server path: refers to the absolute path where the file is saved on the server. The edge IoT agent can download the file to the local computer based on this path.
[0082] File hash value: refers to the summary calculation of the file, which can be implemented using algorithms such as MD5, SHA1, SHA256, etc. The specific algorithm selection is not required in this invention, but all edge IoT agents need to use the same summary algorithm to ensure that the same file can obtain the same hash value.
[0083] File size: The edge IoT agent is used to estimate the time required to download from the IoT management platform.
[0084] Maximum response time T m : It refers to the time required by the IoT management platform to require the edge IoT agent to execute the task. The execution must be completed and the response must be made within this time period at the latest. Otherwise, the task execution will be considered failed and the task command will be resent.
[0085] After receiving the task, the edge IoT agent will first determine whether the file is cached on the local machine: through file name-based search and file hash value comparison, if it is determined that the file exists, it will proceed to the next step according to the task type, such as: the file download request will directly return a response to the IoT management platform, indicating that the task is completed. If it is an APP installation or upgrade request, the command will be called to execute the APP installation. The installation process of this APP belongs to the existing technology.
[0086] If the file is not cached on the local machine, the collaborative stage of file downloading is further performed. This is the innovation of the present invention.
[0087] S3. The edge IoT agent sends a task collaborative evaluation request to other edge IoT agents in the LAN edge cloud.
[0088] The task collaboration evaluation request contains the following information:
[0089] <Cooperative request node IP, task type, file name, server path, file hash value, file size, request maximum response time T r >
[0090] in:
[0091] Collaborative request node IP: indicates the IP address of the edge IoT agent that sends the task, which is used to return the evaluation result;
[0092] File name and file hash value, which are unique identifiers of files and are the same as the control commands in the IoT management platform;
[0093] File size: The edge IoT agent is used to estimate the time required to download from the IoT management platform.
[0094] Request maximum response time T r :The collaborative evaluation request needs to return a response within the specified time period, otherwise it is considered to have timed out and the edge IoT proxy node will not be used as a candidate node for comparison and analysis.
[0095] S4: After receiving the task collaborative evaluation request, the edge IoT agent in the same edge cloud evaluates the cost of the collaborative task and the task scheduling time T required to complete the task. s , and returns the response information.
[0096] After receiving the task collaborative evaluation request, the edge IoT agent needs to calculate the cost of collaboratively completing the task and the task scheduling time T s .
[0097] The cost includes traffic fee C, download delay T c There are two parts. When the edge IoT proxy uses a wireless private network connection, the traffic fee C is 0. When the edge IoT proxy uses a wireless public network, it is necessary to calculate the traffic fee C required for downloading based on the file size. The calculation formula can refer to the existing technology. Under normal circumstances, the traffic fee C is positively correlated with the file size. Based on the file size and the current network bandwidth, the edge IoT proxy evaluates the download delay T c .
[0098] The edge IoT agent evaluates the task scheduling time T according to the current workload s ,Task scheduling time means that due to the current workload being too high, task collaboration cannot be performed and it needs to wait at least T s After that, the collaborative task can be started. s The evaluation method can refer to the existing technology. For example, it can be estimated based on the historical workload, and the time from the current computing load to the current point is less than 50% as the task scheduling time T s .
[0099] The edge IoT agent returns response information based on the evaluation results, including <IP,(C,T c ),T s >, that is, including the edge IoT proxy IP address that sends the response, the traffic rate C, and the download delay T c and task scheduling time T s .
[0100] S5. After receiving the response to the collaborative task evaluation request, the edge IoT agent selects the edge IoT agent with the lowest cost to send the task collaborative request.
[0101] The minimum cost edge IoT agent selection process is as follows:
[0102] For the maximum response time T in the request rAll valid response information received within the time period is judged whether it meets T m <T c +T s Constraints. Meeting this condition means that collaborative downloading takes less time than directly initiating downloading to the property management platform. The edge IoT agents that meet the above conditions are selected as candidate edge IoT agents to form a candidate edge IoT agent set {IP 1 , IP 2 , …, IP n}, select C+a*T from the candidate edge IoT agent set c The edge IoT agent with the minimum cost is selected as the object of the collaborative request, where a is a constant that is customized by the business system.
[0103] There is a situation where no edge IoT agent meets T m <T c +T s If the constraint condition is met, the edge IoT agent will no longer initiate a collaborative request and complete the file download on its own.
[0104] The edge IoT agent sends a task collaboration request to the selected edge IoT agent. The request message contains:
[0105] <Cooperative request node IP, file name, server path, file hash value, task start delay T n >
[0106] The file name, server path, and file hash value are used to indicate the uniqueness of the file, and the task start delay T n Indicates that the task is in T n Start execution after time.
[0107] S6. After receiving the task collaboration request, the edge IoT agent collaborates to complete the task and sends the file to the edge IoT agent that requested the collaboration.
[0108] The edge IoT agent that receives the task coordination request dispatches resources to respond to the task coordination request based on the parameters in the request and the current state. The parameters of the task coordination request received include task type, task start delay, APP file name, download path, hash value, etc.
[0109] When the edge IoT proxy receives a task collaboration request, it first compares whether the file cache contains the specified file. The judgment method is whether the file name, file size, and file hash value are consistent. If the file exists in the local cache, the file is sent to the edge IoT proxy of the collaborative request. If the collaborative edge IoT proxy does not have the file, it needs to be in the task start time T. nAfter arrival, the file is requested from the file server of the IoT management platform according to the file download path (server path), the file download is completed, and then the downloaded file is sent to the edge IoT agent that coordinates the request.
[0110] The task-coordinated edge IoT proxy can cache APP installation files. The cached APP installation files of the task-coordinated edge IoT proxy are cleaned up according to the LRU algorithm based on their disk size.
[0111] S7. The edge IoT agent receives the collaborative response information, completes the installation and upgrade of the APP, and sends a task completion response to the IoT management platform.
[0112] The edge IoT agent of the task request calculates the hash value of the received file, compares the file name, confirms that the file is downloaded correctly or the APP file is correct, and then continues to execute the control command task of the IoT management platform to install and upgrade the APP. The edge IoT agent can delete the installation file after the APP is installed to avoid wasting the storage resources of the entire edge cloud.
[0113] After the installation is complete, the edge IoT agent sends a successful installation response message to the IoT management platform to complete the installation or upgrade of this APP.
[0114] The present invention effectively solves the network pressure of the power Internet of Things caused by APP installation and upgrade through collaborative task processing by multiple edge IoT agents, and at the same time greatly reduces the network overhead of the power Internet of Things, which has important economic value.
[0115] Example 2
[0116] The embodiment of the present invention takes the edge IoT agent to perform APP installation and upgrade command tasks as an example to illustrate a method for edge-to-edge collaborative task processing adapted to the power IoT of the present invention. Figure 1 As shown, the following process is included:
[0117] (1) The IoT management platform sends an APP installation and upgrade command to the edge IoT agent 1;
[0118] (2) Edge IoT agent 1 sends a collaborative task cost evaluation request to edge IoT agent 2, edge IoT agent 3, and edge IoT agent 4 to request an upgrade package nearby;
[0119] (3) Edge IoT agent 2, edge IoT agent 3, and edge IoT agent 4 return response information to edge IoT agent 1, including cost and scheduling response time;
[0120] (4) Edge IoT agent 1 selects edge IoT agent 4 with the lowest cost as the collaboration object;
[0121] (5) The edge IoT agent 1 sends a collaborative task request to the edge IoT agent 4 corresponding to the collaborative object to request an upgrade package;
[0122] (6) Determine whether the file is in the cache of the edge IoT agent 4. If the file is in the cache of the edge IoT agent 4, directly execute the next step. If the edge IoT agent 4 does not have the corresponding upgrade file, request the file from the IoT management platform, and the edge IoT agent 4 obtains the file;
[0123] (7) Edge IoT agent 4 returns the file to edge IoT agent 1, and edge IoT agent 1 continues to perform subsequent APP installation and upgrade based on this file.
[0124] Example 3
[0125] Based on the same inventive concept as that of Example 1, the present invention further provides an edge-to-edge collaborative task processing device adapted to the power Internet of Things, comprising:
[0126] A collaborative evaluation request module, configured to send a task collaborative evaluation request to other edge IoT agents in the edge cloud in response to receiving a task command sent by the IoT management platform; the task includes file download, APP installation or APP upgrade;
[0127] A collaborative evaluation receiving module, used to receive response information returned by other edge IoT agents, wherein the response information includes the cost of task collaborative processing and task scheduling time calculated by other edge IoT agents based on the task command content;
[0128] A collaborative object selection module is used to select an edge IoT agent that meets the time constraint and has the lowest cost as a collaborative object based on the cost of collaborative processing of each edge IoT agent task and the task scheduling time;
[0129] A collaborative request module is used to send a task collaborative request to the edge IoT agent corresponding to the collaborative object;
[0130] A collaborative result receiving module, used to receive response information returned by the collaborative object, wherein the response information includes files obtained by the collaborative object performing task collaboration;
[0131] The task execution module is used to continue executing the task based on the obtained file and return the task execution result to the IoT management platform.
[0132] Optionally, in the collaborative object selection module, based on the cost of collaborative processing of each edge IoT agent task and the task scheduling time, an edge IoT agent that meets the time constraint and has the lowest cost is selected as the collaborative object, including:
[0133] Based on the task scheduling time of each edge IoT agent, determine whether it meets T m <Tc +T s Time constraints, where T m is the maximum response time, T c is the download delay time, T s Schedule time for tasks;
[0134] The edge IoT agents that meet the time constraint conditions are taken as candidate edge IoT agents to form a candidate edge IoT agent set;
[0135] Select C+a*T from the candidate edge IoT agent set c The edge IoT agent with the lowest cost is taken as the collaborative object, where C is the traffic tariff and a is a constant.
[0136] Accordingly, the present invention provides an edge-to-edge collaborative task processing device adapted to the power Internet of Things, including:
[0137] A collaborative evaluation request receiving module is used to receive a task collaborative evaluation request sent by an edge IoT agent in an edge cloud;
[0138] The collaborative evaluation calculation module is used to calculate the cost of task collaborative processing and the task scheduling time based on the task command content in the task collaborative evaluation request; and the cost and the task scheduling time are combined into a response information and returned to the edge IoT agent of the request;
[0139] A collaborative request receiving module is used to receive a task collaborative request sent by an edge IoT agent;
[0140] The collaborative processing module is used to execute tasks collaboratively to obtain corresponding files; and to combine these files into task collaborative processing results and return them to the edge IoT agent that requested it.
[0141] Optionally, in the collaborative processing module, executing tasks collaboratively to obtain corresponding files includes:
[0142] Compare whether the local cache contains the specified file;
[0143] If the file exists in the local cache, it is obtained directly;
[0144] If the file does not exist in the local cache, the file is requested from the IoT management platform, and the file download is completed, the file is obtained and stored in the local cache.
[0145] Accordingly, an edge-to-edge collaborative task processing system adapted to the power Internet of Things of the present invention comprises: a plurality of edge IoT agents and an IoT management platform; the edge IoT agents and the IoT management platform form an edge cloud, and the edge IoT agents and the IoT management platform are connected and communicated with each other;
[0146] The IoT management platform is used to send a task command to the edge IoT agent, where the task includes file download, APP installation or APP upgrade; or receive a task execution result returned by the edge IoT agent;
[0147] The edge IoT agent is configured to send a task collaborative evaluation request to other edge IoT agents in the edge cloud in response to receiving a task command sent by the IoT management platform;
[0148] Receiving response information returned by other edge IoT agents, wherein the response information includes the cost of task collaborative processing and the task scheduling time calculated by the other edge IoT agents based on the task command content;
[0149] Based on the cost of collaborative processing of tasks of each edge IoT agent and the task scheduling time, the edge IoT agent that meets the time constraint and has the lowest cost is selected as the collaborative object;
[0150] Send a task collaboration request to the edge IoT agent corresponding to the collaboration object;
[0151] Receiving response information returned by the collaborative object, wherein the response information includes a file obtained by the collaborative object performing the task collaboratively;
[0152] Continue to execute the task based on the obtained file and return the task execution result to the IoT management platform.
[0153] For the specific implementation scheme of each module in the device of the present invention, please refer to the steps of the method in Example 1.
[0154] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0155] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.
[0156] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0157] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0158] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for edge-to-edge collaborative task processing adapted to the power Internet of Things, characterized in that: The process includes: In response to receiving a task command sent by the IoT management platform, sending a task collaborative evaluation request to other edge IoT agents in the edge cloud; Receiving response information returned by other edge IoT agents, wherein the response information includes the cost of task collaborative processing and the task scheduling time calculated by the other edge IoT agents based on the task command content; Based on the cost of collaborative processing of tasks of each edge IoT agent and the task scheduling time, the edge IoT agent that meets the time constraint and has the lowest cost is selected as the collaborative object; Send a task collaboration request to the edge IoT agent corresponding to the collaboration object; Receiving response information returned by the collaborative object, wherein the response information includes a file obtained by the collaborative object performing the task collaboratively; Continue to execute the task based on the obtained file and return the task execution result to the IoT management platform; The task collaborative evaluation request includes: collaborative request node IP, task type, file name, server path, file hash value, file size and / or request maximum response time T r ;in: Collaborative request node IP: refers to the edge IoT proxy IP address that sends the request; Request maximum response time T r : It means that the response information needs to be returned within the specified time period, otherwise it is considered timeout; The task collaboration request includes: collaboration request node IP, file name, server path, file hash value and / or task start delay T n ; Among them: Task start delay T n Indicates that the task is in T n Start execution after time.
2. According to claim 1, a method for edge-to-edge collaborative task processing adapted to the power Internet of Things is characterized by: The content of the task command includes: task type, file name, server path, file hash value, file size and / or maximum response time T m ;in: Task type: including file download, APP installation and APP upgrade types; Server path: including the absolute path where the file is saved on the IoT management platform; File hash value: includes the hash value obtained by performing summary calculation on the file; Maximum response time T m : Includes the time required by the IoT management platform to require the edge IoT agent to perform a task, which means that the execution and response must be completed within this time at the latest.
3. According to claim 1, a method for edge-to-edge collaborative task processing adapted to the power Internet of Things is characterized by: The method of selecting an edge IoT agent that meets the time constraint and has the lowest cost as a collaborative object based on the cost of collaborative processing of each edge IoT agent task and the task scheduling time includes: Based on the task scheduling time of each edge IoT agent, determine whether it meets T m <T c +T s Time constraints, where T m is the maximum response time, T c is the download delay time, T s Schedule time for tasks; The edge IoT agents that meet the time constraint conditions are taken as candidate edge IoT agents to form a candidate edge IoT agent set; Select C+a*T from the candidate edge IoT agent set c The edge IoT agent with the lowest cost is taken as the collaborative object, where C is the traffic tariff and a is a constant.
4. A device for edge-to-edge collaborative task processing adapted to the power Internet of Things, characterized in that: include: A collaborative evaluation request module, configured to send a task collaborative evaluation request to other edge IoT agents in the edge cloud in response to receiving a task command sent by the IoT management platform; A collaborative evaluation receiving module, used to receive response information returned by other edge IoT agents, wherein the response information includes the cost of task collaborative processing and task scheduling time calculated by other edge IoT agents based on the task command content; A collaborative object selection module is used to select an edge IoT agent that meets the time constraint and has the lowest cost as a collaborative object based on the cost of collaborative processing of each edge IoT agent task and the task scheduling time; A collaborative request module is used to send a task collaborative request to the edge IoT agent corresponding to the collaborative object; A collaborative result receiving module, used to receive response information returned by the collaborative object, wherein the response information includes files obtained by the collaborative object performing task collaboration; The task execution module is used to continue to execute the task based on the obtained file and return the task execution result to the IoT management platform; The task collaborative evaluation request includes: collaborative request node IP, task type, file name, server path, file hash value, file size and / or request maximum response time T r ;in: Collaborative request node IP: refers to the edge IoT proxy IP address that sends the request; Request maximum response time T r : It means that the response information needs to be returned within the specified time period, otherwise it is considered timeout; The task collaboration request includes: collaboration request node IP, file name, server path, file hash value and / or task start delay T n ; Among them: Task start delay T n Indicates that the task is in T n Start execution after time.
5. According to claim 4, a device for edge-to-edge collaborative task processing adapted to the power Internet of Things is characterized in that: In the collaborative object selection module, based on the cost of collaborative processing of each edge IoT agent task and the task scheduling time, an edge IoT agent that meets the time constraint and has the lowest cost is selected as the collaborative object, including: Based on the task scheduling time of each edge IoT agent, determine whether it meets T m <T c +T s Time constraints, where T m is the maximum response time, T c is the download delay time, T s Schedule time for tasks; The edge IoT agents that meet the time constraint conditions are taken as candidate edge IoT agents to form a candidate edge IoT agent set; Select C+a*T from the candidate edge IoT agent set c The edge IoT agent with the lowest cost is taken as the collaborative object, where C is the traffic tariff and a is a constant.
6. A collaborative task processing system for power Internet of Things, characterized in that: include: Multiple edge IoT agents and IoT management platforms; the multiple edge IoT agents and IoT management platforms constitute an edge cloud, and the multiple edge IoT agents and the edge IoT agents and the IoT management platform are connected and communicated with each other; The IoT management platform is used to send a task command to the edge IoT agent, where the task includes file download, APP installation or APP upgrade, or receive a task execution result returned by the edge IoT agent; The edge IoT agent is configured to send a task collaborative evaluation request to other edge IoT agents in the edge cloud in response to receiving a task command sent by the IoT management platform; Receiving response information returned by other edge IoT agents, wherein the response information includes the cost of task collaborative processing and the task scheduling time calculated by the other edge IoT agents based on the task command content; Based on the cost of collaborative processing of tasks of each edge IoT agent and the task scheduling time, the edge IoT agent that meets the time constraint and has the lowest cost is selected as the collaborative object; Send a task collaboration request to the edge IoT agent corresponding to the collaboration object; Receiving response information returned by the collaborative object, wherein the response information includes a file obtained by the collaborative object performing the task collaboratively; Continue to execute the task based on the obtained file and return the task execution result to the IoT management platform; The task collaborative evaluation request includes: collaborative request node IP, task type, file name, server path, file hash value, file size and / or request maximum response time T r ;in: Collaborative request node IP: refers to the edge IoT proxy IP address that sends the request; Request maximum response time T r : It means that the response information needs to be returned within the specified time period, otherwise it is considered timeout; The task collaboration request includes: collaboration request node IP, file name, server path, file hash value and / or task start delay T n ; Among them: Task start delay T n Indicates that the task is in T n Start execution after time.
