High throughput rate method based on block synchronous generation mechanism

By configuring multiple nodes in the blockchain system to independently generate and verify blocks, and adopting a global clock mechanism and a fork processing mechanism, the problem of blockchain forks and network sensitivity is solved, and the processing efficiency and consistency of the system are improved. It realizes efficient data synchronization and communication optimization, ensuring the stability and reliability of the system.

CN118784653APending Publication Date: 2024-10-15SHANGHAI RUNCAITONG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410713043.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

High-throughput methods based on block synchronization generation mechanisms suffer from blockchain fork issues and sensitivity to network bandwidth and communication delays, causing system consistency and stability to be affected.

Method used

By configuring multiple nodes to independently generate and verify blocks, using a global clock mechanism and an improved consensus algorithm to handle fork issues, designing a fork processing mechanism and incremental synchronization method, optimizing network communication protocols and error control mechanisms, and achieving dynamic bandwidth management and self-healing functions to ensure system consistency and stability.

Benefits of technology

Significantly improves the processing efficiency and throughput of the blockchain system, effectively prevents and processes blockchain forks, reduces data transmission volume and communication delays, ensures efficient operation of the system and node time synchronization under different network conditions, and achieves It ensures the consistency and integrity of data transmission and has self-healing function to ensure the continuity and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0004874682210000051
    Figure BDA0004874682210000051
  • Figure BDA0004874682210000061
    Figure BDA0004874682210000061
  • Figure BDA0004874682210000062
    Figure BDA0004874682210000062
Patent Text Reader

Abstract

The invention provides a high throughput rate method based on a block synchronization generation mechanism. The high throughput rate method based on the block synchronous generation mechanism comprises the steps that S1, a plurality of nodes are configured, each node has an independent block generation capability, each node synchronously generates a block within a preset time interval, and after each node generates the block, the block is sent to other nodes through broadcasting, and S2, after each node generates the block, the block is sent to other nodes through broadcasting. And the block is sent to other nodes through broadcast, the node receiving the block verifies the block, and the block passing the verification is added to the local block chain. The processing efficiency and throughput rate of the block chain system are remarkably improved by configuring a plurality of nodes to synchronously generate a block and parallelly verify the block, a perfect bifurcation processing mechanism is designed, the problem of bifurcation of the block chain is effectively prevented and processed by calculating the accumulated workload and adopting a punishment mechanism, the consistency and stability of the system are ensured, and the system performance is improved. An incremental synchronization mode and a compression technology are adopted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of blockchain architecture, and in particular to a high-throughput method based on a block synchronization generation mechanism. Background Art

[0002] The high throughput method aims to improve the processing efficiency of the blockchain system through a synchronous block generation mechanism. In this method, multiple nodes can generate and verify blocks at the same time, rather than relying on a single block generator. This parallel processing mode greatly reduces the time for block generation and verification, and improves the overall throughput of the system. Specifically, each node maintains a local state and periodically synchronizes block data with other nodes to ensure that all nodes maintain a consistent blockchain state. The core of this method is to improve the performance of the system by optimizing the consensus mechanism and reducing the waiting time for block generation. The specific implementation includes an improved PoW (proof of work) algorithm, the use of a DAG (directed acyclic graph) structure instead of a traditional chain structure, and the use of multiple sharding technologies to further disperse the data processing load. Through these technical means, the system can significantly improve throughput and processing power while maintaining security and decentralization.

[0003] Although the high-throughput method based on the block synchronization generation mechanism has significant advantages in performance, it also has some drawbacks. First, since multiple nodes generate blocks at the same time, it may cause blockchain fork problems. The generation of forks will cause different nodes to maintain different blockchain states, which in turn affects the consistency and stability of the system. To solve this problem, complex rollback and resynchronization mechanisms are required, which increases the complexity and computational overhead of the system. Secondly, this method is very sensitive to network bandwidth and communication delays between nodes. In a high-throughput environment, data needs to be synchronized frequently between nodes, which places very high demands on the network. Summary of the invention

[0004] 1. Technical issues to be solved

[0005] In view of the shortcomings of the prior art, the present invention provides a high-throughput method based on a block synchronization generation mechanism, which solves the problem that blockchain forks may occur due to multiple nodes generating blocks at the same time. This method is very sensitive to network bandwidth and communication delays between nodes.

[0006] (II) Technical solution

[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: A high throughput method based on a block synchronization generation mechanism comprises the following steps:

[0008] S1. Configure multiple nodes, each of which has independent block generation capabilities. Within a predetermined time interval, each node generates blocks synchronously. After each node generates a block, it sends the block to other nodes through broadcasting;

[0009] S2. After each node generates a block, it sends the block to other nodes through broadcasting. The nodes that receive the block verify the block and add the verified block to the local blockchain;

[0010] S3. Use a global clock mechanism to ensure that all nodes generate and verify blocks in the same time period, use an improved consensus algorithm to handle fork problems between nodes, and give priority to selecting the longest chain as the valid chain;

[0011] S4. Design a fork processing mechanism. After receiving a forked block, the node determines the retained chain by comparing the block height and workload, implements a fast data synchronization mechanism between nodes, and uses incremental synchronization to reduce data transmission volume;

[0012] S5. Optimize network communication protocols, reduce communication delays between nodes, and check data consistency through error control mechanisms after block generation;

[0013] S6. Implement dynamic bandwidth management, adjust data synchronization frequency according to network status, provide a rollback mechanism, and roll back to the previous state through global consensus and resynchronize data when forks or data inconsistencies occur.

[0014] Preferably, the global clock mechanism is implemented through a network time protocol to ensure time synchronization of each node, and the consensus algorithm is an improved proof-of-work algorithm that adopts a more efficient computing method to reduce energy consumption and computational complexity.

[0015] Preferably, the fork processing mechanism includes calculating the cumulative workload of the blockchain to determine the retained chain and adopting a penalty mechanism to prevent malicious forks, and the incremental synchronization method includes synchronizing only newly added blocks and difference data to reduce data transmission volume and improve synchronization efficiency.

[0016] Preferably, the network communication protocol is a lightweight protocol based on the User Datagram Protocol to reduce communication delays and bandwidth occupancy, and the error control mechanism includes hash checking and redundancy checking to ensure data consistency and integrity.

[0017] Preferably, the dynamic bandwidth management is adjusted based on the network bandwidth utilization of the node to optimize data transmission efficiency and system performance, and the rollback mechanism includes recording a snapshot of each block so as to quickly restore to the previous state in the event of a fork or data inconsistency.

[0018] Preferably, the node adopts compression technology to reduce the amount of data transmission and improve transmission efficiency when synchronizing blocks. The node randomly selects a time window when generating blocks to reduce the collision probability of block generation and ensure the smoothness of the generation process.

[0019] Preferably, the node adopts parallel verification technology to increase the verification speed and reduce the verification time when verifying the block. The node has a cache mechanism to cache data when the network delay is large to ensure synchronization efficiency and reduce data loss.

[0020] Preferably, the system has a self-healing function that can automatically reconfigure the network and data synchronization when a node fails, ensuring the continuity and reliability of the system.

[0021] (III) Beneficial effects

[0022] The present invention provides a high throughput method based on a block synchronization generation mechanism, which has the following beneficial effects:

[0023] By configuring multiple nodes to synchronously generate blocks and verify blocks in parallel, the processing efficiency and throughput of the blockchain system are significantly improved. A complete fork processing mechanism is designed. By calculating the cumulative workload and adopting a penalty mechanism, the blockchain fork problem is effectively prevented and handled to ensure system consistency and stability. The incremental synchronization method and compression technology are used to reduce the amount of data transmission, improve data synchronization efficiency, and reduce network bandwidth occupancy. The UDP-based lightweight protocol optimizes network communication, reduces communication delays, and increases the data exchange speed between nodes. Dynamic bandwidth management and global clock synchronization are implemented to ensure efficient operation of the system and node time synchronization under different network conditions. Hash verification and redundancy verification are used to ensure consistency and integrity of data transmission. The system has self-healing function and can automatically reconfigure the network and data synchronization when a node fails to ensure system continuity and reliability. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present invention are described clearly and completely. 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.

[0025] The embodiment of the present invention provides a high-throughput method based on a block synchronization generation mechanism, including: S1, configuring multiple nodes, each node has an independent block generation capability, each node synchronously generates a block within a predetermined time interval, and after each node generates a block, sends the block to other nodes through broadcasting.

[0026] S2. After each node generates a block, it sends the block to other nodes through broadcasting. The nodes that receive the block verify the block and add the verified block to the local blockchain.

[0027] S3. A global clock mechanism is adopted to ensure that all nodes generate and verify blocks in the same time period. An improved consensus algorithm is used to handle fork problems between nodes, and the longest chain is selected as the valid chain. The global clock mechanism is implemented through the network time protocol to ensure the time synchronization of each node. The consensus algorithm is an improved proof-of-work algorithm that uses a more efficient calculation method to reduce energy consumption and computational complexity.

[0028] S4. Design a fork processing mechanism. After receiving the forked block, the node determines the retained chain by comparing the block height and workload, implements a fast data synchronization mechanism between nodes, and uses incremental synchronization to reduce the amount of data transmission. The fork processing mechanism includes calculating the cumulative workload of the blockchain to determine the retained chain and using a penalty mechanism to prevent malicious forks. The incremental synchronization method includes only synchronizing new blocks and difference data to reduce the amount of data transmission and improve synchronization efficiency.

[0029] S5. Optimize the network communication protocol and reduce the communication delay between nodes. After the block is generated, check the data consistency through the error control mechanism. The network communication protocol is a lightweight protocol based on the user datagram protocol to reduce communication delay and bandwidth occupancy. The error control mechanism includes hash check and redundancy check to ensure data consistency and integrity.

[0030] S6. Implement dynamic bandwidth management, adjust data synchronization frequency according to network status, provide rollback mechanism, roll back to the previous state through global consensus and resynchronize data when fork or data inconsistency occurs, dynamic bandwidth management is adjusted based on the network bandwidth utilization of nodes to optimize data transmission efficiency and system performance, rollback mechanism includes recording snapshots of each block, so as to quickly restore to the previous state in case of fork or data inconsistency, nodes use compression technology to reduce data transmission volume and improve transmission efficiency when synchronizing blocks, nodes randomly select a time window when generating blocks to reduce the collision probability of block generation and ensure the stability of the generation process, nodes use parallel verification technology to increase verification speed and reduce verification time when verifying blocks, nodes have a cache mechanism to cache data when network delay is large to ensure synchronization efficiency and reduce data loss, the system has a self-healing function that can automatically reconfigure the network and data synchronization when a node fails to ensure the continuity and reliability of the system, configure multiple nodes, each node has independent block generation capabilities:

[0031]

[0032] Among them, λ is the block generation rate. Within the predetermined time interval, each node generates blocks synchronously:

[0033] T sync =T block +ΔT net

[0034] Among them, ΔTnet is the network delay. After each node generates a block, it sends the block to other nodes through broadcasting. The nodes that receive the block verify the block and add the verified block to the local blockchain. The global clock mechanism is used to ensure that all nodes generate and verify blocks in the same time period:

[0035] T sync =T block +ΔT net

[0036] The improved consensus algorithm is used to handle the fork problem between nodes, and the longest chain is selected as the valid chain:

[0037]

[0038] Design a fork handling mechanism. After receiving the forked block, the node determines the retained chain by comparing the block height and workload:

[0039]

[0040] Implement a fast data synchronization mechanism between nodes and use incremental synchronization to reduce the amount of data transmission:

[0041] ΔData=Data new -Data old

[0042] Optimize network communication protocols to reduce communication delays between nodes:

[0043]

[0044] After the block is generated, the data consistency is checked through the error control mechanism:

[0045] E data =H(data recv )-H(data orig )

[0046] Implement dynamic bandwidth management and adjust data synchronization frequency according to network status:

[0047]

[0048] Provides a rollback mechanism. When a fork or data inconsistency occurs, roll back to the previous state through global consensus and resynchronize the data:

[0049] S state =Snapshot block

[0050] 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 high throughput method based on a block synchronization generation mechanism, characterized in that: The following steps are involved: S1. Configure multiple nodes, each of which has independent block generation capabilities. Within a predetermined time interval, each node generates blocks synchronously. After each node generates a block, it sends the block to other nodes through broadcasting; S2. After each node generates a block, it sends the block to other nodes through broadcasting. The nodes that receive the block verify the block and add the verified block to the local blockchain; S3. Use a global clock mechanism to ensure that all nodes generate and verify blocks in the same time period, use an improved consensus algorithm to handle fork problems between nodes, and give priority to selecting the longest chain as the valid chain; S4. Design a fork processing mechanism. After receiving a forked block, the node determines the retained chain by comparing the block height and workload, implements a fast data synchronization mechanism between nodes, and uses incremental synchronization to reduce data transmission volume; S5. Optimize network communication protocols, reduce communication delays between nodes, and check data consistency through error control mechanisms after block generation; S6. Implement dynamic bandwidth management, adjust data synchronization frequency according to network status, provide a rollback mechanism, and roll back to the previous state through global consensus and resynchronize data when forks or data inconsistencies occur.

2. The high throughput method based on block synchronization generation mechanism according to claim 1, characterized in that: The global clock mechanism is implemented through the network time protocol to ensure the time synchronization of each node. The consensus algorithm is an improved proof-of-work algorithm that adopts a more efficient calculation method to reduce energy consumption and calculation complexity.

3. The high throughput method based on block synchronization generation mechanism according to claim 1, characterized in that: The fork processing mechanism includes calculating the cumulative workload of the blockchain to determine the retained chain and adopting a penalty mechanism to prevent malicious forks. The incremental synchronization method includes only synchronizing newly added blocks and difference data to reduce data transmission volume and improve synchronization efficiency.

4. The high throughput method based on block synchronization generation mechanism according to claim 1, characterized in that: The network communication protocol is a lightweight protocol based on the User Datagram Protocol to reduce communication delay and bandwidth occupancy, and the error control mechanism includes hash check and redundancy check to ensure data consistency and integrity.

5. The high throughput method based on block synchronization generation mechanism according to claim 1, characterized in that: The dynamic bandwidth management is adjusted based on the network bandwidth utilization of the node to optimize data transmission efficiency and system performance. The rollback mechanism includes recording a snapshot of each block so as to quickly restore to the previous state in the event of a fork or data inconsistency.

6. The high throughput method based on block synchronization generation mechanism according to claim 1, characterized in that: The node uses compression technology to reduce the amount of data transmission and improve transmission efficiency when synchronizing blocks. The node randomly selects a time window when generating blocks to reduce the collision probability of block generation and ensure the smoothness of the generation process.

7. The high throughput method based on block synchronization generation mechanism according to claim 1, characterized in that: The node uses parallel verification technology to improve the verification speed and reduce the verification time when verifying the block. The node has a cache mechanism to cache data when the network delay is large to ensure synchronization efficiency and reduce data loss.

8. The high throughput method based on block synchronization generation mechanism according to claim 1, characterized in that: The system has a self-healing function that can automatically reconfigure the network and data synchronization when a node fails, ensuring the continuity and reliability of the system.