| In recent years,China has vigorously promoted the deep integration of industry and internet technology,making the industrial internet an aspect of internet application.In the chemical industry field,it has achieved intelligent management and precise control of chemical product production.However,in the chemical industry internet,different enterprises need to collaborate and share information,which is a typical distributed application.At the same time,when interacting between enterprises,they may face challenges in terms of network security,information security,and node system reliability.Therefore,it is indispensable to enhance information communication and data exchange between chemical enterprises through the introduction of blockchain trust infrastructure.In the large-scale chemical industry Internet,when facing the consensus process of inter-enterprise transactions in the supply chain,the general consensus algorithm has the defect of not being able to considers efficiency and fairness,which is not suitable for large-scale chemical industry Internet applications.In view of this,a consensus algorithm that can consider fairness and efficiency is proposed for this topic and applied to the chemical industry internet,which is of great significance for the sustainable development of the chemical industry.This article focuses on the large-scale chemical industry internet,and studies the transactions between enterprises belonging to upstream and downstream supply chain nodes based on blockchain technology.Firstly,the concept of "large-scale small-scene events" was proposed by analyzing the consensus process among large-scale chemical industry Internet enterprises.In order to address the problem that the current consensus algorithm does not consider both fairness and efficiency and thus is not applicable to large-scale small-scene events,this paper investigates a consensus algorithm that aims to ensure more objective fairness in node selection while improving efficiency.Then,taking inter enterprise transactions at supply chain nodes as an example,the application of consensus algorithm in the chemical industry internet is discussed.Finally,through experimental verification and analysis with the traditional consensus algorithm Raft,it is concluded that the algorithm proposed in this article can considers fairness and efficiency at the same time,and is suitable for large-scale chemical industry Internet application scenarios.Chapter 1 of this paper introduces the background of chemical industry Internet and the analysis of the current situation of consensus algorithm research in blockchain,and points out that the application of blockchain system in chemical industry Internet requires innovation of consensus algorithm.Chapter 2 classifies the current mainstream consensus algorithms and points out the advantages and disadvantages of each consensus algorithm.Chapter 3 formally defines the large-scale small-scene events for the large-scale chemical industry Internet,and designs and proposes the consensus algorithm based on rights and responsibilities.Chapter 4 implements the application of consensus algorithm in chemical industry Internet with the example of inter-enterprise transactions in chemical supply chain nodes.Chapter 5 demonstrates through comparative experiments that under the same premise,the consensus algorithm based on rights and responsibilities is more objective and fairer than the traditional consensus algorithm Raft,and more efficient.Chapter 6 summarizes the innovative points of this paper’s work,analyzes the shortcomings of the algorithm,and looks into the future directions of algorithm improvement.This article mainly addresses the issue of balancing fairness and efficiency of consensus algorithms in the large-scale chemical industry Internet.Therefore,the research content is divided into the following two parts:(1)Based on the application scenario of large-scale chemical industry Internet,a consensus algorithm that considers fairness and efficiency is proposed.The definition analysis of large-scale small-scene events in the chemical industry internet focuses on the data ownership and responsibility identification of each supply chain node in the upstream and downstream supply and demand enterprise transaction process.Aiming at the shortcomings of traditional consensus algorithms that cannot considers fairness and efficiency,a consensus mechanism based on rights and responsibility is proposed to achieve a balance between fairness and efficiency.Firstly,the chemical industry internet is classified into nodes to better analyze problems and design solutions.Secondly,we studied existing consensus algorithms and designed a one stage voting consensus to reduce the complexity of the communication process.The consensus algorithm designed in this article includes two consensus attempts.The first consensus is initiated by the regulatory node and participated in the voting of the parties’ nodes for consensus calculation.The second consensus is that blockchain related observer nodes submit service requests,and the system is implemented through smart contracts.(2)Apply a consensus algorithm that considers fairness and efficiency to the largescale chemical industry internet.In order to meet the needs of large-scale chemical industry Internet,this article selects an alliance chain system with management capabilities.Build a Manager management side service in the alliance chain,build a blockchain network corresponding to the application scenario,and control the permissions of relevant nodes in the alliance chain through the management side.The consensus module mechanism in this system uses the rights and responsibilities consensus algorithm designed in this article to implement the consensus process between supply chain nodes and enterprises,and to upload the consensus data to the chain.Finally,a comparative experiment with Raft proves that the rights and responsibility consensus algorithm can considers fairness and efficiency at the same time. |