A data mirror persistent backup system of a power grid
By identifying changes in power grid data through differential algorithms and binary difference technology, and combining hash value comparison and security protocols, the problem of wasted transmission volume and storage space in power grid data backup is solved, achieving efficient and secure data backup and recovery.
Patent Information
- Application Number
- CN202411685248.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2044-11-22
AI Technical Summary
Existing power grid data backup methods involve significant waste in data transmission volume and storage space, and data recovery time is long, which is not conducive to the rapid recovery of the power grid in the event of a fault.
It employs a data acquisition module, a data preprocessing module, a differential data synchronization module, a data integrity verification module, a data mirroring module, and a data storage module. It identifies data changes through differential algorithms, reduces the amount of synchronized data using binary difference technology, and ensures data integrity and security through hash value comparison and security protocols.
It significantly reduces data transmission volume and backup time, optimizes the data synchronization process, reduces storage space waste, improves power grid data backup efficiency, and ensures data accuracy and security.
Smart Images

Figure CN119621424B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system technology, and in particular to a persistent backup system for power grid data mirroring. Background Technology
[0002] With the development of the power business and the rapid expansion of the power user base, the power grid system needs to use a large number of data nodes to store the corresponding data for clients to read, write, query, and perform other operations. As the scale of the power grid continues to expand and the level of intelligence improves, real-time backup and recovery of power grid data has become increasingly important.
[0003] In existing technologies, power grid data backup typically uses a full backup method, which involves periodically copying and saving a complete set of the entire power grid's operating status data. However, this backup method results in significant waste in data transmission and storage space, especially when the power grid's operating status changes frequently. Furthermore, full backups have long data recovery times, which is not conducive to the rapid recovery of the power grid in the event of a fault. Summary of the Invention
[0004] This invention is proposed in view of the problems existing in the persistent backup of data mirroring of power grids.
[0005] Therefore, the problem that this invention aims to solve is that existing backup methods involve significant waste in terms of data transmission volume and storage space.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution:
[0007] In a first aspect, embodiments of the present invention provide a persistent backup system for power grid data mirroring, comprising,
[0008] The system includes 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.
[0009] The data acquisition module is used to collect real-time power grid operation data;
[0010] The data preprocessing module cleans, formats, and compresses the collected data to prepare for subsequent data synchronization.
[0011] 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.
[0012] The data integrity verification 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 mirroring 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 data images onto a storage medium to ensure long-term data preservation.
[0015] The control and management module is used for the coordination, control and monitoring of the entire system, as well as the user interface, to receive user operation commands and monitor changes in power grid data in real time.
[0016] As a preferred embodiment of the persistent backup system for power grid data mirroring described in this invention, the collected power grid operating data includes voltage, current, power, frequency, and phase angle parameters.
[0017] As a preferred embodiment of the power grid data mirroring persistent backup system of the present invention, the specific method of the differential data synchronization module in the power grid data mirroring persistent backup system includes the following steps:
[0018] The data acquisition module collects raw data from the power grid in real time;
[0019] The differential data synchronization module performs differential processing on the original data to extract the changed data;
[0020] Then the changed data is sent to the database for backup;
[0021] During data synchronization, hash values are compared between the changed data and the data in the database to ensure data integrity. The differential algorithm module uses the following formula for calculation:
[0022] ΔD=D new -D old ;
[0023] Where ΔD represents the changed data, D new D represents the current power grid data. old This represents the power grid data at the previous moment;
[0024] If the hash values match, the data synchronization is successful; otherwise, the data synchronization process will be repeated.
[0025] As a preferred embodiment of the persistent backup system for power grid data mirroring described in this invention, in the differential data synchronization module, binary differential technology is used to reduce the amount of data to be synchronized during differential processing of the original data.
[0026] As a preferred embodiment of the power grid data mirroring persistent backup system described in this invention, the specific method for reducing the amount of synchronization data using binary difference technology includes the following steps:
[0027] Select a data mirror of a known state as a baseline, collect and preprocess current power grid data in real time, and generate the latest data mirror;
[0028] The bsdiff algorithm is used to detect the differences between the baseline data mirror and the current data mirror;
[0029] The bsdiff algorithm binary difference tool is used to compare the baseline data mirror with the current data mirror. This binary difference tool scans and identifies inserted, deleted, and unchanged data blocks.
[0030] The bsdiff algorithm binary diff tool generates a diff file containing all the instructions needed to convert the baseline data mirror to the current data mirror.
[0031] A relatively small difference file is transferred to the target location, and the difference file will be applied to the baseline data mirror to update it to the current state of the data mirror.
[0032] Once synchronization is complete, the current data mirror will be set as the new baseline for the next synchronization operation.
[0033] The difference file is smaller than the complete data image file.
[0034] As a preferred embodiment of the power grid data mirroring persistent backup system of the present invention, the specific method of the data integrity verification module in the power grid data mirroring persistent backup system includes the following steps:
[0035] The data recipient obtains a set of publicly available verification codes from a public data warehouse. These verification codes are pre-calculated and publicly available for subsequent data integrity verification.
[0036] Receives a dataset from the data acquisition and preprocessing module, which has been formatted and preprocessed;
[0037] The received data is randomly divided into several subsets. Using the public checksum and the data subsets, the decomposition coefficients for each subset are calculated as follows:
[0038] C i =H(X) i , K);
[0039] Among them, C i Let X be the decomposition coefficient of the i-th subset, H be the hash function, and X be the decomposition coefficient of the i-th subset. i For a subset of data, K is the public checksum;
[0040] Based on the decomposition coefficients and the public checksum, the composition number of each subset is calculated using the following formula:
[0041] S i =sum{i=1}n C i cdotK i ;
[0042] Among them, S i Let n be the composition number of the i-th subset, and n be the number of subsets.
[0043] The calculated composite number is compared with the original transmitted data. If they are equal, the data is undamaged and its integrity is verified; if they are not equal, the data has been damaged during transmission.
[0044] The verification results are fed back to the control and management module so that they can be recorded and measures can be taken to retransmit the data.
[0045] As a preferred embodiment of the persistent backup system for power grid data mirroring described in this invention, the data integrity verification module employs security protocols and algorithms to prevent external and temporal attacks during the verification process.
[0046] As a preferred embodiment of the power grid data mirroring persistent backup system of the present invention, the specific method for preventing external and temporal attacks in the data integrity verification module using security protocols and algorithms includes the following steps:
[0047] A shared key is established using the Diffie-Hellman key exchange protocol, and an encrypted channel is established using the SSL / TLS secure communication protocol.
[0048] The data is grouped by size, and a hash value is calculated for each data group using the SHA-256 hash function. The hash value will be used as a fingerprint of the data for subsequent verification.
[0049] Using the previously exchanged key, the data is encrypted using the AES symmetric encryption algorithm, and the encrypted data and its corresponding hash value are transmitted through the established secure channel.
[0050] The data receiver receives the encrypted data and hash value, decrypts the data using the same key, recalculates the hash value of the decrypted data, and compares it with the transmitted hash value to verify the integrity of the data.
[0051] Add timestamps during data transmission to prevent replay attacks; use sequence numbers to number data packets to ensure data order and prevent timing attacks.
[0052] Secondly, embodiments of the present invention provide a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement any step of the above-mentioned persistent backup system for power grid data mirroring.
[0053] Thirdly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, it implements any step of the aforementioned persistent backup system for power grid data mirroring.
[0054] The beneficial effects of this invention are as follows: This invention only requires the synchronization of changing data, which greatly reduces the amount of data transmission during real-time topology reconstruction, while reducing backup time, improving the efficiency of power grid data backup, optimizing the data synchronization process, reducing the storage space waste caused by full backup, and ensuring the accuracy of backup data through hash value comparison. Attached Figure Description
[0055] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0056] Figure 1 This is a system block diagram of the power grid data mirroring persistent backup system of the present invention.
[0057] Figure 2 This is a flowchart illustrating the operation of the differential data synchronization module of the present invention.
[0058] Figure 3 This is a flowchart illustrating the method for reducing the amount of synchronized data using binary difference technology according to the present invention.
[0059] Figure 4 This is a flowchart illustrating the operation of the data integrity verification module of the present invention.
[0060] Figure 5 This is a flowchart illustrating a method for preventing external and temporal attacks using security protocols and algorithms for the data in this invention. Detailed Implementation
[0061] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of the present invention.
[0062] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the 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 phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0064] This invention is described in detail with reference to the schematic diagrams. When detailing the embodiments of this invention, for ease of explanation, the cross-sectional views illustrating the device structure may be partially enlarged, not adhering to the usual scale. Furthermore, the schematic diagrams are merely examples and should not be construed as limiting the scope of protection of this invention. In actual fabrication, the three-dimensional spatial dimensions of length, width, and depth should be included.
[0065] Furthermore, in the description of this invention, it should be noted that the terms "upper," "lower," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. These terms are used solely for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. In addition, the terms "first," "second," or "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0066] Unless otherwise explicitly specified and limited, the terms "installation," "connection," and "joining" in this invention should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; similarly, they can refer to mechanical connections, electrical connections, or direct connections, or indirect connections through an intermediate medium, or internal connections between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0067] Example 1
[0068] Reference Figures 1-5 This is the first embodiment of the present invention, which provides a persistent backup system for power grid data mirroring, comprising:
[0069] The system includes 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.
[0070] The data acquisition module is used to collect real-time power grid operation data, 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 it 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 verification 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.
[0074] The data mirroring module is used to generate a data mirror from synchronized data, in preparation for backup;
[0075] The data storage module is used to store data mirrors onto storage media to ensure long-term data preservation;
[0076] The control and management module is used for the coordination, control and monitoring of the entire system, as well as the user interface, receiving user operation commands and monitoring changes in power grid data in real time.
[0077] The specific method of using the differential data synchronization module in the power grid data mirroring persistent backup system includes the following steps:
[0078] S1: The data acquisition module collects raw data from the power grid in real time;
[0079] S2: The differential data synchronization module performs differential processing on the original data to extract the changed data;
[0080] S3: Then send the changed data to the database for backup;
[0081] S4: During data synchronization, hash values are compared between the changed data and the data in the database to ensure data integrity;
[0082] S5: If the hash values match, the data synchronization is successful; if they do not match, the data synchronization will be repeated.
[0083] The difference algorithm module uses the following formula for calculation:
[0084] ΔD=D new -D old ;
[0085] Where ΔD represents the changed data, D new D represents the current power grid data. oldThis represents the power grid data at the previous moment.
[0086] The original operating status data of the power grid is 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 fault occurs, causing the voltage of phase A to drop to 200V, existing technologies require backing up the entire dataset, while this invention only requires backing up the changed data.
[0090] Change data: Phase A voltage decreased from 220V to 200V.
[0091] By comparing hash values, it was confirmed that the changed data had been successfully backed up to the storage device.
[0092] In the differential data synchronization module, binary difference technology is used to reduce the amount of data to be synchronized during the differential processing of the original data.
[0093] The specific methods for reducing the amount of synchronized data using binary difference techniques include the following steps:
[0094] S11: Select a data mirror of a known state as a baseline, collect and preprocess the current power grid data in real time, and generate the latest data mirror;
[0095] S12: Use the bsdiff algorithm to detect the differences between the baseline data mirror and the current data mirror;
[0096] S13: Use the bsdiff algorithm binary difference tool to compare the baseline data mirror with the current data mirror. This binary difference tool scans and identifies inserted, deleted, and unchanged data blocks.
[0097] S14: The bsdiff algorithm binary diff tool generates a diff file containing all the instructions needed to convert the baseline data mirror to the current data mirror, including instructions for inserting, deleting, and retaining invariant data blocks;
[0098] S15: A relatively small difference file is transferred to the target location, and the difference file will be applied to the baseline data mirror to update it to the current state of the data mirror;
[0099] S16: After synchronization is complete, set the current data mirror as the new baseline for the next synchronization operation.
[0100] The difference file is smaller than the complete data image file, reducing the consumption of computing resources and the demand for storage space; since only the difference file is transmitted, rather than the entire dataset, the network bandwidth usage is greatly reduced.
[0101] The specific methods for the data integrity verification module in the power grid data mirroring persistent backup system include the following steps:
[0102] S21: The data recipient obtains a set of publicly available checksums from a public data warehouse. The checksums are pre-calculated and publicly available for subsequent data integrity verification.
[0103] S22: Receive a dataset from the data acquisition and preprocessing module, which has been formatted and preprocessed;
[0104] S23: Randomly divide the received data into several subsets, and calculate the decomposition coefficients for each subset using the public checksum and the data subsets, as shown in the following formula:
[0105] C i =H(X) i , K);
[0106] Among them, C i Let H be the decomposition coefficient of the i-th subset, H be the hash function, denoted as subset data, and K be the public checksum.
[0107] S24: Calculate the composition number of each subset based on the decomposition coefficients and the public check code, using the following formula:
[0108] S i =sum{i=1} n C i cdotK i ;
[0109] Among them, S i Let n be the composition number of the i-th subset, and n be the number of subsets.
[0110] S25: Compare the calculated composite number with the original transmitted data. If they are equal, the data is undamaged and its integrity is verified; if they are not equal, the data has been damaged during transmission.
[0111] S26: Feedback the verification results to the control and management module so that the data can be recorded and retransmitted.
[0112] The data integrity verification module effectively ensures the accuracy and reliability of power grid data during differential data synchronization, thereby providing solid data support for the stable operation of the smart grid.
[0113] For the data integrity verification module, security protocols and algorithms are used during the verification process to prevent external and time-series attacks.
[0114] The specific methods for preventing external and temporal attacks using security protocols and algorithms in the data integrity verification module include the following steps:
[0115] S31: A shared key is established using the Diffie-Hellman key exchange protocol, and an encrypted channel is established through the SSL / TLS secure communication protocol 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: Using the previously exchanged key, encrypt the data using 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 key, recalculates the hash value of the decrypted data, 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 sequence numbers to number data packets to ensure data order and prevent timing attacks.
[0120] Diffie-Hellman Key Exchange Protocol: Let p be a large prime number, g be a 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 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 verification: 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 data integrity: If...
[0126] If SHA-256(Decrypted_Data) = Decrypted_Hash, then the data integrity verification passes.
[0127] By following the steps above, security protocols and algorithms are effectively applied to the data integrity verification module of the power grid data mirroring persistent backup system, thereby ensuring the security and integrity of data synchronization.
[0128] In summary, this invention only requires synchronizing the changing data, which greatly reduces the amount of data transmission during real-time topology reconstruction, while also reducing backup time, improving the efficiency of power grid data backup, optimizing the data synchronization process, reducing storage space waste 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 suitable for a persistent backup system for power grid data mirroring, including a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the persistent backup system for power grid data mirroring as proposed in the above embodiment.
[0131] The computer device can be a terminal, comprising a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.
[0132] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, it implements the persistent backup system for power grid data mirroring as proposed in the above embodiments.
[0133] The storage medium proposed in this embodiment belongs to the same inventive concept as the data storage system proposed in the above embodiments. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0134] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A persistent backup system for power grid data mirroring, characterized in that: include, The system includes 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 data acquisition module is used to collect real-time power grid operation data; The data preprocessing module cleans, formats, and compresses the collected data to prepare for subsequent data synchronization. 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. The data integrity verification 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 mirroring module is used to generate a data mirror from the synchronized data in preparation for backup; The data storage module is used to store data images onto a storage medium to ensure long-term data preservation. The control and management module is used for the coordination, control and monitoring of the entire system, as well as the user interface, to receive user operation instructions and monitor changes in power grid data in real time. The specific method of using the differential data synchronization module in the power grid data mirroring persistent backup system includes the following steps: The data acquisition module collects raw data from the power grid in real time; The differential data synchronization module performs differential processing on the original data to extract the changed data; Then the changed data is sent to the database for backup; During data synchronization, hash values are compared between the changed data and the data in the database to ensure data integrity. The differential algorithm module uses the following formula for calculation: ΔD=D new -D old ; Where ΔD represents the changed data, D new D represents the current power grid data. old This represents the power grid data at the previous moment; If the hash values match, the data synchronization is successful; otherwise, the data synchronization will be repeated. In the differential data synchronization module, binary difference technology is used to reduce the amount of data to be synchronized during the differential processing of the original data. The specific methods for reducing the amount of synchronized data using binary difference techniques include the following steps: Select a data mirror with a known state as a baseline, collect and preprocess the current power grid data in real time, and generate the latest data mirror; The bsdiff algorithm is used to detect the differences between the baseline data mirror and the current data mirror; The bsdiff algorithm binary difference tool is used to compare the baseline data mirror with the current data mirror. This binary difference tool scans and identifies inserted, deleted, and unchanged data blocks. The bsdiff algorithm binary diff tool generates a diff file containing all the instructions needed to convert the baseline data mirror into the current data mirror. A relatively small difference file is transferred to the target location, and the difference file will be applied to the baseline data mirror to update it to the current state of the data mirror. Once synchronization is complete, the current data mirror will be set as the new baseline for the next synchronization operation. The difference file is smaller than the complete data image file.
2. The power grid data mirroring persistent backup system as described in claim 1, characterized in that: The collected power grid operation data includes voltage, current, power, frequency, and phase angle parameters.
3. The power grid data mirroring persistent backup system as described in claim 2, characterized in that: The specific method of the data integrity verification module in the power grid data mirror persistent backup system includes the following steps: The data recipient obtains a set of publicly available verification codes from a public data warehouse. These verification codes are pre-calculated and publicly available for subsequent data integrity verification. Receives a dataset from the data acquisition and preprocessing module, which has been formatted and preprocessed; The received data is randomly divided into several subsets. Using the public checksum and the data subsets, the decomposition coefficients for each subset are calculated as follows: C i =H(X i ,K); Among them, C i Let X be the decomposition coefficient of the i-th subset, H be the hash function, and X be the decomposition coefficient of the i-th subset. i For a subset of data, K is the public checksum; Based on the decomposition coefficients and the public checksum, the composition number of each subset is calculated using the following formula: S i =sum{i=1} n C i cdotK i ; Among them, S i Let n be the composition number of the i-th subset, and n be the number of subsets. The calculated composite number is compared with the original transmitted data. If they are equal, the data is undamaged and its integrity is verified; if they are not equal, the data has been damaged during transmission. The verification results are fed back to the control and management module so that they can be recorded and measures can be taken to retransmit the data.
4. The power grid data mirroring persistent backup system as described in claim 3, characterized in that: For the data integrity verification module, security protocols and algorithms are used during the verification process to prevent external and time-series attacks.
5. The power grid data mirroring persistent backup system as described in claim 4, characterized in that: The specific method for preventing external and temporal attacks using security protocols and algorithms in the data integrity verification module includes the following steps: A shared key is established using the Diffie-Hellman key exchange protocol, and an encrypted channel is established using the SSL / TLS secure communication protocol. The data is grouped by size, and a hash value is calculated for each data group using the SHA-256 hash function. The hash value will be used as a fingerprint of the data for subsequent verification. Using the previously exchanged key, the data is encrypted using the AES symmetric encryption algorithm, and the encrypted data and its corresponding hash value are transmitted through the established secure channel. The data receiver receives the encrypted data and hash value, decrypts the data using the same key, recalculates the hash value of the decrypted data, and compares it with the transmitted hash value to verify the integrity of the data. Add timestamps during data transmission to prevent replay attacks; use sequence numbers to number data packets to ensure data order and prevent timing attacks.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, it implements the steps of the data mirroring persistent backup system for the power grid as described in any one of claims 1 to 5.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the steps of the data mirroring persistent backup system for the power grid as described in any one of claims 1 to 5.
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