Search

CN-121262007-B - Web3.0-based blockchain network node monitoring method, device, equipment and medium

CN121262007BCN 121262007 BCN121262007 BCN 121262007BCN-121262007-B

Abstract

The present disclosure provides a block chain network node monitoring method, apparatus, device and medium based on web3.0. Periodically acquiring node information of each node in the blockchain network based on a preset time interval, determining at least one candidate node based on the node information for the node information acquired in each period, acquiring node data of each candidate node, determining key information of each candidate node based on the node data, determining at least one target node based on the key information of each candidate node, monitoring the node state of each target node, and determining a state monitoring result of whether each target node operates normally. The method and the system realize the fine monitoring of key nodes (target nodes) in the blockchain network, can discover the abnormal performance of the target nodes in time, effectively reduce the safety risk of the system, and ensure the safety, stability and transaction efficiency of the network.

Inventors

  • XU TINGTING
  • LIU YANG
  • TIAN JUAN
  • LIU YUANCHAO
  • Ma Baoluo
  • Jing Haomeng

Assignees

  • 中国信息通信研究院

Dates

Publication Date
20260508
Application Date
20251201

Claims (9)

  1. 1. A web3.0-based blockchain network node monitoring method, comprising: periodically collecting node information of each node in the blockchain network based on a preset time interval; for node information acquired in each period, determining at least one candidate node based on node categories in node information of each node in the blockchain network, wherein the candidate node comprises at least one of a consensus node, a block-out node and a seed node in the blockchain network; Acquiring node data of each candidate node in the at least one candidate node; Determining key information of each candidate node based on the node data, wherein the key information is used for representing the importance degree of the candidate node in the blockchain network, the key information of any candidate node comprises first connectivity information, second connectivity information, transaction scale information and intermediacy information, the first connectivity information comprises the number of nodes connected with any candidate node in the blockchain network, the second connectivity information comprises the number of other candidate nodes except the any candidate node, the transaction scale information comprises the information of processing transactions of the any candidate node, and the intermediacy information comprises the information of the occurrence of the any candidate node in a communication path of a node pair in the blockchain network; determining at least one target node based on the key information of each candidate node, wherein the determining comprises the steps of respectively determining the important value of each candidate node by using a preset algorithm based on the first connectivity information, the second connectivity information, the transaction scale information and the intermediacy information of each candidate node; And monitoring the node state of each target node in the at least one target node, and determining whether the state monitoring result of each target node operates normally.
  2. 2. The method of claim 1, wherein the node data comprises node communication information including node identifications of nodes in the blockchain network to which the candidate nodes are respectively connected; The determining key information of each candidate node based on the node data comprises the following steps: For each candidate node, determining the number of first node connections of the candidate node to the nodes in the blockchain network and the number of second node connections of the candidate node to other candidate nodes based on the node communication information; determining first connectivity information of the candidate node based on the first node connection number; And determining second connectivity information of the candidate node based on the second node connection number.
  3. 3. The method of claim 1, wherein the node data includes communication path information for each node pair in the blockchain network; The determining key information of each candidate node based on the node data comprises the following steps: And determining intermediacy information of each candidate node respectively based on the communication path information of each node pair.
  4. 4. The method of claim 1, wherein the node data includes a transaction number and a transaction total value for each candidate node; The determining key information of each candidate node based on the node data comprises the following steps: and respectively determining the transaction scale information of each candidate node based on the transaction quantity and the transaction total value of each candidate node.
  5. 5. The method of any of claims 1-4, wherein determining at least one candidate node based on node information for each node in the blockchain network comprises: Acquiring a historical target node of the blockchain network, and taking the historical target node as a first initial candidate node; determining a second initial candidate node in other nodes in the blockchain network based on the node information; The candidate node is determined based on the first initial candidate node and the second initial candidate node.
  6. 6. The method of claim 1, wherein monitoring the node status of each of the at least one target node to determine whether each target node is operating properly comprises: For each target node, acquiring the response rate of the target node; Determining that the state monitoring result of the target node is node network withdrawal according to the response rate which does not exceed a preset response rate threshold; Responding to the response rate exceeding a preset response rate threshold value, and acquiring the utilization rate of a central processing unit of the target node, the utilization rate of a memory and the utilization rate of a disk; and determining a state monitoring result of the target node based on the utilization rate of the central processing unit of the target node, the utilization rate of the memory and the utilization rate of the disk.
  7. 7. A web3.0-based blockchain network node monitoring device, comprising: The node information acquisition module is used for periodically acquiring node information of each node in the block chain network based on a preset time interval; The first node screening module is used for determining at least one candidate node based on node categories in node information of each node in the blockchain network for node information acquired in each period, wherein the candidate node comprises at least one of a consensus node, a block outlet node and a seed node in the blockchain network; The node data acquisition module is used for acquiring node data of each candidate node in the at least one candidate node; A key information determining module, configured to determine key information of each candidate node based on the node data, where the key information is used to represent a degree of importance of the candidate node in the blockchain network, the key information of any candidate node includes first connectivity information, second connectivity information, transaction scale information, and intermediacy information, the first connectivity information includes a number of nodes connected to the any candidate node in the blockchain network, the second connectivity information includes a number of other candidate nodes that are connected to the any candidate node except the any candidate node, the transaction scale information includes information that the any candidate node processes a transaction, and the intermediacy information includes information that the any candidate node appears in a communication path of a node pair in the blockchain network; The second node screening module is used for determining at least one target node based on the key information of each candidate node, and comprises the steps of respectively determining the importance value of each candidate node by utilizing a preset algorithm based on the first connectivity information, the second connectivity information, the transaction scale information and the intermediacy information of each candidate node; and the state monitoring module is used for monitoring the node state of each target node in the at least one target node and determining a state monitoring result of whether each target node operates normally.
  8. 8. An electronic device, comprising: A memory for storing a computer program; a processor for executing a computer program stored in said memory, and which, when executed, implements the method of any of the preceding claims 1-6.
  9. 9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any of the preceding claims 1-6.

Description

Web3.0-based blockchain network node monitoring method, device, equipment and medium Technical Field The disclosure relates to blockchain technology, in particular to a blockchain network node monitoring method, device, equipment and medium based on Web 3.0. Background Blockchain technology plays a vital role in web3.0, and the running state of the blockchain network affects the operation of web3.0. The node is used as a core infrastructure for the operation of the blockchain network, and the health and the operation state of the node directly determine the security, the stability and the transaction processing efficiency of the blockchain network. In the related technology, the existing monitoring of nodes focuses on overall network macroscopic indexes such as block generation rate, transaction confirmation time delay and the like, and a fine monitoring and state analysis mechanism is not constructed aiming at key nodes playing a key role in network operation in a blockchain network, so that the blockchain network is difficult to identify performance abnormality of the key nodes in real time, potential risks cannot be early warned in time, and finally potential safety hazards of the blockchain system are increased. Disclosure of Invention In order to solve the technical problems, the embodiment of the disclosure provides a block chain network node monitoring method, a device, equipment and a medium based on web3.0. According to one aspect of the embodiment of the disclosure, a block chain network node monitoring method based on Web3.0 is provided, and the method comprises the steps of periodically collecting node information of each node in a block chain network based on a preset time interval, determining at least one candidate node based on the node information of each node in the block chain network for the node information collected in each period, wherein the candidate node comprises a consensus node, a block outlet node and a seed node in the block chain network, acquiring node data of each candidate node in the at least one candidate node, determining key information of each candidate node based on the node data, wherein the key information is used for representing importance of the candidate node in the block chain network, determining at least one target node based on the key information of each candidate node, monitoring node states of each target node in the at least one target node, and determining a state monitoring result of whether each target node operates normally. In another aspect of the embodiment of the disclosure, a block chain network node monitoring device based on Web3.0 is provided, and the device comprises a node information acquisition module, a first node screening module, a state monitoring module and a node data acquisition module, wherein the node information acquisition module is used for periodically acquiring node information of each node in a block chain network based on a preset time interval, the first node screening module is used for determining at least one candidate node based on the node information of each node in the block chain network for the node information acquired in each period, the candidate node comprises a consensus node, a blocking node and a seed node in the block chain network, the node data acquisition module is used for acquiring node data of each candidate node in the at least one candidate node, the key information determination module is used for determining key information of each candidate node based on the node data, the key information is used for representing importance degree of each candidate node in the block chain network, the second node screening module is used for determining at least one target node based on the key information of each candidate node, and the state monitoring module is used for monitoring node states of each target node in the at least one target node and determining whether each target node operates normally or not. In yet another aspect of the disclosed embodiments, an electronic device is provided that includes a memory for storing a computer program, and a processor for executing the computer program stored in the memory, and when the computer program is executed, implementing the method described above. In yet another aspect of the disclosed embodiments, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the above-described method. In yet another aspect of the disclosed embodiments, a computer program product is provided, comprising computer program instructions which, when executed by a processor, implement the above-described method. Based on the embodiment of the disclosure, the dynamic tracking and continuous updating of the state of the block chain network node are realized through a periodic acquisition mechanism of a preset time interval, and the problem of information lag caused by the structural change of the block chai