Blockchain Consensus Node Message Broadcasting Offload
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing method for broadcasting messages in blockchain consensus nodes leads to an excessive burden on the consensus node due to repeated message transmissions, consuming significant computing resources and causing instability in heterogeneous networks.
Innovation Solution
Allocating a message processing device to each consensus node, where the message broadcasting task is handled by these devices, allowing them to create threads for message processing without consuming resources from the consensus node, thus offloading the burden and enabling efficient consensus verification.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If a consensus node creates one thread for each other consensus node to send messages, then message delivery success rate is improved, but computing resource consumption increases excessively
Solution Approach 1:
The patent extracts the message broadcasting function from the consensus node by introducing a separate message processing device. The consensus node only sends messages to its corresponding message processing device, while the message processing device handles the complex task of broadcasting to multiple other consensus nodes and managing retransmissions, thus resolving the contradiction between reliable message delivery and computing resource consumption
Solution Approach 2:
The message processing device acts as an intermediary between the consensus node and other consensus nodes. It receives messages from the consensus node, creates multiple threads for broadcasting to different consensus nodes, and manages the entire message delivery process, thereby reducing the burden on the consensus node while ensuring high delivery success rate
2Reliability
If a consensus node repeatedly sends messages multiple times through threads, then message reception reliability is improved, but the burden on the consensus node increases
Solution Approach 1:
The patent extracts the complex message retransmission logic from the consensus node and places it in the message processing device. The message processing device is responsible for tracking which consensus nodes have received messages and initiating retransmissions when necessary, thereby maintaining high reception reliability while reducing consensus node burden
Solution Approach 2:
The message processing device autonomously manages the entire message broadcasting lifecycle including initial sending, monitoring acknowledgments, detecting failures, and performing retransmissions without requiring the consensus node to intervene, thus reducing device complexity at the consensus node while maintaining reliability
Data Source
Figure 1
Figure 2
Figure 3
AI summary
Implementations of the present application disclose a method and device for broadcasting messages. One message processing device is allocated to each consensus node, and a work of broadcasting a message between consensus nodes is handed over to message processing devices for implementation. For a certain consensus node, a message processing device corresponding to the consensus node can create a thread for a message processing device corresponding to another consensus node, to execute a message broadcasting task, until the message processing device corresponding to the another consensus node receives a broadcast message. As such, the thread for executing the message broadcasting task consumes only a computing resource of the message processing device without consuming a resource of the consensus node. Therefore, no burden is caused on the consensus node, so that the consensus node can perform consensus verification on a service more efficiently.