Data mirror image persistent backup system of power grid
By designing a data mirroring persistent backup system for the power grid, synchronizing the changed data using differential algorithms and using hash value comparison, the problems of waste and long recovery time in the power grid data backup method in the existing technology are solved, and efficient data backup and recovery are achieved.
Patent Information
- Application Number
- CN202411685248.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-11-22
AI Technical Summary
The existing power grid data backup methods have a large waste in data transmission volume and storage space, and the data recovery time is long, which affects the rapid recovery of the power grid in the event of a failure.
A data mirroring persistent backup system for the power grid is designed, including a data acquisition module, a data preprocessing module, a differential data synchronization module, a data integrity verification module, a data mirroring module, a data storage module and a control and management module. The changed data is synchronized through the differential algorithm and hash comparison is used to ensure the integrity and correctness of the data.
It greatly reduces the amount of data transmission during real-time topological reconstruction, reduces backup time, improves the grid data backup efficiency, optimizes the data synchronization process, reduces the waste of storage space caused by full backup, and ensures the accuracy of the backup data through hash value comparison.
Smart Images

Figure CN119621424A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric power systems, and in particular to a data mirroring persistent backup system for an electric power grid. Background Art
[0002] With the development of power business, the scale of power users has expanded rapidly. The power grid system needs to use a large number of data nodes to store the corresponding data for clients to perform read, write, query and other operations. With the continuous expansion of the power grid scale and the improvement of the intelligence level, the real-time backup and recovery of power grid data has become increasingly important.
[0003] In the existing technology, the backup of power grid data usually adopts the full backup method, that is, the operating status data of the entire power grid is regularly copied and saved. However, this backup method has a large waste of data transmission volume and storage space, especially when the operating status of the power grid changes frequently. In addition, the data recovery time of the full backup is relatively long, which is not conducive to the rapid recovery of the power grid in the event of a failure. Summary of the invention
[0004] In view of the problems existing in the data mirroring persistent backup of the existing power grid, the present invention is proposed.
[0005] Therefore, the problem to be solved by the present invention is that the existing backup method has a large waste in data transmission volume and storage space.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In a first aspect, an embodiment of the present invention provides a data mirroring persistent backup system for a power grid, which includes:
[0008] Data acquisition module, data preprocessing module, differential data synchronization module, data integrity verification module, data mirroring module, data storage module, control and management module;
[0009] The data acquisition module is used to collect the operation data of the power grid in real time;
[0010] The data preprocessing module cleans, formats and compresses the collected data to prepare for subsequent data synchronization;
[0011] The differential data synchronization module calculates and identifies the changed part of the data since the last synchronization through a differential algorithm, and only synchronizes the changed part of the data;
[0012] The data integrity check module is used to calculate the hash value during the data synchronization process, compare the hash values of the source data and the backup data, and ensure the integrity and correctness of the data during the synchronization process;
[0013] The data mirror module is used to generate a data mirror from the synchronized data in preparation for backup;
[0014] The data storage module is used to store the data image in the storage medium to ensure the long-term preservation of the data;
[0015] The control and management module is used for the coordination, control and monitoring of the entire system, as well as the user interaction interface, receiving user operation instructions, and monitoring the changes in power grid data in real time.
[0016] As a preferred solution of the data mirroring persistent backup system of the power grid described in the present invention, the collected operation data of the power grid include voltage, current, power, frequency, and phase angle parameters.
[0017] As a preferred solution of the data mirroring persistent backup system of the power grid of the present invention, the specific method of the differential data synchronization module in the data mirroring persistent backup system of the power grid includes the following steps:
[0018] The data acquisition module collects the original data of the power grid in real time;
[0019] The differential data synchronization module performs differential processing on the original data and extracts the changed data;
[0020] The changed data is then sent to the database for backup;
[0021] During the data synchronization process, the hash value of the changed data is compared with the data in the database to ensure the integrity of the data. The differential algorithm module uses the following formula for calculation:
[0022] ΔD=D new -D old ;
[0023] Among them, ΔD represents the change data, D new Indicates the current power grid data, D old Indicates the power grid data at the last moment;
[0024] If the hash value comparison results are consistent, it means that the data synchronization is successful; if they are inconsistent, the data synchronization is performed again.
[0025] As a preferred solution of the data mirroring persistent backup system of the power grid described in the present invention, in which: when the differential data synchronization module performs differential processing on the original data, binary difference technology is used to reduce the amount of synchronized data.
[0026] As a preferred solution of the data mirroring persistent backup system of the power grid described in the present invention, the specific method of reducing the amount of synchronized data using binary difference technology includes the following steps:
[0027] Select a data image with a known status as the baseline, collect and preprocess the current power grid data in real time, and generate the latest data image;
[0028] The bsdiff algorithm is used to detect the difference between the baseline data image and the current data image;
[0029] Compare the baseline data image with the current data image using the bsdiff algorithm binary difference tool, which scans and identifies inserted, deleted, and unchanged data blocks;
[0030] The bsdiff algorithm binary difference tool generates a difference file containing all the instructions required to convert the baseline data image to the current data image;
[0031] The relatively small difference file is transferred to the target location, and the difference file will be applied to the baseline data image to update it to the status of the current data image;
[0032] After the synchronization is completed, the current data mirror is set as the new baseline for the next synchronization operation;
[0033] Among them, the difference file is smaller than the complete data image file.
[0034] As a preferred solution of the data mirroring persistent backup system of the power grid of the present invention, the specific method of the data integrity check module in the data mirroring persistent backup system of the power grid includes the following steps:
[0035] The data receiver obtains a collection of public check codes from the public data warehouse. The check codes are pre-calculated and made public for subsequent data integrity verification.
[0036] receiving a data set from a data acquisition and preprocessing module, the data set being formatted and preprocessed;
[0037] The received data is randomly divided into several subsets, and the decomposition coefficient corresponding to each subset is calculated using the public check code and data subsets. The formula is as follows:
[0038] C i =H(X i , K);
[0039] Among them, C i is the decomposition coefficient of the ith subset, H is the hash function, X i is the subset data, K is the public check code;
[0040] According to the decomposition coefficient and the public check code, the composite number of each subset is calculated respectively, and the formula is as follows:
[0041] S i =sum{i=1}n C i cdot i ;
[0042] Among them, S i is the composite number of the ith subset, and n is the number of subsets;
[0043] Compare the calculated composite number with the original transmitted data. If the two are equal, the data is not damaged and the integrity is verified. If the two are not equal, the data is damaged during transmission.
[0044] The verification result is fed back to the control and management module so that it can be recorded and measures for retransmitting data can be taken.
[0045] As a preferred solution of the data mirroring persistent backup system of the power grid described in the present invention, in the data integrity verification module, during the verification process, a security protocol and algorithm are used to prevent external attacks and timing attacks.
[0046] As a preferred solution of the data mirroring persistent backup system of the power grid of the present invention, the specific method of using security protocols and algorithms to prevent external attacks and timing attacks in the data integrity verification module includes the following steps:
[0047] Use the Diffie-Hellman key exchange protocol to establish a shared secret key, and establish an encrypted channel through the SSL / TLS secure communication protocol;
[0048] Group the data by size, calculate the hash value for each data group, use the sha-256 hash function, and the hash value will be used as the fingerprint of the data for subsequent verification;
[0049] Use the previously exchanged secret key to encrypt the data using the AES symmetric encryption algorithm, and transmit the encrypted data and its corresponding hash value through the established secure channel;
[0050] The data receiver receives the encrypted data and hash value, decrypts the data using the same secret key, calculates the hash value of the decrypted data again, and compares it with the transmitted hash value to verify the integrity of the data;
[0051] Timestamps are added during data transmission to prevent replay attacks. Serial numbers are used to number data packets to ensure the order of data and prevent timing attacks.
[0052] In a second aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein: when the processor executes the computer program, any step of the above-mentioned data mirroring persistent backup system for the power grid is implemented.
[0053] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the above-mentioned data mirroring persistent backup system for the power grid is implemented.
[0054] The beneficial effects of the present invention are as follows: the present invention only needs to synchronize the changed data, which greatly reduces the amount of data transmission during real-time topology reconstruction, while reducing the backup time, improving the efficiency of power grid data backup, and optimizing the data synchronization process, reducing the waste of storage space caused by full backup, and ensuring the accuracy of backup data through hash value comparison. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0056] Figure 1 The system block diagram of the data mirroring persistent backup system of the power grid of the present invention.
[0057] Figure 2 This is a flow chart of the operation of the differential data synchronization module of the present invention.
[0058] Figure 3 The present invention is a flowchart of a method for reducing the amount of synchronization data using binary difference technology.
[0059] Figure 4 This is a flow chart of the operation of the data integrity check module of the present invention.
[0060] Figure 5 A flowchart of a method for preventing external attacks and timing attacks on data using security protocols and algorithms of the present invention. DETAILED DESCRIPTION
[0061] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0062] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0063] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0064] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0065] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0066] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0067] Example 1
[0068] Reference Figure 1 to Figure 5 , which is the first embodiment of the present invention, and provides a data mirroring persistent backup system for a power grid, including:
[0069] Data acquisition module, data preprocessing module, differential data synchronization module, data integrity verification module, data mirroring module, data storage module, control and management module;
[0070] The data acquisition module is used to collect the operation data of the power grid in real time, including but not limited to voltage, current, power, frequency, and phase angle parameters;
[0071] The data preprocessing module cleans, formats and compresses the collected data to prepare for subsequent data synchronization;
[0072] The differential data synchronization module uses a differential algorithm to calculate and identify the changed parts of the data since the last synchronization, and only synchronizes the changed parts of the data;
[0073] The data integrity check module is used to calculate the hash value during data synchronization, compare the hash values of source data and backup data, and ensure the integrity and correctness of data during synchronization;
[0074] The data mirror module is used to generate a data mirror from the synchronized data in preparation for backup;
[0075] The data storage module is used to store data images in storage media to ensure long-term storage of data;
[0076] The control and management module is used for the coordination, control and monitoring of the entire system, as well as the user interaction interface, receiving user operation instructions and monitoring the changes in power grid data in real time.
[0077] The specific method of the differential data synchronization module in the data mirroring persistent backup system of the power grid includes the following steps:
[0078] S1: The data acquisition module collects the original data of the power grid in real time;
[0079] S2: The differential data synchronization module performs differential processing on the original data and extracts the changed data;
[0080] S3: Then send the changed data to the database for backup;
[0081] S4: During the data synchronization process, the hash value of the changed data is compared with the data in the database to ensure the integrity of the data;
[0082] S5: If the hash value comparison results are consistent, it means that the data synchronization is successful; if they are inconsistent, the data synchronization is performed again.
[0083] The differential algorithm module uses the following formula for calculation:
[0084] ΔD=D new -D old ;
[0085] Among them, ΔD represents the change data, D new Indicates the current power grid data, D oldIndicates the power grid data at the last moment.
[0086] The original operation status data of the power grid are as follows:
[0087] Data 1: Phase A voltage is 220V, phase B voltage is 210V, and phase C voltage is 200V.
[0088] Data 2: Phase A current is 5A, phase B current is 4A, and phase C current is 6A.
[0089] When a power grid failure occurs, causing the A phase voltage to drop to 200V, the prior art needs to back up the entire data set, while the present invention only needs to back up the changed data.
[0090] Change data: Phase A voltage is reduced from 220V to 200V.
[0091] By comparing the hash values, it is confirmed that the changed data has been successfully backed up to the storage device.
[0092] In the differential data synchronization module performing differential processing on the original data, binary difference technology is used to reduce the amount of synchronized data.
[0093] The specific method of using binary difference technology to reduce the amount of synchronized data includes the following steps:
[0094] S11: Select a data image with a known state as a baseline, collect and preprocess the current power grid data in real time, and generate the latest data image;
[0095] S12: using bsdiff algorithm to detect the difference between the baseline data image and the current data image;
[0096] S13: using a bsdiff algorithm binary difference tool to compare the baseline data image and the current data image, the binary difference tool scans and identifies inserted, deleted, and unchanged data blocks;
[0097] S14: The bsdiff algorithm binary difference tool generates a difference file, which contains all the instructions required to convert the baseline data image into the current data image, including instructions for inserting, deleting, and retaining unchanged data blocks;
[0098] S15: A relatively small difference file is transmitted to the target location, and the difference file is applied to the baseline data image to update it to the state of the current data image;
[0099] S16: After the synchronization is completed, the current data mirror is set as a new baseline for the next synchronization operation.
[0100] The difference file is smaller than the complete data image file, which reduces the consumption of computing resources and the demand for storage space; since only the difference file is transmitted instead of the entire data set, the network bandwidth usage is greatly reduced.
[0101] The specific method of the data integrity check module in the data mirroring persistent backup system of the power grid includes the following steps:
[0102] S21: The data receiver obtains a collection of public check codes from the public data warehouse. The check codes are pre-calculated and made public for subsequent data integrity verification.
[0103] S22: receiving a data set from a data acquisition and preprocessing module, the data set being formatted and preprocessed;
[0104] S23: randomly divide the received data into several subsets, and use the public check code and the data subset to calculate the decomposition coefficient corresponding to each subset respectively. The formula is as follows:
[0105] C i =H(X i , K);
[0106] Among them, C i is the decomposition coefficient of the ith subset, H is the hash function, is the subset data, and K is the public check code;
[0107] S24: Calculate the composite number of each subset according to the decomposition coefficient and the public check code. The formula is as follows:
[0108] S i =sum{i=1} n C i cdot i ;
[0109] Among them, S i is the composite number of the ith subset, and n is the number of subsets;
[0110] S25: Compare the calculated composite number with the original transmitted data. If the two are equal, the data is not damaged and the integrity is verified; if the two are not equal, the data is damaged during the transmission process;
[0111] S26: Feedback the verification result to the control and management module so as to record and take measures to retransmit the data.
[0112] The data integrity verification module effectively ensures the accuracy and reliability of power grid data during the differential data synchronization process, thereby providing solid data support for the stable operation of the smart grid.
[0113] For the data integrity verification module, during the verification process, security protocols and algorithms are used to prevent external attacks and timing attacks.
[0114] The specific method of using security protocols and algorithms to prevent external attacks and timing attacks in the data integrity check module includes the following steps:
[0115] S31: Use the Diffie-Hellman key exchange protocol to establish a shared secret key, and use the SSL / TLS secure communication protocol to establish an encrypted channel to ensure the security of data during transmission;
[0116] S32: Group the data according to size, calculate the hash value for each data group, use the sha-256 hash function, and the hash value will be used as the fingerprint of the data for subsequent verification;
[0117] S33: Encrypt the data using the previously exchanged secret key through the AES symmetric encryption algorithm, and transmit the encrypted data and its corresponding hash value through the established secure channel;
[0118] S34: The data receiver receives the encrypted data and hash value, decrypts the data using the same secret key, calculates the hash value of the decrypted data again, and compares it with the transmitted hash value to verify the integrity of the data;
[0119] S35: Add timestamps during data transmission to prevent replay attacks; use serial numbers to number data packets to ensure the order of data and prevent timing attacks.
[0120] Diffie-Hellman key exchange protocol: Let p be a large prime number, g be the primitive root of p, a and b be two secret values, and A and B be public values. A = g^a mod p B = g^b mod p Shared key K = B^a mod p = A^b mod p
[0121] SHA-256 hash function: H(data)=SHA-256(data)
[0122] AES encryption algorithm: Let K be the shared secret key, P be the plaintext data, and C be the ciphertext data. C = AES_Encrypt (P, K) P = AES_Decrypt (C, K)
[0123] Data integrity check: The sender calculates the hash value of the data: H = SHA-256 (data) The sender encrypts the data and its hash value: Encrypted_Data = AES_Encrypt (data, K), Encrypted_Hash = AES_Encrypt (H, K) The receiver decrypts the data and its hash value: Decrypted_Data =
[0124] AES_Decrypt(Encrypted_Data,K),Decrypted_Hash=
[0125] AES_Decrypt(Encrypted_Hash,K) The receiver verifies the data integrity: If
[0126] SHA-256(Decrypted_Data)=Decrypted_Hash, then the data integrity verification is passed.
[0127] Through the above steps, the security protocol and algorithm are effectively applied to the data integrity verification module in the power grid data mirroring persistent backup system, thereby ensuring the security and integrity of data synchronization.
[0128] In summary, the present invention only needs to synchronize the changed data, which greatly reduces the amount of data transmission during real-time topology reconstruction, while reducing the backup time, improving the efficiency of power grid data backup, and optimizing the data synchronization process, reducing the waste of storage space caused by full backup, and ensuring the accuracy of backup data through hash value comparison.
[0129] Example 2
[0130] This embodiment also provides a computer device, which is suitable for the data mirroring persistent backup system of the power grid, including a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the data mirroring persistent backup system of the power grid as proposed in the above embodiment.
[0131] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0132] This embodiment further provides a storage medium on which a computer program is stored. When the program is executed by a processor, the data mirroring persistent backup system for a power grid as proposed in the above embodiment is implemented.
[0133] The storage medium proposed in this embodiment and the data storage system proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be found in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0134] It should be noted that the above embodiments are only used to illustrate the technical solutions 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 the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A data mirroring persistent backup system for a power grid, characterized by: include, Data acquisition module, data preprocessing module, differential data synchronization module, data integrity verification module, data mirroring module, data storage module, control and management module; The data acquisition module is used to collect the operation data of the power grid in real time; The data preprocessing module cleans, formats and compresses the collected data to prepare for subsequent data synchronization; The differential data synchronization module calculates and identifies the changed part of the data since the last synchronization through a differential algorithm, and only synchronizes the changed part of the data; The data integrity check module is used to calculate the hash value during the data synchronization process, compare the hash values of the source data and the backup data, and ensure the integrity and correctness of the data during the synchronization process; The data mirror module is used to generate a data mirror from the synchronized data in preparation for backup; The data storage module is used to store the data image in the storage medium to ensure the long-term preservation of the data; The control and management module is used for the coordination, control and monitoring of the entire system, as well as the user interaction interface, receiving user operation instructions, and monitoring the changes in power grid data in real time.
2. The data mirroring persistent backup system for a power grid according to claim 1, characterized in that: The operation data of the collected power grid include voltage, current, power, frequency and phase angle parameters.
3. The data mirroring persistent backup system for a power grid as claimed in claim 2, characterized in that: The specific method of the differential data synchronization module in the data mirroring persistent backup system of the power grid includes the following steps: The data acquisition module collects the original data of the power grid in real time; The differential data synchronization module performs differential processing on the original data and extracts the changed data; The changed data is then sent to the database for backup; During the data synchronization process, the hash value of the changed data is compared with the data in the database to ensure the integrity of the data. The differential algorithm module uses the following formula for calculation: ΔD=D new -D old ; Among them, ΔD represents the change data, D new Indicates the current power grid data, D old Indicates the power grid data at the last moment; If the hash value comparison results are consistent, it means that the data synchronization is successful; if they are inconsistent, the data synchronization is performed again.
4. The data mirroring persistent backup system for a power grid as claimed in claim 3, characterized in that: In the differential data synchronization module performing differential processing on the original data, binary difference technology is used to reduce the amount of synchronized data.
5. The data mirroring persistent backup system for a power grid as claimed in claim 4, characterized in that: The specific method of using binary difference technology to reduce the amount of synchronized data includes the following steps: Select a data image with a known status as the baseline, collect and preprocess the current power grid data in real time, and generate the latest data image; The bsdiff algorithm is used to detect the difference between the baseline data image and the current data image; Compare the baseline data image with the current data image using the bsdiff algorithm binary difference tool, which scans and identifies inserted, deleted, and unchanged data blocks; The bsdiff algorithm binary difference tool generates a difference file containing all the instructions required to convert the baseline data image to the current data image; The relatively small difference file is transferred to the target location, and the difference file will be applied to the baseline data image to update it to the status of the current data image; After the synchronization is completed, the current data mirror is set as the new baseline for the next synchronization operation; Among them, the difference file is smaller than the complete data image file.
6. The data mirroring persistent backup system for a power grid as claimed in claim 5, characterized in that: The specific method of the data integrity check module in the data mirroring persistent backup system of the power grid includes the following steps: The data receiver obtains a collection of public check codes from the public data warehouse. The check codes are pre-calculated and made public for subsequent data integrity verification. receiving a data set from a data acquisition and preprocessing module, the data set being formatted and preprocessed; The received data is randomly divided into several subsets, and the decomposition coefficient corresponding to each subset is calculated using the public check code and data subsets. The formula is as follows: C i =H(X i ,K); Among them, C i is the decomposition coefficient of the ith subset, H is the hash function, X i is the subset data, K is the public check code; According to the decomposition coefficient and the public check code, the composite number of each subset is calculated respectively, and the formula is as follows: S i =sum{i=1} n C i cdotK i ; Among them, S i is the composite number of the ith subset, and n is the number of subsets; Compare the calculated composite number with the original transmitted data. If the two are equal, the data is not damaged and the integrity is verified. If the two are not equal, the data is damaged during transmission. The verification result is fed back to the control and management module so that it can be recorded and measures for retransmitting data can be taken.
7. The data mirroring persistent backup system for a power grid according to claim 6, characterized in that: For the data integrity verification module, during the verification process, security protocols and algorithms are used to prevent external attacks and timing attacks.
8. The data mirroring persistent backup system for a power grid as claimed in claim 7, characterized in that: The specific method of using security protocols and algorithms to prevent external attacks and timing attacks in a data integrity check module includes the following steps: Use the Diffie-Hellman key exchange protocol to establish a shared secret key, and establish an encrypted channel through the SSL / TLS secure communication protocol; Group the data by size, calculate the hash value for each data group, use the sha-256 hash function, and the hash value will be used as the fingerprint of the data for subsequent verification; Use the previously exchanged secret key to encrypt the data using the AES symmetric encryption algorithm, and transmit the encrypted data and its corresponding hash value through the established secure channel; The data receiver receives the encrypted data and hash value, decrypts the data using the same key, calculates the hash value of the decrypted data again, and compares it with the transmitted hash value to verify the integrity of the data; Timestamps are added during data transmission to prevent replay attacks. Serial numbers are used to number data packets to ensure the order of data and prevent timing attacks.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the data mirroring persistent backup system for the power grid described in any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data mirroring persistent backup system for a power grid as claimed in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Data simplified duplicate removal and mirror image remote backup protection method and system
CN107885619A
PLC data baseline recovery method and device and computer storage medium
CN113656220A
Remote synchronous mirroring method, system, medium and equipment
CN117255097A
Database with guarantee of data authenticity, its backup system, and method
JP2004259229A