| As an important application scenario of 5G,industrial Internet is promoting industrial production efficiency and productivity to an unprecedented level,while the centralized architecture adopted by traditional industrial Internet systems will cause security and privacy problems.As a distributed shared ledger and an irreversible public database,the blockchain enables unrelated participants to reach a consensus on the occurrence of specific transactions or events without centralized authorization,providing a new idea to solve the problems of security and privacy in the industrial Internet.However,the development of blockchain is in the ascendant,and it faces challenges such as insufficient throughput and high storage pressure when applied to industrial Internet.In view of the above problems,this thesis has carried out the research on blockchain sharding and storage technology for industrial Internet,aiming at improving the throughput of blockchain and alleviating the storage pressure of blockchain.The main research contents of this thesis are as follows:(1)In order to solve the problem of insufficient throughput of blockchain,a sharding scheme of blockchain network based on complex network community division is proposed.Firstly,according to the topological structure of the blockchain nodes,an improved blockchain network sharding algorithm is designed based on the Newman fast algorithm,which shortens the sharding time while ensuring the sharding quality.Secondly,the block broadcasting process is formalized into a spanning tree structure,and the influence of the block broadcasting time on the throughput is analyzed.On this basis,a leader node selection algorithm in shard based on the spanning tree is proposed,which improves the throughput of the blockchain network.The analysis and experimental results show that the proposed scheme effectively reduces the sharding time of the blockchain network and the broadcast time of blocks in each shard.(2)In order to solve the problem of high storage pressure of blockchain,an optimization scheme of blockchain data storage based on cloud-edge cooperation is proposed.Firstly,the heat of the block is comprehensively described by the method of extracting block features,and a block heat evaluation algorithm is designed to distinguish hot and non-hot blocks in the shard.Secondly,the storage priority of nodes is calculated by monitoring their running status in real time,and a hot block storage allocation algorithm is designed to select relatively reliable nodes in the edge layer to store hot blocks.The analysis and experimental results show that the proposed scheme can improve the local hit ratio of users to query block data while reducing the storage pressure of the edge layer blockchain nodes.(3)In order to realize the proposed blockchain network sharding scheme and blockchain data storage optimization scheme,a layering and sharding industrial Internet device sharing system based on consortium blockchain is developed.Firstly,the business logic of device sharing with complete functions is designed and implemented.Secondly,the edge layer blockchain network sharding is realized by using the multi-group architecture of FISCO BCOS.Finally,the storage unloading of non-hot blocks is realized according to the idea of hot and cold data separation of FISCO BCOS.The analysis and test results show that the operation interface of the developed system is simple and friendly,the application scenario is easy to expand,and the data storage is safe and efficient. |