Raft consensus method suitable for Internet of Things
An Internet of Things and raft technology, applied in data exchange networks, digital data protection, digital transmission systems, etc., can solve problems such as inability to couple IoT application scenarios, high degree of centralization, and inability to apply to weak trust environments. The message is complex, the operation and maintenance cost is low, and the effect of reducing the communication link
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] refer to Figure 1 to Figure 5, which is the first embodiment of the present invention, this embodiment provides a Raft consensus method suitable for the Internet of Things, including:
[0042] S1: Collect the IoT data in the distributed physical network in real time through the IoT acquisition device, and cache the IoT data in the IoT gateway.
[0043] S2: Package the IoT data in the IoT gateway within 60s+K / N, and count the packaged data traffic.
[0044] It should be noted that K is a constant and can be set according to requirements; N is the amount of data flow received by each node per unit time.
[0045] S3: Calculate the random number Nonce value based on the random number function of the linear congruence algorithm and the SHA-256 algorithm.
[0046] Combine the data timestamp, parent block hash value, current block hash value, parent block block difficulty, and flow value with the random number function of the linear congruence algorithm and the SHA-256 algo...
Embodiment 2
[0079] In order to verify and explain the technical effect adopted in this method, this embodiment chooses the traditional Raft consensus algorithm and adopts this method to conduct a comparative test, and compares the test results by means of scientific demonstration to verify the real effect of this method.
[0080] Traditional technical solution: The traditional RAFT consensus algorithm elects for the master node through simple multiple communication voting, which has defects such as low security, serious centralization, and complicated communication process.
[0081] In order to verify that this method has the advantages of high security and low operation and maintenance costs compared with the traditional method, in this embodiment, the traditional RAFT consensus algorithm will be used to vote for the consensus efficiency of the master node through simple multiple communication voting and this method is used for distributed Adding traffic parameters to the system and verif...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 



