A lightweight and secure smart grid communication method and system based on blockchain

By introducing blockchain technology into smart grids, utilizing the collaborative work of trusted authorities, control centers, and gateways to dynamically divide accounting nodes and use Merkle trees, the issues of user privacy and communication data integrity in smart grids are solved, and the Efficient and secure communication data processing.

CN112019338BActive Publication Date: 2024-10-15HENAN XJ INSTR
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201910471457.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-31
Publication Date
2024-10-15
Estimated Expiration
2039-05-31

AI Technical Summary

Technical Problem

Existing smart grid application systems based on blockchain technology fail to simultaneously protect user privacy and ensure the confidentiality and integrity of communication data, and lack efficient, secure, and high-availability solutions.

Method used

A lightweight secure smart grid communication method based on blockchain is designed. Secret information is managed through trusted authority, the control center integrates and analyzes electricity consumption data, and the gateway connects sensing nodes. It uses distributed ledgers, smart contracts, and non-standard Symmetric encryption and authorization technology, dynamically dividing accounting nodes, using Merkle tree and node consensus mechanism to ensure data confidentiality and integrity.

Benefits of technology

It achieves the effect of simultaneously protecting user privacy and ensuring the confidentiality of communication data, and significantly improves the security and efficiency of smart grid communication systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112019338B_ABST
    Figure CN112019338B_ABST
Patent Text Reader

Abstract

The present invention provides a lightweight and secure smart grid communication method and system based on blockchain, in which a trusted authority is responsible for managing and distributing secret information in the system; a control center is responsible for integrating, processing and analyzing the periodic time series power consumption data of all users in the cell network; a gateway is responsible for aggregating power consumption data and forwarding communication data; a sensing node is responsible for real-time collection of power consumption data and reporting it to the control center, and the specific steps are as follows: system initialization stage; security data collection stage; accounting node selection stage; new block generation stage; block verification stage; data aggregation stage; aggregated data recovery stage; decision support stage. Based on in-depth research and analysis of the existing achievements of blockchain technology in the field of smart grid applications, the present invention realizes a lightweight and secure smart grid communication method and system based on blockchain technology, while ensuring the confidentiality and integrity of communication data, and effectively protecting the privacy information of users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a lightweight secure smart grid communication method and system based on blockchain. Background Art

[0002] The concept of blockchain provides a node consensus mechanism of distributed architecture for the application field of Internet of Things, solves the coordination problem between billions of sensor nodes, and enhances the scalability of the system. Smart grid is a typical physical-information fusion Internet of Things application system. Relevant scholars have studied how to combine the Internet of Things / smart grid with blockchain. Dorri et al. proposed a solution for secure communication of smart grid based on blockchain technology. Khan and Salah considered the data collection problem in Internet of Things applications and discussed how blockchain can be applied to distributed data collection. Christidis and Devetsikiotis studied the problem of smart contracts in blockchain for Internet of Things application scenarios, verified the feasibility of the solution through experimental methods, and discussed potential Internet of Things application industries and applicable environments. Sharma et al. proposed a distributed cloud computing architecture for smart grid applications based on blockchain technology, realized the software-defined network function at the edge of the network, and used it to control the relevant sensor nodes of edge computing. However, the above solutions did not design an integrated solution for the whole process of smart grid data collection, data communication, and data analysis, and did not quantitatively analyze the operating efficiency of the system. Based on the decentralized characteristics of distributed ledgers, blockchain helps to ensure the security of multi-party transactions in the Internet of Things. Dagher et al. proposed an access control and interoperability privacy protection framework in the e-health IoT application system, and Xia et al. used blockchain to realize the secure sharing of medical data between cloud service providers. Chen et al. proposed a blockchain information tracking algorithm based on artificial neural network and applied the algorithm to blockchain big data mining. Huang et al. proposed an information security management model for electric vehicle and charging pile IoT application system based on blockchain ecosystem. However, the above solutions do not target the particularity and actual application needs of smart grid IoT application system, and the proposed solutions are too rough and only consider the coarse-grained application framework. Existing smart grid application systems based on blockchain technology cannot simultaneously protect user privacy and ensure the confidentiality and integrity of communication data. Therefore, there is a lack of efficient, secure, high-availability and secure smart grid solutions and application systems based on blockchain technology. Summary of the invention

[0003] In view of the problems existing in the prior art, the purpose of the design of the present invention is to provide a lightweight and secure smart grid communication method and system based on blockchain.

[0004] Blockchain is the basic technology of digital cryptocurrency systems represented by Bitcoin, which has the characteristics of centralization, tamper-proof and permanence. Blockchain can realize trusted transactions in untrusted distributed systems through encryption algorithms, timestamps and distributed consensus. The coordination between blockchain nodes solves the high cost, low efficiency and insecure data storage problems common in centralized architectures. Blockchain is essentially a decentralized distributed ledger database, which contains a string of data blocks generated by cryptography, and each data block records the valid confirmation information of multiple network transactions. Whenever an encrypted transaction is generated, miners with powerful computing power in the network begin to use algorithms to decrypt and verify the transaction, creating new blocks to record the latest transactions. The new blocks are linearly added to the end of the original blockchain in chronological order. Through complex public and private key settings, the blockchain network broadcasts all transaction ledgers of the entire financial network in real time, distributes transaction records to each client in real time, and ensures that each user can only modify his or her own property. As an emerging technology, blockchain has attracted widespread attention from industry and academia, and has been applied to different industries such as finance, medical care, education, real estate, insurance, art, logistics, and law. The technical architecture based on blockchain has been proposed for application areas such as sensor networks, the Internet of Things, and smart cities. Physical-information fusion systems, such as smart grids, are one of the prominent application areas of blockchain technology. Relevant scholars have studied how to combine the Internet of Things / smart grids with blockchain to improve the operating efficiency and system security of smart grids.

[0005] The present invention is achieved through the following technical solutions:

[0006] The lightweight and secure smart grid communication method based on blockchain is characterized in that the method is based on the application scenario of the smart grid communication system, and the trusted authority is responsible for managing and distributing the secret information of all other entities in the system; the control center is responsible for integrating, processing and analyzing the periodic time series power consumption data of all users in the cell network to provide comprehensive and reliable smart services; according to the principle of geographical proximity, the control center allocates all users U={U1,U2,…,U n} is divided into w clusters {CL1, CL2, …, CL w}, where w is a system parameter, and the value of w is determined according to the overall topology of the system and the size of n; In the control center, according to the hardware configuration, operating environment, communication reliability and other indicators, the control center selects the sensing nodes from the set N = {N1, N2, ..., N N}(or user set U={U1,U2,…,U N}) dynamically selects accounting nodes and forms a subset of accounting nodes It is used to determine the accounting master node at each data reporting time point to verify the integrity of the communication data, generate new blocks and update the blockchain, thereby improving the execution efficiency of the system and ensuring the security of the system; the gateway connects the control center and the cell network, and is responsible for aggregating the power consumption data submitted by each user and forwarding communication data between each user and the control center; the n sensing nodes N={N1,N2,…,N n}(or user U={U1,U2,…,U n}), responsible for collecting power consumption data in real time and reporting it to the control center through the gateway. The specific steps are as follows:

[0007] (1) System initialization phase

[0008] The trusted authority performs the following operations to initialize the system:

[0009] 1) Choose two safe large prime numbers p and q, satisfying q|(p-1), generating a cyclic group G of order q, and the discrete logarithm problem on group G is difficult (computationally infeasible), and choose the generator of group G

[0010] 2) Select cryptographically secure hash functions H1, H2 and H3, where H1: {0,1} * →G,H2:{0,1} * →G,

[0011] 3) Randomly select n satisfy And each z i Distribute to each user U i , where i = 1, 2, ..., n;

[0012] 4) Randomly select n and calculate as well as will u i and v i Distribute to each user U i , where x i and Y i For user U i The private key and public key of , i = 1, 2, ..., n;

[0013] 5) Finally, each user U i Obtain and keep confidential i ,v i ,z i ,x i >, GW obtains and keeps secret s, control center obtains and keeps secret ​The public information of the system is<p,q,g,G,H1,H2,H3> , and Y i , where i = 1, 2, ..., n;

[0014] (2) Safety data collection phase

[0015] At the data reporting time point t τ , aggregate CL i Each user U in i ∈CL i Do the following:

[0016] 1) Each user U i ∈CL i calculate Among them, m i For user U i Current reported electricity usage; select calculate and i =k i +x i H3(c i ||r i ||t τ ||Y i )mod q;

[0017] 2) Each user U i ∈CL i Will <c i ,r i ,s i >Send to aggregate CL i Other users in;

[0018] 3) When each user U j≠i ∈CL i Received <c i ,r i ,s i > Later, by calculating Verify user U i ∈CL i Correctness of digital signature;

[0019] (3) Accounting Node Selection Phase

[0020] The control center collects accounting nodes Select the one corresponding to the current t τ The collection element Take turns to gather CL i The accounting master node corresponding to the current accounting time;

[0021] (4) New block generation phase

[0022] Blockchain Block Aggregation CL i The accounting master node in Perform the following operations to correspond to the current t τ Aggregation CL i All users in U i ∈CL i The electricity consumption information is encapsulated into a new block and the new block is added to the blockchain:

[0023] 1) Calculation

[0024] 2) Form a new block to record data domain information

[0025] 3) Calculate and record the aggregated CL from bottom to top in the Merkle tree i All users in U i ∈CL i The encrypted hash value of the electricity consumption data;

[0026] 4) Include the aggregated CL i The Merkle tree root of the encrypted hash value of the electricity consumption of all users in the τ , the hash value of the previous block, the current accounting master node Block data field information etc. are recorded in the block header;

[0027] 5) Publish the new block to all other users for block confirmation;

[0028] (5) Block verification phase

[0029] After receiving a new block, gather CL i Each user (node) U i ∈CL i Do the following:

[0030] 1) Verify the accuracy and authenticity of new block records;

[0031] 2) If the new block record is valid, user U i ∈CL i Synchronously add new blocks to the blockchain of the local dataset;

[0032] 3) After receiving confirmation information from all nodes, the accounting master node Will gather CL i The corresponding reporting time point t τ Aggregate electricity consumption ciphertext Send to the gateway;

[0033] (6) Data aggregation stage

[0034] At reporting time t τ , when receiving the aggregated electricity consumption ciphertext of all w accounting master nodes Afterwards, the gateway performs the following operations to perform secure data aggregation:

[0035] 1) Calculation

[0036] 2) C GW Send to the control center;

[0037] (7) Aggregate data recovery phase

[0038] At reporting time t τ , when receiving C GW Afterwards, the control center performs the following operations to restore aggregated power consumption:

[0039] 1) Based on the secret information calculate

[0040] 2) Calculate C CC Based on H1(t τ ) to obtain the aggregate power consumption of all users

[0041] (8) Decision support stage

[0042] After receiving the electricity consumption statistics, the control center conducts a security analysis of the historical and real-time electricity consumption data of the entire power grid, draws and predicts the trend of electricity consumption changes, and performs dynamic pricing based on the user's fine-grained electricity consumption data, providing decision support for the user's electricity consumption behavior planning.

[0043] The lightweight and secure smart grid communication system based on blockchain is characterized by comprising:

[0044] Trusted authority: responsible for managing and distributing secret information of all other entities in the system, with high credibility and super computing power;

[0045] Control center: responsible for integrating, processing and analyzing the periodic time series electricity consumption data of all users in the cell network, and providing comprehensive and reliable intelligent services; according to the principle of geographical proximity, the control center integrates all users in the cell network U = {U1, U2, ..., U n} is divided into w clusters {CL1, CL2, …, CL w}. Where w is a system parameter, and its value is determined by the overall topology of the system and the size of n; In the control center, according to the hardware configuration, operating environment, communication reliability and other indicators, the control center selects the sensing nodes from the set N = {N1, N2, ..., N N}(or user set U={U1,U2,…,U N}) dynamically selects accounting nodes and forms a subset of accounting nodes Used to determine the accounting master node at each data reporting time point to verify the integrity of communication data, generate new blocks and update the blockchain, thereby improving the execution efficiency of the system and ensuring system security;

[0046] Gateway: used to connect the control center and the cell network, responsible for aggregating the power consumption data submitted by each user and forwarding communication data between each user and the control center;

[0047] Sensing nodes: There are n sensing nodes in the smart grid community network N={N1,N2,…,N n}(or user U={U1,U2,…,U n}), responsible for collecting power consumption data in real time and reporting it to the control center through the gateway.

[0048] The lightweight and secure smart grid communication system based on blockchain is characterized by also including:

[0049] (1) System initialization module

[0050] 1) Trustworthy and authoritative design meets The secret information generation and distribution technology of each user based on algebraic relations is used to embed blind information in the reported data of each user, perform nonlinear and efficient mixing of user data, and effectively ensure the confidentiality of communication;

[0051] 2) The trusted authority selects n calculate and And respectively configured as the secret information of the gateway and the control center, the technology of setting permissions and security management for smart grid related entities is used to strictly prevent the system entities from illegally obtaining user privacy alone or in collusion;

[0052] 3) Using the distributed ledger, smart contract, asymmetric encryption and authorization technology of blockchain, as well as the node consensus mechanism, a flexible and dynamic division method of network nodes is innovated. According to the user topology structure of the smart grid communication system and the principle of geographical proximity, the users of the community network can be dynamically clustered and divided, which is used to significantly improve the security and practicality of the smart grid communication system.

[0053] (2) Security Data Collection Module

[0054] 1) Aggregate CL through cell network aggregation and division i Each user U i ∈CL i Calculate separately Distributed data collection, secure homomorphic encryption, and autonomous and efficient data reporting technologies for user electricity consumption data, methods to effectively protect user privacy and ensure the confidentiality of communication data;

[0055] 2) Aggregate CL i Each user U i ∈CL i By choosing calculate and i =k i +x i H3(c i ||r i ||t τ ||Y i )mod q, a technology for performing lightweight information authentication of user power consumption data using a proxy signature, effectively ensuring the integrity of user communication data and securely authenticating the identity of the communication source entity;

[0056] 3) Aggregation of CL i Each user U j≠i ∈CL i By calculation And authenticate user U i ∈CL i The technology of digital signature correctness is used to realize the fair evaluation of communication information security based on the group intelligence cooperation mode of smart grid network nodes, through the group collaboration between the aggregation nodes, making full use of scattered computing resources;

[0057] (3) Accounting Node Selection Module

[0058] 1) The control center comprehensively evaluates the hardware configuration, operating environment, communication reliability and other indicators of each sensing node of the smart grid, and dynamically selects the accounting node set A method for selecting a primary accounting node at each data reporting time point;

[0059] 2) The control center reports data at each time point t τ , from the accounting node set Select the collection elements one by one Take turns to gather CL iThe technology of the accounting master node corresponding to the current accounting time is used to generate new blocks and update the blockchain, ensure the security of information exchange in the smart grid system, and significantly improve communication efficiency;

[0060] (4) New block generation module

[0061] 1) Based on the hash storage and information authentication technology of Merkle tree, accounting master node Calculate and record aggregate CL from bottom to top i All users in U i ∈CL i A method for obtaining a ciphertext hash value of electricity consumption;

[0062] 2) Record the current timestamp t in the block header τ , including clustered CL i The Merkle tree root of the encrypted hash value of the electricity consumption of all users, the hash value of the previous block, and the current accounting master node Aggregate CL i The current aggregated power usage ciphertext in Technologies for information security and traceability of communication data;

[0063] 3) At the data reporting time point, the accounting master node securely encapsulates the block data structure containing the ciphertext and statistical information of current and historical user electricity consumption data, and designs a node consensus mechanism and a technology based on the node group mode to check and verify the newly generated block information, which is used to ensure the security and traceability of communication data;

[0064] 4) Design the generation and release technology of new block record information, which is used by the accounting master node to release the new block to the aggregated CL i All other users in the block confirm the block and report the current time point t τ Aggregate CL i A method for adding the aggregated electricity consumption information of all users in the blockchain;

[0065] (5) Block verification module

[0066] 1) Based on the node consensus mechanism, gather CL i Each user U i ∈CL i A method for verifying the accuracy and authenticity of new block records;

[0067] 2) Design a new block record validity verification mechanism to aggregate CL i A method for each user to synchronously add new blocks to the blockchain in the local dataset;

[0068] 3) Based on the node consensus mechanism, the accounting master node Received aggregated CL i After all users confirm the information, the current reporting time node t τ Aggregate CL i Aggregate electricity consumption of all users in Method to send to gateway securely;

[0069] (6) Data aggregation module

[0070] 1) Gateway senses w clusters of CLs in the smart grid network i Efficient aggregation of the reported ciphertext data of all n sensing nodes A method for improving the data transmission efficiency of a smart grid communication system;

[0071] 2) Using the gateway’s secret information For w aggregated CLs in smart grid sensing networks i The technology of removing gateway blinding information from the aggregated ciphertext data of all n sensing nodes in the network.

[0072] Methods to effectively improve data transmission efficiency and ensure communication confidentiality in smart grid communication systems;

[0073] (7) Aggregate data recovery module

[0074] 1) Using the secret information of the control center For w aggregated CLs in smart grid sensing networks i The technology of removing blind information of the control center by aggregating ciphertext data of all n sensing nodes Methods to effectively ensure the confidentiality of smart grid communications and protect user privacy;

[0075] 2) Based on publicly computable information H1(t τ ), a technique for calculating discrete logarithms, thereby obtaining the aggregate power consumption of all users Methods;

[0076] (8) Decision support module

[0077] Based on blockchain technology, after receiving the electricity consumption statistics, the control center conducts a security analysis of the global historical and real-time electricity consumption data, draws and predicts the electricity consumption trend chart, and performs dynamic pricing based on the user's fine-grained electricity consumption data, providing a decision-making support method for user electricity consumption behavior planning.

[0078] Based on the in-depth study and analysis of the existing application results of blockchain technology in the field of smart grid applications, the present invention realizes a lightweight and secure smart grid communication method and system based on blockchain technology, which can simultaneously ensure the confidentiality and integrity of communication data and effectively protect the privacy information of users. The main innovations include: (1) By integrating homomorphic encryption, proxy-like signature lightweight information authentication, blockchain and other technologies, a secure smart grid data aggregation method is designed, which simultaneously ensures user privacy security, communication data integrity and confidentiality, and securely authenticates the identity of the communication source entity; (2) By using the distributed ledger, smart contract, asymmetric encryption and authorization technology of blockchain, and node consensus mechanism, a flexible and dynamic division method of network nodes is designed, which can dynamically aggregate and divide community network users according to the system user topology structure and geographical proximity principle, significantly improving the security and practicality of the smart grid communication system; (3) By introducing a trusted authority to uniformly distribute and manage secret information, the invention configures and manages the permissions of the smart grid control center, gateway, and community network perception nodes, strictly preventing each system entity from illegally obtaining user privacy alone or in collusion; (4) By constructing A hierarchical architecture of "control center - gateway - perception node" is built, and the actual smart grid system is designed in a bionic way to realize the clustering and division of autonomous network perception nodes, distributed data collection and security reporting; combined with blockchain technology, according to the software / hardware performance indicators of network nodes, the dynamic optimization of accounting node sets and accounting master nodes, efficient encapsulation of user data blocks and dynamic generation of blockchains are realized, which significantly improves the communication efficiency of the smart grid system and ensures the security of information exchange; (5) A group intelligence cooperation mode of smart grid network nodes is designed. Through group collaboration between clustered nodes, scattered computing resources are fully utilized to achieve fair evaluation of communication information security; based on the Merkle tree, a block data structure security encapsulation technology containing ciphertext of electricity consumption data and aggregated information is studied and designed, and a node consensus mechanism is designed to ensure the security and traceability of communication data through group node block information inspection and verification.

[0079] Instruction Manual

[0080] Figure 1 This is a system architecture diagram of the present invention;

[0081] Figure 2 This is a diagram of the blockchain block structure. DETAILED DESCRIPTION

[0082] The present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods are given.

[0083] A lightweight and secure smart grid communication method based on blockchain. The method is based on a typical smart grid communication system application scenario. The overall system architecture is as follows: Figure 1As shown in the figure, it includes the following four participants: Trusted authority: responsible for managing and distributing secret information of all other entities in the system, with high credibility and super computing power; Control center: responsible for integrating, processing and analyzing the periodic time series electricity consumption data of all users in the cell network, and providing comprehensive and reliable intelligent services; Based on the principle of geographical proximity, the control center allocates all users in the cell network U = {U1, U2, …, U n} is divided into w clusters {CL1, CL2, …, CL w}. Where w is a system parameter, and its value is determined by the overall topology of the system and the size of n; In the control center, according to the hardware configuration, operating environment, communication reliability and other indicators, the control center selects the sensing nodes from the set N = {N1, N2, ..., N N}(or user set U={U1,U2,…,U N}) dynamically selects accounting nodes and forms a subset of accounting nodes It is used to determine the accounting master node at each data reporting time point to verify the integrity of the communication data, generate new blocks and update the blockchain, thereby improving the execution efficiency of the system and ensuring the security of the system; Gateway: It is used to connect the control center and the cell network, responsible for aggregating the power consumption data submitted by each user and forwarding communication data between each user and the control center; Perception node: There are n perception nodes in the smart grid cell network N = {N1, N2, ..., N n}(or user U={U1,U2,…,U n}), responsible for collecting power consumption data in real time and reporting it to the control center through the gateway.

[0084] The method specifically comprises the following steps:

[0085] (1) System initialization phase

[0086] The trusted authority performs the following operations to initialize the system:

[0087] 1) Choose two safe large prime numbers p and q that satisfy q|(p-1), generate a cyclic group G of order q, and the discrete logarithm problem on group G is difficult (computationally infeasible), and choose the generator of group G

[0088] 2) Select cryptographically secure hash functions H1, H2 and H3, where H1: {0,1} * →G,H2:{0,1} * →G,

[0089] 3) Randomly select n satisfy And each z i Distribute to each user U i , where i = 1, 2, ..., n;

[0090] 4) Randomly select n and calculate as well as will u i and v i Distribute to each user U i , where x i and Y i For user U i The private key and public key of , i = 1, 2, ..., n;

[0091] 5) Finally, each user U i Obtain and keep confidential i ,v i ,z i ,x i >, GW obtains and keeps secret s, control center obtains and keeps secret The public information of the system is <

[0092] p,q,g,G,H1,H2,H3>, and Y i , where i = 1, 2, ..., n;

[0093] (2) Safety data collection phase

[0094] At the data reporting time point t τ , aggregate CL i Each user U in i ∈CL i Do the following:

[0095] 1) Each user U i ∈CL i calculate Among them, m i For user U i Current reported electricity usage; select calculate and i =k i +x i H3(c i ||r i ||t τ ||Y i )mod q;

[0096] 2) Each user U i ∈CL i Will <c i ,r​i ,s i >Send to aggregate CL i Other users in;

[0097] 3) When each user U j≠i ∈CL i Received <c i ,r i ,s i > Later, by calculating Verify user U i ∈CL i Correctness of digital signature;

[0098] (3) Accounting Node Selection Phase

[0099] The control center collects accounting nodes Select the one corresponding to the current t τ The collection element Take turns to gather CL i The accounting master node corresponding to the current accounting time;

[0100] (4) New block generation phase

[0101] The blockchain block structure is as follows Figure 2 As shown, the aggregated CL i The accounting master node in Perform the following operations to correspond to the current t τ Aggregation CL i All users in U i ∈CL i The electricity consumption information is encapsulated into a new block and the new block is added to the blockchain:

[0102] 1) Calculation

[0103] 2) Form a new block to record data domain information

[0104] 3) Calculate and record the aggregated CL from bottom to top in the Merkle tree i All users in U i ∈CL i The encrypted hash value of the electricity consumption data;

[0105] 4) Include the aggregated CL i The Merkle tree root of the encrypted hash value of the electricity consumption of all users in the τ , the hash value of the previous block, the current accounting master node Block data field information etc. are recorded in the block header;

[0106] 5) Publish the new block to all other users for block confirmation;

[0107] (5) Block verification phase

[0108] After receiving a new block, gather CL i Each user (node) U i ∈CL i Do the following:

[0109] 1) Verify the accuracy and authenticity of new block records;

[0110] 2) If the new block record is valid, user U i ∈CL i Synchronously add new blocks to the blockchain of the local dataset;

[0111] 3) After receiving confirmation information from all nodes, the accounting master node Will gather CL i The corresponding reporting time point t τ Aggregate electricity consumption ciphertext Send to the gateway;

[0112] (6) Data aggregation stage

[0113] At reporting time t τ , when receiving the aggregated electricity consumption ciphertext of all w accounting master nodes Afterwards, the gateway performs the following operations to perform secure data aggregation:

[0114] 1) Calculation

[0115] 2) C GW Send to the control center;

[0116] (7) Aggregate data recovery phase

[0117] At reporting time t τ , when receiving C GW Afterwards, the control center performs the following operations to restore aggregated power consumption:

[0118] 1) Based on the secret information calculate

[0119] 2) Calculate C CC Based on H1(t τ ) to obtain the aggregate power consumption of all users

[0120] (8) Decision support stage

[0121] After receiving the electricity consumption statistics, the control center conducts a security analysis of the historical and real-time electricity consumption data of the entire power grid, draws and predicts the trend of electricity consumption changes, and performs dynamic pricing based on the user's fine-grained electricity consumption data, providing decision support for the user's electricity consumption behavior planning.

[0122] A lightweight and secure smart grid communication system based on blockchain, comprising:

[0123] Trusted authority: responsible for managing and distributing secret information of all other entities in the system, with high credibility and super computing power; Control center: responsible for integrating, processing and analyzing the periodic time series electricity consumption data of all users in the cell network, providing comprehensive and reliable intelligent services; Based on the principle of geographical proximity, the control center distributes all users in the cell network U = {U1, U2, ..., U n} is divided into w clusters {CL1, CL2, …, CL w}. Where w is a system parameter, and its value is determined by the overall topology of the system and the size of n; In the control center, according to the hardware configuration, operating environment, communication reliability and other indicators, the control center selects the sensing nodes from the set N = {N1, N2, ..., N N}(or user set U={U1,U2,…,U N}) dynamically selects accounting nodes and forms a subset of accounting nodes It is used to determine the accounting master node at each data reporting time point to verify the integrity of the communication data, generate new blocks and update the blockchain, thereby improving the execution efficiency of the system and ensuring the security of the system; Gateway: It is used to connect the control center and the cell network, responsible for aggregating the power consumption data submitted by each user and forwarding communication data between each user and the control center; Perception node: There are n perception nodes in the smart grid cell network N = {N1, N2, ..., N n}(or user U={U1,U2,…,U n}), responsible for real-time collection of power consumption data and reporting to the control center through the gateway. The system also includes:

[0124] (1) System initialization module

[0125] The trusted authority performs the following operations to initialize the system:

[0126] 1) Choose two safe large prime numbers p and q, satisfying q|(p-1), generating a cyclic group G of order q, and the discrete logarithm problem on group G is difficult (computationally infeasible), and choose the generator of group G

[0127] 2) Select cryptographically secure hash functions H1, H2 and H3, where H1: {0,1} * →G,H2:{0,1} * →G,

[0128] 3) Randomly select n satisfy And each z i Distribute to each user U i , where i = 1, 2, ..., n;

[0129] 4) Randomly select n and calculate as well as will u i and v i Distribute to each user U i , where x i and Y i For user U i The private key and public key of , i = 1, 2, ..., n;

[0130] 5) Finally, each user U i Obtain and keep confidential i ,v i ,z i ,x i >, GW obtains and keeps secret s, control center obtains and keeps secret The public information of the system is<p,q,g,G,H1,H2,H3> , and Y i , where i = 1, 2, ..., n;

[0131] (2) Security Data Collection Module

[0132] At the data reporting time point t τ , aggregate CL i Each user U in i ∈CL i Do the following:

[0133] 1) Each user U i ∈CL i calculate Among them, m i For user U i Current reported electricity usage; select calculate and i =k i +x i ​H3(c i ||r i ||t τ ||Y i )mod q;

[0134] 2) Each user U i ∈CL i Will <c i ,r i ,s i >Send to aggregate CL i Other users in;

[0135] 3) When each user U j≠i ∈CL i Received <c i ,r i ,s i > Later, by calculating Verify user U i ∈CL i Correctness of digital signature;

[0136] (3) Accounting Node Selection Module

[0137] The control center collects accounting nodes Select the one corresponding to the current t τ Collection elements Take turns to gather CL i The accounting master node corresponding to the current accounting time;

[0138] (4) New block generation module

[0139] The blockchain block structure is as follows Figure 2 As shown, the aggregated CL i The accounting master node in Perform the following operations to correspond to the current t τ Aggregation CL i All users in U i ∈CL i The electricity consumption information is encapsulated into a new block and the new block is added to the blockchain:

[0140] 1) Calculation

[0141] 1)

[0142] 2) Form a new block to record data domain information

[0143] 3) Calculate and record the aggregated CL from bottom to top in the Merkle tree i All users in Ui ∈CL i The encrypted hash value of the electricity consumption data;

[0144] 4) Include the aggregated CL i The Merkle tree root of the encrypted hash value of the electricity consumption of all users in the τ , the hash value of the previous block, the current accounting master node Block data field information etc. are recorded in the block header;

[0145] 5) Publish the new block to all other users for block confirmation;

[0146] (5) Block verification module

[0147] After receiving a new block, gather CL i Each user (node) U i ∈CL i Do the following:

[0148] 1) Verify the accuracy and authenticity of new block records;

[0149] 2) If the new block record is valid, user U i ∈CL i Synchronously add new blocks to the blockchain of the local dataset;

[0150] 3) After receiving confirmation information from all nodes, the accounting master node Will gather CL i The corresponding reporting time point t τ Aggregate electricity consumption ciphertext Send to the gateway;

[0151] (6) Data aggregation module

[0152] At reporting time t τ , when receiving the aggregated electricity consumption ciphertext of all w accounting master nodes Afterwards, the gateway performs the following operations to perform secure data aggregation:

[0153] 1) Calculation

[0154] 2) C GW Send to the control center;

[0155] (7) Aggregate data recovery module

[0156] At reporting time t τ , when receiving C GW Afterwards, the control center performs the following operations to restore aggregated power consumption:

[0157] 1) Based on the secret information calculate

[0158] 2) Calculate C CC Based on H1(t τ ) to obtain the aggregate power consumption of all users

[0159] (8) Decision support module

[0160] After receiving the electricity consumption statistics, the control center conducts a security analysis of the historical and real-time electricity consumption data of the entire power grid, draws and predicts the trend of electricity consumption changes, and performs dynamic pricing based on the user's fine-grained electricity consumption data, providing decision support for the user's electricity consumption behavior planning.

[0161] The system of the present invention has the following technical features:

[0162] (1) By integrating homomorphic encryption, proxy-like signature lightweight information authentication, blockchain and other technologies, a data aggregation method is innovated to ensure user privacy security, communication data integrity and confidentiality, and securely authenticate the identity of the communication source entity;

[0163] (2) Using blockchain's distributed ledger, smart contracts, asymmetric encryption and authorization technology, and node consensus mechanism, a flexible and dynamic division method for network nodes is designed. This method can dynamically cluster and divide community network users according to the system user topology structure and geographical proximity principle, significantly improving the security and practicality of the smart grid communication system.

[0164] (3) Trusted authorities allocate and manage secret information to configure and manage permissions for smart grid control centers, gateways, and community network sensing nodes, strictly preventing system entities from illegally obtaining user privacy alone or in collusion. Network nodes can only obtain encrypted data on other users' electricity consumption, gateways can only obtain encrypted aggregated data on users' electricity consumption, and control centers can only obtain aggregated information on electricity consumption.

[0165] (4) By constructing a hierarchical architecture of "control center - gateway - perception node", the actual smart grid system is designed in a bionic way to achieve autonomous network perception node clustering and division, distributed data collection and security reporting; combined with blockchain technology, according to the software / hardware performance indicators of network nodes, the dynamic optimization of accounting node sets and accounting master nodes, efficient encapsulation of user data blocks and dynamic generation of blockchains are achieved, which significantly improves the communication efficiency of the smart grid system and ensures the security of information exchange;

[0166] (5) A group intelligence cooperation model for smart grid network nodes was designed. By gathering group collaboration among nodes, scattered computing resources were fully utilized to achieve fair evaluation of communication information security. Based on the Merkle tree, the block data structure containing the ciphertext of current and historical electricity consumption data and user aggregation information was securely encapsulated at the data reporting time point, and a node consensus mechanism was designed to ensure the security and traceability of communication data through node group block information inspection and verification.

Claims

1. A lightweight and secure smart grid communication method based on blockchain, characterized in that The method is based on the application scenario of smart grid communication system. The trusted authority is responsible for managing and distributing the secret information of all other entities in the system. The control center is responsible for integrating, processing and analyzing the periodic time series electricity consumption data of all users in the cell network to provide comprehensive and reliable intelligent services. According to the principle of geographical proximity, the control center allocates all users U={U1,U2,…,U n } is divided into w clusters {CL1, CL2, …, CL w }, where w is a system parameter, and the value of w is determined according to the overall topology of the system and the size of n; In the control center, according to the hardware configuration, operating environment, communication reliability and other indicators, the control center selects the sensing nodes from the set N = {N1, N2, ..., N N } or user set U = {U1,U2,…,U N } dynamically selects accounting nodes and forms a subset of accounting nodes It is used to determine the accounting master node at each data reporting time point to verify the integrity of the communication data, generate new blocks and update the blockchain, thereby improving the execution efficiency of the system and ensuring the security of the system; the gateway connects the control center and the cell network, and is responsible for aggregating the power consumption data submitted by each user and forwarding communication data between each user and the control center; the n sensing nodes N={N1,N2,…,N n } or user U={U1,U2,…,U n }, responsible for real-time collection of power consumption data and reporting to the control center through the gateway. The specific steps are as follows: (1) System initialization phase The trusted authority performs the following operations to initialize the system: 1) Choose two safe large prime numbers p and q that satisfy q|(p-1) and generate a cyclic group G of order q. The discrete logarithm problem on group G is difficult and computationally infeasible. Choose the generator of group G. 2) Select cryptographically secure hash functions H1, H2 and H3, where H1: {0,1} * →G,H2:{0,1} * →G, 3) Randomly select n satisfy And each z i Distribute to each user U i , where i = 1, 2, ..., n; 4) Randomly select n and calculate as well as will u i and v i Distribute to each user U i , where x i and Y i For user U i The private key and public key of , i = 1, 2, ..., n; 5) Finally, each user U i Obtain and keep confidential i ,v i ,z i ,x i >, the gateway GW obtains and keeps secret s, the control center obtains and keeps secret The public information of the system is<p,q,g,G,H1,H2,H3> , and Y i , where i = 1, 2, ..., n;​ (2) Safety data collection phase At the data reporting time point t τ , aggregate CL i Each user U in i ∈CL i Do the following: 1) Each user U i ∈CL i calculate Among them, m i For user U i Current reported electricity usage; select calculate and i =k i +x i H3(c i ||r i ||t τ ||Y i )mod q; 2) Each user U i ∈CL i Will <c i ,r i ,s i >Send to aggregate CL i Other users in; 3) When each user U j≠i ∈CL i Received <c i ,r i ,s i > Later, by calculating Verify user U i ∈CL i Correctness of digital signature; (3) Accounting Node Selection Phase The control center collects accounting nodes Select the one corresponding to the current t τ The collection element Take turns to gather CL i The accounting master node corresponding to the current accounting time; (4) New block generation phase Blockchain Block Aggregation CL i The accounting master node in Perform the following operations to correspond to the current t τ Aggregation CL i All users in U i ∈CL i The electricity consumption information is encapsulated into a new block and the new block is added to the blockchain: 1) Calculation 2) Form a new block to record data domain information 3) Calculate and record the aggregated CL from bottom to top in the Merkle tree i All users in U i ∈CL i The encrypted hash value of the electricity consumption data; 4) Include the aggregated CL i The Merkle tree root of the encrypted hash value of the electricity consumption of all users in the τ , the hash value of the previous block, the current accounting master node Block data field information etc. are recorded in the block header; 5) Publish the new block to all other users for block confirmation; (5) Block verification phase After receiving a new block, gather CL i Each user node U i ∈CL i Do the following: 1) Verify the accuracy and authenticity of new block records; 2) If the new block record is valid, user U i ∈CL i Synchronously add new blocks to the blockchain of the local dataset; 3) After receiving confirmation from all nodes, the accounting master node Will gather CL i The corresponding reporting time point t τ Aggregate electricity consumption ciphertext Send to the gateway; (6) Data aggregation stage At reporting time t τ , when receiving the aggregated electricity consumption ciphertext C of all w accounting master nodes CLi Afterwards, the gateway performs the following operations to perform secure data aggregation: 1) Calculation 2) C GW Send to the control center; (7) Aggregate data recovery phase At reporting time t τ , when receiving C GW Afterwards, the control center performs the following operations to restore aggregated power consumption: 1) Based on the secret information calculate 2) Calculate C CC Based on H1(t τ ) to obtain the aggregate power consumption of all users (8) Decision support stage After receiving the power consumption statistics, the control center conducts security analysis on the historical and real-time power consumption data of the entire power grid, draws and predicts the power consumption trend chart, and performs dynamic pricing based on the user's fine-grained power consumption data to provide decision support for the user's power consumption behavior planning; The communication system adopted by the lightweight secure smart grid communication method includes: Trusted authority: responsible for managing and distributing secret information of all other entities in the system, with high credibility and super computing power; Control center: responsible for integrating, processing and analyzing the periodic time series electricity consumption data of all users in the cell network, and providing comprehensive and reliable intelligent services; according to the principle of geographical proximity, the control center integrates all users in the cell network U = {U1, U2, ..., U n } is divided into w clusters {CL1, CL2, …, CL w }, where w is a system parameter, and the value of w is determined according to the overall topology of the system and the size of n; In the control center, according to the hardware configuration, operating environment, communication reliability and other indicators, the control center selects the sensing nodes from the set N = {N1, N2, ..., N N } or user set U = {U1,U2,…,U N } dynamically selects accounting nodes and forms a subset of accounting nodes Used to determine the accounting master node at each data reporting time point to verify the integrity of communication data, generate new blocks and update the blockchain, thereby improving the execution efficiency of the system and ensuring system security; Gateway: used to connect the control center and the cell network, responsible for aggregating the power consumption data submitted by each user and forwarding communication data between each user and the control center; Sensing nodes: There are n sensing nodes in the smart grid community network N = {N1,N2,…,N n } or user U={U1,U2,…,U n }, responsible for collecting power consumption data in real time and reporting it to the control center through the gateway; The communication system also includes: (1) System initialization module 1) Trustworthy and authoritative design meets The secret information generation and distribution technology of each user based on algebraic relations is used to embed blind information in the reported data of each user, perform nonlinear and efficient mixing of user data, and effectively ensure the confidentiality of communication; 2) The trusted authority selects n calculate and And respectively configured as the secret information of the gateway and the control center, the technology of setting permissions and security management for smart grid related entities is used to strictly prevent the system entities from illegally obtaining user privacy alone or in collusion; where p and q are large secure prime numbers, satisfying q|(p-1); 3) Using the distributed ledger, smart contract, asymmetric encryption and authorization technology of blockchain, as well as the node consensus mechanism, a flexible and dynamic division method of network nodes is innovated. According to the user topology structure of the smart grid communication system and the principle of geographical proximity, the users of the community network can be dynamically clustered and divided, which is used to significantly improve the security and practicality of the smart grid communication system. (2) Security Data Collection Module 1) Aggregate CL through cell network aggregation and division i Each user U i ∈CL i Calculate separately Distributed data collection, secure homomorphic encryption, and autonomous and efficient data reporting technologies for user electricity consumption data, methods to effectively protect user privacy and ensure confidentiality of communication data; 2) Aggregate CL i Each user U i ∈CL i By selecting calculate and i =k i +x i H3(c i ||r i ||t τ ||Y i )mod q, a technology for performing lightweight information authentication of user power consumption data using a proxy signature, effectively ensuring the integrity of user communication data and securely authenticating the identity of the communication source entity; 3) Aggregation of CL i Each user U j≠i ∈CL i By calculation And authenticate user U i ∈CL i The technology of digital signature correctness is used to realize the fair evaluation of communication information security based on the group intelligence cooperation mode of smart grid network nodes, through the group collaboration between the aggregation nodes, making full use of scattered computing resources; (3) Accounting Node Selection Module 1) The control center comprehensively evaluates the hardware configuration, operating environment, communication reliability and other indicators of each sensing node of the smart grid, and dynamically selects the accounting node set A method for selecting a primary accounting node at each data reporting time point; 2) The control center reports data at each time point t τ , from the accounting node set Select the collection elements one by one Take turns to gather CL i The technology of the accounting master node corresponding to the current accounting time is used to generate new blocks and update the blockchain, ensure the security of information exchange in the smart grid system, and significantly improve communication efficiency; (4) New block generation module 1) Record the current timestamp t in the block header τ , including clustered CL i The Merkle tree root of the encrypted hash value of the electricity consumption of all users, the hash value of the previous block, and the current accounting master node Aggregate CL i The current aggregated power usage ciphertext in Technologies for information security and traceability of communication data; 2) Based on the hash storage and information authentication technology of Merkle tree, accounting master node Calculate and record aggregate CL from bottom to top i All users in U i ∈CL i A method for obtaining a ciphertext hash value of electricity consumption; 3) At the data reporting time point, the accounting master node securely encapsulates the block data structure containing the ciphertext and statistical information of current and historical user electricity consumption data, and designs a node consensus mechanism and a technology based on the node group mode to check and verify the newly generated block information, which is used to ensure the security and traceability of communication data; 4) Design the generation and release technology of new block record information, which is used by the accounting master node to release the new block to the aggregated CL i All other users in the block confirm the block and report the current time point t τ Aggregate CL i A method for adding the aggregated electricity consumption information of all users in the blockchain; (5) Block verification module 1) Based on the node consensus mechanism, gather CL i Each user U i ∈CL i A method for verifying the accuracy and authenticity of new block records; 2) Design a new block record validity verification mechanism to aggregate CL i A method for each user to synchronously add new blocks to the blockchain in the local dataset; 3) Based on the node consensus mechanism, the accounting master node Received aggregated CL i After all users confirm the information, the current reporting time node t τ Aggregate CL i Aggregate power consumption of all users in Method to send to gateway securely; (6) Data aggregation module 1) Gateway senses w clusters of CLs in the smart grid network i Efficient aggregation of the reported ciphertext data of all n sensing nodes A method for improving the data transmission efficiency of a smart grid communication system; 2) Using the gateway’s secret information For w aggregated CLs in smart grid sensing networks i The technology of removing gateway blinding information from the aggregated ciphertext data of all n sensing nodes in the network. Methods to effectively improve data transmission efficiency and ensure communication confidentiality in smart grid communication systems; (7) Aggregate data recovery module 1) Using the secret information of the control center For w aggregated CLs in smart grid sensing networks i The technology of removing blind information of the control center by aggregating ciphertext data of all n sensing nodes Methods to effectively ensure the confidentiality of smart grid communications and protect user privacy; 2) Based on publicly computable information H1(t τ ), a technique for calculating discrete logarithms, thereby obtaining the aggregate power consumption of all users Methods; (8) Decision support module Based on blockchain technology, after receiving the electricity consumption statistics, the control center conducts a security analysis of the global historical and real-time electricity consumption data, draws and predicts the electricity consumption trend chart, and performs dynamic pricing based on the user's fine-grained electricity consumption data, providing a decision-making support method for user electricity consumption behavior planning.

Citation Information

Patent Citations

  • Combining method and system for protecting power utilization privacy and integrity in smart power grid

    CN104639311A

  • A smart grid data aggregation and monitoring method based on federation chain

    CN109274498A

  • Aggregation method and system for guaranteeing integrity and fault tolerance of M2M communication

    CN109640299A

  • Method and System for Complex Smart Grid Infrastructure Assessment

    US20130325147A1

  • Management of a power-distribution system

    US20190123580A1