A method and device for identifying abnormality in a substation process layer network

By analyzing substation configuration files and monitoring network traffic data, support vector machines and decision trees are used to identify abnormal states of the substation process layer network, which solves the problem of being unable to identify process layer network abnormalities in the existing technology and improves network communication quality and operation and maintenance. efficiency.

CN118055038BActive Publication Date: 2024-09-20INFORMATION & COMM BRANCH OF STATE GRID JIANGSU ELECTRIC POWER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410034654.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-09
Publication Date
2024-09-20
Estimated Expiration
2044-01-09

AI Technical Summary

Technical Problem

Existing technologies cannot effectively identify and resolve abnormalities in the substation process layer network, resulting in network communication problems and affecting the reliability of the relay protection system.

Method used

By parsing the substation configuration file, we obtain the process layer network structure and communication path, monitor network traffic data, extract time domain and frequency domain features, use support vector machines to identify traffic anomalies, build a decision tree to determine the network status, and find faulty equipment to identify anomalies. .

Benefits of technology

It realizes the identification of abnormal status of the substation process layer network, improves the quality of network communication, ensures the smooth development of business, reduces the efficiency of operation and maintenance, and improves the accuracy and interpretability of anomaly detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118055038B
    Figure CN118055038B
Patent Text Reader

Abstract

The present invention provides a method and device for identifying abnormalities in a substation process layer network. The method and device sense the network structure and communication path of the substation configuration file in the process layer network, monitor the flow data of the process layer network, identify the flow abnormality by extracting time domain features and frequency domain features using a support vector machine, identify the abnormal state of messages based on the sending time interval and occurrence frequency of substation event messages and sampling value messages, and judge the abnormal state of the substation process layer network by building a decision tree.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power network, and in particular to a method and device for identifying abnormalities in a substation process layer network. Background Art

[0002] The automation of power systems can be divided into three levels in terms of logical structure: "process layer", "interval layer" and "station control layer". The interval layer mainly refers to relay protection, measurement and control, wave recording, etc. The station control layer mainly refers to plant-level monitoring, and the process layer refers to the intelligent equipment in the digital substation.

[0003] The substation process layer network is the basis for information transmission and sharing of smart substations. Its performance determines the safe and reliable operation of smart substations and even power grids. The information flow of the process layer network of smart substations carries not only the grid operation status data such as sampling and switch status, but also the control commands such as tripping and locking between secondary devices. The performance of the process layer network can ultimately be characterized by characteristic indicators such as the distribution characteristics, real-time, reliability and synchronization of the information flow. In the case of abnormal network data caused by equipment abnormality, the process layer network may experience many abnormal situations such as network congestion, data loss, broadcast storms, etc., which will seriously affect the real-time and reliability of the information flow and bring challenges to the reliable operation of secondary systems such as relay protection. Therefore, the abnormal identification of the substation process layer network is one of the important guarantee technologies to alleviate network communication problems, improve network communication quality, and ensure the smooth development of various substation businesses. Although there are methods for identifying power grid faults in the existing technology, there is no solution for abnormal identification of the substation process layer network. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method and device for identifying abnormalities in a substation process layer network to eliminate or improve one or more defects existing in the prior art and solve the problem that the prior art cannot perform abnormality detection on the substation process layer network.

[0005] In one aspect, the present invention provides a method for identifying abnormalities in a substation process layer network, the method comprising the following steps:

[0006] Parse the substation configuration file to obtain the process layer network structure and communication path based on intelligent electronic devices;

[0007] Monitor process layer network traffic data, including substation event messages and sampling value messages for general objects in the current period; obtain the event counter value, the first message counter value and the first sending time interval in the substation event message, and obtain the first intelligent electronic device identifier of the control block path mark in the substation event message; obtain the second message counter value and the second sending time interval in the sampling value message, and obtain the second intelligent electronic device identifier corresponding to the sampling value ID in the substation event message;

[0008] Obtaining the time domain features and frequency domain features of the process layer network traffic data in the current time period, the time domain features including the number of intelligent electronic devices running in the current time period, the number of port connections, the number of host connections with the same identifier, the number of connections with the same message type, the number of connections with the same host and message type, and the number of connections with different hosts and the same message type; the frequency domain features including the size of the uplink traffic and the size of the downlink traffic between the interval layer and the process layer intelligent electronic devices; inputting the time domain features and the frequency domain features into a pre-trained support vector machine to identify abnormal traffic conditions;

[0009] Classifying the substation event message and the sampled value message in the current time period according to the access point name and constructing a substation event message sequence and a sampled value message sequence according to a timestamp sequence, and checking the first message counter and the second message counter to identify an abnormal state of message continuity;

[0010] Counting the first minimum sending time interval and the first maximum sending time interval of the substation event message within a preset normal operating time period, and the second minimum sending time interval and the second maximum sending time interval of the sampled value message; dividing the preset normal operating time period into multiple sub-time periods, counting the occurrence frequency of the substation event message within each sub-time period, and marking the first upper bound and the first lower bound of the occurrence frequency of the substation event message; obtaining the first time interval, the occurrence frequency of the substation event message and the second time interval of the sampled value message within the current time period, and comparing them with the first minimum sending time interval, the first maximum sending time interval, the second minimum sending time interval, the second maximum sending time interval, the first upper bound and the first lower bound to determine the abnormal state of the message;

[0011] A decision tree is constructed with the abnormal flow state as the root node, the abnormal message continuity state and the abnormal message state of the substation event message sequence and the sampling value message sequence as intermediate nodes, and normal, discontinuous messages, excessive flow abnormality and low flow abnormality as leaf nodes to perform substation process layer network abnormality judgment.

[0012] In some embodiments, before inputting the time domain features and the frequency domain features into a pre-trained support vector machine, the method further includes: normalizing the time domain features and the frequency domain features of each traffic segment.

[0013] In some embodiments, the support vector machine training method includes:

[0014] The process layer network traffic data in the normal state in the sample period is divided into a set number of sample traffic segments through the sliding window, and the sample time domain features and sample frequency domain features are extracted from each sample traffic segment, and a training sample set is constructed; the sample time domain features include the number of intelligent electronic devices running in the current time period, the number of port connections, the number of host connections with the same identifier, the number of connections with the same message type, the number of connections with the same host and message type, and the number of connections with different hosts and the same message type; the sample frequency domain features include the size of the uplink traffic and the size of the downlink traffic between the interval layer and the process layer intelligent electronic devices;

[0015] A first-class support vector machine is constructed based on the training sample set, so that the feature vectors of all sample traffic segments in a normal state fall into the hypersphere constructed by the first-class support vector machine.

[0016] In some embodiments, a support vector machine is constructed based on the training sample set, and the expression is:

[0017]

[0018] ||s i -o|| 2 ≤r+δ i ;

[0019] Wherein, o represents the center of the hypersphere, r represents the radius of the hypersphere, V(o,r) represents the volume of the hypersphere, C represents the penalty coefficient, δ i represents the slack variable, 1≤i≤m, m represents the number of samples, S i represents the i-th sample.

[0020] In some embodiments, the preset normal operation time period is divided into a plurality of sub-time periods, and the occurrence frequency of the substation event message in each sub-time period is counted, including:

[0021] For the normal operation period [0, T], K time periods are randomly selected, [bgn k , end k ]∈[0,T],1≤k≤K;

[0022] The number of events corresponding to the substation event message in the kth time period is counted as entNum k, the frequency calculation formula of time occurrence in the kth time period is:

[0023] avgEntNum k =entNum k / (end k -bgn k ).

[0024] In some embodiments, a decision tree is constructed with the abnormal flow state as the root node, the abnormal message continuity state and the abnormal message state of the substation event message sequence and the sampled value message sequence as the intermediate nodes, and normal, discontinuous messages, abnormal overflow and abnormal low flow as leaf nodes. The decision tree is traversed from top to bottom to determine the rules, including:

[0025] If the flow status is normal and the message continuity status is normal, then the substation process layer network status is determined to be normal;

[0026] If the flow state is normal and the message continuity state is discontinuous, then the substation process layer network state is determined to be message discontinuous;

[0027] If the flow state is abnormal, the message type is a sampling value message and its message sending interval is less than the second minimum sending time interval, then the substation process layer network state is determined to be abnormal overflow;

[0028] If the flow state is abnormal, the message type is a sampling value message and its message sending interval is greater than the second maximum sending time interval, then the substation process layer network state is determined to be low flow abnormality;

[0029] If the flow state is abnormal, the message type is a substation event message, the frequency of occurrence is within the expected range, and the message sending interval is less than the first minimum sending time interval, then the substation process layer network state is determined to be abnormal overflow;

[0030] If the flow state is abnormal, the message type is a substation event message, and the frequency of occurrence is within the expected range, and the message sending interval is greater than the first maximum sending time interval, then the substation process layer network state is determined to be low flow abnormality;

[0031] If the flow state is abnormal, the message type is a substation event message, and the frequency of occurrence is higher than the expected range, then the substation process layer network state is determined to be abnormal overflow;

[0032] If the flow state is abnormal, the message type is a substation event message, and the occurrence frequency is lower than the expected range, then the substation process layer network state is determined to be low flow abnormality.

[0033] In some embodiments, the method further comprises:

[0034] When it is determined that the substation process layer network is message discontinuous, overflow abnormal or underflow abnormal, according to the process layer network structure and the communication path, the first intelligent electronic device identifiers at both ends of the substation event message transmission link and the first type of switches on the path are searched, or the second intelligent electronic device identifiers at both ends of the sampling value message transmission link and the second type of switches on the path are searched;

[0035] If the abnormal type is message discontinuity, it is determined that the first type switch or the second type switch is faulty;

[0036] If the abnormality type is an over-flow abnormality or a low-flow abnormality, it is determined that the first intelligent electronic device is identified as faulty or the second intelligent electronic device is faulty.

[0037] In some embodiments, the method further includes: generating and displaying an alarm prompt based on the fault judgment result.

[0038] On the other hand, the present invention provides a substation process layer network anomaly identification device, including a processor and a memory, wherein the memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the above method.

[0039] On the other hand, the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that the program implements the steps of the above method when executed by a processor.

[0040] The beneficial effects of the present invention are at least:

[0041] The method and device for identifying abnormalities in the process layer network of a substation described in the present invention sense the network structure and communication path of the substation configuration file in the process layer network, monitor the flow data of the process layer network, identify flow abnormalities by extracting time domain features and frequency domain features using a support vector machine, identify abnormal message states based on the sending time interval and occurrence frequency of substation event messages and sampling value messages, and determine the abnormal state of the process layer network of the substation by constructing a decision tree.

[0042] Furthermore, the decision tree is used to traverse the judgment rules from top to bottom to identify the four states of the substation process layer network: normal, message discontinuity, over-flow abnormality and under-flow abnormality.

[0043] Furthermore, based on the abnormal status of the substation process layer network, the switches on the corresponding communication path and the intelligent electronic devices at both ends are found to identify the fault point.

[0044] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention may be achieved and obtained by the structures specifically indicated in the specification and the accompanying drawings.

[0045] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of the present application, and do not constitute a limitation of the present invention. In the drawings:

[0047] Figure 1 The present invention is a flowchart of a method for identifying substation process layer network anomalies based on traffic and message analysis according to an embodiment of the present invention.

[0048] Figure 2 The figure is a schematic diagram of the process of building a traffic-oriented anomaly detection model in one embodiment of the present invention.

[0049] Figure 3 Schematic diagram of a decision tree for process layer network anomaly analysis in one embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0051] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.

[0052] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.

[0053] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.

[0054] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.

[0055] The basic idea of ​​identifying anomalies in the process layer network of a substation is to analyze the network structure of the process layer of the substation, obtain the traffic during operation by means of traffic collection, perform statistical analysis or feature extraction on the traffic and messages, and then apply machine learning, data mining or deep learning and other technologies to establish a network profile of the process layer of the substation, capture the changing rules of the network traffic and messages in the process layer of the substation, and then realize network anomaly detection and identify the causes of abnormal behavior. According to the construction specifications of the substation monitoring system, the deployed collection device supports the collection of the following contents: system operation status information, configuration information, traffic information and security alarm information, which provide good data support for network anomaly identification. Therefore, the data-driven method has gradually become the mainstream technical means for identifying anomalies in the process layer network of substations.

[0056] Most of the existing anomaly identification methods in the prior art are oriented to the entire substation communication network, and do not specifically solve the problem of anomaly identification in the substation process layer network, resulting in the anomaly identification method ignoring the structural differences and communication differences in the process layer network; although the statistical characteristics of traffic and messages are considered, there is a lack of in-depth analysis of traffic and messages, and the differences between substation event messages (GOOSE messages) and sampled value messages (SV messages) are ignored, resulting in the need to improve the accuracy of anomaly identification; in addition, although the existing technology can detect and discover anomalies and issue alarms, it lacks root cause analysis of the anomalies, that is, it cannot well explain why it is judged to be abnormal, thereby reducing the operation and maintenance efficiency of the substation.

[0057] The present invention provides a method and device for identifying anomalies in a process layer network of a substation. The method takes the process layer network of an intelligent substation as the object, captures flow data through a flow collection method, establishes an anomaly detection model oriented to flow characteristics and an anomaly detection model oriented to messages from the perspectives of flow and messages, respectively, and then integrates the detection results of the two anomaly detection models to improve the accuracy of anomaly detection. At the same time, by parsing the intelligent substation configuration file (System Configuration Description, SCD) file, a communication link between intelligent electronic devices is established, and fault location is achieved through cause analysis of the anomaly detection results, thereby improving the interpretability of anomaly detection.

[0058] Specifically, the present invention provides a method for identifying abnormalities in a substation process layer network, referring to Figure 1 The method comprises the following steps S101 to S106:

[0059] Step S101: Parse the substation configuration file to obtain the process layer network structure and communication path based on the intelligent electronic device.

[0060] Step S102: Monitor process layer network traffic data, including substation event messages and sampling value messages for general objects in the current time period; obtain the event counter value, the first message counter value and the first sending time interval in the substation event message, and obtain the first intelligent electronic device identifier of the control block path mark in the substation event message; obtain the second message counter value and the second sending time interval in the sampling value message, and obtain the second intelligent electronic device identifier corresponding to the sampling value ID in the substation event message.

[0061] Step S103: Obtain the time domain characteristics and frequency domain characteristics of the process layer network traffic data in the current time period, the time domain characteristics include the number of intelligent electronic devices running in the current time period, the number of port connections, the number of host connections with the same identifier, the number of connections with the same message type, the number of connections with the same host and message type, and the number of connections with different hosts but the same message type; the frequency domain characteristics include the size of the uplink traffic and the size of the downlink traffic between the interval layer and the process layer intelligent electronic devices; input the time domain characteristics and frequency domain characteristics into a pre-trained support vector machine to identify abnormal traffic conditions.

[0062] Step S104: classify the substation event messages and sampled value messages in the current time period according to the access point name and construct the substation event message sequence and sampled value message sequence according to the timestamp sequence, and check the first message counter and the second message counter to identify the abnormal state of message continuity.

[0063] Step S105: Count the first minimum sending time interval and the first maximum sending time interval of the substation event message within the preset normal operating time period, and the second minimum sending time interval and the second maximum sending time interval of the sampling value message; divide the preset normal operating time period into multiple sub-time periods, count the occurrence frequency of the substation event message within each sub-time period, and mark the first upper bound and the first lower bound of the occurrence frequency of the substation event message; obtain the first time interval, the occurrence frequency of the substation event message and the second time interval of the sampling value message within the current time period, and compare them with the first minimum sending time interval, the first maximum sending time interval, the second minimum sending time interval, the second maximum sending time interval, the first upper bound and the first lower bound to determine the abnormal state of the message.

[0064] Step S106: Take the abnormal flow state as the root node, the abnormal message continuity state and the abnormal message state of the substation event message sequence and the sampling value message sequence as the intermediate nodes, and build a decision tree with normal, discontinuous messages, excessive flow abnormality and low flow abnormality as leaf nodes to perform substation process layer network abnormality judgment.

[0065] In step S101, the smart substation configuration file SCD (Smart Substation Configuration Description) is the basis of the entire smart substation configuration file. The SCD file is mainly composed of 5 elements, including: 1) Information Header (Header): used to identify the configuration version number of the SCD file and specify the mapping between relevant names and signals. 2) Substation description (Substation): mainly describes the functional structure, primary equipment and primary topology of the substation. 3) Intelligent electronic device description (IED description): mainly describes the configuration and function of each IED, including access point (Access Point), logical device (LDevice), logical node (LNode), data object and other information. 4) Communication system description (Communication): describes the connection relationship of the communication network through the logical bus and IED access point. 5) Data type template (Data TypeTemplates): describes the logical node type, data object type, data attribute type and enumeration type in the SCD file. The smart substation configuration file is in XML format. The substation communication system model is parsed and extracted from the SCD file, and a message configuration table for intelligent electronic devices is established to mark the application identifiers of message sending and receiving, the names of the intelligent electronic devices (IEDs) at both ends, the access point name, the message type, the control block name, and the logical device instance.

[0066] In step S102, by collecting process layer network traffic data in real time, substation event messages (GOOSE) and sampled value messages (SV) are captured, and the fields in the messages related to forwarding characteristics are parsed. Among them, the event counter and the first message counter are used to mark the number of events and the number of messages, and can be used to mark and check the continuity of substation event messages. Similarly, the second message counter can be used to check the continuity of sampled value messages.

[0067] In step S103, for the flow data generated by the process layer network, features are obtained from the time domain and frequency domain. Specifically, in this embodiment, there are 6 time domain features, including the number of intelligent electronic devices running in the current time period, the number of port connections, the number of host connections with the same identifier, the number of connections with the same message type, the number of connections with the same host and message type, and the number of connections with different hosts and the same message type; there are 2 frequency domain features, including: the size of the uplink flow and the size of the downlink flow between the interval layer and the process layer intelligent electronic devices.

[0068] In some embodiments, before inputting the time domain features and the frequency domain features into the pre-trained support vector machine, the method further includes: normalizing the time domain features and the frequency domain features of each traffic segment to eliminate the influence of the range difference of the feature values.

[0069] In some embodiments, the pre-trained support vector machine may adopt a one-class support vector machine (OC-SVM for short), and the training method includes steps S201 to S202:

[0070] Step S201: Divide the process layer network traffic data in the normal state in the sample period into a set number of sample traffic segments through a sliding window, extract sample time domain features and sample frequency domain features from each sample traffic segment, and construct a training sample set; the sample time domain features include the number of intelligent electronic devices running in the current time period, the number of port connections, the number of host connections with the same identifier, the number of connections with the same message type, the number of connections with the same host and message type, and the number of connections with different hosts but the same message type; the sample frequency domain features include the size of the uplink traffic and the size of the downlink traffic between the interval layer and the process layer intelligent electronic devices.

[0071] Step S202: construct a first-class support vector machine based on the training sample set, so that the feature vectors of all sample traffic segments in a normal state fall into the hypersphere constructed by the first-class support vector machine.

[0072] In some embodiments, a support vector machine is constructed based on the training sample set, and the expression is:

[0073]

[0074] ||s i -o|| 2 ≤r+δ i ;

[0075] Where o represents the center of the hypersphere, r represents the radius of the hypersphere, V(o,r) represents the volume of the hypersphere, C represents the penalty coefficient, δ i represents the slack variable, 1≤i≤m, m represents the number of samples, S i represents the i-th sample.

[0076] In step S104, by checking the continuity of the first message counter and the second message counter, it is determined whether there is a continuity anomaly.

[0077] In step S105, the substation event message and the sampling value message in the normal operation period are read, and the sending interval time is counted to determine the maximum and minimum values ​​of the sending interval time. The number of events recorded in the substation event message is counted, the number of events per unit time, that is, the frequency of occurrence, is calculated, and the upper and lower limits are obtained; the message sending time interval is compared with the maximum and minimum values ​​of the sending time interval in the normal time period, and the event occurrence frequency is compared with the expected range, that is, compared with the upper and lower limits, so that the abnormal state of the message can be identified.

[0078] In some embodiments, the preset normal operation time period is divided into a plurality of sub-time periods, and the occurrence frequency of substation event messages in each sub-time period is counted, including steps S301 to S302:

[0079] Step S301: Randomly select K time periods from the normal operation period [0, T], [bgn k , end k ]∈[0,T],1≤k≤K.

[0080] Step S302: Count the number of events corresponding to the substation event message in the kth time period as entNum k , the frequency calculation formula of time occurrence in the kth time period is:

[0081] avgEntNum k =entNum k / (end k -bgn k ).

[0082] Furthermore, after sorting the average number of events of K samplings, the lower bound and the upper bound of the expected number of events are determined.

[0083] In step S106, a decision tree is constructed to provide a method for determining abnormal conditions.

[0084] In some embodiments, a decision tree is constructed with the abnormal flow state as the root node, the abnormal message continuity state and the abnormal message state of the substation event message sequence and the sampling value message sequence as the intermediate nodes, and normal, discontinuous messages, abnormal overflow and abnormal low flow as leaf nodes. The decision tree is traversed from top to bottom to determine the rules including:

[0085] If the flow status is normal and the message continuity status is normal, the substation process layer network status is determined to be normal.

[0086] If the flow status is normal and the message continuity status is discontinuous, the substation process layer network status is determined to be message discontinuous.

[0087] If the flow state is abnormal, the message type is a sampling value message and its message sending interval is less than the second minimum sending time interval, then the substation process layer network state is determined to be abnormal overflow.

[0088] If the flow state is abnormal, the message type is a sampling value message and its message sending interval is greater than the second maximum sending time interval, then the substation process layer network state is determined to be low flow abnormality.

[0089] If the flow state is abnormal, the message type is a substation event message, the frequency of occurrence is within the expected range, and the message sending interval is less than the first minimum sending time interval, then the substation process layer network state is determined to be abnormal overflow.

[0090] If the flow state is abnormal, the message type is a substation event message, the frequency of occurrence is within the expected range, and the message sending interval is greater than the first maximum sending time interval, then the substation process layer network state is determined to be low flow abnormality.

[0091] If the flow state is abnormal, the message type is a substation event message, and the frequency of occurrence is higher than the expected range, then the substation process layer network state is determined to be abnormal overflow.

[0092] If the flow state is abnormal, the message type is a substation event message, and the frequency of occurrence is lower than the expected range, then the substation process layer network state is determined to be low flow abnormality.

[0093] In some embodiments, the method further includes steps S401 to S403:

[0094] Step S401: When it is determined that the substation process layer network is message discontinuous, overflow abnormal or underflow abnormal, the first intelligent electronic device identifiers at both ends of the substation event message transmission link and the first type of switch on the path are searched according to the process layer network structure and the communication path, or the second intelligent electronic device identifiers at both ends of the sampling value message transmission link and the second type of switch on the path are searched.

[0095] Step S402: If the abnormal type is message discontinuity, it is determined that the first type switch or the second type switch is faulty.

[0096] Step S403: If the abnormality type is an over-flow abnormality or a low-flow abnormality, it is determined that the first intelligent electronic device is identified or the second intelligent electronic device is faulty.

[0097] In some embodiments, the method further includes: generating and displaying an alarm prompt based on the fault judgment result.

[0098] On the other hand, the present invention provides a substation process layer network anomaly identification device, including a processor and a memory, wherein the memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the above method.

[0099] On the other hand, the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that the program implements the steps of the above method when executed by a processor.

[0100] The present invention is described below in conjunction with a specific embodiment:

[0101] This embodiment provides a method for identifying substation process layer network anomalies based on traffic and message analysis, such as Figure 1 As shown, the following steps are included:

[0102] (1) Parsing the substation configuration file SCD to perceive the network structure and communication path. First, the intelligent electric device (IED) message sending configuration information in the SCD file in XML format is parsed to extract the message sending interval and detailed sending settings.

[0103] Specifically, configure the section from the SCD file <sampledvaluecontrol>The configuration item smpRate extracts the SV message sending time interval Δ t1 , indicating the number of packets per second.

[0104] Configuring sections from an SCD file <sampledvaluecontrol>The configuration item MinTime extracts the minimum sending time interval Δ of the GOOSE message t2 , which indicates the time interval between the first frame burst message and the second frame burst message when a substation event such as a device failure occurs, in milliseconds.

[0105] Configuring sections from an SCD file <communication>The substation communication system model is parsed and extracted, and the IED sending message configuration table is established, as shown in Table 1. The application identifier determines the message type GOOSE or SV message. The range between 0x4000 and 0x7FFF represents SV message, while the range between 0x0000 and 0x3FFF represents GOOSE message. The access point represents the communication access point that can send GOOSE or SV messages. Each message is uniquely identified by the control block name and the logical device instance.

[0106] Table 1 IED sending message configuration information table

[0107]

[0108]

[0109] Secondly, parse the message receiving configuration information in the SCD to extract the IED receiving message settings. Specifically, configure the node from the SCD file. <communication>Configuration items <extref>Analyze and use <extref>The provided IED name, control block name and logical device instance information are searched in Table 1 to obtain the application identifier of the received message and establish the IED receiving message configuration table, as shown in Table 2.

[0110] Table 2 IED receiving message configuration information table

[0111] Serial number Application Identification IED Name Access Point Name Message Type Logical Device Instance 1 0x4001 2 … … … … …

[0112] Finally, the process layer network device association matrix describes the network structure. Combining Table 1 and Table 2 to obtain the virtual connections between all IED devices in the entire substation and the corresponding relationship between different access points of different IED devices, an n×n process layer network device association matrix is ​​established, where n represents the number of all access points provided by the process layer network devices.

[0113] (2) Process layer network traffic data collection and preprocessing. First, the traffic data is collected in real time on the mirror port of the industrial Ethernet switch deployed in the process layer network to capture the message. Secondly, the message information is extracted by protocol matching by obtaining real-time network messages, GOOSE messages and SV messages are identified, and the application identifier carried by the message is extracted.

[0114] For the GOOSE message, further extract the event counter value stNum and message counter value sqNum contained in the message, and the message sending time interval Δt G And the control block path GoCB of the message, and extract the corresponding IED name iedName from the control block path.

[0115] For SV messages, extract the message counter value svNum and the message sending time interval Δt S And the sampling value ID of the message, and extract the corresponding IED name iedName from the sampling value ID.

[0116] Finally, according to the process layer network device association matrix established in step (1), the GOOSE message sequence and SV message sequence for inter-device communication are constructed based on the communication link.

[0117] (3) Construct an anomaly detection model for traffic characteristics. Taking advantage of the fact that SV messages and GOOSE messages have periodicity when the substation is in a stable operating state, which makes the traffic tend to be stable, the traffic characteristics are extracted from the time domain and frequency domain respectively, and then an anomaly detection model for traffic characteristics is constructed, such as Figure 2 shown.

[0118] First, a sliding window mechanism is used to divide the traffic data into m traffic segments using a fixed time window w and a sliding step size h, which is expressed as {Tra 1 , Tra 2 , ..., Tra m }.

[0119] Secondly, the time domain features are extracted from the perspective of process layer network service flow. The six traffic features extracted from each traffic segment are: num_of_ctrl_blk represents the number of IED control blocks in the current time period; num_of_port represents the number of port connections in the current time period; num_of_conn_host represents the number of connections with the same target host in the current time period; num_of_msg_tpye represents the number of connections with the same message type in the current time period; num_of_shost_msg_tpye represents the number of connections with the same host and the same message type in the current time period; num_of_dhost_msg_tpye represents the number of connections with different hosts and the same message type in the current time period.

[0120] Next, frequency domain features are extracted from the perspective of process layer network traffic flow. The two traffic features extracted from each traffic segment are: up_traffic represents the size of the upstream traffic, and down_traffic represents the size of the downstream traffic. Here, the upstream traffic refers to the traffic from the process layer intelligent electronic device to the bay layer device, and the downstream traffic refers to the traffic from the bay layer device to the process layer intelligent electronic device.

[0121] Then, an 8-dimensional feature vector consisting of time domain features and frequency domain features is constructed for each traffic segment, and normalized to the interval [0, 1] to eliminate the influence of the range difference of the feature value, and a training sample set consisting of m samples is obtained, denoted as S = {s 1 ,s 2 , ..., s m }.

[0122] Finally, the unsupervised machine learning method One Class Support Vector Machine is used to train on the sample set S. The model is represented by a hypersphere with the center of the sphere as o and the radius as r. The training goal is to make all training data points S i , the distance from 1≤i≤m to the center o is strictly less than r, and a slack variable δ with a penalty coefficient C is introduced i , 1≤i≤m, as shown in the following formulas (1) and (2). After training, the optimal anomaly detection model d with a center of o and a radius of r is obtained. t .

[0123]

[0124] ||s i -o|| 2 ≤r+δ i ; (2)

[0125] When a new traffic segment Tra m+1 When generated, the feature vector s corresponding to the traffic segment m+1 Input model d t , if ||s m+1 -o|| 2 , it indicates that the traffic segment is abnormal.

[0126] (4) Construct a message-oriented anomaly detection model. GOOSE messages are messages that transmit event information such as tripping and closing commands, telesignaling instructions, and locking signals between intelligent electronic devices in a heartbeat manner and a fast and full manner, and ensure reliability through a retransmission mechanism. SV messages are messages that transmit digital quantities of voltage and current in a process layer network in an uninterrupted and equal interval manner (according to the designed sampling frequency). Under steady-state conditions, the time intervals between the above two messages are regular, that is, the changes in the event counter value stNum and the message counter value sqNum of the GOOSE message, and the counter value svNum of the SV message are regular. Therefore, this feature is used to establish a message anomaly detection model based on a decision tree.

[0127] First, the sending time interval Δt of all messages of GOOSE type is counted from the messages captured during the normal operation period [0, T] of the process layer network. G , the sending time interval Δt of all messages of message type SV S The sending time intervals are sorted in ascending order, and the minimum sending time interval and the maximum sending time interval are used as the lower and upper bounds of the normal state of message sending, respectively denoted as [min G , max G ] and [min S , max S ].

[0128] K times of random sampling are conducted from the GOOSE messages captured during the normal operation period [0, T], and each time a time period [bgn k , end k ]∈[0, T], 1≤k≤K, count the number of events in the kth sampling time period entNum k , calculation period [bgn k , end k ] The average number of events avgEntNum k , that is, the frequency of event occurrence, is calculated as:

[0129] avgEntNum k =entNum k / (end k -bgn k );

[0130] After sorting the average number of events of K samplings, determine the lower and upper bounds of the expected number of events, denoted as [min E , max E ], where min E and max E They represent the minimum and maximum values ​​of the average number of events for K samplings respectively.

[0131] Secondly, a decision tree for abnormal analysis of process-level network messages is established, such as Figure 3 As shown in the figure, the traffic state is taken as the root node, the message continuity and message sending time interval are taken as the intermediate nodes, and the normal state and three abnormal types: message discontinuity, over-flow abnormality and under-flow abnormality are taken as leaf nodes.

[0132] Next, according to the decision tree, eight judgment rules expressed in the form of IF-THEN are established according to the top-down depth traversal method, which are:

[0133] Rule 1: IF [Traffic status = normal] AND [Message continuity = yes] THEN [normal].

[0134] Rule 2: IF [traffic status = normal] AND [message continuity = no] THEN [message is not continuous].

[0135] Rule 3: IF [Traffic Status = Abnormal] AND [Message Type = SV] AND [Message Sending Interval is less than min] s ]THEN[Overflow abnormality].

[0136] Rule 4: IF [Traffic Status = Abnormal] AND [Message Type = SV] AND [Message Sending Interval is greater than max. s ]THEN[Low flow abnormality].

[0137] Rule 5: IF [Traffic status = abnormal] AND [Message type = GOOSE] AND [Number of events = in line with the expected range] AND [Message sending interval is less than min] G ]THEN[Overflow abnormality].

[0138] Rule 6: IF [Traffic status = abnormal] AND [Message type = GOOSE] AND [Number of events = in line with the expected range] AND [Message sending interval is greater than max G ]THEN[Low flow abnormality].

[0139] Rule 7: IF [traffic status = abnormal] AND [message type = GOOSE] AND [number of events = higher than expected range] THEN [overflow abnormality].

[0140] Rule 8: IF [traffic status = abnormal] AND [message type = GOOSE] AND [number of events = lower than expected range] THEN [low traffic abnormality].

[0141] Finally, given the message data collected in the time period [T, T+Δt], the above judgment rules are used to determine whether the information flow in this time period is in an abnormal state. The analysis process is as follows: First, use the established traffic anomaly detection model to determine whether the traffic state is abnormal. Secondly, classify the messages in this time period according to the access point name and construct the message sequence according to the timestamp sequence. If the traffic state is normal, further analyze the message continuity in each message sequence. If the message is discontinuous, identify the discontinuous anomaly, otherwise the message is normal. If the traffic state is abnormal, further analyze the message sending time interval in the message sequence. To distinguish between GOOSE messages and SV messages, the analysis process is the same.

[0142] Taking GOOSE message as an example, the analysis process based on decision tree is given. First, determine whether the number of events entNum in the time period meets expectations. If it is higher than expected, that is, entNum>max E , it is abnormal over-flow; if it is lower than expected, that is, entNum<min E , it is a low traffic anomaly; otherwise, further determine the message sending time interval and compare the message sending time interval with the lower and upper bounds of the time interval in the normal state of message sending. G , it indicates that a traffic anomaly has occurred. If the message sending interval is greater than max G , it indicates that a low flow abnormality has occurred. The SV message analysis process is similar to that of the GOOSE message.

[0143] (5) Analysis of abnormal causes. Combined with the information flow diagram, check whether there are abnormalities in the devices at both ends of the problem link and the switch devices through which the link passes, in order to quickly locate the abnormal device. First, for each abnormal message sequence, with the help of the process layer network device association matrix established by SCD analysis, determine the transmission link of the information flow corresponding to the message sequence, and then identify the abnormal device from the IED. a Through the switch x Reaching IED b Then, based on the abnormality type, the suspected faulty device is determined and an alarm is issued. If the abnormality type is discontinuous messages, an alarm is issued to the switch on the link. x The fault causes the event counter to jump; if the abnormality type is over-flow abnormality or under-flow abnormality, an alarm will be issued to the intelligent electronic device (IED) on the link. a or IED b Fault.

[0144] The technical solution proposed in this embodiment starts from the coarse-grained flow data and fine-grained message data of the process layer network, establishes a flow anomaly detection model and a message anomaly detection model respectively, and gives the process layer network status analysis result by combining the detection results of the two models, thereby improving the accuracy of anomaly detection and reducing the false alarm rate and missed alarm rate. At the same time, by analyzing the SCD file of the smart substation, the complex communication path information is captured. When a network anomaly is detected, rich information is provided for anomaly diagnosis, and the abnormal smart electronic device or network device is quickly locked.

[0145] An embodiment of the present invention further provides a computer device, which may include a processor and a memory, wherein the processor and the memory may be connected via a bus or in other ways.

[0146] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0147] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as the program instructions / modules corresponding to the key shielding method of the vehicle-mounted display device in the embodiment of the present invention. The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory.

[0148] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0149] The one or more modules are stored in the memory, and when executed by the processor, the method described in this embodiment is performed.

[0150] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned edge computing server deployment method are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0151] In summary, the substation process layer network anomaly identification method and device described in the present invention sense the network structure and communication path of the substation configuration file in the process layer network, monitor the process layer network traffic data, identify traffic anomalies by extracting time domain features and frequency domain features using a support vector machine, identify message abnormal states based on the sending time interval and occurrence frequency of substation event messages and sampling value messages, and judge the abnormal state of the substation process layer network by constructing a decision tree.

[0152] Furthermore, the decision tree is used to traverse the judgment rules from top to bottom to identify the four states of the substation process layer network: normal, message discontinuity, over-flow abnormality and under-flow abnormality.

[0153] Furthermore, based on the abnormal status of the substation process layer network, the switches on the corresponding communication path and the intelligent electronic devices at both ends are found to identify the fault point.

[0154] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.

[0155] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0156] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.

[0157] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.< / extref> < / extref> < / communication> < / communication> < / sampledvaluecontrol> < / sampledvaluecontrol>

Claims

1. A method for identifying abnormalities in a substation process layer network, characterized in that: The method comprises the following steps: Parse the substation configuration file to obtain the process layer network structure and communication path based on intelligent electronic devices; Monitor process layer network traffic data, including substation event messages and sampling value messages for general objects in the current period; obtain the event counter value, the first message counter value and the first sending time interval in the substation event message, and obtain the first intelligent electronic device identifier of the control block path mark in the substation event message; obtain the second message counter value and the second sending time interval in the sampling value message, and obtain the second intelligent electronic device identifier corresponding to the sampling value ID in the substation event message; Obtaining the time domain features and frequency domain features of the process layer network traffic data in the current time period, the time domain features including the number of intelligent electronic devices running in the current time period, the number of port connections, the number of host connections with the same identifier, the number of connections with the same message type, the number of connections with the same host and message type, and the number of connections with different hosts and the same message type; the frequency domain features including the size of the uplink traffic and the size of the downlink traffic between the interval layer and the process layer intelligent electronic devices; inputting the time domain features and the frequency domain features into a pre-trained support vector machine to identify abnormal traffic conditions; Classifying the substation event message and the sampled value message in the current time period according to the access point name and constructing a substation event message sequence and a sampled value message sequence according to a timestamp sequence, and checking the first message counter and the second message counter to identify an abnormal state of message continuity; Counting the first minimum sending time interval and the first maximum sending time interval of the substation event message within a preset normal operating time period, and the second minimum sending time interval and the second maximum sending time interval of the sampled value message; dividing the preset normal operating time period into multiple sub-time periods, counting the occurrence frequency of the substation event message within each sub-time period, and marking the first upper bound and the first lower bound of the occurrence frequency of the substation event message; obtaining the first time interval, the occurrence frequency of the substation event message and the second time interval of the sampled value message within the current time period, and comparing them with the first minimum sending time interval, the first maximum sending time interval, the second minimum sending time interval, the second maximum sending time interval, the first upper bound and the first lower bound to determine the abnormal state of the message; A decision tree is constructed with the abnormal flow state as the root node, the abnormal message continuity state and the abnormal message state of the substation event message sequence and the sampling value message sequence as intermediate nodes, and normal, discontinuous messages, excessive flow abnormality and low flow abnormality as leaf nodes to perform substation process layer network abnormality judgment.

2. The method for identifying abnormalities in a substation process layer network according to claim 1, characterized in that: Before inputting the time domain features and the frequency domain features into the pre-trained support vector machine, the method further includes: normalizing the time domain features and the frequency domain features of each traffic segment.

3. The method for identifying abnormalities in a substation process layer network according to claim 2, characterized in that: The training method of the support vector machine includes: The process layer network traffic data in the normal state in the sample period is divided into a set number of sample traffic segments through a sliding window, and the sample time domain features and sample frequency domain features are extracted from each sample traffic segment, and a training sample set is constructed; the sample time domain features include the number of intelligent electronic devices running in the current time period, the number of port connections, the number of host connections with the same identifier, the number of connections with the same message type, the number of connections with the same host and message type, and the number of connections with different hosts and the same message type; the sample frequency domain features include the size of the uplink traffic and the size of the downlink traffic between the interval layer and the process layer intelligent electronic devices; A first-class support vector machine is constructed based on the training sample set, so that the feature vectors of all sample traffic segments in a normal state fall into the hypersphere constructed by the first-class support vector machine.

4. The method for identifying abnormalities in a substation process layer network according to claim 3, characterized in that: A support vector machine is constructed based on the training sample set, and the expression is: ||s i -o||2≤r+δ i ; Wherein, o represents the center of the hypersphere, r represents the radius of the hypersphere, V(o,r) represents the volume of the hypersphere, C represents the penalty coefficient, δ i represents the slack variable, 1≤i≤m, m represents the number of samples, S i represents the i-th sample.

5. The method for identifying abnormalities in a substation process layer network according to claim 1, characterized in that: The preset normal operation time period is divided into a plurality of sub-time periods, and the occurrence frequency of the substation event message in each sub-time period is counted, including: For the normal operation period [0, T], K time periods are randomly selected, [bgn k , end k ]∈[0,T],1≤k≤K; The number of events corresponding to the substation event message in the kth time period is counted as entNum k , the frequency calculation formula of time occurrence in the kth time period is: avgEntNum k =entNum k / (end k -bgn k )。 6. The method for identifying abnormalities in a substation process layer network according to claim 1, characterized in that: A decision tree is constructed with the abnormal flow state as the root node, the abnormal message continuity state and the abnormal message state of the substation event message sequence and the sampled value message sequence as the intermediate nodes, and normal, discontinuous messages, abnormal overflow and abnormal low flow as leaf nodes. The decision tree traverses the judgment rules from top to bottom, including: If the flow status is normal and the message continuity status is normal, then the substation process layer network status is determined to be normal; If the flow state is normal and the message continuity state is discontinuous, then the substation process layer network state is determined to be message discontinuous; If the flow state is abnormal, the message type is a sampling value message and its message sending interval is less than the second minimum sending time interval, then the substation process layer network state is determined to be abnormal overflow; If the flow state is abnormal, the message type is a sampling value message and its message sending interval is greater than the second maximum sending time interval, then the substation process layer network state is determined to be low flow abnormality; If the flow state is abnormal, the message type is a substation event message, the frequency of occurrence is within the expected range, and the message sending interval is less than the first minimum sending time interval, then the substation process layer network state is determined to be abnormal overflow; If the flow state is abnormal, the message type is a substation event message, and the frequency of occurrence is within the expected range, and the message sending interval is greater than the first maximum sending time interval, then the substation process layer network state is determined to be low flow abnormality; If the flow state is abnormal, the message type is a substation event message, and the frequency of occurrence is higher than the expected range, then the substation process layer network state is determined to be abnormal overflow; If the flow state is abnormal, the message type is a substation event message, and the occurrence frequency is lower than the expected range, then the substation process layer network state is determined to be low flow abnormality.

7. The method for identifying abnormalities in a substation process layer network according to claim 6, characterized in that: The method further comprises: When it is determined that the substation process layer network is message discontinuous, overflow abnormal or underflow abnormal, according to the process layer network structure and the communication path, the first intelligent electronic device identifiers at both ends of the substation event message transmission link and the first type of switches on the path are searched, or the second intelligent electronic device identifiers at both ends of the sampling value message transmission link and the second type of switches on the path are searched; If the abnormal type is message discontinuity, it is determined that the first type switch or the second type switch is faulty; If the abnormality type is an over-flow abnormality or a low-flow abnormality, it is determined that the first intelligent electronic device is identified as faulty or the second intelligent electronic device is faulty.

8. The method for identifying abnormalities in a substation process layer network according to claim 7, characterized in that: The method further comprises: generating and displaying an alarm prompt according to the fault judgment result.

9. A substation process layer network anomaly identification device, comprising a processor and a memory, characterized in that: The memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the method as claimed in any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.