Font Size: a A A

Optimization Of Blockchain Consensus Mechanism And Its Application In Tea Traceability System

Posted on:2020-02-29Degree:MasterType:Thesis
Country:ChinaCandidate:R J SuFull Text:PDF
GTID:2481305981452814Subject:Master of Engineering
Abstract/Summary:
In order to solve the problem of tea quality and safety,and make it possible to quickly locate the accident link and find the person in charge in the event of an accident,and stop the loss in time,the traceability system came into being.Such systems start from the tea production process and are recorded until the product is formed.The traditional traceability system is built on a centralized server.Although it is convenient for management,it also makes the center’s rights too large and the data can be easily faked,which leads to the question of data authenticity.Blockchain technology began to face the world with the advent of Bitcoin.Among its many features,decentralization and information tamper resistance can solve the problem of the traceability system mentioned above.However,in the actual combination of the blockchain and the traceability system,there will be some performance problems,such as the consensus efficiency problem in the case of large data volume entry.Therefore,this paper will optimize and improve this consensus problem.The Fabric framework selected by this paper provides the PBFT consensus algorithm by default,which is efficient in the blockchain network where the nodes are not trusted.However,in the node trusted network provided by the Fabric framework,its complicated verification process reduces the efficiency of transaction consensus.Therefore,for this situation and the performance problems mentioned above,this paper proposes an s BFT consensus algorithm that uses state lists for optimization.For the algorithm,this paper first analyzes its five basic concepts: the number of algorithms to comply with,the type of nodes in the network,and the status and status list of the nodes,etc.;then the algorithm’s consensus process is described in detail: first,a state list is generated by a node that sends a large amount of data and sent to each node in the list;then the nodes in the network package the consensus for the transaction.After that,this paper proposes eight situations that may interfere with the consensus efficiency of this algorithm and the solution for each case.After introducing the s BFT algorithm,this paper conducts detailed functional module analysis and design of the tea industry chain traceability system according to actual needs,including detailed design of the logical relationship between the traceability system modules;then the system is integrated with the fabric framework to design the chain code,the hierarchical structure of the system,and the way the data is stored.The traceability system combined with the blockchain framework has decentralized and tamper-proofed on the data storage to ensure data security.Finally,based on four cloud servers,this paper builds a 12-node blockchain network test environment.Under the same test conditions,the s BFT algorithm,PBFT algorithm and d BFT algorithm are respectively tested and compared,and finally,it is concluded that the performance of the s BFT algorithm is better than the other two algorithms;The function and performance of the traceability platform is tested to prove the feasibility of the various schemes designed in this paper.
Keywords/Search Tags:blockchain, consensus algorithm, traceability, decentralizad
Related items