Data synchronization method and device, equipment and storage medium

By creating cross -network data attribute templates and generating target data based on preset strategies, the problem of inter -network data attribute management control and data synchronization timeliness has been solved, and online incremental export and synchronization are realized, and management efficiency and data security are improved.

CN119383195AActive Publication Date: 2025-01-28CETC CYBERSPACE SECURITY TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411597940.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-01-28
Estimated Expiration
2044-11-11

AI Technical Summary

Technical Problem

The existing technology cannot effectively control cross-network data attributes, and when data synchronization between the e-government intranet and mobile office network, online incremental export and synchronization cannot be achieved, resulting in low timeliness and management efficiency.

Method used

By obtaining the information of the external network system, the cross -net data attribute template is created, and the cross -net data is generated based on the preset strategy to generate the target of the target, and it is sent to the preset network gate for synchronization. If the network gate is synchronized, real -time feedback synchronization results; if it is asynchronous, obtain the synchronization result of the asynchronous network gate to confirm the data synchronization state.

Benefits of technology

Achieve precise control of cross -network data attributes, enhance data security, and increase export and synchronization when adding data to improve the timeliness and management efficiency of data synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119383195A_ABST
    Figure CN119383195A_ABST
Patent Text Reader

Abstract

The invention discloses a data synchronization method and device, equipment and a storage medium, and relates to the technical field of communication, and the method comprises the steps: obtaining extranet system information of an extranet system, creating a cross-network data attribute template according to the extranet system information, generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and transmitting the target cross-network data to a server; sending the target cross-network data to a preset gatekeeper; transmitting the target cross-network data to an external network system through the preset gatekeeper, so that the external network system stores the target cross-network data locally, and feeds back a corresponding data synchronization result to the preset gatekeeper; and the data synchronization state of the target cross-network data in the external network system is confirmed according to the data synchronization result. In this way, the cross-network data attributes can be accurately controlled, and the cross-network data can be exported in an incremental mode when newly added data exist.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and in particular to a data synchronization method, apparatus, device and storage medium. Background Art

[0002] The existing intranet architecture service system can only meet the office needs of the e-government intranet, but cannot meet the mobile office scenario. At this time, it is necessary to synchronize the data in the e-government intranet to the mobile office network, so that the same person can perform normal office business operations both in the e-government intranet and in the mobile office network.

[0003] Currently, the network between the e-government intranet and the mobile office network cannot be directly connected, that is, there is an isolation network gateway or data single-channel equipment from other manufacturers between the e-government intranet and the mobile office network. The required data is exported from the e-government intranet and then imported into the mobile office network. First, there is no fine-grained control over the exported data attributes, which results in sensitive data attributes being exported regardless of whether they are needed or not. Secondly, the exported data records and the incremental export of data cannot be effectively managed. Finally, when exporting and importing data in the existing solution, it is impossible to perform online data synchronization by adapting the isolation device interface. In terms of ease of operation and timeliness, it cannot be comparable to the online method.

[0004] As can be seen from the above, how to accurately control the attributes of cross-network data and incrementally export cross-network data when new data is added is an urgent problem to be solved. Summary of the Invention

[0005] In view of this, the purpose of the present invention is to provide a data synchronization method, device, equipment and storage medium that can accurately control the attributes of cross-network data and incrementally export cross-network data when new data is added. The specific solution is as follows:

[0006] In a first aspect, the present application provides a data synchronization method, applied to an intranet system, comprising:

[0007] Acquiring external network system information of the external network system, creating a cross-network data attribute template according to the external network system information, and generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, so as to send the target cross-network data to a preset network gatekeeper;

[0008] Transmitting the target inter-network data to the external network system through the preset network gatekeeper, so that the external network system saves the target inter-network data locally and feeds back corresponding data synchronization results to the preset network gatekeeper;

[0009] If the preset network gatekeeper is a synchronous network gatekeeper, receiving a data synchronization result actively fed back by the synchronous network gatekeeper, and confirming the data synchronization status of the target cross-network data in the external network system according to the data synchronization result;

[0010] If the preset network gatekeeper is an asynchronous network gatekeeper, the data synchronization result is obtained from the asynchronous network gatekeeper to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result.

[0011] Optionally, the acquiring of external network system information of the external network system to create a cross-network data attribute template according to the external network system information includes:

[0012] Acquiring external network system information of the external network system to determine data attributes of the data to be transmitted based on the external network system information;

[0013] A cross-network data attribute template is created based on the data attributes.

[0014] Optionally, the preset cross-network data generation strategy is a generation strategy for target cross-network data corresponding to the cross-network data attribute template after converting the target format resource file; wherein, the target format resource file is a file obtained by converting the resource file in the intranet system into the target format.

[0015] Optionally, after acquiring the external network system information of the external network system, creating a cross-network data attribute template according to the external network system information, and generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, the method further includes:

[0016] If the current intranet system is offline, the target cross-network data is saved in the offline cross-network data list, and a corresponding cross-network data file is generated, so that after the external network system obtains the cross-network data file, it can parse the cross-network data file and save the target cross-network data obtained by the parsing locally.

[0017] Optionally, after acquiring external network system information of the external network system, creating a cross-network data attribute template based on the external network system information, generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and sending the target cross-network data to a preset network gatekeeper, the method further includes:

[0018] If there is new data locally, generating new cross-network data corresponding to the cross-network data attribute template based on the preset cross-network data generation strategy, and sending the new cross-network data to the preset network gatekeeper;

[0019] If the newly added cross-network data is successfully sent to the external network system through the preset network gateway, a data cross-network record corresponding to the newly added cross-network data is generated.

[0020] Optionally, transmitting the target inter-network data to the external network system through the preset network gatekeeper, so that the external network system saves the target inter-network data locally and feeds back a corresponding data synchronization result to the preset network gatekeeper, includes:

[0021] If the preset network gatekeeper is a synchronous network gatekeeper, the target inter-network data is sent to the external network system through the synchronous network gatekeeper, so that the external network system saves the target inter-network data locally and feeds back a first data synchronization result to the synchronous network gatekeeper;

[0022] If the preset network gatekeeper is an asynchronous network gatekeeper, the target cross-network data is saved to the asynchronous network gatekeeper, and the data sending result corresponding to the target cross-network data returned by the asynchronous network gatekeeper is received, so that the external network system can obtain the target cross-network data saved by the asynchronous network gatekeeper, save the target cross-network data locally, and feedback the second data synchronization result to the asynchronous network gatekeeper.

[0023] Optionally, if the preset network gatekeeper is an asynchronous network gatekeeper, obtaining the data synchronization result from the asynchronous network gatekeeper to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result includes:

[0024] If the preset network gatekeeper is an asynchronous network gatekeeper, generating a synchronization result query request based on the data sending result, and sending the synchronization result query request to the asynchronous network gatekeeper, so that the asynchronous network gatekeeper returns the second data synchronization result based on the synchronization result query request;

[0025] The second data synchronization result returned by the asynchronous network gate is received to confirm the data synchronization status of the target cross-network data in the external network system according to the second data synchronization result.

[0026] In a second aspect, the present application provides a data synchronization device, which is applied to an intranet system, comprising:

[0027] a cross-network data generation module, configured to obtain external network system information of an external network system, create a cross-network data attribute template based on the external network system information, and generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, so as to send the target cross-network data to a preset network gatekeeper;

[0028] an inter-network data transmission module, configured to transmit the target inter-network data to the external network system via the preset network gatekeeper, so that the external network system can save the target inter-network data locally and feed back corresponding data synchronization results to the preset network gatekeeper;

[0029] A first data synchronization status confirmation module is configured to receive a data synchronization result actively fed back by the synchronous gateway if the preset gateway is a synchronous gateway, and to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result;

[0030] The second data synchronization status confirmation module is used to obtain the data synchronization result from the asynchronous network gatekeeper if the preset network gatekeeper is an asynchronous network gatekeeper, so as to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result.

[0031] In a third aspect, the present application provides an electronic device, comprising:

[0032] Memory, used to store computer programs;

[0033] The processor is used to execute the computer program to implement the aforementioned data synchronization method.

[0034] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program implements the aforementioned data synchronization method when executed by a processor.

[0035] This application first obtains the external network system information of the external network system to create a cross-network data attribute template according to the external network system information, and generates target cross-network data corresponding to the cross-network data attribute template based on the preset cross-network data generation strategy to send the target cross-network data to the preset network gate; transmits the target cross-network data to the external network system through the preset network gate so that the external network system saves the target cross-network data locally and feeds back the corresponding data synchronization result to the preset network gate; if the preset network gate is a synchronous network gate, receives the data synchronization result actively fed back by the synchronous network gate to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result; if the preset network gate is an asynchronous network gate, obtains the data synchronization result from the asynchronous network gate to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result.

[0036] As can be seen from the above, this application generates corresponding cross-domain data by creating a cross-network data attribute template, which can accurately control the attributes of the exported cross-network data, enhance the security of the cross-network data, and generate target cross-network data corresponding to the cross-network data attribute template based on the preset cross-network data generation strategy. When new data appears, the intranet system can incrementally generate new cross-network data according to the cross-network data generation strategy, and incrementally synchronize the cross-network data. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0038] Figure 1 A flow chart of a data synchronization method disclosed in this application;

[0039] Figure 2 This is a timing diagram of a data synchronization method in a synchronous network gatekeeper case disclosed in this application;

[0040] Figure 3 This is a timing diagram of a data synchronization method under an asynchronous network gatekeeper disclosed in this application;

[0041] Figure 4 A flowchart of a specific data synchronization method disclosed in this application;

[0042] Figure 5 This is a structural diagram of a data synchronization device disclosed in this application;

[0043] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0045] Currently, there is an isolation network gateway or data export equipment from other manufacturers between the e-government intranet and the mobile office network. The required data is exported from the e-government intranet and then imported into the mobile office network. First, there is no fine-grained control over the exported data attributes, which leads to a very low timeliness of the entire process of data synchronization between the e-government intranet and the mobile office network. Regardless of whether the data attributes are needed or not, sensitive data attributes will be exported. Secondly, the exported data records and the incremental export of data cannot be effectively managed, and the entire process of data synchronization between the e-government intranet and the mobile office network has a very low timeliness. To this end, the present application provides a data synchronization solution that can accurately control cross-network data attributes and incrementally export cross-network data when new data is added.

[0046] See also Figure 1 As shown, the embodiment of the present application discloses a data synchronization method, including:

[0047] Step S11: Acquire the external network system information of the external network system to create a cross-network data attribute template according to the external network system information, and generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy to send the target cross-network data to a preset network gateway.

[0048] In this embodiment, external network system information of an external network system that has established a communication connection with the intranet system is obtained, and a cross-network data attribute template is created based on the external network system information. The intranet system may have previously established communication connections with multiple external network systems, where the external network system is any one of the multiple external network systems that have established a communication connection with the intranet system. Furthermore, the external network system information includes, but is not limited to, the external network system's identity authentication information, IP address information (Internet Protocol Address), system permission information, and data attribute information of the data to be transmitted. The specific information can be determined based on the actual application scenario. Specifically, obtaining the external network system information of the external network system and creating a cross-network data attribute template based on the external network system information includes: obtaining the external network system's identity authentication information, IP address information, and system permission information, and creating a cross-network data attribute template based on the data attributes of the data to be transmitted in the external network system information. This cross-network data attribute template enables precise control of cross-network data attributes, enhancing the security of cross-network data.

[0049] In this embodiment, target cross-network data corresponding to the cross-network data attribute template is generated based on a preset cross-network data generation strategy. The preset cross-network data generation strategy is a generation strategy for obtaining target cross-network data corresponding to the cross-network data attribute template after converting a target format resource file; the target format resource file is a file obtained by converting a resource file in the intranet system into a target format. In a specific embodiment, the generation of target cross-network data corresponding to the cross-network data attribute template based on the preset cross-network data generation strategy includes: converting the resource file in the intranet system into a file in JSON (JavaScript Object Notation, a lightweight data exchange format) format, and converting the obtained JSON format file into target cross-network data corresponding to the cross-network data attribute template. Furthermore, the data generation strategy can be used to incrementally generate cross-network data when new data exists locally, and generate corresponding data cross-network records. In a specific embodiment, after obtaining external network system information of an external network system, creating a cross-network data attribute template based on the external network system information, and generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and sending the target cross-network data to a preset gateway, the method further includes: if new data exists locally, converting the newly added resource file in the intranet system into a JSON-formatted file, converting the resulting JSON-formatted file into new cross-network data corresponding to the cross-network data attribute template, and sending the new cross-network data to the preset gateway; if the newly added cross-network data is successfully sent to the external network system via the preset gateway, assigning a corresponding data cross-network record identifier to the newly added resource file. It is understood that the data cross-network record identifier is used to determine whether the resource file in the intranet system is a newly added resource file. If the resource file is not assigned the data cross-network record identifier, the resource file is a newly added resource file; if the resource file is assigned the data cross-network record identifier, the resource file is not a newly added resource file.

[0050] Step S12: transmitting the target inter-network data to the external network system through the preset network gate, so that the external network system saves the target inter-network data locally and feeds back corresponding data synchronization results to the preset network gate.

[0051] In this embodiment, the target cross-network data is transmitted to the external network system through the preset network gate, so that the external network system saves the target cross-network data locally and feeds back the corresponding data synchronization result to the preset network gate. It should be noted that the external network system needs to select different data acquisition methods according to the type of the preset network gate. Specifically, in a specific implementation method, if the preset network gate is a synchronous network gate, the target cross-network data is actively sent to the external network system through the synchronous network gate, so that the external network system saves the target cross-network data locally and feeds back the first data synchronization result to the synchronous network gate as soon as possible. That is, if the preset network gate is a synchronous network gate, it can actively send the target cross-network data to the external network system to ensure the timeliness of the target cross-network data. In another specific embodiment, if the preset network gatekeeper is an asynchronous network gatekeeper, the target cross-network data is saved to the asynchronous network gatekeeper, and the data sending result corresponding to the target cross-network data returned by the asynchronous network gatekeeper is received, so that the external network system obtains the target cross-network data saved by the asynchronous network gatekeeper, saves the target cross-network data locally, and feeds back a second data synchronization result to the asynchronous network gatekeeper. That is, if the preset network gatekeeper is an asynchronous network gatekeeper, after the asynchronous network gatekeeper saves the target cross-network data locally, it immediately feeds back the data sending result corresponding to the target cross-network data. The data sending result is used to indicate whether the target cross-network data is successfully saved to the asynchronous network gatekeeper, so that the external network system can obtain the target cross-network data at any time through the preset acquisition instruction. By returning the data sending result, the internal network system can understand the current synchronization status of the target cross-network data, and the stability of the data synchronization process can be guaranteed.

[0052] Step S13: If the preset gateway is a synchronous gateway, then receiving the data synchronization result actively fed back by the synchronous gateway, and confirming the data synchronization status of the target cross-network data in the external network system according to the data synchronization result.

[0053] In this embodiment, if the preset gateway is a synchronous gateway, after the external network system feeds back a data synchronization result to the synchronous gateway, the internal network system also feeds back the data synchronization result to confirm the data synchronization status of the target cross-network data in the external network system based on the data synchronization result. The data synchronization result is used to indicate whether the target cross-network data is successfully synchronized to the external network system.

[0054] Step S14: If the preset network gatekeeper is an asynchronous network gatekeeper, the data synchronization result is obtained from the asynchronous network gatekeeper to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result.

[0055] In this embodiment, if the preset network gatekeeper is an asynchronous network gatekeeper, the data sending result corresponding to the target cross-network data returned by the asynchronous network gatekeeper is received, and a synchronization result query request is generated based on the data sending result, and then the synchronization result query request is sent to the asynchronous network gatekeeper, so that the asynchronous network gatekeeper returns the data synchronization result fed back by the external network system to the synchronization network gatekeeper based on the synchronization result query request; and receives the second data synchronization result returned by the asynchronous network gatekeeper to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result.

[0056] As can be seen from the above, the embodiment of the present application generates corresponding cross-domain data by creating a cross-network data attribute template, which can accurately control the attributes of the exported cross-network data, is compatible with a variety of isolation network devices, and can enhance the security of cross-network data while meeting the timeliness of cross-network data, and meet the cross-network data requirements between different network systems. Based on the preset cross-network data generation strategy, target cross-network data corresponding to the cross-network data attribute template is generated. When new data appears, the intranet system can incrementally generate new cross-network data according to the cross-network data generation strategy and incrementally synchronize the cross-network data.

[0057] See also Figure 2 As shown, for a synchronous network gatekeeper, the present application provides a data synchronization method, including:

[0058] In this embodiment, the mobile office destination system information corresponding to the mobile office network system is added to the e-government intranet system, and a corresponding cross-network data attribute template is created for the mobile office network system in the e-government intranet system based on the mobile office destination system information. A cross-network data generation strategy is created, and cross-network data is generated based on the cross-network data generation strategy and the cross-network data attribute template, and then the generated cross-network data is sent to the synchronization network gateway. The cross-network data is sent to the mobile office network system through the synchronization network gateway so that the mobile office network system processes the received cross-network data and returns the processing result to the synchronization network gateway. The corresponding synchronization result is returned to the e-government intranet system through the synchronization network gateway to complete the data synchronization process. It can be understood that when there is new data, the system in the e-government intranet will incrementally generate new cross-network data according to the cross-network data generation strategy, and synchronize the new cross-network data to the mobile office network system based on the synchronization network gateway.

[0059] As can be seen from the above, the embodiments of the present application can accurately control the attributes of the exported cross-network data by creating a cross-network data attribute template to generate corresponding cross-domain data. Based on the synchronization network gateway device, the timeliness of the cross-network data can be met. The target cross-network data corresponding to the cross-network data attribute template is generated based on a preset cross-network data generation policy. When new data appears, the intranet system can incrementally generate new cross-network data according to the cross-network data generation policy and incrementally synchronize the cross-network data.

[0060] See also Figure 3 As shown, for an asynchronous network gatekeeper, the present application provides a data synchronization method, including:

[0061] In this embodiment, the mobile office destination system information corresponding to the mobile office network system is added to the e-government intranet system, and a corresponding cross-network data attribute template is created for the mobile office network system in the e-government intranet system based on the mobile office destination system information. A cross-network data generation strategy is created, and cross-network data is generated based on the cross-network data generation strategy and the cross-network data attribute template, and then the generated cross-network data is sent to the asynchronous network gate. After receiving the cross-network data, the asynchronous network gate returns the processing result of the cross-network data to the e-government intranet system and saves the cross-network data locally so that the mobile office network system can obtain the cross-network data from the asynchronous network gate and process the cross-network data to obtain the corresponding processing result. After the asynchronous network gate receives the processing result returned by the mobile office network system, the e-government intranet system can actively query the asynchronous network gate for the synchronization status of the cross-network data so that the asynchronous network gate returns the corresponding digitized synchronization status to complete the data synchronization process. It is understandable that when there is new data, the system in the e-government intranet will incrementally generate new cross-network data according to the cross-network data generation strategy, and synchronize the new cross-network data to the mobile office network system based on the asynchronous network gateway.

[0062] As can be seen from the above, the embodiments of the present application can precisely control the attributes of the exported cross-network data by creating a cross-network data attribute template to generate corresponding cross-domain data. Based on the asynchronous network gateway device, the stability of the cross-network data synchronization process can be guaranteed. Target cross-network data corresponding to the cross-network data attribute template is generated based on a preset cross-network data generation policy. When new data appears, the intranet system can incrementally generate new cross-network data according to the cross-network data generation policy and incrementally synchronize the cross-network data.

[0063] See also Figure 4 As shown, in order to avoid the situation where data cannot be synchronized due to the intranet system being offline, an embodiment of the present application provides a data synchronization method, including:

[0064] Step S21: Acquire external network system information of the external network system, create a cross-network data attribute template according to the external network system information, and generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy.

[0065] Step S22: If the current intranet system is offline, the target cross-network data is saved in an offline cross-network data list, and a corresponding cross-network data file is generated, so that after the external network system obtains the cross-network data file, it can parse the cross-network data file and save the target cross-network data obtained by the parsing locally.

[0066] In this embodiment, if the current intranet system is in an offline state, the target cross-network data is saved in an offline cross-network data list, and a corresponding cross-network data file is generated. The cross-network data file can be transmitted through a preset storage medium, and the preset storage medium includes but is not limited to a USB flash drive, an optical disk, and a data transmission line. The specific method can be determined according to the actual application scenario and is not specifically limited here. Accordingly, after the external network system obtains the cross-network data file through the preset storage medium, it parses the cross-network data file and saves the target cross-network data obtained by the parsing locally. In a specific embodiment, the target cross-network data is exported to obtain a corresponding data file; the data file is burned to an optical disk so that the external network system can synchronize the target cross-network data to the local by reading the data file in the optical disk.

[0067] For the specific implementation process of the above step S21, reference may be made to the corresponding content in the above embodiment, which will not be repeated here.

[0068] As can be seen from the above, the embodiment of the present application generates corresponding cross-domain data by creating a cross-network data attribute template, which can accurately control the attributes of the exported cross-network data, enhance the security of the cross-network data, and generate target cross-network data corresponding to the cross-network data attribute template based on the preset cross-network data generation strategy. When new data appears, the intranet system can incrementally generate new cross-network data according to the cross-network data generation strategy and incrementally synchronize the cross-network data. At the same time, it can select data for export based on the generated cross-network data list and generate the corresponding cross-network data file, which is compatible with offline export and import of cross-network data.

[0069] See also Figure 5 As shown, the present application provides a data synchronization device, comprising:

[0070] The cross-network data generation module 11 is configured to obtain external network system information of the external network system, create a cross-network data attribute template based on the external network system information, and generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, so as to send the target cross-network data to a preset network gatekeeper;

[0071] The inter-network data transmission module 12 is used to transmit the target inter-network data to the external network system through the preset network gate, so that the external network system can save the target inter-network data locally and feedback the corresponding data synchronization result to the preset network gate;

[0072] A first data synchronization status confirmation module 13 is configured to receive a data synchronization result actively fed back by the synchronous gateway if the preset gateway is a synchronous gateway, and to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result;

[0073] The second data synchronization status confirmation module 14 is configured to obtain the data synchronization result from the asynchronous network gatekeeper if the preset network gatekeeper is an asynchronous network gatekeeper, so as to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result.

[0074] As can be seen from the above, this application generates corresponding cross-domain data by creating a cross-network data attribute template, which can accurately control the attributes of the exported cross-network data, enhance the security of the cross-network data, and generate target cross-network data corresponding to the cross-network data attribute template based on the preset cross-network data generation strategy. When new data appears, the intranet system can incrementally generate new cross-network data according to the cross-network data generation strategy, and incrementally synchronize the cross-network data.

[0075] In some specific implementations, the cross-network data generation module 11 may specifically include:

[0076] a cross-network data attribute determination unit, configured to obtain external network system information of the external network system, and determine data attributes of the data to be transmitted based on the external network system information;

[0077] a cross-network data attribute template generating unit, configured to create a cross-network data attribute template based on the data attributes determined by the cross-network data attribute determining unit;

[0078] a target inter-network data generating unit, configured to generate target inter-network data corresponding to the inter-network data attribute template based on a preset inter-network data generating strategy;

[0079] a newly added cross-network data generating unit, configured to generate, if newly added data exists locally, newly added cross-network data corresponding to the cross-network data attribute template based on the preset cross-network data generation strategy, and send the newly added cross-network data to a preset network gatekeeper;

[0080] The data cross-network record generating unit is configured to generate a data cross-network record corresponding to the newly added cross-network data if the newly added cross-network data is successfully sent to the external network system through the preset network gateway.

[0081] In some specific implementations, the cross-network data transmission module 12 may specifically include:

[0082] a synchronous gateway data synchronization unit, configured to, if the preset gateway is a synchronous gateway, send the target inter-network data to the external network system via the synchronous gateway so that the external network system can store the target inter-network data locally, and feed back a first data synchronization result to the synchronous gateway;

[0083] an asynchronous network gatekeeper data synchronization unit, configured to, if the preset network gatekeeper is an asynchronous network gatekeeper, save the target cross-network data to the asynchronous network gatekeeper, and receive a data sending result corresponding to the target cross-network data returned by the asynchronous network gatekeeper, so that the external network system obtains the target cross-network data saved by the asynchronous network gatekeeper, saves the target cross-network data locally, and feeds back a second data synchronization result to the asynchronous network gatekeeper;

[0084] The offline data synchronization unit is used to save the target cross-network data into the offline cross-network data list if the current intranet system is in an offline state, and generate a corresponding cross-network data file so that after the external network system obtains the cross-network data file, it can parse the cross-network data file and save the target cross-network data obtained by the parsing locally.

[0085] In some specific implementations, the second data synchronization status confirmation module 13 may specifically include:

[0086] a synchronization result query request generating unit, configured to, if the preset network gatekeeper is an asynchronous network gatekeeper, generate a synchronization result query request based on the data sending result, and send the synchronization result query request to the asynchronous network gatekeeper, so that the asynchronous network gatekeeper returns the second data synchronization result based on the synchronization result query request;

[0087] The data synchronization status determining unit is configured to receive the second data synchronization result returned by the asynchronous network gate, and confirm the data synchronization status of the target cross-network data in the external network system according to the second data synchronization result.

[0088] Furthermore, the embodiment of the present application also discloses an electronic device, Figure 6This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram should not be considered as any limitation on the scope of use of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps of the data synchronization method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0089] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0090] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0091] The operating system 221 is used to manage and control the hardware devices on the electronic device 20 and the computer program 222, and can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of implementing the data synchronization method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program capable of implementing other specific tasks.

[0092] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned data synchronization method is implemented. For the specific steps of this method, reference can be made to the corresponding contents disclosed in the aforementioned embodiments and will not be repeated here.

[0093] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.

[0094] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0095] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0096] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0097] The above is a detailed introduction to the technical solution provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the ideas of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A data synchronization method, characterized in that: Applied to intranet systems, including: Acquire external network system information of the external network system, create an inter-network data attribute template according to the external network system information, and generate target inter-network data corresponding to the inter-network data attribute template based on a preset inter-network data generation strategy, so as to send the target inter-network data to a preset network gate; Transmitting the target cross-network data to the external network system through the preset network gate, so that the external network system saves the target cross-network data locally and feeds back corresponding data synchronization results to the preset network gate; If the preset network gate is a synchronous network gate, receiving the data synchronization result actively fed back by the synchronous network gate, so as to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result; If the preset network gate is an asynchronous network gate, the data synchronization result is obtained from the asynchronous network gate, so as to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result.

2. The data synchronization method according to claim 1, characterized in that: The acquiring of the external network system information of the external network system to create a cross-network data attribute template according to the external network system information includes: Acquiring external network system information of the external network system to determine data attributes of the data to be transmitted according to the external network system information; A cross-network data attribute template is created based on the data attributes.

3. The data synchronization method according to claim 1, characterized in that: The preset cross-network data generation strategy is a generation strategy for target cross-network data corresponding to the cross-network data attribute template after converting the target format resource file; wherein, the target format resource file is a file obtained by converting the resource file in the intranet system into the target format.

4. The data synchronization method according to claim 1, characterized in that: After acquiring the external network system information of the external network system, creating a cross-network data attribute template according to the external network system information, and generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, the method further includes: If the current intranet system is offline, the target cross-network data is saved in an offline cross-network data list, and a corresponding cross-network data file is generated, so that after the external network system obtains the cross-network data file, it can parse the cross-network data file and save the target cross-network data obtained by the analysis locally.

5. The data synchronization method according to claim 1, characterized in that: The method further comprises: obtaining the external network system information of the external network system, creating a cross-network data attribute template according to the external network system information, and generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and sending the target cross-network data to a preset network gate; If there is newly added data locally, generating newly added cross-network data corresponding to the cross-network data attribute template based on the preset cross-network data generation strategy, and sending the newly added cross-network data to the preset network gate; If the newly added cross-network data is successfully sent to the external network system through the preset network gate, a data cross-network record corresponding to the newly added cross-network data is generated.

6. The data synchronization method according to any one of claims 1 to 5, characterized in that: The transmitting the target inter-network data to the external network system through the preset network gate so that the external network system saves the target inter-network data locally and feeds back the corresponding data synchronization result to the preset network gate, including: If the preset network gatekeeper is a synchronous network gatekeeper, the target inter-network data is sent to the external network system through the synchronous network gatekeeper, so that the external network system saves the target inter-network data locally and feeds back the first data synchronization result to the synchronous network gatekeeper; If the preset network gate is an asynchronous network gate, the target cross-network data is saved to the asynchronous network gate, and the data sending result corresponding to the target cross-network data returned by the asynchronous network gate is received, so that the external network system can obtain the target cross-network data saved by the asynchronous network gate, save the target cross-network data locally, and feedback the second data synchronization result to the asynchronous network gate.

7. The data synchronization method according to claim 6, characterized in that: If the preset network gatekeeper is an asynchronous network gatekeeper, obtaining the data synchronization result from the asynchronous network gatekeeper to confirm the data synchronization state of the target cross-network data in the external network system according to the data synchronization result includes: If the preset network gatekeeper is an asynchronous network gatekeeper, generating a synchronization result query request based on the data sending result, and sending the synchronization result query request to the asynchronous network gatekeeper, so that the asynchronous network gatekeeper returns the second data synchronization result based on the synchronization result query request; The second data synchronization result returned by the asynchronous network gate is received to confirm the data synchronization status of the target cross-network data in the external network system according to the second data synchronization result.

8. A data synchronization device, characterized in that: Applied to intranet systems, including: The cross-network data generation module is used to obtain the external network system information of the external network system, to create a cross-network data attribute template according to the external network system information, and to generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, so as to send the target cross-network data to a preset network gate; An inter-network data transmission module, used to transmit the target inter-network data to the external network system through the preset network gate, so that the external network system can save the target inter-network data locally and feed back corresponding data synchronization results to the preset network gate; A first data synchronization status confirmation module is used for receiving the data synchronization result actively fed back by the synchronous network gatekeeper if the preset network gatekeeper is a synchronous network gatekeeper, so as to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result; The second data synchronization status confirmation module is used to obtain the data synchronization result from the asynchronous network gate if the preset network gate is an asynchronous network gate, so as to confirm the data synchronization status of the target cross-network data in the external network system according to the data synchronization result.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the data synchronization method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the data synchronization method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Network security system under mobile Internet environment

    CN106230795A

  • Cross-network data exchange method, service platform and system

    CN109684390A

  • Data transmission method and device, electronic equipment and storage medium

    CN115694854A

  • Cross-gatekeeper data synchronization consistency method, device, equipment and medium

    CN115834611A

  • Report transmission device based on internal and external network data interaction and transmission method thereof

    CN117294474A