CN111897892B - Data aggregation method and system based on smart power grid and storage medium - Google Patents

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

Info

Publication number
CN111897892B
CN111897892B CN202011058794.9A CN202011058794A CN111897892B CN 111897892 B CN111897892 B CN 111897892B CN 202011058794 A CN202011058794 A CN 202011058794A CN 111897892 B CN111897892 B CN 111897892B
Authority
CN
China
Prior art keywords
data
aggregation
gateway
domain
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011058794.9A
Other languages
Chinese (zh)
Other versions
CN111897892A (en
Inventor
曹珍富
董晓蕾
刘竹森
沈佳辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peng Cheng Laboratory
Original Assignee
Peng Cheng Laboratory
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peng Cheng Laboratory filed Critical Peng Cheng Laboratory
Priority to CN202011058794.9A priority Critical patent/CN111897892B/en
Publication of CN111897892A publication Critical patent/CN111897892A/en
Application granted granted Critical
Publication of CN111897892B publication Critical patent/CN111897892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/283Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Data Mining & Analysis (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data aggregation method, a system and a storage medium based on a smart power grid, which comprises the following steps: the method comprises the steps that a user terminal obtains user data, multi-dimensional processing is conducted on the user data through Chinese remainder theorem parameters and a loss-of-image equation, the user data after the multi-dimensional processing is packaged, and corresponding first encrypted data are determined; the domain-level gateway receives first encrypted data sent by a user terminal, verifies user signature data in the first encrypted data, determines a corresponding domain-level aggregation ciphertext based on the first encrypted data, performs data aggregation on the domain-level aggregation ciphertext, and determines corresponding second encrypted data; and the region gateway verifies the domain-level gateway signature data in the second encrypted data, determines a corresponding region aggregation ciphertext based on the second encrypted data, and performs data aggregation on the region aggregation ciphertext. The invention carries out multidimensional data processing through Chinese remainder theorem parameters and a loss-of-service graph equation, and carries out multidimensional data aggregation after signature verification, thereby improving the data aggregation efficiency.

Description

Data aggregation method and system based on smart power grid and storage medium
Technical Field
The invention relates to the field of smart power grids, in particular to a data aggregation method, a data aggregation system and a storage medium based on a smart power grid.
Background
At present, a data aggregation method of a smart grid is mainly data batch encryption aggregation, aggregation information of multi-dimensional data cannot be obtained quickly due to the data batch encryption aggregation, data redundancy is achieved due to batch sending, communication overhead in big data of the smart grid is increased, furthermore, data batch encryption aggregation enables encrypted plaintext to be expanded greatly, a large burden is brought to resource-limited equipment, meanwhile, data aggregation of a large user amount cannot be adapted, and accordingly, the efficiency of data aggregation is low. Therefore, the data aggregation method of the smart grid has low data aggregation efficiency.
Disclosure of Invention
The invention mainly aims to provide a data aggregation method, a data aggregation system and a computer readable storage medium based on a smart grid, and aims to solve the technical problem that the data aggregation efficiency of the existing data aggregation method of the smart grid is low.
In order to achieve the above object, the present invention provides a data aggregation method based on a smart grid, including the following steps:
acquiring user data based on a user terminal in an intelligent power grid, carrying out multi-dimensional processing on the user data through corresponding Chinese remainder theorem parameters and a loss-of-image equation, packaging the multi-dimensional processed user data based on the user terminal, and determining corresponding first encrypted data;
receiving first encrypted data sent by the user terminal based on a domain-level gateway in the smart grid, verifying user signature data in the first encrypted data based on the domain-level gateway, determining a corresponding domain-level aggregation ciphertext based on the first encrypted data, performing data aggregation on the domain-level aggregation ciphertext based on the domain-level gateway, and determining corresponding second encrypted data;
and sending the second encrypted data to a region gateway of the smart grid based on the domain-level gateway, verifying domain-level gateway signature data in the second encrypted data based on the region gateway, determining a corresponding region aggregation ciphertext based on the second encrypted data, and performing data aggregation on the region aggregation ciphertext based on the region gateway.
Optionally, the step of obtaining user data based on a user terminal in the smart grid and performing multidimensional processing on the user data through corresponding chinese remainder theorem parameters and a loss-of-image equation, and the step of determining corresponding first encrypted data based on the user terminal packing the user data after the multidimensional processing includes:
acquiring power consumption data corresponding to each user based on each user terminal at intervals of a preset period, performing multi-dimensional processing on each power consumption data based on a loss map equation and a first Chinese remainder theorem parameter corresponding to each user terminal and a second Chinese remainder theorem parameter corresponding to each domain-level gateway, and determining corresponding integrated user data;
determining corresponding user encrypted ciphertext based on each user terminal and each integrated user data, acquiring corresponding first private key parameters based on each user terminal, and determining corresponding user signature data based on each integrated user data, the user encrypted ciphertext and the first private key parameters;
and packaging each user encrypted ciphertext based on each user terminal and the user signature data to determine the first encrypted data.
Optionally, the step of performing multidimensional processing on each power consumption data based on the loss-of-service graph equation and the first chinese remaining theorem parameter corresponding to each user terminal, and the second chinese remaining theorem parameter corresponding to each domain-level gateway, and determining corresponding integrated user data includes:
determining each first Chinese remainder theorem parameter corresponding to each user terminal based on a loss-of-service graph equation of each user terminal, multiplying and adding each power utilization data and the corresponding first Chinese remainder theorem parameter based on each user terminal, and determining multidimensional user data corresponding to the power utilization data;
and acquiring second China remainder theorem parameters of each corresponding domain-level gateway based on each user terminal, and multiplying each multi-dimensional user data by each corresponding second China remainder theorem parameter based on each user terminal to determine integrated user data corresponding to the power utilization data.
Optionally, the verifying, by the region gateway, domain-level gateway signature data in the second encrypted data, determining, by the region gateway, a corresponding region aggregation ciphertext based on the second encrypted data, and performing data aggregation on the region aggregation ciphertext by the region gateway includes:
verifying domain-level gateway signature data in the second encrypted data based on a preset signature algorithm in the regional gateway;
if the domain-level gateway signature data passes the verification, aggregating the domain-level aggregation ciphertext in the second encrypted data into a region aggregation ciphertext based on the region gateway, and acquiring a corresponding second private key parameter based on the region gateway;
and determining corresponding region gateway signature data based on the region gateway, the region aggregation ciphertext and the second private key parameter, and performing data aggregation on each region aggregation ciphertext based on the region gateway and the region gateway signature data.
Optionally, the verifying, by the domain-level gateway, user signature data in the first encrypted data, determining a corresponding domain-level aggregation ciphertext by the first encrypted data, and performing data aggregation on the domain-level aggregation ciphertext by the domain-level gateway, where the determining of the corresponding second encrypted data includes:
verifying user signature data in the first encrypted data based on a preset signature algorithm in the domain-level gateway;
if the user signature data passes the verification, aggregating user encrypted ciphertext in the first encrypted data into a domain-level aggregated ciphertext based on the domain-level gateway, and acquiring a corresponding third private key parameter based on the domain-level gateway;
and determining corresponding domain-level gateway signature data based on the domain-level gateway, the domain-level aggregation ciphertext and the third private key parameter, packaging the domain-level aggregation ciphertext based on the domain-level gateway and the domain-level gateway signature data, and determining the second encrypted data.
Optionally, before the step of obtaining user data based on a user terminal in the smart grid and performing multidimensional processing on the multidimensional user data through corresponding chinese remainder theorem parameters and a loss-of-image equation, and determining corresponding first encrypted data based on the user terminal packing the multidimensional processed user data, the method further includes:
determining security parameters in the smart grid, generating a corresponding bilinear library based on the security parameters, acquiring a preset number of target security parameters from the security parameters, and determining system parameters corresponding to the smart grid based on the target security parameters and the bilinear library, wherein the system parameters comprise public key parameters and private key parameters;
the method comprises the steps of obtaining a first preset parameter corresponding to the user terminal, a second preset parameter corresponding to the domain-level gateway, a second preset parameter corresponding to the regional gateway and a third preset parameter corresponding to the regional gateway, a first private key parameter corresponding to the user terminal is determined based on the first preset parameter, a second private key parameter corresponding to the domain-level gateway is determined based on the second preset parameter, and a third private key parameter corresponding to the regional gateway is determined based on the third preset parameter.
Optionally, after the step of sending the second encrypted data to the regional gateway of the smart grid based on the domain-level gateway, verifying domain-level gateway signature data in the second encrypted data based on the regional gateway, determining a corresponding regional aggregation ciphertext based on the second encrypted data, and performing data aggregation on the regional aggregation ciphertext based on the regional gateway, the method further includes:
receiving third encrypted data obtained by aggregating the second encrypted data by the regional gateway, and verifying regional gateway signature data in the third encrypted data through the preset signature algorithm;
and if the verification of the region gateway signature data is passed, analyzing a region aggregation ciphertext in the third encrypted data based on a preset decryption algorithm, and determining corresponding aggregation results in each region.
Optionally, if the verification of the regional gateway signature data passes, analyzing a regional aggregation ciphertext in the third encrypted data based on a preset decryption algorithm, and determining a corresponding aggregation result in each region includes:
if the verification of the region gateway signature data is passed, obtaining private key parameters of system parameters in the smart grid, analyzing the region aggregation ciphertext based on the private key parameters, and determining each dimension data scalar corresponding to each user in each region;
and inputting each dimension data scalar into a preset equation, and determining the aggregation result of the dimension data plaintext of each user in each region.
In addition, in order to achieve the above object, the present invention further provides a smart grid-based data aggregation system, which includes a memory, a processor, and a smart grid-based data aggregation program stored in the memory and running on the processor, wherein the smart grid-based data aggregation program implements the steps of the smart grid-based data aggregation method when being completed by the processor.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, on which a smart grid-based data aggregation program is stored, which, when being completed by a processor, implements the steps of the smart grid-based data aggregation method as described above.
The method and the device realize that the user data are obtained based on the user terminal in the smart grid and are subjected to multi-dimensional processing through the corresponding Chinese remainder theorem parameters and the corresponding loss-of-picture equation, and the user data subjected to multi-dimensional processing are packaged based on the user terminal to determine the corresponding first encrypted data; receiving first encrypted data sent by a user terminal based on a domain-level gateway in an intelligent power grid, verifying user signature data in the first encrypted data based on the domain-level gateway, determining a corresponding domain-level aggregation ciphertext based on the first encrypted data, performing data aggregation on the domain-level aggregation ciphertext based on the domain-level gateway, and determining corresponding second encrypted data; and sending the second encrypted data to a region gateway of the smart power grid based on the region-level gateway, verifying the region-level gateway signature data in the second encrypted data based on the region gateway, determining a corresponding region aggregation ciphertext based on the second encrypted data, and performing data aggregation on the region aggregation ciphertext based on the region gateway. Therefore, in the process of data aggregation, user data are obtained based on a user terminal, multidimensional data processing is carried out through China remainder theorem parameters and a missing map equation, corresponding first encrypted data are determined, then user signature data in the first encrypted data are verified based on a domain-level gateway, domain-level aggregation ciphertext is subjected to data aggregation based on the domain-level gateway to determine corresponding second encrypted data, finally domain-level gateway signature data in the second encrypted data are verified based on a region gateway, the region aggregation ciphertext is subjected to data aggregation based on the region gateway, multidimensional data processing is carried out by combining the China remainder theorem parameters and the missing map equation, expansion of encrypted plaintext is reduced, multidimensional data are subjected to data aggregation through the domain-level gateway and the region gateway signature verification, and accordingly data aggregation of different domain levels and different regions can be carried out, meanwhile, calculation overhead and communication overhead are reduced, and therefore data aggregation efficiency of the smart power grid is improved.
Drawings
FIG. 1 is a schematic flow chart diagram of a first embodiment of a smart grid-based data aggregation method according to the present invention;
FIG. 2 is a diagram of a smart grid system model according to a first embodiment of the smart grid-based data aggregation method of the present invention;
FIG. 3 is a schematic flow chart of a smart grid-based data aggregation method of the present invention;
FIG. 4 is a schematic structural diagram of a preferred data aggregation apparatus based on a smart grid according to the present invention;
fig. 5 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a data aggregation method based on a smart grid, and referring to fig. 1 to 3, fig. 1 is a schematic flow diagram of a first embodiment of the data aggregation method based on the smart grid; FIG. 2 is a diagram of a smart grid system model according to a first embodiment of the smart grid-based data aggregation method of the present invention; FIG. 3 is a flow chart of the data aggregation method based on the smart grid according to the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than that shown or described herein.
The data aggregation method based on the smart power grid comprises the following steps:
step S10, acquiring user data based on a user terminal in the smart grid, performing multi-dimensional processing on the user data through corresponding Chinese remainder theorem parameters and a loss-of-use graph equation, packaging the multi-dimensional processed user data based on the user terminal, and determining corresponding first encrypted data.
Each user terminal in the smart grid acquires user data of each user in the user terminal, then determines a missing map equation in the user terminal and Chinese remaining theorem parameters corresponding to the user terminal, determines the Chinese remaining theorem parameters of a domain-level gateway corresponding to the user terminal, performs multi-dimensional processing on the user data through the missing map equation of the user terminal, the Chinese remaining theorem parameters corresponding to the user terminal and the Chinese remaining theorem parameters of the domain-level gateway corresponding to the user terminal, then performs user terminal signature on the user data after the multi-dimensional processing, packs the user data after the user terminal signature, and determines first encrypted data corresponding to each user terminal.
As shown in fig. 2, fig. 2 is a model diagram of a smart grid system according to a first embodiment of the data aggregation method based on a smart grid, where the smart grid includes, but is not limited to, a Control Center (CC), a regional Gateway (DGW), a Regional Aggregation Gateway (RAGW), and a user terminal. A control center is connected with a plurality of area gateways, one area gateway controls a plurality of domain-level gateways, and one domain-level gateway controls a plurality of user terminals.
Further, the step S10 includes:
step a, acquiring power consumption data corresponding to each user based on each user terminal at intervals of a preset period, carrying out multi-dimensional processing on each power consumption data based on a loss map equation and a first Chinese remainder theorem parameter corresponding to each user terminal, and a second Chinese remainder theorem parameter corresponding to each domain-level gateway, and determining corresponding integrated user data;
b, determining a corresponding user encrypted ciphertext based on each user terminal and each integrated user data, acquiring a corresponding first private key parameter based on each user terminal, and determining corresponding user signature data based on each integrated user data, the user encrypted ciphertext and the first private key parameter;
and c, packaging each user encrypted ciphertext based on each user terminal and the user signature data, and determining the first encrypted data.
Specifically, each User terminal acquires each User in the User terminal once at intervals of a preset periodi,t (i=1,2,...,s;t=1,2,...,ni) Encrypted L-dimensional power consumption data di,t=(di,t,1,di,t,2,...,di,t,L) The method comprises the steps of determining the number of area gateways, determining the number of power utilization data M, performing multidimensional processing on each power utilization data through a loss-of-image equation and a first Chinese remainder theorem parameter corresponding to each user terminal and a second Chinese remainder theorem parameter corresponding to a domain-level gateway corresponding to each user terminal, and determining corresponding integrated user data Mi,tThen the user terminal selects any random number ri,tR Z* NAnd carrying out homomorphic Paillier (probability public key encryption system) encryption on the electricity consumption data according to the random number and the integrated user data to obtain a user encryption ciphertext ci,tWherein c isi,t=E(Mi,t,ri,t)=gMi,t·ri,t N mod N2Then, the user terminal obtains the corresponding first private key parameter xi,tAccording to the user's encrypted ciphertext ci,tAnd the first personKey parameter xi,tDetermining corresponding user signature data sigmai,tWherein σ isi,t=xi,tH(ci,t || ID_RAGWi || ID_Useri,t | T), and then the user terminal signs the signature data σ of each useri,tEmbedded in user encrypted ciphertext ci,tFinally, each user encrypted ciphertext c after the user signs the datai,tPackaging to obtain first encrypted data Di,tWherein D isi,t=ci,t ||ID_RAGWi || ID_Useri,t And | T, and sending each first encrypted data to the corresponding domain-level gateway.
Further, the step a comprises:
d, determining each first Chinese remainder theorem parameter corresponding to each user terminal based on the loss-of-energy graph equation of each user terminal, multiplying and adding each power utilization data and the corresponding first Chinese remainder theorem parameter based on each user terminal, and determining multidimensional user data corresponding to the power utilization data;
and e, acquiring second China remaining theorem parameters of each corresponding domain-level gateway based on each user terminal, multiplying each multi-dimensional user data by each corresponding second China remaining theorem parameter based on each user terminal, and determining integrated user data corresponding to the power utilization data.
Specifically, each user terminal determines a corresponding loss-of-service graph equation in the user terminal, and determines a corresponding first Chinese remainder theorem parameter B in each user terminal according to the loss-of-service graph equation1,B2,...,BLThen multiplying each power consumption data by the corresponding first Chinese remainder theorem parameter to obtain the product of the user data and the corresponding first Chinese remainder theorem parameter, and adding and summing the products to obtain the user data di,tCorresponding multi-dimensional user data Wi,tWherein W isi,t=di,t,1B1+di,t,2B2+...+di,t,LBL
Then each useThe user terminal obtains the second Chinese remainder theorem parameter À of the corresponding domain-level gatewayiAnd A, combining the multi-dimensional user data Wi,tAnd the second Chinese remainder theorem parameter ÀiMultiplying the obtained data by the obtained data to obtain electricity utilization data di,tCorresponding integrated user data Mi,tWherein M isi,ti·(di,t,1B1+di,t,2B2+...+di,t,LBL mod B) mod A. Wherein, Ài,A,BLAnd B is the Chinese remainder theorem parameter. It should be noted that the process of determining the parameters of the chinese remainder theorem by the missing-pattern equation is to take two sets of solutions χ = (x) of the missing-pattern equation1,x2,...,xn1) And γ = (y)1,y2,...,yn2) The control center obtains the dimension L of the electricity consumption data corresponding to a single user according to the number s of the area gateways and the number of the user terminals, and then two groups of integer sets A of the cross elements are respectively selecteda=(a1,a2,...,as) And Bb=(b1,b2,...,bL) I.e. Aa⊆χ,Bb⊆ gamma, and the two sets of integer sets are both contained in the solution of the charpy equation, χ and γ, and the smallest element in both sets of integer sets is greater than nmaxU, wherein nmaxIs the maximum number of users at domain level, and U is the upper limit of data per dimension. In addition, AaComplementary set C of XχAa=(x11,x12,...,x1n3),n3=n1-s,BbComplement to gamma CγBb=(y11,y12,...,y1n4),n4=n2-L, calculation a = a1a2...as,B=b1b2...bLObtaining the Chinese remainder theorem parameter set Aa=(Ak|Ak=A/ak,1≦k≦s),Bb=(Bj|Bj=B/bj,1≦j≦L)。
Step S20, receiving, by a domain-level gateway in the smart grid, first encrypted data sent by the user terminal, verifying, by the domain-level gateway, user signature data in the first encrypted data, determining, by the domain-level gateway, a corresponding domain-level aggregation ciphertext, performing data aggregation on the domain-level aggregation ciphertext by the domain-level gateway, and determining corresponding second encrypted data.
The method comprises the steps that a domain-level gateway in the smart grid receives first encrypted data sent by a user terminal in the smart grid, then corresponding user signature data in each first encrypted data is determined, the corresponding user signature data in each first encrypted data in the domain level are verified in batch, after the domain-level gateway determines that the corresponding user signature data in each first encrypted data pass verification, data aggregation is conducted on each user encrypted ciphertext in the first encrypted data, a domain-level aggregation ciphertext corresponding to the domain-level gateway is determined, then domain-level gateway signature data are obtained, the domain-level gateway signature data are embedded into the domain-level aggregation ciphertext, data aggregation is conducted on the signed domain-level aggregation ciphertext, and corresponding second encrypted data are obtained.
Further, the step S20 includes:
step f, verifying user signature data in the first encrypted data based on a preset signature algorithm in the domain-level gateway;
step g, if the user signature data passes the verification, aggregating the user encrypted ciphertext in the first encrypted data into a domain-level aggregated ciphertext based on the domain-level gateway, and acquiring a corresponding third private key parameter based on the domain-level gateway;
and h, determining corresponding domain-level gateway signature data based on the domain-level gateway, the domain-level aggregation ciphertext and the third private key parameter, packaging the domain-level aggregation ciphertext based on the domain-level gateway and the domain-level gateway signature data, and determining the second encrypted data. Specifically, the domain-level gateway verifies whether the user signature data in each first encrypted data meets e { P, sigma delta through BLS short signature aggregationi,j}=Ⅱ(e(Yi,j,H(ci,t ||ID_RAGWi || ID_Useri,t | T))) where P is the generator in the bilinear library, σi,jIs user signature data, Yi,jIs a domain level gatewayPublic key parameter of ci,tIs a user encrypted ciphertext, ID _ RAGW, of user signed datai Is the identity, ID _ User, corresponding to the domain-level gatewayi,tIf the user signature data in each first encrypted data passes verification, the domain-level gateway determines that the user signature data in each first encrypted data is from a legal user, and then performs data aggregation on the user encrypted ciphertext of each first encrypted data to obtain a domain-level aggregated ciphertext BAMDDiWherein, BAMDDi=Ⅱci,t mod N2Wherein, N is a public key parameter of a homomorphic Paillier encryption system, and then, the domain-level gateway acquires a corresponding third private key parameter xiAggregating ciphertext BAMDD according to domain leveliAnd a third private key parameter xiDetermining corresponding domain-level gateway signature data σi,σi=xiH(BAMDDi || ID_DGWi|| ID_RAGWi || ni | T), where H is a hash function and ni Is the amount of user signature data, ID _ DGW, within the home domain leveliIs the identity corresponding to the area gateway, and finally, the domain-level gateway signature data sigmaiEmbedded domain-level aggregated ciphertext BAMDDiAnd the signed domain-level aggregation ciphertext BAMDDiPackaging to obtain second encrypted data Di,Di=BAMDDi || ID_DGWi || ID_RAGWi || ni || T ||σiIf at least one user signature data exists in the user signature data in each first encrypted data and the user signature data does not pass the verification, the domain-level gateway determines that at least one user signature data exists in the user signature data in each first encrypted data and is from an illegal user, determines the corresponding user signature data which does not pass the verification through an error correction theory, then discriminates the user signature data which does not pass the verification through errors, and then re-verifies the user signature data until the user signature data passes the verification.
Step S30, sending the second encrypted data to a regional gateway of the smart grid based on the domain-level gateway, verifying domain-level gateway signature data in the second encrypted data based on the regional gateway, determining a corresponding regional aggregation ciphertext based on the second encrypted data, and performing data aggregation on the regional aggregation ciphertext based on the regional gateway.
After determining the second encrypted data, the domain-level gateway sends the second encrypted data to regional gateways of the smart power grid, after receiving the second encrypted data sent by the domain-level gateway, the regional gateways perform batch signature verification on domain-level gateway signature data in each second encrypted data in the local area, after determining that the domain-level gateway signature data in each second encrypted data passes the verification, the regional gateways perform data aggregation on each domain-level aggregation ciphertext in the second encrypted data, determine a regional aggregation ciphertext corresponding to the regional gateway, then obtain regional gateway signature data, embed the regional gateway signature data into the regional aggregation ciphertext, and perform data aggregation on the signed regional aggregation ciphertext.
Further, the step S30 includes:
step i, verifying domain-level gateway signature data in the second encrypted data based on a preset signature algorithm in the regional gateway;
step j, if the domain-level gateway signature data passes the verification, aggregating the domain-level aggregation ciphertext in the second encrypted data into a region aggregation ciphertext based on the region gateway, and acquiring a corresponding second private key parameter based on the region gateway;
and k, determining corresponding region gateway signature data based on the region gateway, the region aggregation ciphertext and the second private key parameter, and performing data aggregation on each region aggregation ciphertext based on the region gateway and the region gateway signature data. Specifically, the regional gateway verifies whether the domain-level gateway signature data in each second encrypted data meets e { P, ∑ σ } through BLS short signature aggregationi}=Ⅱ(e(Yi,H(BAMDDi || ID_DGWi || ID_RAGWi| T))) in which Y is presentiThe region gateway is a public key parameter of the region gateway, if the domain-level gateway signature data in each second encrypted data passes verification, the region gateway performs data aggregation on the domain-level user encrypted ciphertext in each second encrypted data to obtain the regionRegion-aggregated ciphertext SAMDD, wherein SAMDD = II BAMDDi mod N2Then, the region gateway determines a corresponding second private key parameter x, and determines corresponding region gateway signature data σ, σ = xH (SAMDD | | | ID _ CC | | | ID _ DGW | | n) according to the region aggregation ciphertext and the second private key parameter x1 ||n2I. | | ns | | T), where s is the number of the regional gateways, ID _ CC is the identity corresponding to the control center, and finally, each regional gateway signature data σ is embedded into a regional aggregation ciphertext SAMDD, and the signed regional aggregation ciphertext SAMDD is packaged to obtain third encrypted data D, D = SAMDD | | ID _ DGW | | n)1 ||n2Is. If at least one domain-level gateway signature data in the second encrypted data does not pass the verification, the region gateway determines the corresponding domain-level gateway signature data which does not pass the verification through an error correction theory, then performs error screening on the domain-level gateway signature data which does not pass the verification, and then re-verifies the domain-level gateway signature data until the domain-level gateway signature data passes the verification.
Further, the smart grid-based data aggregation method further includes:
determining security parameters in the smart grid, generating a corresponding bilinear library based on the security parameters, acquiring a preset number of target security parameters from the security parameters, and determining system parameters corresponding to the smart grid based on the target security parameters and the bilinear library, wherein the system parameters comprise public key parameters and private key parameters;
and m, acquiring a first preset parameter corresponding to the user terminal, a second preset parameter corresponding to the regional gateway and a third preset parameter corresponding to the domain-level gateway, determining a first private key parameter corresponding to the user terminal based on the first preset parameter, determining a second private key parameter corresponding to the regional gateway based on the second preset parameter, and determining a third private key parameter corresponding to the domain-level gateway based on the third preset parameter.
Specifically, the control center determines a safety parameter kappa in the smart grid and generates a corresponding two-wire according to the safety parameterA linear library, and then selecting any one of the two-line pairing group parameters (P, P, G) in the bilinear library1,GTE), and selecting a preset number of target security parameters k from the security parameters k1The target security parameter k1By combining the Paillier encryption system with the parameters of the two-line pairing group (P, P, G)1,GTE) determining the corresponding system parameters of the smart grid, wherein the system parameters comprise public key parameters [ N (p)1q1),g]And private key parameters (lambda, p)1,q1) Selecting Hash function H: {0,1 }at the same time*→G1Then, the private key parameters are stored in a database of the control center in a secret way, and the public key parameters and the Chinese remainder theorem parameters are published. The region gateway randomly selects a corresponding second preset parameter x eR Z* qAs a second private key parameter, multiplying the second private key parameter by a generator in the bilinear library to generate a corresponding second public key parameter Y = xP, sending a registration request to the control center by the domain-level gateway, using a unique serial number in the serial numbers (1, 2.. multidot.i) as a serial number of the domain-level gateway by the control center, and using the unique serial number as a serial number of the domain-level gateway, and using the sequence number as a RAWW of the domain-level gatewayiAssign unique ai,ai∈Aa. Domain level gateway RAGWiRandomly selecting a corresponding third preset parameter xiR Z* qAs the corresponding third private key parameter, then the third private key parameter is multiplied by the generator in the bilinear library to generate the corresponding third public key parameter Yi=xiP, user terminal sends registration request to domain level gateway RAGWiDomain level gateway RAGWiFrom the sequence number (1, 2.., n)i) The unique serial number in the User terminal is used as the serial number of the User terminal and is the User of the User terminali,t (i=1,2,...,s;t=1,2,...,ni) Assign unique ai,bt. The user terminal randomly selects a corresponding first preset parameter xi,tR Z* qAs the corresponding first private key parameter, then multiplying the first private key parameter with the generator in the bilinear library to generate the corresponding first public key parameter Yi,t=xi,tAnd P. The preset number is set according to the requirement, and the embodiment does not do soAnd (4) limiting.
Further, as shown in fig. 3, fig. 3 is a schematic flow chart of the data aggregation method based on the smart grid of the present invention, the control center determines corresponding private key parameters, public key parameters and chinese remaining theorem parameters (system initialization), then performs multidimensional processing on the user data by the user terminal to obtain integrated user data (user multidimensional data processing), determines a user encrypted ciphertext of the user data according to the integrated user data (data homomorphic encryption), finally signs and packs to obtain first encrypted data, and sends the first encrypted data to the domain-level gateway, the domain-level gateway verifies the user signed data in the first encrypted data (domain-level gateway aggregation verification), if the verification fails, determines corresponding user signed data (discrimination error) by error correction theory, after the verification passes, performs data aggregation on the user encrypted ciphertext to determine a domain-level aggregated ciphertext (aggregated ciphertext), and then signing and packaging are carried out, the signing data are sent to a region gateway (advanced gateway), the region gateway verifies domain-level gateway signing data (advanced gateway aggregation verification), the verification fails, corresponding domain-level gateway signing data (discrimination error) are determined through an error correction theory, after the verification passes, data aggregation is carried out on the domain-level aggregation ciphertext to determine a region aggregation ciphertext (aggregation ciphertext), then signing and packaging are carried out to third encrypted data, the third encrypted data are sent to a control center, after the control center receives the third encrypted data, the control center verifies the region gateway signing data (aggregation verification), the verification fails, the corresponding region gateway signing data (discrimination error) are determined through the error correction theory, and after the verification passes, decryption analysis is carried out (the control center analyzes multidimensional data).
The embodiment realizes that user data is obtained based on a user terminal in the smart grid and is subjected to multi-dimensional processing through corresponding Chinese remainder theorem parameters and a loss-of-image equation, and the user data subjected to multi-dimensional processing is packaged based on the user terminal to determine corresponding first encrypted data; receiving first encrypted data sent by a user terminal based on a domain-level gateway in an intelligent power grid, verifying user signature data in the first encrypted data based on the domain-level gateway, determining a corresponding domain-level aggregation ciphertext based on the first encrypted data, performing data aggregation on the domain-level aggregation ciphertext based on the domain-level gateway, and determining corresponding second encrypted data; and sending the second encrypted data to a region gateway of the smart power grid based on the region-level gateway, verifying the region-level gateway signature data in the second encrypted data based on the region gateway, determining a corresponding region aggregation ciphertext based on the second encrypted data, and performing data aggregation on the region aggregation ciphertext based on the region gateway. Therefore, in the process of data aggregation, user data are obtained based on a user terminal, multidimensional data processing is carried out through China remainder theorem parameters and a missing map equation, corresponding first encrypted data are determined, then user signature data in the first encrypted data are verified based on a domain-level gateway, domain-level aggregation ciphertext is subjected to data aggregation based on the domain-level gateway to determine corresponding second encrypted data, finally domain-level gateway signature data in the second encrypted data are verified based on a region gateway, the region aggregation ciphertext is subjected to data aggregation based on the region gateway, multidimensional data processing is carried out by combining the China remainder theorem parameters and the missing map equation, expansion of encrypted plaintext is reduced, multidimensional data are subjected to data aggregation through the domain-level gateway and the region gateway signature verification, and accordingly data aggregation of different domain levels and different regions can be carried out, meanwhile, calculation overhead and communication overhead are reduced, and therefore data aggregation efficiency of the smart power grid is improved. Meanwhile, parameter selection is carried out on the Chinese remainder theorem parameters by using a lost-pattern equation, so that the calculation amount of multidimensional data processing and homomorphic operation is greatly reduced, and the operation efficiency of the intelligent power grid is improved.
Further, a second embodiment of the data aggregation method based on the smart grid is provided.
The second embodiment of the smart grid-based data aggregation method differs from the first embodiment of the smart grid-based data aggregation method in that the smart grid-based data aggregation method further includes:
step n, receiving third encrypted data obtained by aggregating the second encrypted data by the regional gateway, and verifying regional gateway signature data in the third encrypted data through the preset signature algorithm;
and step o, if the verification of the region gateway signature data is passed, analyzing a region aggregation ciphertext in the third encrypted data based on a preset decryption algorithm, and determining corresponding aggregation results in each region.
Specifically, the regional gateway performs data aggregation on the second encrypted data to obtain third encrypted data, and sends the third encrypted data to the control center, and after receiving the third encrypted data, the control center verifies whether the regional gateway signature data in each third encrypted data all satisfy e { P, ∑ σ } = ii (e (Y, H (SAMDD | | ID _ CC | | ID _ DGW) through BLS short signature aggregationi | T))), wherein Y is a public key parameter of the regional gateway, if the regional gateway signature data in each third encrypted data passes verification, the control center determines that the regional gateway signature data in each third encrypted data is the true signature data, and then analyzes the regional aggregation ciphertext SAMDD in each third encrypted data by using a Paillier decryption system, SAMDD = ii BAMDDi mod N2=Ⅱ(Ⅱci,t mod N2)=Ⅱ(ⅡgMi,t·ri,t N mod N2) Wherein, let the scalar of the j-th dimension data summation of all users in the region i be AMi,j=∑di,t,jThe scalar quantity of the total dimension data sum of all users in the region i is AMi=∑Bj·AMi,jmod B, scalar of all user data AM = ∑ ai·AMi mod A,R=ⅡⅡri,tThen SAMDD = gAM·RN mod N2And determining corresponding aggregation results in each region according to the analysis results.
If at least one area gateway signature data exists in the area gateway signature data in each third encrypted data and the area gateway signature data does not pass the verification, the control center determines that at least one area gateway signature data exists in the area gateway signature data in each third encrypted data and is virtual signature data, determines the corresponding area gateway signature data which does not pass the verification through an error correction theory, then discriminates the error of the area gateway signature data which does not pass the verification, and then re-verifies the area gateway signature data until the area gateway signature data passes the verification.
Further, the step o includes:
step p, if the verification of the region gateway signature data is passed, obtaining private key parameters of system parameters in the intelligent power grid, analyzing the region aggregation ciphertext based on the private key parameters, and determining each dimension data scalar corresponding to each user in each region;
and q, inputting each dimension data scalar into a preset equation, and determining the aggregation result of the dimension data plaintext of each user in each region.
Specifically, if the local gateway signature data passes verification, the control center obtains private key parameters (λ, μ) of system parameters in the smart grid, and decrypts scalar quantities of all user data in the local aggregation ciphertext through the private key parameters (λ, μ) to obtain the AM1,AM2,...,AMsThen AMi,Bb,L,γ,n2,CγBbInputting the expression of the lost-pattern to obtain AMi,1,AMi,2,...,AMi,LAnd obtaining the aggregation result of the plaintext of the dimension data of each user in each area, wherein the obtained aggregation result is the plaintext data with a fine granularity, and determining the average electricity consumption data aggregated by the dimension data in each area according to the aggregation result.
In this embodiment, for example, AM, A is inputa,s,χ,n1,CχAaThe multidimensional data vector is output as (e) after passing through the equation of the lost graph1,e2,...,es)。
for i ←1 to s do
for j ←1 to s do
χj←xj -1 mod ai
end for
Y←AM mod ai;
ei←Y·(1-χ12-...-χn1)·(x11x12x1n2) mod ai;
end for
return (e1,e2,...,es)
In this embodiment, third encrypted data obtained by aggregating the second encrypted data by the regional gateway is received, and the regional gateway signature data in the third encrypted data is verified by a preset signature algorithm; and if the verification of the signature data of the regional gateway passes, analyzing a regional aggregation ciphertext in the third encrypted data based on a preset decryption algorithm, and determining corresponding aggregation results in each region. Therefore, in the embodiment, the region aggregation ciphertext in each third encrypted data is analyzed through the Paillier decryption system, then the aggregation result of the dimensional data plaintext of each user in each region is output through the FAN equation, in the process of outputting the aggregation result, the FAN equation needs to execute L + s, the total operation overhead is O(s) + O (L), and because L and s in the FAN equation can be ignored, the total operation overhead through the FAN equation is O (L), so that the operation of analyzing the multidimensional data is reduced, and the operation efficiency of the smart grid is improved.
Further, a third embodiment of the data aggregation method based on the smart grid is provided.
The second embodiment of the smart grid-based data aggregation method differs from the first embodiment of the smart grid-based data aggregation method or/and the second embodiment in that the smart grid-based data aggregation method further comprises:
and r, determining the number of users, the number of domain-level gateways and the number of area gateways in each area, and determining the optimal parameters in the intelligent power grid based on the aggregation result, the number of users, the number of domain-level gateways and the number of area gateways.
Specifically, the control center determines the actual number of users, the number of domain-level gateways and the number of area gateways in each area, and determines the corresponding optimized equation parameter of the loss-of-service graph as the Chinese remainder theorem parameter A according to the actual number of users in each aggregation domain and the specific range of each one-dimensional dataa=(a1,a2,...,as) Then determining the corresponding optimized loss according to the specific load of each aggregation domainThe parameters of the graph equation are used as the parameters B of the Chinese remainder theoremb=(b1,b2,...,bL)。
The optimal parameters in the intelligent power grid are determined by determining the number of users, the number of domain-level gateways and the number of area gateways in each area and based on the aggregation result, the number of users, the number of domain-level gateways and the number of area gateways. Therefore, in this embodiment, according to the actual number of users in each aggregation domain and the specific range of each one-dimensional data, the corresponding optimized missing graph equation parameter is determined as the chinese remainder theorem parameter aa=(a1,a2,...,as) Then, according to the specific load capacity of each aggregation domain, determining the corresponding optimized equation parameter of the loss-of-service graph as the Chinese remainder theorem parameter Bb=(b1,b2,...,bL) Therefore, the operation overhead of the smart grid is reduced, and the operation efficiency of the smart grid is improved.
In addition, the present invention also provides a data aggregation apparatus based on a smart grid, and referring to fig. 4, the data aggregation apparatus based on a smart grid includes:
the acquisition module 10 is used for acquiring user data based on a user terminal in the smart grid;
the processing module 20 is configured to perform multidimensional processing on the user data through corresponding chinese remainder theorem parameters and a loss-of-service graph equation;
a packing module 30, configured to pack the multidimensional processed user data based on the user terminal, and determine corresponding first encrypted data;
a receiving module 40, configured to receive, based on a domain-level gateway in the smart grid, first encrypted data sent by the user terminal;
a verification module 50 for verifying user signature data in the first encrypted data based on the domain-level gateway;
a determining module 60, configured to determine a corresponding domain-level aggregation ciphertext based on the first encrypted data;
the aggregation module 70 is configured to perform data aggregation on the domain-level aggregation ciphertext based on the domain-level gateway, and determine corresponding second encrypted data;
a sending module 80, configured to send the second encrypted data to a regional gateway of the smart grid based on the domain-level gateway;
the verification module 50 is further configured to verify domain-level gateway signature data in the second encrypted data based on the region gateway;
the determining module 60 is further configured to determine a corresponding region aggregation ciphertext based on the second encrypted data;
the aggregation module 70 is further configured to perform data aggregation on the region aggregation ciphertext based on the region gateway.
Further, the obtaining module 10 is further configured to obtain power consumption data corresponding to each user based on each user terminal at a preset interval period;
the processing module 20 is further configured to perform multidimensional processing on each power consumption data based on a loss-of-service graph equation and a first chinese remainder theorem parameter corresponding to each user terminal, and a second chinese remainder theorem parameter corresponding to each domain-level gateway, so as to determine corresponding integrated user data;
the determining module 60 is further configured to determine a corresponding user encrypted ciphertext based on each of the user terminals and each of the integrated user data;
the obtaining module 10 is further configured to obtain a corresponding first private key parameter based on each user terminal;
the determining module 60 is further configured to determine corresponding user signature data based on each of the integrated user data, the user encrypted ciphertext, and the first private key parameter;
the packaging module 30 is further configured to package each user signature data based on each user terminal, and determine the first encrypted data;
the determining module 60 is further configured to determine each first chinese remainder theorem parameter corresponding to each user terminal based on the loss-of-service graph equation of each user terminal.
Further, the processing module 20 includes:
and the calculating unit is used for multiplying and adding each power utilization data and the corresponding first Chinese remainder theorem parameter based on each user terminal to determine the multidimensional user data corresponding to the power utilization data.
Further, the obtaining module 10 is further configured to obtain, based on each user terminal, a second chinese remainder theorem parameter of each corresponding domain-level gateway;
the computing unit is further configured to multiply each piece of the multi-dimensional user data with each corresponding second Chinese remainder theorem parameter based on each user terminal, and determine integrated user data corresponding to the power consumption data.
Further, the verification module 50 is further configured to verify domain-level gateway signature data in the second encrypted data based on a preset signature algorithm in the regional gateway.
The aggregation module 70 is further configured to aggregate, based on the region gateway, the domain-level aggregation ciphertext in the second encrypted data into a region aggregation ciphertext if the domain-level gateway signature data passes verification;
the obtaining module 10 is further configured to obtain a corresponding second private key parameter based on the region gateway;
the determining module 60 is further configured to determine corresponding region gateway signature data based on the region gateway, the region aggregation ciphertext, and the second private key parameter;
the aggregation module 70 is further configured to perform data aggregation on each of the region aggregation ciphertexts based on the region gateway and the region gateway signature data;
the verification module 50 is further configured to verify user signature data in the first encrypted data based on a preset signature algorithm in the domain-level gateway.
The aggregation module 70 is further configured to aggregate, based on the domain-level gateway, the user encrypted ciphertext in the first encrypted data into a domain-level aggregated ciphertext if the user signature data passes verification;
the obtaining module 10 is further configured to obtain a corresponding third private key parameter based on the domain-level gateway;
the determining module 60 is further configured to determine corresponding domain-level gateway signature data based on the domain-level gateway, the domain-level aggregation ciphertext, and the third private key parameter;
the packing module 30 is further configured to pack the domain-level aggregation ciphertext based on the domain-level gateway and the domain-level gateway signature data, and determine the second encrypted data;
the determination module 60 is further configured to determine a security parameter in the smart grid.
Further, the smart grid-based data aggregation apparatus further includes:
the generating module is used for generating a corresponding bilinear library based on the security parameters;
the obtaining module 10 is further configured to obtain a preset number of target security parameters from the security parameters;
the determining module 60 is further configured to determine system parameters corresponding to the smart grid based on the target security parameters and the bilinear library, where the system parameters include public key parameters and private key parameters;
the obtaining module 10 is further configured to obtain a first preset parameter corresponding to the user terminal, a second preset parameter corresponding to the regional gateway, and a third preset parameter corresponding to the domain-level gateway;
the determining module 60 is further configured to determine a first private key parameter corresponding to the user terminal based on the first preset parameter, determine a second private key parameter corresponding to the area gateway based on the second preset parameter, and determine a third private key parameter corresponding to the domain-level gateway based on the third preset parameter.
Further, the receiving module 40 is further configured to receive third encrypted data obtained by aggregating the second encrypted data by the regional gateway;
the verification module 50 is further configured to verify the regional gateway signature data in the third encrypted data through the preset signature algorithm.
Further, the smart grid-based data aggregation apparatus further includes:
and the analysis module is used for analyzing the region aggregation ciphertext in the third encrypted data based on a preset decryption algorithm and determining a corresponding aggregation result in each region if the region gateway signature data passes verification.
Further, the obtaining module 10 is further configured to obtain a private key parameter of a system parameter in the smart grid if the verification of the regional gateway signature data is passed;
the analysis module is further configured to analyze the region aggregation ciphertext based on the private key parameter, and determine each dimensional data scalar corresponding to each user in each region.
Further, the analysis module further comprises:
and the input unit is used for inputting the scalar of each dimension data into a preset equation and determining the aggregation result of the plaintext of the dimension data of each user in each region.
The specific implementation of the data aggregation device based on the smart grid is basically the same as that of the data aggregation method based on the smart grid, and the detailed description is omitted here.
In addition, the invention also provides a data aggregation system based on the smart power grid. As shown in fig. 5, fig. 5 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 5 is a schematic structural diagram of a hardware operating environment of the data aggregation system based on the smart grid.
As shown in fig. 5, the smart grid-based data aggregation system may include: a processor 1001, such as a CPU (Central Processing Unit), a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002. A communication bus 1002 is used to enable connection communications between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a keyboard (board), and the optional user interface 1003 may include a standard wired interface (e.g., a USB (Universal Serial Bus) interface), and a wireless interface (e.g., a bluetooth interface). The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the smart grid-based data aggregation system may further include RF (Radio Frequency) circuits, sensors, WiFi modules, and the like.
Those skilled in the art will appreciate that the smart grid-based data aggregation system architecture illustrated in fig. 5 does not constitute a limitation of the smart grid-based data aggregation system and may include more or fewer components than illustrated, or combine certain components, or a different arrangement of components.
As shown in fig. 5, a memory 1005, which is a kind of computer storage medium, may include therein an operating device, a network communication module, a user interface module, and a smart grid-based data aggregation program. The operating device is a program for managing and controlling hardware and software resources of the data aggregation system based on the smart grid, and supports the operation of the data aggregation program based on the smart grid and other software or programs.
In the data aggregation system based on the smart grid shown in the figure, the user interface 1003 is mainly used for a user terminal, communicates with the control center and the domain-level gateway, and allows a user to send user data to the user terminal; the network interface 1004 is mainly used for the control center to perform data communication with the domain-level gateway, the regional gateway, and the user terminal; the processor 1001 may be configured to call the smart grid-based data aggregation program stored in the memory 1005 and complete the steps of the control method of the smart grid-based data aggregation system as described above.
The specific implementation of the data aggregation system based on the smart grid is basically the same as that of the data aggregation method based on the smart grid, and is not described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a data aggregation program based on a smart grid is stored on the computer-readable storage medium, and when the data aggregation program based on the smart grid is completed by a processor, the steps of the data aggregation method based on the smart grid are implemented.
The specific implementation manner of the computer-readable storage medium of the present invention is substantially the same as that of each embodiment of the data aggregation method based on the smart grid, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation manner in many cases. Based on such understanding, the technical solution of the present invention may be embodied in the form of software goods, which are stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk), and include instructions for enabling a data aggregation system based on a smart grid to perform the method according to the embodiments of the present invention.

Claims (8)

1. A data aggregation method based on a smart grid is characterized by comprising the following steps:
acquiring user data based on a user terminal in an intelligent power grid, carrying out multi-dimensional processing on the user data through corresponding Chinese remainder theorem parameters and a loss-of-image equation, packaging the multi-dimensional processed user data based on the user terminal, and determining corresponding first encrypted data;
the method comprises the following steps of obtaining user data based on a user terminal in the smart grid, carrying out multi-dimensional processing on the user data through corresponding Chinese remainder theorem parameters and a loss-of-service graph equation, packaging the user data after the multi-dimensional processing based on the user terminal, and determining corresponding first encrypted data, wherein the steps comprise:
acquiring power consumption data corresponding to each user based on each user terminal at intervals of a preset period, performing multi-dimensional processing on each power consumption data based on a loss map equation and first Chinese remainder theorem parameters corresponding to each user terminal and second Chinese remainder theorem parameters corresponding to each domain-level gateway, and determining corresponding integrated user data;
determining corresponding user encrypted ciphertext based on each user terminal and each integrated user data, acquiring corresponding first private key parameters based on each user terminal, and determining corresponding user signature data based on each integrated user data, the user encrypted ciphertext and the first private key parameters;
packaging each user encrypted ciphertext based on each user terminal and the user signature data to determine first encrypted data;
the step of performing multidimensional processing on each power utilization data based on the corresponding loss-of-service graph equation and the first Chinese remainder theorem parameter of each user terminal and the corresponding second Chinese remainder theorem parameter of each domain-level gateway, and determining corresponding integrated user data comprises the following steps of:
determining each first Chinese remainder theorem parameter corresponding to each user terminal based on a loss-of-service graph equation of each user terminal, multiplying and adding each power utilization data and the corresponding first Chinese remainder theorem parameter based on each user terminal, and determining multidimensional user data corresponding to the power utilization data;
acquiring second China remaining theorem parameters of each corresponding domain-level gateway based on each user terminal, and multiplying each multi-dimensional user data by each corresponding second China remaining theorem parameter based on each user terminal to determine integrated user data corresponding to the power utilization data;
receiving first encrypted data sent by the user terminal based on a domain-level gateway in the smart grid, verifying user signature data in the first encrypted data based on the domain-level gateway, determining a corresponding domain-level aggregation ciphertext based on the first encrypted data, performing data aggregation on the domain-level aggregation ciphertext based on the domain-level gateway, and determining corresponding second encrypted data;
and sending the second encrypted data to a region gateway of the smart grid based on the domain-level gateway, verifying domain-level gateway signature data in the second encrypted data based on the region gateway, determining a corresponding region aggregation ciphertext based on the second encrypted data, and performing data aggregation on the region aggregation ciphertext based on the region gateway.
2. The smart grid-based data aggregation method according to claim 1, wherein the step of verifying domain-level gateway signature data in the second encrypted data based on the region gateway and determining a corresponding region aggregation ciphertext based on the second encrypted data, and performing data aggregation on the region aggregation ciphertext based on the region gateway comprises:
verifying domain-level gateway signature data in the second encrypted data based on a preset signature algorithm in the regional gateway;
if the domain-level gateway signature data passes the verification, aggregating the domain-level aggregation ciphertext in the second encrypted data into a region aggregation ciphertext based on the region gateway, and acquiring a corresponding second private key parameter based on the region gateway;
and determining corresponding region gateway signature data based on the region gateway, the region aggregation ciphertext and the second private key parameter, and performing data aggregation on each region aggregation ciphertext based on the region gateway and the region gateway signature data.
3. The smart grid-based data aggregation method as claimed in claim 1, wherein the step of verifying the user signature data in the first encrypted data based on the domain-level gateway and determining a corresponding domain-level aggregation ciphertext based on the first encrypted data, and performing data aggregation on the domain-level aggregation ciphertext based on the domain-level gateway, and the step of determining the corresponding second encrypted data comprises:
verifying user signature data in the first encrypted data based on a preset signature algorithm in the domain-level gateway;
if the user signature data passes the verification, aggregating user encrypted ciphertext in the first encrypted data into a domain-level aggregated ciphertext based on the domain-level gateway, and acquiring a corresponding third private key parameter based on the domain-level gateway;
and determining corresponding domain-level gateway signature data based on the domain-level gateway, the domain-level aggregation ciphertext and the third private key parameter, packaging the domain-level aggregation ciphertext based on the domain-level gateway and the domain-level gateway signature data, and determining the second encrypted data.
4. The smart grid-based data aggregation method according to claim 1, wherein before the step of obtaining user data and performing multidimensional processing on the user data through corresponding chinese remainder theorem parameters and a loss-of-use graph equation by the user terminal in the smart grid, and packing the multidimensional processed user data and determining corresponding first encrypted data by the user terminal, the method further comprises:
determining security parameters in the smart grid, generating a corresponding bilinear library based on the security parameters, acquiring a preset number of target security parameters from the security parameters, and determining system parameters corresponding to the smart grid based on the target security parameters and the bilinear library, wherein the system parameters comprise public key parameters and private key parameters;
the method comprises the steps of obtaining a first preset parameter corresponding to the user terminal, a second preset parameter corresponding to the regional gateway and a third preset parameter corresponding to the domain-level gateway, determining a first private key parameter corresponding to the user terminal based on the first preset parameter, determining a second private key parameter corresponding to the regional gateway based on the second preset parameter, and determining a third private key parameter corresponding to the domain-level gateway based on the third preset parameter.
5. The smart grid-based data aggregation method according to any one of claims 1 to 4, wherein after the steps of sending the second encrypted data to the regional gateway of the smart grid based on the domain-level gateway, verifying domain-level gateway signature data in the second encrypted data based on the regional gateway, determining a corresponding regional aggregation ciphertext based on the second encrypted data, and performing data aggregation on the regional aggregation ciphertext based on the regional gateway, the method further comprises:
receiving third encrypted data obtained by aggregating the second encrypted data by the regional gateway, and verifying regional gateway signature data in the third encrypted data through a preset signature algorithm;
and if the verification of the region gateway signature data is passed, analyzing a region aggregation ciphertext in the third encrypted data based on a preset decryption algorithm, and determining corresponding aggregation results in each region.
6. The smart grid-based data aggregation method according to claim 5, wherein the step of analyzing the region aggregation ciphertext in the third encrypted data based on a preset decryption algorithm and determining the corresponding aggregation result in each region if the region gateway signature data passes verification comprises:
if the verification of the region gateway signature data is passed, obtaining private key parameters of system parameters in the smart grid, analyzing the region aggregation ciphertext based on the private key parameters, and determining each dimension data scalar corresponding to each user in each region;
and inputting each dimension data scalar into a preset equation, and determining the aggregation result of the dimension data plaintext of each user in each region.
7. A smart grid-based data aggregation system comprising a memory, a processor, and a smart grid-based data aggregation program stored on the memory and running on the processor, the smart grid-based data aggregation program when completed by the processor implementing the steps of the smart grid-based data aggregation method of any one of claims 1 to 6.
8. A computer-readable storage medium, having a smart grid-based data aggregation program stored thereon, which when executed by a processor implements the steps of the smart grid-based data aggregation method of any of claims 1 to 6.
CN202011058794.9A 2020-09-30 2020-09-30 Data aggregation method and system based on smart power grid and storage medium Active CN111897892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011058794.9A CN111897892B (en) 2020-09-30 2020-09-30 Data aggregation method and system based on smart power grid and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011058794.9A CN111897892B (en) 2020-09-30 2020-09-30 Data aggregation method and system based on smart power grid and storage medium

Publications (2)

Publication Number Publication Date
CN111897892A CN111897892A (en) 2020-11-06
CN111897892B true CN111897892B (en) 2021-01-12

Family

ID=73224100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011058794.9A Active CN111897892B (en) 2020-09-30 2020-09-30 Data aggregation method and system based on smart power grid and storage medium

Country Status (1)

Country Link
CN (1) CN111897892B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143374B (en) * 2021-11-29 2024-09-27 重庆冲程科技有限公司 Collecting gateway multi-monitoring-point data aggregation reporting method
CN115022066B (en) * 2022-06-16 2024-05-10 浙江中烟工业有限责任公司 Key data protection method based on firewall
CN115941364A (en) * 2023-03-13 2023-04-07 广东电网有限责任公司 Asset data management method and system based on smart power grid
CN116436703B (en) * 2023-06-13 2023-09-19 广东电网有限责任公司 Financial privacy data management method and system based on smart grid

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488340A (en) * 2015-11-26 2016-04-13 国网智能电网研究院 High efficiency data aggregation method in smart power grid based on multidimensional data
CN105844172A (en) * 2016-03-22 2016-08-10 湖北工业大学 Multi-community multi-dimensional user electric quantity clustering system and method with privacy protection
CN110110537A (en) * 2019-05-08 2019-08-09 西安电子科技大学 The polymerization of multidimensional data encryption and decryption in smart grid

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014149154A1 (en) * 2013-03-15 2014-09-25 Battelle Memorial Institute Multi-domain situational awareness for infrastructure monitoring
CN105812128B (en) * 2016-03-09 2018-11-13 湖北工业大学 A kind of anti-malicious data of intelligent grid excavates the data aggregation method of attack

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488340A (en) * 2015-11-26 2016-04-13 国网智能电网研究院 High efficiency data aggregation method in smart power grid based on multidimensional data
CN105844172A (en) * 2016-03-22 2016-08-10 湖北工业大学 Multi-community multi-dimensional user electric quantity clustering system and method with privacy protection
CN110110537A (en) * 2019-05-08 2019-08-09 西安电子科技大学 The polymerization of multidimensional data encryption and decryption in smart grid

Also Published As

Publication number Publication date
CN111897892A (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN111897892B (en) Data aggregation method and system based on smart power grid and storage medium
CN113452719B (en) Application login method and device, terminal equipment and storage medium
KR101575030B1 (en) Method of multi-signature generation for shared data in the cloud
CN112291190B (en) Identity authentication method, terminal and server
CN109104279B (en) Encryption method and system for electric power data and terminal equipment
US7363492B2 (en) Method for zero-knowledge authentication of a prover by a verifier providing a user-selectable confidence level and associated application devices
CN109194625B (en) Client application protection method and device based on cloud server and storage medium
US20150358167A1 (en) Certificateless Multi-Proxy Signature Method and Apparatus
CN113301114B (en) Block chain consensus node selection method and device, computer equipment and storage medium
CN101931529A (en) Data encryption method, data decryption method and nodes
JP2012506191A (en) Method for generating encryption key, network and computer program
CN113709115B (en) Authentication method and device
CN112291191A (en) Lightweight privacy protection multidimensional data aggregation method based on edge calculation
CN113194015A (en) Internet of things intelligent household equipment safety control method and system
CN112100688A (en) Data verification method, device, equipment and storage medium
CN118070338A (en) Smart grid-oriented privacy aggregation method, system, equipment and medium
EP2744148B1 (en) Information processing device, signature-provision method, signature-verification method, program, and recording medium
CN113364595A (en) Power grid private data signature aggregation method and device and computer equipment
CN115694822A (en) Zero-knowledge proof-based verification method, device, system, equipment and medium
CN109981295B (en) Method for realizing limited anonymity under intelligent power grid environment
CN116684102A (en) Message transmission method, message verification method, device, equipment, medium and product
CN113726504A (en) Power data signature aggregation method and system
CN113256886B (en) Smart grid power consumption statistics and charging system and method with privacy protection function
CN115242412A (en) Certificateless aggregation signature method and electronic equipment
CN112784314B (en) Data integrity detection method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant