Font Size: a A A

Research On Blockchain Raft Consensus Mechanism Based On Dynamic Trust Model

Posted on:2024-06-30Degree:MasterType:Thesis
Country:ChinaCandidate:H Y DaFull Text:PDF
GTID:2568307094484244Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the development of blockchain technology,the consensus mechanism cannot achieve low latency,high throughput,and high security while ensuring support for large-scale networks due to lack of scalability.Raft consensus mechanism is a method for managing multi-replica state machine log replication,which has the advantages of high throughput and low latency from the perspective of multi-replica state machine,but cannot tolerate the existence of Byzantine nodes,and the selection rules in the election stage are simple,votes are easy to be divided,and there is no reasonable punishment mechanism.In view of the problems existing in the Raft consensus mechanism,this paper proposes a Dynamic Trust Raft based Raft consensus mechanism based on dynamic trust,and the specific research content is as follows.In view of the insufficient node control of the Raft consensus mechanism and the problem of votes being divided during the election stage.Firstly,DTRaft constructs a dynamic trust model based on the behavior of nodes in the consensus process,and synthesizes factors such as time decay function and penalty factor.Secondly,the consensus process is divided according to cycles,and the trust value of nodes is dynamically updated according to the behavior of nodes participating in the consensus process.Finally,the nodes are classified according to the node trust value,and the trusted node is selected as the leader node to solve the problem of insufficient node control.The Raft consensus mechanism cannot tolerate the problems existing in Byzantine nodes.The DTRaft consensus mechanism first uses digital signatures to solve the problem of Byzantine Leader nodes tampering with logs.Secondly,the identification bit W is introduced to solve the problem of the Byzantine Follower node maliciously responding to the Leader node,and ensure that the log entries can still be submitted correctly when the Byzantine node sends an error message.Experimental results show that: a.the dynamic trust model can realize the punishment of nodes,and can keep the node trust value at a relatively stable value,and the running time of the trust model has less impact than the running time of the entire consensus process;b.signature verification solves the problem of malicious response of nodes to ensure that log entries can still be submitted correctly when Byzantine nodes send error messages;c.DTRaft consensus mechanism has greatly improved security compared with Raft consensus mechanism,and with the operation of the system,block generation can be completed more efficiently than Raft.
Keywords/Search Tags:Raft consensus mechanism, trust model, Punishment and reward factors, Digital signature, blockchain
PDF Full Text Request
Related items