Multistage robust communication topology system for BFT consensus

By constructing a multi-level robust communication topology system and an asynchronous block transfer protocol, the problem of performance degradation of the BFT consensus system when the number of replicas increases is solved, constant communication bottleneck complexity and high fault tolerance are achieved, and the scalability of the system is improved. and responsiveness.

CN118869495APending Publication Date: 2024-10-29THE ACAD OF TIANJIN UNIV HEFEI
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411048660.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The performance of the BFT consensus system decreases when the number of replicas increases. The master node bears a large communication load and becomes a bottleneck. Furthermore, relay replicas may affect fault tolerance and responsiveness, making it difficult to maintain the scalability and fault tolerance of the system.

Method used

By constructing a multi-level robust communication topology system, the communication topology ingress and egress of each node is a constant level. Redundant parameters and extended parameters are used to divide node levels and an asynchronous block transmission protocol is designed to ensure that nodes are always busy and have high fault tolerance.

Benefits of technology

It achieves constant communication bottleneck complexity, improves fault tolerance and responsiveness, avoids performance degradation caused by an increase in the number of nodes, and breaks through the scalability limitations of the consensus system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869495A_ABST
    Figure CN118869495A_ABST
Patent Text Reader

Abstract

The invention discloses a multistage robust communication topology system aiming at BFT consensus, which is a BFT consensus with constant-level communication bottleneck complexity, and ensures Byzantine fault tolerance and responsiveness while reducing communication bottleneck, so that the performance of the consensus is not reduced along with the increase of the number of nodes, and the expandability bottleneck of the consensus is broken through. And the node scale is no longer a factor limiting consensus. According to the method, a robust communication topology system for BFT consensus is constructed, so that the access degree of each node in the communication topology is in a constant level, the communication bottleneck of the nodes is reduced, and the consensus performance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer science and technology, and in particular to a multi-level robust communication topology system for BFT consensus. Background Art

[0002] BFT (Byzantine Fault Tolerance) consensus is an important mechanism in distributed systems, especially in the field of blockchain, to ensure the consistency of multiple replicas. However, as the number of replicas increases, the performance of BFT consensus will rapidly decrease, limiting its scalability. Since the proposal of PBFT, many works have been devoted to reducing the communication complexity of BFT consensus. For example, protocols such as HotStuff and Marlin reduce the communication complexity of each block of BFT consensus to O(N), where N is the number of replica nodes. However, this results in the leader node taking on almost all of the communication load and becoming a communication bottleneck, while most of the other replicas are relatively idle. The speed of consensus advancement depends on the complexity of the communication bottleneck, that is, the complexity of the replica with the largest communication load when processing a block.

[0003] In order to reduce the communication complexity of the master node and thus alleviate the communication bottleneck, relay replicas are needed to allow some nodes to communicate with the master node indirectly by communicating with the relay replicas. However, in this case, the Byzantine nodes in the relay replicas may affect other replicas, increasing the difficulty of Byzantine fault tolerance. In addition, since the relay replicas cannot determine the proportion of Byzantine nodes among their communication partners, it is difficult for the nodes to determine whether they have received enough messages, leading to responsiveness problems. Therefore, reducing the complexity of the communication bottleneck of the BFT consensus is challenging and may require sacrificing other important properties, which will have a significant impact on fault tolerance or performance.

[0004] In order to solve the challenge of the master node communication bottleneck, a direct approach is to reduce the number of nodes that communicate directly with the master node. However, this adjustment may bring two serious problems. First, not all nodes in the system communicate directly with the master node, but indirectly transmit information through other nodes, which will reduce the system's fault tolerance to Byzantine nodes. Because the intermediate nodes may be unreliable, the integrity and accuracy of the message cannot be guaranteed. Secondly, each node cannot accurately judge the proportion of Byzantine nodes among the nodes communicating with it, so it is difficult to ensure that the number and quality of messages received by the node are sufficient to support decision-making and consensus formation. In addition to this, there is an additional problem. If the communication load of the master node is only reduced without optimizing the communication process, the master node may be idle for a long time, waiting for responses from other nodes, resulting in a decrease in overall processing efficiency and failure to fully utilize system resources.

[0005] If we can reduce communication bottlenecks while maintaining the system's fault tolerance and responsiveness and optimizing the communication process, we can build a BFT consensus system with a constant communication bottleneck complexity. This will ensure that the performance of the BFT consensus system will not decrease as the number of nodes increases, thus achieving a major breakthrough in the scalability of the BFT consensus system. Summary of the invention

[0006] The purpose of the present invention is to make up for the defects of the existing technology and provide a multi-level robust communication topology system for BFT consensus. The present invention constructs a robust communication topology system for BFT consensus, so that the in-and-out degree of each node in the communication topology is a constant level, reducing the communication bottleneck of the node, thereby improving the performance of the consensus.

[0007] The present invention is achieved through the following technical solutions:

[0008] A multi-level robust communication topology system for BFT consensus, assuming that there are n replica nodes, f Byzantine nodes, redundancy parameter r and expansion parameter k in the multi-level robust communication topology system;

[0009] First, divide all replica nodes into multiple layers. The node division process is as follows:

[0010] Node division 1-1: There is one node in the first layer, which serves as the master node;

[0011] Node division 1-2: The second layer has r*k nodes, all of which are directly connected to the master node;

[0012] Node division 1-3: Starting from the third layer, the number of nodes in each layer is k times that of the previous layer, and is only connected to the nodes in the previous layer;

[0013] Assume that each node has r predecessor nodes connected to it in the previous layer. The predecessor node sends blocks to the replica and collects its votes. Therefore, as long as one of the r predecessor nodes is connected to the master node, the node is connected to the master node. After deduction, it is concluded that each node has r*k successor nodes. The process of node connection is as follows:

[0014] Node connection 2-1: Divide the nodes in the i-th layer into r groups, with the number of nodes each time being k i-1 , record the number of each node in this group;

[0015] Node connection 2-2: Divide the nodes in the i+1th layer into k i-1 Group, the number of each group is r*k, record the group the node belongs to;

[0016] Node connection 2-3: Connect the xth node of each group in the i-th layer with all the nodes of the xth group in the i+1-th layer. The xth node of each group in the i-th layer is all the predecessor nodes of the nodes of the xth group in the i+1-th layer, and the nodes of the xth group in the i+1-th layer are all the successor nodes of the xth node of each group in the i-th layer.

[0017] It also includes a redundancy parameter a, which indicates the number of times each replica node appears in the topology. All n replica nodes appear a times in the topology. The range of the redundancy parameter a is 1-k. When a is greater than 1, the nodes that appear multiple times are attached to the bottom node.

[0018] The above derivation shows that each node has r*k successor nodes, which is as follows: the number of nodes in the i-th layer is k times that of the previous layer, and each node has r predecessor nodes. Therefore, each node in the i-1-th layer needs to have r*k outgoing edges to meet the conditions.

[0019] The advantages of the present invention are: (1) Constant communication bottleneck complexity: Compared with the existing protocols, a constant communication bottleneck complexity is achieved, which means that as the number of replicas increases, its performance remains stable and is almost unaffected;

[0020] (2) Using relay replicas to achieve one-third Byzantine fault tolerance: Using relay replicas to achieve one-third Byzantine fault tolerance, it has higher fault tolerance than related protocols without sacrificing the fault tolerance performance of the consensus mechanism. An asynchronous block transfer protocol is designed to avoid the performance impact caused by different node bandwidths and network fluctuations;

[0021] (3) Ensure responsiveness: The consensus progress speed is independent of the time assumption. Even in the presence of non-Byzantine master nodes, the progress speed will not be significantly reduced due to the increase of Byzantine nodes, which has high responsiveness.

[0022] (4) Dynamically adjust the block generation speed: The block generation speed can be dynamically adjusted to ensure that the replica is always busy and consensus is always promoted at the maximum network speed, avoiding unnecessary waiting time. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a schematic diagram of the principle of most successor nodes;

[0024] Figure 2 It is a schematic diagram of the robust topological connection method;

[0025] Figure 3 This is a schematic diagram of the consensus block flow. DETAILED DESCRIPTION

[0026] like Figure 1 ,2 As shown in , 3, the present invention is designed based on a redundant exponential hierarchical graph and proposes a multi-level robust communication topology system for BFT consensus. The specific implementation method is as follows. Assume that there are n replica nodes and f Byzantine nodes in the system. There are two system parameters, the redundancy parameter r and the expansion parameter k.

[0027] First, all replica nodes need to be divided into multiple layers. The process of node division is as follows:

[0028] Node division 1-1: There is one node in the first layer, which serves as the master node.

[0029] Node division 1-2: The second layer has r*k nodes, all of which are directly connected to the master node.

[0030] Node division 1-3: Starting from the third layer, the number of nodes in each layer is k times that of the previous layer, and is only connected to the nodes in the previous layer.

[0031] In order to maximize the fault tolerance of the topology, it is assumed that each node has r predecessor nodes connected to it in the previous layer. The predecessor node will send blocks to the replica and collect its votes. Therefore, among the r predecessor nodes, as long as there is a predecessor node that can connect to the main node, the node can connect to the main node. After calculation, it can be deduced that each node has r*k successor nodes. The process of node connection is as follows:

[0032] Node connection 2-1: Divide the nodes in the i-th layer into r groups, with the number of nodes each time being k i-1 Record the number of each node in this group.

[0033] Node connection 2-2: Divide the nodes in the i+1th layer into k i-1 The number of groups in each group is r*k, and the group the node belongs to is recorded.

[0034] Node connection 2-3: Connect the xth node in each group of the i-th layer to all the nodes in the xth group in the i+1-th layer. From the perspective of the predecessor node, the xth node in each group of the i-th layer is all the predecessor nodes of the nodes in the xth group in the i+1-th layer. From the perspective of the successor node, the xth node in the xth group in the i+1-th layer is all the successor nodes of the xth node in each group of the i-th layer.

[0035] The node connection method of the present invention can be that the topology has a good property, called the maximum successor node, which means that for each node in the topology, the number of successor nodes that can be connected to it in each layer reaches the theoretical maximum.

[0036] The above are all cases where r and k are both integers. Obviously, when r and k are not integers, there will be many problems, resulting in some waste. A clever method is used to fill the part between integers. In the topology described, the nodes at the bottom layer are actually very idle. For example, when k=2, the number of bottom-level nodes is about half of the total number of nodes. These nodes have only in-degree and no out-degree, and this part of the resources can actually be utilized. A new redundancy parameter a is added to indicate the number of times each replica node appears in the topology. The range of a is 1-k. When a=1, it is the topological structure we talked about earlier. When a is greater than 1, the nodes that appear multiple times are attached to the bottom of the topology. In this way, only the upper limit of the node's in-degree is increased, and the node's in-degree is gradually increased from r to r*k, without adding any out-degree bottleneck or changing the overall bottleneck.

[0037] The parameters r, a, and k are set by the user. In this system, a replica node is allowed to appear multiple times in the communication topology. a is the number of times the replica node appears. All n replica nodes appear a times in the topology. When all nodes appear for the first time, the previous process is used to determine their position in the topology. From the second appearance, they are directly randomly placed in the next layer of the bottom layer.

[0038] The following further explains the process of BFT consensus using this robust topology, which is divided into two processes: the normal process and the view switching process. The two processes will convert to each other under certain conditions.

[0039] View switching process:

[0040] Step 1-1: All replica nodes send a view switch message to the master node of the new view, including the latest QC, view number, replica signature and other information.

[0041] Step 1-2: The master node waits for 2f+1 view switch messages, selects the latest QC from them, uses it as the latest state, and sends it to all replica nodes.

[0042] Step 1-3: All replica nodes use a globally consistent random seed to randomly generate a new communication topology, calculate the predecessor and successor nodes under this view, and enter the normal process.

[0043] Normal situation process:

[0044] Step 2-1: The master node generates a new block, carries the latest QC, and uses the latest block as the parent block. It sends the block to all successor nodes in the communication topology and waits for votes to be collected.

[0045] Step 2-2: For any replica node, after receiving the vote from the predecessor node, it sends the block to all successor nodes in the communication topology and waits to collect votes.

[0046] Step 2-3: If the replica node collects votes from all successor nodes or the timer times out, it sends all votes back to all predecessor nodes.

[0047] Step 2-4: If the master node receives 2f+1 votes before the timer times out, it returns to step 2-1; otherwise, it enters the view switching process 1-1.

[0048] The present invention constructs a multi-level robust communication topology system for BFT consensus, a BFT consensus with constant communication bottleneck complexity, which reduces the communication bottleneck while ensuring Byzantine fault tolerance and responsiveness, and ultimately makes the performance of the consensus not decrease with the increase of the number of nodes, breaking through the scalability bottleneck of the consensus, so that the node scale is no longer a factor limiting the consensus. The transformation and improvement methods based on the present invention also belong to the scope of protection of the present invention.

Claims

1. A multi-level robust communication topology system for BFT consensus, characterized by: Assume that there are n replica nodes, f Byzantine nodes, redundancy parameter r, and expansion parameter k in the multi-level robust communication topology system; First, divide all replica nodes into multiple layers. The node division process is as follows: Node division 1-1: There is one node in the first layer, which serves as the master node; Node division 1-2: The second layer has r*k nodes, all of which are directly connected to the master node; Node division 1-3: Starting from the third layer, the number of nodes in each layer is k times that of the previous layer, and is only connected to the nodes in the previous layer; Assume that each node has r predecessor nodes connected to it in the previous layer. The predecessor node sends blocks to the replica and collects its votes. Therefore, as long as one of the r predecessor nodes is connected to the master node, the node is connected to the master node. After deduction, it is concluded that each node has r*k successor nodes. The process of node connection is as follows: Node connection 2-1: Divide the nodes in the i-th layer into r groups, with the number of nodes each time being k i-1 , record the number of each node in this group; Node connection 2-2: Divide the nodes in the i+1th layer into k i-1 Group, the number of each group is r*k, record the group the node belongs to; Node connection 2-3: Connect the xth node of each group in the i-th layer with all the nodes of the xth group in the i+1-th layer. The xth node of each group in the i-th layer is all the predecessor nodes of the nodes of the xth group in the i+1-th layer, and the nodes of the xth group in the i+1-th layer are all the successor nodes of the xth node of each group in the i-th layer.

2. A multi-level robust communication topology system for BFT consensus according to claim 1, characterized in that: It also includes a redundancy parameter a, which indicates the number of times each replica node appears in the topology. All n replica nodes appear a times in the topology. The range of the redundancy parameter a is 1-k. When a is greater than 1, the nodes that appear multiple times are attached to the bottom node.

3. A multi-level robust communication topology system for BFT consensus according to claim 1, characterized in that: The above derivation shows that each node has r*k successor nodes, which is as follows: the number of nodes in the i-th layer is k times that of the previous layer, and each node has r predecessor nodes. Therefore, each node in the i-1-th layer needs to have r*k outgoing edges to meet the conditions.

Citation Information

Cited By

  • Thin fat tree network topology structure and method for sending routing request

    CN119906662A