CN113595240B - Method, device, equipment and storage medium for detecting electric power data - Google Patents

Method, device, equipment and storage medium for detecting electric power data Download PDF

Info

Publication number
CN113595240B
CN113595240B CN202110684563.7A CN202110684563A CN113595240B CN 113595240 B CN113595240 B CN 113595240B CN 202110684563 A CN202110684563 A CN 202110684563A CN 113595240 B CN113595240 B CN 113595240B
Authority
CN
China
Prior art keywords
data
abnormal
power data
transmission
power
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
CN202110684563.7A
Other languages
Chinese (zh)
Other versions
CN113595240A (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.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau 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 Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202110684563.7A priority Critical patent/CN113595240B/en
Publication of CN113595240A publication Critical patent/CN113595240A/en
Application granted granted Critical
Publication of CN113595240B publication Critical patent/CN113595240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00002Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by monitoring
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00006Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
    • H02J13/00016Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment using a wired telecommunication network or a data transmission bus
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00006Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
    • H02J13/00022Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment using wireless data transmission
    • H02J13/00026Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment using wireless data transmission involving a local wireless network, e.g. Wi-Fi, ZigBee or Bluetooth
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00006Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
    • H02J13/00028Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment involving the use of Internet protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/30Systems integrating technologies related to power network operation and communication or information technologies for improving the carbon footprint of the management of residential or tertiary loads, i.e. smart grids as climate change mitigation technology in the buildings sector, including also the last stages of power distribution and the control, monitoring or operating management systems at local level
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/20End-user application control systems

Abstract

The application relates to a method, a device, equipment and a computer readable storage medium for detecting power data, wherein the method comprises the following steps: the power data access equipment receives a data packet sent by the power equipment, wherein the data packet comprises power data and characteristic information of the power data, and the characteristic information of the power data comprises at least one of data quantity, transmission time, region information, transmission bytes and transmission protocol of the power data; then, carrying out anomaly detection on the electric power data according to the characteristic information of the electric power data and an anomaly data characteristic library; because the abnormal data feature library comprises abnormal data quantity, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol corresponding to the service type of the electric power data, the abnormal detection can be carried out on a plurality of feature information of the electric power data at one time according to the abnormal data feature library, the detection accuracy is improved, meanwhile, the detection method is simple, and the electric power data abnormal detection efficiency can be improved.

Description

Method, device, equipment and storage medium for detecting electric power data
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for detecting electric power data.
Background
The power equipment can generate power data with different service types in the operation process, and the power data access equipment (such as a server and terminal equipment) performs power scheduling, power consumption information analysis, power statistics, power payment, power equipment operation monitoring and other services according to the power data, so that whether the power data can be used as reliable data support for performing service operation of the power data access equipment is critical to the normal operation of a power system, and meanwhile, the normal electricity utilization of residents can be influenced. A need arises for the power data access device to detect the power data before performing a corresponding business operation based on the power data transmitted by the power device.
Disclosure of Invention
The application provides a detection method, a device, equipment and a computer readable storage medium for power data, which can be used for rapidly detecting whether power data transmitted by the power data are abnormal or not, so that the efficiency of detecting the power data is improved, and meanwhile, the operation safety of a power system is ensured.
A first aspect of the present application provides a method for detecting electric power data, the method comprising:
receiving a data packet sent by power equipment, wherein the data packet comprises power data and characteristic information of the power data, and the characteristic information of the power data comprises at least one of data quantity, transmission time, region information, transmission bytes and transmission protocol of the power data;
performing anomaly detection on the power data according to the characteristic information of the power data and an anomaly data characteristic library; the abnormal database features include abnormal data volume, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol.
In one embodiment, performing anomaly detection on the power data according to the characteristic information of the power data and the anomaly data feature library includes:
determining a target service type corresponding to the characteristic information of the power data; the characteristic information of the power data generated by the power equipment under the target service type comprises characteristic information;
determining an abnormal data volume, an abnormal transmission time period, abnormal region information, abnormal transmission bytes and an abnormal transmission protocol corresponding to the target service type according to the abnormal data feature library;
and carrying out anomaly detection on the electric power data according to the anomaly data volume, the anomaly transmission time period, the anomaly region information, the anomaly transmission bytes, the anomaly transmission protocol and the characteristic information of the electric power data corresponding to the target service type.
In one embodiment, performing anomaly detection on the power data according to the anomaly data volume, the anomaly transmission time period, the anomaly region information, the anomaly transmission bytes, the anomaly transmission protocol and the characteristic information of the power data corresponding to the target service type includes:
matching the abnormal data volume, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission protocol corresponding to the target service type with the data volume, the transmission time, the region information, the transmission bytes and the transmission protocol of the electric power data correspondingly to obtain a matching result;
and carrying out anomaly detection on the power data according to the matching result.
In one embodiment, performing anomaly detection on the power data according to the matching result includes:
if at least one of the data quantity, the transmission time, the region information, the transmission bytes and the transmission protocol of the power data are matched and consistent with the abnormal data quantity, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission protocol, determining that the power data are abnormal;
if the data quantity, the transmission time, the region information, the transmission bytes and the transmission protocol of the power data are all matched and inconsistent with the abnormal data quantity, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission, the power data are determined to be normal.
In one embodiment, the method further comprises:
and sending an acquisition instruction to the power equipment according to the service demand, wherein the acquisition instruction instructs the power equipment to send a target data packet.
In one embodiment, the data packet further includes: and collecting instructions.
In one embodiment, the method further comprises:
judging whether the data packet comprises a target acquisition instruction or not under the condition that the power data is abnormal according to the transmission time of the power data and the abnormal transmission time period;
if the data packet comprises a target acquisition instruction, determining that the power data is normal;
if the data packet does not include the target acquisition instruction, determining that the power data is abnormal.
In one embodiment, the method further comprises:
and according to the result of the anomaly detection, sending a data transmission adjustment strategy to the power equipment, wherein the data transmission adjustment strategy is used for reducing the anomaly detection rate of the transmission power data of the power equipment.
In one embodiment, the method further comprises:
if the power data is determined to be normal according to the characteristic information of the power data and the abnormal data characteristic library, generating a random sequence;
encrypting the target power data according to the random sequence to obtain encrypted power data, and generating a target block according to the encrypted power data;
And checking the target block according to a preset verification protocol, if the target block passes the verification, adding the target block into a block chain, wherein the preset verification protocol is used for checking whether the data format of the encrypted power data meets the set data format requirement.
A second aspect of the present application provides a detection apparatus for power data, the apparatus comprising:
the system comprises a receiving module, a transmitting module and a receiving module, wherein the receiving module is used for receiving a data packet sent by the power equipment, the data packet comprises power data and characteristic information of the power data, and the characteristic information of the power data comprises at least one of data quantity, transmission time, region information, transmission bytes and transmission protocol of the power data;
the detection module is used for carrying out anomaly detection on the electric power data according to the characteristic information of the electric power data and the anomaly data characteristic library; the abnormal database features include abnormal data volume, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol.
A third aspect of the present application provides a power data detection apparatus comprising a memory, a processor and a transceiver, the memory storing a computer program,
the transceiver is used for receiving a data packet sent by the power equipment, wherein the data packet comprises power data and characteristic information of the power data, and the characteristic information of the power data comprises at least one of data quantity, transmission time, region information, transmission bytes and transmission protocol of the power data;
When the processor executes the computer program, the processor is used for carrying out anomaly detection on the electric power data according to the characteristic information of the electric power data and the anomaly data characteristic library; the abnormal database features include abnormal data volume, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of detecting power data of any one of the above.
The application provides a method, a device, equipment and a computer readable storage medium for detecting power data, wherein the method comprises the following steps: the power data access equipment receives a data packet sent by the power equipment, wherein the data packet comprises power data and characteristic information of the power data, and the characteristic information of the power data comprises at least one of data quantity, transmission time, region information, transmission bytes and transmission protocol of the power data; then, carrying out anomaly detection on the electric power data according to the characteristic information of the electric power data and an anomaly data characteristic library; because the abnormal data feature library comprises abnormal data quantity, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol corresponding to the service type of the electric power data, the abnormal detection can be carried out on a plurality of feature information of the electric power data at one time according to the abnormal data feature library, the detection accuracy is improved, meanwhile, the detection method is simple, and the electric power data abnormal detection efficiency can be improved.
Drawings
FIG. 1 is an application environment diagram of a method of detecting power data in one embodiment;
FIG. 2 is a flow chart of a method for detecting power data according to an embodiment;
FIG. 3 is a flow chart of a method for detecting power data according to another embodiment;
FIG. 4 is a flow chart of a method for detecting power data according to another embodiment;
FIG. 5 is a flow chart of a method for detecting power data according to another embodiment;
FIG. 6 is a flow chart of a method for detecting power data according to another embodiment;
FIG. 7 is a block diagram of a power data detection apparatus in one embodiment;
fig. 8 is a schematic diagram of a power data access device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The method for detecting the power data provided by the embodiment of the application can be applied to an application environment shown in fig. 1, wherein the power data access device 102 communicates with the power device 101 through a network. The power device 101 may collect target power data according to an acquisition instruction of the power data access device 102, generate a data packet according to the target power data, and send the data packet to the power data access device 102, where the power data access device 102 stores an abnormal data feature library, and the abnormal data feature library includes an abnormal data amount, an abnormal transmission time period, abnormal region information, an abnormal transmission byte, and an abnormal transmission protocol. The power data access device 102 may be a server or a terminal device, and when the power data access device 102 is a terminal device, it may be a portable computer, a desktop computer, or the like; when the power data access device 102 is a server, it may be of various types, such as, but not limited to, a node device of a content distribution network, a storage server of a distributed storage system, a cloud database server, a cloud computing server, a cloud management server, an interaction server, a storage server, a database server, or a proxy server, etc. In some embodiments, each server may include hardware, software, or embedded logic components or a combination of two or more such components for performing the appropriate functions supported by or implemented by the server. For example, a server, such as a blade server, cloud server, etc., or may be a server group consisting of multiple servers, may include one or more of the types of servers described above, etc.
The network may be a wireless network or a wired network, and may be a local area network or a wide area network.
The system shown in fig. 1 is merely illustrative and is in no way intended to limit the invention, its application or uses. For example, although fig. 1 shows only one power data access device 102 and one power device 101, it is not meant to limit the respective numbers, and a plurality of servers 101 and/or a plurality of terminal devices 102 may be included in a system. Wherein a plurality of power devices 101 may interact with only one power data access device 102.
The power equipment can generate power data with different service types in the operation process, and the power data access equipment (such as a server and terminal equipment) performs power scheduling, power consumption information analysis, power statistics, power payment, power equipment operation monitoring and other services according to the power data, so that whether the power data can be used as reliable data support for performing service operation of the power data access equipment is critical to the normal operation of a power system, and meanwhile, the normal electricity utilization of residents can be influenced. A need arises for the power data access device to detect the power data before performing a corresponding business operation based on the power data transmitted by the power device.
The following describes in detail, with specific embodiments, a technical solution of an embodiment of the present application and how the technical solution of the embodiment of the present application solves the foregoing technical problems. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
In one embodiment, as shown in fig. 2, a method for detecting power data is provided, and the method is applied to the power data access device in fig. 1 for illustration, and includes the following steps:
fig. 2 is a flow chart of a dynamic password generation method according to an embodiment of the present application, and is described by taking the application of the method to the server in fig. 1 as an example, where the method includes the following steps:
step S202, a data packet sent by a power device is received, where the data packet includes power data and characteristic information of the power data, and the characteristic information of the power data includes at least one of a data amount, a transmission time, region information, a transmission byte, and a transmission protocol of the power data.
The power equipment includes the power equipment itself and control equipment for controlling the power equipment, such as transformers, sensors, switch cabinets, and control cabinets. The power data is, for example, power consumption data of the a cell 2021 in 5 years, data of occurrence of an abnormal condition of the transformer on the B line, data of the number of times of closing operation of the knife switch on the C line, and the like. The data amount of the power data characterizes the byte number of the power data, for example, the data amount of the power data is 7 bytes; the transmission time of the power data represents the time when the power equipment transmits the data packet to the power data access equipment or the time when the power data access equipment receives the data packet transmitted by the power equipment, for example, the transmission time of the power data is 14:20; the region information of the power data characterizes the source of the power data, namely, which IP address is transmitted in, which zone is transmitted in, which cell is transmitted in, and the like, for example, the region information of the power data is a Changan zone; the transmission bytes of the power data characterize the data size of the power data, e.g., 1 bit; the transmission protocol of the power data characterizes the communication protocol of the power data, e.g. the transmission protocol of the power data is the TCP/IP protocol.
Illustratively, the power device sends the power data access device at 14:20 the power usage data for month 5 of year 2021 by the a cell, which has 8 bytes, a size of 8 bits, and a transmission protocol of NetBEUI used. A data packet is generated according to the power consumption data and the characteristic information of the power consumption data, wherein the data packet comprises the power consumption data, and the data quantity (8 bytes), the transmission time (14:20), the region information (a cell), the transmission bytes (8 bits) and the transmission protocol (NetBEUI) of the power consumption data.
Step S204, carrying out anomaly detection on the electric power data according to the characteristic information of the electric power data and an anomaly data characteristic database; the abnormal database features comprise abnormal data volume, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol.
The abnormal data feature library comprises feature information of various different abnormal data corresponding to different service types, namely abnormal data quantity corresponding to the service types, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocols. The abnormal data quantity represents that the byte number of the power data exceeds the byte number of the transmission data specified by the service type corresponding to the power data, or the byte number of the power data is smaller than the byte number of the transmission data specified by the service type corresponding to the power data; the abnormal transmission time period indicates that the transmission time of the power data is not in the transmission time period of the power data specified by the corresponding service type, for example, the transmission time period specified by the monitoring service is 20:00-22:00, and if the power equipment is not in the time period of 20:00-22:00, the power data required by the monitoring service is transmitted to the power data access equipment, the power data is judged to be abnormal data; the abnormal region information characterizes that the source of the power data is not transmitted from a specified region or IP address and the like; the abnormal transmission byte represents that the size of the power data exceeds the size of transmission data specified by the service type corresponding to the power data, or the byte number of the power data is smaller than the size of transmission data specified by the service type corresponding to the power data; the abnormal transmission protocol characterizes that the transmission protocol specified by the service type corresponding to the power data is TCP/IP protocol, but the transmission protocol of the power data is NetBEUI, which indicates that the power data is not transmitted through a preset communication channel, and the power data is considered as abnormal data.
For example, when the power device transmits a monitoring data to the power data access device at 14:20, according to the characteristic information of the transmission time of the power data and an abnormal transmission time period (24:00-19:00) corresponding to the service type corresponding to the power device in the abnormal data characteristic library, the transmission time of the power data is 14:20, and in the abnormal transmission time period (24:00-19:00) corresponding to the service type corresponding to the power device, the power data is determined to be abnormal data.
The application provides a detection method of power data, which comprises the following steps: the power data access equipment receives a data packet sent by the power equipment, wherein the data packet comprises power data and characteristic information of the power data, and the characteristic information of the power data comprises at least one of data quantity, transmission time, region information, transmission bytes and transmission protocol of the power data; then, carrying out anomaly detection on the electric power data according to the characteristic information of the electric power data and an anomaly data characteristic library; because the abnormal data feature library comprises abnormal data quantity, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol corresponding to the service type of the electric power data, the abnormal detection of a plurality of feature information of the electric power data can be carried out at one time through a simple judgment process, and the efficiency of detecting the abnormal electric power data is improved.
In one embodiment, as shown in fig. 3, this embodiment is an alternative method embodiment for detecting an abnormality of power data according to feature information of the power data and an abnormality data feature library, where the method includes:
step S302, determining a target service type corresponding to the characteristic information of the power data; the characteristic information of the power data generated by the power equipment under the target service type includes the characteristic information.
The service types of the power data may include: monitoring service, control service, operation service and other service types; the monitoring service characterizes the power data and is used for monitoring the running conditions of the power equipment, external equipment of the power equipment and the like by the power data access equipment; the control service characterizes the electric power data access equipment to control the electric power equipment, the external equipment of the electric power equipment and the like according to the electric power data; the operation service characterizes that the power data are data and the like generated after the power access equipment operates the power equipment, the external equipment of the power equipment and the like; there may be other types of traffic types of power data, as this application is not limited. Different traffic types represent different functions of the power data access device. The power data required for different service types are different, so that the characteristic information is also different for different power data. The data packet sent by the power equipment also comprises service type information of the power data, and when the power data access equipment receives the data packet sent by the power equipment, the data packet is analyzed to obtain target service type information of the power data. The abnormal data feature library is divided according to the service type of the power data, so that the service type of the feature information of the power data is determined, the corresponding abnormal feature information can be quickly found from the abnormal data feature library, and the subsequent judgment is convenient.
According to the detection method of the power data, the target service type of the power data can be determined according to the data packet sent by the power data, the determination method is simple, a complex judgment process is not needed, corresponding abnormal characteristic information can be quickly found out from the abnormal data characteristic library according to the target service type, and the abnormal detection of the power data is improved.
Step S304, determining the abnormal data volume, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission protocol corresponding to the target service type according to the abnormal data feature library.
Wherein, according to the service type information included in the pass-through data packet, an abnormal data amount, an abnormal transmission time period, abnormal region information, an abnormal transmission byte and an abnormal transmission protocol corresponding to the target service type can be determined from the abnormal data feature library. The method and the device are used for carrying out targeted comparison, so that the abnormality detection of the power data is more accurate.
According to the power data detection method, the corresponding abnormal characteristic information can be quickly found out from the abnormal data characteristic library through the determined target service type, and reliable data support is provided for subsequent power data abnormal detection.
Step S306, the power data is detected abnormally according to the abnormal data volume, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes, the abnormal transmission protocol and the characteristic information of the power data corresponding to the target service type.
The detection of whether the power data is abnormal is based on an abnormal data feature library, wherein feature information of all abnormal data corresponding to the service type of the power data is stored in the abnormal data feature library, and can be that any feature information of the power data is compared with the corresponding abnormal feature information, and if the comparison results are the same, the power data is determined to be abnormal; the comparison of other characteristic information may not be performed. Or comparing all the characteristic information of the power data with the corresponding abnormal characteristic information, and determining the power data as abnormal data if one comparison result is the same. The method comprises the steps of firstly matching the transmission time of the power data with a corresponding abnormal transmission time period, determining that the power data is normal data if the transmission time of the power data is not matched with the abnormal transmission time period, then comparing the data amount, and determining that the power data is normal data if the data amount of the power data is different from the corresponding abnormal data amount; and then comparing the region information, the transmission protocol and the transmission bytes one by one according to a preset comparison sequence, and if the comparison is the same or the matching is successful in one step, determining that the electric power data is abnormal electric power data. The method for detecting the abnormality of the power data according to the abnormal data amount, the abnormal transmission time period, the abnormal region information, the abnormal transmission byte, the abnormal transmission protocol and the characteristic information of the power data corresponding to the target service type can also have other optional methods, which are not limited in the application.
According to the detection method for the electric power data, the abnormal characteristic information corresponding to the service type of the electric power data in the abnormal data characteristic library is compared or matched with the characteristic information in the electric power data, whether the electric power data is abnormal or not is judged according to the comparison result or the matching result, the judgment mode is simple, and the abnormal detection of the electric power data is more accurate based on the data support of the abnormal data characteristic library.
In one embodiment, as shown in fig. 4, this embodiment is an optional method embodiment for performing anomaly detection on electric power data according to an anomaly data volume, an anomaly transmission time period, anomaly region information, an anomaly transmission byte, an anomaly transmission protocol and characteristic information of the electric power data corresponding to a target service type, where the method includes:
step S402, matching the abnormal data volume, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission protocol corresponding to the target service type with the data volume, the transmission time, the region information, the transmission bytes and the transmission protocol of the electric power data correspondingly to obtain a matching result.
Wherein, the data quantity of the power data can be matched with the abnormal data quantity; matching the transmission time of the power data with an abnormal transmission time period; matching the region information of the power data with the abnormal region information; matching the transmission bytes of the power data with the abnormal transmission bytes; and matching the transmission protocol of the power data with the abnormal transmission protocol. And obtaining a plurality of matching results.
According to the detection method for the electric power data, the characteristic information of the electric power data can be matched with the corresponding abnormal characteristic information one by one, so that the detection process is more specific, whether the electric power data is abnormal or not is judged from different layers, and the detection result is more accurate.
Step S404, performing anomaly detection on the power data according to the matching result. If the data amount, the transmission time, the region information, the transmission byte and the transmission protocol of the power data are successfully matched with the abnormal data amount, the abnormal transmission time period, the abnormal region information, the abnormal transmission byte and the abnormal transmission protocol, executing step S406; if each item of the data amount, the transmission time, the region information, the transmission byte and the transmission protocol of the power data is failed to match with the abnormal data amount, the abnormal transmission time period, the abnormal region information, the abnormal transmission byte and the abnormal transmission, then step S408 is executed;
step S406, determining that the power data is abnormal.
Step S408, it is determined that the power data is normal.
Wherein, after the above matching process, 5 matching results are obtained, which may be, for example: the data volume of the power data is not matched with the abnormal data volume; the transmission time of the power data is not matched with the abnormal transmission time period; the regional information of the power data is matched with the abnormal regional information; the transmission bytes of the power data are matched with the abnormal transmission bytes; the transmission protocol of the power data is matched with the abnormal transmission protocol. If the result of 3 successful matches out of the 5 matching results indicates that the power data has common characteristic information with the abnormal power data, then the power data can be determined to be the abnormal power data. If the 5 matching results are: the data volume of the power data fails to match with the abnormal data volume; failure in matching the transmission time of the power data with the abnormal transmission time period; the region information of the power data fails to be matched with the abnormal region information; the transmission bytes of the power data are not matched with the abnormal transmission bytes; the transmission protocol of the power data does not match the abnormal transmission protocol. And if the power data and the abnormal power data have no common characteristic information, judging and determining that the power data is abnormal. It should be noted that, as long as one matching result is successful, the power data is determined to be abnormal; only when there are many matching results that are matching failures, it can be determined that the power data is normal.
According to the detection method for the electric power data, whether the electric power data is abnormal or not is judged according to the matching results of the plurality of characteristic information, and whether the electric power data is abnormal or not is detected from multiple angles, so that the abnormal detection of the electric power data is closer to reality.
In one embodiment, this embodiment is an optional method step of the power data access device prior to receiving a data packet sent by the power device, the method step comprising:
and sending an acquisition instruction to the power equipment according to the service demand, wherein the acquisition instruction instructs the power equipment to send a target data packet.
Wherein the power data access device may perform, for example: different businesses such as power equipment operation condition monitoring, power equipment control, power scheduling, power consumption information analysis, power statistics, power payment and the like are different in power data required by each business type, so that the power data access equipment can send acquisition instructions to the earth-boring equipment in a targeted and purposeful manner according to actual business requirements, and the power equipment can acquire target power data according to the acquisition instructions and send the target power data to the power data access equipment. The transmission of the power data is more flexible, the power data is not limited to unilateral transmission, and the situation that the power access equipment needs certain power data at present but the power data does not reach the transmission time period is avoided. Thereby improving the effective utilization rate of the electric power data.
In one embodiment, the data packet further comprises: and collecting instructions.
When the power equipment transmits a data packet to the power data access equipment, the data packet can also comprise an acquisition instruction sent to the power equipment by the power data access equipment, the acquisition instruction can be displayed to the power data access equipment, and whether the data packet sent by the power equipment at present is data sent according to the requirement of the power data access equipment or not. The occurrence of inaccurate detection of the data packet abnormality can be avoided.
In one embodiment, as shown in fig. 5, this embodiment is an embodiment of an alternative method for detecting whether power data is abnormal, the method including:
step S502, judging whether the data packet comprises a target acquisition instruction or not under the condition that the power data is abnormal according to the transmission time of the power data and the abnormal transmission time period; if the data packet includes the target acquisition instruction, executing step S504; if the data packet does not include the target acquisition instruction, step S506 is executed:
step S504, it is determined that the power data is normal.
Step S506, determining that the power data is abnormal.
Among these, there may be a case that: the power equipment distributes the power data to the power data access equipment at 12:40, the power data access equipment sends data of abnormal conditions of the transformer on the line B, for monitoring service, the power data access equipment sets a sending time period to be 24:00-4:00, and then the power equipment sends the power data at 12:40, and the power data access equipment can determine the power data as abnormal power data. However, if the power equipment needs the data of the abnormal condition of the transformer on the line B at 12:30 minutes, the data are used for analyzing the operation condition of the transformer, and an acquisition instruction for acquiring the data of the abnormal condition of the transformer on the line B is sent to the power equipment. Then, the power device sends the power data to the power data access device in a non-transmission time period according to the acquisition instruction of the power data access device, and if the power data is abnormal, the judgment of whether the power data is abnormal or not is inaccurate according to the transmission time of the power data. Therefore, the power data is further detected abnormally according to special conditions, so that the detection result can be more accurate.
Wherein, as mentioned above, the data packet sent by the power device may include
In one embodiment, this embodiment is an alternative method embodiment after detecting an electrical power data anomaly, the method comprising:
and according to the result of the anomaly detection, sending a data transmission adjustment strategy to the power equipment, wherein the data transmission adjustment strategy is used for reducing the anomaly detection rate of the transmission power data of the power equipment.
When the power data access device determines that the power data sent by the power device is abnormal power data, an error message may be returned to the power device, and the cause of the error is described, so that the power device is informed to perform adjustment, so that a similar situation is avoided again next time. For example, an error message may be returned to the transmission of the power data for a period other than this. The adjustment policy carried by the message may be: the power data of this type are uniformly transmitted within a period of 24:00 to 4:00. So as to avoid the occurrence of the condition that the power equipment transmits the power data in the non-transmission time period when no power data access equipment does not send an acquisition instruction. The probability that the power data transmitted by the power equipment is determined to be abnormal data can be reduced, and the effective utilization rate of the transmission channel is improved.
In one embodiment, as shown in fig. 6, this embodiment is an alternative method embodiment after determining that the power data is normal, and the method includes:
step S602, if the power data is determined to be normal according to the characteristic information of the power data and the abnormal data characteristic database, generating a random sequence.
The power data access device needs to store the power data transmitted by the power device after determining that the power data is normal power data. When the power data is stored, the device, which may be a random sequence generator, generates a random sequence for the power data to be stored, and each power data to be stored corresponds to a unique random sequence, so that the safety of power data storage can be ensured.
In step S604, the target power data is encrypted according to the random sequence to obtain encrypted power data, and the target block is generated according to the encrypted power data.
The random sequence and the power data may be subjected to exclusive or processing, that is, decimal is converted into binary, where the same is 0 and different is 1. The random sequence and the power data to be stored are subjected to exclusive or calculation to indicate that the power data is encrypted, so that in order to facilitate the subsequent searching of the power data, the encrypted power data is divided into a block, and each time the power equipment generates one power data, the power data is encrypted, then divided into blocks and stored in a block chain of the power equipment. The encrypted power data is divided into the blocks, so that the encrypted power data can be stored in the blockchain conveniently, the power data can be stored in the form of the blockchain, and the storage of the blockchain is non-tamper-proof, so that the safety of the power data can be ensured, and the situation that an illegal user tampers the power data randomly is avoided.
Step S606, the target block is checked according to a preset verification protocol, if the verification is passed, the target block is added into the block chain, and the preset verification protocol is used for verifying whether the data format of the encrypted power data meets the set data format requirement.
The verification protocol is used for verifying the data format of the encrypted power data, and the encrypted power data can be added into the blockchain only after the verification is passed. The verification may be performed by the power device presetting a storage rule of the blockchain, where the storage rule is, for example, what format the data should be stored in, what the input and output of the data are, what the structure of the data is, whether the carried digital signature is a digital signature that can be decrypted by the blockchain, and so on. When the encrypted power data to be stored is received, the encrypted power data is verified according to a preset storage rule, or the encrypted power data is uplink when at least one rule is satisfied by the encrypted power data, and the power data is stored in the blockchain.
According to the detection method for the power data, when the power data access equipment determines that the power data transmitted by the power equipment are normal data, the power data are stored in the block chain based on the block chain technology, so that the safety of the power data is guaranteed.
In one embodiment, as shown in fig. 7, there is provided a power data detection apparatus including: a receiving module 701 and a detecting module 702, wherein:
the receiving module 701 is configured to receive a data packet sent by the power device, where the data packet includes power data and characteristic information of the power data, and the characteristic information of the power data includes at least one of a data amount, a transmission time, region information, a transmission byte, and a transmission protocol of the power data;
the detection module 702 is configured to perform anomaly detection on the power data according to the feature information of the power data and the anomaly data feature library; the abnormal database features include abnormal data volume, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol.
In one embodiment, the detection module 702 includes a determination unit and a detection unit,
the determining unit is used for determining a target service type corresponding to the characteristic information of the power data; the characteristic information of the power data generated by the power equipment under the target service type comprises characteristic information; determining an abnormal data volume, an abnormal transmission time period, abnormal region information, abnormal transmission bytes and an abnormal transmission protocol corresponding to the target service type according to the abnormal data feature library;
The detection unit is used for carrying out anomaly detection on the electric power data according to the anomaly data volume, the anomaly transmission time period, the anomaly region information, the anomaly transmission bytes, the anomaly transmission protocol and the characteristic information of the electric power data corresponding to the target service type.
In one embodiment, the detection unit is further configured to match the abnormal data amount, the abnormal transmission time period, the abnormal region information, the abnormal transmission byte and the abnormal transmission protocol corresponding to the target service type with the data amount, the transmission time, the region information, the transmission byte and the transmission protocol of the electric power data correspondingly to obtain a matching result; and carrying out anomaly detection on the power data according to the matching result.
In one embodiment, the determining unit is configured to determine that the power data is abnormal if at least one of the data amount, the transmission time, the region information, the transmission byte, and the transmission protocol of the power data matches the abnormal data amount, the abnormal transmission time period, the abnormal region information, the abnormal transmission byte, and the abnormal transmission protocol; and determining that the power data is normal when each item of the data amount, the transmission time, the region information, the transmission bytes and the transmission protocol of the power data are matched and inconsistent with the abnormal data amount, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission.
In one embodiment, the foregoing further includes a sending module, where the sending module is configured to send, according to a service requirement, an acquisition instruction to the power device, where the acquisition instruction instructs the power device to send the target data packet.
In one embodiment, the data packet further comprises: and collecting instructions.
In one embodiment, the determining unit is configured to determine whether the data packet includes a target acquisition instruction in a case where it is determined that the power data is abnormal based on the characteristic information of the power data and the abnormality data characteristic library; under the condition that the data packet comprises a target acquisition instruction, determining that the power data is normal; and determining that the power data is abnormal under the condition that the data packet does not comprise the target acquisition instruction.
In one embodiment, the sending module is further configured to send a data transmission adjustment policy to the power device according to a result of the anomaly detection, where the data transmission adjustment policy is used to reduce an anomaly detection rate of the transmission power data of the power device.
In one embodiment, the device further comprises a generation module and a verification module, wherein the generation module is used for generating a random sequence under the condition that the power data is determined to be normal according to the characteristic information of the power data and the abnormal data characteristic database; encrypting the target power data according to the random sequence to obtain encrypted power data, and generating a target block according to the encrypted power data;
And the verification module is used for verifying the target block according to a preset verification protocol, if the verification is passed, the target block is added into the block chain, and the preset verification protocol is used for verifying whether the data format of the encrypted power data meets the set data format requirement.
For specific limitation of the detection device for the electric power data, reference may be made to the limitation of the detection method for the electric power data hereinabove, and the description thereof will not be repeated here. The above-described respective modules in the power data detection apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a power data access device is provided, taking the power data access as an example of a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing power data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of detecting power data.
In one embodiment, a power data detection apparatus is provided that includes a memory, a processor, and a transceiver, the memory storing a computer program,
the transceiver is used for receiving a data packet sent by the power equipment, wherein the data packet comprises power data and characteristic information of the power data, and the characteristic information of the power data comprises at least one of data quantity, transmission time, region information, transmission bytes and transmission protocol of the power data;
when the processor executes the computer program, the processor is used for carrying out anomaly detection on the electric power data according to the characteristic information of the electric power data and the anomaly data characteristic library; the abnormal database features include abnormal data volume, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol.
In one embodiment, the processor when executing the computer program further performs the steps of: determining a target service type corresponding to the characteristic information of the power data; the characteristic information of the power data generated by the power equipment under the target service type comprises characteristic information;
determining an abnormal data volume, an abnormal transmission time period, abnormal region information, abnormal transmission bytes and an abnormal transmission protocol corresponding to the target service type according to the abnormal data feature library;
And carrying out anomaly detection on the electric power data according to the anomaly data volume, the anomaly transmission time period, the anomaly region information, the anomaly transmission bytes, the anomaly transmission protocol and the characteristic information of the electric power data corresponding to the target service type.
In one embodiment, the processor when executing the computer program further performs the steps of: matching the abnormal data volume, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission protocol corresponding to the target service type with the data volume, the transmission time, the region information, the transmission bytes and the transmission protocol of the electric power data correspondingly to obtain a matching result;
and carrying out anomaly detection on the power data according to the matching result.
In one embodiment, the processor when executing the computer program further performs the steps of: determining that the electric power data is abnormal under the condition that at least one of the data quantity, the transmission time, the region information, the transmission bytes and the transmission protocol of the electric power data are matched with the abnormal data quantity, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission protocol;
and determining that the power data is normal when each item of the data amount, the transmission time, the region information, the transmission bytes and the transmission protocol of the power data are matched and inconsistent with the abnormal data amount, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission.
In one embodiment, the processor when executing the computer program further performs the steps of: and sending an acquisition instruction to the power equipment according to the service demand, wherein the acquisition instruction instructs the power equipment to send a target data packet.
In one embodiment, the data packet further comprises: and collecting instructions.
In one embodiment, the processor when executing the computer program further performs the steps of:
judging whether the data packet comprises a target acquisition instruction or not under the condition that the power data is determined to be abnormal according to the characteristic information of the power data and an abnormal data characteristic library; under the condition that the data packet comprises a target acquisition instruction, determining that the power data is normal; and determining that the power data is abnormal under the condition that the data packet does not comprise the target acquisition instruction.
In one embodiment, the processor when executing the computer program further performs the steps of: and according to the result of the anomaly detection, sending a data transmission adjustment strategy to the power equipment, wherein the data transmission adjustment strategy is used for reducing the anomaly detection rate of the transmission power data of the power equipment.
In one embodiment, the processor when executing the computer program further performs the steps of: generating a random sequence under the condition that the power data is determined to be normal according to the characteristic information of the power data and the abnormal data characteristic library;
Encrypting the target power data according to the random sequence to obtain encrypted power data, and generating a target block according to the encrypted power data;
and checking the target block according to a preset verification protocol, if the target block passes the verification, adding the target block into a block chain, wherein the preset verification protocol is used for checking whether the data format of the encrypted power data meets the set data format requirement.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a data packet sent by power equipment, wherein the data packet comprises power data and characteristic information of the power data, and the characteristic information of the power data comprises at least one of data quantity, transmission time, region information, transmission bytes and transmission protocol of the power data;
performing anomaly detection on the power data according to the characteristic information of the power data and an anomaly data characteristic library; the abnormal database features include abnormal data volume, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Determining a target service type corresponding to the characteristic information of the power data; the characteristic information of the power data generated by the power equipment under the target service type comprises characteristic information;
determining an abnormal data volume, an abnormal transmission time period, abnormal region information, abnormal transmission bytes and an abnormal transmission protocol corresponding to the target service type according to the abnormal data feature library;
and carrying out anomaly detection on the electric power data according to the anomaly data volume, the anomaly transmission time period, the anomaly region information, the anomaly transmission bytes, the anomaly transmission protocol and the characteristic information of the electric power data corresponding to the target service type.
In one embodiment, the computer program when executed by the processor further performs the steps of:
matching the abnormal data volume, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission protocol corresponding to the target service type with the data volume, the transmission time, the region information, the transmission bytes and the transmission protocol of the electric power data correspondingly to obtain a matching result;
and carrying out anomaly detection on the power data according to the matching result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining that the electric power data is abnormal under the condition that at least one of the data quantity, the transmission time, the region information, the transmission bytes and the transmission protocol of the electric power data are matched with the abnormal data quantity, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission protocol;
And determining that the power data is normal when each item of the data amount, the transmission time, the region information, the transmission bytes and the transmission protocol of the power data are matched and inconsistent with the abnormal data amount, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and sending an acquisition instruction to the power equipment according to the service demand, wherein the acquisition instruction instructs the power equipment to send a target data packet.
In one embodiment, the data packet further comprises: and collecting instructions.
In one embodiment, the computer program when executed by the processor further performs the steps of:
judging whether the data packet comprises a target acquisition instruction or not under the condition that the power data is determined to be abnormal according to the characteristic information of the power data and an abnormal data characteristic library; under the condition that the data packet comprises a target acquisition instruction, determining that the power data is normal; and determining that the power data is abnormal under the condition that the data packet does not comprise the target acquisition instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and according to the result of the anomaly detection, sending a data transmission adjustment strategy to the power equipment, wherein the data transmission adjustment strategy is used for reducing the anomaly detection rate of the transmission power data of the power equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of:
generating a random sequence under the condition that the power data is determined to be normal according to the characteristic information of the power data and the abnormal data characteristic library;
encrypting the target power data according to the random sequence to obtain encrypted power data, and generating a target block according to the encrypted power data;
and checking the target block according to a preset verification protocol, if the target block passes the verification, adding the target block into a block chain, wherein the preset verification protocol is used for checking whether the data format of the encrypted power data meets the set data format requirement.
Those skilled in the art will appreciate that implementing all or part of the above described methods in accordance with the embodiments may be accomplished by controlling the associated hardware by way of computer program instructions, which may be stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples represent only a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of detecting power data, the method comprising:
receiving a data packet sent by the power equipment; the data packet comprises power data and characteristic information of the power data; the characteristic information of the power data comprises at least one of data volume, transmission time, region information, transmission bytes and transmission protocol of the power data; the data quantity characterizes the byte number of the power data; the transmission time characterizes the moment when the power equipment transmits the data packet or the moment when the power equipment receives the data packet; the regional information characterizes a source of the power data; the transmission bytes characterize a data size of the power data; the transmission protocol characterizes a communication protocol of the power data;
Performing anomaly detection on the electric power data according to the characteristic information of the electric power data and an anomaly data characteristic library; the abnormal data feature library comprises abnormal data volume, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol; the abnormal data quantity represents that the byte number of the electric power data is not equal to the byte number of transmission data specified by the service type corresponding to the electric power data; the abnormal transmission time period represents that the transmission time of the power data is not in the power data transmission time period specified by the corresponding service type; the abnormal region information characterizes that the source of the electric power data is not transmitted from a specified region or address; the abnormal transmission byte represents that the size of the power data is not equal to the size of transmission data specified by the service type corresponding to the power data; the abnormal transmission protocol characterizes that the power data is not transmitted through a preset communication channel;
sending an acquisition instruction to the power equipment according to service requirements; the acquisition instruction is used for instructing the power equipment to acquire a target data packet according to the acquisition instruction and returning the target data packet; the target data packet comprises the acquisition instruction, and the acquisition instruction is used for displaying whether the target data packet is consistent with the data packet indicated by the service requirement;
Judging whether the target data packet comprises a target acquisition instruction or not under the condition that the power data is determined to be abnormal according to the transmission time of the power data and the abnormal transmission time period;
if the target data packet comprises the target acquisition instruction, determining that the power data is normal;
and if the target data packet does not comprise the target acquisition instruction, determining that the power data is abnormal.
2. The method according to claim 1, wherein the abnormality detection of the power data based on the characteristic information of the power data and an abnormality data characteristic library includes:
determining a target service type corresponding to the characteristic information of the power data; the characteristic information of the power data generated by the power equipment under the target service type comprises the characteristic information;
determining abnormal data volume, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol corresponding to the target service type according to the abnormal data feature library;
and carrying out anomaly detection on the electric power data according to the anomaly data volume, the anomaly transmission time period, the anomaly region information, the anomaly transmission bytes, the anomaly transmission protocol and the characteristic information of the electric power data corresponding to the target service type.
3. The method according to claim 2, wherein the anomaly detection of the power data according to the anomaly data volume, the anomaly transmission time period, the anomaly region information, the anomaly transmission byte, the anomaly transmission protocol, and the characteristic information of the power data corresponding to the target traffic type includes:
matching the abnormal data volume, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission protocol corresponding to the target service type with the data volume, the transmission time, the region information, the transmission bytes and the transmission protocol of the electric power data correspondingly to obtain a matching result;
and carrying out anomaly detection on the electric power data according to the matching result.
4. A method according to claim 3, wherein said anomaly detection of said power data based on said matching result comprises:
if at least one of the data volume, the transmission time, the region information, the transmission bytes and the transmission protocol of the electric power data are matched and consistent with the abnormal data volume, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission protocol, determining that the electric power data are abnormal;
And if the data quantity, the transmission time, the region information, the transmission bytes and the transmission protocol of the power data are all matched and inconsistent with the abnormal data quantity, the abnormal transmission time period, the abnormal region information, the abnormal transmission bytes and the abnormal transmission, determining that the power data are normal.
5. The method according to claim 1, wherein the method further comprises:
and sending a data transmission adjustment strategy to the power equipment according to the result of the abnormality detection, wherein the data transmission adjustment strategy is used for reducing the abnormality detection rate of the transmission power data of the power equipment.
6. The method according to claim 1, wherein the method further comprises:
if the power data is determined to be normal according to the characteristic information of the power data and the abnormal data characteristic library, generating a random sequence;
encrypting the power data in the target data packet according to the random sequence to obtain encrypted power data, and generating a target block according to the encrypted power data;
and checking the target block according to a preset verification protocol, and if the target block passes the verification, adding the target block into a block chain, wherein the preset verification protocol is used for checking whether the data format of the encrypted power data meets the set data format requirement.
7. A device for detecting power data, the device comprising:
the receiving module is used for receiving the data packet sent by the power equipment; the data packet comprises power data and characteristic information of the power data; the characteristic information of the power data comprises at least one of data volume, transmission time, region information, transmission bytes and transmission protocol of the power data; the data quantity characterizes the byte number of the power data; the transmission time characterizes the moment when the power equipment transmits the data packet or the moment when the power equipment receives the data packet; the regional information characterizes a source of the power data; the transmission bytes characterize a data size of the power data; the transmission protocol characterizes a communication protocol of the power data;
the detection module is used for carrying out anomaly detection on the electric power data according to the characteristic information of the electric power data and an anomaly data characteristic database; the abnormal data feature library comprises abnormal data volume, abnormal transmission time period, abnormal region information, abnormal transmission bytes and abnormal transmission protocol; the abnormal data quantity represents that the byte number of the electric power data is not equal to the byte number of transmission data specified by the service type corresponding to the electric power data; the abnormal transmission time period represents that the transmission time of the power data is not in the power data transmission time period specified by the corresponding service type; the abnormal region information characterizes that the source of the electric power data is not transmitted from a specified region or address; the abnormal transmission byte represents that the size of the power data is not equal to the size of transmission data specified by the service type corresponding to the power data; the abnormal transmission protocol characterizes that the power data is not transmitted through a preset communication channel;
The sending module is used for sending an acquisition instruction to the power equipment according to service requirements; the acquisition instruction is used for instructing the power equipment to acquire a target data packet according to the acquisition instruction and returning the target data packet; the target data packet comprises the acquisition instruction, and the acquisition instruction is used for displaying whether the target data packet is consistent with the data packet indicated by the service requirement.
8. The apparatus of claim 7, wherein the detection module comprises:
a determining unit configured to determine whether the target data packet includes a target acquisition instruction, in a case where it is determined that the power data is abnormal according to a transmission time of the power data and the abnormal transmission time period; under the condition that the data packet comprises a target acquisition instruction, determining that the power data is normal; and determining that the power data is abnormal under the condition that the data packet does not comprise the target acquisition instruction.
9. The apparatus of claim 7, wherein the detection module comprises:
the determining unit is also used for determining a target service type corresponding to the characteristic information of the power data; the characteristic information of the power data generated by the power equipment under the target service type comprises the characteristic information; determining an abnormal data volume, an abnormal transmission time period, abnormal region information, abnormal transmission bytes and an abnormal transmission protocol corresponding to the target service type according to the abnormal data feature library;
The detection unit is used for carrying out anomaly detection on the electric power data according to the anomaly data volume, the anomaly transmission time period, the anomaly region information, the anomaly transmission bytes, the anomaly transmission protocol and the characteristic information of the electric power data corresponding to the target service type.
10. The apparatus of claim 9, wherein the detecting unit is further configured to match an abnormal data amount, an abnormal transmission time period, abnormal region information, an abnormal transmission byte, and an abnormal transmission protocol corresponding to the target service type with the data amount, the transmission time, the region information, the transmission byte, and the transmission protocol of the power data, to obtain a matching result; and carrying out anomaly detection on the electric power data according to the matching result.
CN202110684563.7A 2021-06-21 2021-06-21 Method, device, equipment and storage medium for detecting electric power data Active CN113595240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110684563.7A CN113595240B (en) 2021-06-21 2021-06-21 Method, device, equipment and storage medium for detecting electric power data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110684563.7A CN113595240B (en) 2021-06-21 2021-06-21 Method, device, equipment and storage medium for detecting electric power data

Publications (2)

Publication Number Publication Date
CN113595240A CN113595240A (en) 2021-11-02
CN113595240B true CN113595240B (en) 2024-01-19

Family

ID=78244037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110684563.7A Active CN113595240B (en) 2021-06-21 2021-06-21 Method, device, equipment and storage medium for detecting electric power data

Country Status (1)

Country Link
CN (1) CN113595240B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106571977A (en) * 2016-10-24 2017-04-19 腾讯科技(深圳)有限公司 Data transmission method and device
CN110826740A (en) * 2019-12-03 2020-02-21 杭州绿安智能电网技术有限公司 Power grid line equipment fault detection and analysis system
CN111199018A (en) * 2019-12-27 2020-05-26 东软集团股份有限公司 Abnormal data detection method and device, storage medium and electronic equipment
CN112019574A (en) * 2020-10-22 2020-12-01 腾讯科技(深圳)有限公司 Abnormal network data detection method and device, computer equipment and storage medium
CN112084056A (en) * 2020-08-25 2020-12-15 腾讯科技(深圳)有限公司 Abnormality detection method, apparatus, device and storage medium
WO2021003968A1 (en) * 2019-07-09 2021-01-14 深圳壹账通智能科技有限公司 Data checking method and apparatus, and computer device and storage medium
CN112541102A (en) * 2020-12-11 2021-03-23 深圳供电局有限公司 Abnormal data filtering method, device, equipment and storage medium
CN112800231A (en) * 2021-03-31 2021-05-14 南方电网数字电网研究院有限公司 Power data verification method and device, computer equipment and storage medium
WO2021104270A1 (en) * 2019-11-26 2021-06-03 中兴通讯股份有限公司 Configuration anomaly detection method, server and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6889402B2 (en) * 2017-09-28 2021-06-18 トヨタ自動車株式会社 Non-contact power transmission system and non-contact power receiving device
CN112990699A (en) * 2021-03-12 2021-06-18 深圳供电局有限公司 Power data processing method and device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106571977A (en) * 2016-10-24 2017-04-19 腾讯科技(深圳)有限公司 Data transmission method and device
WO2021003968A1 (en) * 2019-07-09 2021-01-14 深圳壹账通智能科技有限公司 Data checking method and apparatus, and computer device and storage medium
WO2021104270A1 (en) * 2019-11-26 2021-06-03 中兴通讯股份有限公司 Configuration anomaly detection method, server and storage medium
CN110826740A (en) * 2019-12-03 2020-02-21 杭州绿安智能电网技术有限公司 Power grid line equipment fault detection and analysis system
CN111199018A (en) * 2019-12-27 2020-05-26 东软集团股份有限公司 Abnormal data detection method and device, storage medium and electronic equipment
CN112084056A (en) * 2020-08-25 2020-12-15 腾讯科技(深圳)有限公司 Abnormality detection method, apparatus, device and storage medium
CN112019574A (en) * 2020-10-22 2020-12-01 腾讯科技(深圳)有限公司 Abnormal network data detection method and device, computer equipment and storage medium
CN112541102A (en) * 2020-12-11 2021-03-23 深圳供电局有限公司 Abnormal data filtering method, device, equipment and storage medium
CN112800231A (en) * 2021-03-31 2021-05-14 南方电网数字电网研究院有限公司 Power data verification method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于用电信息采集数据的用电异常检测方法研究;吴迪;《中国优秀硕士学位论文全文数据库工程科技II期》(第6期);第3-8页 *

Also Published As

Publication number Publication date
CN113595240A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN110995468B (en) System fault processing method, device, equipment and storage medium of system to be analyzed
KR102177411B1 (en) Method for managing industrial control systems via physical one-way encryption remote monitoring
CN111614548A (en) Message pushing method and device, computer equipment and storage medium
CN104348578B (en) The method and device of data processing
CN104579558A (en) Method for detecting integrity in data transmission process
CN111970236A (en) Cross-network data transmission method and device
CN111327428B (en) Image information processing method and system and electronic equipment
US10205803B1 (en) System for determining improper port configurations
CN114363034B (en) Verification code generation and verification method and device, electronic equipment and storage medium
CN112818056A (en) Log security sharing method, system and device of block chain
TW202016743A (en) Data processing apparatus and data processing method for internet of things system
CN115147956A (en) Data processing method and device, electronic equipment and storage medium
CN112713996B (en) Block chain-based fault verification method, server and terminal
CN113067802A (en) User identification method, device, equipment and computer readable storage medium
CN111193730B (en) IoT trusted scene construction method and device
CN113595240B (en) Method, device, equipment and storage medium for detecting electric power data
CN115589298A (en) Method, device, system, equipment and medium for verifying information of block chain
CN113507691B (en) Information pushing system and method based on power distribution network cross-region service
CN114499880A (en) Method and device for transmitting operation and maintenance data of gas turbine
CN112995111B (en) Block chain-based Internet of things security detection method, equipment, system and medium
CN113572599B (en) Power data transmission method, data source equipment and data access equipment
CN110769010A (en) Data management authority processing method and device and computer equipment
CN112219416A (en) Techniques for authenticating data transmitted over a cellular network
CN115829186B (en) ERP management method based on artificial intelligence and data processing AI system
CN113489675B (en) Method, device, equipment and storage medium for detecting intrusion of power terminal

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