An attack precise configuration system and method for smart grid joint simulation

Through the dynamic configuration method of the smart grid joint simulation system and APCI interface, the inefficiency problem of the existing power attack testing method in time-sensitive scenarios is solved, flexible network attack configuration and parameter access are realized, and the flexibility and parameter access of the test are improved. real-time.

CN118555213BActive Publication Date: 2024-10-15BEIJING INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411010510.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-15
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

Existing power attack dynamic testing methods cannot meet strict time requirements in time-sensitive and event-intensive attack failure test scenarios, and it is difficult to flexibly modify parameters, resulting in low configuration efficiency.

Method used

Adopt a joint simulation system for smart grids, including QaulNet simulation program, RTDS simulator and APCI interface components, realize communication between QualNet simulation program and RTDS simulator through APCI interface, build a physical joint simulation platform, register and call APCI interface functions, and implement Dynamic configuration and parameter access reduce repetitive workload and improve configuration accuracy and flexibility.

Benefits of technology

It effectively improves work efficiency in time-sensitive and event-intensive scenarios, enables flexible modification of network attack configurations and parameters, enhances the flexibility and real-time performance of testing, and makes up for the shortcomings of existing power attack dynamic testing methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555213B_ABST
    Figure CN118555213B_ABST
Patent Text Reader

Abstract

The invention discloses an attack precise configuration system and method for smart grid joint simulation, which belongs to the technical field of power network simulation. The specific process is as follows: step 1, establishing a dual-network matching model of a power grid and a communication network and a power communication network architecture model; step 2, according to the simulation scene requirements and based on the actual power distribution, establishing a dual-network virtual scene model, configuring each power node protocol model, and formulating a network scene topology; step 3, building a physical joint simulation platform framework; step 4, registering an APCI interface; step 5, calling an APCI interface function; step 6, using the physical joint simulation platform framework built in step 3, by inputting an attack instruction in an online attack configuration module, checking the configuration result; the invention provides an attack precise configuration system and method for smart grid joint simulation, which effectively makes up for the shortcomings of the current power attack dynamic test method and provides a flexible test means for smart grid attack evaluation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power network simulation, and in particular, relates to an attack precision configuration system and method for smart grid joint simulation. Background Art

[0002] As one of the indispensable infrastructures in modern society, the power grid's stable operation is directly related to the economic development, people's livelihood and national security of the whole society. In recent years, with the increasing demand for stable control of power grids and the rapid development of communication technology, traditional power grids are constantly moving towards modern smart grids. Smart grids use advanced sensors, communication networks, data analysis and control algorithms to monitor, control and optimize each link in the power system in real time, thereby realizing intelligent management of power production, transmission, distribution and consumption. To this end, the development of smart grids is bound to introduce a large number of power communication devices to ensure the normal and stable operation of the power system, and promote the continuous growth of various power communication and monitoring networks. At present, the smart grid has evolved into a complex coupled network system composed of power systems and communication information systems. The growth rate of data transmitted through the power communication network has far exceeded the growth rate of electricity, but security issues have followed.

[0003] In addition to the impact of natural disasters, the national power grid is also very likely to become an important target of military strikes. As an indispensable infrastructure in modern society, smart grids have a wide range of applications and key functions. By attacking smart grids, the power system can be paralyzed, resulting in large-scale power outages, thus affecting the normal operation of society and the stability of the country.

[0004] Smart grids involve a large amount of data exchange and information transmission. Attackers may try to obtain sensitive energy data or interfere with data transmission, thus undermining the reliability and security of the grid. In summary, the stable operation of smart grids directly affects the economic development of society, the reliability of energy supply, and the quality of people's lives. It is of great significance to conduct research on attack tests on smart power communication networks. However, existing dynamic control methods are mostly implemented through manual configuration by testers during operation. The event triggering time is not accurate enough and will introduce a large number of configuration operation delays. When faced with time-sensitive and event-intensive attack fault test scenarios, such configuration methods are difficult to meet strict time requirements. Summary of the invention

[0005] The purpose of the present invention is to provide an attack precise configuration system and method for smart grid joint simulation, so as to solve the problems that the existing dynamic test methods for power attacks in the above-mentioned technology are insufficient, parameters cannot be flexibly modified and it is difficult to meet strict time requirements.

[0006] To achieve the above-mentioned purpose, the present invention provides an attack precision configuration system for smart grid joint simulation, including a QaulNet simulation program, an RTDS simulator and an APCI interface component; the APCI interface component further includes an APCI interface and an external program; wherein the QaulNet simulation program runs a network simulation scenario and interacts with the APCI interface, and its simulation scenario is responsible for simulating the behavior of the smart grid communication network; the RTDS simulator is used as a power simulation module to simulate the power stability control protection model and generate power business traffic; the APCI interface realizes the communication between the QualNet simulation program, the RTDS simulator and the external interactive program, and acts as a bridge connecting the QualNet simulation program, the RTDS and the external program; the APCI interface further includes six parts: UDP socket, receive buffer, send buffer, message parser, node manager, event scheduler, and event processor; the APCI interface in the APCI interface development framework is a registration and call based on the API function of the QaulNet software, and the external program in the APCI interface development framework exists outside the QualNet simulation program, and the node information that needs to be modified in the simulation scenario is input and sent to the APCI interface through the UDP socket.

[0007] The present invention also provides a method for precise attack configuration for smart grid joint simulation, comprising the following steps:

[0008] Step 1: Establish a dual-network matching model of the power grid and communication network and a power communication network architecture model;

[0009] Step 2: According to the simulation scenario requirements and based on the actual power distribution, a dual-network virtual scenario model is established, each power node protocol model is configured, and a network scenario topology is formulated;

[0010] Step 3: Build a physical joint simulation platform framework;

[0011] Step 4: Register the APCI interface;

[0012] Step 5, call the APCI interface function;

[0013] Step 6: Use the physical joint simulation platform framework built in step 3 to view the configuration results by entering attack instructions in the online attack configuration module.

[0014] Preferably, the physical joint simulation platform framework constructed in step 3 includes a communication simulation server, a power simulation server, an online attack configuration module, an external interface and a protocol conversion module.

[0015] Preferably, the specific steps of registering the APCI interface in step 4 are as follows:

[0016] S41, the function EXTERNAL_UserFunctionRegistration declares an APCI interface through External_RegisterExternal-Interface;

[0017] S42, function EXTERNAL_UserFunctionRegistration binds the corresponding callback function to the APCI interface;

[0018] S43, function EXTERNAL_SetTimeManagementRealTime manages the simulation time and runs according to the actual time;

[0019] S44. Function EXTERNAL_SetReceiveDelay sets the minimum delay time between two received messages.

[0020] Preferably, the minimum delay time in S44 ranges from 300 ms to 1000 ms.

[0021] Preferably, the specific process of calling the APCI interface function in step 5 is as follows:

[0022] S51, the APCI interface opens a UDP socket and listens to a preset specific partition number port, waiting to receive a message from an external program until the external program message arrives;

[0023] After the external program messages of S52 and S51 arrive, the APCI interface checks the integrity of each received external program message. If the received external program message is complete, the external program message is retained; if the received external program message is incomplete, the external program message is discarded;

[0024] S53, the APCI interface determines whether its receiving buffer is empty. If the receiving buffer is empty, the external program message is discarded; if the receiving buffer is not empty, the APCI interface notifies the message parser to parse the external program message in the receiving buffer queue until the message parsing work is completed;

[0025] After the parsing work of the message parser in S54 and S53 is completed, the node manager will manage all nodes existing in the QualNet simulation program and determine whether the node in the external program message exists in the simulation scene. If the node specified by the node ID or IP address field in the external program message exists in the simulation scene of the QualNet simulation program, the node manager will notify the event scheduler to process the external program message; if the specified node does not exist in the simulation scene, the node manager will generate an APCI error message as a response to the request for this external program message and put it into the sending buffer;

[0026] S55. According to the node ID or IP address in the external program message, the event scheduler finds the event processor pointer of the node and schedules the event processor to process the external program message;

[0027] S56, the event processor reads the parameter type field from the external program message, and configures the parameters of the attack event model of the corresponding node in the QualNet simulation program according to the parameter type field. If a parameter is modified, the variables related to the parameter in the protocol stack model will also be recalculated, and the attack will be started or terminated according to the parameter.

[0028] S57, when the event processor successfully accesses or modifies the parameters in the node model, the event processor will generate a confirmation message and put it into the sending buffer;

[0029] S58, the sending buffer sends the confirmation message output by S57 to the external program through the UDP socket.

[0030] Preferably, the external program message includes attack event parameter configuration information.

[0031] Preferably, the order in which the receiving cache processes the received external program messages follows the first-in-first-out principle, and the external program message that arrives first is processed first.

[0032] Therefore, the present invention adopts the above-mentioned attack precise configuration system and method for smart grid joint simulation, which has the following beneficial effects:

[0033] (1) It effectively solves the problem that traditional static simulation cannot flexibly modify parameters. Through the dynamic simulation test method, it realizes the flexible modification of network attack configuration and parameter access, further improving the accuracy and flexibility of configuration;

[0034] (2) Compared with the traditional run-modify parameters-rerun mode, this technology reduces the amount of repetitive work, significantly improving work efficiency when facing time-sensitive and event-intensive attack test scenarios;

[0035] (3) Through the Programmable Attack Configuration Interface (PACI), dynamic deployment of power grid fault attack events and dynamic modification and access of attack and model parameters during simulation operation are realized, further improving the flexibility and real-time performance of the test;

[0036] (4) This technology effectively makes up for the shortcomings of existing dynamic testing methods for power attacks, including the accuracy of event trigger time, configuration operation delay, and data transmission size limit, providing a more flexible and efficient testing method for smart grid attack assessment.

[0037] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is an overall flow chart of a precise attack configuration method for smart grid joint simulation according to the present invention;

[0039] Figure 2 It is a framework diagram of the joint simulation platform in this embodiment;

[0040] Figure 3 It is a schematic diagram of the specific steps of the APCI interface function call in this embodiment;

[0041] Figure 4 is a diagram of the power attack event parameter format configuration in this embodiment;

[0042] Figure 5 QualNet test network scenario diagram in this embodiment;

[0043] Figure 6 It is a graph of the cumulative number of received data packets in this embodiment. DETAILED DESCRIPTION

[0044] The following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] See also Figure 1-6, an attack precision configuration system for smart grid joint simulation, including QaulNet simulation program, RTDS simulator and APCI interface component; APCI interface component includes APCI interface and external program; wherein, QaulNet simulation program runs network simulation scenario and interacts with APCI interface, and its simulation scenario is responsible for simulating the behavior of smart grid communication network; RTDS simulator is used as power simulation module to simulate power stability control protection model and generate power business traffic; APCI interface realizes the communication between QualNet simulation program, RTDS simulator and external interactive program, and plays the role of a bridge connecting QualNet simulation program, RTDS and external program; APCI interface includes UDPsocket, receiving buffer, sending buffer, message parser, node manager, event scheduler and event processor; APCI interface in APCI interface development framework is registration and calling based on API function of QaulNet software, and external program in APCI interface development framework exists outside QualNet simulation program, inputs node information to be modified in simulation scenario and sends it to APCI interface through UDPsocket.

[0046] A precise attack configuration method for smart grid joint simulation includes the following steps:

[0047] Step 1: Establish a dual-network matching model of the power grid and communication network and a power communication network architecture model;

[0048] Step 2: According to the simulation scenario requirements and based on the actual power distribution, a dual-network virtual scenario model is established, each power node protocol model is configured, and a network scenario topology is formulated;

[0049] Step 3: Build a physical joint simulation platform framework; the physical joint simulation platform framework includes a communication simulation server, a power simulation server, an online attack configuration module, an external interface and a protocol conversion module;

[0050] Step 4: Register the APCI interface. The specific steps are as follows:

[0051] S41, the function EXTERNAL_UserFunctionRegistration declares an APCI interface through External_RegisterExternal-Interface;

[0052] S42, function EXTERNAL_UserFunctionRegistration binds the corresponding callback function to the APCI interface;

[0053] S43, function EXTERNAL_SetTimeManagementRealTime manages the simulation time and runs according to the actual time;

[0054] S44. Function EXTERNAL_SetReceiveDelay sets the minimum delay time between two received messages, where the minimum delay time ranges from 300ms to 1000ms.

[0055] Step 5: Call the APCI interface function; the specific process is as follows:

[0056] S51, the APCI interface opens a UDP socket and listens to a preset specific partition number port, waiting to receive a message from an external program until the external program message arrives;

[0057] After the external program message of S52 and S51 arrives, the APCI interface checks the integrity of each received external program message. If the received external program message is complete, the external program message is retained; if the received external program message is incomplete, the external program message is discarded; wherein the external program message contains the attack event parameter configuration information;

[0058] S53, the APCI interface determines whether its receiving buffer is empty. If the receiving buffer is empty, the external program message is discarded; if the receiving buffer is not empty, the APCI interface notifies the message parser to parse the external program message in the receiving buffer queue until the message parsing work is completed; wherein, the receiving buffer processes the received external program message in a first-in-first-out principle, and the external program message that arrives first is processed first;

[0059] After the parsing work of the message parser in S54 and S53 is completed, the node manager will manage all nodes existing in the QualNet simulation program and determine whether the node in the external program message exists in the simulation scene. If the node specified by the node ID or IP address field in the external program message exists in the simulation scene of the QualNet simulation program, the node manager will notify the event scheduler to process the external program message; if the specified node does not exist in the simulation scene, the node manager will generate an APCI error message as a response to the request for this external program message and put it into the sending buffer;

[0060] S55. According to the node ID or IP address in the external program message, the event scheduler finds the event processor pointer of the node and schedules the event processor to process the external program message;

[0061] S56, the event processor reads the parameter type field from the external program message, and configures the parameters of the attack event model of the corresponding node in the QualNet simulation program according to the parameter type field. If a parameter is modified, the variables related to the parameter in the protocol stack model will also be recalculated, and the attack will be started or terminated according to the parameter.

[0062] S57, when the event processor successfully accesses or modifies the parameters in the node model, the event processor will generate a confirmation message and put it into the sending buffer;

[0063] S58, the sending buffer sends the confirmation message output by S57 to the external program through the UDP socket.

[0064] Step 6: Use the physical joint simulation platform framework built in step 3 to view the configuration results by entering attack instructions in the online attack configuration module.

[0065] Example

[0066] The accuracy of the present invention has been verified by simulation. Figure 5 As shown in the figure, the nodes are connected by wires and loaded with CBR data flow services from node 1 to node 14. Two routing lines are configured through static routing, namely the main and backup transmission routes indicated by the solid and dotted arrows in the figure, and the data flow is transmitted along the main route by default. At the same time, the scenario simulation time and CBR duration are set to 240 seconds, and the CBR transmission speed is configured to 10 packets / s. The hardware parameters of this example are shown in Table 1:

[0067] Table 1 DDEI test hardware parameters

[0068]

[0069] The communication simulation server runs QualNet and RTDS programs, and the online attack configuration module client is equipped with an interactive external program, which interoperates with the communication simulation server through APCI. In this embodiment, according to the above configuration method, QualNet-5.021 linux version and Qt5.1 version are used for implementation. The QualNet config configuration file uses the following format to enable APCI: [APCI YES].

[0070] This example configures two groups of control tests, in which test 1 does not configure attack events; test 2 presets the following events through the online attack configuration module: configure an attack event for node 4, the upstream node of node 5, node 4 has a node failure at 60 seconds of simulation time → node failure recovery at 90 seconds → link failure occurs between nodes 4 and 5 at 150 seconds → link failure recovery at 180 seconds → simulation ends at 240 seconds. The attack effect is reflected by node 5, and the cumulative number of data packets received by node 5 and node 11 in the two groups of tests is recorded respectively, as shown in Figure 6 shown.

[0071] for Figure 6 The results are explained as follows. In test 1, no failure event occurred, so the number of packets received by node 5 increased linearly. In test 2, node 4 had a node failure at 60 seconds, all its ports were closed, and the main route transmission route was interrupted. Therefore, the number of packets received by node 5 no longer increased. At the same time, the network switched to the backup route, so that the number of packets received by node 11 increased linearly. At 90 seconds, node 4 recovered and the main route data was received normally. When the simulation time reached 150 seconds, a link failure occurred on time between nodes 4 and 5, causing node 5 to be unable to receive data again. This process shows that the virtual network behavior is consistent with the failure events pre-assigned by PACI, and the events are executed accurately at the planned time.

[0072] The embodiment shows that the APCI interface can successfully and accurately deploy power network attack events. The processing process of the node attack event configuration message in the function is as follows:

[0073] 1. The initialization function void APCI_InitializeNodes(EXTERNAL_Interface* iface,NodeInput* nodeInput) creates a socket for each partition's APCI interface, but only the partition numbered zero listens to port 5134;

[0074] 2. After binding the port number, the receiving function void APCI_Receive(EXTERNAL_Interface*iface) is used to receive messages from external programs. Whenever a complete message is received, the voidProcessmessage(EXTERNAL_Interface* iface, char* in) function is called to process the received message.

[0075] 3. If the node identified in the message is in this partition, call the function EXTERNAL_MESSAGE_SendAnyNode(iface, node, msg, delay, EXTERNAL_SCHEDULE_LOOSELY) to send the parsed message information to the corresponding node after delaying delay seconds;

[0076] 4. Otherwise, call void APCI_Forward(EXTERNAL_Interface* iface, Node* node, void* forwardData, int forwardSize) to send an error message to port 5135, which will be received by the external program.

[0077] 5. Then the function void APCI_ProcessEvent(Node* node, Message* msg) obtains the information sent to the node, and selects the corresponding setData() function according to the type of information to process the obtained information to modify the parameters of the node;

[0078] 6. If the setting is successful, a correct message is sent to port 5135 through void APCI_Forward(), otherwise an error message is returned to port 5135 through void APCI_Forward().

[0079] Therefore, the present invention adopts the above-mentioned attack precise configuration system and method for smart grid joint simulation. The interface used combines the advantages of manual configuration and programmable pre-configuration, and can realize the programmable configuration method of power grid fault attack events in the simulation initialization phase and the dynamic modification and access of attack and model parameters during simulation operation, which effectively makes up for the shortcomings of the current dynamic testing method of power attack and provides a flexible testing means for smart grid attack assessment.

[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. A precise attack configuration method for smart grid joint simulation, characterized in that: The method is implemented by an attack precision configuration system for smart grid joint simulation, which includes a QaulNet simulation program, an RTDS simulator and an APCI interface component; the APCI interface component includes an APCI interface and an external program; wherein the QaulNet simulation program runs a network simulation scenario and interacts with the APCI interface, wherein the simulation scenario is responsible for simulating the behavior of the smart grid communication network; the RTDS simulator is used as a power simulation module to simulate the power stability control protection model and generate power business traffic; the APCI interface realizes the communication between the QualNet simulation program, the RTDS simulator and the external interactive program; the APCI interface includes six parts: UDP socket, receiving buffer, sending buffer, message parser, node manager, event scheduler and event processor; the APCI interface in the APCI interface development framework is a registration and call based on the API function of the QaulNet software, and the external program in the APCI interface development framework exists outside the QualNet simulation program, and inputs the node information that needs to be modified in the simulation scenario and sends it to the APCI interface through the UDP socket; The method comprises the following steps: Step 1: Establish a dual-network matching model of the power grid and communication network and a power communication network architecture model; Step 2: According to the simulation scenario requirements and based on the actual power distribution, a dual-network virtual scenario model is established, each power node protocol model is configured, and a network scenario topology is formulated; Step 3: Build a physical joint simulation platform framework; the physical joint simulation platform framework includes a communication simulation server, a power simulation server, an online attack configuration module, an external interface and a protocol conversion module; Step 4: Register the APCI interface. The specific steps are as follows: S41, the function EXTERNAL_UserFunctionRegistration declares an APCI interface through External_RegisterExternal-Interface; S42, function EXTERNAL_UserFunctionRegistration binds the corresponding callback function to the APCI interface; S43, function EXTERNAL_SetTimeManagementRealTime manages the simulation time and runs according to the actual time; S44, function EXTERNAL_SetReceiveDelay sets the minimum delay time between two received messages, and the minimum delay time range is 300ms to 1000ms; Step 5: Call the APCI interface function; the specific process is as follows: S51, the APCI interface opens a UDP socket and listens to a preset specific partition number port, waiting to receive a message from an external program until the external program message arrives; After the external program messages of S52 and S51 arrive, the APCI interface checks the integrity of each received external program message. If the received external program message is complete, the external program message is retained; if the received external program message is incomplete, the external program message is discarded; S53, the APCI interface determines whether its receiving buffer is empty. If the receiving buffer is empty, the external program message is discarded; if the receiving buffer is not empty, the APCI interface notifies the message parser to parse the external program message in the receiving buffer queue until the message parsing work is completed; After the parsing work of the message parser in S54 and S53 is completed, the node manager will manage all nodes existing in the QualNet simulation program and determine whether the node in the external program message exists in the simulation scene. If the node specified by the node ID or IP address field in the external program message exists in the simulation scene of the QualNet simulation program, the node manager will notify the event scheduler to process the external program message; if the specified node does not exist in the simulation scene, the node manager will generate an APCI error message as a response to the request for this external program message and put it into the sending buffer; S55. According to the node ID or IP address in the external program message, the event scheduler finds the event processor pointer of the node and schedules the event processor to process the external program message; S56, the event processor reads the parameter type field from the external program message, and configures the parameters of the attack event model of the corresponding node in the QualNet simulation program according to the parameter type field. If a parameter is modified, the variables related to the parameter in the protocol stack model will also be recalculated, and the attack will be started or terminated according to the parameter. S57, when the event processor successfully accesses or modifies the parameters in the node model, the event processor will generate a confirmation message and put it into the sending buffer; S58, the sending buffer sends the confirmation message output by S57 to the external program through the UDP socket; Step 6: Use the physical joint simulation platform framework built in step 3 to view the configuration results by entering attack instructions in the online attack configuration module.

2. According to claim 1, a precise attack configuration method for smart grid joint simulation is characterized by: The external program message contains the attack event parameter configuration information.

3. The attack precise configuration method for smart grid joint simulation according to claim 2 is characterized by: The order in which the receive buffer processes the received external program messages follows the first-in-first-out principle, and the external program message that arrives first is processed first.