A message collection and analysis method and system for power system

Through the transparent transmission mode and preset filtering conditions, the filtered collection and partitioned hash storage of power communication messages, combined with the safe dump of external storage devices, solve the problems of portable collection and data security in the existing technology, and improve the analysis efficiency and Reliability, providing reliable data support for power system monitoring.

CN118523965BActive Publication Date: 2024-09-27QINGTIAN COUNTY POWER SUPPLY CO OF STATE GRID ZHEJIANG ELECTRIC POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410988149.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-09-27
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

It is difficult to achieve plug-and-play portable collection and analysis of messages in existing power systems, and there are problems with data security risks and low analysis efficiency.

Method used

Use transparent transmission mode combined with preset filtering conditions to filter, collect, and partition hash storage of power communication messages in the target network environment, and perform on-demand classified safe dumps through external storage devices to achieve plug-and-play portable collection and off-grid analysis. .

Benefits of technology

It reduces data security risks, improves the efficiency and reliability of data analysis, and provides reliable power system operating status monitoring data support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118523965B
    Figure CN118523965B
Patent Text Reader

Abstract

The present invention provides a message collection and analysis method and system for an electric power system, including serial connection to a target network environment through a transparent transmission mode, obtaining electric power communication messages according to preset filtering conditions; partitioning and hashing the electric power communication messages according to the preset filtering conditions and storing them in a preset storage address, and using a rolling storage mode to update the message data of the preset storage address; in response to a message dump request of an external storage device, extracting and packaging the message data of the preset storage address according to the message dump range, transmitting the data packets to be dumped to the external storage device for access to an external network analysis device, and importing the data packets to be dumped into the external network analysis device for system operation analysis to obtain a status analysis result. The present invention realizes plug-and-play portable message collection, which not only ensures on-site message analysis, but also can classify and safely dump messages to realize off-network analysis, reduce data security risks, and improve the efficiency and reliability of data analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent monitoring of electric power systems, and in particular to a message collection and analysis method and system for electric power systems. Background Art

[0002] With the development and popularization of intelligent power systems, remote acquisition of power system operation data for status monitoring through telemetry, remote control, remote signaling and remote regulation has been widely used. At the same time, corresponding power message collection and analysis solutions need to be provided to adapt to it.

[0003] The message collection and analysis of the existing power system requires the fixed deployment of hardware collection equipment in the working environment (machine room or special equipment room) to obtain communication messages, and transmit the messages directly to the docked master server for data analysis. In practical applications, it is difficult for hardware collection equipment to achieve plug-and-play portable collection, and the message storage device must be connected to the network for a long time to work with the master server. It cannot support the safe transfer and storage of messages, and it is very easy to cause security risks such as leakage or tampering of message data due to its own security vulnerabilities; in addition, the data analysis of the master server only depends on the communication messages provided by the collection equipment, which will not only affect the efficiency of data analysis because the communication messages need to be classified and sorted according to the business analysis granularity requirements before data analysis, but also cannot guarantee the reliability of the analysis results due to the singleness of the data source used. Summary of the invention

[0004] The purpose of the present invention is to provide a message collection and analysis method for an electric power system, which performs power communication message filtering and collection and partitioned hash storage on a target network environment by adopting a transparent transmission mode combined with preset filtering conditions, and performs on-demand classification and secure dumping of the collected communication messages through an external storage device with a preset message dump range, thereby realizing plug-and-play portable message collection, which not only ensures on-site real-time analysis of messages, but also enables classified and secure dumping of messages to realize off-grid analysis, thereby reducing data security risks and improving the efficiency and reliability of data analysis.

[0005] In order to achieve the above objectives, it is necessary to provide a message collection and analysis method and system for a power system in response to the above technical problems.

[0006] In a first aspect, an embodiment of the present invention provides a method for collecting and analyzing messages in a power system, the method comprising the following steps:

[0007] Connecting to the target network environment in series through a transparent transmission mode, and acquiring the power communication message of the target network environment according to preset filtering conditions; the preset filtering conditions include message protocol filtering conditions, time window filtering conditions and transmission link filtering conditions;

[0008] The power communication message is partitioned and hashed and stored at a preset storage address according to a preset hash granularity, and the message data at the preset storage address is updated in a rolling storage mode;

[0009] In response to a message dump request from an external storage device, the message data of the preset storage address is extracted and packaged according to the acquired message dump range, and the generated data packets to be dumped are transmitted to the external storage device, so that when the external storage device is connected to an external network analysis device, the data packets to be dumped are imported into the external network analysis device for system operation analysis to obtain corresponding status analysis results.

[0010] Furthermore, the method further comprises:

[0011] The update message data in the preset storage address is transmitted to the intranet analysis device in real time, so that the intranet analysis device performs system operation analysis according to the update message data to obtain corresponding status analysis results.

[0012] Furthermore, the step of partitioning and hashing the power communication message at a preset storage address according to a preset hash granularity includes:

[0013] According to different message protocol types in the message protocol filtering condition, the power communication message is partitioned to obtain multiple message protocol storage areas;

[0014] Obtain directory creation information of each power communication message in the message protocol storage area; the directory creation information includes timestamp information and transmission link information; the transmission link information includes a source IP address, a destination IP address, a source MAC address and a destination MAC address;

[0015] After converting the timestamp information and transmission link information in each directory creation information into corresponding standard formats, they are sequentially concatenated to obtain corresponding directory creation string information;

[0016] According to the preset hash granularity, the directory creation string information of all power communication messages in the message protocol storage area is scanned and classified to generate multiple message hash sets, and according to the hash granularity information corresponding to the message hash sets, a corresponding hash set name is generated; the preset hash granularity includes timestamp granularity and transmission link granularity;

[0017] Perform hash calculations on each hash set name of the message protocol storage area to obtain corresponding set hash values, perform multiple collision detections on all set hash values ​​according to secondary detection and re-hashing, and generate corresponding protocol message storage trees according to corresponding hash results;

[0018] According to the protocol message storage tree, the corresponding power communication message is stored in the preset storage address.

[0019] Furthermore, the step of performing multiple collision detection on all set hash values ​​according to the secondary detection and rehashing includes:

[0020] Perform a repeatability check on all set hash values, mark the message hash sets corresponding to non-repeated set hash values ​​as full buckets, mark the message hash sets corresponding to repeated set hash values ​​as hash subsets, merge hash subsets with the same set hash value into a new hash set, and mark the new hash set as a defective bucket;

[0021] Under the condition that the message hash set with the full bucket mark remains unchanged, according to the adjusted hash granularity, the directory creation string information of all power communication messages in each new hash set with the defective bucket mark is re-scanned and classified to generate multiple message hash subsets and corresponding hash subset names;

[0022] Perform hash calculations on each hash subset name to obtain the corresponding subset hash value, and perform hash detection on all subset hash values. If there is no duplicate hash value, stop hashing. Otherwise, merge the message hash subsets corresponding to the duplicate hash value and hash them three times. Then directly merge the duplicate subsets after three hashes.

[0023] Furthermore, the status analysis result includes a network status analysis result, a service status analysis result and a remote control quality assessment result; and the step of obtaining the status analysis result includes:

[0024] Receiving power communication message data to be analyzed, parsing each power communication message to be analyzed according to a preset communication protocol message parsing tree, and obtaining a corresponding transmission path identifier and a corresponding message type;

[0025] According to the transmission path identifier, the message path information statistics are performed on all the power communication messages to be analyzed to obtain the corresponding network communication status data, and it is determined whether the network communication status data meets the preset network communication requirements, and the corresponding network status analysis results are generated; the network communication status data includes the number of master and slave devices, the communication scale and the data response delay;

[0026] According to the message type, the number of types of all power communication messages to be analyzed is counted, a false connection state identification alarm is issued according to the number of corresponding I frame messages, and each I frame message is classified according to the monitoring direction and the control direction;

[0027] Performing a business data state change analysis on the power communication message to be analyzed in the monitoring direction to generate a corresponding business state analysis result; the business state analysis result includes a telemetry value change graph, telemetry event information, a telesignaling value change graph and telesignaling event information;

[0028] The communication quality of the power communication message to be analyzed in the control direction is analyzed to generate the corresponding remote control quality evaluation result.

[0029] Furthermore, the step of performing communication quality analysis on the power communication message to be analyzed in the control direction to generate a corresponding remote control quality evaluation result includes:

[0030] Obtain the remote control command type, remote control result and remote control command timestamp of each power communication message to be analyzed;

[0031] According to the remote control command timestamp and the preset analysis time period, all the power communication messages to be analyzed in the control direction are classified by time period, and according to the remote control results, the remote control execution data corresponding to various remote control command types within each preset time period are counted; the remote control execution data includes the number of successful executions with normal delays, the number of successful executions with abnormal delays, and the number of failed executions;

[0032] Calculate the proportions of the number of successful executions with normal delays, the number of successful executions with abnormal delays, and the number of failed executions corresponding to various remote control command types respectively, and compare the proportions with the corresponding preset normal remote control type proportion thresholds to obtain the corresponding remote control type quality assessment results;

[0033] The remote control type quality evaluation results of various remote control command types are aggregated to obtain the remote control quality evaluation result.

[0034] Furthermore, the step of obtaining the status analysis result further includes:

[0035] Acquire real-time business event data from an external system, and perform business event comparison analysis on the real-time business event data and the business status analysis results to obtain corresponding comparison results, and perform abnormality troubleshooting on associated devices based on the comparison results; the associated devices include message collection devices and network transmission devices.

[0036] In a second aspect, an embodiment of the present invention provides a message collection and analysis system for a power system, the system comprising:

[0037] A message collection module, which is used to be serially connected to a target network environment through a transparent transmission mode, and to obtain power communication messages of the target network environment according to preset filtering conditions; the preset filtering conditions include message protocol filtering conditions, time window filtering conditions and transmission link filtering conditions;

[0038] A hash storage module, used to partition and hash the power communication message at a preset storage address according to a preset hash granularity, and update the message data at the preset storage address in a rolling storage mode;

[0039] The dump analysis module is used to respond to the message dump request of the external storage device, extract and pack the message data of the preset storage address according to the acquired message dump range, and transmit the generated data packets to be dumped to the external storage device, so that when the external storage device is connected to the external network analysis device, the data packets to be dumped are imported into the external network analysis device for system operation analysis to obtain corresponding status analysis results.

[0040] Furthermore, the system further comprises:

[0041] The real-time analysis module is used to transmit the update message data in the preset storage address to the intranet analysis device in real time, so that the intranet analysis device performs system operation analysis according to the update message data to obtain corresponding status analysis results.

[0042] Furthermore, the hash storage module includes:

[0043] A protocol message partitioning unit, configured to partition the power communication message according to different message protocol types in the message protocol filtering condition to obtain a plurality of message protocol storage areas;

[0044] A directory information acquisition unit, used to acquire directory creation information of each power communication message in the message protocol storage area; the directory creation information includes timestamp information and transmission link information; the transmission link information includes a source IP address, a destination IP address, a source MAC address and a destination MAC address;

[0045] A directory information processing unit, used to convert the timestamp information and transmission link information in each directory creation information into corresponding standard formats respectively, and then sequentially concatenate them to obtain corresponding directory creation character string information;

[0046] A hash set creation unit, configured to scan and classify the directory creation string information of all power communication messages in the message protocol storage area according to the preset hash granularity, generate multiple message hash sets, and generate corresponding hash set names according to the hash granularity information corresponding to the message hash sets; the preset hash granularity includes timestamp granularity and transmission link granularity;

[0047] A storage tree construction unit, used to perform hash calculations on each hash set name of the message protocol storage area to obtain a corresponding set hash value, and perform multiple collision detections on all set hash values ​​according to secondary detection and re-hashing, and generate a corresponding protocol message storage tree according to the corresponding hash results;

[0048] The message storage unit is used to store the corresponding power communication message in the preset storage address according to the protocol message storage tree.

[0049] The above-mentioned application provides a message collection and analysis method and system for an electric power system, through which the method is realized by serial connection with the target network environment through a transparent transmission mode, and the power communication message of the target network environment is obtained according to preset filtering conditions including message protocol filtering conditions, time window filtering conditions and transmission link filtering conditions, and the power communication message is partitioned and hashed according to the preset filtering conditions and stored in a preset storage address, and the message data at the preset storage address is updated using a rolling storage mode, and in response to a message dump request from an external storage device, the message data at the preset storage address is extracted and packaged according to the obtained message dump range, and the generated data packet to be dumped is transmitted to the external storage device, so that when the external storage device is connected to an external network analysis device, the data packet to be dumped is imported into the external network analysis device for system operation analysis to obtain a technical solution for the corresponding status analysis result. Compared with the existing technology, the message collection and analysis method of the power system adopts a transparent transmission mode combined with preset filtering conditions to filter and collect power communication messages and perform partitioned hash storage, and classifies and securely dumps communication messages on demand through an external storage device with a preset message dump range. It can not only realize plug-and-play portable message collection, but also classify and securely dump messages to realize off-grid analysis while ensuring real-time analysis of messages on-site, thereby reducing the security risks of message data storage, improving the efficiency and reliability of data analysis, and thus providing reliable data support for the operation status monitoring of the power system. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a flow chart of a method for collecting and analyzing messages of a power system in an embodiment of the present invention;

[0051] Figure 2 is another flow chart of the message collection and analysis method of the power system in an embodiment of the present invention;

[0052] Figure 3 It is a detailed process architecture diagram of a method for collecting and analyzing messages in a power system according to an embodiment of the present invention;

[0053] Figure 4 It is a structural schematic diagram of a message collection and analysis system for a power system in an embodiment of the present invention;

[0054] Figure 5 It is another structural schematic diagram of the message collection and analysis system of the power system in an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical scheme and beneficial effects of the present application clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. Obviously, the embodiments described below are part of the embodiments of the present invention and are only used to illustrate the present invention, but are not used to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] The message collection and analysis method of the power system provided by the present invention can be understood as being based on the fact that the existing power system message hardware collection equipment must be fixedly deployed in the operating environment, it is difficult to achieve plug-and-play portable collection, it does not support message security transfer storage and separate analysis and use, it is very easy to bring message data security risks due to its own security vulnerabilities, and because the data analysis only depends on the communication message provided by the collection device, the communication message needs to be classified and sorted according to the business analysis granularity requirements before data analysis, which affects the data analysis efficiency, and the single source of analysis and use data cannot guarantee the application status of reliable analysis results. A method is proposed to filter and collect power communication messages and partition hash storage for the target network environment using a transparent transmission mode combined with preset filtering conditions to realize plug-and-play portable message collection, classify and store message data on demand to save storage space and facilitate the improvement of later data analysis efficiency, and support the on-demand classification and secure dumping of communication messages through an external storage device with a preset message dump range to facilitate off-grid analysis, reduce data security risks, improve the efficiency and reliability of data analysis, and support on-site real-time analysis and dump off-grid analysis of power communication message collection and analysis method. The following embodiments will explain in detail the message collection and analysis method of the power system of the present invention.

[0057] In one embodiment, Figure 1 As shown, a method for collecting and analyzing messages of a power system is provided, comprising the following steps:

[0058] S11. Connect to the target network environment in series through the transparent transmission mode, and obtain the power communication message of the target network environment according to the preset filtering conditions; wherein, the transparent transmission mode (pass-through) can be understood as a transmission mode that does not care about the business content of the transmission in the communication, but is only responsible for transmitting the transmission content from the source address to the destination address without making any changes to the business data content; in this embodiment, the message collection device is connected in series to the target network environment that needs to be monitored through the transparent transmission mode, for example, it is connected to a communication link between the substation and the remote motor. The access of the message collection device will not parse or modify the power communication message transmitted in the actual network, but directly transmit the message to the target device, that is, the access or withdrawal of the message collection device to the target network environment will not have any impact on the original network, and it can be easily carried and deployed in any network environment that needs to be monitored, realizing plug-and-play portable and flexible collection.

[0059] In practical applications, considering the large number of communication messages in the actual network environment, if the communication data in the target network environment is uniformly transparently transmitted to the analysis device or storage device, it will waste the storage space of the analysis device or storage device, and will also increase the performance overhead of subsequent analysis and processing. In this embodiment, preferably, the user performs preliminary intelligent filtering and screening according to the message filtering conditions specified based on the actual analysis requirements, and only captures and records the message data of interest to the user, thereby saving storage space and improving the efficiency of subsequent data analysis;

[0060] Specifically, the preset filtering conditions include message protocol filtering conditions, time window filtering conditions and transmission link filtering conditions; wherein, the message protocol filtering conditions can be understood as which protocol messages need to be collected. Taking the collection of IEC104 messages as an example, the protocol type is determined by the TCP message header. The IEC104 message usually contains a specific message header and data structure, such as ASDU (Application Service Data Unit). The IEC104 message can be identified by analyzing the structure and field content of the message; the time window filtering condition can be understood as setting a time window to only receive messages within a specified time range, and stop collecting messages after the time range is exceeded. At the same time, the message can also be filtered out according to the message. The timestamp information is used to filter the messages, and only the messages generated within the specified time period are received to reduce the amount of data and unnecessary information; correspondingly, the transmission link filtering condition can be understood as filtering the messages according to the transmission characteristics of the messages. For example, the messages can be filtered according to the address information of the sender or receiver (i.e., MAC address) or the IP address of the sender and receiver of the message, as well as the message sending and receiving ports and device RTU addresses. It should be noted that the contents involved in the specific message protocol filtering conditions, time window filtering conditions and transmission link filtering conditions can be set according to actual application requirements to obtain the required power communication messages, and are not specifically limited here.

[0061] In principle, the power communication messages obtained through the above-mentioned transparent transmission and conditional filtering can be directly stored in a file directory according to the collection time period. However, considering that the actual message analysis and processing requires detailed analysis according to the communication link or according to the time period, in order to further improve the efficiency of message analysis and processing, this embodiment preferably uses the following method to partition and hash the collected power communication messages according to the time and link information granularity required for the actual analysis, so as to facilitate subsequent analysis and use.

[0062] S12. The power communication message is partitioned and hashed according to a preset hash granularity and stored in a preset storage address, and the message data of the preset storage address is updated using a rolling storage mode; wherein, the partitioned hash storage can be understood as first partitioning and storing the power communication messages of different protocols, and then using a hash function in each zone to establish a corresponding hash directory according to different time windows and transmission links; correspondingly, the rolling storage mode can be understood as dynamically deleting the actual storage space of the preset storage address, storing the latest message data to replace the message data with the longest storage time, and always keeping the message data dynamically updated to provide support for continuous message analysis and detection.

[0063] Specifically, the step of partitioning and hashing the power communication message at a preset storage address according to a preset hash granularity includes:

[0064] According to different message protocol types in the message protocol filtering conditions, the power communication messages are partitioned to obtain multiple message protocol storage areas; that is, first, corresponding message protocol storage areas are created according to different message protocol types in the message protocol filtering conditions, and then all collected power communication messages are partitioned and stored in corresponding message protocol storage areas according to the message protocol type.

[0065] Obtain directory creation information for each power communication message in the message protocol storage area; wherein, the directory creation information can be understood as the classification basis for further subdividing and storing messages in each message protocol storage area; preferably, the directory creation information includes timestamp information and transmission link information, and of course, extensible content can also be added according to actual application scenarios and application requirements, such as port number and / or protocol type parameters; wherein, the timestamp information is a string of recording time carried by the message, such as a UNIX timestamp is usually a number of seconds starting from 0:0:0 on January 1, 1970; correspondingly, the transmission link information can be understood as information used to represent the sender and receiver of the message, including the source IP address, the destination IP address, the source MAC address and the destination MAC address, wherein the source IP address and the destination IP address respectively represent the IP addresses of the sender and receiver of the message, which can be IPV4 or IPV6 addresses; the source MAC address and the destination MAC address respectively represent the MAC addresses of the sender and receiver of the message, which are 48-bit binary device hardware addresses, burned on the network card by the network equipment manufacturer during production.

[0066] After the timestamp information and transmission link information in each directory creation information are converted to the corresponding standard format, they are sequentially spliced ​​to obtain the corresponding directory creation string information; wherein, the directory creation string information can be understood as the string information obtained by performing corresponding standardized processing on the timestamp, IP address, and MAC address and then sequentially splicing them to ensure the efficiency and reliability of the subsequent creation of the hash directory, which can ensure the stability and consistency of the subsequent hash scan input data. The specific acquisition process is: timestamp preprocessing, if it is a non-standard timestamp string, then convert this timestamp into a standard format, For example, if the timestamp is 12:00:00 on June 1, 2021, it will be converted to the number of seconds starting from 0:00:00 on January 1, 1970, which is 1622548800; preprocess the IP address and MAC address, and convert the IP address into a standard string format. For example, for the IPv4 address 192.168.1.1, you can directly use the string form. The conversion method of the MAC address is the same as the IP address; merge the preprocessed directory creation information, and merge the preprocessed timestamp, IP address, and MAC address into a string as the input of the hash function. It should be noted that each substring is separated by an underscore, and the order of splicing is timestamp, source IP address, source MAC address, destination IP address, and destination MAC address. The merged string shown below is the directory creation string information:

[0067] "1622548800_192.168.1.1_08:00:20:0A:8C:6D_192.168.1.2_08:00:20:0A:8C:5D".

[0068] According to the preset hash granularity, the directory creation string information of all power communication messages in the message protocol storage area is scanned and classified to generate multiple message hash sets, and the corresponding hash set name is generated according to the hash granularity information corresponding to the message hash set; wherein the preset hash granularity can be understood as a standard for subdividing and classifying messages in each message protocol storage area. Preferably, the preset hash granularity includes timestamp granularity and transmission link granularity; wherein the timestamp granularity can be understood as a time granularity such as seconds, minutes, hours or days selected according to needs to meet different data comparison requirements. If the time If the time stamp granularity is set to days, the seconds below the day are ignored. For example, the timestamp is 1622548800 (June 1, 2021 12:00:00). When the timestamp granularity is "day", it needs to be converted to the start time of the day 1622520000 (June 1, 2021 00:00:00); other time granularities are processed in a similar way; correspondingly, the transmission link granularity can be understood as the link filtering range selected according to the needs, such as only focusing on IP addresses, only focusing on MAC addresses, only focusing on source IP & source MAC, or only focusing on destination IP & destination MAC addresses. The specific process of creating multiple message hash sets by hash scanning and classification based on the directory creation string information is as follows:

[0069] Scan all directory creation string information in each message protocol storage area according to the preset hash granularity, incorporate the messages that meet the same granularity into a unified set, sort them from small to large by timestamp, and determine the set ID according to the granularity requirement. For example, for the directory creation string information "1622548800_192.168.1.1_08:00:20:0A:8C:6D_192.168.1.2_

[0070] After the message with the time stamp granularity of day and the transmission link granularity of only focusing on the IP address is scanned by the combined hash method (the granularity of no concern is set to null), the message will be added to the message hash set named "1622520000_192.168.1.1_null_192.168.1.2_null".

[0071] After the above-mentioned hash scanning and classification, the messages under the same hash granularity naturally form a unified set, which is equivalent to helping the message analysis device to perform message preprocessing in advance. In actual analysis, it is only necessary to select the message analysis in the corresponding set according to the needs; at the same time, after screening, the messages that do not belong to the same granularity will be distinguished from each other. Naming according to the hash granularity information corresponding to the message hash set can effectively ensure the independence of different hash sets, and provide convenience for the storage management and classification extraction of each communication message.

[0072] Hash calculations are performed on each hash set name of the message protocol storage area to obtain a corresponding set hash value, and multiple collision detections are performed on all set hash values ​​based on secondary detection and re-hashing, and a corresponding protocol message storage tree is generated based on the corresponding hash results; wherein, the method for calculating the set hash value based on the hash set name preferably adopts the mature SHA-256 algorithm to ensure that a corresponding unique hash value is generated for each hash set name as much as possible, so as to avoid excessive hash conflicts that affect the reliable management of message data; at the same time, in order to ensure the effectiveness of hash set subdivision as much as possible, this embodiment preferably adopts the secondary detection and re-hashing method The method performs multiple hash collision checks on all set hash values ​​in the same message protocol storage area, and further subdivides the sets with the same message range: first, the sets with the same hash value are taken as subsets, and each subset is called a bucket, and the bucket name is the original set name. Then, the elements in each bucket are reduced in time granularity and new sets and set names are generated by judging the original null items, and then secondary or tertiary hashing is performed. Finally, the sets that still have collision conflicts are merged, and the corresponding message storage folder is established according to the final hash result, generating a protocol message storage tree with the bucket name as the main folder name and multiple subsets as subfolders.

[0073] Specifically, the step of performing multiple collision detection on all set hash values ​​according to the secondary detection and rehashing includes:

[0074] Perform a repeatability check on all set hash values, mark the message hash sets corresponding to non-repeated set hash values ​​as full buckets, mark the message hash sets corresponding to repeated set hash values ​​as hash subsets, merge hash subsets with the same set hash value into a new hash set, and mark the new hash set as a defective bucket;

[0075] While keeping the message hash set with the full bucket mark unchanged, according to the adjusted hash granularity, the directory of all power communication messages in each new hash set with the defective bucket mark is re-scanned and classified by creating string information, and multiple message hash subsets and corresponding hash subset names are generated; wherein, the adjusted hash granularity can be understood as reducing the time granularity (reducing the unit from days to hours), or adjusting the transmission link granularity (changing the focus only on IP address adjustment to focusing on IP address plus MAC address) on the basis of the original preset hash granularity, and adjusting in the direction of reducing the message range, so as to try to avoid duplication of the hash values ​​of the hash sets generated by the re-classification.

[0076] Hash calculations are performed on each hash subset name to obtain the corresponding subset hash value, and hash detection is performed on all subset hash values. If there is no duplicate hash value, the hashing is stopped. Otherwise, the message hash subsets corresponding to the duplicate hash values ​​are merged and hashed three times, and the repeated subsets after three hashing are directly merged; after three hashing, a bucket will have one or more subsets. For example, the bucket name "1622520000_192.168.1.1_null_192.168.1.2_null" is hashed three times, and the multiple subordinate subsets will include a subset named 1622548800_192.168.1.1_null_192.168.1.2_null, and the multiple subordinate sub-subsets corresponding to the subset will include a subset named 1622548800_ A sub-subset of 192.168.1.1_08:00:20:0A:8C:6D_192.68.1.2_08:00:20:0A:8C:5D, and each sub-subset contains a specific power communication message.

[0077] According to the protocol message storage tree, the corresponding power communication message is stored in the preset storage address.

[0078] This embodiment uses a message classification preprocessing method based on a preset hash granularity to perform partitioned hash storage based on secondary detection and re-hashing on the power communication messages obtained by filtering and collecting. This method not only facilitates the classification and security management of power communication messages, but also provides convenience for subsequent data analysis, saves on-demand classification performance overhead, improves data analysis efficiency, and provides flexible data storage and export functions, saves captured data to different storage media, supports export in multiple data formats, and supports the diversity of data storage and analysis modes.

[0079] S13. In response to a message dump request from an external storage device, according to the acquired message dump range, the message data of the preset storage address is extracted and packaged, and the generated data packet to be dumped is transmitted to the external storage device, so that when the external storage device is connected to an external network analysis device, the data packet to be dumped is imported into the external network analysis device for system operation analysis to obtain corresponding status analysis results; wherein, the message dump request can be understood as a message dump request automatically sent according to the acquired message dump range when the external storage device is connected to the collection device in order to facilitate off-network analysis of message data; the corresponding message dump range can be understood as a message retrieval range file pre-stored in the external storage device. A file containing three search parameters including time range, sender and receiver IP address range, etc. is extracted from the document; preferably, it is edited in json format, which can support the storage of strings, numbers, arrays, Boolean values ​​and other object quantities, so as to facilitate the flexible customization of the search file range; in practical applications, a data hierarchy can be constructed, and the json file contains one or more layers of specific attributes of the message search range (narrowing the time range layer by layer, adding more sender and receiver restrictions), and multi-layer screening is performed to meet the search requirements. It is also possible to extract multiple message sets with different search requirements by setting an array in json (setting multiple time ranges with different search requirements for senders and receivers).

[0080] Specifically, after receiving the message dump request, the collection device can use the conventional json parsing function to read the message search range parameters in the file, and then based on the obtained message dump range, scan each protocol message storage tree in the preset storage address by deep traversal method, and automatically package and transmit the file directory and subordinate message data whose folder name is the union of three range parameters to the external storage device; it should be noted that for the message dump request without the corresponding search range file, it can be understood as importing all files in the preset storage address into the external storage device. This embodiment uses an external storage device with a preset message dump range to perform on-demand classification and secure dumping of collected communication messages, and can use a dedicated storage medium to store message data. After collecting the corresponding message data, it can be withdrawn from the target network, ensuring that the captured data is safe and reliable, and protecting the user's privacy information from being leaked. The portable storage method can effectively reduce the data storage security risk, and also supports the separation of data analysis and processing to meet the application requirements of more message collection, storage and analysis modes.

[0081] The message collection and dumping scheme for the power system provided in this embodiment can not only ensure that the real-time message collection is completed by the collection end by itself, without the need for additional user operations, by dividing the message collection and message analysis into modules and running them independently, and the collection process does not include any message modification operations (splitting & parsing), effectively avoiding the risk of message data being intercepted, but also directly obtains messages from the communication network by adopting transparent transmission serial connection technology, ensuring that there is no intermediate link involved in the acquisition process, and avoiding the possibility of data tampering to the greatest extent. It also supports the safe transfer of external storage media, so that the collected messages can be backed up on multiple ends, greatly reducing the risk of data loss. , thereby significantly reducing the risks of data leakage, data tampering and data loss in existing power message data collection technologies; at the same time, since the message data collection rules used are all configured in advance, only the messages transmitted by the current network are filtered without additional processing of the message data, which can greatly improve the message acquisition speed, and since the collection equipment adopts transparent transmission technology to access the network, the messages can be directly stored in the on-board high-speed flash memory after filtering, and the processing speed can keep up with the network data transmission speed. There is no limitation of equipment performance and network bandwidth in the existing power message collection technology, which can effectively ensure the real-time nature of message collection and avoid the risk of data collection delay and loss.

[0082] In addition, considering the diverse needs of actual message collection and analysis usage scenarios, this embodiment preferably supports on-demand classification and secure dumping of communication messages acquired by the collection device through an external storage device, and cooperates with an external network analysis device to realize off-network analysis. At the same time, it also supports real-time on-site analysis of communication messages acquired by the collection device by setting up direct communication between the collection device and the internal network analysis device, and can analyze and process data while capturing data, providing instant results and feedback; specifically, Figure 2 As shown, the method also includes:

[0083] S14. Transmitting the update message data in the preset storage address to the intranet analysis device in real time, so that the intranet analysis device performs system operation analysis according to the update message data to obtain corresponding status analysis results.

[0084] It should be noted that the specific analysis functions of the above-mentioned external network analysis device and internal network analysis device may be the same or different. The difference between the two mainly lies in whether data communication and transmission can be carried out directly with the collection device. That is, the external network analysis device in this embodiment can be understood as a message data analysis device that does not communicate directly with the aforementioned collection device, and can import the power communication message dump collected by the collection device through an external storage device for data analysis; the internal network analysis device is a message analysis device that directly communicates and interconnects with the collection device and does not need to import the data to be analyzed through an external storage medium. In principle, both the external network analysis device and the internal network analysis device can be implemented using the existing power communication message analysis method. However, in order to ensure that the message data based on the target network environment conducts a comprehensive and reliable analysis and research on the operation status of the power system, in this embodiment, preferably, after the external network analysis device or the internal network analysis device performs a corresponding hash check on the acquired power communication message data to be analyzed and ensures that the power system message has not been tampered with, network status analysis, telesignaling and telemetering business status analysis, and remote control communication quality analysis are performed to achieve the corresponding status analysis results to provide reliable data guidance for subsequent power system network optimization adjustment and abnormality analysis while avoiding the risk of message data tampering; correspondingly, the status analysis results include network status analysis results, business status analysis results, and remote control quality assessment results; specifically, the steps of the external network analysis device or the internal network analysis device performing system operation analysis include:

[0085] Receive the power communication message data to be analyzed, parse each power communication message to be analyzed according to the preset communication protocol message parsing tree, and obtain the corresponding transmission path identifier and the corresponding message type; wherein, the preset communication protocol message parsing tree can be understood as a tree structure that pre-acquires the communication protocol type that may be involved in the power communication message data to be analyzed, and decomposes the message structure of various communication protocol messages. When the message content is subsequently parsed and extracted, the corresponding preset communication protocol message parsing tree can be directly selected to parse the message. For example, taking the IEC104 message format as an example, the entire message can be used as the root node of the message parsing tree, and a part or a field in the message can be used as each node of the message parsing tree, and the order of each node represents its structural order in the message, and a simple IEC104 message parsing tree as shown below can be obtained:

[0086] Root (message)

[0087] ├── Start Character

[0088] ├── Length Field

[0089] ├── Control Field

[0090] │ ├── Type Identifier

[0091] │ ├── Transfer Reason (Transfer Reason)

[0092] │ ├── Common Address

[0093] │ └── Information Object

[0094] │ ├── Information Object Address

[0095] │ ├── Information Element

[0096] │ │ ├── Measured Value

[0097] │ │ └── Quality Descriptor

[0098] │ └── Timestamp

[0099] └── Checksum

[0100] It should be noted that the above IEC104 communication protocol message parsing tree is only for illustrative purposes. In actual applications, the structure of the specific preset communication protocol message parsing tree varies depending on the type of communication protocol and is not specifically limited here.

[0101] The transmission path identifier (TPCI) in this embodiment is an important concept in the IEC60870-5-104 protocol, which is used to identify the transmission path of the message, including the transmission mode and destination of the message, to ensure that the message can be correctly transmitted to the target device. TPCI includes two parts: transmission primitive and transmission direction. The transmission primitive indicates the type of the message, which usually includes the following:

[0102] The I format is an information transmission format used for communication between the master station and the slave station, mainly for requesting or responding to data; the S format is a monitoring format used for communication between slave stations, used to send monitoring or control commands; the U format is an unnumbered format used to control the link status or perform link testing.

[0103] Transmission direction indicates the transmission direction of the message, which is usually the following:

[0104] The sending direction (Send) means that the message is sent from the sender to the receiver; the receiving direction (Receive) means that the message is sent from the receiver to the sender; the bidirectional direction (Bi-directional) means that the message can be transmitted in both directions between the sender and the receiver.

[0105] By combining the transmission primitive and the transmission direction, TPCI can uniquely identify the transmission path and type of the message, ensuring that the message can be correctly sent and received as expected; based on this, this embodiment preferably uses the transmission path identifier to distinguish different message paths, thereby performing a qualitative analysis of the message transmission under the target network environment, and providing an efficient and reliable analysis basis for subsequent network status analysis. In addition, the message type in this embodiment can be understood as the message type in the transmission primitive, including I frame messages, S frame messages, and U frame messages.

[0106] According to the transmission path identifier, the message path information statistics of all the power communication messages to be analyzed are performed to obtain the corresponding network communication status data, and it is determined whether the network communication status data meets the preset network communication requirements, and the corresponding network status analysis results are generated; wherein, the message path information statistics process can be understood as analyzing which master stations and slave stations exist in the actual network based on the transmission primitives in TPCI, and obtaining the number of master devices and slave devices in the network environment according to the analysis results, and determining the networking communication scale of the network environment according to the number of master devices and the number of slave devices, as well as the message transmission direction in TPCI to perform communication delay analysis on each message (for example, calculating the message sending phase delay based on the message sending timestamp and receiving timestamp, calculating the message response phase delay based on the message receiving timestamp and the response reply timestamp, etc.), and the corresponding network communication status data obtained includes the number of master and slave devices, the communication scale and the data response delay. The preset network communication requirements in this embodiment can be understood as the expected benchmark network communication status data set in the power system network design phase, including the master-slave device number threshold, the communication scale threshold and the data response delay threshold at each stage; each indicator in the analyzed network status data is compared with the corresponding threshold, and the corresponding indicator comparison results are generated, and the comparison results of each indicator are summarized to obtain the required network status analysis results.

[0107] According to the message type, the number of types of all power communication messages to be analyzed is counted, and a false connection state identification alarm is issued according to the corresponding number of I frame messages, and each I frame message is classified according to the monitoring direction and the control direction; wherein the message types include I frame messages, S frame messages and U frame messages as described above; I frame messages are information frames used to transmit data, with a length greater than 6 bytes, which are long frames; S frame messages are confirmation frames used to confirm the received I frame, with a length of 6 bytes, which are short frames; U frame messages are control frames used to control start / stop / test, with a length of 6 bytes, which are short frames; therefore, in addition to being able to In addition to counting and classifying various types of messages according to message types, it is also possible to extract S-frame and U-frame messages for communication status determination, extract I-frame messages for actual business analysis, and compare the proportion of I-frame messages in the overall message with the average proportion obtained through statistics of multiple previous time periods to identify whether there is a false connection in the current network. For example, when the latest I-frame message proportion deviates too much from the average value, the user can be reminded in the form of an alarm whether it is in a false connection state (that is, the connection state remains or is constantly reconnected without actual business data transmission and reception), so as to timely discover power communication anomalies. At the same time, it is also possible to extract various command fields of the message. For example, IEC104 messages include control commands (COT), information object addresses (IOA), transmission reasons (COT), transmission reason qualifiers (COT) and quality descriptions (QDS), and various command type messages are counted to meet more detailed analysis needs. In addition, considering the characteristic that when the type identifier field in the actual I frame message is set with different contents, the application data it carries is also different, this embodiment preferably extracts the direction of the message (uplink monitoring direction and downlink control direction) according to the type identifier, and performs the following different classification analysis studies on different directions.

[0108] The power communication message to be analyzed in the monitoring direction is analyzed for business data state changes to generate corresponding business state analysis results; wherein, the business data state change analysis can be understood as a state change analysis based on the specific signal point data carried in the actual message, and corresponding event information is generated according to the state status, and presented to the user in the form of text or other visual data, so that the user can confirm whether the data and state changes are correct, and timely troubleshoot and analyze system abnormalities; preferably, the business state analysis results include telemetry value change graphs, telemetry event information, telesignal value change graphs and telesignal event information, and the specific acquisition process is as follows:

[0109] 1) Distinguish single-point telesignaling, dual-point telesignaling, and telemetering measurement values ​​according to the type identifier;

[0110] 2) For telemetry type messages, parse the measurement value field in the message, which contains the actual measurement data, which is the value of the telemetry displacement; record the telemetry value obtained from each frame of telemetry message, and draw the corresponding telemetry value change graph in the form of message timestamp and telemetry value as X coordinate value and Y coordinate value respectively, so as to intuitively display the change of telemetry value; specifically, after converting the Unix timestamp in the message to UTC time, use IP+RTU address+point number to obtain the signal point contained in the message (a frame of message may contain multiple signal points, each IP+RTU address can confirm a specific device under the IP, and a device may contain multiple signal points), use the corresponding timestamp, point number and telemetry value for each device to store the three-dimensional coordinates, and draw the corresponding three-dimensional coordinate line graph based on the continuously changing coordinates of a series of signal points, and obtain the corresponding telemetry event information based on the parsed timestamp, signal point position and telemetry value, which is used for archiving or comparison with other systems;

[0111] 3) For telesignal type messages, the state of the signal point switch is determined by parsing the SPI value in the quality description structure in the single-point or dual-point telesignal message: single-point telesignal, 0 open and 1 closed; dual-point telesignal, 1 open and 2 closed, 0 and 3 are intermediate states. Specifically, the switch position of each frame of the telesignal message is obtained and recorded, and the time is taken as the x-axis and the switch position is taken as the y-axis to draw the corresponding telesignal value change graph and display it to the user. At the same time, the corresponding telesignal event information can be obtained based on the parsed time, signal point position, and switch position for archiving or comparison with other systems.

[0112] Performing communication quality analysis on the power communication message to be analyzed in the control direction to generate a corresponding remote control quality evaluation result; wherein the communication quality analysis can be understood as a quantitative analysis of the communication quality for the accuracy of remote control delivery, and mainly concerns whether the remote control command is successfully executed and the corresponding execution delay; specifically, the step of performing communication quality analysis on the power communication message to be analyzed in the control direction to generate a corresponding remote control quality evaluation result includes:

[0113] Obtain the remote control command type, remote control result and remote control command timestamp of each power communication message to be analyzed; wherein the remote control command type includes single-point remote signaling and dual-point remote signaling as described above; the corresponding remote control result can be determined as remote control success or remote control failure according to the PN value in the variable structure qualifier of the actual message.

[0114] According to the remote control command timestamp and the preset analysis time period, all the power communication messages to be analyzed in the control direction are classified into time periods, and according to the remote control results, the remote control execution status data corresponding to various remote control command types within each preset time period are counted; the remote control execution status data includes the number of successful executions with normal delays, the number of successful executions with abnormal delays, and the number of failed executions; wherein, the preset analysis time period can be understood as the time segment used for analysis in actual applications, and the specific time period is not limited here; that is, the messages of the transmission path are evenly divided into several time segments by means of the preset analysis time period, and the number of three situations in the remote control command in each time segment, namely, successful execution with normal delay, successful execution but excessive delay, and execution failure, is counted.

[0115] Calculate the proportions of the number of successful executions with normal delays, the number of successful executions with abnormal delays, and the number of failed executions corresponding to various remote control command types respectively, and compare the proportions with the corresponding preset normal remote control type proportion thresholds to obtain the corresponding remote control type quality evaluation results; the specific process of obtaining the remote control type quality evaluation results can be understood as setting in advance according to historical data or industry standards that can reflect the normal communication quality of various remote control command types, and the normal proportions of different execution situations within the preset analysis time period: the proportion of the number of messages executed with normal delays P 1,normal , the percentage of messages that are successfully executed but have abnormal (too long) delays P 2,normal , and the percentage of failed packets P 3,normal ;According to the corresponding number of successful executions with normal delays N1, successful executions with abnormal delays N2 and execution failures N3 of various remote control command types, the corresponding proportions of different execution situations are calculated respectively: the proportion of successful executions with normal delays P1 is N1 / (N1+N2+N3); the proportion of successful executions with abnormal delays P2 is N2 / (N1+N2+N3); the proportion of execution failures P3 is N3 / (N1+N2+N3); and then the deviations between the actual calculated proportions of different execution situations and the corresponding normal proportions of different execution situations are calculated respectively, and each proportion deviation is compared with the corresponding preset deviation threshold, and the communication quality is comprehensively analyzed according to the comparison results of the corresponding deviation threshold: if the execution is successful and the normal delay proportion deviation (P 1,norma -P1) is less than or equal to the corresponding deviation threshold T1, and the execution is successful but the delay exception ratio deviation (P 2,normal -P2) is less than or equal to the corresponding deviation threshold T2, and the execution failure ratio deviation (P 3,normal -P3) is less than or equal to the corresponding deviation threshold T3, it means that the communication quality is good; if the execution is successful and the delay normal number accounts for the deviation (P 1,norma -P1) is greater than the corresponding deviation threshold T1, or the execution is successful but the delay exception ratio deviation (P 2,normal-P2) is greater than the corresponding deviation threshold T2, or the execution failure ratio deviation (P 3,normal -P3) is greater than the corresponding deviation threshold T3, it indicates that the communication quality is poor.

[0116] In actual applications, assuming that the execution results of a certain remote control command type are: the number of successful executions with normal delay (N1) = 80, the number of successful executions with abnormal delay (N2) = 15, and the number of failed executions (N3) = 5; the corresponding normal proportions of different execution situations under the preset normal communication quality are: P 1,norma =0.85, P2=0.10, P3=0.05, and the corresponding deviation thresholds are: T1=0.05, T2=0.03 and T3=0.02. Through calculation, it can be obtained that the proportion of different execution situations in actual situations is P1=80 / (80+15+5)=0.80, P 2= 15 / (80+15+5)=0.15, P3=5 / (80+15+5)=0.05,

[0117] The corresponding proportion deviations are: P 1,norma -P1=0.85-0.80=0.05, P 2,normal -P2=0.15- 0.10=0.05, P 3,normal -P3=0.05-0.05=0.00; it can be seen that P 1,norma -P1 is less than or equal to the corresponding deviation threshold T1, P 2,normal -P2 is greater than the corresponding deviation threshold T2, P 3,normal -P3 is less than or equal to the corresponding deviation threshold T3, that is, P 2,normal -P2 exceeds the corresponding deviation threshold, indicating that the communication quality of the remote control command type is poor. It should be noted that other communication quality evaluation results can be obtained by referring to the above method for analysis. The quality evaluation method provided in this embodiment provides a multi-dimensional comprehensive analysis of different execution situations instead of relying solely on a single-dimensional threshold comparison, which can more comprehensively and accurately evaluate the communication quality of various remote control command types and ensure the accuracy and reliability of the evaluation results.

[0118] If the ratio of the number of successful executions with normal delays, successful executions with abnormal delays, and the number of failed executions does not exceed the threshold, it indicates that the communication quality is good. On the contrary, if it exceeds the threshold, it indicates that the communication quality is poor. At the same time, the degree of communication quality can be determined by further subdividing the delay beyond the range and combining it with the time of monitoring message upload, and giving the corresponding quality evaluation level.

[0119] The remote control type quality assessment results of various remote control command types are summarized to obtain the remote control quality assessment results; wherein the remote control quality assessment results can be understood to include single-point remote signaling quality assessment results and dual-point remote signaling quality assessment results; at the same time, the remote control quality assessment results and the aforementioned network status analysis results can also be comprehensively analyzed to generate a corresponding communication quality situation diagram.

[0120] At the same time, in order to avoid the situation in which the external network analysis device or the internal network analysis device only relies on the data to be analyzed provided by the acquisition device to perform single data source analysis and research and cannot guarantee the reliability of the analysis results in actual applications, this embodiment preferably also integrates and integrates the multi-source data provided by other systems with the analysis results obtained by the external network analysis device or the internal network analysis device, and compares and verifies the correlation, so as to timely discover more potential problems and abnormal situations. Specifically, the step of obtaining the status analysis results also includes:

[0121] Acquire real-time business event data from an external system, and perform business event comparison analysis on the real-time business event data and the business status analysis results to obtain corresponding comparison results, and perform abnormality troubleshooting on associated devices based on the comparison results; the associated devices include message collection devices and network transmission devices.

[0122] The external system in this embodiment can be understood as other systems that monitor the target environment network of the power system, such as the master station system deployed in the power system; the corresponding real-time business event data can be understood as a real-time event E file obtained from the external system, which can be refreshed regularly according to the time interval set by the external system, including the switch position or telemetry value of the signal point, and consists of multiple columns of text. Specifically, each event information includes the plant name, plant number, feeder name, feeder mRID, switch name, switch id, switch number, switch status (1: closed 0: open), measurement status (0: invalid 1: valid), active power, active measurement status (0: invalid 1: valid), reactive power, reactive measurement status (0: invalid 1: valid), current value, current measurement status (0: invalid 1: valid), A phase current value, A phase current status, B phase current value, B phase current status, C phase current value, C phase current status, Uab voltage value, Uab voltage status, Ubc voltage value, Ubc voltage status, Uca voltage value, Uca voltage status and commissioning status, etc.

[0123] At the same time, the real-time event E file itself carries the acquisition time. Therefore, the corresponding equipment can be found according to the plant station, and then the corresponding signal point, that is, the point number in the equipment, can be found through the switch name. At the same time, the switch status, active power, reactive power, current, voltage and other specific values ​​of this signal point are collected, thereby obtaining the three information of time, telesignal value or telemetry value, and point number, and then compared with the real-time telemetry value and switch position in the business status analysis result obtained by the external network analysis device or the internal network analysis device: If the comparison results are exactly the same, it means that there is no abnormality; if the timestamps are consistent but the specific data are different, it means that an abnormality may occur during the data collection process, and it is necessary to check whether there is a problem with the collection equipment on the substation side; if the specific data is consistent but there is an error in the timestamp, it indicates that there is a delay in data transmission, and it is necessary to check the network transmission equipment on the master station side; if the timestamp and the specific data do not match, it is necessary to rule out whether the parameters of the corresponding equipment in the master station settings are inconsistent with the collection measurement.

[0124] The present application embodiment provides Figure 3 The technical solution shown is connected in series with the target network environment through a transparent transmission mode, obtains the power communication message of the target network environment according to the preset filtering conditions including the message protocol filtering condition, the time window filtering condition and the transmission link filtering condition, and stores the power communication message in the preset storage address by partitioning and hashing according to the preset filtering condition, and updates the message data of the preset storage address by adopting the rolling storage mode, so as to transfer the message data of the preset storage address from the external storage device to the external network analysis device according to the message dump range, or directly transmit it to the internal network analysis device for message analysis including network status analysis, business status and remote control quality evaluation, so as to obtain the corresponding status analysis result, which can not only realize plug-and-play portable message collection, but also ensure the real-time analysis of the message on site, and can also classify and safely dump the message to realize off-grid analysis, reduce the security risk of message data storage, and improve the efficiency, reliability and accuracy of data analysis, so as to provide reliable data support for the operation status monitoring of the power system.

[0125] It should be noted that although the steps in the above flowchart are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders.

[0126] In one embodiment, Figure 4 As shown, a message collection and analysis system for a power system is provided, the system comprising:

[0127] The message collection module 1 is used to be serially connected to the target network environment through a transparent transmission mode, and to obtain the power communication message of the target network environment according to preset filtering conditions; the preset filtering conditions include message protocol filtering conditions, time window filtering conditions and transmission link filtering conditions;

[0128] A hash storage module 2, configured to partition and hash the power communication message at a preset storage address according to a preset hash granularity, and update the message data at the preset storage address in a rolling storage mode;

[0129] The dump analysis module 3 is used to respond to the message dump request of the external storage device, extract and pack the message data of the preset storage address according to the acquired message dump range, and transmit the generated data packet to be dumped to the external storage device, so that when the external storage device is connected to the external network analysis device, the data packet to be dumped is imported into the external network analysis device for system operation analysis to obtain the corresponding status analysis result.

[0130] In one embodiment, Figure 5 As shown, a message collection and analysis system for a power system is provided, the system comprising:

[0131] The real-time analysis module 4 is used to transmit the update message data in the preset storage address to the intranet analysis device in real time, so that the intranet analysis device performs system operation analysis according to the update message data to obtain corresponding status analysis results.

[0132] In one embodiment, preferably, the hash storage module includes:

[0133] A protocol message partitioning unit, configured to partition the power communication message according to different message protocol types in the message protocol filtering condition to obtain a plurality of message protocol storage areas;

[0134] A directory information acquisition unit, used to acquire directory creation information of each power communication message in the message protocol storage area; the directory creation information includes timestamp information and transmission link information; the transmission link information includes a source IP address, a destination IP address, a source MAC address and a destination MAC address;

[0135] A directory information processing unit, used to convert the timestamp information and transmission link information in each directory creation information into corresponding standard formats respectively, and then sequentially concatenate them to obtain corresponding directory creation character string information;

[0136] A hash set creation unit, configured to scan and classify the directory creation string information of all power communication messages in the message protocol storage area according to the preset hash granularity, generate multiple message hash sets, and generate corresponding hash set names according to the hash granularity information corresponding to the message hash sets; the preset hash granularity includes timestamp granularity and transmission link granularity;

[0137] A storage tree construction unit, used to perform hash calculations on each hash set name of the message protocol storage area to obtain a corresponding set hash value, and perform multiple collision detections on all set hash values ​​according to secondary detection and re-hashing, and generate a corresponding protocol message storage tree according to the corresponding hash results;

[0138] The message storage unit is used to store the corresponding power communication message in the preset storage address according to the protocol message storage tree.

[0139] For the specific definition of the message collection and analysis system of the power system, please refer to the definition of the message collection and analysis method of the power system above, and the corresponding technical effects can also be equivalently obtained, which will not be repeated here. Each module in the above-mentioned message collection and analysis system of the power system can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0140] In summary, an embodiment of the present invention provides a message collection and analysis method and system for an electric power system, wherein the message collection and analysis method for the electric power system realizes serial connection with a target network environment through a transparent transmission mode, obtains the electric power communication message of the target network environment according to preset filtering conditions including message protocol filtering conditions, time window filtering conditions and transmission link filtering conditions, and stores the electric power communication message in a preset storage address by partitioning and hashing according to the preset filtering conditions, and updates the message data of the preset storage address by adopting a rolling storage mode, so as to transfer the message data of the preset storage address from an external storage device to an external network analysis device or directly to an internal network analysis device according to the message dump range to perform message analysis including network status analysis, business status and remote control quality assessment, and obtain a technical solution for the corresponding status analysis result. The method can not only realize plug-and-play portable message collection, but also ensure on-site real-time analysis of messages, and can also classify and safely dump messages to realize off-grid analysis, reduce the security risk of message data storage, and improve the efficiency, reliability and accuracy of data analysis, thereby providing reliable data support for the operation status monitoring of the electric power system.

[0141] Each embodiment in this specification is described in a progressive manner, and the same or similar parts of each embodiment can be directly referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. It should be noted that the technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0142] The above-mentioned embodiments only express several preferred implementation modes of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in the technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention, and these improvements and substitutions should also be regarded as the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be based on the protection scope of the claims.

Claims

1. A method for collecting and analyzing messages in a power system, characterized in that: The method comprises the following steps: Connecting to the target network environment in series through a transparent transmission mode and obtaining the power communication message of the target network environment according to preset filtering conditions; the preset filtering conditions include message protocol filtering conditions, time window filtering conditions and transmission link filtering conditions; The power communication message is partitioned and hashed and stored in a preset storage address according to a preset hash granularity, and the message data of the preset storage address is updated in a rolling storage mode; In response to a message dump request from an external storage device, extracting and packaging message data at the preset storage address according to the acquired message dump range, and transmitting the generated data packets to be dumped to the external storage device, so that when the external storage device is connected to an external network analysis device, the data packets to be dumped are imported into the external network analysis device for system operation analysis to obtain corresponding status analysis results; The step of partitioning and hashing the power communication message at a preset storage address according to a preset hash granularity includes: partitioning the power communication message according to different message protocol types in the message protocol filtering condition to obtain a plurality of message protocol storage areas; Obtain directory creation information of each power communication message in the message protocol storage area; the directory creation information includes timestamp information and transmission link information; the transmission link information includes source IP address, destination IP address, source MAC address and destination MAC address; After converting the timestamp information and transmission link information in each directory creation information into corresponding standard formats, the corresponding directory creation string information is obtained by sequentially splicing them together; According to the preset hash granularity, directory creation string information of all power communication messages in the message protocol storage area is scanned and classified to generate multiple message hash sets, and corresponding hash set names are generated according to hash granularity information corresponding to the message hash sets; the preset hash granularity includes timestamp granularity and transmission link granularity; Perform hash calculations on each hash set name of the message protocol storage area to obtain corresponding set hash values, perform multiple collision detections on all set hash values ​​according to secondary detection and rehashing, and generate corresponding protocol message storage trees according to corresponding hash results; According to the protocol message storage tree, the corresponding power communication message is stored in the preset storage address.

2. The message collection and analysis method for the power system according to claim 1, characterized in that: The method further comprises: The update message data in the preset storage address is transmitted to the intranet analysis device in real time, so that the intranet analysis device performs system operation analysis according to the update message data to obtain corresponding status analysis results.

3. The message collection and analysis method for the power system according to claim 1, characterized in that: The step of performing multiple collision detection on all set hash values ​​according to the secondary detection and rehashing comprises: Perform a repeatability check on all set hash values, mark the message hash sets corresponding to non-repeated set hash values ​​as full buckets, mark the message hash sets corresponding to repeated set hash values ​​as hash subsets, merge the hash subsets with the same set hash value into a new hash set, and mark the new hash set as a defective bucket; While keeping the message hash set with the full bucket mark unchanged, according to the adjusted hash granularity, the directory of all power communication messages in each new hash set with the defective bucket mark is re-scanned and classified by creating string information, and multiple message hash subsets and corresponding hash subset names are generated; Perform hash calculation on each hash subset name to obtain the corresponding subset hash value, and perform hash detection on all subset hash values. If there is no repeated hash value, stop hashing. Otherwise, merge the message hash subsets corresponding to the repeated hash value and hash them three times, and directly merge the repeated subsets after three hashes.

4. The message collection and analysis method for the power system according to claim 1 or 2, characterized in that: The status analysis results include network status analysis results, service status analysis results and remote control quality assessment results; The step of obtaining the status analysis result includes: Receiving power communication message data to be analyzed, parsing each power communication message to be analyzed according to a preset communication protocol message parsing tree, and obtaining a corresponding transmission path identifier and a corresponding message type; Based on the transmission path identifier, the message path information of all power communication messages to be analyzed is collected to obtain corresponding network communication status data, and it is determined whether the network communication status data meets the preset network communication requirements, thereby generating a corresponding network status analysis result; the network communication status data includes the number of master and slave devices, the communication scale, and the data response delay; According to the message type, the number of types of all power communication messages to be analyzed is counted, a false connection state identification alarm is issued according to the number of corresponding I-frame messages, and each I-frame message is classified according to the monitoring direction and the control direction; Analyze the business data status changes of the power communication message to be analyzed in the monitoring direction to generate corresponding business status analysis results; the business status analysis results include a telemetry value change graph, telemetry event information, a telesignaling value change graph and telesignaling event information; The power communication message to be analyzed in the control direction is subjected to communication quality analysis to generate corresponding remote control quality assessment results.

5. The message collection and analysis method for the power system according to claim 4, characterized in that: The step of performing communication quality analysis on the power communication message to be analyzed in the control direction to generate a corresponding remote control quality assessment result includes: Obtain the remote control command type, remote control result, and remote control command timestamp of each power communication message to be analyzed; Based on the remote control command timestamp and the preset analysis time period, all power communication messages to be analyzed in the control direction are classified into time periods, and based on the remote control results, remote control execution data corresponding to various remote control command types within each preset time period is counted; the remote control execution data includes the number of successful executions with normal delays, the number of successful executions with abnormal delays, and the number of failed executions; Calculate the ratio of the number of successful executions with normal delays, the number of successful executions with abnormal delays, and the number of failed executions corresponding to various remote control command types, and compare the ratios with the corresponding preset normal remote control type ratio thresholds to obtain the corresponding remote control type quality assessment results; The remote control type quality evaluation results of various remote control command types are aggregated to obtain the remote control quality evaluation result.

6. The message collection and analysis method for the power system according to claim 4, characterized in that: The step of obtaining the status analysis result further includes: Acquire real-time business event data from an external system, perform business event comparison analysis on the real-time business event data and the business status analysis results, obtain corresponding comparison results, and perform abnormality troubleshooting on associated devices based on the comparison results; the associated devices include message collection devices and network transmission devices.

7. A message collection and analysis system for a power system, characterized in that: The system comprises: A message collection module is configured to connect to a target network environment in a transparent transmission mode and obtain power communication messages from the target network environment according to preset filtering conditions; the preset filtering conditions include message protocol filtering conditions, time window filtering conditions, and transmission link filtering conditions; A hash storage module, configured to partition and hash the power communication message at a preset storage address according to a preset hash granularity, and update the message data at the preset storage address in a rolling storage mode; A dump analysis module, configured to extract and package the message data at the preset storage address in response to a message dump request from an external storage device according to an acquired message dump range, and transmit the generated data packets to be dumped to the external storage device, so that when the external storage device is connected to an external network analysis device, the data packets to be dumped are imported into the external network analysis device for system operation analysis to obtain corresponding status analysis results; Wherein, the hash storage module includes: a protocol message partitioning unit, configured to partition the power communication message according to different message protocol types in the message protocol filtering condition to obtain a plurality of message protocol storage areas; a directory information acquisition unit, configured to acquire directory creation information of each power communication message in the message protocol storage area; the directory creation information includes timestamp information and transmission link information; the transmission link information includes a source IP address, a destination IP address, a source MAC address, and a destination MAC address; A directory information processing unit, configured to convert the timestamp information and transmission link information in each directory creation information into corresponding standard formats, and then sequentially concatenate them to obtain corresponding directory creation character string information; a hash set creation unit, configured to scan and classify directory creation string information of all power communication messages in the message protocol storage area according to the preset hash granularity, generate a plurality of message hash sets, and generate corresponding hash set names according to the hash granularity information corresponding to the message hash sets; the preset hash granularity includes timestamp granularity and transmission link granularity; A storage tree construction unit is used to perform hash calculations on each hash set name of the message protocol storage area to obtain a corresponding set hash value, perform multiple collision detection on all set hash values ​​according to secondary detection and rehashing, and generate a corresponding protocol message storage tree according to the corresponding hash results; The message storage unit is used to store the corresponding power communication message in the preset storage address according to the protocol message storage tree.

8. The message collection and analysis system for the power system according to claim 7, characterized in that: The system further comprises: The real-time analysis module is used to transmit the update message data in the preset storage address to the intranet analysis device in real time, so that the intranet analysis device performs system operation analysis based on the update message data to obtain corresponding status analysis results.