A smart grid data aggregation method based on reputation consensus mechanism

Through the reputation-based consensus mechanism and elliptic curve cryptography, smart meter nodes with high reputation are evaluated and selected for data packaging and verification, which solves the problems of low data aggregation efficiency and poor security in smart grids, and achieves high efficiency and security of data. transmission and storage.

CN114726529BActive Publication Date: 2024-09-24XIANGTAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210373634.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-06
Publication Date
2024-09-24
Estimated Expiration
2042-04-06

AI Technical Summary

Technical Problem

The confidentiality and integrity of user energy consumption data in smart grids are difficult to guarantee. The existing consensus mechanism has complex calculations or low communication efficiency, and cannot effectively solve data tampering and security issues.

Method used

Adopt a credibility-based consensus mechanism, generate secret parameters through elliptic curve cryptography, evaluate and quantify the credibility of smart meter nodes, select nodes with high credibility as accounting nodes, form a blockchain consensus network, and package and verify energy usage data , ensure the safe transmission and storage of data.

Benefits of technology

It improves the operational efficiency of smart grid data aggregation, reduces computational complexity and communication overhead, meets the confidentiality and integrity requirements of energy consumption data, and ensures data security and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114726529B
    Figure CN114726529B
Patent Text Reader

Abstract

The present invention provides a smart grid data aggregation method based on a reputation consensus mechanism, which forms a blockchain consensus network with smart meter terminal nodes in the same gateway area, and evaluates the reputation of each node in the network based on the reputation consensus mechanism, and fairly selects a trusted smart meter terminal as a bookkeeping node, which is responsible for aggregating energy usage data in the same gateway area, and packages it into blocks and adds it to the private blockchain of the power grid control center. The present invention solves the problems of low operating efficiency, high computational complexity, and low communication efficiency of smart grid data aggregation, and meets the security requirements of confidentiality and integrity of smart grid data aggregation, and is more suitable for resource-constrained smart meter terminals in smart grids.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart grid technology, and in particular to a smart grid data aggregation method based on a reputation consensus mechanism. Background Art

[0002] Compared with traditional grid technology, smart grid is a power network that uses advanced information and communication technologies to provide an economical, efficient and sustainable power system. As an important part of the smart grid architecture, smart meters enable two-way communication between power companies and users. Power companies can collect fine-grained energy usage data from users through smart meters and provide services such as optimal power dispatching, more accurate billing and real-time pricing adjustments. Users can also use the real-time pricing function of smart meters to optimize their electricity usage decisions and improve energy efficiency.

[0003] However, while providing convenient services, smart grids also face serious security issues. Attackers can intercept and analyze users' fine-grained energy consumption data to infer private information about users' living habits, such as the use of home appliances, when users go to bed, when they go home, etc. More importantly, during the transmission process, grid users themselves may try to tamper with the metering data received by the power company in order to reduce energy costs. This not only affects the normal billing of the power company, but also the erroneous readings used for load monitoring will affect the decision-making on grid management, and in serious cases, lead to grid instability or power outages.

[0004] To address the above issues, existing work has adopted methods based on homomorphic encryption and bit masking. However, homomorphic encryption leads to unbearable computational costs for smart meters, while the bit masking method has low communication efficiency. New means and methods are urgently needed to solve this problem.

[0005] Blockchain is a decentralized, anonymous, and tamper-proof distributed database. It connects data in blocks in chronological order to form a chain data structure, uses hash pointers to ensure that data cannot be tampered with, and uses a consensus mechanism to provide decentralized trust. Considering the above characteristics of blockchain, the present invention uses blockchain to aggregate smart grid data to ensure the confidentiality and integrity of user energy consumption data.

[0006] However, the consensus mechanisms used in most existing blockchains cannot be applied here. This is because similar consensus mechanisms such as Proof of Work (PoW) or Proof of Stake (PoS) create new blocks by solving complex mathematical problems (mining), which consumes a lot of computing resources, while smart meters have limited computing resources. The BFT consensus mechanism has a large communication overhead and is not suitable for networks with large node sizes.

[0007] In summary, the development of smart grid data aggregation methods based on credibility consensus mechanism is still an urgent problem to be solved in the field of smart grid technology. Summary of the invention

[0008] The purpose of the present invention is to provide a smart grid data aggregation method based on a reputation consensus mechanism to solve the problems raised in the above background technology.

[0009] To achieve the above objectives, the present invention provides the following technical solutions: a smart grid data aggregation method based on a reputation consensus mechanism, comprising a blockchain framework for smart grid data aggregation and a reputation-based consensus mechanism.

[0010] The blockchain architecture for smart grid data aggregation includes:

[0011] A blockchain consensus network composed of several smart meter terminal nodes in the same gateway area; responsible for aggregating energy usage data in the same gateway area and generating accounting nodes for blocks; a trusted institution responsible for generating secret parameters for smart meters and regional gateways and disclosing system parameters; forwarding the fine-grained energy consumption data of smart meters in the area to the grid control center and returning control information to the regional gateway of the smart meters; a grid control center that provides services such as energy management, power dispatching, and dynamic pricing.

[0012] The power grid control center is communicatively connected to the regional gateway, the regional gateway node is communicatively connected to the smart meter, the smart meters are communicatively connected to each other, and the power grid control center, regional gateway and smart meters are all communicatively connected to the trusted institution.

[0013] The trusted institution generates secret parameters of each entity and discloses system parameters through elliptic curve cryptography. The smart meter measures the energy usage data of the user within a time period and encrypts the energy usage data of the user using a private key.

[0014] As a further preferred solution, the reputation-based consensus mechanism can evaluate the reputation of each terminal node in the blockchain consensus network, and quantify the fuzzy concept of reputation into a specific numerical score. The higher the score, the greater the chance of being selected as a bookkeeping node.

[0015] As a further preferred solution, the reputation-based consensus mechanism provides a limited random offset and sets a weight coefficient β to reflect the impact of the verification success rate on the reputation, so as to avoid the situation where the verification success rate of some nodes remains the first for a period of time.

[0016] As a further preferred solution, the terminal node with the highest reputation score will be selected as the accounting node for the current time period, responsible for aggregating the energy usage data of the terminal nodes in the same gateway area, and packaging it into blocks for distribution to other nodes for verification.

[0017] As a further preferred solution, the block content includes two parts: a block header and a block body, wherein the block header contains the hash value of the previous block, a timestamp, a pseudonym of the accounting node, the node's reputation score, a Merkle root, and the signature of the accounting node on the block, and the block body contains the energy usage data and corresponding pseudonyms of the terminal nodes in the same gateway area.

[0018] As a further preferred solution, the block verification includes whether the block publisher has the highest reputation value, whether the data and timestamp recorded in the block are correct, the hash value of the previous block, and whether the block signature is correct. The terminal node only needs to verify the records related to itself and store the hash value of the current block locally.

[0019] As a further preferred solution, the reputation-based consensus mechanism can evaluate the verification success rate of the block published by the accounting node, and dynamically update the node's reputation score as the basis for selecting the accounting node in the next time period. If the verification is satisfied, the block can be sent to the power grid control center through the regional gateway and added to the private blockchain.

[0020] Technical effects and advantages of the present invention: The present invention provides a smart grid data aggregation method based on a reputation consensus mechanism, which forms a blockchain consensus network with smart meter terminal nodes in the same gateway area, and evaluates the reputation of each node in the network based on the reputation consensus mechanism, and fairly selects a trusted smart meter terminal as a bookkeeping node, which is responsible for aggregating energy usage data, and packaging it into blocks and adding it to the private blockchain of the power grid control center. The present invention solves the problems of low operating efficiency, high computational complexity, and low communication efficiency of smart grid data aggregation. Security analysis shows that the present invention meets the security requirements of confidentiality, data integrity, and other security requirements for smart grid energy consumption data aggregation. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to make the technical solution and technical effects of the present invention clearer, the present invention provides the following drawings for explanation:

[0022] Figure 1 The blockchain architecture for smart grid data aggregation in the present invention;

[0023] Figure 2 It is a flow chart of the smart grid data aggregation method based on the reputation consensus mechanism in the present invention;

[0024] Figure 3Schematic diagram of the consensus process based on the reputation consensus mechanism in the present invention;

[0025] Figure 4 It is a schematic diagram of the structure of the block in the present invention. DETAILED DESCRIPTION

[0026] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention.

[0027] 1. Design of the present invention

[0028] Figure 1 The blockchain architecture for smart grid data aggregation of the present invention is defined as follows:

[0029] Smart meter: A physical terminal installed on the user side that can regularly measure and collect detailed energy usage data and related information of the user. Several smart meter terminal nodes in the same gateway area form a blockchain consensus network. Each terminal node, as a participant in the blockchain consensus, has a potential opportunity to be selected as a bookkeeping node.

[0030] Accounting nodes: Selected from the terminal nodes of the block consensus network through a reputation-based consensus mechanism, responsible for aggregating the energy usage data of the terminal nodes in the same gateway area, and packaging them into blocks for distribution to other nodes for verification.

[0031] Regional gateway: An entity between the grid control center and the smart meters, responsible for forwarding the fine-grained energy consumption data of the smart meters in the region to the grid control center and returning control information to the smart meters.

[0032] Trusted authority: An entity trusted by all participants in the present invention, responsible for generating cryptographic parameters and public system parameters for smart meters and regional gateways, and storing user identity-public key pairs in a highly secure database that can only be accessed by authorized grid control centers.

[0033] Grid Control Center: This entity uses blockchain to regularly record and analyze users’ energy usage data in order to audit and prevent data tampering, and provide services such as energy management, power dispatch, and dynamic pricing.

[0034] See also Figure 2 and Figure 3 ,The smart grid data aggregation method based on the reputation consensus mechanism includes the following steps:

[0035] Step S1. The trusted institution generates secret parameters of each entity through elliptic curve cryptography and discloses system parameters

[0036] Specifically, S1 includes the following steps:

[0037] S101. The trusted authority sets up a finite domain F p The elliptic curve E(F p ), use the generator P and the large prime number q to generate the cyclic group G.

[0038] S102. The trusted institution takes a random number S from a q-order finite field as the system's master key and calculates the system's master public key:

[0039] P pub =S·P (1)

[0040] S103. The trusted institution sets a collision-resistant one-way hash function H1.

[0041] S104. The trusted institution keeps the master private key S in secret and makes the system parameters {G,P,q,H1,P pub}.

[0042] S105. The trusted institution selects a random number to generate secret parameters for the regional gateway and the smart meter. i For example, select a random number r from a q-order finite field according to the identity ID. i Calculate the private key and public key of the smart meter:

[0043] SK i =r i +S·H1(ID i ) (2)

[0044] PK i =SK i ·P (3)

[0045] S106. The trusted institution sends the generated regional gateway cryptographic parameters to the regional gateway, and sends the generated smart meter secret parameters to each smart meter.

[0046] Step S2. Each smart meter forwards its user's energy usage data and its public key to other smart meter terminal nodes in the same gateway area within a time period.

[0047] The default time period is 10 minutes, which can be changed according to the network conditions and the statistical requirements of the power grid control center.

[0048] Specifically, S2 includes the following steps:

[0049] S201. Each smart meter measures the energy usage data of a user within a time period and encrypts the energy usage data of the user using a private key.

[0050] S202. Each smart meter forwards the encrypted data and its public key to other terminal nodes in the same gateway area.

[0051] S203. After receiving the ciphertext, other nodes verify the identity of the public key; after the verification is successful, the public key is used to decrypt the ciphertext data.

[0052] Step S3. Based on the consensus mechanism of user reputation, a smart meter with the highest reputation is selected as the accounting node for this time period.

[0053] Specifically, S3 includes the following steps:

[0054] S301. Evaluate the reputation of each smart meter terminal node in the network, quantify the fuzzy concept of reputation into a specific numerical score, and use the smart meter terminal node SM i For example, the credit score is calculated as follows:

[0055]

[0056] In the formula, Score i The smart meter SM i The current reputation score, β is the weight coefficient, n is the number of terminal nodes in the network, and θ i The smart meter SM i The verification success rate of the published block, T is the current timestamp, PK i For the smart meter SM i The public key of

[0057] S302. The credibility of the smart meter is determined by the verification success rate θ of the block it publishes. i and hash value h(T‖PK i ), where θ i Determines the credibility of the node, mainly based on the verification results of the node's published blocks. The added hash value h(T‖PK i )modn provides a finite random offset and sets a weight coefficient β (0≤β≤1) to reflect the impact of the verification success rate on the credibility.

[0058] S303. Through this measurement, each smart meter terminal node can be associated with a reputation, and the node with the highest reputation score is selected as the accounting node, which is responsible for aggregating the energy usage data of the terminal nodes in the same gateway area.

[0059] Step S4. After the accounting node is selected, the energy usage data and corresponding public keys of the terminal nodes in the same regional gateway are packaged into a new block, and the block is distributed to other nodes in the same regional gateway for verification.

[0060] Specifically, S4 includes the following steps:

[0061] S401.See Figure 4 The accounting node records the energy usage data and corresponding public keys of each node in the same regional gateway as a transaction in the block body.

[0062] S402. The accounting node hashes these transactions using the Merkle tree algorithm to obtain a Merkle root.

[0063] S403. The accounting node records the hash value of the previous block, the timestamp, the public key of the accounting node, the reputation score of the current time period, and the Merkle root into the block header.

[0064] S404. The accounting node signs the block private key and adds its signature to the block, and broadcasts the block to the network at the same time.

[0065] S405. After receiving the block, other terminal nodes in the same gateway area verify the block according to the set rules, including whether the block publisher has the highest reputation value; whether the data, timestamp, and hash value of the previous block recorded in the block are correct; and whether the public key correctly verifies the signature of the block.

[0066] S406. The terminal node only needs to verify the records related to itself and store the hash value of the block locally as the pre-hash value of the next block.

[0067] Step S5. Update the credibility of the smart meter terminal node and select the accounting node for the next time period.

[0068] Specifically, S5 includes the following steps:

[0069] S501. Calculate the verification success rate of the smart meter terminal node according to the block verification result, and use the smart meter terminal node SM i For example, the verification success rate θ i The calculation is as follows:

[0070]

[0071] In the formula, S ij For other nodes in the same regional gateway SM j For the terminal node SM i The credit score after the block is published (j≠i), n is the number of terminal nodes in the network, N is the dynamic total time period, and λ is an adjustable parameter.

[0072] S502. Other nodes in the same regional gateway to the terminal node SM i Credit scoring for honest behavior in the process of publishing blocks, S ij ∈{1,0,-1},S ij =1 indicates the current time period, the terminal node SM i The published block has passed other nodes SM in the same regional gateway j Verification of S ij =0, indicating SM i No block was published; S ij =-1, indicating SM i The currently published block is sent by the node SM j After verification, it is an illegal block.

[0073] S503. The verification success rate θ i Substitute into formula 4 to update the reputation score of the smart meter terminal node.

[0074] S504. Each smart meter terminal node stores a reputation list locally, recording the reputation scores of the nodes in the network, and selects the terminal node with the highest reputation score as the accounting node for the next time period.

[0075] Step S6. If the block verification is satisfied, the block is sent to the power grid control center through the regional gateway, added to the private blockchain, and data aggregation for the next time period begins. If not satisfied, the accounting node selected in step S5 can be used as a new accounting node for the current time period, re-aggregate energy usage data, generate blocks and verify.

[0076] 2. Safety Analysis of the Present Invention

[0077] Confidentiality: In the present invention, the smart meter terminal node uses its public key to communicate, and the real identity ID will not be disclosed; the user's identity-public key pair is stored in a high-security database of a trusted institution, that is, only the trusted institution and the authorized power grid control center know the true identity of each public key; even if an attacker intercepts the ciphertext, he cannot obtain the user's real energy usage data.

[0078] Integrity: The present invention is based on blockchain technology. The energy usage data of each smart meter terminal node is recorded by the accounting node in a tamper-proof and permanently stored blockchain. The Merkle root in the block header can verify whether the energy usage data in the block has been tampered with during transmission. All blocks are linked to each other depending on the hash value of the previous block. If any block is tampered with, all subsequent block hash changes will be triggered. Therefore, once a new block is generated, the integrity of the data it contains can be guaranteed.

[0079] Consensus security: The main security issue of the consensus mechanism stems from how to fairly select trustworthy accounting nodes. If a malicious node is selected, it will seriously threaten the security of the consensus mechanism. The present invention provides a new proof consensus mechanism based on user reputation, which maximizes the security and fairness of the consensus. The higher the reputation score of a node, the more credible his / her past behavior is; the reputation score of a node is publicly calculated and recorded on the block, so malicious users cannot change them; even if a malicious user attempts to become an accounting node by dishonestly evaluating the reputation of other nodes, his / her dishonest trust evaluation has limited impact on the selection of subsequent accounting nodes because most nodes are "honest"; even if a malicious user becomes an accounting node, his / her malicious behavior can be detected by the designed trust model, and the trusted organization will revoke its corresponding secret parameters and restrict its behavior; at the same time, the hash operation provides a limited random offset to avoid certain nodes with high verification success rates from acting as accounting nodes for a period of time, thereby achieving network load balancing.

[0080] The above description is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited thereto. It should be noted that all equivalent substitutions and obvious deformation forms made by any technician familiar with the field within the technical scope disclosed in the present invention still fall within the scope of the invention and should be protected by the present invention.

Claims

1. A smart grid data aggregation method based on a reputation consensus mechanism, characterized in that: Includes a blockchain framework for smart grid data aggregation and a reputation-based consensus mechanism; The blockchain architecture for smart grid data aggregation includes: a blockchain consensus network composed of several smart meter terminal nodes in the same gateway area; a bookkeeping node responsible for aggregating energy usage data in the same gateway area and generating blocks; a trusted institution responsible for generating secret parameters of smart meters and regional gateways and disclosing system parameters; a regional gateway that forwards fine-grained energy consumption data of smart meters in the area to the grid control center and returns control information to the smart meters; a grid control center that uses blockchain to regularly store and analyze user energy usage data and monitor grid load; The consensus mechanism based on reputation can evaluate the reputation of each terminal node in the blockchain consensus network and quantify the fuzzy concept of reputation into a specific numerical score. i For example, the credit score is calculated as follows: In the formula, Score i The smart meter SM i The current reputation score, n is the number of terminal nodes in the network, θ i The smart meter SM i The verification success rate of the published block. The weight coefficient β reflects the impact of the verification success rate on the credibility. T is the current timestamp, PK i For the smart meter SM i The public key of the blockchain; the terminal node with the highest reputation score in the network will be selected as the accounting node for the current time period, responsible for aggregating the energy usage data of the terminal nodes in the same gateway area, and packaging it into blocks for distribution to other nodes for verification; each terminal node in the network evaluates the verification success rate of the blocks released by the accounting node, and dynamically updates the reputation score of the node as the basis for selecting the accounting node in the next time period; the block content includes two parts: the block header and the block body, among which the block header contains the hash value of the previous block, the timestamp, the pseudonym of the accounting node, the reputation score of the node, the Merkle root and the signature of the accounting node on the block, and the block body contains the energy usage data and corresponding pseudonyms of the terminal nodes in the same gateway area; the verified blocks are sent to the power grid control center by the regional gateway and added to the private blockchain.

2. The smart grid data aggregation method based on the reputation consensus mechanism according to claim 1 is characterized by: The power grid control center is communicatively connected to the regional gateway, the regional gateway node is communicatively connected to the smart meter, the smart meters are communicatively connected to each other, and the power grid control center, regional gateway and smart meters are all communicatively connected to the trusted institution.

3. The smart grid data aggregation method based on the reputation consensus mechanism according to claim 1 is characterized by: The trusted institution generates secret parameters of each entity and discloses system parameters through elliptic curve cryptography; the smart meter measures the energy usage data of the user within a time period and encrypts the energy usage data of the user using a private key.

4. The smart grid data aggregation method based on the reputation consensus mechanism according to claim 1 is characterized by: The block verification includes whether the block publisher has the highest reputation value, whether the data and timestamp recorded in the block are correct, the hash value of the previous block and whether the block signature is correct; the terminal node only needs to verify the data records related to itself and store the hash value of the current block locally.