Edge node coordination method and device for computing power network
By constructing a distributed, decentralized, edge-to-edge collaborative blockchain network within the computing power network, the problems of low collaborative efficiency and insufficient security of edge nodes in the centralized model are solved, achieving efficient, stable, and secure edge computing node collaboration and data sharing.
Patent Information
- Application Number
- CN202410379645.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2044-03-29
AI Technical Summary
Existing methods for collaborative edge nodes in computing networks employ a centralized model, resulting in low efficiency in task collaboration and data sharing, susceptibility to network bottlenecks and single points of failure, and insufficient security, failing to meet the requirements for trusted and secure data privacy protection.
In a computing power network, a distributed, decentralized edge-to-edge collaborative blockchain network is constructed. Through blockchain technology, tasks and data are synchronized among multiple edge computing nodes. Consensus algorithms are used for communication authentication and data inspection, thereby realizing decentralized collaboration and data sharing among edge computing nodes.
It improves the execution efficiency and stability of edge computing node collaboration, avoids network and performance bottlenecks in the cloud-edge collaboration process, enhances the stability and efficiency of computing network services, and ensures data security and reliability.
Smart Images

Figure CN118802911B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for edge node collaboration in a computing network. Background Technology
[0002] In a computing network, edge computing nodes are computing resources distributed at the network edge, closer to user devices, and can provide low-latency computing and storage services. With the continued advancement of the East-West data sharing and computing infrastructure development, the demand for collaborative task processing and data sharing among edge computing nodes in the computing network is increasing.
[0003] Existing edge node collaboration methods in computing power networks employ a centralized model. Each task collaboration and data sharing requires navigating through the computing power network's central processing unit (CPU), involving multiple cloud-edge collaboration processes such as task distribution from the CPU, node result feedback, and CPU evaluation, resulting in low execution efficiency. Summary of the Invention
[0004] This invention provides a method and apparatus for edge node collaboration in a computing power network, which improves the execution efficiency of edge node collaboration in a computing power network.
[0005] This invention provides a method for edge node collaboration in a computing power network, comprising:
[0006] Receive tasks to be executed;
[0007] The task to be executed is assigned to multiple edge computing nodes of the blockchain network and executed based on the multiple edge computing nodes. The execution results of multiple nodes are determined. The blockchain network includes multiple edge computing nodes and multiple consensus nodes.
[0008] The execution results of the multiple edge computing nodes are synchronized among the multiple edge computing nodes, and the execution results of the multiple nodes are aggregated based on the master node to obtain the task execution result of the task to be executed. The master node is determined based on the consensus node among the multiple edge computing nodes.
[0009] According to the edge node collaboration method of a computing power network provided by the present invention, before allocating the task to be executed to multiple edge computing nodes of the blockchain network, the method further includes:
[0010] Based on the consensus algorithm among the multiple consensus nodes, the communication authentication of the multiple edge computing nodes and the data inspection of the task to be executed are performed on the task to be executed.
[0011] According to the edge node collaboration method of the computing power network provided by the present invention, the task to be executed is distributed to multiple edge computing nodes of the blockchain network, including:
[0012] The task to be executed is split into multiple subtasks.
[0013] The multiple subtasks are assigned to multiple edge computing nodes of the blockchain network.
[0014] According to the present invention, an edge node collaboration method for a computing network is provided, which executes based on the plurality of edge computing nodes and determines the execution results of the plurality of nodes, including:
[0015] Based on the consensus algorithm, it is determined that the data structure detection of the multiple sub-tasks has passed;
[0016] Based on the task calculation functions in the multiple edge computing nodes, the multiple sub-tasks are calculated to determine the execution results of multiple nodes.
[0017] According to the present invention, an edge node collaboration method for a computing network synchronizes the execution results of the plurality of edge computing nodes, including:
[0018] The execution results of each edge computing node are stored on the blockchain in the corresponding collaborative data ledger of the edge computing node, and the execution results of the multiple nodes are synchronized among the multiple edge computing nodes based on the collaborative data ledger of each edge computing node.
[0019] According to the edge node collaboration method of the computing power network provided by the present invention, after obtaining the task execution result of the task to be executed, the method further includes:
[0020] The task execution result is fed back to the upper-layer user of the blockchain network, and the task execution result is stored in the computing power ledger. The computing power ledger is used to save persistent data and record the basic configuration information of multiple edge computing nodes in the blockchain network as well as the status information of the multiple edge computing nodes.
[0021] The present invention also provides an edge node collaboration device for a computing power network, comprising:
[0022] The receiving module is used to receive tasks to be executed.
[0023] An execution module is used to allocate the task to be executed to multiple edge computing nodes of the blockchain network, execute it based on the multiple edge computing nodes, and determine the execution results of multiple nodes. The blockchain network includes multiple edge computing nodes and multiple consensus nodes.
[0024] The execution result determination module is used to synchronize the execution results of the multiple edge computing nodes among the multiple edge computing nodes, and based on the master node, aggregate the execution results of the multiple nodes to obtain the task execution result of the task to be executed. The master node is determined based on the consensus node among the multiple edge computing nodes.
[0025] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the edge node collaboration method of any of the above-described computing power networks.
[0026] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the edge node collaboration method of any of the above-described computing power networks.
[0027] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the edge node collaboration method of any of the above-described computing power networks.
[0028] The edge node collaboration method and apparatus for computing power networks provided by this invention realizes edge-to-edge collaboration and data sharing among edge computing nodes by constructing a distributed, decentralized edge-to-edge collaborative blockchain network among edge computing nodes in the computing power network, thereby improving the execution efficiency and stability of edge computing node collaboration. Based on a decentralized model, it realizes edge-to-edge collaboration capabilities in computing power network scenarios, avoiding network and performance bottlenecks that may exist in the computing network brain during cloud-edge collaboration, and improving the stability and efficiency of computing power network services. Attached Figure Description
[0029] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0030] Figure 1 This is a schematic diagram of the cloud-edge collaboration solution architecture provided by the relevant methods;
[0031] Figure 2 This is a schematic diagram of the edge node collaboration process provided by the relevant methods;
[0032] Figure 3 This is a flowchart illustrating the edge node collaboration method for a computing power network provided by the present invention.
[0033] Figure 4This is a schematic diagram of the collaborative process provided by the present invention;
[0034] Figure 5 This is a schematic diagram of the collaborative consensus processing flow provided by the present invention;
[0035] Figure 6 This is a schematic diagram of the edge computing node networking authentication execution process provided by the present invention;
[0036] Figure 7 This is a schematic diagram of the synchronization process provided by the present invention;
[0037] Figure 8 This is a schematic diagram of the collaborative execution process of edge computing nodes provided by the present invention;
[0038] Figure 9 This is a schematic diagram of the edge-to-edge collaborative processing flow provided by the present invention;
[0039] Figure 10 This is a schematic diagram of the operation status detection process provided by the present invention;
[0040] Figure 11 This is a schematic diagram of the block comparison process for edge computing nodes provided by the present invention;
[0041] Figure 12 This is a schematic diagram of the data synchronization process of the edge computing node provided by the present invention;
[0042] Figure 13 This is a schematic diagram of the device structure for applying the edge node collaboration method of the computing power network provided by the present invention;
[0043] Figure 14 This is a schematic diagram of the collaborative execution process of edge nodes between modules provided by the present invention;
[0044] Figure 15 This is a schematic diagram of the task management process provided by the present invention;
[0045] Figure 16 This is a schematic diagram of the node management process provided by the present invention;
[0046] Figure 17 This is a schematic diagram of the authorization management process provided by the present invention;
[0047] Figure 18 This is a schematic diagram of the edge node collaboration device of the computing power network provided by the present invention;
[0048] Figure 19 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0049] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0050] In computing networks, edge computing nodes are computing resources distributed at the network edge, closer to user devices, providing low-latency computing and storage services. The need for task collaboration and data sharing among edge computing nodes in computing networks is also increasing. However, the mechanisms for collaboration and data sharing between edge nodes are relatively complex, and the existing collaboration mechanisms for edge nodes in data centers within computing networks are all cloud-edge collaboration, i.e., centralized.
[0051] The architecture of the cloud-edge collaborative scheme for computing power network edge nodes using related methods is as follows: Figure 1 The cloud-edge collaboration solution architecture provided by the relevant method is shown in the diagram. The architecture of the relevant method can be divided into two parts: the computing network brain and the computing power infrastructure. The computing network brain cluster receives requests issued by the wide area network through the core gateway and forwards the requests to the edge gateway on the computing power infrastructure side, and the edge gateway issues the requests to the edge data center.
[0052] Regarding the architecture in the relevant methods, the edge node collaboration scheme process is as follows: Figure 2 The relevant method provides a schematic diagram of the edge node collaboration process. After a user initiates cloud-edge collaboration, they first submit the collaboration task to the computing network brain. The computing network brain adds the task to a queue. When the queue reaches this collaboration task, the computing network brain submits the task to the core gateway. The core gateway then distributes the task to the edge gateways of their respective edge nodes. After receiving the collaboration task, the edge gateway forwards it to the corresponding edge node. After the edge node executes the task, it uniformly feeds back the result and sends it back to the computing network brain, which then feeds it back to the terminal.
[0053] The shortcomings of the cloud-edge collaboration technology solution for computing power network edge nodes in related methods include:
[0054] The collaborative mechanism of edge nodes in the computing power network in the relevant methods adopts a centralized model. Each task collaboration and data sharing requires going through the computing power network brain, involving multiple cloud-edge collaboration processes such as task distribution by the computing power network brain, node result feedback, and evaluation by the computing power network brain, resulting in low execution efficiency. In scenarios with complex multi-data center network structures, numerous edge nodes, and complex business requirements, the centralized model is limited by network bottlenecks and the single point of failure risk of the computing power network brain, making it prone to failure and task execution failure.
[0055] When conducting task collaboration and data sharing, the centralized execution mode in related methods leads to frequent transmission of computing network control commands and user data across multiple data centers, increasing the risk of attacks on sensitive and private user data, resulting in low security and failing to meet the data privacy protection requirements for trusted and secure computing networks.
[0056] To address the shortcomings of related methods, this invention provides a method for edge node collaboration in a computing power network. Figure 3 This is a flowchart illustrating the edge node collaboration method for a computing power network provided by the present invention. (Refer to...) Figure 3 The edge node collaboration method for a computing power network provided by this invention may include:
[0057] Step 310: Receive the task to be executed;
[0058] Step 320: Assign the task to be executed to multiple edge computing nodes of the blockchain network, and execute it based on the multiple edge computing nodes, and determine the execution results of multiple nodes. The blockchain network includes multiple edge computing nodes and multiple consensus nodes.
[0059] Step 330: Synchronize the execution results of the multiple edge computing nodes among the multiple edge computing nodes, and aggregate the execution results of the multiple nodes based on the master node to obtain the task execution result of the task to be executed. The master node is determined based on the consensus node among the multiple edge computing nodes.
[0060] The execution subject of the edge node collaboration method for computing power networks provided by this invention can be an electronic device, a component within an electronic device, an integrated circuit, or a chip. The electronic device can be a mobile electronic device or a non-mobile electronic device. For example, a mobile electronic device can be a mobile phone, tablet computer, laptop computer, PDA, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc., while a non-mobile electronic device can be a server, network attached storage (NAS), or personal computer (PC), etc. This invention does not impose specific limitations.
[0061] The following section uses the example of a computer executing the edge node collaboration method of the computing power network provided by this invention to illustrate the technical solution of this invention in detail.
[0062] In step 310, the task to be executed is received.
[0063] The tasks to be executed are those that require collaborative execution, specifically distributed computing tasks that can be processed collaboratively by multiple edge computing nodes.
[0064] In step 320, the task to be executed is assigned to multiple edge computing nodes of the blockchain network, and the task is executed based on the multiple edge computing nodes. The execution results of the multiple nodes are determined. The blockchain network includes multiple edge computing nodes and multiple consensus nodes.
[0065] Before processing the tasks to be executed, a blockchain network needs to be built to facilitate the processing of those tasks. This blockchain network includes multiple edge computing nodes and multiple consensus nodes.
[0066] A blockchain network built between edge nodes resides on the computing infrastructure side and can consist of N edge nodes and M consensus nodes. Edge computing nodes can include collaborative smart contracts and collaborative data ledgers, responsible for handling upper-layer distributed computing tasks and synchronizing task results to other edge computing nodes. Consensus nodes contain consensus algorithms and are responsible for inter-node communication authentication, data verification, and block generation.
[0067] Edge computing nodes are key to achieving edge-to-edge collaboration in this proposal, encompassing collaborative smart contracts and collaborative data ledgers. Edge-to-edge collaboration refers to the collaborative process between edge computing nodes.
[0068] Collaborative smart contracts: These contracts are collaborative programs written by developers. A diagram illustrating the collaborative process of a collaborative smart contract is shown below. Figure 4 The collaborative process diagram provided by this invention is shown below. It receives computing tasks distributed by the task management system, first checks whether the data structure of the computing task is compliant, then executes the user-defined task computing function, stores the results on the blockchain after task completion, and synchronizes the computing results to other edge nodes.
[0069] Collaborative Data Ledger: The results of collaborative computing tasks are stored on the blockchain. The blockchain technology ensures the consistency of the ledger data, thereby realizing edge-to-edge collaborative computing capabilities and improving the computing execution efficiency of edge nodes.
[0070] Data structure: A custom JSON format data structure for computation tasks, including target edge node ID, execution action, expected result, source edge node ID, sending timestamp, completion timestamp, etc.
[0071] Consensus Node: The module in the blockchain network responsible for consensus and block production. It performs tasks such as communication authentication between computing nodes and data detection according to the collaborative consensus algorithm.
[0072] After receiving the task to be executed, the task is distributed to multiple edge computing nodes in the blockchain network, and executed on multiple edge computing nodes. The execution results of multiple nodes are determined, and the execution results of the nodes are written into the ledger and synchronized to other nodes.
[0073] Optionally, the specific collaborative consensus execution process in the computation of edge computing nodes can be as follows: Figure 5 The schematic diagram of the collaborative consensus processing flow provided by this invention shows that it may specifically include:
[0074] The specific implementation process of edge computing node network authentication can be as follows: Figure 6 The schematic diagram of the edge computing node networking authentication process provided by this invention is shown. The monitoring registration center issues and authorizes keys to edge computing nodes joining the blockchain network. Communication between edge computing nodes and consensus nodes, as well as communication between edge nodes, is based on key identification to authenticate node identities.
[0075] The data structure of the computation task is checked, including but not limited to edge node ID, execution action, task number, expected value, sending timestamp, and completion timestamp.
[0076] The computation task endorsement result check confirms the status of edge nodes, mainly checking whether the edge nodes are online and running normally, and whether the current node block has been updated to the latest block.
[0077] A computation task block is generated. Any edge computing node in the blockchain network performs the task computation and initiates task computation verification. After the edge node verifies the task, it packages the computation into the block and submits it to another edge node for further verification. Only after successful verification is the block added to the blockchain. The block contains relevant task computation information, block hash, previous block hash, task computation timestamp, and txid, etc.
[0078] Block hash definition: A block hash is a fixed-length string calculated to uniquely identify a block and ensure the integrity and immutability of the block.
[0079] The hash value of a block is obtained by hashing the block header and the transaction list. The block header includes the following information:
[0080] Version number: Represents the version number of the blockchain protocol;
[0081] Previous hash: A hash value pointing to the previous block, which links the current block to the previous blockchain to form a chain structure;
[0082] Merkle root: The root hash of all transactions within a block, calculated using a Merkle tree structure;
[0083] Timestamp: Records the time when a block was generated;
[0084] Nonce: Used to increase the randomness of block hashes;
[0085] Block hash=Hash(version+previous hash+merkle root+
[0086] The expression `timestamp+nonce` is used, where "+" indicates string concatenation.
[0087] The specific synchronization process between nodes is as follows: Figure 7 The synchronization process provided by this invention is illustrated in the diagram. Synchronizing the task block data to other edge computing nodes involves each edge computing node sending a task completion broadcast. Upon receiving the broadcast, other edge computing nodes access and synchronize the data based on the corresponding IP address and port of the edge node.
[0088] In step 330, the execution results of the multiple edge computing nodes are synchronized among the multiple edge computing nodes, and the execution results of the multiple nodes are aggregated based on the master node to obtain the task execution result of the task to be executed. The master node is determined based on the consensus node among the multiple edge computing nodes.
[0089] After execution is performed on multiple edge computing nodes and the execution results of these nodes are determined, the execution results are synchronized across these nodes. The specific synchronization process can be implemented based on the collaborative execution flow of the edge computing nodes.
[0090] Specifically, the collaborative execution process based on edge computing nodes is as follows: Figure 8 The schematic diagram of the collaborative execution process of edge computing nodes provided by this invention is shown below:
[0091] Edge-to-edge collaboration can be automatically initiated by upper-layer users or applications. A schematic diagram of the edge-to-edge collaboration process is shown below. Figure 9 As shown in the schematic diagram of the edge-to-edge collaborative processing flow provided by this invention, a computing task is created through a collaborative orchestration center, and after the blockchain network receives the request, it first forwards it to the consensus node;
[0092] The specific operational status detection process is as follows: Figure 10 As shown in the schematic diagram of the running status detection process provided by the present invention, the task data structure detection and computing node status detection are performed through a collaborative consensus algorithm. After the detection is passed, the edge node executes the task.
[0093] like Figure 11 The block comparison process of the edge computing node provided by the present invention is shown in the figure. The edge computing nodes are connected to each other through known node IP and port to communicate. Each time the edge node communicates with other nodes, it will check whether the number of its latest block is consistent with the latest block number on other edge nodes. If they are inconsistent, it will send a data synchronization request to other nodes.
[0094] like Figure 12 The schematic diagram of the data synchronization process of the edge computing node provided by the present invention shows that the edge computing node calls the collaborative smart contract to execute the computing task. After the calculation is completed, it is recorded in the computing power ledger and broadcasts its latest task block to other edge nodes so that other edge nodes can synchronize their latest task block data.
[0095] After synchronization is complete, the execution results of multiple nodes are aggregated based on the master node in the blockchain network to obtain the task execution result of the task to be executed, and the task execution result is fed back to the requester.
[0096] The edge node collaboration method for computing power networks provided in this invention achieves edge-to-edge collaboration and data sharing among edge computing nodes by constructing a distributed, decentralized edge-to-edge collaborative blockchain network among edge computing nodes, thereby improving the execution efficiency and stability of edge computing node collaboration. Based on a decentralized model, it realizes edge-to-edge collaboration capabilities in computing power network scenarios, avoiding potential network and performance bottlenecks in the computing network brain during cloud-edge collaboration, and improving the stability and efficiency of computing power network services.
[0097] In one embodiment, before assigning the task to be executed to multiple edge computing nodes of the blockchain network, the method further includes: performing communication authentication of the task to be executed by the multiple edge computing nodes and performing data checks on the task to be executed based on the consensus algorithm among the multiple consensus nodes.
[0098] Before tasks are distributed across multiple edge computing nodes in a blockchain network, consensus algorithms are needed to ensure that all nodes agree on how to process the tasks. Blockchain networks typically use consensus algorithms to solve data consistency problems in distributed systems, including algorithms such as Proof of Work and Proof of Stake. These algorithms ensure that all nodes in the network can reach consensus on a particular data or event without centralized management.
[0099] After tasks are assigned to edge computing nodes, it's crucial to ensure that only authorized nodes can participate in task processing. This can be achieved through methods such as encrypted communication and digital signatures. By establishing an authentication mechanism on the blockchain network, edge computing nodes can verify each other's identities and ensure secure communication, effectively preventing unauthorized nodes from interfering with the task processing.
[0100] After a task is assigned to an edge computing node, the data involved in the task needs to be checked to ensure its integrity and accuracy. This includes steps such as hash verification, digital signature verification, and data source trustworthiness assessment to prevent malicious tampering or data forgery.
[0101] In one embodiment, allocating the task to be executed to multiple edge computing nodes of the blockchain network includes: splitting the task to be executed into multiple subtasks of the task to be executed; and allocating the multiple subtasks to multiple edge computing nodes of the blockchain network.
[0102] In the task decomposition phase, the first step is to reasonably break down the task to be executed into multiple independent subtasks. Principles for task decomposition include factors such as task parallelizability, task complexity, and data dependencies. Each subtask should be relatively independent to allow for parallel processing, and the results of each subtask should ultimately be combined to obtain the final task result.
[0103] After receiving their assigned subtask, each edge computing node begins computation and processing. Upon completion, the node submits its result to the blockchain network and awaits the results from other nodes. Ultimately, the results from all nodes are merged or aggregated to obtain the final result of the entire task.
[0104] The edge node collaboration method of the computing power network provided in this embodiment of the invention can give full play to the advantages of distributed computing, improve task processing efficiency and system performance, and at the same time ensure data security and reliability by splitting the task to be executed into multiple sub-tasks and distributing these sub-tasks to multiple edge computing nodes of the blockchain network.
[0105] In one embodiment, execution is performed based on the plurality of edge computing nodes, and the execution results of the plurality of nodes are determined, including: determining that the data structure detection of the plurality of subtasks has passed based on a consensus algorithm; and calculating the plurality of subtasks based on the task calculation functions in the plurality of edge computing nodes to determine the execution results of the plurality of nodes.
[0106] After multiple edge computing nodes have completed their respective subtasks, the data results of the subtasks need to be checked for compliance to ensure the accuracy and completeness of the results.
[0107] After confirming the compliance of the subtask data results, the next step is to perform calculations on these subtasks based on the task computation functions in the edge nodes, ultimately determining the execution results of multiple nodes. This process mainly includes the following steps:
[0108] Based on the definition and logic of the task calculation function, the corresponding subtasks are calculated on each edge computing node to obtain the calculation results.
[0109] The results calculated from each node are merged or summarized. The merging method is determined according to the needs of the task, which may include operations such as summation, averaging, and maximum / minimum values.
[0110] Verify the final merged result to ensure its correctness and consistency with the expected result.
[0111] The edge node collaboration method for computing networks provided in this invention can effectively determine the execution results of multiple nodes during task execution based on multiple edge computing nodes. This method fully leverages the advantages of distributed computing, improving task processing efficiency and system reliability, while also helping to ensure the accuracy and compliance of data processing.
[0112] In one embodiment, synchronizing the execution results of the multiple edge computing nodes among the multiple edge computing nodes includes: storing the execution results of each edge computing node on the blockchain to the collaborative data ledger of the corresponding edge computing node, and synchronizing the execution results of the multiple edge computing nodes among the multiple edge computing nodes based on the collaborative data ledger of each edge computing node.
[0113] After completing the task, each edge computing node uploads its execution result to the corresponding collaborative data ledger via blockchain technology. This process ensures the immutability and traceability of the execution result.
[0114] Each edge computing node maintains its own collaborative data ledger to record its execution results and related information. These ledgers are typically stored in a decentralized manner to ensure data security and reliability.
[0115] The execution results are synchronized between the various edge computing nodes through a collaborative data ledger. Nodes can synchronize ledger information periodically or in real time to obtain the latest execution results and status.
[0116] During ledger synchronization, nodes need to perform data verification and consistency checks to ensure the accuracy of the data in the ledger. This can be achieved through consensus algorithms.
[0117] In one embodiment, after obtaining the task execution result of the task to be executed, the method further includes: feeding back the task execution result to the upper-layer user of the blockchain network, and storing the task execution result in a computing power ledger, wherein the computing power ledger is used to save persistent data and record the basic configuration information of multiple edge computing nodes in the blockchain network and the status information of the multiple edge computing nodes.
[0118] Through blockchain networks, the results of task execution can be transparently and securely fed back to upper-level users. Users can obtain the results of task execution through smart contracts or transaction records on the blockchain network.
[0119] The results of task execution and related metadata are stored in the computing power ledger, achieving persistent data preservation. This ensures that data is not lost and can be queried and audited at any time.
[0120] The computing power ledger records basic configuration information for multiple edge computing nodes, including hardware configuration, network settings, and software versions, providing support for management and monitoring. It also records status information for these nodes, including online status, load, and health, enabling real-time monitoring and management.
[0121] The following is an example of a device structure diagram of an edge node collaboration method for a computing power network provided by the present invention, illustrating the technical solution provided by the present invention:
[0122] like Figure 13 As shown, the device includes a computing network brain 1310 and a blockchain network 1320. The computing network brain 1310 includes a collaborative orchestration center 1311 and a computing power ledger 1312. The blockchain network 1320 includes edge computing nodes 1321 and consensus nodes 1322.
[0123] The collaborative orchestration center is primarily responsible for node task management, node management, and authorization management, but does not participate in the task collaboration process between nodes. Task management is responsible for scheduling the creation of upper-level tasks, tracking task progress, querying historical tasks, and deleting tasks; compute node management manages edge nodes of the system; and authorization management manages the authorization for calls between the computing network brain and the computing infrastructure.
[0124] The blockchain network built between edge nodes is located on the computing infrastructure side and consists of N edge nodes and consensus nodes. The edge nodes include collaborative smart contracts and collaborative data ledgers, which are responsible for handling the distribution of computing tasks at the upper layer and synchronizing the task results to other edge nodes; the consensus nodes contain consensus algorithms and are responsible for inter-node communication authentication, data checking, block generation, etc.
[0125] The relationship between the main modules of the edge node collaboration device involved in this invention is as follows: Figure 14 The schematic diagram of the edge node collaborative execution process between modules provided by this invention is as follows: Edge computing nodes need to register through node management. After registration, the authorization management component will monitor the running status of the edge computing nodes in real time. Once the edge computing node successfully runs, it will be authenticated and authorized. After the node is registered to the blockchain network, the blockchain network becomes a usable edge computing collaborative network. Users can then create edge computing collaborative tasks in the task management component and distribute them to edge computing nodes. The edge computing nodes call the corresponding collaborative contracts to perform the tasks, and the consensus nodes produce blocks based on the execution results and feed the execution results back to the node management component.
[0126] The Collaborative Orchestration Center provides a visual web management component, enabling upper-level users to manage proposals as well as edge nodes.
[0127] Task Management: The edge node computing task management module includes functions such as task creation, task progress tracking, historical task query, and task deletion. Users initiate and create edge computing collaborative tasks, which are then distributed to edge computing nodes and their execution progress is read in real time.
[0128] Task management process such as Figure 15 As shown in the schematic diagram of the task management process provided by this invention, users initiate edge computing collaborative tasks and create tasks through the collaborative orchestration center; tasks are distributed to edge computing nodes through the collaborative orchestration center; the task management module monitors the task execution progress of each edge node in real time; users can view the task list through the collaborative orchestration center, which includes all historical task information.
[0129] Node management process as follows Figure 16 The node management process provided by this invention is illustrated in the diagram. Users dynamically manage edge nodes through node management, initiating node registration; during node registration, nodes are added to the node registration center's registration list; upon successful addition, the corresponding collaborative computing consensus algorithm and collaborative computing smart contract are deployed; after deployment, authentication and authorization are awaited; upon successful authorization, the node successfully joins the blockchain network.
[0130] Authorization management process such as Figure 17 The authorization management process provided by this invention is illustrated in the diagram. Authorization management includes: ensuring secure communication between the computing network brain and the computing infrastructure nodes; the module is responsible for monitoring the status of the computing infrastructure nodes; after a node registers and starts, it automatically authorizes the node; all subsequent requests from the computing infrastructure node carry a private key and undergo legitimacy authentication to ensure the security of the request.
[0131] Figure 18This is a schematic diagram of the edge node collaborative device of the computing power network provided by the present invention, as shown below. Figure 18 The device includes:
[0132] The receiving module 1810 is used to receive tasks to be executed;
[0133] The execution module 1820 is used to allocate the task to be executed to multiple edge computing nodes of the blockchain network, execute it based on the multiple edge computing nodes, and determine the execution results of multiple nodes. The blockchain network includes multiple edge computing nodes and multiple consensus nodes.
[0134] The execution result determination module 1830 is used to synchronize the execution results of the multiple edge computing nodes among the multiple edge computing nodes, and based on the master node, aggregate the execution results of the multiple nodes to obtain the task execution result of the task to be executed. The master node is determined based on the consensus node among the multiple edge computing nodes.
[0135] The edge node collaboration device for computing power networks provided in this invention achieves edge-to-edge collaboration and data sharing among edge computing nodes by constructing a distributed, decentralized edge-to-edge collaborative blockchain network between edge computing nodes, thereby improving the execution efficiency and stability of edge computing node collaboration. Based on a decentralized model, it realizes edge-to-edge collaboration capabilities in computing power network scenarios, avoiding potential network and performance bottlenecks in the computing network brain during cloud-edge collaboration, and improving the stability and efficiency of computing power network services.
[0136] In one embodiment, the execution module 1820 is specifically used for:
[0137] Before allocating the task to be executed to multiple edge computing nodes of the blockchain network, the process also includes:
[0138] Based on the consensus algorithm among the multiple consensus nodes, the communication authentication of the multiple edge computing nodes and the data inspection of the task to be executed are performed on the task to be executed.
[0139] In one embodiment, the execution module 1820 is specifically used for:
[0140] Distributing the tasks to be executed to multiple edge computing nodes in the blockchain network includes:
[0141] The task to be executed is split into multiple subtasks.
[0142] The multiple subtasks are assigned to multiple edge computing nodes of the blockchain network.
[0143] In one embodiment, the execution module 1820 is specifically used for:
[0144] Execution is performed based on the multiple edge computing nodes, and the execution results of multiple nodes are determined, including:
[0145] Based on the consensus algorithm, it is determined that the data structure detection of the multiple sub-tasks has passed;
[0146] Based on the task calculation functions in the multiple edge computing nodes, the multiple sub-tasks are calculated to determine the execution results of multiple nodes.
[0147] In one embodiment, the execution module 1820 is specifically used for:
[0148] Synchronizing the execution results of the multiple edge computing nodes among the multiple nodes includes:
[0149] The execution results of each edge computing node are stored on the blockchain in the corresponding collaborative data ledger of the edge computing node, and the execution results of the multiple nodes are synchronized among the multiple edge computing nodes based on the collaborative data ledger of each edge computing node.
[0150] In one embodiment, the execution result determination module 1830 is specifically used for:
[0151] After obtaining the task execution result of the task to be executed, the process also includes:
[0152] The task execution result is fed back to the upper-layer user of the blockchain network, and the task execution result is stored in the computing power ledger. The computing power ledger is used to save persistent data and record the basic configuration information of multiple edge computing nodes in the blockchain network as well as the status information of the multiple edge computing nodes.
[0153] Figure 19 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 19 As shown, the electronic device may include: a processor 1910, a communications interface 1920, a memory 1930, and a communication bus 1940. The processor 1910, communications interface 1920, and memory 1930 communicate with each other via the communication bus 1940. The processor 1910 can call logical instructions from the memory 1930 to execute an edge node collaboration method for the computing network. This method includes:
[0154] Receive tasks to be executed;
[0155] The task to be executed is assigned to multiple edge computing nodes of the blockchain network and executed based on the multiple edge computing nodes. The execution results of multiple nodes are determined. The blockchain network includes multiple edge computing nodes and multiple consensus nodes.
[0156] The execution results of the multiple edge computing nodes are synchronized among the multiple edge computing nodes, and the execution results of the multiple nodes are aggregated based on the master node to obtain the task execution result of the task to be executed. The master node is determined based on the consensus node among the multiple edge computing nodes.
[0157] Furthermore, the logical instructions in the aforementioned memory 1930 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0158] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, wherein when the program instructions are executed by a computer, the computer is able to execute the edge node collaboration method of the computing power network provided by the above methods, the method comprising:
[0159] Receive tasks to be executed;
[0160] The task to be executed is assigned to multiple edge computing nodes of the blockchain network and executed based on the multiple edge computing nodes. The execution results of multiple nodes are determined. The blockchain network includes multiple edge computing nodes and multiple consensus nodes.
[0161] The execution results of the multiple edge computing nodes are synchronized among the multiple edge computing nodes, and the execution results of the multiple nodes are aggregated based on the master node to obtain the task execution result of the task to be executed. The master node is determined based on the consensus node among the multiple edge computing nodes.
[0162] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the edge node collaboration methods of the aforementioned computing power networks, the method comprising:
[0163] Receive tasks to be executed;
[0164] The task to be executed is assigned to multiple edge computing nodes of the blockchain network and executed based on the multiple edge computing nodes. The execution results of multiple nodes are determined. The blockchain network includes multiple edge computing nodes and multiple consensus nodes.
[0165] The execution results of the multiple edge computing nodes are synchronized among the multiple edge computing nodes, and the execution results of the multiple nodes are aggregated based on the master node to obtain the task execution result of the task to be executed. The master node is determined based on the consensus node among the multiple edge computing nodes.
[0166] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0167] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0168] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for edge node collaboration in a computing power network, characterized in that, The method includes: Receive tasks to be executed; The task to be executed is assigned to multiple edge computing nodes of the blockchain network and executed based on the multiple edge computing nodes. The execution results of multiple nodes are determined. The blockchain network includes multiple edge computing nodes and multiple consensus nodes. The execution results of the multiple edge computing nodes are synchronized among the multiple edge computing nodes, and the execution results of the multiple nodes are aggregated based on the master node to obtain the task execution result of the task to be executed. The master node is determined based on the consensus node among the multiple edge computing nodes. The process of synchronizing the execution results of the multiple edge computing nodes includes: The execution results of each edge computing node are stored on the blockchain in the corresponding collaborative data ledger of the edge computing node, and the execution results of the multiple nodes are synchronized among the multiple edge computing nodes based on the collaborative data ledger of each edge computing node.
2. The edge node collaboration method of the computing power network according to claim 1, characterized in that, Before allocating the task to be executed to multiple edge computing nodes of the blockchain network, the method further includes: Based on the consensus algorithm among the multiple consensus nodes, the communication authentication of the multiple edge computing nodes and the data inspection of the task to be executed are performed on the task to be executed.
3. The edge node collaboration method of the computing power network according to claim 1, characterized in that, The process of allocating the task to be executed to multiple edge computing nodes of the blockchain network includes: The task to be executed is split into multiple subtasks. The multiple subtasks are assigned to multiple edge computing nodes of the blockchain network.
4. The edge node collaboration method of the computing power network according to claim 3, characterized in that, The execution based on the multiple edge computing nodes, and the determination of the execution results of the multiple nodes, include: Based on the consensus algorithm, it is determined that the data structure detection of the multiple sub-tasks has passed; Based on the task calculation functions in the multiple edge computing nodes, the multiple sub-tasks are calculated to determine the execution results of multiple nodes.
5. The edge node collaboration method of the computing power network according to claim 1, characterized in that, After obtaining the task execution result of the task to be executed, the process further includes: The task execution result is fed back to the upper-layer user of the blockchain network, and the task execution result is stored in the computing power ledger. The computing power ledger is used to save persistent data and record the basic configuration information of multiple edge computing nodes in the blockchain network as well as the status information of the multiple edge computing nodes.
6. An edge node collaboration device for a computing power network, characterized in that, include: The receiving module is used to receive tasks to be executed. An execution module is used to allocate the task to be executed to multiple edge computing nodes of the blockchain network, execute it based on the multiple edge computing nodes, and determine the execution results of multiple nodes. The blockchain network includes multiple edge computing nodes and multiple consensus nodes. The execution result determination module is used to synchronize the execution results of the multiple edge computing nodes among the multiple edge computing nodes, and based on the master node, aggregate the execution results of the multiple nodes to obtain the task execution result of the task to be executed. The master node is determined based on the consensus node among the multiple edge computing nodes. The process of synchronizing the execution results of the multiple edge computing nodes includes: The execution results of each edge computing node are stored on the blockchain in the corresponding collaborative data ledger of the edge computing node, and the execution results of the multiple nodes are synchronized among the multiple edge computing nodes based on the collaborative data ledger of each edge computing node.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the edge node collaboration method of the computing power network as described in any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the edge node collaboration method of the computing power network as described in any one of claims 1 to 5.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the edge node collaboration method of the computing power network as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Composite link node cooperation method, device and system
CN112422169A
Data processing method, device and system
CN113079200A