CN112560097B - Storage management method and device for power business data - Google Patents

Storage management method and device for power business data Download PDF

Info

Publication number
CN112560097B
CN112560097B CN202011531263.7A CN202011531263A CN112560097B CN 112560097 B CN112560097 B CN 112560097B CN 202011531263 A CN202011531263 A CN 202011531263A CN 112560097 B CN112560097 B CN 112560097B
Authority
CN
China
Prior art keywords
data
service data
node
management node
service
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
CN202011531263.7A
Other languages
Chinese (zh)
Other versions
CN112560097A (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.)
Guangzhou Jixiang Technology Co Ltd
Original Assignee
Guangzhou Jixiang Technology Co Ltd
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 Guangzhou Jixiang Technology Co Ltd filed Critical Guangzhou Jixiang Technology Co Ltd
Priority to CN202011531263.7A priority Critical patent/CN112560097B/en
Publication of CN112560097A publication Critical patent/CN112560097A/en
Application granted granted Critical
Publication of CN112560097B publication Critical patent/CN112560097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • 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/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2151Time stamp
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/35Utilities, e.g. electricity, gas or water
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • G16Y30/10Security thereof
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/50Safety; Security of things, users, data or systems

Abstract

The embodiment of the application discloses a storage management method and device for power business data. According to the technical scheme provided by the embodiment of the application, the service data is divided into a plurality of service data packets which are mutually redundant, and if the storage attribute of the service data is a public attribute, the service data packets are directly stored in a distributed mode to all public nodes; if the storage attribute of the service data is a private attribute, encrypting a service data packet by using a data encryption key, adding a data tag to the service data packet, and storing the service data packet to each private node in a distributed manner; when the data management node extracts the service data, the data management node directly obtains the service data packet from the public node or obtains the service data packet of the private node after the identity consensus verification. By adopting the technical means, the data management efficiency can be guaranteed, meanwhile, the data storage safety is improved in a self-adapting mode, and the business data management of the power Internet of things is optimized.

Description

Storage management method and device for power business data
Technical Field
The embodiment of the application relates to the technical field of power internet of things, in particular to a storage management method and device for power business data.
Background
At present, with the development of the internet of things technology, the more power systems originally introduce the internet of things technology to construct a power internet of things system so as to provide more convenient and flexible power operation management. The electric power internet of things is an intelligent service system which is characterized in that modern information technologies such as mobile interconnection, artificial intelligence and the like and advanced communication technologies are fully applied around all links of an electric power system, all things interconnection and man-machine interaction of all links of the electric power system are achieved, and the intelligent service system has the advantages of comprehensive state sensing, efficient information processing and convenient and flexible application. In the power internet of things, automatic collection of user power consumption data is generally realized through an intelligent electric meter, and the collected power consumption data is uploaded to a background server to perform system services such as data management and the like.
However, the mode of the existing power internet of things for storing and managing power consumption data is single, and better safety management is lacked.
Disclosure of Invention
The embodiment of the application provides a storage management method and device for power business data, which can guarantee data management efficiency, improve data storage safety adaptively and optimize business data management of a power internet of things.
In a first aspect, an embodiment of the present application provides a method for storing and managing power service data, including:
a third party is appointed to send a data label to a corresponding intelligent electric meter and a data management node in advance, the data management node sends a data encryption key to the intelligent electric meter in advance, and a corresponding data decryption key is reserved;
the method comprises the steps that an intelligent electric meter determines storage attributes of service data based on the data type of the current service data, the storage attributes comprise public attributes and private attributes, the service data are divided into a plurality of service data packets which are mutually redundant, and if the storage attributes of the service data are the public attributes, the service data packets are directly stored to all public nodes in a distributed mode; if the storage attribute of the service data is a private attribute, encrypting the service data packet by using the data encryption key, adding the data tag to the service data packet, and storing the service data packet to each private node in a distributed manner; the service data packet also comprises identification information of the intelligent ammeter and timestamp information corresponding to the service data;
when the data management node extracts the service data, the data management node sends a first data request to each public node, the first data request comprises the identification information and the timestamp information corresponding to the service data, and each public node responds to the first data request and returns a corresponding service data packet to the data management node; the data management node sends a second data request to each private node, the second data request comprises the data label, the identification information and the timestamp information corresponding to the service data, each private node responds to the data request to extract the corresponding service data packet, based on the comparison of the data label contained in the service data packet with the data label of the second data request, the identity of the data management node is subjected to common identification verification, whether the identity of the data management node is legal or not is judged, and if the identity of the data management node is judged to be legal, each private node returns the corresponding service data packet to the data management node.
Further, after a third party is appointed to send a data tag to a corresponding smart meter and a corresponding data management node in advance, and the data management node sends a data encryption key to the smart meter in advance and reserves a corresponding data decryption key, the method further includes:
and the appointed third party updates the data tags to the corresponding intelligent electric meter and the data management node every other tag management period.
Further, after a third party is appointed to send a data tag to a corresponding smart meter and a corresponding data management node in advance, and the data management node sends a data encryption key to the smart meter in advance and reserves a corresponding data decryption key, the method further includes:
and the data management node updates the data encryption key to the corresponding intelligent electric meter every other key management period, and reserves a corresponding data decryption key.
Further, before the smart meter determines the storage attribute of the service data based on the data type of the current service data, the method further includes:
the data management node pre-constructs a mapping relation between each data type and the corresponding storage attribute, and issues the mapping relation to the intelligent electric meter;
correspondingly, the smart meter determines the storage attribute of the service data based on the data type of the current service data, and the method comprises the following steps:
and the intelligent electric meter inquires the mapping relation based on the data type of the service data and determines the storage attribute of the service data.
Further, after the data management node pre-constructs a mapping relationship between each data type and the corresponding storage attribute, and issues the mapping relationship to the smart meter, the method further includes:
and the data management node modifies the corresponding mapping relation according to the storage requirement of real-time service data, and updates the corresponding mapping relation to the intelligent electric meter.
Further, comparing the data tag included in the service data packet with the data tag of the second data request, performing consensus verification on the identity of the data management node, and determining whether the identity of the data management node is legal, includes:
each private node compares the data label of the second data request according to the data label, verifies the identity of the data management node according to the comparison result, generates a first identity verification result, summarizes the first identity verification result to a designated common identification node, and the common identification node is selected from a plurality of private nodes in advance;
and the consensus node generates a consensus verification result based on each first identity verification result, and determines whether the identity of the data management node is legal or not based on the consensus verification result.
Further, after each public node returns a corresponding service data packet to the data management node in response to the first data request, the method further includes:
the data management node analyzes the service data packet, screens out mutually redundant data and restores the service data;
or, after each private node returns the corresponding service data packet to the data management node, the method further includes:
and the data management node decrypts the service data packet by using the reserved data decryption key, screens out mutually redundant data and restores the service data.
In a second aspect, an embodiment of the present application provides a storage management apparatus for power service data, including:
the data management node sends a data encryption key to the intelligent electric meter in advance and reserves a corresponding data decryption key;
the storage module is used for determining the storage attribute of the service data based on the data type of the current service data through an intelligent electric meter, wherein the storage attribute comprises a public attribute and a private attribute, the service data is divided into a plurality of service data packets which are mutually redundant, and if the storage attribute of the service data is the public attribute, the service data packets are directly stored to each public node in a distributed manner; if the storage attribute of the service data is a private attribute, encrypting the service data packet by using the data encryption key, adding the data tag to the service data packet, and storing the service data packet to each private node in a distributed manner; the service data packet also comprises identification information of the intelligent ammeter and timestamp information corresponding to the service data;
an extraction module, configured to, when a data management node extracts the service data, send, by the data management node, a first data request to each public node, where the first data request includes the identification information and the timestamp information corresponding to the service data, and each public node returns a corresponding service data packet to the data management node in response to the first data request; the data management node sends a second data request to each private node, the second data request comprises the data label, the identification information and the timestamp information corresponding to the service data, each private node responds to the data request to extract the corresponding service data packet, based on the comparison of the data label contained in the service data packet with the data label of the second data request, the identity of the data management node is subjected to common identification verification, whether the identity of the data management node is legal or not is judged, and if the identity of the data management node is judged to be legal, each private node returns the corresponding service data packet to the data management node.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the storage management method for power business data according to the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the storage management method for power service data according to the first aspect.
In the embodiment of the application, a third party is appointed to send a data tag to the corresponding intelligent electric meter and the corresponding data management node in advance, the data management node sends a data encryption key to the intelligent electric meter in advance, and a corresponding data decryption key is reserved; the intelligent electric meter determines the storage attribute of the service data based on the data type of the current service data, the storage attribute comprises a public attribute and a private attribute, the service data is divided into a plurality of service data packets which are redundant mutually, and if the storage attribute of the service data is the public attribute, the service data packets are directly stored to each public node in a distributed mode; if the storage attribute of the service data is a private attribute, encrypting the service data packet by using the data encryption key, adding a data tag to the service data packet, and storing the service data packet to each private node in a distributed manner; the service data packet also comprises identification information of the intelligent ammeter and timestamp information of corresponding service data; when the data management node extracts the service data, the data management node sends a first data request to each public node, the first data request comprises identification information and timestamp information of the corresponding service data, and each public node responds to the first data request and returns a corresponding service data packet to the data management node; the data management node sends a second data request to each private node, the second data request comprises a data label, identification information and timestamp information of corresponding service data, each private node responds to the data request to extract a corresponding service data packet, the data label of the second data request is compared based on the data label contained in the service data packet, the identity of the data management node is subjected to common identification verification, whether the identity of the data management node is legal or not is judged, and if the identity of the data management node is judged to be legal, each private node returns the corresponding service data packet to the data management node. By adopting the technical means, the data management efficiency can be guaranteed, meanwhile, the data storage safety is improved in an adaptive mode, and the business data management of the power internet of things is optimized.
Drawings
Fig. 1 is a flowchart of a storage management method for power service data according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electric power internet of things in the first embodiment of the present application;
FIG. 3 is a flowchart illustrating consensus verification in accordance with an embodiment of the present application;
fig. 4 is a flowchart of a business data storage and extraction process in the first embodiment of the present application;
fig. 5 is a schematic structural diagram of a storage management device for power service data according to a second embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The first embodiment is as follows:
fig. 1 is a flowchart of a method for storing and managing power service data according to an embodiment of the present disclosure, where the method for storing and managing power service data provided in this embodiment may be executed by a storage management device for power service data, the storage management device for power service data may be implemented in a software and/or hardware manner, and the storage management device for power service data may be formed by two or more physical entities or may be formed by one physical entity. Generally, the storage management device of the power business data can be a power internet of things system.
The following description will be given taking a storage management device of power service data as an example of a main body that performs a storage management method of power service data. Referring to fig. 1, the method for storing and managing power service data specifically includes:
s110, appointing a third party to send a data label to a corresponding intelligent electric meter and a data management node in advance, sending a data encryption key to the intelligent electric meter in advance by the data management node, and reserving a corresponding data decryption key.
The storage management method for the power service data aims to select the corresponding service data storage mode according to the data type of the service data, so that the safety of service data storage and extraction is improved adaptively, the efficiency of data extraction is guaranteed, and the operation of the power internet of things is optimized.
Specifically, referring to fig. 2, in the electric power internet of things system, each smart meter 11 is in signal connection with a public node 12 and a private node 13, respectively, and is used for storing service data of the smart meter 11. The public nodes 12 and the private nodes 13 are provided in a plurality, and when the smart meter 11 stores the service data, the service data is stored to the plurality of public nodes 12 or the plurality of private nodes 13 according to the data type of the service data, so that the service data is stored. Correspondingly, the data management node 14 is in signal connection with the public node 12 and the private node 13, and is used for extracting service data stored in the public node 12 and the private node 13 to perform processing on related services of the power internet of things. The intelligent electric meter 11 is arranged corresponding to each power consumption unit, and collects and stores relevant service data generated in the household power consumption process. The public node 12 and the private node 13 are used for storing service data corresponding to the storage attribute, the public node 12 stores the service data of the public attribute, and the private node 13 stores the service data of the private attribute. The public node 12 can directly return corresponding service data according to the data request of the data management node 14 without verifying the identity of the data management node, so that the data management node can rapidly extract related service data for service processing, the processing efficiency of the service data is improved, and the operation of the electric power internet of things system is optimized. The private node 13 verifies the validity of the data management node identity according to the data request of the data management node 14, so as to ensure the security of the data extraction process and avoid the situation that the service data is stolen by an illegal node. And one end of the corresponding data management node performs related service processing according to the extracted service data so as to realize service operation processing of the power Internet of things system. In addition, the electric power internet of things system further comprises a trusted designated third party 15, the designated third party 15 is used as a server for generating data labels, the data labels are used for generating the data labels of the intelligent electric meters, the data labels are respectively sent to the intelligent electric meters 11 and the data management node 14, and the intelligent electric meters 11 are added to correspondingly add the data labels when business data are stored in the private nodes. Correspondingly, when the data management node 14 requests the private node for the service data, the data tag also needs to be attached to the request information, so that the private node can determine the validity of the data management node based on the data tag comparison, thereby ensuring the security of the data extraction process. In addition, in order to further improve the security of data storage and extraction, the data management node 14 configures a data encryption key for the smart meter 11, wherein the data encryption key is used for encrypting the service data stored in the private node 13. The data management node 14 reserves a corresponding data decryption key to facilitate decryption of the traffic data extracted from the private node 13. The data is stored by encrypting the data, so that the difficulty of stealing the data can be increased, and the safety of data storage and extraction is further improved.
In one embodiment, a third party is designated to send a data tag to a corresponding smart meter and a data management node in advance, the data management node sends a data encryption key to the smart meter in advance, and after a corresponding data decryption key is reserved, the data management node updates the data encryption key to the corresponding smart meter every other key management period, and reserves the corresponding data decryption key. It can be understood that, by periodically updating the data encryption key and the data decryption key, the situation that the data encryption key and the data decryption key are easily broken, which causes the stealing and the leakage of the service data can be avoided. Therefore, the difficulty of stealing the service data is increased, the safety of data storage and extraction is improved, and the operation of the power internet of things is optimized.
In one embodiment, a third party is designated to send data tags to corresponding smart meters and data management nodes in advance, the data management nodes send data encryption keys to the smart meters in advance, and after corresponding data decryption keys are reserved, the third party is designated to update the data tags to the corresponding smart meters and the data management nodes every other tag management period. Similarly, in order to avoid that the data tag is cracked and forged, so that an illegal node can easily acquire service data stored by a private node, the embodiment of the application designates a third party to periodically update the data tag to the intelligent electric meter and the data management node, thereby increasing the difficulty of stealing the service data, improving the safety of data storage and extraction, and optimizing the operation of the power internet of things.
S120, the intelligent electric meter determines storage attributes of the service data based on the data type of the current service data, wherein the storage attributes comprise public attributes and private attributes, the service data are divided into a plurality of service data packets which are redundant mutually, and if the storage attributes of the service data are the public attributes, the service data packets are directly stored to all public nodes in a distributed mode; if the storage attribute of the service data is a private attribute, encrypting the service data packet by using the data encryption key, adding the data tag to the service data packet, and storing the service data packet to each private node in a distributed manner; the service data packet further comprises identification information of the intelligent ammeter and timestamp information corresponding to the service data.
Further, when the service data is stored, the smart meter determines the storage attribute of the current service data based on the data type of the service data. The storage attribute identifies the location where the service data needs to be stored. If the storage attribute of the current service data is a public attribute, the service data needs to be stored to a public node; and if the storage attribute of the current service data is a private attribute, the service data needs to be stored to a private node. It can be understood that the smart meter generates a lot of service data during the daily operation. The data types of the service data comprise user identity information, a home address, power consumption data, an electric meter operation log, safety monitoring data and the like, wherein part of the service data related to user privacy, such as the user identity information, the home address, the power consumption data and the like, is private, and in order to avoid data leakage and data stealing caused by network attack on the part of the service data, the part of the service data needs to be stored in a private node. And for part of service data with lower security requirements, the service data can be directly stored in the public node, and the subsequent data management node can directly extract the data when extracting the data, so that the efficiency of extracting and processing the part of service data is improved, and the processing efficiency of related services is optimized.
Before that, the data management node pre-constructs a mapping relation between each data type and the corresponding storage attribute, and issues the mapping relation to the intelligent electric meter; correspondingly, when the intelligent electric meter determines the storage attribute of the service data based on the data type of the current service data, the intelligent electric meter queries the mapping relation based on the data type of the service data to determine the storage attribute of the service data. And the data management node manages the storage attribute to which each data type belongs through the mapping relation, and configures the private attribute for each data type if the security requirement is high and the data needs to be stored in the private node according to the actual storage requirement of the service data of each data type. On the contrary, if the requirement on the safety of the data type service data is not high, in order to facilitate the subsequent efficient extraction and processing of the part of service data, the part of service data needs to be stored to the public node, and then the public attribute is configured for the data type.
In one embodiment, the data management node modifies the corresponding mapping relation according to a real-time service data storage requirement, and updates the corresponding mapping relation to the smart meter. It can be understood that, according to the real-time service data storage requirement, if the storage attribute of the service data of a certain data type needs to be changed from the private attribute to the public attribute, or from the public attribute to the private attribute, the data management node modifies the storage attribute in the corresponding mapping relationship and updates the modified mapping relationship to the corresponding smart meter, thereby completing the modification of the storage attribute of the service data of the corresponding data type. Furthermore, in the embodiment of the application, after the storage attribute of the corresponding data type service data is modified, the corresponding data type service data stored in the original node is migrated to the storage node, and the part of service data is migrated according to the updated storage attribute, so that the service data stored in the corresponding storage node meets the real-time data storage requirement.
Furthermore, after the storage attribute of the service data is determined, the service data can be correspondingly stored to the public node or the private node according to the storage attribute of the service data. The public nodes and the private nodes are arranged in a plurality, and the service data are stored in a distributed mode through the public nodes or the private nodes, so that the fault tolerance of service data storage can be improved, the conditions that data are easy to steal and lose due to single node storage are avoided, and the safety of service data storage is guaranteed.
Specifically, the smart meter splits the current service data into a plurality of service data packets, each data packet includes part of service data, and each service data packet further includes mutually redundant part of service data, so as to further improve the fault tolerance of service data storage. It can be understood that, by redundantly backing up part of the service data through each service data packet, even if the service data of one storage node is lost or the storage node is failed, the service data packets of the other storage nodes can be extracted, and the complete service data can be restored through the redundantly backed up service data.
After the intelligent electric meter splits the service data into a plurality of service data packets, each service data packet is further stored to each public node or private node according to the storage attribute of the service data. It should be noted that each service data packet needs to include identification information of the smart meter and timestamp information of the service data. And the subsequent data management node can conveniently inquire and extract the service data according to the corresponding identification information and the timestamp information. And if the storage attribute of the service data is a private attribute, encrypting the service data packet by using the data encryption key, adding the data tag to the service data packet, and storing the service data packet to each private node in a distributed manner. It can be understood that, in order to ensure the security of data storage and extraction and avoid an illegal node from obtaining service data and stealing user privacy information, when the service data packet is stored in each private node, the smart meter encrypts the service data packet by using the encryption key issued in advance in step S110, and adds a data tag issued in advance to the service data packet, so as to facilitate the subsequent data tag comparison and verification to determine whether the identity of the node requesting the service data is legal, thereby improving the security of the data storage and extraction process.
S130, when the data management node extracts the service data, the data management node sends a first data request to each public node, where the first data request includes the identification information and the timestamp information corresponding to the service data, and each public node returns a corresponding service data packet to the data management node in response to the first data request; the data management node sends a second data request to each private node, the second data request comprises the data label, the identification information and the timestamp information corresponding to the service data, each private node responds to the data request to extract the corresponding service data packet, based on the comparison of the data label contained in the service data packet with the data label of the second data request, the identity of the data management node is subjected to common identification verification, whether the identity of the data management node is legal or not is judged, and if the identity of the data management node is judged to be legal, each private node returns the corresponding service data packet to the data management node.
After the storage of the service data is completed, when the data management node needs to extract the corresponding service data, the data management node sends a data request to the corresponding storage node. And the data management node determines the storage attribute of the service data to be requested by inquiring the mapping relation, and further sends a data request to the corresponding public node or private node. Correspondingly, the data request comprises timestamp information of service data to be requested and identification information corresponding to the intelligent electric meter, so that the storage node returns a corresponding service data packet based on the timestamp information and the identification information. And for the data request of the service data stored in the private node, the private node needs to include a corresponding data tag, so that the private node compares the data tag in the data request according to the data tag in the service data packet, and further verifies whether the identity of the data management node is legal or not.
Furthermore, after each public node or each private node receives the data request, a response to the data request is correspondingly performed. And each public node extracts the corresponding service data packet according to the identification information and the timestamp information in the data request and sends the service data packet to the data management node. After each public node receives the data request, because the public node does not set a corresponding authentication means in order to improve the efficiency of data extraction processing, when the public node responds to the data request, the public node directly queries the service data packet stored in the public node according to the timestamp information and the identification information, and returns the service data packet to the data management node.
And for the corresponding private node, in order to guarantee the security of data storage and extraction, the identity of the data management node needs to be verified when the data request is responded. According to the private node, firstly, a service data packet stored inside is inquired according to timestamp information and identification information in the data request, and then the validity of the identity of the data management node is verified according to a data tag of the corresponding service data packet. Specifically, referring to fig. 3, comparing the data tag included in the service data packet with the data tag of the second data request, performing consensus verification on the identity of the data management node, and determining whether the identity of the data management node is legal includes:
s1301, comparing the data labels of the second data request with the data labels by the private nodes according to the data labels, verifying the identity of the data management node according to a comparison result, generating a first identity verification result, summarizing the first identity verification result to a designated consensus node, and selecting the consensus node from the private nodes in advance;
s1302, the consensus node generates a consensus verification result based on each first identity verification result, and determines whether the identity of the data management node is legal based on the consensus verification result.
The embodiment of the application adopts a block chain-based consensus verification mode to carry out identity verification on the data management node. Before the data request is received, the trusted appointed third-party server sends the data labels to the legal data management node and the intelligent electric meter respectively, the intelligent electric meter correspondingly adds the data labels in the service data packets when storing the service data packets to the private node, and the private node compares whether the data labels of the service data packets are consistent with the data labels of the second data request when verifying whether the data management node requesting the service data is legal or not, and if so, the identity of the private node is judged to be legal. Correspondingly, when the data request response of the data management node is carried out, the private node compares the data label of the second data request of the data management node based on the data label of the service data packet. And judging whether the two are consistent according to the comparison result, and outputting a corresponding first identity verification result. Considering that a single private node has network attack and manipulation influences, the embodiment of the present application does not directly use the authentication result of the single private node as the final authentication result. But performs consensus verification based on the first authentication results of the private nodes to determine a final authentication result. The method comprises the steps that a private node is selected from all the private nodes to serve as a consensus node, and the consensus node summarizes first identity verification results of all the private nodes to conduct consensus verification. And the common identification verification adopts a few majority-obeying modes, and if the first identity verification result judges that the identity of the current data management node is legal to exceed 50%, the identity of the data management node is determined to be legal. Otherwise, the current data management node is considered to be illegal, the second data request is ignored, and no data request response is carried out on the second data request. After verifying that the data management node is legal, each private node extracts the corresponding service data packet according to the identification information and the timestamp information in the data request and sends the service data packet to the data management node, so as to complete the response of the data request.
Further, after each public node responds to the data request and returns a corresponding service data packet to the data management node, the data management node analyzes the service data packet, screens out mutually redundant data, and restores the service data; or after each private node returns the corresponding service data packet to the data management node, the data management node decrypts the service data packet by using the reserved data decryption key, screens out mutually redundant data, and restores the service data. It can be understood that, because each service data packet includes mutually redundant partial service data, when the complete service data is restored according to the service data packet, the data management node obtains the complete service data by screening out the redundant partial service data among the service data packets, and performs processing on the related service of the power internet of things based on the service data. However, for the service data packet extracted from the private node, since it is encrypted by using the data encryption key in advance, the data management node needs to decrypt the service data packet by using the reserved data decryption key first, and then restore the service data packet.
Referring to fig. 4, in the embodiment of the application, a third party is designated to send a data tag to a corresponding smart meter and a corresponding data management node in advance, and the data management node sends a data encryption key to the smart meter in advance and reserves a corresponding data decryption key; the intelligent electric meter determines the storage attribute of the service data based on the data type of the current service data, the storage attribute comprises a public attribute and a private attribute, the service data is divided into a plurality of service data packets which are redundant mutually, and if the storage attribute of the service data is the public attribute, the service data packets are directly stored to each public node in a distributed mode; if the storage attribute of the service data is a private attribute, encrypting the service data packet by using the data encryption key, adding a data tag to the service data packet, and storing the service data packet to each private node in a distributed manner; the service data packet also comprises identification information of the intelligent ammeter and timestamp information of corresponding service data; when the data management node extracts the service data, the data management node sends a first data request to each public node, the first data request comprises identification information and timestamp information of the corresponding service data, and each public node responds to the first data request and returns a corresponding service data packet to the data management node; the data management node sends a second data request to each private node, the second data request comprises a data label, identification information and timestamp information of corresponding service data, each private node responds to the data request to extract a corresponding service data packet, the data label of the second data request is compared based on the data label contained in the service data packet, the identity of the data management node is subjected to common identification verification, whether the identity of the data management node is legal or not is judged, and if the identity of the data management node is legal, each private node returns the corresponding service data packet to the data management node. By adopting the technical means, the data management efficiency can be guaranteed, meanwhile, the data storage safety is improved in an adaptive mode, and the business data management of the power internet of things is optimized.
Example two:
on the basis of the foregoing embodiment, fig. 5 is a schematic structural diagram of a storage management device for power service data according to a second embodiment of the present application. Referring to fig. 5, the storage management apparatus for power service data provided in this embodiment specifically includes: a sending module 21, a storage module 22 and an extraction module 23.
The sending module 21 is configured to send a data tag to a corresponding smart meter and a corresponding data management node in advance through a designated third party, where the data management node sends a data encryption key to the smart meter in advance and reserves a corresponding data decryption key;
the storage module 22 is configured to determine, through an intelligent electric meter, a storage attribute of the service data based on a data type of the current service data, where the storage attribute includes a public attribute and a private attribute, split the service data into a plurality of service data packets that are redundant to each other, and directly store the service data packets in a distributed manner to each public node if the storage attribute of the service data is the public attribute; if the storage attribute of the service data is a private attribute, encrypting the service data packet by using the data encryption key, adding the data tag to the service data packet, and storing the service data packet to each private node in a distributed manner; the service data packet also comprises identification information of the intelligent ammeter and timestamp information corresponding to the service data;
the extracting module 23 is configured to, when a data management node extracts the service data, send a first data request to each public node by the data management node, where the first data request includes the identification information and the timestamp information corresponding to the service data, and each public node returns a corresponding service data packet to the data management node in response to the first data request; the data management node sends a second data request to each private node, the second data request comprises the data label, the identification information and the timestamp information corresponding to the service data, each private node responds to the data request to extract the corresponding service data packet, based on the comparison of the data label contained in the service data packet with the data label of the second data request, the identity of the data management node is subjected to common identification verification, whether the identity of the data management node is legal or not is judged, and if the identity of the data management node is judged to be legal, each private node returns the corresponding service data packet to the data management node.
The data encryption key is sent to the intelligent electric meter in advance by the data management node, and the corresponding data decryption key is reserved; the intelligent electric meter determines the storage attribute of the service data based on the data type of the current service data, the storage attribute comprises a public attribute and a private attribute, the service data is divided into a plurality of service data packets which are redundant mutually, and if the storage attribute of the service data is the public attribute, the service data packets are directly stored to each public node in a distributed mode; if the storage attribute of the service data is a private attribute, encrypting the service data packet by using the data encryption key, adding a data tag to the service data packet, and storing the service data packet to each private node in a distributed manner; the service data packet also comprises identification information of the intelligent ammeter and timestamp information of corresponding service data; when the data management node extracts the service data, the data management node sends a first data request to each public node, the first data request comprises identification information and timestamp information of the corresponding service data, and each public node responds to the first data request and returns a corresponding service data packet to the data management node; the data management node sends a second data request to each private node, the second data request comprises a data label, identification information and timestamp information of corresponding service data, each private node responds to the data request to extract a corresponding service data packet, the data label of the second data request is compared based on the data label contained in the service data packet, the identity of the data management node is subjected to common identification verification, whether the identity of the data management node is legal or not is judged, and if the identity of the data management node is judged to be legal, each private node returns the corresponding service data packet to the data management node. By adopting the technical means, the data management efficiency can be guaranteed, meanwhile, the data storage safety is improved in an adaptive mode, and the business data management of the power internet of things is optimized.
The storage management device for power service data provided by the second embodiment of the present application can be used to execute the storage management method for power service data provided by the first embodiment of the present application, and has corresponding functions and beneficial effects.
Example three:
an embodiment of the present application provides an electronic device, and with reference to fig. 6, the electronic device includes: a processor 31, a memory 32, a communication module 33, an input device 34, and an output device 35. The number of processors in the electronic device may be one or more, and the number of memories in the electronic device may be one or more. The processor, memory, communication module, input device, and output device of the electronic device may be connected by a bus or other means.
The memory 32 is a computer readable storage medium, and can be used for storing software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the storage management method of the power service data according to any embodiment of the present application (for example, a sending module, a storage module, and an extraction module in the storage management device of the power service data). The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication module 33 is used for data transmission.
The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory, that is, implements the above-described storage management method of the power service data.
The input device 34 may be used to receive entered numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 35 may include a display device such as a display screen.
The electronic device provided above can be used to execute the method for storing and managing power service data provided in the first embodiment, and has corresponding functions and advantages.
Example four:
embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a storage management method for power service data, the storage management method for power service data including: appointing a third party to send a data label to a corresponding intelligent electric meter and a data management node in advance, wherein the data management node sends a data encryption key to the intelligent electric meter in advance and reserves a corresponding data decryption key; the method comprises the steps that an intelligent ammeter determines storage attributes of service data based on the data type of the current service data, the storage attributes comprise public attributes and private attributes, the service data are divided into a plurality of service data packets which are mutually redundant, and if the storage attributes of the service data are the public attributes, the service data packets are directly stored to public nodes in a distributed mode; if the storage attribute of the service data is a private attribute, encrypting the service data packet by using the data encryption key, adding the data tag to the service data packet, and storing the service data packet to each private node in a distributed manner; the service data packet also comprises identification information of the intelligent ammeter and timestamp information corresponding to the service data; when the data management node extracts the service data, the data management node sends a first data request to each public node, the first data request comprises the identification information and the timestamp information corresponding to the service data, and each public node responds to the first data request and returns a corresponding service data packet to the data management node; the data management node sends a second data request to each private node, the second data request comprises the data label, the identification information and the timestamp information corresponding to the service data, each private node responds to the data request to extract the corresponding service data packet, based on the comparison of the data label contained in the service data packet with the data label of the second data request, the identity of the data management node is subjected to common identification verification, whether the identity of the data management node is legal or not is judged, and if the identity of the data management node is judged to be legal, each private node returns the corresponding service data packet to the data management node.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations, e.g., in different computer systems connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application includes computer-executable instructions, and the computer-executable instructions are not limited to the storage management method for power service data described above, and may also perform related operations in the storage management method for power service data provided in any embodiment of the present application.
The storage management device, the storage medium, and the electronic device for power service data provided in the foregoing embodiments may execute the storage management method for power service data provided in any embodiment of the present application, and refer to the storage management method for power service data provided in any embodiment of the present application without detailed technical details described in the foregoing embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (9)

1. A storage management method of power service data is characterized by comprising the following steps:
appointing a third party to send a data label to a corresponding intelligent electric meter and a data management node in advance, wherein the data management node sends a data encryption key to the intelligent electric meter in advance and reserves a corresponding data decryption key;
the method comprises the steps that an intelligent electric meter determines storage attributes of service data based on the data type of the current service data, the storage attributes comprise public attributes and private attributes, the service data are divided into a plurality of service data packets which are mutually redundant, and if the storage attributes of the service data are the public attributes, the service data packets are directly stored to all public nodes in a distributed mode; if the storage attribute of the service data is a private attribute, encrypting the service data packet by using the data encryption key, adding the data tag to the service data packet, and storing the service data packet to each private node in a distributed manner; the service data packet also comprises identification information of the intelligent ammeter and timestamp information corresponding to the service data;
when the data management node extracts the service data, the data management node sends a first data request to each public node, the first data request comprises the identification information and the timestamp information corresponding to the service data, and each public node responds to the first data request and returns a corresponding service data packet to the data management node; the data management node sends a second data request to each private node, the second data request comprises the data label, the identification information and the timestamp information corresponding to the service data, each private node responds to the data request to extract the corresponding service data packet, based on the comparison of the data label contained in the service data packet with the data label of the second data request, the identity of the data management node is subjected to common identification verification, whether the identity of the data management node is legal or not is judged, and if the identity of the data management node is judged to be legal, each private node returns the corresponding service data packet to the data management node;
comparing the data label contained in the service data packet with the data label of the second data request, performing consensus verification on the identity of the data management node, and judging whether the identity of the data management node is legal or not, wherein the method comprises the following steps:
each private node compares the data label of the second data request according to the data label, verifies the identity of the data management node according to the comparison result, generates a first identity verification result, summarizes the first identity verification result to a designated common identification node, and the common identification node is selected from a plurality of private nodes in advance;
and the consensus node generates a consensus verification result based on each first identity verification result, and determines whether the identity of the data management node is legal or not based on the consensus verification result.
2. The method for storing and managing power service data according to claim 1, wherein after a third party is designated to pre-send data tags to the corresponding smart meters and data management nodes, and the data management nodes pre-send data encryption keys to the smart meters and reserve corresponding data decryption keys, the method further comprises:
and the appointed third party updates the data tags to the corresponding intelligent electric meter and the data management node every other tag management period.
3. The method for storing and managing power service data according to claim 1, wherein after a third party is designated to pre-send data tags to the corresponding smart meters and data management nodes, and the data management nodes pre-send data encryption keys to the smart meters and reserve corresponding data decryption keys, the method further comprises:
and the data management node updates the data encryption key to the corresponding intelligent electric meter every other key management period and reserves the corresponding data decryption key.
4. The method for storage management of power service data according to claim 1, wherein before the smart meter determines the storage attribute of the service data based on the data type of the current service data, the method further comprises:
the data management node pre-constructs a mapping relation between each data type and the corresponding storage attribute, and issues the mapping relation to the intelligent electric meter;
correspondingly, the smart meter determines the storage attribute of the service data based on the data type of the current service data, and the method comprises the following steps:
and the intelligent electric meter inquires the mapping relation based on the data type of the service data and determines the storage attribute of the service data.
5. The storage management method of the power service data according to claim 4, wherein after the data management node pre-constructs a mapping relationship between each data type and the corresponding storage attribute, and issues the mapping relationship to the smart meter, the method further comprises:
and the data management node modifies the corresponding mapping relation according to the real-time service data storage requirement and updates the corresponding mapping relation to the intelligent electric meter.
6. The method for storage management of power service data according to claim 1, wherein after each public node returns a corresponding service data packet to the data management node in response to the first data request, the method further comprises:
the data management node analyzes the service data packet, screens out mutually redundant data and restores the service data;
or after each private node returns the corresponding service data packet to the data management node, the method further includes:
and the data management node decrypts the service data packet by using the reserved data decryption key, screens out mutually redundant data and restores the service data.
7. An apparatus for storing and managing power service data, comprising:
the data management node sends a data encryption key to the intelligent electric meter in advance and reserves a corresponding data decryption key;
the storage module is used for determining the storage attribute of the service data based on the data type of the current service data through an intelligent electric meter, wherein the storage attribute comprises a public attribute and a private attribute, the service data is divided into a plurality of service data packets which are mutually redundant, and if the storage attribute of the service data is the public attribute, the service data packets are directly stored to each public node in a distributed manner; if the storage attribute of the service data is a private attribute, encrypting the service data packet by using the data encryption key, adding the data tag to the service data packet, and storing the service data packet to each private node in a distributed manner; the service data packet also comprises identification information of the intelligent ammeter and timestamp information corresponding to the service data;
an extraction module, configured to, when a data management node extracts the service data, send, by the data management node, a first data request to each public node, where the first data request includes the identification information and the timestamp information corresponding to the service data, and each public node returns a corresponding service data packet to the data management node in response to the first data request; the data management node sends a second data request to each private node, the second data request comprises the data label, the identification information and the timestamp information corresponding to the service data, each private node responds to the data request to extract the corresponding service data packet, based on the comparison of the data label contained in the service data packet with the data label of the second data request, the identity of the data management node is subjected to common identification verification, whether the identity of the data management node is legal or not is judged, and if the identity of the data management node is judged to be legal, each private node returns the corresponding service data packet to the data management node;
comparing the data label of the second data request with the data label of the service data packet, performing consensus verification on the identity of the data management node, and judging whether the identity of the data management node is legal, including:
each private node compares the data label of the second data request according to the data label, verifies the identity of the data management node according to the comparison result, generates a first identity verification result, summarizes the first identity verification result to a designated common identification node, and the common identification node is selected from a plurality of private nodes in advance;
and the consensus node generates a consensus verification result based on each first identity verification result, and determines whether the identity of the data management node is legal or not based on the consensus verification result.
8. An electronic device, comprising:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of storage management of power business data as claimed in any one of claims 1-6.
9. A storage medium containing computer-executable instructions for performing the method of storage management of power traffic data according to any one of claims 1-6 when executed by a computer processor.
CN202011531263.7A 2020-12-22 2020-12-22 Storage management method and device for power business data Active CN112560097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011531263.7A CN112560097B (en) 2020-12-22 2020-12-22 Storage management method and device for power business data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011531263.7A CN112560097B (en) 2020-12-22 2020-12-22 Storage management method and device for power business data

Publications (2)

Publication Number Publication Date
CN112560097A CN112560097A (en) 2021-03-26
CN112560097B true CN112560097B (en) 2022-09-30

Family

ID=75031686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011531263.7A Active CN112560097B (en) 2020-12-22 2020-12-22 Storage management method and device for power business data

Country Status (1)

Country Link
CN (1) CN112560097B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582668A (en) * 2018-10-16 2019-04-05 深圳壹账通智能科技有限公司 Service data management method, device, equipment and computer readable storage medium
CN111831684A (en) * 2019-04-15 2020-10-27 北京沃东天骏信息技术有限公司 Data query method and device and computer readable storage medium
US10839070B1 (en) * 2019-04-26 2020-11-17 Advanced New Technologies Co., Ltd. Securely executing smart contract operations in a trusted execution environment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109285005A (en) * 2018-08-16 2019-01-29 北京京东尚科信息技术有限公司 Method for dividing and processing, device, block chain node and the storage medium of block chain
CN110109930B (en) * 2019-05-15 2020-07-03 山东省计算中心(国家超级计算济南中心) Government affair data storage and query method and system based on block chain double-chain structure
CN111259070B (en) * 2019-11-28 2024-04-19 国网山东省电力公司 Method and related device for storing and acquiring service data
CN110929293B (en) * 2019-12-11 2022-11-15 佛山科学技术学院 Beautifying data storage system based on block chain
CN111737236B (en) * 2020-08-26 2020-12-08 江苏云柜网络技术有限公司 Data management method and system for intelligent express cabinet service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582668A (en) * 2018-10-16 2019-04-05 深圳壹账通智能科技有限公司 Service data management method, device, equipment and computer readable storage medium
CN111831684A (en) * 2019-04-15 2020-10-27 北京沃东天骏信息技术有限公司 Data query method and device and computer readable storage medium
US10839070B1 (en) * 2019-04-26 2020-11-17 Advanced New Technologies Co., Ltd. Securely executing smart contract operations in a trusted execution environment

Also Published As

Publication number Publication date
CN112560097A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN112333213B (en) Privacy protection method and device for business data of power Internet of things
US10728229B2 (en) Method and device for communicating securely between T-box device and ECU device in internet of vehicles system
CN112333212B (en) Encryption management method and device for business data of power Internet of things
CN111930851B (en) Control data processing method, device, medium and electronic equipment of block chain network
CN112769761B (en) Signal transmission mode selection method and device based on service classification, electronic equipment and storage medium
US11394696B2 (en) Resource request method, device and storage medium
WO2019134565A1 (en) Terminal verification method and apparatus based on narrowband internet of things
WO2022151478A1 (en) Vehicle key management method, device, and system
CN112560097B (en) Storage management method and device for power business data
CN112559252B (en) Configuration data management method and device based on attribute classification
CN112350875B (en) Centralized management configuration method and device for configuration data
CN112506705B (en) Distributed storage configuration information backup method and device
CN112559250B (en) Configuration data backup method and device for electric power Internet of things
CN111093194A (en) Edge computing virtual base station management method and device based on block chain
CN112468350B (en) Operation parameter configuration management method and device of power Internet of things
CN113987475A (en) Distributed resource management system, distributed resource management method, credential information management system, and medium
CN112560098B (en) Service data management method and device of electric power Internet of things
CN112560098A (en) Business data management method and device of power Internet of things
CN112333036B (en) Multi-storage-node-based power Internet of things configuration data backup method and device
CN112506704B (en) Configuration information backup method and device for gateway of Internet of things
CN112559251B (en) Configuration data management method and device for electric power Internet of things
CN112506703B (en) Backup method and device for configuration information of terminal of Internet of things
CN112787864B (en) Grouping configuration method and device of power internet of things
CN112769625B (en) Grouping configuration method and device for configuration data
CN112559251A (en) Configuration data management method and device for power Internet of things

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