Cross-security-area bidirectional data collaboration method, system and device and medium

By adopting a cross-safety zone bidirectional data collaboration method in the power secondary system, and using the write real-time library and cache queue for data packetization and compression, the problem of timeliness and reliability of cross-safety zone data transmission is solved, and the I zone is realized Efficient and stable data synchronization between Zone III and Zone III.

CN118869296APending Publication Date: 2024-10-29GUODIAN NANJING AUTOMATION
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410920304.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

When the existing power secondary system transmits data across safety zones, especially the real-time data synchronization from safety zone I to safety zone III, there are timeliness and reliability difficulties, and the transmission process is complex and involves multiple links, including generation. Text files, cross-reverse quarantine file synchronization and file parsing.

Method used

Adopting a bidirectional data collaboration method across security zones, the collected real-time data is written into the cache queue through the write real-time library process, and forward and reverse connection channels are established between Zone I and Zone III based on preset filtering rules to realize data Packaging, compression and synchronization ensure the timeliness and stability of data.

Benefits of technology

It realizes two-way data collaboration across security zones, ensures the stability and reliability of data transmission, improves data consistency and low latency between Zone I and Zone III, avoids data interruption due to node failure, and Simplifies project implementation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869296A_ABST
    Figure CN118869296A_ABST
Patent Text Reader

Abstract

The invention discloses a two-way data collaboration method, system, equipment and medium across safety zones, and relates to the technical field of electric power automation system software design, the method comprises the following steps: S1, writing collected real-time data into a cache queue by using a realtime library process; s2, establishing a forward connection channel between the safety zone I and the safety zone III, and pushing the queue data which are not filtered and discarded to the safety zone III based on a preset filtering rule; s3, checking the received queue data by the safety area III, and replying message data after the check is passed; and S4, establishing a reverse connection channel between the safety area III and the safety area I, and pushing the real-time data captured by the safety area III to the safety area I. According to the invention, cross-isolation forward data transmission and reverse data transmission are integrated together, so that data interaction between two security areas is realized, the security and reliability of data transmission are improved, and engineering implementation becomes convenient and fast.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software design for electric power automation systems, and in particular to a method, system, device and medium for bidirectional data collaboration across security zones. Background Art

[0002] According to the specific and safety requirements of the power secondary system, the power secondary system is divided into the production control area and the management information area. The production control area is divided into the control area (safety area I) and the non-control area (safety area II); the information management area is divided into the production management area (safety area III) and the information management area (safety area IV). The power industry automation system is deployed in safety area I and safety area III. The deployment of forward and reverse isolation devices in areas I and III can effectively resist malicious sabotage and attack activities launched by viruses, hackers, etc. in various forms against the power system, and protect the security of the monitoring system and dispatching data network. Ensure the security and low latency of data transmission between areas I and III and the consistency of data in the two safety areas.

[0003] According to the specific and safety requirements of the power secondary system, data is distributed in different areas. Data transmission from safety zone I to safety zone III must pass through the forward isolation device; data transmission from safety zone III to safety zone I must pass through the reverse isolation device, and only text file transmission is supported. At the same time, the communication software provided by the manufacturer needs to be configured on the communication nodes of both parties.

[0004] The existing forward isolation device uses TCP / IP protocol to transmit data packets between Zone I and Zone III, and Zone III is limited in the data it replies to Zone I through the forward isolation device, and is only allowed to reply one byte. With the continuous improvement of the automation level and information integration of the power system, the data accessed by Zone I is showing a significant growth trend. The real-time data in Zone I is highly time-sensitive and has a large amount of data. When these data pass through the forward isolation device, the requirements for timeliness and reliability of the data are also higher.

[0005] In the existing business requirements, Zone I needs to obtain real-time data from Zone III, but synchronizing data from Zone III to Zone I involves multiple complex steps, including generating text files, synchronizing files across reverse isolation, parsing files, and writing to real-time libraries. In the complex reverse data synchronization process, ensuring the timeliness and stability of data is a technical difficulty. Summary of the invention

[0006] Based on this, it is necessary to provide a bidirectional data collaboration method, system, device and medium across security zones to address the above technical issues.

[0007] In a first aspect, the present invention provides a method for bidirectional data collaboration across security zones, the method comprising the following steps:

[0008] S1, using the write real-time library process to write the collected real-time data into the cache queue, and capture the queue data in the cache queue;

[0009] S2. Establish a forward connection channel between security zone I and security zone III, and push the unfiltered and discarded queue data to security zone III based on the preset filtering rules;

[0010] S3, the security zone III checks the received queue data and replies with message data after the check passes;

[0011] S4. Establish a reverse connection channel between Security Zone III and Security Zone I, push the real-time data captured by Security Zone III to Security Zone I, and complete the reverse synchronization of data.

[0012] Further, using the write real-time library process to write the collected real-time data into the cache queue, and capturing the queue data in the cache queue includes the following steps:

[0013] S11, collect real-time data in the safety zone I, and synchronize it to each server in the safety zone I;

[0014] S12, using the write real-time library process to write the real-time data into the real-time library, and at the same time, write the real-time data that needs to be forwarded to the security zone III into the cache queue, and define the data format in the cache queue;

[0015] S13, capturing queue data in the cache queue and performing synchronization processing before transmission.

[0016] Furthermore, the data format includes an id number, attribute type, value, timestamp, the machine that wrote the data, and the machine to which the data is sent.

[0017] Furthermore, capturing the queue data in the cache queue and performing synchronization processing before transmission includes the following steps:

[0018] S131, using the master node to periodically read the real-time data in the cache queue as queue data;

[0019] S132, grouping and compressing the data of multiple queues in the cache queue;

[0020] S133: If the queue data read from the cache queue exceeds the set threshold, the real-time data obtained from the cache queue is cleared, and the queue data is obtained from the cache queue again.

[0021] Furthermore, establishing a forward connection channel between the safety zone I and the safety zone III, and pushing the unfiltered and discarded queue data to the safety zone III based on the preset filtering rules includes the following steps:

[0022] S21, initiate a transmission control protocol from security zone I to security zone III, and after security zone III passes verification, establish a forward connection channel between security zone I and security zone III;

[0023] S22, sending the cross-section data in the real-time library of safety zone I to safety zone III;

[0024] S23, capturing the queue data to be synchronized. If the queue data meets the filtering rules, it is discarded. If it does not meet the filtering rules, the queue data is packaged and synchronized to the security zone III.

[0025] Further, the security zone III checks the received queue data and replies with the message data after the check passes, including the following steps:

[0026] S31, after receiving the queue data, the security zone III uses the forward connection channel to reply a confirmation message to the security zone I;

[0027] S32. Security Zone I checks the confirmation message replied by Security Zone III. If no confirmation message is detected within the timeout period, it is determined that there is an abnormal condition between Security Zone I and Security Zone III, and Security Zone I re-initiates the transmission control protocol to Security Zone III, and sends the section data and queue data again after the connection is successful; if the confirmation message is detected on time, it is determined that the synchronization between Security Zone I and Security Zone III is successful.

[0028] Furthermore, a reverse connection channel is established between the safety zone III and the safety zone I, and the real-time data captured by the safety zone III is pushed to the safety zone I. The completion of the reverse data synchronization includes the following steps:

[0029] S41, real-time data in the safety zone III is collected in real time, and the real-time data that needs to be synchronized to the safety zone I is written into the cache queue;

[0030] S42, capturing the real-time data in the cache queue, converting it into a text file after data packaging, storing the text file in a designated temporary directory, transmitting it to the security zone I through a reverse connection channel, and deleting the data in the designated temporary directory in the security zone III after the transmission is completed;

[0031] S43, after receiving the text file, the security zone I parses the data in the specified temporary directory, writes the parsed data into the real-time library, and then deletes the data in the specified temporary directory in the security zone I.

[0032] In a second aspect, the present invention further provides a bidirectional data collaboration system across security zones, the system comprising:

[0033] The data capture module is used to write the collected real-time data into the cache queue by using the write real-time library process, and capture the queue data in the cache queue;

[0034] The forward forwarding module is used to establish a forward connection channel between the safety zone I and the safety zone III, and push the queue data that is not filtered and discarded to the safety zone III based on the preset filtering rules;

[0035] The message reply module is used to inspect the received queue data by the security zone III and reply the message data after the inspection passes;

[0036] The reverse synchronization module is used to establish a reverse connection channel between the safety zone III and the safety zone I, push the real-time data captured by the safety zone III to the safety zone I, and complete the reverse synchronization of data.

[0037] Furthermore, the data capture module includes: a data acquisition submodule, a queue writing submodule and a synchronization processing submodule, wherein:

[0038] The data collection submodule is used to collect real-time data in the safety zone I and synchronize it to each server in the safety zone I;

[0039] The queue writing submodule is used to write the real-time data into the real-time library by using the real-time library writing process, and write the real-time data that needs to be forwarded to the security zone III into the cache queue, and define the data format in the cache queue;

[0040] The synchronization processing submodule is used to capture the queue data in the cache queue and perform synchronization processing before transmission.

[0041] Furthermore, the synchronization processing submodule includes: a periodic reading unit, a package compression unit and a quantity monitoring unit, wherein:

[0042] A periodic reading unit, used for periodically reading the real-time data in the cache queue using the master node as queue data;

[0043] A packet compression unit, used for packetizing and compressing data of multiple queues in the cache queue;

[0044] The quantity monitoring unit is used to clear the real-time data obtained from the cache queue and obtain the queue data from the cache queue again if the queue data read from the cache queue exceeds a set threshold.

[0045] Furthermore, the forward forwarding module includes: a channel establishment submodule, a data sending submodule and a data filtering submodule, wherein:

[0046] The channel establishment submodule is used to initiate a transmission control protocol from the security zone I to the security zone III, and after the security zone III passes the verification, establish a forward connection channel between the security zone I and the security zone III;

[0047] The data transmission submodule is used to transmit the cross-section data in the real-time library of the safety zone I to the safety zone III;

[0048] The data filtering submodule is used to capture the queue data to be synchronized. If the queue data meets the filtering rules, it will be discarded. If it does not meet the filtering rules, the queue data will be packaged and synchronized to the security zone III.

[0049] Furthermore, the message reply module includes: a confirmation reply submodule and a message detection submodule, wherein:

[0050] The confirmation reply submodule is used for the security zone III to reply the confirmation message to the security zone I using the forward connection channel after receiving the queue data;

[0051] The message detection submodule is used for safety zone I to check the confirmation message replied by safety zone III. If the confirmation message is not detected within the timeout period, it is determined that there is an abnormal condition between safety zone I and safety zone III, and the transmission control protocol is re-initiated from safety zone I to safety zone III. After the connection is successful, the section data and queue data are sent again; if the confirmation message is detected on time, it is determined that the synchronization between safety zone I and safety zone III is successful.

[0052] Furthermore, the reverse synchronization module includes: a data writing submodule, a reverse transmission submodule and a file synchronization submodule, wherein:

[0053] The data writing submodule is used to collect real-time data in the safety zone III and write the real-time data that needs to be synchronized to the safety zone I into the cache queue;

[0054] The reverse transmission submodule is used to capture the real-time data in the cache queue, convert it into a text file after data packaging, store the text file in a designated temporary directory, and transmit it to the security zone I through the reverse connection channel. After the transmission is completed, the data in the designated temporary directory in the security zone III is deleted;

[0055] The file synchronization submodule is used to parse the data in the specified temporary directory after the security zone I receives the text file, write the parsed data into the real-time library, and then delete the data in the specified temporary directory in the security zone I.

[0056] In a third aspect, the present invention further provides a computer device.

[0057] In some embodiments, the computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0058] In a fourth aspect, the present invention also provides a computer-readable storage medium.

[0059] In one embodiment, a computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0060] The beneficial effects of the present invention are as follows: bidirectional data collaboration technology across security zones is realized by integrating cross-isolation forward data transmission and reverse data transmission; first, the present invention deploys two forwarding servers in zone I as the primary and backup nodes of the forwarding module, with the aim of ensuring the stability of data transmission from zone I to zone III even when an abnormality occurs in a forwarding node in zone I, and will not be interrupted due to node failure; secondly, an efficient and stable data transmission strategy is formulated to ensure low latency in data acquisition in zone III and data consistency between the two security zones; finally, the present invention integrates the forward and reverse data transmission functions into one module, realizes data interaction between the two security zones, improves the security and reliability of data transmission, and also makes engineering implementation convenient and quick. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0062] Figure 1 is a flow chart of a bidirectional data collaboration method across security zones according to an embodiment of the present invention;

[0063] Figure 2 This is a schematic diagram of a data capture and transmission process in a bidirectional data collaboration method across security zones according to an embodiment of the present invention;

[0064] Figure 3 This is a schematic diagram of a data filtering process in a bidirectional data collaboration method across security zones according to an embodiment of the present invention;

[0065] Figure 4 is a principle block diagram of a bidirectional data collaboration system across security zones according to an embodiment of the present invention;

[0066] Figure 5 is a schematic diagram of the cross-zone dual collaboration principle according to an embodiment of the present invention;

[0067] Figure 6 FIG. 4 is a schematic diagram of the structure of a computer device according to an embodiment of the present invention.

[0068] Figure numbers: 1. Data capture module; 2. Forward forwarding module; 3. Message reply module; 4. Reverse synchronization module. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0070] See also Figure 1 , a method for bidirectional data collaboration across security zones is provided, the method comprising the following steps:

[0071] S1. Use the write real-time library process to write the collected real-time data into the cache queue, and capture the queue data in the cache queue.

[0072] In the description of the present invention, using the write real-time library process to write the collected real-time data into the cache queue, and capturing the queue data in the cache queue includes the following steps:

[0073] S11. Collect real-time data in the safety zone I and synchronize it to each server in the safety zone I.

[0074] Specifically, the present invention introduces a distributed data acquisition system and utilizes a multi-level data caching mechanism to improve the real-time and reliability of data acquisition: a lightweight data acquisition agent is deployed at each data acquisition point to monitor and collect data in real time, and the data is sent to a central data processing system through a reliable message queue. A multi-level cache is introduced between each acquisition point and the central data processing system, which helps to ensure the continuity of data acquisition during network fluctuations or system failures.

[0075] The evaluation process of real-time and reliability of data collection is as follows: Get the amount of data R obtained from the collection point per unit time dc , the proportion of data hit by the cache mechanism H c , the delay time T of data transmission on the network nt , the rate R at which data is transmitted over the network per unit time nt , the acquisition delay time T dc .

[0076] Among them, the amount of data obtained from the collection point per unit time is obtained through the data acquisition device or system, and can be obtained by calculating the amount of data successfully collected per unit time (for example, per second). The proportion of data hit by the cache mechanism is obtained through the system monitoring cache hit situation, and can be obtained by calculating the ratio of the amount of data hitting the cache to the total requested data amount. The delay time of data transmission on the network is obtained through the network monitoring tool or system log, and can be obtained by measuring the time difference between the data packet from the sender to the receiver. The rate of data transmission on the network per unit time is obtained through the network monitoring tool or bandwidth monitoring system, and can be obtained by measuring the amount of data successfully transmitted per unit time. The collection delay time is obtained through the log or monitoring tool of the data acquisition system, and can be obtained by measuring the time difference between the data from the sensor to the acquisition system.

[0077] The amount of data R obtained from the acquisition point per unit time dc , the proportion of data hit by the cache mechanism Hc , the delay time T of data transmission on the network nt , the rate R at which data is transmitted over the network per unit time nt , the acquisition delay time T dc Perform scalar processing, remove units, and obtain evaluation values ​​based on the data reliability evaluation model. The evaluation values ​​serve as the basis for evaluating the real-time and reliability of data collection. The larger the evaluation value, the better the real-time and reliability of data collection.

[0078] The data reliability assessment model is as follows:

[0079]

[0080] In the formula, E real is the evaluation value.

[0081] Evaluate the relationship between data acquisition rate and acquisition delay time, the amount of data obtained from the acquisition point per unit time R dc The higher the delay, the longer the data transmission delay T nt The smaller it is, the larger the evaluation value is, indicating that the real-time performance of data collection is better. The proportion of data hit by the cache mechanism H c To evaluate the efficiency of the cache mechanism, H c The higher it is, the larger the evaluation value is, indicating higher efficiency and reliability of data processing. Evaluate the relationship between network transmission rate and delay time, R nt The higher the T nt The lower it is, the larger the evaluation value is, indicating that the real-time and reliability of data transmission are better.

[0082] S12. Use the write real-time library process to write the real-time data into the real-time library, and write the real-time data that needs to be forwarded to the security zone III into the cache queue, and define the data format in the cache queue.

[0083] Among them, the front-end server synchronizes the collected data with the workstations, data servers and forwarding servers in security zone I. One or more real-time database write processes running on the forwarding server will write the processes that need to be forwarded to zone III into the cache queue. The data format CacheRecord in the queue is defined as follows:

[0084] struct CacheRecord{

[0085] ObId obid;

[0086] AType atype;

[0087] ACE_UINT32 write_option:16;

[0088] ACE_UINT32 flag: 16;

[0089] ACE_UINT32 source_machine:16;

[0090] ACE_UINT32 transit_machine:16;

[0091] ACE_UINT32 dbDataType:8;

[0092] ACE_UINT32 ftack_ft:8;

[0093] ACE_UINT32ftack_provider:8;

[0094] ACE_UINT32 ftack_notif:8;

[0095] ObId oper;

[0096] RecordValue old_value;

[0097] RecordValue value;

[0098] RecordTime seq_time;

[0099] };

[0100] The data format includes the ID number, attribute type, value, timestamp, the machine that wrote the data, and the machine to which it is sent.

[0101] Specifically, the front-end server in the security zone I synchronizes the collected data with the workstations, data servers, and forwarding servers in zone I. One or more real-time database write processes running on the forwarding server will write the processes that need to be forwarded to zone III into the cache queue, such as Figure 2 shown.

[0102] The forwarding module needs to be deployed on the machine nodes forwarding in Zone I and Zone III. There are multiple processes on the forwarding machine nodes that write real-time database data. The forwarding module needs to forward these written data to Zone III. The processes on the forwarding nodes will also write data to the cache queue when writing to the real-time database. The master node of the forwarding module will periodically read the data in the cache queue.

[0103] In order to improve data forwarding efficiency, the forwarding module will compress multiple data packets in the queue and send them to area III. At the same time, in order to avoid data backlog in area I, if the data obtained by the forwarding module from the cache queue exceeds a given threshold, the forwarding module will clear the data obtained from the cache queue and obtain data from the cache queue again.

[0104] S13, capturing queue data in the cache queue and performing synchronization processing before transmission.

[0105] In the description of the present invention, capturing queue data in a cache queue and performing synchronization processing before transmission includes the following steps:

[0106] S131. Use the master node to periodically read the real-time data in the cache queue as queue data.

[0107] S132, grouping and compressing the multiple queue data in the cache queue.

[0108] The data captured by the forwarding module will be packaged and compressed. The present invention adopts the QuickLZ algorithm to achieve compression and decompression in this process. Compared with other compression algorithms, QuickLZ performs well in compression speed and achieves an excellent balance between compression speed and compression ratio. In real-time data transmission scenarios, the QuickLZ compression algorithm can quickly compress data and significantly reduce the size of data packets, thereby improving the efficiency of data transmission.

[0109] Of course, you can also dynamically select the most suitable compression algorithm according to the data type and network conditions to achieve the best compression efficiency and transmission speed. The process is as follows:

[0110] Determine the data type to be compressed, which can be text, image, video, etc., and then obtain the corresponding data type weight W from the database according to the data type d ,The data type weight can be determined according to the compression speed of different data types of the same size, and the compression speed is normalized so that the sum is 1. The data corresponding to each data type after normalization is recorded as the data type weight.

[0111] To determine the current network status, we can use the current network bandwidth usage rate W n to confirm.

[0112] The data type weight and the network status weight are weighted and summed to obtain a matching value, and the matching value is compared with the compression algorithm corresponding to the matching value stored in the database to obtain the compression algorithm corresponding to the current matching value.

[0113] The calculation formula of the matching value is as follows:

[0114] M v =W d *α+W n *β;

[0115] Where M v is the matching value, α is the weight factor of the data type weight stored in the database, and β is the weight factor of the current network bandwidth usage rate stored in the database.

[0116] For α, it can be determined according to the relative importance of the data type in the compression process. The specific steps are as follows: Count the compression efficiency (compression ratio) and compression speed (time) of different data types (such as text, image, video, etc.) when using different compression algorithms, perform weighted average of the compression efficiency and compression speed of different data types, obtain the comprehensive weight of each data type, standardize the comprehensive weight of each data type so that the sum is 1, and the standardized weight is the weight factor of each data type.

[0117] For β, it is determined based on the impact of the current network environment on the compression and transmission process. The specific steps are as follows: statistics on the performance of the compression algorithm and the data transmission speed under different network conditions (such as network bandwidth utilization), evaluate the impact of network conditions on compression efficiency and transmission speed, obtain the comprehensive weight of the network conditions, standardize the comprehensive weight of each network condition so that the sum is 1, and the standardized weight is the weight factor of each network condition.

[0118] S133: If the queue data read from the cache queue exceeds the set threshold, the real-time data obtained from the cache queue is cleared, and the queue data is obtained from the cache queue again.

[0119] S2. Establish a forward connection channel between the security zone I and the security zone III, and push the unfiltered and discarded queue data to the security zone III based on the preset filtering rules.

[0120] In the description of the present invention, establishing a forward connection channel between the security zone I and the security zone III, and pushing the unfiltered and discarded queue data to the security zone III based on the preset filtering rules includes the following steps:

[0121] S21. A transmission control protocol (TCP connection) is initiated from security zone I to security zone III. After security zone III passes verification, a forward connection channel is established between security zone I and security zone III.

[0122] S22. Send the cross-sectional data in the real-time library of safety zone I (the status value of each point in the real-time library at the current moment) to safety zone III to ensure the consistency of the real-time cross-sectional data of the safety zone I forwarding server and the safety zone III WEB server.

[0123] S23, capturing the queue data to be synchronized. If the queue data meets the filtering rules, it is discarded. If it does not meet the filtering rules, the queue data is packaged and synchronized to the security zone III.

[0124] Specifically, if there is data in the cache queue of the main node of the forwarding server in security zone I, the forwarding module will capture the data in the queue and determine whether the data should be pushed to zone III based on the filtering rules. Data that meets the filtering conditions (attribute data that does not need to be synchronized and data transmitted from the other end) will be discarded, and other data that is not discarded will be packaged, where the filtering rules are used to determine whether the data in the queue needs to be synchronized to zone III.

[0125] Data filtering process is as follows Figure 3 As shown. In this process, after the forwarding module obtains the data, it will first determine whether the attribute data needs to be synchronized to the security zone III, and then determine whether the data is transmitted from the security zone III. If the data is transmitted from the security zone III, it will be discarded. Otherwise, the data in the security zone III will enter the security zone III after being forwarded by the security zone I, causing a data loop. The data filtering process is also applicable to the security zone III receiving module. By adding a data filtering process, the correct flow of data is ensured, data loops are avoided, and unnecessary data synchronization operations are reduced.

[0126] In addition, since the security zone I may generate a large amount of real-time data, the forwarding module uses the QuickLZ compression algorithm to compress the data packets, and then efficiently transmits them to the security zone III WEB server through the forward isolation device in the form of Socket byte stream. This compression mechanism helps to reduce the network load between zones I and III. In the security zone III, the receiving end will receive these compressed data, decompress the data, and then write it into the real-time library.

[0127] S3. Security zone III checks the received queue data and replies with message data after the check passes.

[0128] In the description of the present invention, the security zone III checks the received queue data, and replies to the message data after the check passes, including the following steps:

[0129] S31. After receiving the queue data, the security zone III uses the forward connection channel to reply a confirmation message to the security zone I.

[0130] S32, Security Zone I checks the confirmation message replied by Security Zone III. If no confirmation message is detected within the timeout period, it is determined that there is an abnormality between Security Zone I and Security Zone III, and Security Zone I re-initiates the transmission control protocol to Security Zone III, and sends the section data and queue data again after the connection is successful. If the confirmation message is detected on time, it is determined that the synchronization between Security Zone I and Security Zone III is successful.

[0131] Specifically, since the forward isolation device only allows a single byte of message data (0x00 or 0xff) to be replied from Security Zone III to Security Zone I, Security Zone I sends data to Security Zone III, Security Zone III receives the data and replies with a confirmation message (0x00) from Security Zone I. If Security Zone I does not receive a confirmation message from Security Zone III within the timeout period, the forwarding module of Security Zone I determines that there may be a network anomaly between Security Zone I and Security Zone III or that the receiving module of Security Zone III fails to receive data. The forwarding node of Security Zone I will re-initiate a TCP connection to Security Zone III, and will send data again after the connection is successful. At the same time, in order to ensure data consistency, the background section data will be resent after the connection between Security Zone I and Security Zone III is re-established.

[0132] S4. Establish a reverse connection channel between the safety zone III and the safety zone I, push the real-time data captured by the safety zone III to the safety zone I, and complete the reverse synchronization of data.

[0133] In the description of the present invention, a reverse connection channel is established between the safety zone III and the safety zone I, and the real-time data captured by the safety zone III is pushed to the safety zone I. The completion of data reverse synchronization includes the following steps:

[0134] S41, real-time data in the safety zone III is collected in real time, and the real-time data that needs to be synchronized to the safety zone I is written into the cache queue.

[0135] S42, capture the real-time data in the cache queue, convert it into a text file after data packaging, and store the text file in a specified temporary directory, and transmit it to the security zone I through the reverse connection channel. After the transmission is completed, delete the data in the specified temporary directory in the security zone III.

[0136] After the data is packaged, it is encrypted with AES and signed before transmission. Secure transmission protocols such as HTTPS or VPN are used to ensure the security and integrity of the data during transmission. The evaluation formula for protecting the confidentiality and integrity of data during transmission is as follows:

[0137]

[0138] In the formula, S trans is the integrity assessment value, E s is the encryption strength, which is obtained based on the encryption algorithm-encryption strength mapping table stored in the database. In the encryption algorithm-encryption strength mapping table, each encryption algorithm corresponds to an encryption strength, P s is the security level of the transmission protocol, which is obtained based on the transmission protocol-security level mapping table stored in the database. In the transmission protocol-security level mapping table, each transmission protocol corresponds to a security level. tTransmission delay is obtained through the logs or monitoring tools of the data acquisition system. It can be obtained by measuring the time difference between the data from the sensor to the acquisition system.

[0139] The formula takes into account data encryption, transmission protocol and data delay, and comprehensively evaluates the security and integrity of the data transmission process. The formula is designed to be incremental, so that when the encryption strength, transmission protocol security and data integrity verification increase, the security and integrity assessment values ​​increase. At the same time, the lower the transmission delay, the higher the assessment value.

[0140] S43, after receiving the text file, the security zone I parses the data in the specified temporary directory, writes the parsed data into the real-time library, and then deletes the data in the specified temporary directory in the security zone I.

[0141] Specifically, the present invention supports the synchronization function of data from the security zone III to the security zone I, which relies on the reverse isolation device and the communication software for the security zone III and the security zone I provided by the isolation manufacturer. When the real-time data of the security zone III needs to be synchronized to the security zone I, the receiving module on the security zone III WEB server will capture these real-time data from the cache queue on the WEB server, and the synchronization process is similar to the forward synchronization. When processing the data obtained from the cache queue, the receiving module will determine whether these data need to be synchronized to the security zone I, and will also prevent the data synchronized from the security zone I from being synchronized back again through the reverse isolation device, thereby effectively avoiding message loops.

[0142] See also Figure 4 , and also provides a cross-security zone bidirectional data collaboration system, the system comprising:

[0143] The data capture module 1 is used to write the collected real-time data into the cache queue by using the write real-time library process, and to capture the queue data in the cache queue.

[0144] The forward forwarding module 2 is used to establish a forward connection channel between the safety zone I and the safety zone III, and based on the preset filtering rules, push the queue data that is not filtered and discarded to the safety zone III.

[0145] The message reply module 3 is used to inspect the received queue data from the security zone III and reply the message data after the inspection passes.

[0146] The reverse synchronization module 4 is used to establish a reverse connection channel between the safety zone III and the safety zone I, push the real-time data captured by the safety zone III to the safety zone I, and complete the data reverse synchronization.

[0147] In the description of the present invention, the data capture module 1 includes: a data acquisition submodule (not shown in the figure), a queue writing submodule (not shown in the figure) and a synchronization processing submodule (not shown in the figure), wherein the data acquisition submodule is used to collect real-time data in the security zone I and synchronize it to each server in the security zone I. The queue writing submodule is used to write the real-time data into the real-time library using the write real-time library process, and at the same time write the real-time data that needs to be forwarded to the security zone III into the cache queue, and define the data format in the cache queue. The synchronization processing submodule is used to capture the queue data in the cache queue and perform synchronization processing before transmission.

[0148] In the description of the present invention, the synchronization processing submodule includes: a periodic reading unit (not shown in the figure), a package compression unit (not shown in the figure) and a quantity monitoring unit (not shown in the figure), wherein the periodic reading unit is used to use the master node to periodically read the real-time data in the cache queue as queue data. The package compression unit is used to package and compress multiple queue data in the cache queue. The quantity monitoring unit is used to clear the real-time data obtained from the cache queue if the queue data read from the cache queue exceeds the set threshold, and re-acquire the queue data from the cache queue.

[0149] In the description of the present invention, the forward forwarding module 2 includes: a channel establishment submodule (not shown in the figure), a data sending submodule (not shown in the figure) and a data filtering submodule (not shown in the figure), wherein the channel establishment submodule is used to initiate a transmission control protocol from the safety zone I to the safety zone III, and after the safety zone III is verified, a forward connection channel between the safety zone I and the safety zone III is established. The data sending submodule is used to send the cross-section data in the real-time library of the safety zone I to the safety zone III. The data filtering submodule is used to capture the queue data to be synchronized. If the queue data meets the filtering rules, it is discarded. If it does not meet the filtering rules, the queue data is packaged and synchronized to the safety zone III.

[0150] In the description of the present invention, the message reply module 3 includes: a confirmation reply submodule (not shown in the figure) and a message detection submodule (not shown in the figure), wherein the confirmation reply submodule is used for the safety zone III to reply a confirmation message to the safety zone I using the forward connection channel after receiving the queue data. The message detection submodule is used for the safety zone I to check the confirmation message replied by the safety zone III. If the confirmation message is not detected within the timeout period, it is determined that there is an abnormal condition between the safety zone I and the safety zone III, and the transmission control protocol is re-initiated from the safety zone I to the safety zone III, and the section data and queue data are sent again after the connection is successful. If the confirmation message is detected on time, it is determined that the synchronization between the safety zone I and the safety zone III is successful.

[0151] In the description of the present invention, the reverse synchronization module 4 includes: a data writing submodule (not shown in the figure), a reverse transmission submodule (not shown in the figure) and a file synchronization submodule (not shown in the figure), wherein the data writing submodule is used to collect real-time data in the security zone III in real time, and write the real-time data that needs to be synchronized to the security zone I into the cache queue. The reverse transmission submodule is used to capture the real-time data in the cache queue, convert it into a text file after data packaging, and store the text file in a designated temporary directory, and transmit it to the security zone I through the reverse connection channel. After the transmission is completed, the data in the designated temporary directory in the security zone III is deleted. The file synchronization submodule is used to parse the data in the designated temporary directory after the security zone I receives the text file, and write the parsed data into the real-time library, and then delete the data in the designated temporary directory in the security zone I.

[0152] In addition, if Figure 5 The schematic diagram of the cross-security zone bidirectional data collaboration between Zone I (Security Zone I) and Zone III (Security Zone III) is shown. The front-end server in Zone I sends the collected real-time data to the workstation, forwarding server and database server in Zone I. The forwarding module is deployed on two forwarding servers in Zone I. The forwarding module first selects the master node and sends the real-time data to the WEB server in Zone III through the forward isolation device on the master node. Zone III will send the real-time data processed by Zone III applications back to the forwarding server master node in Zone I through the reverse isolation device from the WEB server. The forwarding standby node in Zone I is a cold standby node. It will not actively establish a connection with Zone III. Only when the forwarding master node in Zone I is abnormal, the standby node will automatically switch to the master node and actively initiate a connection to Zone III. The bidirectional data transmission function between Zone I and Zone III is integrated in the forwarding module. When only the forward isolation device is configured, the forwarding module supports forward synchronization of data from Zone I to Zone III; if only the reverse isolation device is configured, the forwarding module supports reverse synchronization of data from Zone III to Zone I. By deploying forward and reverse isolation devices at the same time, the module can achieve two-way coordination of data between Zone I and Zone III.

[0153] Compared with the traditional technology, the present invention deploys the forwarding module in the main and standby forwarding servers of the safety zone I, and deploys the receiving module in the WEB server of zone III. The real-time data of zone I is first collected and processed by the front-end system and then synchronized to the node where the forwarding module is located and written into the cache queue of the node. The forwarding module will obtain the data in the cache queue and compress it, and then send it to the server of zone III of the safety zone through the Socket byte stream across the forward isolation device. The real-time data of zone III of the safety zone will enter the cache queue where the WEB server is located. After the receiving end captures the data from the queue and determines whether to send it to zone I, the data to be sent will be encoded into a text file and entered into a temporary directory, and sent to the temporary directory of the main node of the forwarding server of zone I through the reverse transmission software through the reverse isolation software. Then these data are parsed and written into the real-time library of zone I, and synchronized to other machine nodes of zone I. Firstly, the method of the present invention does not access the local disk when transmitting data from zone I to zone III, and compresses the sent data to avoid affecting the performance when a large amount of data in zone I needs to be pushed to zone III; secondly, reverse data transmission can be supported by configuring reverse isolation equipment and reverse transmission software; finally, the present invention supports the master-slave fault-tolerant mode, and the forwarding module is deployed on the master-slave service node of zone I. When an abnormality occurs in the master node of the forwarding module, the standby node will be quickly switched to the master node to maintain the stability and security of data transmission.

[0154] To summarize, with the aid of the above-mentioned technical scheme of the present invention, bidirectional data collaboration technology across security zones is realized by integrating cross-isolation forward data transmission and reverse data transmission; first, the present invention deploys two forwarding servers in zone I as the primary and backup nodes of the forwarding module, with the aim of ensuring the stability of data transmission from zone I to zone III even when an abnormality occurs in a forwarding node in zone I, and will not be interrupted due to node failure; secondly, an efficient and stable data transmission strategy is formulated to ensure low latency in data acquisition in zone III and data consistency between the two security zones; finally, the present invention integrates the forward and reverse data transmission functions into one module, realizes data interaction between the two security zones, improves the security and reliability of data transmission, and also makes engineering implementation convenient and quick.

[0155] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, 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, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store static information and dynamic information data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the steps in the above method embodiment are implemented.

[0156] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0157] In addition, the present invention also provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiment when executing the computer program.

[0158] In addition, the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiment are implemented.

[0159] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0160] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

Claims

1. A bidirectional data collaboration method across security zones, It is characterized in that The method comprises the following steps: S1, using the write real-time library process to write the collected real-time data into the cache queue, and capture the queue data in the cache queue; S2. Establish a forward connection channel between security zone I and security zone III, and push the unfiltered and discarded queue data to security zone III based on the preset filtering rules; S3, the security zone III checks the received queue data and replies with message data after the check passes; S4. Establish a reverse connection channel between Security Zone III and Security Zone I, push the real-time data captured by Security Zone III to Security Zone I, and complete the reverse synchronization of data.

2. A method for bidirectional data collaboration across security zones according to claim 1, It is characterized in that The method of using the write real-time library process to write the collected real-time data into the cache queue and capturing the queue data in the cache queue includes the following steps: S11, collect real-time data in the safety zone I, and synchronize it to each server in the safety zone I; S12, using the write real-time library process to write the real-time data into the real-time library, and at the same time, writing the real-time data that needs to be forwarded to the security zone III into the cache queue, and defining the data format in the cache queue; S13, capturing queue data in the cache queue and performing synchronization processing before transmission.

3. A bidirectional data collaboration method across security zones according to claim 2, It is characterized in that The data format includes an ID number, an attribute type, a value, a timestamp, a machine that writes the data, and a machine to which the data is sent.

4. According to the method for bidirectional data collaboration across security zones described in claim 2, It is characterized in that The capturing of queue data in the cache queue and performing synchronization processing before transmission includes the following steps: S131, using the master node to periodically read the real-time data in the cache queue as queue data; S132, grouping and compressing the data of multiple queues in the cache queue; S133: If the queue data read from the cache queue exceeds the set threshold, the real-time data obtained from the cache queue is cleared, and the queue data is obtained from the cache queue again.

5. According to the method for bidirectional data collaboration across security zones described in claim 1, It is characterized in that The process of establishing a forward connection channel between the safety zone I and the safety zone III and pushing the unfiltered and discarded queue data to the safety zone III based on the preset filtering rules comprises the following steps: S21, initiate a transmission control protocol from security zone I to security zone III, and after security zone III passes verification, establish a forward connection channel between security zone I and security zone III; S22, sending the cross-section data in the real-time library of safety zone I to safety zone III; S23, capturing the queue data to be synchronized. If the queue data meets the filtering rules, it is discarded. If it does not meet the filtering rules, the queue data is packaged and synchronized to the security zone III.

6. A method for bidirectional data collaboration across security zones according to claim 1, It is characterized in that The step of checking the received queue data by the security zone III and replying the message data after the check passes includes the following steps: S31, after receiving the queue data, the security zone III uses the forward connection channel to reply a confirmation message to the security zone I; S32. Security Zone I checks the confirmation message replied by Security Zone III. If no confirmation message is detected within the timeout period, it is determined that there is an abnormal condition between Security Zone I and Security Zone III, and Security Zone I re-initiates the transmission control protocol to Security Zone III, and sends the section data and queue data again after the connection is successful; if the confirmation message is detected on time, it is determined that the synchronization between Security Zone I and Security Zone III is successful.

7. A method for bidirectional data collaboration across security zones according to claim 1, It is characterized in that The establishment of a reverse connection channel between the safety zone III and the safety zone I, pushing the real-time data captured by the safety zone III to the safety zone I, and completing the data reverse synchronization includes the following steps: S41, real-time data in the safety zone III is collected in real time, and the real-time data that needs to be synchronized to the safety zone I is written into the cache queue; S42, capturing the real-time data in the cache queue, converting it into a text file after data packaging, storing the text file in a designated temporary directory, transmitting it to the security zone I through a reverse connection channel, and deleting the data in the designated temporary directory in the security zone III after the transmission is completed; S43, after receiving the text file, the security zone I parses the data in the specified temporary directory, writes the parsed data into the real-time library, and then deletes the data in the specified temporary directory in the security zone I.

8. A cross-security zone bidirectional data collaboration system, used to implement the cross-security zone bidirectional data collaboration method according to any one of claims 1 to 7, It is characterized in that The system includes: The data capture module is used to write the collected real-time data into the cache queue by using the write real-time library process, and capture the queue data in the cache queue; The forward forwarding module is used to establish a forward connection channel between the safety zone I and the safety zone III, and push the queue data that is not filtered and discarded to the safety zone III based on the preset filtering rules; The message reply module is used to inspect the received queue data by the security zone III and reply the message data after the inspection passes; The reverse synchronization module is used to establish a reverse connection channel between the safety zone III and the safety zone I, push the real-time data captured by the safety zone III to the safety zone I, and complete the reverse synchronization of data.

9. A bidirectional data collaboration system across security zones according to claim 8, It is characterized in that The data capture module includes: a data acquisition submodule, a queue writing submodule and a synchronization processing submodule, wherein: The data acquisition submodule is used to collect real-time data in the safety zone I and synchronize it to each server in the safety zone I; The queue writing submodule is used to write the real-time data into the real-time library by using the real-time library writing process, and write the real-time data that needs to be forwarded to the safety zone III into the cache queue, and define the data format in the cache queue; The synchronization processing submodule is used to capture the queue data in the cache queue and perform synchronization processing before transmission.

10. A bidirectional data collaboration system across security zones according to claim 9, It is characterized in that The synchronization processing submodule includes: a periodic reading unit, a package compression unit and a quantity monitoring unit, wherein: The periodic reading unit is used to use the master node to periodically read the real-time data in the cache queue as queue data; The packet grouping and compression unit is used to group and compress the multiple queue data in the cache queue; The quantity monitoring unit is used to clear the real-time data obtained from the cache queue and obtain queue data from the cache queue again if the queue data read from the cache queue exceeds a set threshold.

11. A bidirectional data collaboration system across security zones according to claim 8, It is characterized in that The forward forwarding module includes: a channel establishment submodule, a data sending submodule and a data filtering submodule, wherein: The channel establishment submodule is used to initiate a transmission control protocol from the security zone I to the security zone III, and after the security zone III passes the verification, establish a forward connection channel between the security zone I and the security zone III; The data transmission submodule is used to transmit the cross-section data in the real-time library of the safety zone I to the safety zone III; The data filtering submodule is used to capture the queue data to be synchronized. If the queue data meets the filtering rules, it is discarded. If it does not meet the filtering rules, the queue data is packaged and synchronized to the security zone III.

12. A bidirectional data collaboration system across security zones according to claim 8, It is characterized in that The message reply module includes: a confirmation reply submodule and a message detection submodule, wherein: The confirmation reply submodule is used for the security zone III to reply a confirmation message to the security zone I using the forward connection channel after receiving the queue data; The message detection submodule is used for safety zone I to check the confirmation message replied by safety zone III. If the confirmation message is not detected within the timeout period, it is determined that an abnormal condition exists between safety zone I and safety zone III, and the transmission control protocol is re-initiated from safety zone I to safety zone III, and the section data and queue data are sent again after the connection is successful; if the confirmation message is detected on time, it is determined that the synchronization between safety zone I and safety zone III is successful.

13. A bidirectional data collaboration system across security zones according to claim 8, It is characterized in that The reverse synchronization module includes: a data writing submodule, a reverse transmission submodule and a file synchronization submodule, wherein: The data writing submodule is used to collect real-time data in the safety zone III in real time, and write the real-time data that needs to be synchronized to the safety zone I into the cache queue; The reverse transmission submodule is used to capture the real-time data in the cache queue, convert it into a text file after data packaging, store the text file in a specified temporary directory, and transmit it to the security zone I through the reverse connection channel. After the transmission is completed, the data in the specified temporary directory in the security zone III is deleted; The file synchronization submodule is used to parse the data in the specified temporary directory after the security zone I receives the text file, write the parsed data into the real-time library, and then delete the data in the specified temporary directory in the security zone I.

14. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

15. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • High-security data transparent cross-security area parallel synchronization system

    CN120658512A

  • Data reverse synchronization method and device based on isolation gatekeeper and electronic equipment

    CN121239692A