| With its efficient,stable,reliable and convenient services,the smart grid is gradually replacing the traditional power system,and in the process a large amount of data is generated,which is related to the privacy of users and the information security of the system.Ensuring the secure storage of smart grid data is the key to maintain the fast,efficient and stable development of the electric power industry.Blockchain is a distributed ledger technology with tamper-proof characteristics and its decentralized storage structure can improve the availability and robustness of the system.This thesis focuses on the use of blockchain technology to eliminate the potential pitfalls of malicious access and tampering of data and the failure of central nodes in the process of smart grid data storage,which is of great significance for the development of the electric power industry.The main work of this thesis is as follows:(1)This thesis analyzes and designs a blockchainbased smart grid data storage system,which is divided into three layers: terminal layer,edge layer,and cloud computing layer.Two different blockchains are designed in the edge layer and the cloud computing layer to ensure the secure storage of smart grid data by using the decentralized,tamperproof and traceable features of blockchain.In addition,the freshness judgment mechanism for blocks in the edge layer and the function of storing raw data in cloud storage are designed to relieve the storage pressure of the edge nodes.(2)In order to solve the problem of time-consuming consensus of blockchain at the edge layer,this thesis proposes an edge blockchain propagation scheme based on tree clustering.A tree-based edge node clustering algorithm is designed to organize edge nodes into multiple tree clusters using mutual information and the ability of nodes to produce blocks as evaluation indicators.Blocks are first broadcasted within the same tree clusters and between different tree clusters,and then virtual voting is used to reach consensus on the blocks.Experiments show that this scheme is able to complete the broadcast of blocks within the whole network,which has a more significant efficiency improvement compared to the random propagation scheme.(3)This thesis implements a blockchain-based prototype system for smart grid data storage.The administrator user can use the graphical interface of this system to view the operation status of the smart grid data storage system in real time.The system test shows that this system can accomplish the function of smart grid data storage. |