CN114172900A - File transmission method and system based on unidirectional network gate - Google Patents

File transmission method and system based on unidirectional network gate Download PDF

Info

Publication number
CN114172900A
CN114172900A CN202210127473.2A CN202210127473A CN114172900A CN 114172900 A CN114172900 A CN 114172900A CN 202210127473 A CN202210127473 A CN 202210127473A CN 114172900 A CN114172900 A CN 114172900A
Authority
CN
China
Prior art keywords
file
data packets
subfiles
missing
data packet
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
CN202210127473.2A
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.)
Beijing Andi Technology Co ltd
Original Assignee
Beijing Andi Technology 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 Beijing Andi Technology Co ltd filed Critical Beijing Andi Technology Co ltd
Priority to CN202210127473.2A priority Critical patent/CN114172900A/en
Publication of CN114172900A publication Critical patent/CN114172900A/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
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1835Buffer management
    • H04L1/1841Resequencing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • 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
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments

Abstract

The invention provides a file transmission method and a file transmission system based on a unidirectional gatekeeper, wherein the method comprises the following steps: disassembling a file to be transmitted based on a preset disassembling rule to obtain a plurality of data packets sequenced according to a transmission sequence, wherein the data packets at least comprise subfiles and sequence number information corresponding to the subfiles; sending data packets to a server according to the transmission sequence, wherein the sequence number information carried in the data packets is used for the server to judge the missing state of the data packets, and the missing state of the data packets comprises whether the data packets are missing and the sequence numbers of the missing data packets; when the method of the invention utilizes the unidirectional gateway to transmit a large number of files, whether the transmitted files are lost or not can be effectively judged and the packet loss position can be determined, thus improving the reliability of the file transmission process.

Description

File transmission method and system based on unidirectional network gate
Technical Field
The invention belongs to the technical field of computer application, and particularly relates to a file transmission method and system based on a one-way gatekeeper.
Background
The unidirectional gatekeeper is a hardware device erected between two disconnected networks, and is also called a network security isolation device, and completes unidirectional transmission of data resources between networks under certain limiting conditions according to requirements, so that many enterprises can choose to use the unidirectional gatekeeper to perform network isolation of a security domain in order to further protect internal data.
In the prior art, the process of transmitting files between two disconnected networks by using a unidirectional network gate is performed spontaneously, when the number of transmitted files is very large, the problem of transmission packet loss often occurs inevitably in the transmission process, and the packet loss position cannot be determined after the files are lost, so that the lost files cannot be found back, and the file transmission reliability is poor.
Disclosure of Invention
The file transmission method and system based on the unidirectional gatekeeper are used for solving the technical problem of poor file transmission reliability caused by the fact that lost files cannot be positioned and retrieved when the unidirectional gatekeeper is used for transmitting a large number of files in the prior art.
The invention provides a file transmission method based on a unidirectional gatekeeper, which is applied to a client, and comprises the following steps: disassembling a file to be transmitted based on a preset disassembling rule to obtain a plurality of data packets sequenced according to a transmission sequence, wherein the data packets at least comprise subfiles and sequence number information corresponding to the subfiles; and sending data packets to a server according to the transmission sequence, wherein the data packets carry sequence number information so that the server can judge the missing state of the data packets, and the missing state of the data packets comprises whether the data packets are missing and the sequence numbers of the missing data packets.
According to the file transmission method based on the unidirectional gatekeeper provided by the invention, the method is applied to the client, and the method further comprises the following steps:
splitting the byte length of the file to be transmitted into a plurality of parts according to a preset byte interval so as to obtain a plurality of subfiles corresponding to each byte interval; the subfiles, the file information corresponding to the subfiles and the package information corresponding to the subfiles form the data package; the file information is the file name of the file, and the package information includes the total number of the subfiles and the sequence number information corresponding to the subfiles.
And generating a sending record of each data packet in the process of sending the data packets to the server according to the transmission sequence.
And if the sensitive information exists in the file, replacing the sensitive information with irrelevant information to form a new file to be transmitted.
The invention also provides a file transmission method based on the unidirectional gatekeeper, which is applied to a server side and comprises the following steps:
receiving a plurality of data packets sent by a client; dividing the data packet based on a preset dividing rule to obtain a first grouping result and a second grouping result; and generating a file corresponding to the data packet according to the first grouping result, and generating a receiving record according to the second grouping result.
According to the file transmission method based on the unidirectional gatekeeper provided by the invention, the method is applied to a server side, and the method further comprises the following steps:
taking the subfiles contained in each data packet and the file information corresponding to the subfiles as a first grouping result; and/or taking the total number of the subfiles contained in each data packet and the sequence number information corresponding to the subfiles as a second grouping result.
Judging that the file has missing data packets, and acquiring the sequence number information of the missing data packets according to the receiving record; and receiving the missing data packet sent by the client, and filling the missing data packet to a packet loss position corresponding to the sequence number information to obtain a new receiving file.
The invention also provides a file transmission system based on the unidirectional gatekeeper, which is applied to the client and comprises:
the disassembly unit is used for disassembling the file to be transmitted based on a preset disassembly rule so as to obtain a plurality of data packets which are ordered according to the transmission sequence, wherein the data packets at least comprise the subfiles and the sequence number information corresponding to the subfiles; and the sending unit is used for sending data packets to the server according to the transmission sequence, wherein the data packets carry sequence number information so that the server can judge the missing state of the data packets, and the missing state of the data packets comprises whether the data packets are missing and the sequence numbers of the missing data packets.
The invention also provides a file transmission system based on the unidirectional network gate, which is applied to a server side and comprises:
the receiving unit is used for receiving a plurality of data packets sent by the client; the grouping unit is used for dividing the data packet based on a preset dividing rule to obtain a first grouping result and a second grouping result; and the generating unit is used for generating a file corresponding to the data packet according to the first grouping result and generating a receiving record according to the second grouping result.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the file transmission method based on the unidirectional gatekeeper applied to the client.
The invention provides a file transmission method and a file transmission system based on a one-way gatekeeper, which are applied to a client, firstly, a file to be transmitted of the client is disassembled according to a preset disassembly rule so as to obtain a plurality of data packets which are sequenced according to a transmission sequence, the data packets at least comprise subfiles and sequence number information corresponding to the subfiles, and finally, the data packets are sent to a server according to the transmission sequence, the sequence number information carried in each data packet is used for the server to judge the missing state of the data packet, and the missing state of the data packet comprises whether the data packet is missing or not and the sequence number of the missing data packet; when the method of the invention utilizes the unidirectional gateway to transmit a large number of files, whether the transmitted files are lost or not can be effectively judged and the packet loss position can be determined, thus improving the reliability of the file transmission process.
When the file transmission method and the file transmission system based on the unidirectional gatekeeper are applied to a server, a plurality of data packets sent by a client are received, then the data packets are divided based on a preset division rule to obtain a first division result and a second division result, finally a file corresponding to the data packets is generated according to the first division result, and a receiving record is generated according to the second division result; the method can effectively judge whether the packet loss phenomenon exists or not and determine the packet loss position in the process of transmitting a huge number of files sent by the client to the server through the unidirectional network gate, thereby improving the reliability of the file transmission process.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a file transfer method based on a unidirectional gatekeeper according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a file to be transmitted being disassembled into a plurality of data packages according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a file transfer method based on a unidirectional gatekeeper according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a file transfer system based on a unidirectional gatekeeper according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a file transfer system based on a unidirectional gatekeeper according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following describes, with reference to fig. 1, a file transmission method based on a unidirectional gatekeeper provided in an embodiment of the present invention, which is applied to a client, and the method includes:
step 101, disassembling the file to be transmitted based on a preset disassembling rule to obtain a plurality of data packets ordered according to a transmission sequence, wherein the data packets at least comprise subfiles and sequence number information corresponding to the subfiles.
It can be understood that the process of transmitting the file to be transmitted from the client to the server by using the unidirectional gatekeeper is a blind process in essence, that is, the client is only responsible for transmitting the file, and the server is only responsible for receiving the file, and no instruction or protocol for controlling the transmission state of the file exists when the file to be transmitted is transmitted on the transmission path; a non-connection-oriented User Datagram Protocol (UDP) Protocol is adopted to transmit a file to be transmitted, which is sent from a client, to a server after passing through a unidirectional gatekeeper, so that the file transmission process based on the unidirectional gatekeeper can be realized, but when the number of the files to be transmitted is too large, the problem of transmission packet loss is more likely to occur; therefore, in this embodiment, a file to be transmitted is first split into a plurality of data packets with certain specifications, and then all the data packets are numbered in sequence according to the transmission sequence, where each data packet includes file information and packet information; for example, the size of the file a to be transmitted is 1024 bytes, the file a is disassembled into 3 data packets, and the size of each data packet is specified to be not less than 200 bytes, then the file a is disassembled to obtain a data packet a, a data packet b and a data packet c, the sizes of the three data packets are 200 bytes, 524 bytes and 300 bytes, and the corresponding transmission sequence numbers are 01, 02 and 03, then the data packet a includes: 200 bytes of data and sequence number 01, and data packet b includes: 524 bytes of data and sequence number 02, packet c includes: 300 bytes of data and sequence number 03.
And step 102, sending data packets to a server according to the transmission sequence, wherein the data packets carry sequence number information so that the server can judge the missing state of the data packets, and the missing state of the data packets comprises whether the data packets are missing and the sequence numbers of the missing data packets.
It can be understood that, in this embodiment, a data packet obtained by parsing a file is transmitted from a client to a server through a unidirectional gatekeeper by using a UDP protocol, and if a data packet loss occurs during a transmission process, a data packet received by the server is incomplete, but since each data packet is accompanied by a transmission sequence number sent from the client, the lost data packet can be determined according to a sequence number value at a discontinuous portion, for example, in the above embodiment, the sequence number of the data packet arriving at the client is only 01 and 03, it can be determined that a data packet b corresponding to a sequence number 02 is lost, and a user can perform corresponding supplementary measures according to the loss condition.
When a large number of files are transmitted by using the unidirectional gatekeeper, the method can effectively judge whether the transmitted files are lost and determine the packet loss position, so that the reliability of the file transmission process is improved.
Optionally, the byte length of the file to be transmitted is split into a plurality of parts according to a preset byte interval, so as to obtain a plurality of subfiles corresponding to each byte interval; the subfiles, the file information corresponding to the subfiles and the package information corresponding to the subfiles form the data package; the file information is the file name of the file, and the package information includes the total number of the subfiles and the sequence number information corresponding to the subfiles.
It can be understood that, in this embodiment, when a UDP protocol is used to send multiple files from a client to a server, the size of the file should not exceed 65535 bytes, then a length interval threshold for file transmission is set in this embodiment, the file to be transmitted is disassembled into multiple subfiles according to the interval threshold, the size of each subfile meets the interval threshold, and then the subfiles, the file names, the total numerical values of the subfiles, and the transmission sequence numbers corresponding to the subfiles form a data packet of the current subfile, where each subfile corresponds to one of the set data packets; for example, as shown in FIG. 2: the name of a file to be transmitted is 'test.txt', the length interval threshold of each file is 256 bytes, the transmission file is disassembled into 100 sub-files according to the interval threshold, the size of each sub-file does not exceed 256 bytes, the corresponding transmission serial numbers are 001, 002, 003, … and 100 respectively, and then in the 100 data disassembled from the 'test.txt' file, each data packet respectively comprises: after the file transmission is finished, whether the packet is lost or not can be judged according to the sequence number corresponding to the data packet received by the server, meanwhile, the packet loss position can be determined according to the missing sequence number, if the server receives 98 data packets with the file name of ' test ' txt ', 2 data packets are lost in the transmission process, and the specific position of the packet loss can be determined according to the missing sequence number.
The embodiment provides a method for disassembling a file to be transmitted into a plurality of data packets, wherein each data packet comprises required file information and packet information, and the method can be used for judging whether the file has a packet loss phenomenon in the transmission process and providing convenience for corresponding supplementary measures.
Optionally, in the process of sending data packets to the server according to the transmission sequence, a sending record of each data packet is generated.
It can be understood that, in this embodiment, the file information sent by the client is recorded, specifically, the following is recorded: when the phenomenon of packet loss of the data packet received by the server is found, a user can quickly locate the packet loss content according to the packet loss record and the sending record, so that the lost data packet is sent to the server again at the client to supplement the transmitted file.
The method of the embodiment can record the information of the file sent by the client each time, and can quickly determine the packet loss content according to the recorded information, so that the packet loss data can be conveniently and repeatedly sent to the server in the subsequent operation.
Optionally, if it is determined that the file has sensitive information, replacing the sensitive information with irrelevant information to form a new file to be transmitted.
It can be understood that the file to be transmitted sent by the client is text data, which contains various types of data, and if some sensitive information is mixed in the data, the security of data transmission is threatened; therefore, in this embodiment, before the client sends the text data, the text data is sensitively detected in the following specific detection manner: if the text data is judged to have the sensitive field, the content of the sensitive byte is replaced by the irrelevant information with the same byte size at the same position, and the irrelevant information can be ". times.. or other non-paraphrased content.
The embodiment provides a method for sensitively detecting text data before being sent by a client, which can reduce security threats of sensitive information contained in the text data to a text data transmission process so as to ensure data security.
The following describes, with reference to fig. 3, a file transmission method based on a unidirectional gatekeeper according to another embodiment of the present invention, which is applied to a server, and the method includes:
step 301, receiving a plurality of data packets sent by a client.
It can be understood that the server receives the data packet transmitted from the client and passing through the unidirectional gatekeeper, and then parses the corresponding file information from the data packet.
Step 302, dividing the data packet based on a preset dividing rule to obtain a first dividing result and a second dividing result.
It can be understood that each data packet includes a subfile, a file name, a total value of the subfile, and a transmission sequence number corresponding to each subfile, where only the subfile and the file name include content information of the corresponding file, and thus the present embodiment divides the components of each data packet into two types of grouping results according to the grouping requirements.
And 303, generating a file corresponding to the data packet according to the first division result, and generating a receiving record according to the second division result.
It can be understood that the target file to be acquired can be determined according to the subfiles and the file names included in each data packet, the specific byte content of the target file is formed by the subfiles of the data packets, and whether the data packets transmitted to the server side are missing or not can be determined according to the transmission sequence numbers corresponding to the subfiles and the total number of the subfiles, so as to obtain the packet loss record.
The method can effectively judge whether the packet loss phenomenon exists or not and determine the packet loss position in the process of transmitting a huge number of files sent by the client to the server through the unidirectional gatekeeper, and improves the reliability of the file transmission process.
Optionally, the subfiles included in each data packet and the file information corresponding to the subfiles are used as a first grouping result; and/or taking the total number of the subfiles contained in each data packet and the sequence number information corresponding to the subfiles as a second grouping result.
It can be understood that each data packet includes a subfile, a file name, a total value of the subfile, and a transmission sequence number corresponding to each subfile, respectively, where the first grouping result includes the subfile and the file name, and after the first grouping result is additionally written into the file, file content corresponding to the file name, that is, the file to be transmitted before being disassembled, can be obtained; and the second grouping result comprises the total numerical value of the subfiles and the transmission sequence number corresponding to each subfile, the packet loss condition of the currently acquired file can be analyzed according to the second grouping result, and the corresponding packet loss position is calculated.
The embodiment provides a method for acquiring an original file and judging whether the original file is complete based on two grouping results, and provides a judgment basis for a subsequent packet loss remediation process.
Optionally, determining that the missing data packet exists in the file, and acquiring sequence number information of the missing data packet according to the receiving record; and receiving the missing data packet sent by the client, and filling the missing data packet to a packet loss position corresponding to the sequence number information to obtain a new receiving file.
It can be understood that, in this embodiment, when it is determined that the obtained data packet has a packet loss, that is, the obtained file is incomplete, the missing subfile transmission sequence number may be obtained according to the reception record, and the missing data packet may be determined according to the sequence number, so that the user may obtain the missing data packet according to the missing transmission sequence number in combination with the transmission record of the client, and resend the missing data packet to the server, and when it is determined that the server receives the missing data packet, the missing data packet is supplemented into the corresponding file, so as to obtain complete file information.
The embodiment provides a method for retransmitting a missing data packet to supplement a file at a client according to a packet loss record when confirming that the file received by the client is missing, which effectively ensures that a server can receive complete information sent by the client.
A file transmission system based on a unidirectional gatekeeper according to an embodiment of the present invention is described with reference to fig. 4, and a file transmission system based on a unidirectional gatekeeper described below and the file transmission method based on a unidirectional gatekeeper applied to a client described above may be referred to correspondingly.
The invention provides a file transmission system based on a unidirectional gatekeeper, which is applied to a client, and comprises:
a disassembling unit 401, configured to disassemble a file to be transmitted based on a preset disassembling rule to obtain a plurality of data packets ordered according to a transmission sequence, where the data packets at least include a subfile and sequence number information corresponding to the subfile; a sending unit 402, configured to send a data packet to a server according to the transmission sequence, where the sequence number information carried in the data packet is used for the server to determine a missing state of the data packet, and the missing state of the data packet includes whether the data packet is missing and a sequence number of the missing data packet.
When the file transmission system based on the unidirectional gatekeeper provided by the embodiment is applied to a client, a disassembly unit 401 disassembles a file to be transmitted of the client according to a preset disassembly rule to obtain a plurality of data packets ordered according to a transmission sequence, the data packets at least comprise subfiles and sequence number information corresponding to the subfiles, and then a sending unit 402 sends the data packets to a server according to the transmission sequence, the sequence number information carried in each data packet is used for the server to judge the missing state of the data packet, and the missing state of the data packet comprises whether the data packet is missing or not and the sequence number of the missing data packet; when the system provided by the embodiment transmits a large number of files by using the unidirectional gatekeeper, whether the transmitted files are lost or not can be effectively judged, the packet loss position can be determined, and the reliability of the file transmission process is improved.
A file transmission system based on a unidirectional gatekeeper according to another embodiment of the present invention is described with reference to fig. 5, and a file transmission system based on a unidirectional gatekeeper described below and the file transmission method based on a unidirectional gatekeeper applied to a user side described above may be referred to correspondingly.
The invention provides a file transmission system based on a unidirectional network gate, which is applied to a server side and comprises:
a receiving unit 501, configured to receive multiple data packets sent by a client; a grouping unit 502, configured to divide the data packet based on a preset division rule to obtain a first grouping result and a second grouping result; a generating unit 503, configured to generate a file corresponding to the data packet according to the first grouping result, and generate a receiving record according to the second grouping result.
When the file transmission system based on the unidirectional gatekeeper provided by this embodiment is applied to a server, a plurality of data packets sent by a client are received by a receiving unit 501, then the data packets are divided by a grouping unit 502 based on a preset division rule to obtain a first division result and a second division result, finally a file corresponding to the data packet is generated by a generating unit 503 according to the first division result, and a receiving record is generated according to the second division result; the system provided by the embodiment can effectively judge whether a packet loss phenomenon exists and determine the packet loss position in the process of transmitting a huge number of files sent by the client to the server through the unidirectional network gate, thereby improving the reliability of the file transmission process.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor)610, a communication Interface (Communications Interface)620, a memory (memory)630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may call logic instructions in the memory 630 to execute a file transfer method based on the unidirectional gatekeeper, and when the method is applied to a client, the method includes: disassembling a file to be transmitted based on a preset disassembling rule to obtain a plurality of data packets sequenced according to a transmission sequence, wherein the data packets at least comprise subfiles and sequence number information corresponding to the subfiles; sending data packets to a server according to the transmission sequence, wherein the sequence number information carried in the data packets is used for the server to judge the missing state of the data packets, and the missing state of the data packets comprises whether the data packets are missing and the sequence numbers of the missing data packets; when the method is applied to a server, the method comprises the following steps: taking the subfiles contained in each data packet and the file information corresponding to the subfiles as a first grouping result; and/or taking the total number of the subfiles contained in each data packet and the sequence number information corresponding to the subfiles as a second grouping result.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A file transmission method based on a one-way gatekeeper is applied to a client, and is characterized by comprising the following steps:
disassembling a file to be transmitted based on a preset disassembling rule to obtain a plurality of data packets sequenced according to a transmission sequence, wherein the data packets at least comprise subfiles and sequence number information corresponding to the subfiles;
and sending data packets to a server according to the transmission sequence, wherein the data packets carry sequence number information so that the server can judge the missing state of the data packets, and the missing state of the data packets comprises whether the data packets are missing and the sequence numbers of the missing data packets.
2. The file transmission method based on the unidirectional gatekeeper of claim 1, wherein the file to be transmitted is disassembled based on a preset disassembly rule to obtain a plurality of data packets ordered according to a transmission sequence, specifically comprising:
splitting the byte length of the file to be transmitted into a plurality of parts according to a preset byte interval so as to obtain a plurality of subfiles corresponding to each byte interval;
the subfiles, the file information corresponding to the subfiles and the package information corresponding to the subfiles form the data package;
the file information is the file name of the file, and the package information includes the total number of the subfiles and the sequence number information corresponding to the subfiles.
3. The file transmission method based on the unidirectional gatekeeper of claim 1, wherein in the process of sending data packets to the server according to the transmission sequence, a sending record of each data packet is generated.
4. The file transmission method based on the unidirectional gatekeeper of claim 1, wherein the file to be transmitted is disassembled based on a preset disassembling rule, and before the disassembling, the method further comprises:
and if the sensitive information exists in the file, replacing the sensitive information with irrelevant information to form a new file to be transmitted.
5. A file transmission method based on a unidirectional network gate is applied to a server side, and is characterized by comprising the following steps:
receiving a plurality of data packets sent by a client;
dividing the data packet based on a preset grouping rule to obtain a first grouping result and a second grouping result;
and generating a file corresponding to the data packet according to the first grouping result, and generating a receiving record according to the second grouping result.
6. The file transmission method based on the unidirectional gatekeeper of claim 5, wherein the data packet is divided based on a preset grouping rule to obtain a first grouping result and a second grouping result, specifically comprising:
taking the subfiles contained in each data packet and the file information corresponding to the subfiles as a first grouping result; and/or the presence of a gas in the atmosphere,
and taking the total number of the subfiles contained in each data packet and the sequence number information corresponding to the subfiles as a second grouping result.
7. The file transmission method based on the unidirectional gatekeeper of claim 6, wherein a file corresponding to the data packet is generated according to the first grouping result, and a receiving record is generated according to the second grouping result, and thereafter:
judging that the file has missing data packets, and acquiring the sequence number information of the missing data packets according to the receiving record;
and receiving the missing data packet sent by the client, and filling the missing data packet to a packet loss position corresponding to the sequence number information to obtain a new receiving file.
8. A file transmission system based on a one-way gatekeeper is applied to a client, and is characterized by comprising:
the disassembly unit is used for disassembling the file to be transmitted based on a preset disassembly rule so as to obtain a plurality of data packets which are ordered according to the transmission sequence, wherein the data packets at least comprise the subfiles and the sequence number information corresponding to the subfiles;
and the sending unit is used for sending data packets to the server according to the transmission sequence, the sequence number information carried in the data packets is used for the server to judge the missing state of the data packets, and the missing state of the data packets comprises whether the data packets are missing and the sequence numbers of the missing data packets.
9. A file transmission system based on a unidirectional network gate is applied to a server side and is characterized in that the system comprises:
the receiving unit is used for receiving a plurality of data packets sent by the client;
the grouping unit is used for dividing the data packet based on a preset grouping rule to obtain a first grouping result and a second grouping result;
and the generating unit is used for generating a file corresponding to the data packet according to the first grouping result and generating a receiving record according to the second grouping result.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the file transfer method based on the unidirectional gatekeeper of any one of claims 1 to 7.
CN202210127473.2A 2022-02-11 2022-02-11 File transmission method and system based on unidirectional network gate Pending CN114172900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210127473.2A CN114172900A (en) 2022-02-11 2022-02-11 File transmission method and system based on unidirectional network gate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210127473.2A CN114172900A (en) 2022-02-11 2022-02-11 File transmission method and system based on unidirectional network gate

Publications (1)

Publication Number Publication Date
CN114172900A true CN114172900A (en) 2022-03-11

Family

ID=80489752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210127473.2A Pending CN114172900A (en) 2022-02-11 2022-02-11 File transmission method and system based on unidirectional network gate

Country Status (1)

Country Link
CN (1) CN114172900A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666150A (en) * 2022-04-07 2022-06-24 西安热工研究院有限公司 System and method for realizing unidirectional data transmission by using reverse gatekeeper
CN115134434A (en) * 2022-06-17 2022-09-30 奇安信科技集团股份有限公司 Session connection monitoring method and device
CN115514758A (en) * 2022-11-16 2022-12-23 无锡宏创盛安科技有限公司 File auditing method for unidirectional file transmission

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601575A (en) * 2015-01-16 2015-05-06 网神信息技术(北京)股份有限公司 One-way safety isolation net gap based data transmission method and system
CN106850188A (en) * 2017-01-24 2017-06-13 中国航天系统科学与工程研究院 A kind of data transmission system based on multichannel isomery one-way transmission path
CN110995697A (en) * 2019-11-29 2020-04-10 济南慧天云海信息技术有限公司 Big data transmission method and system
CN112788030A (en) * 2021-01-11 2021-05-11 北京鼎轩科技有限责任公司 Data exchange method and system between high-density network and low-density network
CN112804227A (en) * 2021-01-11 2021-05-14 北京鼎轩科技有限责任公司 Data one-way transmission device and method, electronic equipment and storage medium
CN113515766A (en) * 2021-07-30 2021-10-19 盛景智能科技(嘉兴)有限公司 File transmission method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601575A (en) * 2015-01-16 2015-05-06 网神信息技术(北京)股份有限公司 One-way safety isolation net gap based data transmission method and system
CN106850188A (en) * 2017-01-24 2017-06-13 中国航天系统科学与工程研究院 A kind of data transmission system based on multichannel isomery one-way transmission path
CN110995697A (en) * 2019-11-29 2020-04-10 济南慧天云海信息技术有限公司 Big data transmission method and system
CN112788030A (en) * 2021-01-11 2021-05-11 北京鼎轩科技有限责任公司 Data exchange method and system between high-density network and low-density network
CN112804227A (en) * 2021-01-11 2021-05-14 北京鼎轩科技有限责任公司 Data one-way transmission device and method, electronic equipment and storage medium
CN113515766A (en) * 2021-07-30 2021-10-19 盛景智能科技(嘉兴)有限公司 File transmission method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666150A (en) * 2022-04-07 2022-06-24 西安热工研究院有限公司 System and method for realizing unidirectional data transmission by using reverse gatekeeper
CN115134434A (en) * 2022-06-17 2022-09-30 奇安信科技集团股份有限公司 Session connection monitoring method and device
CN115514758A (en) * 2022-11-16 2022-12-23 无锡宏创盛安科技有限公司 File auditing method for unidirectional file transmission
CN115514758B (en) * 2022-11-16 2023-03-10 无锡宏创盛安科技有限公司 File auditing method for unidirectional file transmission

Similar Documents

Publication Publication Date Title
CN114172900A (en) File transmission method and system based on unidirectional network gate
US8166547B2 (en) Method, apparatus, signals, and medium for managing a transfer of data in a data network
CN105939297B (en) A kind of TCP message recombination method and device
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
CN106657269B (en) File transmission method
CN103795762A (en) Reverse agent test system and method
CN105871509A (en) Data transmission method and device
US10298508B2 (en) Communication system, receiving-side apparatus and transmission-side apparatus
CN104025550A (en) Obtaining information from data items
US20090055919A1 (en) Unauthorized communication detection method
CN111885004A (en) Application layer message transmission method and communication interface platform
CN112436998B (en) Data transmission method and electronic equipment
CN108460044B (en) Data processing method and device
CN114553730B (en) Application identification method and device, electronic equipment and storage medium
CN115801927A (en) Message parsing method and device
CN104348711A (en) Apparatus and method for receiving messages
US10992702B2 (en) Detecting malware on SPDY connections
EP3174246B1 (en) Method and device for sending bulk data acquisition request
CN106209666B (en) Link multiplexing method and system based on load balancer
WO2016184079A1 (en) Method and device for processing system log message
WO2015176450A1 (en) Service delivery method and system
WO2020103420A1 (en) Data transmission method and receiving method, devices and system
CN107172179B (en) Bilateral acceleration transmission method and system
CN114301960B (en) Processing method and device for cluster asymmetric traffic, electronic equipment and storage medium
CN114978437B (en) Data compensation system, method, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220311