Font Size: a A A

Dual-leader Heartbeat Weighted Traceback Consensus Algorithm And Its Application

Posted on:2022-10-15Degree:MasterType:Thesis
Country:ChinaCandidate:D D ZhangFull Text:PDF
GTID:2518306329974479Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the acceleration of China's industrialization process and the continuous deepening of the scientific and technological revolution,large-scale production has greatly improved our material living standards,and the quality and safety of products have become the focus of people's attention.The traceability system can provide the information of the whole process from production to sales,which is an important means to locate the source of the problem accurately.Blockchain technology has developed rapidly in recent years.It has the characteristics of decentralization,immutability and traceability.It can solve the risk of information tampering in the traditional centralized traceability system and better coordinate many links in the traceability industry chain.Therefore,blockchain has become a popular technology to solve the traceability problem.In blockchain technology,consensus algorithm is an agreement reached between multi-party participating nodes in the absence of trust guarantee,which is the core of blockchain technology.Choosing different consensus algorithms will directly affect the performance of the blockchain system.Therefore,how to design an efficient consensus algorithm to meet the needs of practical application has become a research hotspot.Based on the research of blockchain technology and the principle of consensus algorithm,this paper analyzes and compares the advantages and disadvantages of common consensus algorithms.Aiming at the problem that other consensus algorithms cannot verify the authenticity of the data written into the blockchain,a novel dual-leader heartbeat weighted traceback consensus algorithm combined with the application scenario of traceability is proposed.It realizes the hierarchical flexible consensus,reduces the election cost,better maintains the safe operation of the system and try to ensure the authenticity and effectiveness of traceable data.The algorithm uses a model that combines the main-chain,sub-chains,and databases to replace single-chain storage to better distinguish and manage the data information of each stage;uses the dual-leader node model to solve the problem of service interruption caused by leader failure and re-election,and increases the penalty for deducting the mortgage deposit to avoid the node's evil,so as to ensure the safety and reliability of the algorithm and the stability of the algorithm;proposes a sub-chain heartbeat weighted consensus algorithm to judge the validity of the information.The weight can be adjusted according to the actual scenario,so that the application of the algorithm has higher flexibility;proposes a main-chain voting verification consensus algorithm,the block is written into the main chain after verification by more than half of the nodes,effectively preventing Byzantine nodes from doing evil.At the same time,this paper analyzes the performance of the proposed dual-leader heartbeat weighted traceability consensus algorithm,and analyzes the algorithm's crash tolerance rate,Byzantine fault tolerance rate,and energy consumption.Finally,on the basis of the dual-leader heartbeat weighted traceability consensus algorithm proposed by the author,with agricultural traceability as the background,this paper combines the proposed consensus algorithm with actual scenarios,designs and implements an example application of the algorithm,which shows that the proposed consensus algorithm has good practical value.
Keywords/Search Tags:Blockchain, Consensus Algorithm, traceability, heartbeat algorithm, Byzantine fault tolerance
PDF Full Text Request
Related items