CN-116886717-B - Method, system, computer equipment and storage medium for actively requesting data synchronization in forward gatekeeper communication
Abstract
The invention belongs to the field of forward gatekeeper data transmission, and relates to a method for actively requesting data synchronization by forward gatekeeper communication, wherein a client actively initiates a synchronization request, a server judges whether to upload an external instruction to confirm whether to synchronize and respond, the client receives the response and judges whether to synchronize, if yes, the client sends a synchronization type confirmation request, the server matches and responds according to the uploaded external instruction and the synchronization type confirmation request, the client judges whether the synchronization type is successfully matched according to the response, if yes, the client sends a data type confirmation request packet of the synchronization type, the server matches and responds according to the uploaded external instruction and the data type confirmation request, if yes, the client sends a data synchronization packet of the data type, and the server analyzes and updates the data synchronization packet to complete the synchronization. The method solves the problems that the server and the client cannot interact data and cannot synchronize data needed by users.
Inventors
- ZHANG XIAOCONG
- HE QING
- WANG YIFEI
- MA RUIRUI
- WANG YI
Assignees
- 西安热工研究院有限公司
- 西安西热电站信息技术有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20230803
Claims (10)
- 1. A method for actively requesting data synchronization for forward gatekeeper communication, comprising the steps of: s1, actively initiating a synchronous request by a client on the inner side of a gatekeeper; S2, the outside service end of the gatekeeper confirms whether to synchronize and respond by judging whether the user uploads an external instruction; s3, after receiving the response, the client on the inner side of the network gate judges whether to synchronize, if yes, a synchronization type confirmation request is sequentially sent, and if not, the data synchronization is finished; S4, the outside service end of the gatekeeper is matched and responded with a synchronous type confirmation request sent by the inside client end of the gatekeeper according to an external instruction uploaded by a user; S5, the client side at the inner side of the network gate judges whether the synchronization type is successfully matched according to the response, if so, the client side starts to send a data type confirmation request packet of the synchronization type, and if not, continues to send the rest synchronization type confirmation request packet until the supported synchronization type is confirmed; s6, the outside service end of the gatekeeper matches and responds to the data type confirmation request sent by the inside client end of the gatekeeper according to the external instruction uploaded by the user; S7, the client side at the inner side of the gatekeeper judges whether the data type is successfully matched according to the response, if so, a data synchronization packet of the data type is started to be sent; If not, the client side at the inner side of the gatekeeper continues to send the remaining data type confirmation request until the confirmation of the supported data type is finished; And S8, the service end outside the network gate analyzes and updates the data of the received data synchronization packet to finish the data synchronization operation.
- 2. The method for actively requesting data synchronization by forward gatekeeper according to claim 1, wherein the forward gatekeeper only supports unidirectional transmission, the gatekeeper outside service end cannot actively initiate a synchronization request, the data synchronization request is initiated by the gatekeeper inside client end at regular time, and the gatekeeper outside service end performs synchronization request confirmation to complete the subsequent steps.
- 3. The method of claim 1, wherein in S3, the synchronization type includes real-time data synchronization, tag information synchronization, and local parameter synchronization.
- 4. The method for actively requesting data synchronization by forward gatekeeper communication according to claim 3, wherein in S2 and S4, the external command uploaded by the user is a synchronization command uploaded by the user through a gatekeeper outside server, and the synchronization command includes a real-time data synchronization command, a tag information synchronization command and a local parameter synchronization command.
- 5. The method for actively requesting data synchronization by forward gatekeeper communication according to claim 3, wherein the data type in S6 is a basic data type when the synchronization type is real-time data and tag information; When the synchronization type is a local parameter, the data type in S6 is a data stream.
- 6. The method of claim 1, wherein in S6, the external command uploaded by the user is a data type command selected by the user on the service side outside the gatekeeper.
- 7. The method of claim 1, wherein in S2, S4 and S6, the gatekeeper outside service responds with 0xFF or 0x00,0xFF indicates success, and 0x00 indicates failure.
- 8. The system is characterized by comprising a gateway inner client and a gateway outer server, wherein the gateway inner client and the gateway outer server are connected through a forward gateway physical isolation device; The network gate inner side client is provided with a synchronous request module, a synchronous type confirmation request module, a data type confirmation request module and a data synchronous module, and the network gate outer side server is provided with a synchronous confirmation module, a synchronous type confirmation module, a data type confirmation module and a data processing module; The synchronous request module is used for actively initiating a synchronous request; The synchronization confirmation module is used for confirming whether synchronization is performed or not and responding by judging whether the user uploads an external instruction or not; the synchronous type confirmation request module is used for judging whether the data is synchronous after receiving the response, if so, sequentially sending synchronous type confirmation requests, and if not, ending the data synchronization; The synchronization type confirmation module is used for matching and responding to the sent synchronization type confirmation request according to the external instruction uploaded by the user; The data type confirmation request module is used for judging whether the synchronization type is successfully matched according to the response, if so, starting to send a data type confirmation request packet of the synchronization type, and if not, continuing to send the rest synchronization type confirmation request packet until the supported synchronization type confirmation is finished; the data type confirmation module is used for matching and responding to the transmitted data type confirmation request according to the external instruction uploaded by the user; The data synchronization module is used for judging whether the data type is successfully matched according to the response, if so, starting to send a data synchronization packet of the data type, and if not, starting a data type confirmation request module, and continuing to send the rest data type confirmation requests until the confirmation of the supported data type is finished; and the synchronous data processing module is used for carrying out data analysis and data updating on the received data synchronous packet to finish the data synchronous operation.
- 9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method of actively requesting data synchronization for forward gatekeeper communication according to any one of claims 1-7 when the computer program is executed by the processor.
- 10. A computer readable storage medium storing a computer program for execution by a processor to perform the steps of the method of actively requesting data synchronization for forward gatekeeper communication of any one of claims 1-7.
Description
Method, system, computer equipment and storage medium for actively requesting data synchronization in forward gatekeeper communication Technical Field The invention belongs to the technical field of forward gatekeeper data transmission, and particularly relates to a method, a system, computer equipment and a storage medium for actively requesting data synchronization in forward gatekeeper communication. Background In order to ensure the security of data in a power system, the network is divided into different security levels. When data transmission from a high-risk level network to a low-risk level network is required, a forward gatekeeper physical isolation device is required. The forward gatekeeper ensures unidirectional exchange of data of two security levels, and data flows from a high security level to a low security level. The data of the presentation layer and the application layer are unidirectionally transmitted, so that TCP response is forbidden to carry data content, and the two network cards inside and outside the forward gateway are in non-network link inside the device. The network isolation technology thoroughly realizes that no logical connection, no information transmission command, no physical connection and no information transmission protocol exist between two independent host systems, and only one physical hardware device for allowing unidirectional data transmission is realized. Because of the characteristics of the forward gatekeeper, the data synchronization can only be completed through manual export and import of clients at present, the method not only needs to consume a large amount of time to carry out data screening, but also can not complete the data synchronization in a short time because two machines needing to carry out the data synchronization are far away. The software system in the current industry only realizes unidirectional transmission of real-time data and historical data, but in the field application process, data such as tag information, configuration information and the like are sometimes required to be synchronized, and compared with the real-time data, the data of the type does not have the characteristics of real-time change and the like, and only changes under specific conditions and has lower frequency, but the existing software system cannot meet the requirements. Disclosure of Invention The invention aims to provide a method, a system, computer equipment and a storage medium for actively requesting data synchronization in forward gatekeeper communication, which solve the problem that a gatekeeper outside service end and a gatekeeper inside client end cannot perform data interaction and cannot synchronize data needed by a user. The invention is realized by the following technical scheme: A method for actively requesting data synchronization in forward gatekeeper communication includes the following steps: s1, actively initiating a synchronous request by a client on the inner side of a gatekeeper; S2, the outside service end of the gatekeeper confirms whether to synchronize and respond by judging whether the user uploads an external instruction; s3, after receiving the response, the client on the inner side of the network gate judges whether to synchronize, if yes, a synchronization type confirmation request is sequentially sent, and if not, the data synchronization is finished; S4, the outside service end of the gatekeeper is matched and responded with a synchronous type confirmation request sent by the inside client end of the gatekeeper according to an external instruction uploaded by a user; S5, the client side at the inner side of the network gate judges whether the synchronization type is successfully matched according to the response, if so, the client side starts to send a data type confirmation request packet of the synchronization type, and if not, continues to send the rest synchronization type confirmation request packet until the supported synchronization type is confirmed; s6, the outside service end of the gatekeeper matches and responds to the data type confirmation request sent by the inside client end of the gatekeeper according to the external instruction uploaded by the user; S7, the client side at the inner side of the gatekeeper judges whether the data type is successfully matched according to the response, if so, a data synchronization packet of the data type is started to be sent; If not, the client side at the inner side of the gatekeeper continues to send the remaining data type confirmation request until the confirmation of the supported data type is finished; And S8, after the network gate outside service end synchronizes the received data, carrying out data analysis and data updating to complete the data synchronization operation. Further, the forward gatekeeper only supports unidirectional transmission, the gatekeeper outside service end cannot actively initiate a synchronization request, the data synchronization request is initi