Detection method and device based on IEC61850 protocol
By determining the target measurement point value in the power system and generating remote control commands, the change in the opening and closing status of the IEC61850 protocol is detected, solving the problem of the protocol being easily tampered with and improving the safety and reliability of power equipment.
Patent Information
- Application Number
- CN202411070885.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-29
AI Technical Summary
Information transmitted in power monitoring systems using the IEC 61850 protocol is easily tampered with or replayed, leading to malfunctions in power equipment and affecting the stability and security of the power grid.
By determining the first measurement point value of the target measurement point, a remote control command is generated. The command is sent and the opening and closing status changes are detected using the detection sub-function of the preset protocol. The success of the opening and closing status is then determined, thereby verifying the vulnerability of the protocol.
Rapidly and comprehensively assess the attack surface of the protocol, identify potential security risks, improve the security and reliability of the power system, and promptly discover and fix vulnerabilities.
Smart Images

Figure CN119051907A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information transmission, and in particular to a detection method and device based on the IEC61850 protocol. Background Art
[0002] With the widespread application of information and communication technology in power monitoring systems, the IEC61850 protocol is widely used for data exchange between automation devices in power monitoring systems. However, information transmitted through the IEC 61850 protocol is easily tampered with or replayed. Controlling the power system according to constructed instructions can easily lead to incorrect tripping and closing of power equipment, affecting the power, frequency, and phase of the power grid operation, and can also easily cause large-scale power outages in the area. Summary of the invention
[0003] The present invention provides a detection method and device based on the IEC61850 protocol to quickly and comprehensively evaluate the attack surface of the protocol, realize controllable protocol vulnerability verification, identify potential safety hazards in power equipment, and ensure the safe operation of the power system.
[0004] According to one aspect of the present invention, a detection method based on the IEC61850 protocol is provided, comprising:
[0005] Determine a first measuring point value of a target measuring point, wherein the target measuring point is a node in a target electric power device that needs to change its opening and closing state, the first measuring point value is used to characterize a measuring point result corresponding to the target measuring point in the target electric power device, the measuring point result is used to characterize the opening and closing state of the target measuring point, and the target electric power device is a device that needs to be remotely controlled in the electric power system;
[0006] Generate a remote control instruction of a target measuring point according to the first measuring point value;
[0007] Sending the remote control command to the target measuring point through the detection sub-function of the preset protocol, changing the opening and closing state of the target measuring point according to the remote control command, and obtaining the second measuring point value;
[0008] The detection result of the target measuring point is determined according to the second measuring point value and the first measuring point value. The detection result is used to indicate whether the opening and closing state of the target measuring point is changed successfully. The detection result includes: the opening and closing state is changed successfully or the opening and closing state is changed unsuccessfully.
[0009] According to another aspect of the present invention, there is provided a detection device based on the IEC61850 protocol, comprising:
[0010] A first measuring point value determination module, used to determine a first measuring point value of a target measuring point, wherein the target measuring point is a node in a target electric power device that needs to change its opening and closing state, wherein the first measuring point value is used to characterize a measuring point result corresponding to the target measuring point in the target electric power device, wherein the measuring point result is used to characterize the opening and closing state of the target measuring point, and wherein the target electric power device is a device that needs to be remotely controlled in the electric power system;
[0011] An instruction generation module, used for generating a remote control instruction of a target measuring point according to the first measuring point value;
[0012] A second measuring point value determination module is used to send the remote control instruction to the target measuring point through the detection subfunction of the preset protocol, change the opening and closing state of the target measuring point according to the remote control instruction, and obtain the second measuring point value;
[0013] A detection module is used to determine a detection result of a target measuring point according to the second measuring point value and the first measuring point value, wherein the detection result is used to characterize whether the opening and closing state of the target measuring point has been changed successfully, and the detection result includes: the opening and closing state has been changed successfully or the opening and closing state has failed to be changed.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the detection method based on the IEC61850 protocol described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the detection method based on the IEC61850 protocol described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention determines the first measuring point value of the target measuring point; generates a remote control instruction for the target measuring point according to the first measuring point value; sends the remote control instruction to the target measuring point through the detection subfunction of the preset protocol, changes the opening and closing state of the target measuring point according to the remote control instruction, and obtains the second measuring point value, which can realize automatic detection of the target measuring point and improve the detection efficiency; determines the detection result of the target measuring point according to the second measuring point value and the first measuring point value, and can more intuitively detect whether the opening and closing state of the target measuring point has been successfully changed. The method can determine whether the remote control instruction is successfully executed by detecting whether the opening and closing state of the target measuring point is consistent with the remote control instruction, and can quickly and comprehensively evaluate the attack surface of the protocol to achieve effective verification of the vulnerability of the protocol. By identifying potential safety hazards in power equipment, vulnerabilities that may be exploited by attackers can be discovered and repaired in a timely manner, thereby improving the safety and reliability of the power system.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 A flow chart of a detection method based on the IEC61850 protocol provided by an embodiment of the present invention;
[0023] Figure 2 A flow chart of a target measuring point state change provided by an embodiment of the present invention;
[0024] Figure 3 A schematic diagram of the structure of a detection device based on the IEC61850 protocol provided by an embodiment of the present invention;
[0025] Figure 4 The present invention is a schematic diagram of the structure of an electronic device for implementing the detection method based on the IEC61850 protocol according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Figure 1 The flowchart of a detection method based on the IEC61850 protocol provided by the embodiment of the present invention is applicable to the situation where the vulnerability of the transmission protocol is judged before the signal instruction is transmitted. The method can be executed by a detection device based on the IEC61850 protocol. The detection device based on the IEC61850 protocol can be implemented in the form of hardware and / or software. The detection device based on the IEC61850 protocol can be configured in any electronic device with network communication function. Figure 1 As shown, the method includes:
[0029] S110: Determine a first measuring point value of a target measuring point.
[0030] Among them, the target measuring point is the node in the target power equipment that needs to change the opening and closing state, the first measuring point value is used to characterize the measuring point result corresponding to the target measuring point in the target power equipment, the measuring point result is used to characterize the opening and closing state of the target measuring point, and the target power equipment is the equipment that needs to be remotely controlled in the power system.
[0031] Exemplarily, the first measuring point value may be represented by a Boolean value, that is, if the Boolean value is True, it indicates that the measuring point result of the target measuring point is in a closed state; if the Boolean value is False, it indicates that the measuring point result of the target measuring point is in an open state.
[0032] Specifically, a large-scale scan is performed on the devices in the target IP segment to find the target power equipment that supports the preset protocol, and the detection system is connected to the target power equipment through the preset protocol, and the connection is completed. The names of all logical devices and logical nodes in the target power equipment are obtained, and the reference measuring point is determined in combination with the position of the circuit breaker. The measuring point in the reference measuring point that needs to be changed in the opening and closing state is used as the target measuring point, and the measuring point result corresponding to the opening and closing state of the target measuring point is used as the first measuring point value of the target measuring point.
[0033] The preset protocol may be the IEC61850 protocol, which is a communication standard for power system automation systems developed by the International Electrotechnical Commission (IEC) and is used for data exchange and control of power systems.
[0034] S120: Generate a remote control instruction for a target measuring point according to the first measuring point value.
[0035] Specifically, the detection system generates a remote control instruction according to the acquired first measurement point value and the detection requirement.
[0036] Exemplarily, if the first measuring point value is True, the corresponding detection requirement is to change its open and closed state to the open state, and judge whether the measuring point state is changed successfully based on the changed measuring point result. Therefore, the corresponding remote control instruction is to change True to False, that is, to change the closed state of the target measuring point to the open state.
[0037] Furthermore, according to the detection requirements, the remote control instructions can be divided into: closing and opening. Among them, closing means changing the measurement point result of the target measurement point from False to True, that is, opening becomes closing. Opening means changing the measurement point result of the target measurement point from True to False, that is, closing becomes opening.
[0038] S130, sending the remote control instruction to the target measuring point through the detection subfunction of the preset protocol, changing the opening and closing state of the target measuring point according to the remote control instruction, and obtaining a second measuring point value.
[0039] Among them, the detection sub-function of the target measuring point is a pre-established function for sending remote control instructions to the target measuring point, which can be represented by the ControlObjectClient_operate function
[0040] Specifically, after the target measuring point receives the remote control instruction transmitted by the detection system through the preset protocol, the opening and closing state of the target measuring point is changed according to the remote control instruction, and the changed measuring point result is used as the second measuring point value.
[0041] Furthermore, the above steps can not only change the measurement point value of a single target measurement point in the power system, but also change the measurement point values of multiple target measurement points.
[0042] Furthermore, if the measuring point value pairs of multiple target measuring points are changed, the corresponding remote control instructions generated can be full closing, full opening or full reversal, and the measuring point value of the target measuring point is changed according to the generated remote control instruction, and the second measuring point value is determined according to the change result, and the opening and closing status of all target measuring points are changed according to the remote control instruction, that is, if the remote control instruction is full closing, the measuring point results of all target measuring points are converted to True; if the remote control instruction is full opening, the measuring point results of all target measuring points are converted to False; if the remote control instruction is full reversal, the measuring point results of the target measuring points with measuring point values of True are converted to False, and the measuring point results of the target measuring points with measuring point values of False are converted to True.
[0043] Among them, full closing means setting the measurement point results of all target measurement points to True; full opening means setting the measurement point results of all measurement points to False; full flip means after reading the Boolean value of each target measurement point, if the Boolean value of the target measurement point is True, it is set to False, if the Boolean value of the target measurement point is False, it is set to True.
[0044] The above steps change the opening and closing status of a single or multiple target detection points, which can realize flexible control of the work of the target detection points.
[0045] S140: Determine a detection result of the target measuring point according to the second measuring point value and the first measuring point value.
[0046] The detection result is used to indicate whether the opening and closing state of the target measuring point has been changed successfully, and the detection result includes: the opening and closing state has been changed successfully or the opening and closing state has failed to be changed.
[0047] Specifically, the first measuring point value is compared with the second measuring point value, and the detection result of the target measuring point is determined according to the comparison result.
[0048] Furthermore, the detection result of the target measuring point may also be determined by the second measuring point values and the first measuring point values of the plurality of target measuring points.
[0049] In the above steps, the detection results of the target measuring point are determined by the measurement results before and after the target measuring point is changed, and whether the constructed remote control instruction is successfully executed is determined by detecting whether the opening and closing status of the target measuring point is changed according to the remote control instruction, so as to quickly and comprehensively evaluate the attack surface of the protocol and realize the controllable protocol vulnerability verification. Identify potential safety hazards in power equipment and ensure the safe operation of the power system.
[0050] Optionally, determining a first measuring point value of a target measuring point includes steps A1-A3:
[0051] Step A1: Scan the devices configured in the target IP segment to determine the target power equipment.
[0052] Specifically, the detection system scans the target IP segment, retains the power devices that support the preset protocol, and uses the power devices that need to be controlled among the scanned power devices as the target power devices.
[0053] Step A2: Establish a connection between the detection system and the target power equipment through a connection sub-function of a preset protocol.
[0054] The connection sub-function of the preset protocol is a pre-established function for establishing a connection between the target power device and the detection system, which can be represented by the IedConnection_connect function.
[0055] Specifically, it is detected whether the port of the target power device is open. If it is open, a connection sub-function of a preset protocol is used to input the IP address and port number in the detection system to establish a connection with the target power device.
[0056] Step A3: determine a target measuring point according to the target electric power equipment, and obtain a first measuring point value of the target measuring point.
[0057] Specifically, after the connection is established, the target power equipment is traversed through the traversal sub-function of the preset protocol to obtain the logical device name in the target power equipment, the logical device corresponding to the logical device name is traversed to obtain the target logical node name in the target logical device, and the target measuring point is determined according to the logical node name.
[0058] Furthermore, each target power device includes a server and several IEC61850 protocol service functions. The server includes one or more LDs, and the LD includes several LNs. Multiple LNs in different logical devices can cooperate with each other to achieve a specific function, where LD is a logical device and LN is a logical node.
[0059] Among them, the logical node represents the entity of the power system function in a typical substation, that is, each logical node specifically implements a specific function of the power system in the substation, and each logical node corresponds to a name. For example, the "XCBR" logical node represents the circuit breaker function, which contains the circuit breaker status information, control commands (such as opening / closing operations) and other related data and operations; the "MMXU" logical node is responsible for the measurement function, including the measurement values and related attributes of electrical quantities such as voltage, current, and power. Furthermore, the logical node has a clear definition and specification, which includes the data involved in the function, control information, and the interaction method with other logical nodes.
[0060] Among them, in the IEC61850 protocol standard, a logical device represents an entity of a power system function set in a typical substation, which means that a logical device is an abstraction and encapsulation of a set of related functions in a substation. For example, a logical device can be responsible for protection-related functions, including logical nodes such as overcurrent protection and differential protection, and another logical device may focus on measurement and monitoring functions, including logical nodes such as current measurement and voltage measurement.
[0061] In the above steps, the division of logical devices helps to modularize the functions of the power system in the complex substation and improve the maintainability, scalability and interoperability of the system.
[0062] Optionally, determining a target measuring point according to a target power device includes steps B1-B2:
[0063] Step B1: determine the target logical device name according to the target power device, traverse the target logical devices corresponding to the target logical device name, and obtain the target logical node name.
[0064] The target logical node name is the name of the physical structure that implements a specific function in the target power equipment. The specific function is used to characterize the corresponding function of each target power equipment in the power system when transmitting power. The specific functions of the power system include: voltage conversion, power distribution, power regulation, current control, power quality improvement and equipment protection.
[0065] Specifically, the target power equipment is traversed through the first traversal sub-function of the preset protocol, the name corresponding to the logical device that needs to be controlled is used as the target logical device name, and the corresponding target logical device is matched according to the target logical device name, and the target logical device is traversed through the second traversal sub-function, and the name corresponding to the logical node that needs to be controlled is used as the target logical node name.
[0066] Step B2: Determine the target measuring point according to the target logical node name.
[0067] Specifically, the location of the circuit breaker related to the target power equipment is determined, and the node corresponding to the logical device name, the target logical node name and the circuit breaker location is used as the target measurement point.
[0068] In the above steps, the target measuring point is confirmed according to the logical device and the logical node, and the target measuring point can be accurately located according to the function to be realized, thereby improving the accuracy of determining the target measuring point.
[0069] Optionally, determining a target logical device name according to a target power device, traversing target logical devices corresponding to the target logical device name, and obtaining a target logical node name includes steps C1-C2:
[0070] Step C1: traverse the target power equipment through the first traversal subfunction of the preset protocol to obtain the target logical device name.
[0071] The target logical device name is the name of a target logical node name set of a group of related functions in the target power device. The first traversal sub-function is a pre-established function for traversing the target power device, which can be represented by the IedConnection_getLogicalDeviceList function.
[0072] Specifically, the target power equipment is traversed through the first traversal sub-function to obtain the logical device name, and the logical device name corresponding to the logical device that needs to change the opening and closing state is used as the target logical device name.
[0073] Exemplarily, the IedConnection_getLogicalDevice List function of the IEC61850 protocol is called to obtain all LD_names of the device, that is, the target power equipment is traversed to obtain the LD_name corresponding to each logical device, and the LD_name corresponding to the logical device that needs to change the opening and closing status is used as the target logical device name.
[0074] Step C2: traverse the target logical device corresponding to the target logical device name through the second traversal subfunction of the preset protocol to obtain the target logical node name.
[0075] The second traversal sub-function is a pre-established function for traversing the target logical device, which can be represented by the IedConnection_getLogicalDeviceDirectory function.
[0076] Specifically, the target logical device is traversed through the second traversal function of the preset protocol to obtain the logical node names in the target logical device, the logical nodes that need to change the opening and closing states are used as the target logical node names, and the nodes corresponding to the target logical node names are used as the target measuring points.
[0077] Exemplarily, the IedConnection_getLogicalDevice Directory function of the IEC61850 protocol is called to obtain all LN_names of the target logical device, and the LN_name corresponding to the logical node that needs to change the opening and closing status is used as the target logical node name, and the target measuring point is determined according to the target logical node name, the target logical device name and the corresponding circuit breaker position.
[0078] In the above steps, the establishment of the traversal sub-function realizes the use of different traversal sub-functions according to different traversal tasks. The sub-functions are independent of each other and can quickly locate the target's logical nodes and logical devices, thereby quickly initiating detection of the device and improving the overall detection efficiency.
[0079] Optionally, determining the detection result of the target measuring point according to the second measuring point value and the first measuring point value includes steps E1-E2:
[0080] Step E1: If the second measuring point value is different from the first measuring point value, the detection result is that the opening and closing state is changed successfully.
[0081] Exemplarily, when there is a single target measuring point, if the first measuring point value and the second measuring point value of the target measuring point are different, it is considered that the opening and closing state of the target measuring point is changed successfully.
[0082] Exemplarily, when there are multiple target measuring points, if the second measuring point values of all target measuring points are different from the first measuring point values, it can be considered that the opening and closing states are successful.
[0083] Step E2: If the value of the second measuring point is the same as the value of the first measuring point, the detection result is that the opening and closing state change fails.
[0084] Exemplarily, when there is a single target measuring point, if the second measuring point value of the target measuring point is the same as the first measuring point value, it is considered that the switch opening and closing state change of the target measuring point has failed.
[0085] Exemplarily, when there are multiple target measuring points, if there is a target measuring point whose second measuring point value is the same as the first measuring point value, the opening and closing state change of the target measuring point fails.
[0086] Furthermore, after the detection result is obtained, it is directly displayed on the terminal program of the detection system.
[0087] Furthermore, when the detection result is a failure in the opening and closing state, the detection system terminal program can not only display the detection result, but also display the target logical device name, target logical node name and circuit breaker position corresponding to the target measuring point where the opening and closing failed, so as to analyze the cause of the opening and closing state failure.
[0088] Optionally, the detection result of the target measuring point may also be directly judged according to the changes on the display interface of the target power equipment.
[0089] In the above steps, the detection of the opening and closing status of the target measuring point helps to determine whether the constructed remote control command is successfully executed, so as to quickly and comprehensively evaluate the attack surface of the protocol and realize the controllable protocol vulnerability verification. Identify the potential safety hazards in power equipment and ensure the safe operation of the power system.
[0090] Optionally, after determining the detection result of the target measuring point according to the second measuring point value and the first measuring point value, the method further includes:
[0091] According to the reading function of the preset protocol, the first measuring point value and the second measuring point value are read and printed out.
[0092] The read function of the preset protocol is a pre-built function for reading and printing output, which can be represented by the IedConnection_readBooleanValue function.
[0093] Exemplarily, assuming that the logical node name of the target measuring point is XCBR1, the print output result is: target measuring point: XCBR1; the first measuring point value is True, and the measuring point result is the closed state; the second measuring point value is True, and the measuring point result is the closed state.
[0094] Exemplarily, assuming that the logical node name of the target measuring point is XCBR1, the printout result is: target measuring point: XCBR1; the first measuring point value is True, and the measuring point result is the closed state; the second measuring point value is False, and the measuring point result is the open state.
[0095] Furthermore, if there are multiple target measuring points, the corresponding results are printed out in the order of the logical node names.
[0096] In the above steps, the detection system is used to print the measurement point results of the target measurement point, so that it is possible to judge whether the opening and closing status of the target measurement point has been changed successfully based on the printed results, so as to prevent the situation where the detection results cannot be received in time when the display interface of the target power equipment fails, thereby causing the problem to be unable to be discovered in time.
[0097] For example, Figure 2As shown, firstly, the power equipment supporting the IEC61850 protocol in the IP segment is scanned, and the power equipment that needs to be controlled among the scanned power equipment is taken as the target power equipment. The connection subfunction of the IEC61850 protocol is used to detect whether the port of the target power equipment is open. If it is open, the IP address and port number are input in the detection system to establish a connection with the target power equipment. After the connection is successfully established, the target measuring point of the target power equipment is scanned and obtained, and the target measuring point is commanded by the remote control command, that is, if it is a single target measuring point, the target measuring point is closed or opened; if there are multiple target measuring points, the target measuring point is fully opened, fully closed or fully flipped, the second measuring point value of the changed target measuring point is returned, and the information of the relevant target measuring point is printed out; if the port is not open, the control is terminated.
[0098] The technical solution of this embodiment determines the first measuring point value of the target measuring point; generates a remote control instruction for the target measuring point according to the first measuring point value; sends the remote control instruction to the target measuring point through the detection subfunction of the preset protocol, changes the opening and closing state of the target measuring point according to the remote control instruction, and obtains the second measuring point value, which can realize automatic detection of the target measuring point and improve the detection efficiency; determines the detection result of the target measuring point according to the second measuring point value and the first measuring point value, and can more intuitively detect whether the opening and closing state of the target measuring point has been successfully changed. This method can determine whether the remote control instruction is successfully executed by detecting whether the opening and closing state of the target measuring point is consistent with the remote control instruction, and can quickly and comprehensively evaluate the attack surface of the protocol to achieve effective verification of the vulnerability of the protocol. By identifying potential safety hazards in power equipment, vulnerabilities that may be exploited by attackers can be discovered and repaired in a timely manner, thereby improving the safety and reliability of the power system.
[0099] Figure 3 The present invention provides a structural diagram of a detection device based on the IEC61850 protocol. This embodiment is applicable to the case where the vulnerability of the transmission protocol is judged before the signal instruction is transmitted. The detection device based on the IEC61850 protocol can be implemented in the form of hardware and / or software. The detection device based on the IEC61850 protocol can be configured in any electronic device with network communication function. Figure 3 As shown, the device includes: a first measuring point value determination module 210, an instruction generation module 220, a second measuring point value determination module 230 and a detection module 240, wherein:
[0100] The first measuring point value determination module 210 is used to determine the first measuring point value of the target measuring point, the target measuring point is a node in the target power equipment that needs to change the opening and closing state, the first measuring point value is used to characterize the measuring point result corresponding to the target measuring point in the target power equipment, the measuring point result is used to characterize the opening and closing state of the target measuring point, and the target power equipment is a device that needs to be remotely controlled in the power system;
[0101] Instruction generation module 220: used to generate a remote control instruction of a target measuring point according to the first measuring point value;
[0102] The second measuring point value determination module 230 is used to send the remote control instruction to the target measuring point through the detection sub-function of the preset protocol, change the opening and closing state of the target measuring point according to the remote control instruction, and obtain the second measuring point value;
[0103] Detection module 240: used to determine the detection result of the target measuring point according to the second measuring point value and the first measuring point value. The detection result is used to indicate whether the opening and closing state of the target measuring point has been changed successfully. The detection result includes: the opening and closing state has been changed successfully or the opening and closing state has failed to be changed.
[0104] Optionally, the first measurement point value determination module 210 includes:
[0105] Target power equipment determination unit: used to scan the equipment configured in the target IP segment to determine the target power equipment;
[0106] Connection establishment unit: used to establish a connection between the detection system and the target power equipment through a connection sub-function of a preset protocol;
[0107] The first measuring point value measuring point unit is used to determine the target measuring point according to the target power equipment and obtain the first measuring point value of the target measuring point.
[0108] Optionally, the first measuring point value measuring point unit includes:
[0109] Logical node determination subunit: used to determine the target logical device name according to the target power device, traverse the target logical devices corresponding to the target logical device name, and obtain the target logical node name. The target logical node name is the entity structure that realizes a specific function in the target power device. The specific function is used to characterize the corresponding function of each device in the substation when transmitting electric energy;
[0110] Target measuring point determination subunit: used to determine the target measuring point according to the target logical node name.
[0111] Optionally, the logical node determines a subunit, which is specifically used for:
[0112] Traversing the target power equipment through the first traversal subfunction of the preset protocol to obtain a target logical device name, where the target logical device name is a set of target logical node names of a group of related functions in the target power equipment;
[0113] The target logical device corresponding to the target logical device name is traversed through the second traversal subfunction of the preset protocol to obtain the target logical node name.
[0114] Optionally, the detection module 240 includes:
[0115] Successful detection unit: if the value of the second measuring point is different from the value of the first measuring point, the detection result is that the opening and closing state is changed successfully;
[0116] Detection failure unit: if the second measuring point value is the same as the first measuring point value, the detection result is a failure to change the opening and closing state.
[0117] Optional, protocol vulnerability detection, including:
[0118] Printing unit: used for reading and printing out the first measuring point value and the second measuring point value according to the reading function of the preset protocol.
[0119] The detection device based on the IEC61850 protocol provided in the embodiment of the present invention can execute the detection method based on the IEC61850 protocol provided in any embodiment of the present invention mentioned above, and has the corresponding functions and beneficial effects of executing the detection method based on the IEC61850 protocol. For detailed process, please refer to the relevant operations of the detection method based on the IEC61850 protocol in the aforementioned embodiment.
[0120] Figure 4 A schematic diagram of the structure of an electronic device for implementing the detection method based on the IEC61850 protocol of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0121] like Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0122] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0123] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as the detection method based on the IEC61850 protocol.
[0124] In some embodiments, the detection method based on the IEC61850 protocol can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the detection method based on the IEC61850 protocol described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the detection method based on the IEC61850 protocol by any other appropriate means (e.g., by means of firmware).
[0125] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0126] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0127] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0128] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0129] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0130] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0131] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0132] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A detection method based on IEC61850 protocol, It is characterized in that include: Determine a first measuring point value of a target measuring point, wherein the target measuring point is a node in a target electric power device that needs to change its opening and closing state, the first measuring point value is used to characterize a measuring point result corresponding to the target measuring point in the target electric power device, the measuring point result is used to characterize the opening and closing state of the target measuring point, and the target electric power device is a device that needs to be remotely controlled in the electric power system; Generate a remote control instruction of a target measuring point according to the first measuring point value; Sending the remote control command to the target measuring point through the detection sub-function of the preset protocol, changing the opening and closing state of the target measuring point according to the remote control command, and obtaining the second measuring point value; The detection result of the target measuring point is determined according to the second measuring point value and the first measuring point value. The detection result is used to indicate whether the opening and closing state of the target measuring point is changed successfully. The detection result includes: the opening and closing state is changed successfully or the opening and closing state is changed unsuccessfully.
2. The method according to claim 1, It is characterized in that The step of determining a first measuring point value of a target measuring point includes: Scan the devices configured in the target IP segment to determine the target power equipment; Establishing a connection between the detection system and the target power equipment through a connection sub-function of a preset protocol; A target measuring point is determined according to the target electric power equipment, and a first measuring point value of the target measuring point is obtained.
3. The method according to claim 2, It is characterized in that Determining the target measuring point according to the target power equipment includes: Determine the target logical device name according to the target power device, traverse the target logical devices corresponding to the target logical device name, and obtain the target logical node name, wherein the target logical node name is the name corresponding to the entity structure that realizes a specific function in the target power device, and the specific function is used to characterize the corresponding function of each device in the substation when transmitting electric energy; The target measuring point is determined according to the target logical node name.
4. The method according to claim 3, It is characterized in that The step of determining the target logical device name according to the target power device, traversing the target logical devices corresponding to the target logical device name, and obtaining the target logical node name includes: Traversing the target power device through the first traversal subfunction of the preset protocol to obtain a target logical device name, where the target logical device name is the name of a set of target logical node names of a group of related functions in the target power device; The target logical device corresponding to the target logical device name is traversed through the second traversal subfunction of the preset protocol to obtain the target logical node name.
5. The method according to claim 1, It is characterized in that The step of determining the detection result of the target measuring point according to the second measuring point value and the first measuring point value includes: If the second measuring point value is different from the first measuring point value, the detection result is that the opening and closing state is changed successfully; If the second measuring point value is the same as the first measuring point value, the detection result is that the opening and closing state change fails.
6. The method according to claim 1, It is characterized in that After determining the detection result of the target measuring point according to the second measuring point value and the first measuring point value, the method includes: According to a reading function of a preset protocol, the first measuring point value and the second measuring point value are read and printed out.
7. A detection device based on IEC61850 protocol, It is characterized in that include: A first measuring point value determination module, used to determine a first measuring point value of a target measuring point, wherein the target measuring point is a node in a target electric power device that needs to change its opening and closing state, wherein the first measuring point value is used to characterize a measuring point result corresponding to the target measuring point in the target electric power device, wherein the measuring point result is used to characterize the opening and closing state of the target measuring point, and wherein the target electric power device is a device that needs to be remotely controlled in the electric power system; An instruction generation module, used for generating a remote control instruction of a target measuring point according to the first measuring point value; A second measuring point value determination module is used to send the remote control instruction to the target measuring point through the detection subfunction of the preset protocol, change the opening and closing state of the target measuring point according to the remote control instruction, and obtain the second measuring point value; A detection module is used to determine a detection result of a target measuring point according to the second measuring point value and the first measuring point value, wherein the detection result is used to characterize whether the opening and closing state of the target measuring point has been changed successfully, and the detection result includes: the opening and closing state has been changed successfully or the opening and closing state has failed to be changed.
8. The device according to claim 7, It is characterized in that The detection module comprises: A detection success unit, used for detecting that the opening and closing state is changed successfully if the second measuring point value is different from the first measuring point value; A detection failure unit is used to detect that if the second measuring point value is the same as the first measuring point value, the detection result is a failure to change the opening and closing state.
