CN116389457A - Cross-domain data transmission method, system and storage medium - Google Patents

Cross-domain data transmission method, system and storage medium Download PDF

Info

Publication number
CN116389457A
CN116389457A CN202310307827.6A CN202310307827A CN116389457A CN 116389457 A CN116389457 A CN 116389457A CN 202310307827 A CN202310307827 A CN 202310307827A CN 116389457 A CN116389457 A CN 116389457A
Authority
CN
China
Prior art keywords
data
transmitted
transmission
slave
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310307827.6A
Other languages
Chinese (zh)
Inventor
柴彦东
刘锦锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202310307827.6A priority Critical patent/CN116389457A/en
Publication of CN116389457A publication Critical patent/CN116389457A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application provides a cross-domain data transmission method, a system and a storage medium, wherein the cross-domain data transmission method comprises the following steps: the transmitting device transmits data to be transmitted to the main transmitting device; the master transmission device sends the data to be transmitted to the slave transmission device; when the master transmission apparatus is abnormal, the slave transmission apparatus transmits the data to be transmitted received from the master transmission apparatus to the reception apparatus. After the main transmission equipment acquires the data to be transmitted from the transmitting equipment, the data to be transmitted is transmitted to the auxiliary transmission equipment, once the main transmission equipment is abnormal at the moment, the data to be transmitted cannot be transmitted to the receiving equipment, the auxiliary transmission equipment also backs up the data to be transmitted, and the auxiliary transmission equipment starts to work, so that the data to be transmitted can be transmitted to the receiving equipment, the receiving equipment is ensured to receive the data to be transmitted which is acquired by the main transmission equipment but is not transmitted, the loss of the transmitted data is avoided, and the integrity of the transmitted data is ensured.

Description

Cross-domain data transmission method, system and storage medium
Technical Field
The present disclosure relates to the field of data transmission technologies, and in particular, to a method, a system, and a storage medium for cross-domain data transmission.
Background
A cross-domain file transfer device, also known as a unidirectional shutter, is used to transfer data in objects of a lower security level to objects of a higher security level.
In order to avoid that the cross-domain file transfer device is abnormal and data cannot be transferred between two objects, a redundant cross-domain file transfer device is generally set for the cross-domain file transfer device, that is, a master transfer device and a slave transfer device are set. When the main transmission device can work normally, the main transmission device acquires data from the transmitting device and transmits the acquired data to the receiving device.
After the main transmission device acquires data from the transmitting device, if the module of the main transmission device for transmitting data to the receiving device is abnormal, the main transmission device cannot transmit the acquired data to the receiving device. At this time, the master transmission apparatus is abandoned, and the slave transmission apparatus is used for data transmission. But the part of the data is not already acquired from the transmitting device. This is because the transmitting device immediately deletes the acquired data once the data in the transmitting device is acquired. After the main transmission device acquires the part of data from the sending device, the sending device immediately deletes the part of data, and after the main transmission device cannot acquire the part of data from the sending device, the part of data cannot be sent to the receiving device through the main transmission device, and the part of data is lost in the transmission process. How to avoid partial data loss in the data transmission process is a problem to be solved at present.
Disclosure of Invention
The embodiment of the application aims to provide a cross-domain data transmission method, a system and a storage medium, which can solve the problem that partial data are lost in the transmission process.
In order to solve the technical problems, the embodiment of the application provides the following technical scheme:
the first aspect of the present application provides a cross-domain data transmission method, where the method is applied to a cross-domain data transmission system, and the system includes: the method comprises the steps that a sending device, a master transmission device, a slave transmission device and a receiving device are located in different security domains, the security level of the security domain of the sending device is lower than that of the security domain of the receiving device, and the method comprises the following steps: the transmitting device transmits data to be transmitted to the main transmitting device; the master transmission equipment sends the data to be transmitted to the slave transmission equipment; when the master transmission apparatus is abnormal, the slave transmission apparatus transmits the data to be transmitted received from the master transmission apparatus to the reception apparatus.
A second aspect of the present application provides a cross-domain data transmission system, the system comprising: the system comprises a sending device, a master transmission device, a slave transmission device and a receiving device, wherein the sending device and the receiving device are located in different security domains, and the security level of the security domain of the sending device is lower than that of the security domain of the receiving device; the transmitting device is used for transmitting the data to be transmitted to the main transmitting device; the master transmission device is used for sending the data to be transmitted to the slave transmission device; and the slave transmission device is used for sending the data to be transmitted, which is received from the master transmission device, to the receiving device when the master transmission device is abnormal.
A third aspect of the present application provides a computer-readable storage medium, the storage medium comprising: a stored program; wherein the program, when run, controls a device in which the storage medium is located to perform the method in the first aspect.
Compared with the prior art, the cross-domain data transmission method provided in the first aspect of the application has the advantages that after the main transmission device obtains the data to be transmitted from the sending device, the data to be transmitted is sent to the auxiliary transmission device, once the main transmission device is abnormal at the moment, the data to be transmitted cannot be sent to the receiving device, the data to be transmitted is backed up in the auxiliary transmission device, the auxiliary transmission device starts to work, the data to be transmitted can be sent to the receiving device, the receiving device is ensured to receive the data to be transmitted, which is obtained by the main transmission device but is not sent, the loss of the data to be transmitted is avoided, and the integrity of the data to be transmitted is ensured.
The cross-domain data transmission system provided in the second aspect of the present application and the computer readable storage medium provided in the third aspect of the present application have the same or similar beneficial effects as the cross-domain data transmission method provided in the first aspect.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present application will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present application are illustrated by way of example and not by way of limitation in the figures of the accompanying drawings, in which like reference numerals refer to similar or corresponding parts and in which:
Fig. 1 is a schematic diagram of a cross-domain data transmission method according to an embodiment of the present application;
fig. 2 is a flowchart of a cross-domain data transmission method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a second architecture of a cross-domain data transmission method according to an embodiment of the present application;
fig. 4 is a schematic diagram of cross-domain data transmission performed by the data transmission device in the embodiment of the present application;
fig. 5 is a second flow chart of a cross-domain data transmission method in the embodiment of the present application;
fig. 6 is a schematic diagram of a third architecture of a cross-domain data transmission method in an embodiment of the present application;
fig. 7 is a schematic diagram of a cross-domain data transmission method according to an embodiment of the present application;
fig. 8 is a schematic diagram of cross-domain data transmission by a master optical unidirectional isolation gateway and a slave optical unidirectional isolation gateway in the embodiment of the application;
fig. 9 is a schematic structural diagram of a cross-domain data transmission system according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is noted that unless otherwise indicated, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs.
Currently, in order to ensure that data unidirectional cross-domain transmission is performed normally, a redundancy device is often set for the transmission device. When the transmission equipment cannot transmit data, the redundant equipment can replace the transmission equipment to transmit data. However, if the transmission device obtains the data to be transmitted from the sending device, the transmission device is abnormal, and the sending device deletes the data to be transmitted immediately after sending the data to be transmitted, when the transmission device is switched to the redundancy device to continue data transmission, the redundancy device cannot obtain the data to be transmitted to the transmission device from the sending device, and further cannot send the data to be transmitted to the receiving device. In this way, the data to be transmitted is lost during transmission.
The inventor finds that the main reason for partial data loss in the data transmission process is that the transmission device with abnormality acquires the data to be transmitted and the transmission device deletes the data to be transmitted. In the transmission device, there are two modules, one is an external network module that obtains data to be transmitted from the transmission device, and the other is an internal network module that transmits the data to be transmitted to the reception device. If the intranet module of the transmission equipment is abnormal, the extranet module of the transmission equipment can work normally all the time, and if the extranet module of the transmission equipment is backed up before, the data to be transmitted can still be transmitted to the receiving equipment through backup after the intranet module of the transmission equipment is abnormal, so that the data to be transmitted is prevented from being lost.
In view of this, the embodiments of the present application provide a cross-domain data transmission method, system, and storage medium, where after a master transmission device obtains data to be transmitted from a sending device, the master transmission device not only normally sends the data to be transmitted to a receiving device, but also additionally sends the data to be transmitted to a slave transmission device for data backup. Thus, when an abnormality occurs in the module in which the master transmission apparatus transmits data to the reception apparatus, the slave transmission apparatus holds the data to be transmitted even if the transmission apparatus deletes the data to be transmitted. The slave transmission equipment can continuously send the data to be transmitted to the receiving equipment, so that the data to be transmitted is prevented from being lost in the data transmission process, and the integrity of data transmission is ensured.
In order to enable a user to more clearly understand the cross-domain data transmission method provided by the embodiment of the present application, first, a description is given of an architecture where the cross-domain data transmission method is located.
Fig. 1 is a schematic diagram of an architecture of a cross-domain data transmission method in an embodiment of the present application, and referring to fig. 1, the architecture is actually a cross-domain data transmission system, and the system may include: a transmitting device, a master transmitting device, a slave transmitting device and a receiving device. Wherein the transmitting device and the receiving device are located in different security domains. The security level of the security domain of the transmitting device is lower than the security level of the security domain of the receiving device.
In the previous cross-domain data transmission process, when the sending device needs to send the data to be transmitted to the receiving device, the main transmission device obtains the data to be transmitted from the sending device, and the sending device deletes the data to be transmitted. When the module of the main transmission equipment for sending data to the receiving equipment is abnormal, the data transmission is started from the transmission equipment, but the data to be transmitted which is sent to the main transmission equipment cannot be obtained from the sending equipment by the secondary transmission equipment, and further the receiving equipment cannot receive the data to be transmitted which is sent to the main transmission equipment by the sending equipment, so that the data to be transmitted are lost in the cross-domain data transmission process.
In the embodiment of the application, when the sending device needs to send the data to be transmitted to the receiving device, the main transmitting device obtains the data to be transmitted from the sending device, and the sending device deletes the data to be transmitted. After the master transmission device obtains the data to be transmitted, the data to be transmitted is not only sent to the receiving device, but also sent to the slave transmission device for data backup. In this way, when an abnormality occurs in the module in which the master transmission apparatus transmits data to the reception apparatus, the data transmission is started from the transmission apparatus, and although the data to be transmitted is not acquired from the transmission apparatus by the slave transmission apparatus, the data to be transmitted is stored in the slave transmission apparatus, and the slave transmission apparatus can transmit the data to be transmitted, which it receives from the master transmission apparatus, to the reception apparatus. Even if the main transmission equipment is abnormal after acquiring the data to be transmitted from the sending equipment, the receiving equipment can still receive the data to be transmitted through the slave transmission equipment, so that the data to be transmitted are prevented from being lost in the cross-domain data transmission process.
It can be seen that in the embodiment of the present application, the master transmission device and the slave transmission device are connected, and on the basis of the original dual-machine hot standby, the link hot standby is also implemented, that is, the availability of the link in the cross-domain data transmission process is ensured. By designing a plurality of available transmission links between the master transmission apparatus and the slave transmission apparatus. Under normal conditions, the master transmission equipment is responsible for data ferrying, and the slave transmission equipment is responsible for data caching, data rollback and other operations. Once the module of the main transmission device for sending data to the receiving device is abnormal, the slave transmission device can replace the slave transmission device within a short time, and the state switching (namely, switching from a buffer memory state to a rollback state to a data ferrying state) is completed, so that the buffered data is sent to the receiving device, the transmission data can be ensured to completely reach the receiving device, and the integrity of the transmission data is ensured.
Next, a description is given of a cross-domain data transmission method provided in the embodiment of the present application.
Fig. 2 is a schematic flow chart of a cross-domain data transmission method in an embodiment of the present application, and referring to fig. 2, the method may include:
s201: the transmitting device transmits data to be transmitted to the master transmitting device.
The transmitting device here is a device that has data to be transmitted. In practical applications, the data may be data that needs to be synchronized, that is, the data in the transmitting device is updated, and the receiving device needs to update the data. Updating here may refer to adding new data, modifying existing data, etc.
The master transmission device traverses the catalogue of the sending device, searches the content which changes in the catalogue, and obtains the catalogue change information. At this time, the master transmission apparatus is known to the transmission apparatus that the data is to be transmitted, and also knows the storage location of the data to be transmitted in the transmission apparatus according to the target change information. The master transmission device may send a data acquisition request to the sending device, and after the sending device receives the data acquisition request, the master transmission device may know that the master transmission device will send data to be transmitted to the receiving device. At this time, the transmitting device transmits the data to be transmitted to the master transmitting device based on the data transmission request.
S202: the master transmission apparatus sends data to be transmitted to the slave transmission apparatus.
The slave transmission device may be passively receiving data to be transmitted, that is, the master transmission device actively sends the data to be transmitted to the slave transmission device, or actively obtains the data to be transmitted, that is, the slave transmission device sends a request to the master transmission device every time a period of time, and if the data to be transmitted exists in the master transmission device, the master transmission device sends the data to be transmitted to the slave transmission device based on the request.
S203: when the master transmission apparatus is abnormal, the slave transmission apparatus transmits the data to be transmitted received from the master transmission apparatus to the reception apparatus.
After the master transmission device obtains the data to be transmitted, under the condition that the master transmission device is normal, the data to be transmitted is not only required to be sent to the receiving device, but also required to be backed up, namely, the data to be transmitted is sent to the slave transmission device. Thus, if the main transmission device is abnormal at this time, the sending device deletes the data to be transmitted which has been sent to the main transmission device, but the slave transmission device backs up the data to be transmitted, and when the slave transmission device starts to transmit the data to be transmitted, the backed up data to be transmitted can be sent to the receiving device. Therefore, the receiving equipment can still receive the data to be transmitted, the transmission data cannot be lost, and the integrity of the transmission data can be ensured.
In the process of carrying out anomaly monitoring on the main transmission equipment, the anomaly monitoring can be carried out on hardware and software of the main transmission equipment at the same time. For hardware monitoring, whether the network card can work normally can be detected. If the main transmission device can work normally, the hardware monitoring of the main transmission device is considered to be normal. If the data can not work normally, the hardware monitoring of the main transmission equipment is considered to be abnormal, and the module of the main transmission equipment for transmitting the data to the receiving equipment is determined to be abnormal. For software monitoring, it is possible to detect if some critical processes exist. If so, the software monitoring of the primary transmission device is considered normal. If the data is not stored, the software monitoring of the main transmission equipment is considered to be abnormal, and the module of the main transmission equipment for transmitting the data to the receiving equipment is determined to be abnormal.
The monitoring of the abnormality of the master transmission equipment can be performed by the slave transmission equipment, so that once the slave transmission equipment monitors that the module of the master transmission equipment for transmitting data to the receiving equipment is abnormal, the module can be immediately started, the dead time of a data transmission function is shortened, and the data transmission efficiency is improved. The monitoring of the abnormity of the master transmission equipment can be carried out by other equipment except the slave transmission equipment, so that excessive resources of the slave transmission equipment are not occupied, and the data transmission efficiency of the slave transmission equipment is improved.
As can be seen from the foregoing, in the cross-domain data transmission method provided by the embodiment of the present application, after the master transmission device obtains the data to be transmitted from the sending device, the master transmission device not only normally sends the data to be transmitted to the receiving device, but also additionally sends the data to be transmitted to the slave transmission device for data backup. Thus, when an abnormality occurs in the module in which the master transmission apparatus transmits data to the reception apparatus, the slave transmission apparatus holds the data to be transmitted even if the transmission apparatus deletes the data to be transmitted. The slave transmission equipment can continuously send the data to be transmitted to the receiving equipment, so that the data to be transmitted is prevented from being lost in the data transmission process, and the integrity of data transmission is ensured.
Further, as a refinement of the method shown in fig. 2, the master transmission device and the slave transmission device both operate through an external network module and an internal network module. The external network module is mainly used for acquiring data to be transmitted from the transmitting equipment and transmitting the data to be transmitted to the internal network module, and the internal network module is mainly used for transmitting the data to be transmitted to the receiving equipment. If the intranet module of the main transmission device is abnormal, the extranet module of the main transmission device cannot send the data to be transmitted to the receiving device even if the data to be transmitted is obtained from the sending device, so that the extranet module of the main transmission device needs to send the data to be transmitted to the intranet module of the auxiliary transmission device for backup after obtaining the data to be transmitted.
Fig. 3 is a schematic diagram of a second architecture of a cross-domain data transmission method in the embodiment of the present application, and referring to fig. 3, the architecture is actually a cross-domain data transmission system, and the system may include: a transmitting device, a master transmitting device, a slave transmitting device and a receiving device. The main transmission equipment comprises a first external network module and a first internal network module, the auxiliary transmission equipment comprises a second external network module and a second internal network module, and the first external network module is connected with the second internal network module. The first external network module is used for receiving data sent by the sending equipment, transmitting the data to the first internal network module and the second internal network module, and transmitting the data sent by the first external network module to the receiving equipment through the second internal network module when the first internal network module is abnormal.
After the first external network module of the master transmission device obtains the data to be transmitted from the sending device, the data to be transmitted is sent to the first internal network module of the master transmission device, and the data to be transmitted is also sent to the second internal network module of the slave transmission device for data backup. If the first intranet module of the main transmission device is abnormal at this time, the second intranet module of the slave transmission device will send the data to be transmitted to the receiving device because the data to be transmitted is backed up. In this way, the data transmission is performed by using the backup link of the "transmitting device-the first external network module of the master transmission device-the second internal network module of the slave transmission device-the receiving device".
Fig. 4 is a schematic diagram of a principle of cross-domain data transmission by a data transmission device in the embodiment of the present application, and referring to fig. 4, an external network module and an internal network module of the transmission device each include a service module, a file tunnel and a data tunnel.
After the transmitting device generates data to be transmitted, a service module in an external network module of the transmitting device acquires directory change information by scanning a directory of the transmitting device, and records the directory change information in a message queue. The file tunnel in the external network module of the transmission device acquires the data to be transmitted from the sending device according to the directory change information in the message queue, and stores the data in the cache file. And the data tunnel in the external network module of the transmission equipment ferries the data to be transmitted in the cache file to the internal network module of the transmission equipment. And the data tunnel in the intranet module of the transmission equipment receives the data to be transmitted. And storing the data to be transmitted into a buffer file through a file tunnel in an intranet module of the transmission equipment, and recording the information of the data to be transmitted into a task queue. And the business module in the intranet module of the transmission equipment sends the data to be transmitted in the cache file to the receiving equipment according to the information in the task queue.
Specifically, the step S201 may include:
step A1: and the sending equipment sends the data to be transmitted to a first external network module of the main transmission equipment.
The step S202 may include:
step A2: and the first external network module of the master transmission equipment sends the data to be transmitted to the second internal network module of the slave transmission equipment.
The step S203 may include:
step A3: when the first intranet module of the main transmission equipment is abnormal, the second intranet module of the slave transmission equipment sends the data to be transmitted, which is received from the first extranet module of the main transmission equipment, to the receiving equipment.
The above is that when the first intranet module of the master transmission device is abnormal, the transmission path of the data to be transmitted in the sending device, namely the sending device, the first extranet module of the master transmission device, the second intranet module of the slave transmission device, and the receiving device. After the first intranet module of the main transmission device is normal or returns to normal, the data to be transmitted in the sending device is transmitted only through the main transmission device, namely the sending device, the first extranet module of the main transmission device, the second intranet module of the main transmission device and the receiving device.
Specifically, the method may further include:
Step B1: when the main transmission equipment is normal, the first external network module of the main transmission equipment sends the data to be transmitted to the first internal network module of the main transmission equipment.
The main transmission equipment normally comprises a first external network module and a first internal network module of the main transmission equipment.
Step B2: and the first intranet module of the main transmission equipment sends the data to be transmitted to the receiving equipment.
As can be seen from the above, the external network module of the master transmission device obtains the data to be transmitted from the sending device, and sends the data to be transmitted to the internal network module of the slave transmission device, and when the internal network module of the master transmission device is abnormal, the slave transmission device can send the data to be transmitted, which is backed up therein, to the receiving device. The external network module of the main transmission equipment is combined with the internal network module of the auxiliary transmission equipment to realize hot standby of the data transmission link, namely link hot standby, and under the condition that the main transmission equipment is normal, data transmission is still carried out through the main transmission equipment, and the main transmission equipment can be continuously used to the maximum degree on the basis of ensuring that the data can be normally transmitted, so that the main transmission equipment can be fully used.
Further, as an extension of the method shown in fig. 2, the transmitting device may not send one or two pieces of data to the receiving device, and may be many pieces of data, if all the transmitted data are stored in the slave transmitting device, on one hand, the slave transmitting device does not provide a huge storage space for data backup (increasing the manufacturing cost of the slave transmitting device), on the other hand, the data transmission is continuously performed, and the slave transmitting device continuously stores the data, which may affect the normal data transmission process of the slave transmitting device if the data is more stored. Thus, a preset buffer value may be set for the slave transmission device. After the data backed up in the slave transmission equipment exceeds the preset storage value, the data in the slave transmission equipment can be cleaned so as to ensure that the function of data transmission of the slave transmission equipment can be normally used.
Specifically, after the step S202, the method may further include:
step C1: the slave transmission device judges whether the storage amount of the slave transmission device exceeds a preset cache value of the slave transmission device after storing the data to be transmitted. If yes, executing the step C2, and if not, executing the step C3.
That is, before the data to be transmitted is stored in the slave transmission device, the data amount of the data to be transmitted needs to be added to the data amount of the data stored in the slave transmission device, and compared with the preset buffer value, if the added data amount exceeds the preset buffer value, it is indicated that the data to be transmitted will be burdened by the slave transmission device after being stored in the slave transmission device, and even cannot be stored, at this time, some data stored in the earlier time can be deleted, and a storage space is reserved for the data to be transmitted. If the added data amount does not exceed the preset buffer value, the data to be transmitted is stored in the slave transmission device, and the slave transmission device is not burdened by the data to be transmitted.
Step C2: and deleting the stored data according to the sequence of the storage time, so that the storage amount of the slave transmission equipment does not exceed the preset cache value of the slave transmission equipment after the data to be transmitted are stored.
That is, after deleting the corresponding data from the transmission device, the data to be transmitted is stored, and the limit of the preset buffer value is just reached, so that the latest transmission data can be stored to the maximum extent.
For example, assuming that the preset buffer value of the slave transmission device is 60000 pieces of data, 59999 pieces of data are already stored in the slave transmission device, and the data to be transmitted is 10 pieces. When the 1 st data arrives at the slave transmission device, since the current buffer value is 60000 (59999+1, the preset buffer value is not exceeded), the 1 st data can be directly stored in the slave transmission device. When the 2 nd data (or the data after the 2 nd data) arrives at the slave transmission device, the buffered data needs to be rolled back because the current buffer value exceeds the preset buffer value, so that the current buffer data is smaller than the preset buffer value (namely, the 9 data with the earliest time in the buffered data is deleted), and then the data to be transmitted is buffered. In order to reduce data damage during the switching process of the master and slave transmission equipment, only one data with the longest buffering time is rolled back each time of data buffering rollback. Rollback includes data record deletion and cached data deletion.
Step C3: the data to be transmitted is stored.
For setting of a preset buffer value, setting is needed, the setting is too large, the storage burden of the slave transmission device is increased, the setting is too small, and after the module of the master transmission device for sending data to the receiving device is abnormal, the data to be transmitted, which are acquired by the master transmission device, cannot be sent to the receiving device. Thus, it is necessary to combine the maximum buffer value of the slave transmission device, the data transmission rate, and the device switching time determination.
Specifically, before the step C1, the method may further include:
step C01: the slave transmission device determines a to-be-set buffer value of the slave transmission device according to the data transmission rate and the device switching time.
When determining the to-be-set buffer value, the data transmission rate of the slave transmission device may be multiplied by the device switching time for switching from the master transmission device to the slave transmission device, and the result of the multiplication is the to-be-set buffer value of the slave transmission device. Of course, in the multiplication process, a parameter, such as 2, may also be multiplied. The specific parameters are not limited herein.
For example, assuming that the data transmission rate of the slave transmission apparatus is 3000 1KB files per second, the apparatus switching time of the slave transmission apparatus is 10s. Then, the buffer value to be set from the transmission device is 30000 (10×3000), or 60000 (10×2×3000).
Step C02: and judging whether the to-be-set buffer value exceeds the maximum buffer value of the slave transmission equipment. If yes, step C03 is executed, and if not, step C04 is executed.
In the slave transmission device, there is typically a maximum buffer value. Beyond which the amount of data stored by the slave transmission device exceeds, the slave transmission device is no longer able to store data. However, it is also not preferable to directly set the preset buffer value to the maximum buffer value, which affects the data transmission efficiency from the transmission device. Therefore, a value smaller than the maximum buffer value is set, so that data storage can be realized, and the data transmission efficiency of the slave transmission device is not affected. This value may be a cache value to be set as long as it is smaller than the maximum cache value.
Continuing with the above example, assume that the available disk space from the transmitting device is 1TB, i.e., the maximum buffer value is 1 x 1024 (device available disk space/single sample file size). The buffer value to be set of the slave transmission device is 60000, which is smaller than the maximum buffer value 1 x 1024, therefore, the to-be-set buffer value 60000 can be regarded as a preset buffer value of the slave transmission apparatus. Therefore, the data loss caused by time-consuming jitter in the switching state process can be better avoided.
That is, when the to-be-set buffer value does not exceed the maximum buffer value, the to-be-set buffer value is used as the preset buffer value of the slave transmission device. When the to-be-set buffer value exceeds the maximum buffer value, the maximum buffer value can only be used as the preset buffer value of the slave transmission equipment.
Step C03: and taking the maximum buffer value as a preset buffer value of the slave transmission equipment.
Step C04: and taking the to-be-set buffer value as a preset buffer value of the slave transmission equipment.
According to the above, when the data to be transmitted is stored in the slave transmission device, the storage capacity of the slave transmission device after the data to be transmitted is stored in the slave transmission device can be kept in an optimal state by presetting the buffer value, so that the normal data transmission function of the slave transmission device is not affected when the slave transmission device performs data backup. And determining the preset buffer value of the slave transmission equipment through the data transmission rate, the equipment switching time and the maximum buffer value of the slave transmission equipment, so that the complete backup of the data to be transmitted can be realized, more storage space of the slave transmission equipment can not be occupied, and the data transmission efficiency of the slave transmission equipment is maximized while the data transmission integrity is ensured.
Further, as an extension of the method shown in fig. 2, in order to ensure that the slave transmission apparatus can complete backup of the data to be transmitted, the master transmission apparatus needs to confirm to the slave transmission apparatus after sending the data to be transmitted to the slave transmission apparatus.
Specifically, after the step S202, the method may further include:
step D1: the master transmission apparatus transmits a data reception acknowledgement request to the slave transmission apparatus.
After the master transmission apparatus transmits the data to be transmitted to the slave transmission apparatus, the master transmission apparatus transmits a data reception confirmation request to the slave transmission apparatus. The data reception confirmation request includes a query to the slave transmission apparatus, asking whether or not it receives data to be transmitted.
Step D2: it is determined whether an acknowledgement message fed back from the transmitting device based on the data reception acknowledgement request is received within a predetermined period of time. If yes, go to step D3, if no, go to step D4.
After receiving the data receiving confirmation request, the slave transmission device confirms whether the slave transmission device receives the data to be transmitted, and if the slave transmission device confirms the data to be transmitted, a confirmation message is fed back to the master transmission device to inform the master transmission device that the data to be transmitted has been received. If it is confirmed that it does not receive data to be transmitted or does not receive a data reception confirmation request, a confirmation message is not fed back to the master transmission apparatus.
After sending a data reception acknowledgement request to the slave transmission apparatus and a predetermined period of time has elapsed, if an acknowledgement message is received, indicating that the slave transmission apparatus has received data to be transmitted, the master transmission apparatus may delete the data to be transmitted, leaving a storage space for other data. If no acknowledgement message is received, indicating that the slave transmission device has not received the data to be transmitted, and possibly the receiving device has not received the data to be transmitted, the data to be transmitted may be sent to the slave transmission device again, so as to ensure that the data to be transmitted can be sent to the receiving device and the slave transmission device.
Step D3: and deleting the data to be transmitted.
Step D4: the data to be transmitted is sent again to the slave transmission apparatus.
Here, the retransmission may be performed again or may be performed twice more. The number of retransmissions is not particularly limited here.
After the data to be transmitted is sent to the slave transmission device again, if the data to be transmitted is not sent successfully, the data to be transmitted may be lost after the intranet module of the master transmission device is abnormal. If the data to be transmitted is always stored in the external network module of the main transmission device, even if the internal network module of the main transmission device is abnormal, the internal network module of the slave transmission device does not successfully backup the data to be transmitted, the external network module of the main transmission device can still send the data to be transmitted to the receiving device through the internal network modules of other transmission devices.
Specifically, after the step D4, the method may further include:
step D5: and storing the data to be transmitted in an external network module of the main transmission equipment.
That is, when the master transmission apparatus determines whether to send the data to be transmitted to the slave transmission apparatus again or not successfully, the external network module of the master transmission apparatus does not send the data to be transmitted to the slave transmission apparatus any more, but stores the data to be transmitted in the external network module of the master transmission apparatus. Therefore, when the intranet module of the master transmission device is abnormal, and the intranet module of the slave transmission device does not successfully backup the data to be transmitted, the extranet module of the master transmission device can still send the data to be transmitted to the receiving device through the intranet module of the slave transmission device, so that the data to be transmitted can reach the receiving device.
As can be seen from the above, by sending a data reception acknowledgement request to the slave transmission apparatus and deleting or resending the data to be transmitted according to whether the slave transmission apparatus feeds back an acknowledgement message based on the data reception acknowledgement request, the storage space of the master transmission apparatus can be utilized to the maximum extent, and the data to be transmitted can be ensured to be successfully backed up, so that the data to be transmitted can be ensured to be finally sent to the receiving apparatus. And after the failure of sending the data to be transmitted again to the intranet module of the slave transmission equipment, directly storing the data to be transmitted in the extranet module of the master transmission equipment, and further, when the intranet module of the master transmission equipment is abnormal, and the intranet module of the slave transmission equipment does not successfully backup the data to be transmitted, the extranet module of the master transmission equipment can also send the data to be transmitted to the receiving equipment through the intranet modules of other transmission equipment, so that the data to be transmitted can reach the receiving equipment.
So far, under the condition that the intranet module of the master transmission equipment is abnormal, how to ensure the normal transmission of the data to be transmitted, namely, the intranet module of the slave transmission equipment backs up the data to be transmitted, namely, the technical scheme of establishing a link hot standby between the extranet module of the master transmission equipment and the intranet module of the slave transmission equipment is fully explained.
Next, description will be continued on how to ensure normal transmission of data to be transmitted in the case where an abnormality occurs in the external network module of the main transmission device.
At present, after the master transmission device obtains the data to be transmitted from the sending device, if the master transmission device is abnormal, and the sending device sends the data to be transmitted, the data to be transmitted is deleted immediately, and after the slave transmission device is switched to the slave transmission device, the slave transmission device cannot obtain the data to be transmitted from the sending device, and further cannot send the data to be transmitted to the receiving device. In this way, the data to be transmitted is lost during transmission.
The inventor finds that the main reason why partial data is lost in the data transmission process is that after the abnormal main transmission equipment acquires the data to be transmitted, a deleting instruction for deleting the data to be transmitted is sent to the sending equipment, and the sending equipment deletes the data to be transmitted according to the deleting instruction. If the time for deleting the data to be transmitted by the transmitting device can be delayed, the external network module of the slave transmitting device can acquire the data to be transmitted from the transmitting device even if the external network module of the master transmitting device is abnormal, and then the data to be transmitted is transmitted to the receiving device, so that the data to be transmitted is prevented from being lost.
In view of this, the embodiment of the present application further provides a cross-domain data transmission method, after the master transmission device obtains the data to be transmitted from the sending device, the master transmission device delays for a period of time to send the deletion instruction, so that the data to be transmitted in the sending device is not deleted immediately. Therefore, once the main transmission equipment is abnormal, the time for acquiring the data to be transmitted from the sending equipment can be reserved for the slave transmission equipment, the data to be transmitted is sent to the receiving equipment, the data to be transmitted is prevented from being lost in the data transmission process, and the integrity of data transmission is ensured.
Fig. 5 is a second flowchart of a cross-domain data transmission method in the embodiment of the present application, and referring to fig. 5, the method may include:
s501: the transmitting device transmits data to be transmitted to the master transmitting device.
The specific implementation manner of this step S501 is the same as that of the foregoing step S201, and will not be repeated here.
S502: when the master transmission apparatus is abnormal, the transmission apparatus transmits the target data to be transmitted to the slave transmission apparatus to transmit the target data to be transmitted to the reception apparatus through the slave transmission apparatus.
The target data to be transmitted is data to be transmitted, which is sent to the main transmission device by the sending device during the abnormal period of the main transmission device.
After the transmitting device transmits the data to be transmitted to the master transmitting device, the transmitted data to be transmitted is not deleted immediately therein, but waits for a period of time to see whether the slave transmitting device still needs to acquire the data to be transmitted.
If the main transmission device is abnormal, which means that the main transmission device does not successfully transmit all the data to be transmitted sent by the sending device to the receiving device, the slave transmission device needs to acquire the data to be transmitted, namely the target data to be transmitted, sent by the sending device to the main transmission device during the abnormal period of the main transmission device from the sending device again, and then sends the target data to be transmitted to the receiving device, so as to ensure that the data to be transmitted is not lost in the data transmission process. At this time, the transmitting device transmits the target data to be transmitted to the slave transmitting device, so that the target data to be transmitted in the transmitting device is ensured to be transmitted to the receiving device by transmitting the target data to be transmitted to the receiving device from the transmitting device.
If the main transmission device is not abnormal, the main transmission device sends a deleting instruction for deleting the data to be transmitted to the main transmission device to the transmitting device after a period of time, and the transmitting device deletes the corresponding data to be transmitted according to the deleting instruction, or the transmitting device deletes the data to be transmitted sent in a certain period of time by itself after a period of time.
As can be seen from the foregoing, in the cross-domain data transmission method provided in the embodiments of the present application, after the transmitting device sends the data to be transmitted to the master transmission device, the transmitting device does not delete the data to be transmitted immediately, but sends the target data to be transmitted, which is sent to the master transmission device during the abnormality of the master transmission device, to the slave transmission device when the abnormality occurs in the master transmission device. Therefore, under the condition that the main transmission equipment is abnormal, the slave transmission equipment can also acquire target data to be transmitted from the sending equipment, and then the target data to be transmitted is sent to the receiving equipment, so that the data to be transmitted is ensured not to be lost in the transmission process, and the integrity of the data to be transmitted is ensured.
Further, as a refinement of the method shown in fig. 5, the master transmission apparatus and the slave transmission apparatus operate through the external network module and the internal network module. The external network module is mainly used for acquiring data to be transmitted from the transmitting equipment and transmitting the data to be transmitted to the internal network module, and the internal network module is mainly used for transmitting the data to be transmitted to the receiving equipment. If the external network module of the main transmission device is abnormal, before the main transmission device is not found abnormal, the sending device sends the target data to be transmitted to the main transmission device, and the main transmission device cannot obtain the target data to be transmitted and cannot send the target data to be transmitted to the receiving device, so that the sending device can not delete the target data to be transmitted immediately after sending the target data to be transmitted to the external network module of the main transmission device, so that the target data to be transmitted can be obtained from the transmission device, and the receiving device can still receive the target data to be transmitted.
Fig. 6 is a schematic diagram of a third architecture of a cross-domain data transmission method in an embodiment of the present application, and referring to fig. 6, the architecture is actually a cross-domain data transmission system, and the system may include: a transmitting device, a master transmitting device, a slave transmitting device and a receiving device. The main transmission equipment comprises a first external network module and a first internal network module, the auxiliary transmission equipment comprises a second external network module and a second internal network module, and the first internal network module is connected with the second external network module. When the first external network module is abnormal, the second external network module is used for receiving data sent by the sending equipment, transmitting the data to the first internal network module, and transmitting the data received from the second external network module to the receiving equipment through the first internal network module.
After the transmitting device transmits the data to be transmitted to the first external network module of the main transmitting device, the transmitting device does not delete the transmitted data to be transmitted immediately, but waits in a preset time period. If all the main transmission equipment is normal, the first external network module of the main transmission equipment sends the data to be transmitted to the first internal network module of the main transmission equipment, and the first internal network module of the main transmission equipment further sends the data to be transmitted to the receiving equipment. If the first external network module of the main transmission device is abnormal, but has not been found, the transmitting device will send data to be transmitted to the first external network module of the main transmission device, and these data may be referred to as target data to be transmitted. After the first external network module of the main transmission equipment is found abnormal. The first external network module of the slave transmission device acquires the target data to be transmitted from the transmitting device and transmits the target data to be transmitted to the second internal network module of the master transmission device, and the second internal network module of the master transmission device transmits the target data to be transmitted to the receiving device. In this way, the data transmission is performed by using the backup link of the "transmitting device-the first external network module of the slave transmission device-the second internal network module of the master transmission device-the receiving device".
Specifically, when the master transmission apparatus abnormality includes a first foreign module abnormality of the master transmission apparatus, the above step S502 may include:
step E1: when the first external network module of the master transmission equipment is abnormal, the sending equipment sends target data to be transmitted to the second external network module of the slave transmission equipment.
Step E2: and the second external network module of the slave transmission equipment sends the target data to be transmitted to the first internal network module of the master transmission equipment.
Step E3: and the first intranet module of the main transmission equipment sends the target data to be transmitted to the receiving equipment.
As can be seen from the above, the target data to be transmitted is obtained from the sending device through the second external network module of the slave transmission device, and the target data to be transmitted is sent to the first internal network module of the master transmission device, and finally the data to be transmitted is sent to the receiving device through the first internal network module of the master transmission device. When the first external network module of the main transmission equipment is abnormal, the second external network module of the auxiliary transmission equipment is combined with the first internal network module of the main transmission equipment to realize hot standby of the data transmission link, namely link hot standby, and the main transmission equipment can be continuously used to the maximum extent on the basis of ensuring normal data transmission, so that the main transmission equipment can be fully used.
Further, as an extension of the method shown in fig. 5, after the sending device sends the data to be transmitted to the main transmitting device, the sending device does not always store the sent data to be transmitted without limitation, but deletes the sent data to be transmitted under a certain time or condition, so that the data to be transmitted in the sending device is ensured not to be excessively accumulated.
Specifically, after the step S502, the method may further include:
step F1: after a preset time or after the transmitting device transmits the target data to be transmitted to the slave transmitting device, deleting the target data to be transmitted in the slave transmitting device.
When the master transmission apparatus has actually been abnormal but has not been found yet, the transmitting apparatus transmits the target data to be transmitted to the master transmission apparatus. The transmitting device does not delete the target data to be transmitted immediately at this time, but remains for a while. After a period of time, the sending device deletes the target data to be transmitted. In this period, if the master transmission apparatus is found to be abnormal, the slave transmission apparatus can acquire the target data to be transmitted from the transmitting apparatus, so that the target data to be transmitted can be transmitted to the receiving apparatus.
Alternatively, when the master transmission apparatus has actually been abnormal but has not been found, the transmitting apparatus may transmit the target data to be transmitted to the master transmission apparatus. The transmitting device does not delete the target data to be transmitted immediately at this time, but remains for a while. In this period, if the master transmission apparatus is found to be abnormal, the slave transmission apparatus can acquire the target data to be transmitted from the transmitting apparatus, so that the target data to be transmitted can be transmitted to the receiving apparatus. After the target data to be transmitted is obtained from the transmitting device by the transmitting device, the transmitting device deletes the target data to be transmitted.
And the sending device keeps the sent data to be transmitted for a preset time which is not suitable to be set too long or too short. Too long a setting may increase the storage burden of the transmitting device, too short a setting may delete a portion of data that is not transmitted to the receiving device. It is therefore necessary to set a moderate preset period of time.
Specifically, before the step SF1, the method may include:
step F0: and determining preset time according to the data transmission rate of the main transmission equipment.
Wherein the preset time is inversely proportional to the data transmission rate of the primary transmission device.
The faster the data transmission rate of the main transmission device is, the faster the main transmission device will transmit the data to be transmitted after acquiring the data to be transmitted, and even if the main transmission device is abnormal due to the fact that all the data is not transmitted, the data amount of the remaining data which is not transmitted is smaller, and the time stored in the sending device will not be too long before, so that the preset time can be set to be shorter, and the sending device will not store too much sent data on the basis of ensuring that the data which is not transmitted can be acquired from the transmission device again.
The slower the data transmission rate of the main transmission device, the main transmission device can only transmit the data to be transmitted slightly after acquiring the data to be transmitted, when the main transmission device is abnormal, the data amount of the remaining data which is not transmitted completely is also larger, and the time stored in the sending device is longer, so that the preset time period can be set longer, and the data which is not transmitted completely can be ensured to be acquired from the transmission device again.
In the process of determining the preset time, if the preset time is too long, the sent data in the sending equipment cannot be deleted in time, so that the data in the sending equipment are accumulated, and the normal operation of the sending equipment is affected. Therefore, it is necessary to ensure that the data retained by the transmitting device during the preset time does not affect the normal operation of the transmitting device.
Specifically, the step F0 may include:
step F01: and determining the retention time period of the sent data in the sending device according to the data transmission rate of the main transmission device.
The higher the data transmission rate of the master transmission apparatus, the shorter the hold time period of the transmitted data in the transmitting apparatus is set. Accordingly, the lower the data transmission rate of the master transmission apparatus, the longer the retention period of the transmitted data in the transmitting apparatus is set.
Step F02: and judging whether the data amount in the transmitting device exceeds a preset amount in the retention period. If the step is exceeded, the step 0F3 is executed, and if the step is not exceeded, the step F04 is executed.
The preset amount may refer to the maximum storage amount of data in the transmitting device, or may refer to any value smaller than the maximum storage amount of data in the transmitting device. The specific value of the preset amount may be determined according to the actual working performance of the transmitting device, which is not limited herein.
When the data amount in the transmitting device exceeds the preset amount in the reserved time period, the data amount stored in the transmitting device is larger according to the reserved time period, and the normal use of the transmitting device may be affected, so that the reserved time period needs to be reduced, and the data amount in the transmitting device does not exceed the preset amount in the reduced reserved time period.
When the data amount in the transmitting device does not exceed the preset amount in the reserved time period, the data which is transmitted is stored in the transmitting device according to the reserved time period, and the stored data amount does not influence the normal use of the transmitting device, so that the reserved time period can be used as the preset time.
Step F03: reducing the retention time period, so that the data amount in the transmitting device does not exceed the preset amount in the reduced retention time period;
Step F04: the retention period is taken as a preset time.
According to the above, after the sending device sends the target data to be transmitted for a preset time or sends the target data to be transmitted to the slave transmission device, the target data to be transmitted is deleted, and on the basis of ensuring that the target data to be transmitted can be smoothly sent to the receiving device, the excessive storage space of the sending device can be avoided. And determining a preset time period for the sent data by the sending device according to the data transmission rate of the main transmission device, and ensuring normal operation of other functions of the sending device without storing excessive sent data on the basis of ensuring that the sent data which is not transmitted can be acquired from the transmission device again. And after determining the preset time period of the sent data in the sending device according to the data transmission rate of the main transmission device, determining whether to adjust the preset time period based on a preset amount, so that the sending device can store the sent data for re-acquisition, and the sending device cannot work normally due to the fact that more sent data are stored.
Further, as an extension to the method shown in fig. 2, after the transmitting device sends the data to be transmitted to the master transmitting device, the slave transmitting device may need to obtain some specified data from the transmitting device, whether the master transmitting device is abnormal or not, where the specified data may be the data to be transmitted already or not, so as to achieve other purposes.
Specifically, after the above step S201, the method may further include:
step G: the transmitting device transmits data indicated by the request to the slave transmitting device based on the request transmitted from the transmitting device.
Wherein the request is for acquiring specified data in the transmitting device.
In the process that the transmitting device transmits each data to be transmitted to the master transmitting device, if the master transmitting device is abnormal, the slave transmitting device determines the data sent by the transmitting device from the beginning of the abnormality to the time when the abnormality is found, namely the designated data, which can be considered as the target data to be transmitted, then generates a request for acquiring the data, and transmits the request to the transmitting device. The transmitting device holds the transmitted data for a certain period of time, and thus transmits the data to the slave transmitting device after receiving the request transmitted from the slave transmitting device. The slave transmission device can transmit the data to the receiving device so that the receiving device can obtain the data that the master transmission device did not successfully transmit.
If the master transmission apparatus is normal, the slave transmission apparatus may also acquire the data sent from the sending apparatus to the master transmission apparatus, thereby implementing other purposes, for example: backup, analysis, etc.
Finally, a complete embodiment is used to explain the cross-domain data transmission method provided by the embodiment of the application again.
Fig. 7 is a schematic diagram of a cross-domain data transmission method in an embodiment of the present application, and referring to fig. 7, the architecture is actually a cross-domain data transmission system, and the system may include: the system comprises a server 1, an optical unidirectional isolation gatekeeper A, an optical unidirectional isolation gatekeeper B and a server 2. The optical unidirectional isolation net gate A comprises an outer net side and an inner net side, and the optical unidirectional isolation net gate B comprises an outer net side and an inner net side.
When the optical unidirectional isolation gatekeeper a can work normally, the external network side of the optical unidirectional isolation gatekeeper a acquires data to be transmitted from the server 1 (the server 1 sends the data to be transmitted, and the data to be transmitted is not deleted immediately), and sends the data to the internal network side of the optical unidirectional isolation gatekeeper a (and sends the data to the internal network side of the optical unidirectional isolation gatekeeper B). The intranet side of the optical unidirectional isolation gatekeeper A sends data to be transmitted to the server 2.
When the intranet side of the optical unidirectional isolation barrier a is abnormal, the external network side of the optical unidirectional isolation barrier a previously sends the data to be transmitted to the intranet side of the optical unidirectional isolation barrier B, so that the intranet side of the optical unidirectional isolation barrier B can send the data to be transmitted to the server 2.
When the external network side of the optical unidirectional isolation gateway a is abnormal, the server 1 sends the data to be transmitted to the external network side of the optical unidirectional isolation gateway a, and the data to be transmitted is not deleted immediately, so that the external network side of the optical unidirectional isolation gateway B can obtain the data to be transmitted from the server 1 and send the data to be transmitted to the internal network side of the optical unidirectional isolation gateway a. The intranet side of the optical unidirectional isolation gatekeeper A sends the data to be transmitted to the server 2.
Of course, if the external network side and the internal network side of the optical unidirectional isolation gatekeeper a are abnormal, the data to be transmitted can only be obtained from the server 1 through the external network side of the optical unidirectional isolation gatekeeper B, and sent to the server 2 through the internal network side of the optical unidirectional isolation gatekeeper B (i.e. dual-machine hot standby).
In this way, on the basis of the dual hot standby (the optical unidirectional isolation gatekeeper a and the redundant optical unidirectional isolation gatekeeper B thereof), the link hot standby (the server 1-the external network side of the optical unidirectional isolation gatekeeper a-the internal network side of the optical unidirectional isolation gatekeeper a-the server 2, and the redundant server 1-the external network side of the optical unidirectional isolation gatekeeper a-the internal network side of the optical unidirectional isolation gatekeeper B-the server 2, the external network side of the server 1-the optical unidirectional isolation gatekeeper B-the internal network side of the optical unidirectional isolation gatekeeper a-the server 2) is also realized.
Fig. 8 is a schematic diagram of cross-domain data transmission performed by the master and slave unidirectional optical isolation network gates in the embodiment of the present application, and as shown in fig. 8, both the external network side and the internal network side of the master and slave unidirectional optical isolation network gates include a service module, a file tunnel and a data tunnel. The business module is provided with a database mode, a server mode, a client mode and an embedded mode, and is respectively used for realizing corresponding functions.
Taking the occurrence of an abnormality on the intranet side of the main light unidirectional isolation gate as an example.
When the main optical unidirectional isolation gatekeeper can work normally, the service module in the external network side of the main optical unidirectional isolation gatekeeper acquires directory change information by scanning the directory of the server 1, and records the directory change information in the message queue. The file tunnel in the external network side of the main optical unidirectional isolation gateway obtains the data to be transmitted from the server 1 according to the directory change information in the message queue, and stores the data in the cache file. The data tunnel in the outer network side of the main optical unidirectional isolation network gate ferries the data to be transmitted in the cache file to the inner network side of the main optical unidirectional isolation network gate, and meanwhile, the data to be transmitted is sent to the data tunnel in the inner network side of the slave unidirectional isolation network gate, and then is sent to the file tunnel backup in the inner network side of the slave unidirectional isolation network gate. And the data tunnel in the intranet side of the main optical unidirectional isolation network gate receives the data to be transmitted. The file tunnel in the intranet side of the main optical unidirectional isolation network gate stores the data to be transmitted into a cache file, and records the information of the data to be transmitted into a task queue. And the business module in the intranet side of the main optical unidirectional isolation gateway sends the data to be transmitted in the cache file to the receiving equipment according to the information in the task queue.
When the intranet side of the main optical unidirectional isolation gateway is abnormal, the backup data to be transmitted is sent to a service module in the intranet side of the unidirectional isolation gateway from a file tunnel in the intranet side of the unidirectional isolation gateway, and is sent to the server 2 through the service module.
Based on the same inventive concept, as an implementation of the method, the embodiment of the application also provides a cross-domain data transmission system. Fig. 9 is a schematic structural diagram of a cross-domain data transmission system according to an embodiment of the present application, and referring to fig. 9, the system may include: a transmitting device 901, a master transmitting device 902, a slave transmitting device 903, and a receiving device 904.
Wherein the sending device 901 is configured to send data to be transmitted to the main transmission device 302.
A master transmission apparatus 902 for sending data to be transmitted to a slave transmission apparatus 903.
The slave transmission device 903 is configured to send, when the master transmission device 902 is abnormal, data to be transmitted received from the master transmission device 902 to the reception device 904.
Further, the master transmission equipment comprises a first external network module and a first internal network module, the slave transmission equipment comprises a second external network module and a second internal network module, and the first external network module is connected with the second internal network module;
The first external network module is used for receiving the data sent by the sending equipment, transmitting the data to the first internal network module and the second internal network module, and transmitting the data sent by the first external network module to the receiving equipment through the second internal network module when the first internal network module is abnormal;
the sending equipment is used for sending data to be transmitted to a first external network module of the main transmission equipment;
the first external network module of the master transmission equipment is used for sending the data to be transmitted to the second internal network module of the slave transmission equipment;
when the first intranet module of the main transmission equipment is abnormal, the second intranet module of the slave transmission equipment is used for sending the data to be transmitted, which is received from the first extranet module of the main transmission equipment, to the receiving equipment.
Further, when the main transmission device is normal, the first external network module of the main transmission device is used for sending the data to be transmitted to the first internal network module of the main transmission device, wherein the main transmission device normally comprises the first external network module and the first internal network module of the main transmission device;
and the first intranet module of the main transmission equipment is used for sending the data to be transmitted to the receiving equipment.
Further, the slave transmission device is configured to determine whether an amount of memory of the slave transmission device exceeds a preset buffer value of the slave transmission device after storing the data to be transmitted;
If the data exceeds the preset cache value, deleting the stored data according to the sequence of the storage time, so that the storage amount of the slave transmission equipment does not exceed the preset cache value of the slave transmission equipment after the data to be transmitted is stored;
and if the data to be transmitted is not exceeded, storing the data to be transmitted.
Further, the slave transmission device is configured to determine a to-be-set buffer value of the slave transmission device according to a data transmission rate and a device switching time of the slave transmission device;
judging whether the to-be-set buffer value exceeds the maximum buffer value of the slave transmission equipment;
if the maximum buffer value exceeds the preset buffer value of the slave transmission equipment, taking the maximum buffer value as the preset buffer value of the slave transmission equipment;
and if the buffer value does not exceed the preset buffer value, taking the buffer value to be set as the preset buffer value of the slave transmission equipment.
Further, when the master transmission device is abnormal, the transmitting device is configured to transmit target data to be transmitted to the slave transmission device, so that the target data to be transmitted is transmitted to the receiving device through the slave transmission device, where the target data to be transmitted is the data to be transmitted that the transmitting device transmits to the master transmission device during the abnormal period of the master transmission device.
Further, the master transmission equipment comprises a first external network module and a first internal network module, the slave transmission equipment comprises a second external network module and a second internal network module, and the first internal network module is connected with the second external network module;
When the first external network module is abnormal, the second external network module is used for receiving the data sent by the sending equipment, transmitting the data to the first internal network module, and transmitting the data received from the second external network module to the receiving equipment through the first internal network module;
the main transmission equipment abnormality comprises abnormality of a first external network module of the main transmission equipment, and when the first external network module of the main transmission equipment is abnormal, the sending equipment is used for sending target data to be transmitted to a second external network module of the auxiliary transmission equipment;
the second external network module of the slave transmission equipment is used for sending the target data to be transmitted to the first internal network module of the master transmission equipment;
and the first intranet module of the main transmission equipment is used for sending the target data to be transmitted to the receiving equipment.
Further, the sending device is configured to delete the target data to be transmitted after a preset time or after sending the target data to be transmitted to the slave transmission device.
Further, a transmitting device is configured to transmit data indicated by a request to a slave transmitting device based on the request transmitted by the slave transmitting device, where the request is used to obtain specified data in the transmitting device.
It should be noted here that the description of the system embodiments above is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the system embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
Based on the same inventive concept, embodiments of the present application also provide a computer-readable storage medium, which may include: a stored program; wherein the program, when executed, controls a device in which the storage medium resides to perform the methods of one or more of the embodiments described above.
It should be noted here that the description of the above embodiments of the storage medium is similar to the description of the above embodiments of the method, with similar advantageous effects as the embodiments of the method. For technical details not disclosed in the storage medium embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method for cross-domain data transmission, the method being applied to a cross-domain data transmission system, the system comprising: the method comprises the steps that a sending device, a master transmission device, a slave transmission device and a receiving device are located in different security domains, the security level of the security domain of the sending device is lower than that of the security domain of the receiving device, and the method comprises the following steps:
the transmitting device transmits data to be transmitted to the main transmitting device;
the master transmission equipment sends the data to be transmitted to the slave transmission equipment;
when the master transmission apparatus is abnormal, the slave transmission apparatus transmits the data to be transmitted received from the master transmission apparatus to the reception apparatus.
2. The method of claim 1, wherein the master transmission device comprises a first external network module and a first internal network module, the slave transmission device comprises a second external network module and a second internal network module, and the first external network module is connected to the second internal network module;
the first external network module is used for receiving the data sent by the sending equipment, transmitting the data to the first internal network module and the second internal network module, and transmitting the data sent by the first external network module to the receiving equipment through the second internal network module when the first internal network module is abnormal;
The transmitting device transmits data to be transmitted to a main transmitting device, including:
the sending equipment sends data to be transmitted to a first external network module of the main transmission equipment;
the master transmission device sends the data to be transmitted to a slave transmission device, including:
the first external network module of the master transmission equipment sends the data to be transmitted to the second internal network module of the slave transmission equipment;
the master transmission device abnormality includes a first intranet module abnormality of the master transmission device, and when the master transmission device is abnormal, the slave transmission device sends data to be transmitted received from the master transmission device to the receiving device, including:
when the first intranet module of the main transmission equipment is abnormal, the second intranet module of the slave transmission equipment sends the data to be transmitted, which is received from the first extranet module of the main transmission equipment, to the receiving equipment.
3. The method according to claim 2, wherein the method further comprises:
when the main transmission equipment is normal, the first external network module of the main transmission equipment sends the data to be transmitted to the first internal network module of the main transmission equipment, wherein the main transmission equipment normally comprises the first external network module and the first internal network module of the main transmission equipment;
And the first intranet module of the main transmission equipment sends the data to be transmitted to the receiving equipment.
4. The method of claim 1, wherein after the master transmission device sends the data to be transmitted to the slave transmission device, the method further comprises:
judging whether the storage amount of the slave transmission equipment exceeds a preset cache value of the slave transmission equipment after the slave transmission equipment stores the data to be transmitted;
if the data exceeds the preset cache value, deleting the stored data according to the sequence of the storage time, so that the storage amount of the slave transmission equipment does not exceed the preset cache value of the slave transmission equipment after the data to be transmitted is stored;
and if the data to be transmitted is not exceeded, storing the data to be transmitted.
5. The method of claim 4, wherein before the slave transmission apparatus determines whether the storage amount of the slave transmission apparatus exceeds the preset buffer value of the slave transmission apparatus after storing the data to be transmitted, the method further comprises:
the slave transmission equipment determines a to-be-set cache value of the slave transmission equipment according to the data transmission rate and the equipment switching time;
judging whether the to-be-set buffer value exceeds the maximum buffer value of the slave transmission equipment;
If the maximum buffer value exceeds the preset buffer value of the slave transmission equipment, taking the maximum buffer value as the preset buffer value of the slave transmission equipment;
and if the buffer value does not exceed the preset buffer value, taking the buffer value to be set as the preset buffer value of the slave transmission equipment.
6. The method according to any one of claims 1 to 5, wherein after the transmitting device transmits the data to be transmitted to the master transmitting device, the method further comprises:
when the master transmission device is abnormal, the sending device sends target data to be transmitted to the slave transmission device so as to send the target data to be transmitted to the receiving device through the slave transmission device, wherein the target data to be transmitted is the data to be transmitted, which is sent to the master transmission device by the sending device during the abnormal period of the master transmission device.
7. The method of claim 6, wherein the master transmission device comprises a first extranet module and a first intranet module, the slave transmission device comprises a second extranet module and a second intranet module, and the first intranet module is connected to the second extranet module;
when the first external network module is abnormal, the second external network module is used for receiving the data sent by the sending equipment, transmitting the data to the first internal network module, and transmitting the data received from the second external network module to the receiving equipment through the first internal network module;
The master transmission apparatus abnormality includes a first foreign network module abnormality of the master transmission apparatus, and when the master transmission apparatus is abnormal, the transmitting apparatus transmits target data to be transmitted to a slave transmission apparatus to transmit the target data to be transmitted to a receiving apparatus through the slave transmission apparatus, including:
when the first external network module of the master transmission equipment is abnormal, the sending equipment sends target data to be transmitted to the second external network module of the slave transmission equipment;
the second external network module of the slave transmission equipment sends the target data to be transmitted to the first internal network module of the master transmission equipment;
and the first intranet module of the main transmission equipment sends the target data to be transmitted to the receiving equipment.
8. The method of claim 6, wherein after the transmitting device transmits the target data to be transmitted to the slave transmitting device, the method further comprises:
after a preset time or after the transmitting device transmits the target data to be transmitted to the slave transmitting device, deleting the target data to be transmitted in the slave transmitting device.
9. The method according to any one of claims 1 to 5, wherein after the transmitting device transmits the data to be transmitted to the master transmitting device, the method further comprises:
The transmitting device transmits data indicated by a request to the slave transmitting device based on the request transmitted from the slave transmitting device, the request being for acquiring the specified data in the transmitting device.
10. A cross-domain data transmission system, the system comprising: the system comprises a sending device, a master transmission device, a slave transmission device and a receiving device, wherein the sending device and the receiving device are located in different security domains, and the security level of the security domain of the sending device is lower than that of the security domain of the receiving device;
the transmitting device is used for transmitting the data to be transmitted to the main transmitting device;
the master transmission device is used for sending the data to be transmitted to the slave transmission device;
and the slave transmission device is used for sending the data to be transmitted, which is received from the master transmission device, to the receiving device when the master transmission device is abnormal.
11. A computer-readable storage medium, the storage medium comprising: a stored program; wherein the program, when run, controls a device in which the storage medium is located to perform the method of any one of claims 1 to 9.
CN202310307827.6A 2023-03-27 2023-03-27 Cross-domain data transmission method, system and storage medium Pending CN116389457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310307827.6A CN116389457A (en) 2023-03-27 2023-03-27 Cross-domain data transmission method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310307827.6A CN116389457A (en) 2023-03-27 2023-03-27 Cross-domain data transmission method, system and storage medium

Publications (1)

Publication Number Publication Date
CN116389457A true CN116389457A (en) 2023-07-04

Family

ID=86960868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310307827.6A Pending CN116389457A (en) 2023-03-27 2023-03-27 Cross-domain data transmission method, system and storage medium

Country Status (1)

Country Link
CN (1) CN116389457A (en)

Similar Documents

Publication Publication Date Title
US7644230B1 (en) Dynamic load management of network memory
JP4582297B2 (en) Replication system, apparatus, method, and program
JP4301849B2 (en) Information processing method and its execution system, its processing program, disaster recovery method and system, storage device for executing the processing, and its control processing method
JP3004008B1 (en) Update history management device and update history management method
US7694177B2 (en) Method and system for resynchronizing data between a primary and mirror data storage system
US7844787B2 (en) Techniques for data replication with snapshot capabilities
KR100744448B1 (en) Communication system
US9094466B2 (en) Maintaining caches of object location information in gateway computing devices using multicast messages
WO2020015366A1 (en) Method and device for data migration
US20100145914A1 (en) Database management server apparatus, database management system, database management method and database management program
US20160087926A1 (en) Data storage method and mail relay method of storage system in mail system
US20180101558A1 (en) Log-shipping data replication with early log record fetching
US7797571B2 (en) System, method and circuit for mirroring data
JPWO2008139521A1 (en) Remote file system, terminal device and server device
JP3376760B2 (en) Log acquisition method for managed devices
US10671567B2 (en) System and method for optimized lock detection
US20060136686A1 (en) Log shipping data replication with parallel log writing and log shipping at the primary site
CN116389457A (en) Cross-domain data transmission method, system and storage medium
WO2020094063A1 (en) Data storage method and device, storage medium and electronic device
JP2016071768A (en) Storage control device and storage system
CN110121874A (en) A kind of memory data replacement method, server node and data-storage system
US20210149768A1 (en) Server
CN117055805A (en) Kv deletion optimization method, system, equipment and medium based on distributed storage
CN117857537A (en) Method, device, equipment and storage medium for breakpoint continuous transmission of storage flow of network card
JP2011134029A (en) Storage device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination