A method, device and equipment for detecting network attacks on frequency-controlled power systems
By decomposing the original dynamic model of the power system into two subsystems and constructing a comprehensive system observer, the problem of difficulty in detecting network attacks in the existing technology is solved, effective detection and decoupling of false data injection attacks are achieved, and power efficiency is improved. Accuracy of system cyber attack detection.
Patent Information
- Application Number
- CN202410073169.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-01-18
AI Technical Summary
When detecting power system network attacks, existing technologies rarely consider the decoupling of network attacks from external system interference, as well as system interference, nonlinearity, and different types of transmission links between different power regions, making it difficult to detect network attacks.
By decomposing the original dynamic model of the power system into two subsystems, one subsystem is disturbed but not affected by false injection attacks, and the other subsystem is affected by false injection attacks but is not disturbed, thereby realizing the balance between false data injection attacks and system interference. Decouple and build a system comprehensive observer based on these subsystems for network attack detection.
It achieves effective detection of network attacks, can monitor the impact of false data injection attacks in real time in actual power system models, and solves the problem that attack detection methods in the existing technology fail to effectively decouple network attacks and system interference.
Smart Images

Figure CN117596077B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power systems, and in particular relates to a method, device and equipment for detecting network attacks on a frequency-controlled power system. Background Art
[0002] Smart grid power systems have widely integrated information and communication technologies and have become the focus of cyber attacks. Their network security is considered a key issue. Load frequency control is an important control loop that uses information and communication technology to realize power system automation. It maintains the power system frequency within its allowable operating range and maintains the power exchange between interconnected areas at a predetermined level by appropriately adjusting the set values of the generators. Once the load frequency control system is attacked by a cyber attack, it is a huge hidden danger for the motor system.
[0003] False data injection attacks are the most challenging type of cyber attacks against load frequency control. For example, in the detection method of covert cyber attacks in electric vehicle load frequency control systems, the model state equation of covert cyber attacks is established, the H infinite sliding mode observer is designed, and the bilateral time-varying coding mechanism is designed to encrypt the transmission signal to detect covert cyber attacks. However, existing attack detection methods rarely consider the decoupling of cyber attacks from external system interference, nor do they consider system interference, nonlinearity, and different types of transmission links between different power areas. It is difficult to detect cyber attacks when there are system nonlinearity, interference, and cyber attacks at the same time.
[0004] There is an urgent need for a method, device and equipment for detecting network attacks on frequency-controlled power systems, so as to solve the problem that the existing attack detection methods rarely consider the decoupling of network attacks from external system interference, and do not consider system interference, nonlinearity and different types of transmission links between different power areas. Summary of the invention
[0005] In order to solve the problem that the attack detection methods in the prior art rarely consider the decoupling of network attacks from external system interference, and do not consider the problems of system interference, nonlinearity and different types of transmission links between different power areas, the embodiments of the present specification provide a frequency-controlled power system network attack detection method, device and equipment, which can decompose the original dynamic model of the power system into two subsystems, so that the first subsystem is disturbed but not affected by the false injection attack, and the second subsystem is affected by the false injection attack but not disturbed, thereby decoupling the false data injection attack from other system interferences from loads and renewable energy, realizing the detection of network attacks, and can be applied to actual power system models.
[0006] In order to solve the above technical problems, the specific technical solutions of this specification are as follows:
[0007] On the one hand, an embodiment of this specification provides a method for detecting network attacks on a frequency-controlled power system, the method comprising:
[0008] Construct a power system model for multi-area frequency control;
[0009] calculating a spatial expression of a multi-area frequency controlled power system state based on the power system model;
[0010] According to the spatial expression and the false injection attack, a frequency control power system state space model is established;
[0011] Decoupling the power system state space model through a matrix transformation method to generate a first subsystem containing only system interference and a second subsystem containing only network attacks;
[0012] Based on the first subsystem and the second subsystem, a system comprehensive observer is constructed to detect network attacks.
[0013] Furthermore, constructing a multi-area frequency controlled power system model further includes,
[0014] The comprehensive dynamic performance of all generators in the power system area is expressed by an equivalent frequency-controlled power system model consisting of loads, generators, speed regulators, and transmission lines:
[0015] ,
[0016] In the formula, for a power system with N regions, For the i The frequency deviation derivative of the region; the inertia constant is H i ; The generator output power deviation is ; The variation deviation of renewable energy power generation is ; Load disturbance deviation is ; The power deviation of the transmission line is The damping constant is D i ; The system frequency deviation is △ f i ;
[0017] Among them i The power deviation of a regional transmission line is expressed as:
[0018] ,
[0019] in, is the power exchange deviation of the AC line; is the power exchange deviation of the HVDC line.
[0020] Furthermore, the dynamic models of the generator and the speed regulator are:
[0021] ,
[0022] ,
[0023] In the formula, is the generator dynamics model; is the rated time constant of the generator; X i is the governor valve position deviation; is the generator output power deviation; is the speed governor dynamics model; is the rated time constant of the speed regulator; It is the speed regulator speed position deviation control signal; f i is the system frequency deviation; R i It is a drooping characteristic;
[0024] The speed regulator speed position deviation control signal based on the integral controller is modeled as:
[0025] ,
[0026] In the formula, is the integral gain coefficient; E i For the i Power control error in each control area;
[0027] For each control area i , E i Defined as:
[0028] ,
[0029] In the formula, β i is the frequency offset coefficient; f i is the system frequency deviation.
[0030] Further, according to the power system model, calculating the spatial expression of the multi-area frequency controlled power system state further includes,
[0031] According to the multi-area frequency control power system model, the first i The local state vector of the state space of a region is:
[0032] i=1,2…N,
[0033] Superscript T is the transpose of the matrix;
[0034] The state space expression of the entire power system containing N areas is as follows:
[0035] ,
[0036] is the global state vector; i ( x , t ) is the modeling nonlinearity; is the input vector, set to an m*1 dimensional matrix; is the perturbation vector, set to an r*1 dimensional matrix; P di is the disturbance vector of the system, ; y ( t ) is the output vector, set to a p*1 dimensional matrix; A,B,C,E is a known coefficient matrix, where m、r、p is the dimension of the matrix.
[0037] Further, according to the spatial expression and the false injection attack, establishing the frequency control power system state space model further includes, according to the spatial expression and the false injection attack, establishing the frequency control power system state space model further includes, the frequency control power system state space model established according to the false injection attack is as follows:
[0038] ,
[0039] Where D is the coefficient matrix of the p*q dimensional attack vector, p≥q+r ; a s ( t ) is the attack vector, which is set to a q*1-dimensional matrix, where q is the dimension of the matrix.
[0040] Furthermore, the attack vector a s ( t ), in the case of a standard fake injection attack, a s ( t ) is a typical attack function;
[0041] When the attack causes communication interruption, it is expressed as: ,
[0042] in t a For the interruption time;
[0043] When the attack causes communication delay, it is expressed as: ,
[0044] in t d is the duration of the delay.
[0045] Furthermore, the power system state space model is decoupled by a matrix transformation method to generate a first subsystem containing only system interference and a second subsystem containing only network attacks, further comprising:
[0046] Decoupling the power system state space model into two subsystems by means of a matrix transformation method;
[0047] Assumptions rk (E) = rk (CE), where rk (·) is the rank of the matrix; C and E are the matrix coefficients;
[0048] By establishing the transformation matrix T, S, the system state of each region is transformed x Decoupling g 1, g 2. System output y Decoupling oh 1, oh 2;
[0049] ,
[0050] In the formula, g 1 is the state vector of the first subsystem, which is an r*1-dimensional matrix; g 2 is the state vector of the second subsystem, which is a (nr)*1-dimensional matrix; oh 1 is the output of the first subsystem, which is an r*1 dimensional matrix; oh 2 is the output of the second subsystem, which is a (pr)*1-dimensional matrix;
[0051] in T =[ T 1 T 2] T , S =[ S 1 S 2] T ;
[0052] T 1 is the decoupling transformation matrix of the first subsystem of r*n dimension; T 2 is the (nr)*n dimensional second subsystem decoupling transformation matrix; S 1 is the decoupling transformation matrix of the first subsystem of r*p dimension; S2 is the decoupling transformation matrix of the second subsystem of (pr)*p dimension;
[0053] After adopting the above matrix transformation, the power system is divided into the following two subsystems:
[0054] The first subsystem containing only system disturbances:
[0055] ,
[0056] In the formula, is the derivative of the state vector of the first subsystem decomposed; A 1 is the matrix coefficient of the first subsystem; , A 2 is the r*(nr) dimension coefficient matrix, [ A 20 r×(p-r) ]for A A matrix of 2 and 0 vectors; E 1 is the r*r dimension coefficient matrix; g 0 is the state vector of the second subsystem containing only the network attack; g is the total system state quantity; t For time, u For input, d is interference; system auxiliary variable ; is the derivative of the system's auxiliary variable; C 4 is the system auxiliary variable matrix coefficient; D 2 is the coefficient of the network attack term;
[0057] Therefore, the second subsystem containing only network attacks is merged into:
[0058] ,
[0059] In the formula, , oh 3= g 3. , ,
[0060] in, A 3 is the (nr)*r dimension coefficient matrix; A 4 is a (nr)*(nr) dimension coefficient matrix; C 1 is the r*r dimension coefficient matrix; C 4 is a (pr)*(nr) dimension coefficient matrix; D 2 is the (pr)*q-dimensional coefficient matrix; B 2 is the coefficient matrix of the second subsystem is the derivative of the state vector of the second subsystem;A 0. A 3. T 2. B 0. D 0. C 0 is the coefficient matrix of the second subsystem; is a nonlinear term; oh 3 is the output of the second subsystem; g 3 is the intermediate variable of the construction subsystem; 0 is the 0 matrix of the corresponding dimension; B 2 Yes g 2The corresponding matrix coefficients of the system; D 2 is the coefficient matrix of the network attack term; I p-r is the identity matrix with interference removed; T 2 is the coefficient matrix of nonlinear terms; C 0 is the coefficient matrix of the second subsystem.
[0061] Furthermore, based on the first subsystem and the second subsystem, constructing a system integrated observer for detecting false injection network attacks further includes:
[0062] Introducing the disturbance error injection term, the first subsystem constructs the sliding mode observer structure as follows:
[0063] ,
[0064] In the formula, is the derivative of the state observation of the first subsystem; for g Observed value of 1; v 1 is the interference error injection term; yes g 0 observation value;
[0065] Introducing the network attack injection term, the Lumberg observer of the second subsystem is constructed as follows:
[0066] ,
[0067] is the derivative of the state observation of the second subsystem; for C The inverse matrix of 1; is the nonlinear term of the second subsystem observation; L 0 is the observer gain, is the output of the second subsystem observation;
[0068] The estimated error expressions of the two systems are established as:
[0069] ,
[0070] ,
[0071] When there is no attack, the error dynamics is expressed as:
[0072] ,
[0073] is the error change of the first subsystem; is the error change of the second subsystem;
[0074] When the system is in the time step t When facing a false injection attack, the error dynamics are:
[0075] ,
[0076] ;
[0077] Attack Distribution Matrix , attack vector a s Only affects The End p-r The output component, that is ;
[0078] When a false injection attack occurs, only will change;
[0079] choose As residual for false injection attack detection;
[0080] constructing the sliding mode observer and the Romberg observer into a comprehensive observer;
[0081] The estimation error of the integrated observer or , the adaptive threshold is designed as:
[0082] ,
[0083] In the formula, s represents the pre-adaptive threshold; or is the estimated error of the Lumberg observer of the second subsystem;
[0084] When the deviation between the estimated value of the second subsystem and the actual value of the system is e 0 is greater than the adaptive threshold s When a false injection network attack is detected, e 0 ≥ s The first time point of the attack is taken as the moment t d (t d≥t e );
[0085] Otherwise, assume that the system is e The inside is in normal condition.
[0086] On the other hand, the embodiment of this specification also provides a frequency control power system network attack detection device, including:
[0087] A model building unit, used for building a power system model for multi-area frequency control;
[0088] an expression calculation unit, which calculates a spatial expression of a multi-area frequency controlled power system state according to the power system model;
[0089] A false injection unit, used for establishing a frequency control power system state space model according to the space expression and the false injection attack;
[0090] A model decoupling unit, used for decoupling the power system state space model to generate a first subsystem containing only system interference and a second subsystem containing only network attacks;
[0091] A scheme design unit is used to construct a system comprehensive observer based on the first subsystem and the second subsystem to detect network attacks.
[0092] On the other hand, an embodiment of the present specification further provides a computer device, including a memory, a processor, and a computer program stored in the memory, and the processor implements the above method when executing the computer program.
[0093] Finally, the embodiments of this specification also provide a computer storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer device, the above method is executed.
[0094] By using the embodiment of this specification, the original dynamic model of the power system is decomposed into two subsystems, so that the false data injection attack is decoupled from other system interferences from loads and renewable energy, and the network attack is detected. In order to enable the method to be applied in the actual power system model, a multi-region frequency-controlled power system model is first constructed; and according to the power system model, the spatial expression of the state of the multi-region frequency-controlled power system is calculated to achieve the effect of real-time monitoring of the impact of the false data injection attack on the power system, and the frequency-controlled power system state space model is established according to the spatial expression and the false injection attack; the power system state space model is decoupled, and the original dynamic model of the power system is actually decomposed into two subsystems to generate a first subsystem containing only system interference and a second subsystem containing only network attacks, so that the first subsystem is disturbed but not affected by the false injection attack, and the second subsystem is attacked by the false injection but not disturbed, so that the false data injection attack is decoupled from other system interferences from loads and renewable energy, and finally based on the first subsystem and the second subsystem, a system comprehensive observer is constructed to detect network attacks. The problem that the attack detection method in the prior art rarely considers the decoupling of network attacks from external system interference is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0095] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0096] Figure 1 It is a flow chart of a method for detecting network attacks on a frequency-controlled power system according to an embodiment of this specification;
[0097] Figure 2 Shown is a flow chart of calculating the spatial expression of the state of a multi-region frequency-controlled power system according to an embodiment of this specification;
[0098] Figure 3 The flowchart of constructing a multi-region frequency control power system model according to an embodiment of this specification is shown;
[0099] Figure 4 The flowchart of establishing a state space model of a frequency-controlled power system according to an embodiment of this specification is shown;
[0100] Figure 5 Shown is a flowchart of constructing a system comprehensive observer according to an embodiment of this specification;
[0101] Figure 6Shown is a flow chart of detecting false injection network attacks according to an embodiment of this specification;
[0102] Figure 7 It is a schematic diagram of the structure of a frequency control power system network attack detection device according to an embodiment of this specification;
[0103] Figure 8 The figure shows a schematic diagram of the structure of a computer device according to an embodiment of the present specification.
[0104]
Description of reference numerals
[0105] 701, model building unit;
[0106] 702, expression calculation unit;
[0107] 703, false injection unit;
[0108] 704, model decoupling unit;
[0109] 705. Project design unit;
[0110] 802. Computer equipment;
[0111] 804. Processing equipment;
[0112] 806. Storage resources;
[0113] 808, driving mechanism;
[0114] 810, input / output module;
[0115] 812. Input device;
[0116] 814. Output device;
[0117] 816. Presentation equipment;
[0118] 818. Graphical user interface;
[0119] 820, network interface;
[0120] 822, communication link;
[0121] 824. Communication bus. DETAILED DESCRIPTION
[0122] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0123] It should be noted that the terms "first", "second", etc. in the description and claims of this specification 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 this specification 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, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0124] In order to solve the problems existing in the prior art, the embodiments of this specification provide a method and device for detecting network attacks on a frequency-controlled power system. Figure 1 The flowchart of a method for detecting network attacks on a frequency-controlled power system provided in an embodiment of this specification is shown. The process of constructing an observer to detect network attacks is described in this figure. The order of steps listed in the embodiment is only one way of executing the steps among many, and does not represent the only execution order. When the actual system or device product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiment or the accompanying drawings. Specifically, Figure 1 As shown, the method may include:
[0125] Step 101: construct a power system model for multi-area frequency control;
[0126] Step 102: Calculate a spatial expression of a multi-area frequency controlled power system state according to the power system model;
[0127] Step 103: establishing a frequency control power system state space model according to the space expression and the false injection attack;
[0128] Step 104: decoupling the power system state space model through a matrix transformation method to generate a first subsystem containing only system interference and a second subsystem containing only network attacks;
[0129] Step 105: Based on the first subsystem and the second subsystem, a system comprehensive observer is constructed to detect network attacks.
[0130] By using the embodiment of this specification, the original dynamic model of the power system is decomposed into two subsystems, so that the false data injection attack is decoupled from other system interferences from loads and renewable energy, and the network attack is detected. In order to enable the method to be applied in the actual power system model, a multi-region frequency-controlled power system model is first constructed; and according to the power system model, the spatial expression of the state of the multi-region frequency-controlled power system is calculated to achieve the effect of real-time monitoring of the impact of the false data injection attack on the power system, and the frequency-controlled power system state space model is established according to the spatial expression and the false injection attack; the power system state space model is decoupled, and the original dynamic model of the power system is actually decomposed into two subsystems to generate a first subsystem containing only system interference and a second subsystem containing only network attacks, so that the first subsystem is disturbed but not affected by the false injection attack, and the second subsystem is attacked by the false injection but not disturbed, so that the false data injection attack is decoupled from other system interferences from loads and renewable energy, and finally based on the first subsystem and the second subsystem, a system comprehensive observer is constructed to detect network attacks. The problem that the attack detection method in the prior art rarely considers the decoupling of network attacks from external system interference is solved.
[0131] In the embodiments of the present specification, a multi-area frequency-controlled power system model is first constructed. The power system model is the basis of simulation calculations. Dynamic analysis and safety control based on the power system model can also improve the transmission capacity of the power system and eliminate safety hazards. The multi-area frequency-controlled power system model constructed in the present specification can be applied in practical applications and has high market value and practical significance. Then, the spatial expression of the state of the multi-area frequency-controlled power system can be calculated according to the power system model. By adding false injection attacks to the power system model, a frequency-controlled power system state space model containing false injection attacks can be established. Then, through matrix transformation, the original dynamic model of the power system is actually decomposed into two subsystems, that is, the power system state space model is decoupled to generate a first subsystem containing only system interference and a second subsystem containing only network attacks, that is, the first subsystem is interfered with but not affected by the false injection attack, and the second subsystem is affected by the false injection attack but not interfered with. In this way, the false data injection attack is decoupled from other system interferences from loads and renewable energy sources. Then, based on the two subsystems, a system comprehensive observer was constructed to detect network attacks. A sliding mode observer was developed for the first subsystem, and a Lumberg observer was developed for the second subsystem. Therefore, when the estimation error of the second subsystem is greater than the set adaptive threshold, the network attack can be detected, solving the problems in the prior art.
[0132] According to one embodiment of this specification, Figure 2As shown, it is a flowchart of calculating the spatial expression of the state of the multi-region frequency control power system according to the embodiment of this specification. Specifically,
[0133] Step 201: The comprehensive dynamic performance of all generators in the power system area is combined into an equivalent frequency control power system model consisting of loads, generators, speed regulators, and transmission lines;
[0134] Step 202: establishing a state space local state vector of the i-th region according to the multi-region frequency control power system model;
[0135] Step 203: Construct a state space expression of the entire power system including N areas.
[0136] Among them, constructing a multi-region frequency control power system model further includes:
[0137] The comprehensive dynamic performance of all generators in the power system area is expressed by an equivalent frequency-controlled power system model consisting of loads, generators, speed regulators, and transmission lines:
[0138] ,
[0139] In the formula, for a power system with N regions, For the i The frequency deviation derivative of the region; the inertia constant is H i ; The generator output power deviation is ; The variation deviation of renewable energy power generation is ; Load disturbance deviation is ; The power deviation of the transmission line is The damping constant is D i ; The system frequency deviation is △ f i ;
[0140] Among them i The power deviation of a regional transmission line is expressed as:
[0141] ,
[0142] in, is the power exchange deviation of the AC line; is the power exchange deviation of the HVDC line.
[0143] According to one embodiment of the present specification, power system simulation calculation is not only a basic tool for dynamic analysis and safety control of the power system, but also the basis for simulation calculation. Therefore, a power system model is built according to the theorems and laws of power system components, and the equivalent frequency control and deviation of loads, generators, speed regulators, transmission lines, etc. are considered to ensure that the power system model can simulate the actual situation of the power system as much as possible.
[0144] According to an embodiment of the present specification, in order to obtain a power system model with a higher degree of simulation, the dynamic models of the generator and the speed regulator need to be considered. By establishing the model in a state space form, the following coefficient matrix is derived. Specifically, the dynamic models of the generator and the speed regulator in the power system model are:
[0145] ,
[0146] ,
[0147] In the formula, is the generator dynamics model; is the rated time constant of the generator; X i is the governor valve position deviation; is the generator output power deviation; is the speed governor dynamics model; is the rated time constant of the speed regulator; It is the speed regulator speed position deviation control signal; f i is the system frequency deviation; R i It is a drooping characteristic;
[0148] The speed controller speed position deviation control signal based on the integral controller Modeled as:
[0149] ,
[0150] In the formula, is the integral gain coefficient; E i For the i Power control error in each control area;
[0151] For each control area i , E i Defined as:
[0152] ,
[0153] In the formula, βi is the frequency offset coefficient; f i is the system frequency deviation.
[0154] In the embodiment of this specification, the load frequency controls the power system to receive the first i The power control error of the control area is used as its input to tune the speed regulator of the generator in the area, track the load changes, and adjust the power and frequency of the transmission line. i The bus power deviation of each area is:
[0155] (i=1,…N);
[0156] In the formula, Transmission line power deviation; Power exchange deviation of AC bus; Power exchange deviation of the DC bus.
[0157] In the embodiment of the present specification, the state equation and the output equation together constitute a complete dynamic description of the system. In order to further describe the input-output relationship of the power system and reveal the relationship between the variable amounts in the power system model, according to the power system model, the spatial expression of the state of the multi-regional frequency control power system is further calculated, including:
[0158] According to the multi-area frequency control power system model, the first i The local state vector of the state space of a region is:
[0159] i=1,2…N,
[0160] Superscript T is the transpose of the matrix;
[0161] The state space expression of the entire power system containing N areas is as follows:
[0162] ,
[0163] is the global state vector; i ( x , t ) is the modeling nonlinearity; is the input vector, set to an m*1 dimensional matrix; is the perturbation vector, set to an r*1 dimensional matrix; P di is the disturbance vector of the system, ; y ( t) is the output vector, set to a p*1-dimensional matrix; A,B,C,E is a known coefficient matrix, where m、r、p is the dimension of the matrix.
[0164] According to the spatial expression and the false injection attack, establishing a frequency control power system state space model further includes: the frequency control power system state space model established according to the false injection attack is as follows:
[0165] ,
[0166] Where D is the coefficient matrix of the p*q dimensional attack vector, p≥q+r ; a s ( t ) is the attack vector, which is set to a q*1-dimensional matrix, where q is the dimension of the matrix.
[0167] In the embodiments of this specification, when a false injection attack is performed, the type of attack also needs to be considered, such as Figure 3 As shown, it is a flowchart of constructing a multi-region frequency control power system model according to an embodiment of this specification.
[0168] Step 301: A frequency control power system state space model established according to a false injection attack;
[0169] Step 302: When the attack causes communication interruption, it is represented as: D as (t) =C (x(t a )-x(t));
[0170] Step 303: When the attack causes communication delay, it is represented as: D as (t) =C (x(tt d )-x(t));
[0171] Among them, the attack vector a s ( t ), in the case of a standard fake injection attack, a s ( t ) is a typical attack function;
[0172] When the attack causes communication interruption, it is expressed as: ,in t a For the interruption time;
[0173] When the attack causes communication delay, it is expressed as: ,in t d is the duration of the delay.
[0174] In the embodiment of this article, since the false injection attack will generate attack variable structure items to the system, it is difficult to accurately estimate the state of the original system. The first subsystem is disturbed but not affected by the false injection attack, and the second subsystem is attacked by the false injection but not disturbed; in this way, the false data injection attack is decoupled from other system disturbances from loads and renewable energy. Figure 4 The flowchart of establishing a frequency control power system state space model according to an embodiment of this specification is shown.
[0175] Step 401: decoupling the power system state space model into two subsystems;
[0176] Step 402: Decouple the system state x and the system output y of each region by establishing a transformation matrix;
[0177] Step 403: Divide the power system into a first subsystem containing only system interference and a second subsystem containing only network attacks.
[0178] Among them, the original system uses matrix conversion technology for state estimation, decoupling the system into the following two subsystems;
[0179] Assumptions rk (E) = rk (CE), where rk (·) is the rank of the matrix; C and E are the matrix coefficients;
[0180] By establishing the transformation matrix T, S, the system state of each region is transformed x Decoupling g 1, g 2. System output y Decoupling oh 1, oh 2;
[0181] ,
[0182] In the formula, g 1 is the state vector of the first subsystem, which is an r*1-dimensional matrix; g 2 is the state vector of the second subsystem, which is a (nr)*1-dimensional matrix; oh 1 is the output of the first subsystem, which is an r*1 dimensional matrix; oh 2 is the output of the second subsystem, which is a (pr)*1-dimensional matrix;
[0183] in T =[ T 1 T 2] T , S =[ S 1 S2] T ;
[0184] T 1 is the decoupling transformation matrix of the first subsystem of r*n dimension; T 2 is the (nr)*n dimensional second subsystem decoupling transformation matrix;
[0185] S 1 is the decoupling transformation matrix of the first subsystem of r*p dimension; S 2 is the decoupling transformation matrix of the second subsystem of (pr)*p dimension;
[0186] After adopting the above matrix transformation, the power system is divided into the following two subsystems:
[0187] The first subsystem containing only system disturbances:
[0188] ,
[0189] In the formula, is the derivative of the state vector of the first subsystem decomposed; A 1 is the matrix coefficient of the first subsystem; , A 2 is the r*(nr) dimension coefficient matrix, [ A 20 r×(p-r) ]for A A matrix of 2 and 0 vectors; E 1 is the r*r dimension coefficient matrix; g 0 is the state vector of the second subsystem containing only the network attack; g is the total system state quantity; t For time, u For input, d is interference; system auxiliary variable ; is the derivative of the system's auxiliary variable; C 4 is the system auxiliary variable matrix coefficient; D 2 is the coefficient of the network attack term;
[0190] Therefore, the second subsystem containing only network attacks is merged into:
[0191] ,
[0192] In the formula, , oh 3= g 3. , ,
[0193] in, A3 is the (nr)*r dimension coefficient matrix; A 4 is a (nr)*(nr) dimension coefficient matrix; C 1 is the r*r dimension coefficient matrix; C 4 is a (pr)*(nr) dimension coefficient matrix; D 2 is the (pr)*q-dimensional coefficient matrix; B 2 is the coefficient matrix of the second subsystem is the derivative of the state vector of the second subsystem; A 0. A 3. T 2. B 0. D 0. C 0 is the coefficient matrix of the second subsystem; is a nonlinear term; oh 3 is the output of the second subsystem; g 3 is the intermediate variable of the construction subsystem; 0 is the 0 matrix of the corresponding dimension; B 2 Yes g 2The corresponding matrix coefficients of the system; D 2 is the coefficient matrix of the network attack term; I p-r is the identity matrix with interference removed; T 2 is the coefficient matrix of nonlinear terms; C 0 is the coefficient matrix of the second subsystem.
[0194] Define a new state: ;
[0195] so: ;
[0196] The second subsystem is rewritten as follows n+p- 2 r Order augmented system:
[0197] ;
[0198] The augmented second subsystem is simplified as follows:
[0199] ;
[0200] in ;
[0201] ;
[0202] ;
[0203] The above letters are the coefficient matrices of the augmented second subsystem.
[0204] Similarly, the first subsystem is rewritten as follows:
[0205] ;
[0206] in, .
[0207] According to one embodiment of the present specification, the estimation error of the integrated observer designed for the first subsystem and the second subsystem will converge to 0 under no-attack conditions, and the dynamic error depends on the attack vector after the attack occurs. The selected residual is zero under normal conditions or when disturbed, and is non-zero when a network attack occurs. Figure 5 As shown, it is a flowchart of constructing a system comprehensive observer according to an embodiment of this specification.
[0208] Step 501: introducing a disturbance error injection term to construct a sliding mode observer for the first subsystem;
[0209] Step 502: introducing a network attack injection item and constructing a second subsystem Lumberg observer;
[0210] Step 503: Establishing an estimated error expression of the two systems;
[0211] Step 504: construct the sliding mode observer and the Lumberg observer into a comprehensive observer.
[0212] Among them, introducing the interference error injection term, specifically, constructing a system comprehensive observer based on the first subsystem and the second subsystem for detecting false injection network attacks further includes:
[0213] Introducing the disturbance error injection term, the first subsystem constructs the sliding mode observer structure as follows:
[0214] ,
[0215] In the formula, is the derivative of the state observation of the first subsystem; for g Observed value of 1; v 1 is the interference error injection term; yes g 0 observation value;
[0216] Introducing the network attack injection term, the Lumberg observer of the second subsystem is constructed as follows:
[0217] ,
[0218] is the derivative of the state observation of the second subsystem; for C The inverse matrix of 1; is the nonlinear term of the observation of the second subsystem; L 0 is the observer gain, is the output of the second subsystem observation;
[0219] The estimated error expressions of the two systems are established as:
[0220] ,
[0221] ,
[0222] When there is no attack, the error dynamics is expressed as:
[0223] ,
[0224] is the error change of the first subsystem; is the error change of the second subsystem;
[0225] When the system is in the time step t When facing a false injection attack, the error dynamics are:
[0226] ,
[0227] ;
[0228] Attack Distribution Matrix , attack vector a s Only affects The End p-r The output component, that is ;
[0229] In the embodiment of this article, when a false injection attack occurs, it is necessary to make a judgment based on the change of the coefficient, such as Figure 6 The flowchart of detecting false injection network attack is shown. Specifically,
[0230] Step 601: When a false injection attack occurs, only the last output component of e0 will change;
[0231] Step 602: Select the last output component as the residual for false injection attack detection;
[0232] Step 603: Whether the deviation e0 between the value of the second subsystem and the actual value of the system is greater than the adaptive threshold;
[0233] Step 604: If yes, a false injection network attack is detected, and the first time point when e0 is greater than the adaptive threshold is taken as the moment when the attack is detected;
[0234] Step 605: Otherwise, it is assumed that the system is in a normal state during this time;
[0235] When a false injection attack occurs, only will change;
[0236] choose As residual for false injection attack detection;
[0237] constructing the sliding mode observer and the Romberg observer into a comprehensive observer;
[0238] The estimation error of the integrated observer or , the adaptive threshold is designed as:
[0239] ,
[0240] In the formula, s represents the pre-adaptive threshold; or is the estimated error of the Lumberg observer of the second subsystem;
[0241] When the deviation between the estimated value of the second subsystem and the actual value of the system is e 0 is greater than the adaptive threshold s When a false injection network attack is detected, e 0 ≥ s The first time point of the attack is taken as the moment t d (t d ≥t e );
[0242] Otherwise, assume that the system is e The inside is in normal condition.
[0243] In the embodiment of this article, for network attack detection, a comprehensive observer is constructed, a sliding mode observer is developed for the first subsystem, and a Lumberg observer is developed for the second subsystem. Therefore, when the estimation error of the second subsystem is greater than the set adaptive threshold, the detection of the network attack can be achieved.
[0244] Exemplarily, in a specific embodiment, the adaptive attack detection scheme is as follows:
[0245] When the state estimator estimates the deviation between the value of the second subsystem and the actual value of the system e 0 is greater than the adaptive threshold s t, a false injection attack is detected; otherwise, it is assumed that the system is e The inside is in normal condition.
[0246] Will e 0 ≥ s The first time point of the attack is taken as the moment t d (t d ≥t e ).
[0247] The embodiment of this specification also provides a frequency control power system network attack detection device, such as Figure 7 As shown, including,
[0248] A model building unit 701 is used to build a power system model for multi-region frequency control;
[0249] An expression calculation unit 702 calculates a spatial expression of a multi-area frequency controlled power system state according to the power system model;
[0250] A false injection unit 703, used to establish a frequency control power system state space model according to the space expression and the false injection attack;
[0251] A model decoupling unit 704, configured to decouple the power system state space model to generate a first subsystem containing only system interference and a second subsystem containing only network attacks;
[0252] The scheme design unit 705 is used to construct a system comprehensive observer based on the first subsystem and the second subsystem to detect network attacks.
[0253] Since the principle of solving the problem by the above device is similar to that of the above method, the implementation of the above device can refer to the implementation of the above method, and the repeated parts will not be repeated.
[0254] like Figure 8The structure diagram of the computer device of the embodiment of this article is shown. The device in this article can be a computer device in this embodiment, and the method of this article is executed. The computer device 802 may include one or more processing devices 804, such as one or more central processing units (CPUs), and each processing unit can implement one or more hardware threads. The computer device 802 may also include any storage resource 806, which is used to store any kind of information such as code, settings, data, etc. Non-limiting, for example, the storage resource 806 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any storage resource can use any technology to store information. Further, any storage resource can provide volatile or non-volatile retention of information. Further, any storage resource can represent a fixed or removable component of the computer device 802. In one case, when the processing device 804 executes an associated instruction stored in any storage resource or a combination of storage resources, the computer device 802 can perform any operation of the associated instruction. The computer device 802 also includes one or more drive mechanisms 808 for interacting with any storage resources, such as a hard disk drive mechanism, an optical disk drive mechanism, and the like.
[0255] The computer device 802 may also include an input / output module 810 (I / O) for receiving various inputs (via input devices 812) and for providing various outputs (via output devices 814). A specific output mechanism may include a presentation device 816 and an associated graphical user interface (GUI) 818. In other embodiments, the input / output module 810 (I / O), the input device 812, and the output device 814 may not be included, and the computer device 802 may be used as a computer device in a network. The computer device 802 may also include one or more network interfaces 820 for exchanging data with other devices via one or more communication links 822. One or more communication buses 824 couple the components described above together.
[0256] The communication link 822 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 822 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.
[0257] Corresponds to Figure 2 to Figure 6 The method in this article 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 above steps are performed.
[0258] The embodiment of the present invention also provides a computer readable instruction, wherein when the processor executes the instruction, the program therein causes the processor to execute the following Figure 2 to Figure 6 The method shown.
[0259] It should be understood that in the various embodiments of this specification, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this specification.
[0260] It should also be understood that in the embodiments of this specification, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this specification generally indicates that the associated objects before and after are in an "or" relationship.
[0261] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this specification can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are 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 this specification.
[0262] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0263] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.
[0264] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of this specification.
[0265] In addition, each functional unit in each embodiment of this specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0266] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this specification is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0267] Specific embodiments are used in this specification to illustrate the principles and implementation methods of this specification. The description of the above embodiments is only used to help understand the methods and core ideas of this specification. At the same time, for those skilled in the art, according to the ideas of this specification, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this specification.
Claims
1. A method for detecting network attacks on a frequency-controlled power system, characterized in that: The method comprises, Construct a power system model for multi-area frequency control; calculating a spatial expression of a multi-area frequency controlled power system state based on the power system model; According to the spatial expression and the false injection attack, a frequency control power system state space model is established; Decoupling the power system state space model through a matrix transformation method to generate a first subsystem containing only system interference and a second subsystem containing only network attacks; Based on the first subsystem and the second subsystem, construct a system comprehensive observer for detecting network attacks; Among them, constructing a multi-region frequency control power system model further includes: The comprehensive dynamic performance of all generators in the power system area is expressed by an equivalent frequency-controlled power system model consisting of loads, generators, speed regulators, and transmission lines: In the formula, for a power system with N regions, is the frequency deviation derivative of the ith region; the inertia constant is H i ; The generator output power deviation is The variation deviation of renewable energy power generation is The load disturbance deviation is The power deviation of the transmission line is The damping constant is D i ; The system frequency deviation is △f i ; The power deviation of the ith regional transmission line is expressed as: in, is the power exchange deviation of the AC line; The power exchange deviation of the HVDC line; The dynamic models of the generator and the speed regulator are: In the formula, is the generator dynamics model; is the rated time constant of the generator; △X i is the governor valve position deviation; is the generator output power deviation; is the speed governor dynamics model; is the rated time constant of the speed regulator; is the speed regulator speed position deviation control signal; △f i is the system frequency deviation; R i It is a drooping characteristic; The speed controller speed position deviation control signal based on the integral controller Modeled as: In the formula, is the integral gain coefficient; E i is the power control error of the ith control area; For each control area i,E i Defined as: In the formula, β i is the frequency offset coefficient; △f i is the system frequency deviation; According to the multi-region frequency control power system model, the state space local state vector of the i-th region is established as: According to the power system model, calculating the spatial expression of the state of the multi-area frequency controlled power system further includes, The superscript T is the transpose of the matrix; The state space expression of the entire power system containing N areas is as follows: x(t)=[x1 x2···x N ] T is the global state vector, is the derivative of x(t); θ(x, t) is the modeling nonlinearity; u(t) = [ΔP c1 ΔP c2 …ΔP c,m ] T is the input vector, set to an m*1 dimensional matrix; d(t)=[ΔP d1 ΔP d2 …ΔP dr ] T is the perturbation vector, set to be an r*1-dimensional matrix; P di is the disturbance vector of the system, y(t) is the output vector, set to a p*1-dimensional matrix; A, B, C, E are known coefficient matrices, where m, r, p are the dimensions of the matrix; According to the spatial expression and the false injection attack, establishing a frequency control power system state space model further includes: the frequency control power system state space model established according to the false injection attack is as follows: Where D is the coefficient matrix of the p*q dimensional attack vector, where p≥q+r; a s (t) is the attack vector, which is set to a q*1-dimensional matrix, where q is the dimension of the matrix; Decoupling the power system state space model through a matrix transformation method to generate a first subsystem containing only system interference and a second subsystem containing only network attacks, further comprising: Decoupling the power system state space model into two subsystems by means of a matrix transformation method; Assume rk(E) = rk(CE), where rk(·) is the rank of the matrix; C and E are the matrix coefficients; By establishing the transformation matrices T, S, the system state x of each region is decoupled into ζ1, ζ2, and the system output y is decoupled into ω1, ω2: Where, ζ1 is the state vector of the first subsystem, which is an r*1-dimensional matrix; ζ2 is the state vector of the second subsystem, which is an (nr)*1-dimensional matrix; ω1 is the output of the first subsystem, which is an r*1-dimensional matrix; ω2 is the output of the second subsystem, which is a (pr)*1-dimensional matrix; Where T = [T1 T2] T ,S=[S1 S2] T ; T1 is the decoupling transformation matrix of the first subsystem with r*n dimensions; T2 is the decoupling transformation matrix of the second subsystem with (nr)*n dimensions; S1 is the decoupling transformation matrix of the first subsystem with r*p dimensions; S2 is the decoupling transformation matrix of the second subsystem with (pr)*p dimensions; After adopting the above matrix transformation, the power system is divided into the following two subsystems: The first subsystem containing only system disturbances: In the formula, is the derivative of the state vector of the first subsystem; A1 is the matrix coefficient of the first subsystem; A2 is an r*(nr) dimension coefficient matrix, [A2 0 r×(p-r) ] is a matrix composed of A2 and 0 vectors; E1 is an r*r dimension coefficient matrix; B1 is a coefficient matrix; ζ0 is the state vector of the second subsystem containing only network attacks; ζ is the total system state; t is time, u is input, d is interference; ζ3 is the system auxiliary variable; is the derivative of the system auxiliary variable; C4 is the system auxiliary variable matrix coefficient; D2 is the network attack term coefficient; Therefore, the second subsystem containing only network attacks is merged into: In the formula, ω3=ζ3, Among them, A3 is a (nr)*r dimension coefficient matrix; A4 is a (nr)*(nr) dimension coefficient matrix; C1 is an r*r dimension coefficient matrix; C4 is a (pr)*(nr) dimension coefficient matrix; D2 is a (pr)*q dimension coefficient matrix; B2 is the coefficient matrix of the second subsystem is the derivative of the state vector of the second subsystem; A0, A3, B0, D0, C0 are the coefficient matrices of the second subsystem; θ(T -1 ζ, t) is a nonlinear term; ω3 is the output of the second subsystem; 0 is the 0 matrix of the corresponding dimension; B2 is the corresponding matrix coefficient of the ζ2 system; D2 is the coefficient matrix of the network attack term; I p-r is the identity matrix after removing the interference term; C0 is the coefficient matrix of the second subsystem; Based on the first subsystem and the second subsystem, constructing a system comprehensive observer for detecting false injection network attacks further includes: Introducing the disturbance error injection term, the first subsystem constructs the sliding mode observer structure as follows: In the formula, is the derivative of the state observation of the first subsystem; is the observed value of ζ1; v1 is the interference error injection term; is the observed value of ζ0; Introducing the network attack injection term, the Lumberg observer of the second subsystem is constructed as follows: is the derivative of the state observation of the second subsystem; is the inverse matrix of C1; is the nonlinear term of the second subsystem observation; L0 is the observer gain, is the output of the second subsystem observation; The estimated error expressions of the two systems are established as: When there is no attack, the error dynamics is expressed as: is the error change of the first subsystem; is the error change of the second subsystem; When the system faces a false injection attack at time step t, the error dynamics is: Attack Distribution Matrix Attack Vectora s Only affects The last pr output component of in, is the observed value of the system auxiliary variable ζ3; when a false injection attack occurs, only will change; choose As residual for false injection attack detection; constructing the sliding mode observer and the Romberg observer into a comprehensive observer; Design the adaptive threshold as: Where, σ represents the pre-adaptive threshold; η is the estimation error of the second subsystem Lumberg observer; When the deviation e0 between the estimated value of the second subsystem and the actual value of the system is greater than the adaptive threshold σ, a false injection network attack is detected and e 0≥ The first time point of σ is the instant t when the attack is detected. d , t d ≥t e ; Otherwise, assume that the system is e The inside is in normal condition.
2. A computer device comprising a memory, a processor, and a computer program stored in the memory, characterized in that: When the computer program is executed by the processor, the instructions of the method according to claim 1 are executed.
