Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2021-11-09
上海华能电子商务有限公司 +1
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, since the traditional RAFT consensus algorithm uses multiple communication voting methods, this puts forward higher requirements for the communication efficiency of distributed systems that usually use P2P networks. At the same time, the RAFT consensus algorithm based on voting is very random. , although a certain degree of security is guaranteed, but the degree of centralization is too high to be applicable to a weak trust environment
The communication environment requires too much and is not suitable for the weak trust environment, so that the traditional RAFT consensus algorithm cannot be coupled with the application scenario of the Internet of Things

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Raft consensus method suitable for Internet of Things
  • Raft consensus method suitable for Internet of Things
  • Raft consensus method suitable for Internet of Things

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a Raft consensus method suitable for the Internet of Things, and the method comprises the steps: collecting the Internet of Things data in a distributed physical network in real time through an Internet of Things collection device, and caching the Internet of Things data in an Internet of Things gateway; packaging the Internet of Things data within the time of 60s + K / N, and counting the packaged data traffic; calculating a random number Non value based on a random number function of a linear congruence algorithm and a Hash algorithm; according to the data flow parameters, carrying out master selection difficulty dynamic adjustment, determining a target value, and judging whether the random number None value accords with the target value or not; designing a timer, starting a consensus main selection process, selecting a consensus main node according to a random number Nonce value conforming to a target value, and performing RAFT log copying. The dynamic election of the main node is realized according to the dynamic change of the data volume received by the node receiving and collecting equipment, and the method is safe, reliable and low in operation and maintenance cost.

Description

technical field [0001] The present invention relates to the technical field of consensus mechanism, in particular to a Raft consensus method suitable for the Internet of Things. Background technique [0002] The RAFT consensus algorithm is an algorithm for realizing distributed consensus, which is mainly used to manage the consistency of log replication. This consensus algorithm is adopted by many distributed systems because of its easier understanding and high consensus efficiency. [0003] However, since the traditional RAFT consensus algorithm uses multiple communication voting methods, this puts forward higher requirements for the communication efficiency of distributed systems that usually use P2P networks. At the same time, the RAFT consensus algorithm based on voting is very random. , although a certain degree of security is guaranteed, but the degree of centralization is too high to be applicable to a weak trust environment. The high requirements of the communicatio...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08H04L12/24G06F21/64
CPCH04L67/12H04L67/104H04L41/069G06F21/64H04L67/568
Inventor 王绪繁柯晓凡陶俭陈竞翔黄杰周子岩
Owner 上海华能电子商务有限公司