Smart grid data aggregation method, device and system based on Chinese remainder theorem

Through the smart grid data aggregation method based on the Chinese remainder theorem, the system private key and public key are generated, and the gateway key and smart meter key are used to perform integrity protection and signature aggregation on the status message, which solves the problem of smart grid data integrity protection and realizes efficient and low-cost data aggregation and status statistics.

CN115514490BActive Publication Date: 2025-09-05STATE GRID ELECTRIC POWER RES INST +3
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210990070.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-18
Publication Date
2025-09-05
Estimated Expiration
2042-08-18

AI Technical Summary

Technical Problem

Existing smart grid data aggregation protocols are deficient in data integrity protection and cannot effectively prevent data tampering, leading to smart grid decision-making errors.

Method used

A data aggregation method based on the Chinese remainder theorem is used to generate system private and public keys. The status messages are integrity protected and signature aggregated through the gateway key and smart meter key. Short messages and short signatures are generated, and the terminal performs integrity verification to ensure the integrity and privacy of the data.

Benefits of technology

It realizes the integrity protection, status information statistics and privacy protection of smart grid data, while reducing the computing and communication costs and improving the efficiency of data aggregation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115514490B_ABST
    Figure CN115514490B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of 5G smart grid data transmission, and specifically relates to a smart grid data aggregation method, device, and system based on the Chinese remainder theorem. The method includes generating a system private key and a system public key; generating a gateway key and a smart meter key based on the system private key and the system public key; performing integrity protection on a smart meter status message based on the smart meter key and the system public key to obtain a signature of the smart meter status message; obtaining a short message based on the smart meter status message; and aggregating the signature of the smart meter status message based on the gateway key and the system public key to obtain a short signature; and performing smart grid status statistics based on the short message and the short signature. The present invention can meet requirements such as data integrity, status information statistics, low computing cost, and low communication cost in the smart grid data aggregation process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of 5G smart grid data transmission, and specifically relates to a smart grid data aggregation method, device and system based on the Chinese remainder theorem. Background Art

[0002] Smart grids provide intelligent power supply for smart cities. In 5G smart grid scenarios, smart meters, terminals, and grid operators' network elements can communicate with each other for various applications, such as distribution system state estimation and demand-side management. Typically, traffic data in smart grid applications includes billing data (e.g., active and passive energy consumption data) and operational data (e.g., power, voltage, current, outage logs, and alarms).

[0003] To assess the operational status of smart grids, terminals need to aggregate device status data collected by multiple smart meters. To avoid network congestion during data collection in smart grids, an aggregation protocol is needed to aggregate messages from multiple smart meters into a single, short message. Furthermore, adversaries could potentially track data flows and launch attacks against smart meters. Therefore, to avoid network congestion and data flow tracking in smart grids, a data aggregation protocol for smart grids is needed. A data aggregation protocol can aggregate multiple messages into a single, short message, reducing the number of messages transmitted over the operator's network and avoiding network congestion. Furthermore, by aggregating messages from multiple smart meters into a single, short message, adversaries can no longer track the data flows from smart meters. These messages may contain sensitive information about smart meters, making privacy a fundamental requirement for such data aggregation protocols. Furthermore, to prevent tampering with transmitted messages, data integrity is another crucial requirement during data aggregation. If an adversary tampers with the state information contained in the data stream, the terminal could make incorrect decisions based on the tampered data, leading to disruption in the smart grid. Data aggregation protocols in smart grids should provide integrity protection for the collected data.

[0004] In existing aggregation protocol technology, multiple smart meters use different private keys to sign different messages, which mainly solves privacy issues, but the integrity of data is still relatively lacking. Summary of the Invention

[0005] To address the deficiencies of the prior art, the present invention provides a smart grid data aggregation method, device, and system based on the Chinese remainder theorem, which can meet the requirements of data integrity, status information statistics, low computing cost, and low communication cost during the smart grid data aggregation process.

[0006] In order to solve the deficiencies of the prior art, the present invention provides the following technical solutions:

[0007] A smart grid data aggregation method based on the Chinese remainder theorem, including:

[0008] Generate system private key and system public key;

[0009] Generate gateway keys and smart meter keys based on system private keys and system public keys;

[0010] The status message of the smart meter is integrity protected based on the key of the smart meter and the system public key to obtain the signature of the status message of the smart meter;

[0011] Obtaining a short message based on a status message of the smart meter, and aggregating a signature of the smart meter status message based on a gateway key and a system public key to obtain a short signature;

[0012] Perform smart grid status statistics based on short messages and short signatures.

[0013] Preferably, the system private key and system public key are generated based on the InitDASG algorithm, and the calculation formula is as follows:

[0014] sk KDC ={a1, a2, ..., a i ,...,a l , A m ,sk s}

[0015] pk KDC ={G, g, p, pk s , A}

[0016] in,

[0017] sk KDC is the system private key, pk KDC is the system public key;

[0018] G is the group G generated by the random generator g;

[0019] p is the prime number input when generating group G;

[0020] a1, a2, ..., a i ,...,a l are l randomly generated numbers that satisfy a1, a2, ..., a i ,...,a l ∈Z p , a1, a2, ..., a i ,...,a l Mutually prime, i is the index variable, i=1, 2, ..., l; l≥t+1; t is the total number of smart meters;

[0021] Z p represents a positive integer less than p;

[0022] A m The first parameter of the system private key,

[0023] sk s is the primary signing key, sk s ∈(a l , A m );

[0024] A is the first parameter of the system public key,

[0025] g is a randomly generated number, g∈G;

[0026] pk s is the primary signature public key,

[0027] Preferably, the generating of the gateway key based on the system private key and the system public key includes:

[0028] sk GW ={A1, B1, sk gw}

[0029] Among them, sk GW is the gateway key; GW is the gateway identity;

[0030] A1 is the first parameter of the gateway key, A1=A / a1;

[0031] B1 is the second parameter of the gateway key,

[0032] sk gw is the aggregation key, sk gw =sk s mod a1.

[0033] Preferably, the generating of the key of the smart meter based on the system private key and the system public key includes:

[0034] sk SMi ={sk smi , A i+1 , B i+1}

[0035] Among them, sk SMi is the i-th smart meter SM i The key of

[0036] sk smi For the i-th smart meter SM i The first parameter of the key, sk smi =sk s mod a i+1

[0037] A i+1 For the i-th smart meter SM i The second parameter of the key, A i+1 =A / a i+1 ;

[0038] B i+1 For the i-th smart meter SM i The third parameter of the key,

[0039] Preferably, the step of performing integrity protection on the status message of the smart meter based on the key of the smart meter and the system public key to obtain the signature of the status message of the smart meter includes:

[0040] τ i ={C i1 , C i2}

[0041] Among them, τ i For the i-th smart meter SM i The signature of the status message;

[0042] C i1 For the i-th smart meter SM i The first signature portion of the status message;

[0043] C i2 For the i-th smart meter SM i A second signature portion of the status message;

[0044] r i For the i-th smart meter SM i The corresponding random number, r i ∈Z p ;sk SMi For the i-th smart meter SM i A i+1 For the i-th smart meter SM i The second parameter of the key; m i For the i-th smart meter SM i status message.

[0045] Preferably, the obtaining of a short message based on the status message of the smart meter includes:

[0046]

[0047] Among them, π is a short message; m i For the i-th smart meter SM i Status messages;

[0048] The short signature is obtained by aggregating the signature of the smart meter status message based on the gateway key and the system public key, including:

[0049] Ω={C1,C2}

[0050] Among them, Ω is a short signature;

[0051] C1 is the first signature after aggregation,

[0052] C i1 For the i-th smart meter SM i The first signature portion of the status message;

[0053] C2 is the second signature after aggregation,

[0054] C i2 For the i-th smart meter SM i The second signature part of the status message; sk GW is the gateway key; A1 is the first parameter of the gateway key, and B1 is the second parameter of the gateway key.

[0055] Preferably, the state statistics of the smart grid based on short messages and short signatures include:

[0056] Verify the integrity of short messages and short signatures based on the system public key, including:

[0057] judge Is it established?

[0058] If yes, the verification is successful, and the smart grid status statistics are performed based on the short message;

[0059] Otherwise, the verification fails;

[0060] Where π is a short message, C1 is the first signature after aggregation, and C2 is the second signature after aggregation.

[0061] Another object of the present invention is to provide a smart grid data aggregation device based on the Chinese remainder theorem, comprising:

[0062] A first key generation module, a second key generation module, a third key generation module, an integrity protection module, an aggregation module and a status statistics module;

[0063] The first key generation module is used to generate a system private key and a system public key;

[0064] The second key generation module is used to generate a gateway key based on the system private key and the system public key;

[0065] The third key generation module is used to generate a key for the smart meter based on the system private key and the system public key;

[0066] The integrity protection module is used to perform integrity protection on the status message of the smart meter based on the key of the smart meter and the system public key to obtain the signature of the status message of the smart meter;

[0067] The aggregation module is used to obtain a short message based on the status message of the smart meter, and to obtain a short signature by aggregating the signature of the smart meter status message based on the gateway key and the system public key;

[0068] The state statistics module is used to perform state statistics on the smart grid based on short messages and short signatures.

[0069] Preferably, the first key generation module is specifically used to:

[0070] Based on the InitDASG algorithm, the system private key and system public key are calculated according to the following formula:

[0071] sk KDC ={a1, a2, ..., a i ,...,a l , A m ,sk s}

[0072] pk KDC ={G, g, p, pk s , A}

[0073] in,

[0074] sk KDC is the system private key, pk KDC is the system public key;

[0075] G is the group G generated by the random generator g;

[0076] p is the prime number input when generating group G;

[0077] a1, a2, ..., a i ,...,a l are l randomly generated numbers that satisfy a1, a2, ..., a i ,...,a l ∈Z p , a1, a2, ..., a i ,...,a l Mutually prime, i is the index variable, i=1, 2, ..., l; l≥t+1; t is the total number of smart meters;

[0078] Z p represents a positive integer less than p;

[0079] A m The first parameter of the system private key,

[0080] sk s is the primary signing key, sk s ∈(a l , A m );

[0081] A is the first parameter of the system public key,

[0082] g is a randomly generated number, g∈G;

[0083] pk s is the primary signature public key,

[0084] Preferably, the second key generation module is specifically used to calculate the gateway key according to the following formula:

[0085] sk GW ={A1, B1, sk gw}

[0086] Among them, sk GW is the gateway key; GW is the gateway identity;

[0087] A1 is the first parameter of the gateway key, A1=A / a1;

[0088] B1 is the second parameter of the gateway key,

[0089] sk gw is the aggregation key, sk gw =sk s mod a1.

[0090] Preferably, the third key generation module is specifically used to calculate the key of the smart meter according to the following formula:

[0091] sk SMi ={sk smi , A i+1 , B i+1}

[0092] Among them, sk SMi For the i-th smart meter SM i The key of

[0093] sk smi is the i-th smart meter SM i The first parameter of the key, sk smi =sk s mod ai+1

[0094] A i+1 is the i-th smart meter SM i The second parameter of the key, A i+1 =A / a i+1 ;

[0095] B i+1 is the i-th smart meter SM i The third parameter of the key,

[0096] Preferably, the integrity protection module is specifically used to calculate the signature of the smart meter status message according to the following formula:

[0097] τ i ={C i1 , C i2}

[0098] Among them, τ i is the i-th smart meter SM i The signature of the status message;

[0099] C i1 is the i-th smart meter SM i The first signature portion of the status message;

[0100] C i2 is the i-th smart meter SM i A second signature portion of the status message;

[0101] r i is the i-th smart meter SM i The corresponding random number, r i ∈Z p ;sk SMi is the i-th smart meter SM i A i+1 is the i-th smart meter SM i The second parameter of the key; m i is the i-th smart meter SM i status message.

[0102] Preferably, the aggregation module is specifically used to:

[0103] Calculate the short message as follows:

[0104]

[0105] Among them, π is a short message; m i is the i-th smart meter SM iStatus messages;

[0106] And, calculate the short signature as follows:

[0107] Ω={C1,C2}

[0108] Among them, Ω is a short signature;

[0109] C1 is the first signature after aggregation,

[0110] C i1 For the i-th smart meter SM i The first signature portion of the status message;

[0111] C2 is the second signature after aggregation,

[0112] C i2 For the i-th smart meter SM i The second signature part of the status message; sk GW is the gateway key; A1 is the first parameter of the gateway key, and B1 is the second parameter of the gateway key.

[0113] Preferably, the state statistics module is specifically used to verify the integrity of short messages and short signatures based on the system public key, including:

[0114] judge Is it established?

[0115] If yes, the verification is successful, and the smart grid status statistics are performed based on the short message;

[0116] Otherwise, the verification fails;

[0117] Where π is a short message, C1 is the first signature after aggregation, and C2 is the second signature after aggregation.

[0118] The present invention also provides a smart grid data aggregation system based on the Chinese remainder theorem, comprising a terminal, a key distribution center, a data storage library, a smart meter and a gateway;

[0119] The key distribution center is used to generate a system private key and a system public key, and generate a gateway key and a key of a smart meter based on the system private key and the system public key; and distribute the key of the smart meter and the system public key to the smart meter, distribute the gateway key and the system public key to the gateway, and distribute the system public key to the terminal;

[0120] The smart meter is used to perform integrity protection on a status message of the smart meter based on a key of the smart meter and a system public key to obtain a signature of the status message of the smart meter, and to send the status message of the smart meter and the signature of the status message of the smart meter to the gateway;

[0121] The gateway is configured to obtain a short message based on the status message of the smart meter, aggregate the signature of the smart meter status message based on the gateway key and the system public key to obtain a short signature; and send the short message and the short signature to the data repository;

[0122] The data repository is used to store short messages and short signatures;

[0123] The terminal downloads the short message and short signature from the data repository, verifies the integrity of the short message and short signature based on the system public key, and performs status statistics of the smart grid based on the short message after the verification is passed.

[0124] Beneficial effects of the present invention:

[0125] The present invention provides a smart grid data aggregation method based on the Chinese remainder theorem. Based on the Chinese remainder theorem, a gateway key and a smart meter key are generated. The smart meter uses the smart meter key and the system public key to perform integrity protection on the smart meter status message, obtaining a signature of the smart meter status message. The gateway then sums the smart meter status messages to obtain a short message. Simultaneously, the signatures are aggregated using the system public key and the gateway key to obtain a short signature. This means that the terminal ultimately obtains both a short message directly summed from the smart meter status messages, which can be directly used for subsequent statistical analysis, and a short signature that conceals the smart meter status message. The terminal then simultaneously performs integrity verification on both the short message and the short signature. Once verification is successful, status statistics are directly generated using the short message. This method achieves message integrity protection, status information statistics, and data privacy protection. Furthermore, the technology is lightweight, has low computational and communication costs, and is highly efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0126] Figure 1 A schematic diagram of key generation and distribution in the smart grid data aggregation method based on the Chinese remainder theorem provided by the present invention;

[0127] Figure 2 This is a schematic diagram of data aggregation and state statistics in the smart grid data aggregation method based on the Chinese remainder theorem provided by the present invention. DETAILED DESCRIPTION

[0128] The present invention will be further described below in conjunction with the embodiments. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention and are not intended to limit the scope of protection of the present invention.

[0129] The embodiment of the present invention provides a smart grid data aggregation method based on the Chinese remainder theorem, which is called the Data Aggregation in Smart Grid method, referred to as the DASG method. The DASG method involves the unique InitDASG algorithm, GenkeyGW algorithm, GenkeySM algorithm, Signing algorithm, Aggre algorithm and Verify algorithm of the present invention. Figure 1 and Figure 2 , including the following steps:

[0130] Key generation and distribution:

[0131] (1) The Key Distribution Center (KDC) runs the InitDASG algorithm to initialize and generate the system private key sk KDC 、System public key pk KDC , the algorithm inputs security strength λ and outputs the system private key sk KDC and the system public key pk KDC .

[0132] Step 101: The key distribution center uses a random generator g and a λ-bit prime number p to generate a group G, and randomly generates g, g∈G. The value of λ is determined according to the security strength required, such as 80.

[0133] Step 102: The key distribution center randomly generates l numbers a1, a2, ..., a i ,...,a l , satisfying a1, a2, ..., a i ,...,a l ∈Z p , a1, a2, ..., a i ,...,a l mutually prime; Z p represents a positive integer less than p; i is an index variable, i=1, 2, ..., l; l≥t+1; t is the total number of smart meters.

[0134] Step 103: The key distribution center calculates the first parameter A of the system private key m And the first parameter A of the system public key,

[0135] Step 104: The key distribution center randomly generates a master signature key sk s ,sk s ∈(a l , A m ), calculate the corresponding master signature public key pk s ,

[0136] Step 105: After the above steps, the key distribution center obtains the system private key sk KDC and the system public key pk KDC :

[0137] sk KDC ={a1, a2, ..., a i ,...,a l , A m ,sk s}

[0138] pk KDC ={G, g, p, pk s , A}.

[0139] (2) The key distribution center runs the GenkeyGW algorithm to initialize and generate the gateway key sk GW , the algorithm inputs the system private key sk KDC 、System public key pk KDC , gateway identity GW, output gateway key sk GW The specific process is as follows:

[0140] Step 201: The key distribution center calculates the aggregate key sk gw ,sk gw =sk s mod a1.

[0141] Step 202: The key distribution center calculates and obtains the first parameter A1 and the second parameter B1 of the gateway key, where A1 = A / a1.

[0142] Step 203: The key distribution center calculates the gateway key sk GW ,

[0143] sk GW ={A1, B1, sk gw}.

[0144] (3) The key distribution center runs the GenkeySM algorithm to initialize the generation of the i-th smart meter SM i The key sk SMi , GenkeySM algorithm input system private key sk KDC 、System public key pk KDC 、Smart meter identity SM i , output the i-th smart meter SM i The key Sk SMi , the specific steps are as follows:

[0145] Step 301: The key distribution center calculates the i-th smart meter SM iThe first parameter of the key sk smi ,sk smi =sk s mod a i+1 .

[0146] Step 302: The key distribution center calculates the i-th smart meter SM i The second parameter of the key A i+1 and the i-th smart meter SM i The third parameter of the key B i+1 , A i+1 =A / a i+1 ,

[0147] Step 303: After the above steps, the key distribution center calculates the i-th smart meter SM i The key sk SMi ,

[0148] sk SMi ={sk smi , A i+1 , B i+1}

[0149] (14) Key distribution center distributes keys

[0150] The key distribution center sends the i-th smart meter SM i The key sk SMi 、System public key pk KDC Distributed to the i-th smart meter. The key distribution center sends the gateway key sk GW 、System public key pk KDC Distributed to the gateway. The key distribution center will distribute the system public key pk KDC Distribute to terminals.

[0151] Data Aggregation:

[0152] (5) The i-th smart meter SM i Run the Signing algorithm for the i-th smart meter SM i Status message m i After integrity protection is performed and the signature of the smart meter status message is obtained, it is sent to the gateway. The Signing algorithm inputs the message to be signed m i , the i-th smart meter SM i The key sk SMi 、System public key pk KDC , output the i-th smart meter SM i The signature of the status message τ i , and finally the i-th smart meter SM i Status message m iand the i-th smart meter SM i The signature of the status message τ i Send to the gateway, signed τ i The calculation steps are as follows:

[0153] Step 501: SM i Randomly generate a random number r i , r i ∈Z p .

[0154] Step 502: SM i Calculate the SM of the i-th smart meter i The first signature part C of the status message i1 ,

[0155] Step 503: SM i Calculate the SM of the i-th smart meter i The second signature part C of the status message i2 ,

[0156] Step 504: SM i Get the i-th smart meter SM i The signature of the status message τ i ;

[0157] τ i ={C i1 , C i2}.

[0158] (6) The gateway runs the Aggre algorithm to aggregate the status message of the smart meter and the signature of the smart meter status message to obtain a short message and a short signature, and sends the short message and the short signature to the data repository for storage. The Aggre algorithm inputs the i-th smart meter SM i Status message m i , the i-th smart meter SM i The signature of the status message τ i , gateway key sk GW 、System public key pk KDC , output the aggregated short message π and short signature Ω. The specific steps are as follows:

[0159] Step 601: The gateway calculates and obtains the short message π.

[0160] Step 602: The gateway calculates the aggregated first signature C1 and the aggregated second signature C2.

[0161]

[0162]

[0163] Step 603: The gateway obtains a short signature Ω, where Ω = {C1, C2}.

[0164] Status Statistics:

[0165] (7) The terminal runs the Verify algorithm to verify the integrity of the short message and short signature downloaded from the data repository. The Verify algorithm inputs the short message π, short signature Ω, and system public key pk KDC , output the verification result, return True if the verification passes, and return False if the verification fails. The specific steps are as follows:

[0166] Step 701: Terminal calculation and judgment If it is true, it returns True, indicating that the verification is passed; otherwise, it returns False, indicating that the verification is not passed.

[0167] If the verification is successful, then pass The status statistics of the smart grid can be performed.

[0168] If the verification fails, the short message is tampered with, the short message is discarded, and the terminal is notified.

[0169] An embodiment of the present invention further provides a smart grid data aggregation device based on the Chinese remainder theorem, comprising a first key generation module, a second key generation module, a third key generation module, an integrity protection module, an aggregation module, and a status statistics module;

[0170] The first key generation module is used to generate a system private key and a system public key;

[0171] The second key generation module is used to generate a gateway key based on the system private key and the system public key;

[0172] The third key generation module is used to generate a key for the smart meter based on the system private key and the system public key;

[0173] The integrity protection module is used to perform integrity protection on the status message of the smart meter based on the key of the smart meter and the system public key to obtain the signature of the status message of the smart meter;

[0174] The aggregation module is used to obtain a short message based on the status message of the smart meter, and to obtain a short signature by aggregating the signature of the smart meter status message based on the gateway key and the system public key;

[0175] The status statistics module is used to perform status statistics on the smart grid based on short messages and short signatures.

[0176] The first key generation module is specifically used to:

[0177] Based on the InitDASG algorithm, the system private key and system public key are calculated according to the following formula:

[0178] sk KDC ={a1, a2, ..., a i ,...,a l , A m ,sk s}

[0179] pk KDC ={G, g, p, pk s , A}

[0180] in,

[0181] sk KDC is the system private key, pk KDC is the system public key;

[0182] G is the group G generated by the random generator g;

[0183] p is the prime number input when generating group G;

[0184] a1, a2, ..., a i ,...,a l are l randomly generated numbers that satisfy a1, a2, ..., a i ,...,a l ∈Z p , a1, a2, ..., a i ,...,a l Mutually prime, i is the index variable, i=1, 2, ..., l; l≥t+1; t is the total number of smart meters;

[0185] Z p represents a positive integer less than p;

[0186] A m The first parameter of the system private key,

[0187] sk s is the primary signing key, sk s ∈(a l , A m );

[0188] A is the first parameter of the system public key,

[0189] g is a randomly generated number, g∈G;

[0190] pk s is the primary signature public key,

[0191] The second key generation module is specifically used to calculate the gateway key according to the following formula:

[0192] sk GW ={A1, B1, sk gw}

[0193] Among them, sk GW is the gateway key; GW is the gateway identity;

[0194] A1 is the first parameter of the gateway key, A1=A / a1;

[0195] B1 is the second parameter of the gateway key,

[0196] sk gw is the aggregation key, sk gw =sk s mod a1.

[0197] The third key generation module is specifically used to calculate the key of the smart meter according to the following formula:

[0198] sk SMi ={sk smi , A i+1 , B i+1}

[0199] Among them, sk SMi For the i-th smart meter SM i The key of

[0200] sk smi For the i-th smart meter SM i The first parameter of the key, sk smi =sk s mod a i+1

[0201] A i+1 For the i-th smart meter SM i The second parameter of the key, A i+1 =A / a i+1 ;

[0202] B i+1 For the i-th smart meter SM i The third parameter of the key,

[0203] The integrity protection module is specifically used to calculate the signature of the smart meter status message according to the following formula:

[0204] τ i ={C i1 , C i2}

[0205] Among them, τ i is the i-th smart meter SM i The signature of the status message;

[0206] C i1 is the i-th smart meter SM i The first signature portion of the status message;

[0207] C i2 is the i-th smart meter SM i A second signature portion of the status message;

[0208] r i is the i-th smart meter SM i The corresponding random number, r i ∈Z p ;sk SMi is the i-th smart meter SM i A i+1 is the i-th smart meter SM i The second parameter of the key; m i is the i-th smart meter SM i status message.

[0209] The aggregation module is specifically used to:

[0210] Calculate the short message as follows:

[0211]

[0212] Among them, π is a short message; m i is the i-th smart meter SM i Status messages;

[0213] And, calculate the short signature as follows:

[0214] Ω={C1,C2}

[0215] Among them, Ω is a short signature;

[0216] C1 is the first signature after aggregation,

[0217] C i1 is the i-th smart meter SM i The first signature portion of the status message;

[0218] C2 is the second signature after aggregation,

[0219] C i2 is the i-th smart meter SM iThe second signature part of the status message; sk GW is the gateway key; A1 is the first parameter of the gateway key, and B1 is the second parameter of the gateway key.

[0220] The status statistics module is specifically used to verify the integrity of short messages and short signatures based on the system public key, including:

[0221] judge Is it established?

[0222] If yes, the verification is successful, and the smart grid status statistics are performed based on the short message;

[0223] Otherwise, the verification fails;

[0224] Where π is a short message, C1 is the first signature after aggregation, and C2 is the second signature after aggregation.

[0225] The embodiment of the present invention also provides a smart grid data aggregation system based on the Chinese remainder theorem, referred to as the DASG system, which includes five entities: a terminal, a key distribution center (KDC), a data repository (DR), a smart meter (SM), and a gateway.

[0226] The key distribution center is used to generate a system private key and a system public key, generate a gateway key and a smart meter key based on the system private key and the system public key; and distribute the smart meter key and the system public key to the smart meter, distribute the gateway key and the system public key to the gateway, and distribute the system public key to the terminal;

[0227] The smart meter is used to perform integrity protection on a status message of the smart meter based on a key of the smart meter and a system public key to obtain a signature of the status message of the smart meter, and to send the status message of the smart meter and the signature of the status message of the smart meter to the gateway;

[0228] The gateway is configured to obtain a short message based on the status message of the smart meter, aggregate the signature of the smart meter status message based on the gateway key and the system public key to obtain a short signature; and send the short message and the short signature to the data repository;

[0229] The data repository is used to store short messages and short signatures;

[0230] The terminal downloads the short message and short signature from the data repository, verifies the integrity of the short message and short signature based on the system public key, and performs status statistics of the smart grid based on the short message after the verification is passed.

[0231] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0232] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0233] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0234] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.

[0235] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which are all protected by the present invention.

[0236] The basic principles, main features, and advantages of the present invention are shown and described above. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are merely illustrative of the principles of the present invention. Various changes and modifications may be made to the present invention without departing from the spirit and scope of the present invention. Such changes and modifications are intended to fall within the scope of the present invention. The scope of protection claimed in the present invention is defined by the appended claims and their equivalents.

Claims

1. A smart grid data aggregation method based on the Chinese remainder theorem, characterized in that: include, Generate system private key and system public key; Generate gateway keys and smart meter keys based on system private keys and system public keys; The status message of the smart meter is integrity protected based on the key of the smart meter and the system public key to obtain the signature of the status message of the smart meter; Obtaining a short message based on a status message of the smart meter, and aggregating a signature of the smart meter status message based on a gateway key and a system public key to obtain a short signature; Conduct smart grid status statistics based on short messages and short signatures; The system private key and system public key are generated based on the InitDASG algorithm, and the calculation formula is as follows: en KDC ={a1,a2,…,a i ,…,and l ,A m ,sk s } pk KDC ={G,g,p,pk s ,A} in, sk KDC is the system private key, pk KDC is the system public key; G is the group G generated by the random generator g; p is the prime number input when generating group G; a1,a2,…,a i ,…,a l are randomly generated l numbers that satisfy a1, a2, ..., a i ,…,a l ∈Z p ,a1,a2,…,a i ,…,a l Mutually prime, i is the index variable, i=1,2,…,l; l≥t+1; t is the total number of smart meters; Z p represents a positive integer less than p; A m The first parameter of the system private key, sk s is the primary signing key, sk s ∈(a l ,A m ); A is the first parameter of the system public key, g is a randomly generated number, g∈G; pk s is the primary signature public key, 2. The smart grid data aggregation method based on the Chinese remainder theorem according to claim 1, characterized in that: The gateway key is generated based on the system private key and the system public key, including: en GW ={A1,B1,sk gw } Among them, sk GW is the gateway key; GW is the gateway identity; A1 is the first parameter of the gateway key, A1=A / a1; B1 is the second parameter of the gateway key, sk gw is the aggregation key, sk gw =sk s mod a1.

3. The smart grid data aggregation method based on the Chinese remainder theorem according to claim 1, characterized in that: The method of generating a key for a smart meter based on a system private key and a system public key includes: en SMi ={en smi ,A i+1 ,B i+1 } Among them, sk SMi For the i-th smart meter SMi The key of sk smi is the i-th smart meter SM i The first parameter of the key, sk smi =sk s mod a i+1 A i+1 is the i-th smart meter SM i The second parameter of the key, A i+1 =A / a i+1 ; B i+1 is the i-th smart meter SM i The third parameter of the key, 4. The smart grid data aggregation method based on the Chinese remainder theorem according to claim 3, characterized in that: The method of performing integrity protection on the status message of the smart meter based on the key of the smart meter and the system public key to obtain the signature of the status message of the smart meter includes: t i ={C i1 ,C i2 } Among them, τ i is the i-th smart meter SM i The signature of the status message; C i1 is the i-th smart meter SM i The first signature portion of the status message; C i2 is the i-th smart meter SM i A second signature portion of the status message; r i is the i-th smart meter SM i The corresponding random number, r i ∈Z p ;sk SMi is the i-th smart meter SM i A i+1 is the i-th smart meter SM i The second parameter of the key; m i is the i-th smart meter SM i status message.

5. The smart grid data aggregation method based on the Chinese remainder theorem according to claim 4, characterized in that: The short message obtained based on the status message of the smart meter includes: Among them, π is a short message; m i is the i-th smart meter SM i Status messages; The short signature is obtained by aggregating the signature of the smart meter status message based on the gateway key and the system public key, including: Ω={C1,C2} Among them, Ω is a short signature; C1 is the first signature after aggregation, C i1 is the i-th smart meter SM i The first signature portion of the status message; C2 is the second signature after aggregation, C i2 is the i-th smart meter SM i The second signature part of the status message; sk GW is the gateway key; A1 is the first parameter of the gateway key, and B1 is the second parameter of the gateway key.

6. The smart grid data aggregation method based on the Chinese remainder theorem according to claim 5, characterized in that: The state statistics of the smart grid based on short messages and short signatures include: Verify the integrity of short messages and short signatures based on the system public key, including: judge Is it established? If yes, the verification is successful, and the smart grid status statistics are performed based on the short message; Otherwise, the verification fails; Where π is a short message, C1 is the first signature after aggregation, and C2 is the second signature after aggregation.

7. A smart grid data aggregation device based on the Chinese remainder theorem, characterized in that: It includes a first key generation module, a second key generation module, a third key generation module, an integrity protection module, an aggregation module and a status statistics module; The first key generation module is used to generate a system private key and a system public key; The second key generation module is used to generate a gateway key based on the system private key and the system public key; The third key generation module is used to generate a key for the smart meter based on the system private key and the system public key; The integrity protection module is used to perform integrity protection on the status message of the smart meter based on the key of the smart meter and the system public key to obtain the signature of the status message of the smart meter; The aggregation module is used to obtain a short message based on the status message of the smart meter, and to obtain a short signature by aggregating the signature of the smart meter status message based on the gateway key and the system public key; The state statistics module is used to perform state statistics on the smart grid based on short messages and short signatures; The first key generation module is specifically used to: Based on the InitDASG algorithm, the system private key and system public key are calculated according to the following formula: en KDC ={a1,a2,…,a i ,…,and l ,A m ,sk s } pk KDC ={G,g,p,pk s ,A} in, sk KDC is the system private key, pk KDC is the system public key; G is the group G generated by the random generator g; p is the prime number input when generating group G; a1,a2,…,a i ,…,a l are randomly generated l numbers that satisfy a1, a2, ..., a i ,…,a l ∈Z p ,a1,a2,…,a i ,…,a l Mutually prime, i is the index variable, i=1,2,…,l; l≥t+1; t is the total number of smart meters; Z p represents a positive integer less than p; A m The first parameter of the system private key, sk s is the primary signing key, sk s ∈(a l ,A m ); A is the first parameter of the system public key, g is a randomly generated number, g∈G; pk s is the primary signature public key, 8. The smart grid data aggregation device based on the Chinese remainder theorem according to claim 7, characterized in that: The second key generation module is specifically used to calculate the gateway key according to the following formula: en GW ={A1,B1,sk gw } Among them, sk GW is the gateway key; GW is the gateway identity; A1 is the first parameter of the gateway key, A1=A / a1; B1 is the second parameter of the gateway key, sk gw is the aggregation key, sk gw =sk s mod a1.

9. The smart grid data aggregation device based on the Chinese remainder theorem according to claim 7, characterized in that: The third key generation module is specifically used to calculate the key of the smart meter according to the following formula: en SMi ={en smi ,A i+1 ,B i+1 } Among them, sk SMi is the i-th smart meter SM i The key of sk smi is the i-th smart meter SM i The first parameter of the key, sk smi =sk s mod a i+1 A i+1 is the i-th smart meter SM i The second parameter of the key, A i+1 =A / a i+1 ; B i+1 is the i-th smart meter SM i The third parameter of the key, 10. The smart grid data aggregation device based on the Chinese remainder theorem according to claim 9, characterized in that: The integrity protection module is specifically used to calculate the signature of the smart meter status message according to the following formula: t i ={C i1 ,C i2 } Among them, τ i is the i-th smart meter SM i The signature of the status message; C i1 is the i-th smart meter SM i The first signature portion of the status message; C i2 is the i-th smart meter SM i A second signature portion of the status message; r i is the i-th smart meter SM i The corresponding random number, r i ∈Z p ;sk SMi is the i-th smart meter SM i A i+1 is the i-th smart meter SM i The second parameter of the key; m i is the i-th smart meter SM i status message.

11. The smart grid data aggregation device based on the Chinese remainder theorem according to claim 10, characterized in that: The aggregation module is specifically used to: Calculate the short message as follows: Among them, π is a short message; m i is the i-th smart meter SM i Status messages; And, calculate the short signature as follows: Ω={C1,C2} Among them, Ω is a short signature; C1 is the first signature after aggregation, C i1 is the i-th smart meter SM i The first signature portion of the status message; C2 is the second signature after aggregation, C i2 is the i-th smart meter SM i The second signature part of the status message; sk GW is the gateway key; A1 is the first parameter of the gateway key, and B1 is the second parameter of the gateway key.

12. The smart grid data aggregation device based on the Chinese remainder theorem according to claim 11, characterized in that: The state statistics module is specifically used to verify the integrity of short messages and short signatures based on the system public key, including: judge Is it established? If yes, the verification is successful, and the smart grid status statistics are performed based on the short message; Otherwise, the verification fails; Where π is a short message, C1 is the first signature after aggregation, and C2 is the second signature after aggregation.

13. A smart grid data aggregation system based on the Chinese remainder theorem and the smart grid data aggregation method according to any one of claims 1 to 6, characterized in that: Includes terminals, key distribution centers, data repositories, smart meters, and gateways; The key distribution center is used to generate a system private key and a system public key, and generate a gateway key and a key of a smart meter based on the system private key and the system public key; and distribute the key of the smart meter and the system public key to the smart meter, distribute the gateway key and the system public key to the gateway, and distribute the system public key to the terminal; The smart meter is used to perform integrity protection on a status message of the smart meter based on a key of the smart meter and a system public key to obtain a signature of the status message of the smart meter, and to send the status message of the smart meter and the signature of the status message of the smart meter to the gateway; The gateway is configured to obtain a short message based on the status message of the smart meter, aggregate the signature of the smart meter status message based on the gateway key and the system public key to obtain a short signature; and send the short message and the short signature to the data repository; The data repository is used to store short messages and short signatures; The terminal downloads the short message and short signature from the data repository, verifies the integrity of the short message and short signature based on the system public key, and performs status statistics of the smart grid based on the short message after the verification is passed.

Citation Information

Patent Citations

  • Data aggregation method and system based on smart power grid and storage medium

    CN111897892A