A method for quickly restoring system operation by optimizing node communication
Through mutual notification and verification between nodes, lagging nodes obtain data from nodes with good performance for self-recovery, which solves the paralysis problem caused by node imbalance in the blockchain system and achieves rapid recovery and stable operation of the system.
Patent Information
- Application Number
- CN202011317691.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-11-23
AI Technical Summary
In the blockchain system, the imbalance between nodes causes the system to be paralyzed and unable to quickly resume operation.
Through mutual notification and verification between nodes, lagging nodes can discover the difference between their own status and the group status, and obtain data from nodes with good performance for self-recovery, ensuring the balance of the node network and the rapid recovery of the system.
It achieves the balance of the node network and the rapid recovery of the system, ensuring that the system can quickly resume normal operation when it is paralyzed, and improving the availability and reliability of the system.
Smart Images

Figure CN114020520B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a method for quickly restoring system operation by optimizing node communication. Background Art
[0002] Blockchain is a term in the field of information technology. In essence, it is a shared database, and the data or information stored in it has the characteristics of "unforgeable", "full traceability", "traceability", "openness and transparency", and "collective maintenance". Based on these characteristics, blockchain technology has laid a solid "trust" foundation, created a reliable "cooperation" mechanism, and has broad application prospects. These characteristics ensure the "honesty" and "transparency" of blockchain and lay the foundation for blockchain to create trust. The rich application scenarios of blockchain are basically based on the ability of blockchain to solve the problem of information asymmetry and realize collaborative trust and concerted action among multiple subjects.
[0003] The synchronization between nodes in a distributed system forms a blockchain. A distributed system is defined by Tanenbaum as "a group of independent computers that appear as a single, coherent system to users in "Distributed Systems — Principles and Paradigms". Blockchain attempts to achieve decentralized new data storage and organizational structures by building a global distributed system. First of all, the reasons for locating to a distributed system are mainly scalability, location, and availability. Blockchain is no exception. Geographic scalability forms a global value storage network / information protection area.
[0004] When an imbalance occurs between nodes in the blockchain, and some nodes lag behind nodes with good performance, the system will be paralyzed, causing the system to be temporarily unusable. Therefore, we need a method that can compare nodes with each other and perform self-correction, so as to stabilize the node network and ensure the operation of the system. Summary of the invention
[0005] The present invention provides a method for quickly restoring system operation by optimizing node communication, which has the advantages that nodes can inform each other, so that the nodes can complement each other and ensure the normal operation of the system, and solves the problems raised in the background technology.
[0006] The present invention provides the following technical solution: a method for quickly restoring system operation by optimizing node communication, completing the recovery of nodes with poor performance through mutual reporting and verification between nodes, thereby realizing rapid recovery of the system, comprising the following steps:
[0007] Step 1: Create the required nodes
[0008] Create the required nodes in the blockchain to facilitate the subsequent restoration of the system operation.
[0009] Step 2: Connections between nodes
[0010] Nodes inform each other of the block they are in, application status, voting status, etc.
[0011] Step 3: Self-examination
[0012] After nodes compare their blocks, application status, and voting status, they will find out whether their own status lags behind or is inconsistent with the group status.
[0013] Step 4: Determine whether it meets the requirements
[0014] Through self-judgment, the status of some nodes may be the same as the group status, while the status of some nodes lags behind or is out of touch with the group status.
[0015] Step 5: Node Self-Adjustment
[0016] When some nodes fall behind other normal nodes, they receive information from normal nodes in mutual notification. The lagging nodes select normal nodes with good performance and request the restored data from them.
[0017] Step 6: Recover your status
[0018] After receiving the request recovery signal sent by the lagging node, the normal node with good performance sends its own status and group status to the lagging node. The lagging node compares its own status and group status with those of the normal node with good performance, and then completes the lagging, thereby completing its own status recovery and achieving the purpose of quickly restoring system operation.
[0019] Step 7: Compare the intervals between nodes
[0020] Through system settings, nodes are restored at intervals of one week or less than three weeks to ensure that lagging nodes can catch up with nodes with good performance, so that the node network remains relatively stable and the system runs more smoothly.
[0021] Preferably, the node will generally connect to active nodes. If it is difficult to find such a node, the node will find those nodes that have been running stably for a long time based on the IP address list it has obtained. Such nodes are seed nodes. Seed nodes can help nodes discover other nodes in the network more quickly, thereby communicating with each other.
[0022] Preferably, after connecting to adjacent nodes, the node will first synchronize data with the adjacent nodes, and then exchange and synchronize data with more nodes. In the process of data synchronization between nodes, a hash value will be used to determine whose data is the latest data, thereby determining whether the status of the node itself and the group status are consistent with those of other nodes.
[0023] Preferably, after determining its own node, the lagging node will quickly match itself with a node with good performance according to its own situation, and then recover itself through the node with good performance, thereby maintaining the balance of the entire node network.
[0024] Preferably, after the lagging node is restored, the entire node network is kept balanced, so that the entire network tends to a balanced state, so that the entire system can quickly recover to an operating state.
[0025] The present invention has the following beneficial effects:
[0026] 1. The method of quickly restoring system operation by optimizing node communication, through mutual notification between nodes, makes comparison between nodes, thereby judging nodes with good performance and nodes with poor performance. After the nodes with poor performance find their own deficiencies, they will select nodes with good performance in the node network for connection, and obtain the status of the nodes with good performance by comparing the status of the nodes with good performance, so as to supplement their own deficient status, so that the status of the entire node network can reach a state tending to balance, so that the paralyzed system can be quickly restored, and the system can reach a normal operating state.
[0027] 2. The method of quickly restoring system operation by optimizing node communication compares nodes with each other at regular intervals to ensure that lagging nodes can keep up with nodes with good performance, to ensure that the system can be restored at the moment of system failure, to ensure that people can use the system quickly, and to ensure that the node network tends to be stable through interval comparison, so that the system can better serve people. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] See also Figure 1 A method for quickly restoring system operation by optimizing node communication, completing the recovery of nodes with poor performance through mutual reporting and verification between nodes, thereby realizing rapid recovery of the system, includes the following steps:
[0031] Step 1: Create the required nodes
[0032] Create the required nodes in the blockchain to facilitate the subsequent restoration of the system operation.
[0033] Step 2: Connections between nodes
[0034] By communicating with each other, including the block they are in, application status, voting status, etc., nodes can better understand what is missing between them.
[0035] Step 3: Self-examination
[0036] After the nodes compare their blocks, application status, and voting status, they will find out whether their own status lags behind or is inconsistent with the group status, and can make effective corrections.
[0037] Step 4: Determine whether it meets the requirements
[0038] Through self-judgment, the status of some nodes may be the same as the group status, while the status of some nodes lags behind or is out of touch with the group status.
[0039] Step 5: Node Self-Adjustment
[0040] When some nodes lag behind other normal nodes, they receive information from normal nodes during mutual notification. The lagging nodes select normal nodes with good performance and request restored data from them, so that a normal balance can be maintained between the nodes.
[0041] Step 6: Recover your status
[0042] After receiving the request recovery signal sent by the lagging node, the normal node with good performance sends its own status and group status to the lagging node. The lagging node compares its own status and group status with those of the normal node with good performance, and then completes the lagging, thereby completing its own status recovery and achieving the purpose of quickly restoring system operation.
[0043] Step 7: Compare the intervals between nodes
[0044] Through system settings, nodes are restored at intervals of one week or less than three weeks to ensure that lagging nodes can catch up with nodes with good performance, so that the node network remains relatively stable and the system runs more smoothly.
[0045] Among them, the node will generally connect to the active node. If it is difficult to find such a node, the node will find those nodes that have been running stably for a long time based on the IP address list it has obtained. This kind of node is the seed node. The seed node can help the node discover other nodes in the network more quickly, so as to communicate with each other and improve the efficiency of discovering what is missing between nodes, so that the system can achieve the purpose of resuming operation more quickly.
[0046] Among them, after connecting to adjacent nodes, the node will first synchronize data with the adjacent nodes, and then exchange and synchronize data with more nodes. In the process of data synchronization between nodes, a hash value will be used to determine whose data is the latest data, thereby determining whether the status of the node itself and the group status are consistent with other nodes.
[0047] Among them, after judging its own nodes, the lagging nodes will quickly match themselves to nodes with good performance according to their own conditions, and then recover themselves through the nodes with good performance, thereby maintaining the balance of the entire node network, which is conducive to the rapid recovery of the system.
[0048] Among them, after the lagging nodes are restored, the entire node network remains balanced, so that the entire network tends to a balanced state, so that the entire system can quickly recover to an operating state.
[0049] Among them, through mutual notification between nodes, nodes can be compared with each other, so as to judge nodes with good performance and poor performance. After the poor performance nodes find their own shortcomings, they will select nodes with good performance in the node network to connect, and obtain the status of the nodes with good performance by comparing the status of the nodes with good performance, so as to supplement their own insufficient status, so that the status of the entire node network can reach a balanced state, so that the system can reach a normal operating state.
[0050] Among them, by comparing the nodes with each other at regular intervals, it is ensured that the lagging nodes can keep up with the nodes with good performance, and the system can be restored at the moment of system failure, ensuring that people can use the system quickly. By means of interval comparison, the node network can be guaranteed to be stable.
[0051] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0052] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for quickly restoring system operation by optimizing node communication, and completing the recovery of nodes with poor performance through mutual reporting and verification between nodes, thereby achieving rapid recovery of the system. The following steps are involved: Step 1: Create the required nodes Create the required nodes in the blockchain to facilitate the subsequent recovery of the system; Step 2: Connections between nodes Nodes communicate with each other about their blocks, application status, and voting status; Step 3: Self-examination When nodes compare their blocks, application status, and voting status, they will find out whether their status lags behind or is inconsistent with the group status. Step 4: Determine whether it meets the requirements Through self-judgment, some nodes’ own states may be the same as the group state, while some nodes’ own states lag behind or are out of touch with the group state; Step 5: Node Self-Adjustment When some nodes fall behind other normal nodes, they receive information from normal nodes in mutual notification. The lagging nodes select the normal nodes with good performance and request the restored data from them. Step 6: Recover your status After receiving the request recovery signal sent by the lagging node, the normal node with good performance sends its own status and group status to the lagging node. The lagging node compares its own status and group status with those of the normal node with good performance, and then completes the lagging, thereby completing its own status recovery and achieving the purpose of quickly restoring system operation. Step 7: Compare the intervals between nodes Through the system settings, nodes are restored at intervals of one week or less than three weeks to ensure that lagging nodes can catch up with nodes with good performance, so that the node network remains relatively stable and the system runs more smoothly; In addition, the node will generally connect to active nodes. If it is difficult to find such a node, the node will find those nodes that have been running stably for a long time according to the IP address list it has obtained. Such nodes are seed nodes. Seed nodes can help nodes find other nodes in the network more quickly, so as to communicate with each other. After connecting to adjacent nodes, the node will first synchronize data with the adjacent nodes, and then exchange and synchronize data with more nodes. During the data synchronization between nodes, a hash value will be used to determine whose data is the latest data, so as to determine whether the node itself is in the same state as other nodes and the group state. After determining its own node, the lagging node will quickly match itself with a node with good performance according to its own situation, and then recover itself through the node with good performance, thereby maintaining the balance of the entire node network.
Citation Information
Patent Citations
Tree topology network recovery method based on self organizing classification management
CN107395480A
Disaster recovery switchover method and system, and node
US20190166198A1
