[go: up one dir, main page]

CN110266775A - Document transmission method, device, computer equipment and storage medium - Google Patents

Document transmission method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110266775A
CN110266775A CN201910483005.7A CN201910483005A CN110266775A CN 110266775 A CN110266775 A CN 110266775A CN 201910483005 A CN201910483005 A CN 201910483005A CN 110266775 A CN110266775 A CN 110266775A
Authority
CN
China
Prior art keywords
file
transmitted
sending
parameter
queue
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
CN201910483005.7A
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.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering 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 NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN201910483005.7A priority Critical patent/CN110266775A/en
Publication of CN110266775A publication Critical patent/CN110266775A/en
Pending legal-status Critical Current

Links

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
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of document transmission method, device, computer equipment and storage mediums, comprising: obtains file to be transmitted, determines that the first parameter of the file to be transmitted, first parameter at least characterize the data volume of the file to be transmitted;Based on first parameter and the corresponding threshold condition of alternative file transmit queue, file destination transmit queue is determined, the file destination transmit queue is added in the file to be transmitted;According to operation strategy corresponding with the file destination transmit queue, the file to be transmitted is sent to the receiving end positioned at the second safety zone, wherein, second safety zone is different from first safety zone, and the transmission of the primary file to be transmitted is located in preset range to the data volume that the receiving end is sent.

Description

File transmission method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of power electronics, and in particular, to a file transfer method and apparatus, a computer device, and a storage medium.
Background
According to the requirements of the safety protection regulations of the secondary electric power system and the general safety protection scheme of the secondary electric power system in China, the automatic electric power system is divided into a production control area and a management information area, the production control area is divided into a control area (a first safety area) and a non-control area (a second safety area), and the management information area can be divided into a production management area (a third safety area) and a management information area (a fourth safety area) according to different safety requirements; a special transverse one-way safety isolation device for electric power, which is detected and authenticated by a national specified department, is required to be arranged between the production control area and the management information area; the reverse isolation device is used for unidirectional data transmission from the first safety area to the first safety area or the second safety area.
At present, a reverse isolation device generally adopts a file as a transmission carrier, a corresponding transmission rule is configured on the isolation device, and only legal data is allowed to realize unidirectional transmission in a non-network mode between two security areas through strict inspection; a series of problems are caused by adopting a conventional trans-reverse isolated file transmission mode, and on one hand, the transmission efficiency is low; on the other hand, the requirement of time efficiency cannot be met, and meanwhile, the risk of transmission failure is increased; file transmission tasks are finally accumulated, and files cannot be transmitted to a production control large area in time, so that related applications using the files are influenced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a file transmission method, an apparatus, a computer device, and a storage medium.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a file transmission method is applied to a sending end located in a first safety area, and comprises the following steps:
acquiring a file to be transmitted, and determining a first parameter of the file to be transmitted, wherein the first parameter at least represents the data volume of the file to be transmitted;
determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue;
and sending the file to be transmitted to a receiving end positioned in a second safety area according to an operation strategy corresponding to the target file sending queue, wherein the second safety area is different from the first safety area, and the data volume sent to the receiving end by the file to be transmitted at one time is positioned in a preset range.
In the above scheme, the target file sending queue comprises a slice sending queue; the determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue includes:
comparing the first parameter with a threshold condition corresponding to an alternative file sending queue, and determining that the first parameter meets a first threshold corresponding to the slice sending queue;
generating a plurality of slices to be transmitted with the data volume within the preset range based on the file to be transmitted;
and adding the plurality of slices to be transmitted into the slice sending queue.
In the foregoing solution, the sending the file to be transmitted to the receiving end located in the second security zone includes:
and sending the to-be-transmitted slice corresponding to the to-be-transmitted file to the receiving end positioned in a second safety zone.
In the above scheme, the method further comprises:
sending a first identification parameter of the file to be transmitted, wherein the first identification parameter comprises: the file identification to be transmitted, the information abstract of the file to be transmitted, the total number of the slices to be transmitted corresponding to the file to be transmitted and the serial number of the slices to be transmitted.
In the above scheme, the target file sending queue comprises a set sending queue; the determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue includes:
comparing the first parameter with a threshold condition corresponding to an alternative file sending queue, and determining that the first parameter meets a second threshold corresponding to the set sending queue;
generating a file set containing the file to be transmitted, wherein the data volume of the file to be transmitted is within the preset range;
and adding the file set into a set sending queue.
In the foregoing solution, the sending the file to be transmitted to the receiving end located in the second security zone includes:
and sending the file set to the receiving end positioned in the second safety area.
In the above scheme, the method further comprises:
sending a second identification parameter of the file set, wherein the second identification parameter comprises: the file to be transmitted comprises the file identification to be transmitted, the information abstract of the file set and the total number of the files to be transmitted which form the file set.
An embodiment of the present invention further provides a file transmission apparatus, which is applied to a sending end located in a first security area, and includes:
the acquisition module is used for acquiring a file to be transmitted and determining a first parameter of the file to be transmitted, wherein the first parameter at least represents the data volume of the file to be transmitted;
the determining module is used for determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue;
and the sending module is used for sending the file to be transmitted to a receiving end positioned in a second safety area according to an operation strategy corresponding to the target file sending queue, wherein the second safety area is different from the first safety area, and the data volume sent to the receiving end by the file to be transmitted at one time is positioned in a preset range.
An embodiment of the present invention further provides a computer device, including: a processor and a memory for storing a computer program capable of running on the processor;
when the processor is used for running the computer program, the file transmission method according to any embodiment of the invention is realized.
The embodiment of the present invention further provides a storage medium, in which a computer program is stored, where the computer program is executed by a processor to implement the file transmission method according to any embodiment of the present invention.
According to the file transmission method, the file transmission device, the computer equipment and the storage medium, the file to be transmitted is obtained, and the first parameter of the file to be transmitted is determined, wherein the first parameter at least represents the data volume of the file to be transmitted; determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue; thus, different files to be transmitted are added into the corresponding target file sending queue based on the size of the data volume; and sending the file to be transmitted to a receiving end positioned in a second safety area according to an operation strategy corresponding to the target file sending queue, wherein the second safety area is different from the first safety area, and the data volume sent to the receiving end by the file to be transmitted at one time is positioned in a preset range. Therefore, different target file sending queues are added to files to be transmitted with different data volume sizes, and the data volume of each file to be transmitted is ensured to be within a preset range based on the preset range of the set data volume, so that the files to be transmitted are ensured to be transmitted quickly, stably and reliably.
Drawings
Fig. 1 is a schematic flowchart of a file transmission method according to an embodiment of the present invention;
fig. 2 is a schematic view of a scenario of a file transmission method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a file transmission method according to another embodiment of the present invention;
fig. 4 is a schematic flowchart of a file receiving method according to an embodiment of the present invention;
fig. 5 is a functional structure diagram of a file transfer device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention is further described in detail with reference to the drawings and the specific embodiments of the specification. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Fig. 1 is a schematic flowchart of a file transmission method provided in an embodiment of the present invention, which is applied to a sending end located in a first secure area, and as shown in fig. 1, the method includes the following steps:
step 101: acquiring a file to be transmitted, and determining a first parameter of the file to be transmitted, wherein the first parameter at least represents the data volume of the file to be transmitted;
it is to be understood that the first safety zone may be a management information large zone in the power automation system, and specifically, may be a safety three zone; the second safety zone may be a production control zone in the electric power-driven system, and specifically, may be a safety first zone or a safety second zone, wherein a power-dedicated transverse unidirectional safety isolation device certified by detection of a country-specific department must be provided between the production control zone and the management information zone. The reverse safety isolation device is used for unidirectional data transmission from the safety three area to the safety first area or the safety second area.
The file to be transmitted may specifically be unstructured data such as web pages, images, audio, video and the like from an external data source. The first parameter may be a file size of a file to be transmitted, specifically, for example, the file to be transmitted is a picture, and the first parameter may represent a data amount of the picture, 1M.
Step 102: determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue;
here, the threshold condition corresponding to the candidate file sending queue refers to that each candidate file sending queue sets a corresponding data amount, and the candidate file sending queue corresponding to the first parameter is determined by comparing the data amount with the first parameter, for example, the candidate file sending queue includes an a sending queue and a B sending queue, the threshold condition of the a sending queue is 0-5M, the threshold condition of the B sending queue is greater than 5M, and if the data amount corresponding to the first parameter is 0.5M, the target file sending queue is determined to be the a sending queue, and the file to be transmitted is added to the a sending queue. Thus, large files are added to the B send queue and small files are added to the A send queue.
Step 103: and sending the file to be transmitted to a receiving end positioned in a second safety area according to an operation strategy corresponding to the target file sending queue, wherein the second safety area is different from the first safety area, and the data volume sent to the receiving end by the file to be transmitted at one time is positioned in a preset range.
It can be understood that different target file sending queues correspond to different operation strategies, and the operation strategies may be parallel transmission of the files to be transmitted or whole transmission of the files to be transmitted to the receiving end of the second security area.
The fact that the data volume sent to the receiving end by sending the file to be transmitted at one time is within a preset range means that the data volume sent by the file to be transmitted at one time is within a preset range, for example, the preset range is 10M, and the data volume of the file to be transmitted sent to the receiving end at one time is less than or equal to 10M.
According to the embodiment of the application, a first parameter of a file to be transmitted is determined by acquiring the file to be transmitted, and the first parameter at least represents the data volume of the file to be transmitted; determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue; thus, different files to be transmitted are added into the corresponding target file sending queue based on the size of the data volume; and sending the file to be transmitted to a receiving end positioned in a second safety area according to an operation strategy corresponding to the target file sending queue, wherein the second safety area is different from the first safety area, and the data volume sent to the receiving end by the file to be transmitted at one time is positioned in a preset range. Therefore, different target file sending queues are added to files to be transmitted with different data volume sizes, and the data volume of each file to be transmitted is ensured to be within a preset range based on the preset range of the set data volume, so that the files to be transmitted are ensured to be transmitted quickly, stably and reliably.
In one embodiment, the target file send queue comprises a slice send queue; the determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue includes:
comparing the first parameter with a threshold condition corresponding to an alternative file sending queue, and determining that the first parameter meets a first threshold corresponding to the slice sending queue;
generating a plurality of slices to be transmitted with the data volume within the preset range based on the file to be transmitted;
and adding the plurality of slices to be transmitted into the slice sending queue.
And determining that the first parameter meets a first threshold corresponding to the slice sending queue by comparing the first parameter with a threshold condition corresponding to the alternative file sending queue, namely determining that the target file sending queue is the slice sending queue and adding the file to be transmitted into the slice sending queue if the threshold condition of the slice sending queue is greater than 5M and the data volume corresponding to the first parameter is 10M.
Generating the to-be-transmitted slice with the data volume within the preset range based on the to-be-transmitted file means that the to-be-transmitted file is sliced into a plurality of to-be-transmitted slices meeting the preset range, for example, if the preset range is 10M and the to-be-transmitted file is 30M, 10 3M to-be-transmitted slices are generated, and the to-be-transmitted slices are added into a slice sending queue.
It should be noted that, in addition to slicing the file to be transmitted, the file to be transmitted may also be compressed, the file is cut into a plurality of slices to be transmitted according to the size of the compressed file, and then each slice to be transmitted is encoded to form a plurality of slices to be transmitted that meet the reverse transmission specification.
In the embodiment, the first parameter is compared with the threshold corresponding to the alternative file sending queue, the first threshold meeting the slice sending queue is determined, the file to be transmitted is generated into a plurality of slices to be transmitted meeting the preset range, and the slices to be transmitted are added into the slice sending queue.
In an embodiment, the sending the file to be transmitted to a receiving end located in a second secure area includes:
and sending the to-be-transmitted slice corresponding to the to-be-transmitted file to the receiving end positioned in a second safety zone.
It can be understood that the slice to be transmitted corresponding to the file to be transmitted includes at least two slices to be transmitted, and specifically, the number of slices to be transmitted depends on the first threshold set by the slice transmission queue and the size of each slice to be transmitted. In the process of transmitting a file from a safety three area to a safety one area or a safety two area in a cross safety area, the step of sending slices to be transmitted to a receiving end positioned in a second safety area means that a plurality of slices to be transmitted are averagely grouped according to the number of reverse transmission links, are put into reverse isolation transmission catalogues corresponding to all the reverse links, and are transmitted to the receiving end through a reverse isolation device in parallel by sending the catalogues through the reverse isolation. Thus, parallel transmission of the slices to be transmitted is realized.
In an embodiment, the method further comprises:
sending a first identification parameter of the file to be transmitted, wherein the first identification parameter comprises: the file identification to be transmitted, the information abstract of the file to be transmitted, the total number of the slices to be transmitted corresponding to the file to be transmitted and the serial number of the slices to be transmitted.
Here, the sent file to be transmitted carries the first identification parameter, the file to be transmitted identifies an original file name of the file to be transmitted, and the information digest of the file to be transmitted may be an information digest of the file to be transmitted generated by an MD5Message digest algorithm (MD5 Message-DigestAlgorithm). The MD5message digest algorithm is a widely used cryptographic hash function that generates a 128-bit (16-byte) hash value to ensure the integrity of the message transmission.
In this way, the uniqueness of the file name is ensured through the file identifier (original file name) to be transmitted and the information abstract (original file MD5) of the file to be transmitted, and meanwhile, whether the file merged by the receiving end is complete is verified through MD5, and the total number of the slices to be transmitted corresponding to the file to be transmitted and the serial number of the slices to be transmitted are used for determining the total number of the slices to be transmitted and the merging sequence of the slices to be transmitted when the slices to be transmitted are merged.
In one embodiment, the target file send queue comprises a set send queue; the determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue includes:
comparing the first parameter with a threshold condition corresponding to an alternative file sending queue, and determining that the first parameter meets a second threshold corresponding to the set sending queue;
generating a file set containing the file to be transmitted, wherein the data volume of the file to be transmitted is within the preset range;
and adding the file set into a set sending queue.
And determining that the first parameter meets a second threshold corresponding to the set sending queue by comparing the first parameter with a threshold condition corresponding to the alternative file sending queue, namely determining that the target file sending queue is the set sending queue and adding the file to be transmitted into the set sending queue if the threshold condition of the set sending queue is less than 10M and the data volume corresponding to the first parameter is 0.5M.
Generating a file set containing transmission files with data volume within the preset range based on the files to be transmitted refers to generating a plurality of file sets to be transmitted into a file set of the files to be transmitted, wherein the data volume of the file set meets the preset range.
Here, the set sending queue may set a timeout time, where only one file to be transmitted exists within the timeout time, the file to be transmitted is sent as a file set, and if there are multiple files to be transmitted within the timeout time, a file set including the multiple files to be transmitted is generated, where the data size of the file set is within the preset range. For example, if the preset range is 3M and the file to be transmitted is 0.3M, a file set composed of 10 files to be transmitted of 0.3M is generated, and the file set is added to the set sending queue.
It should be noted that, in addition to aggregating the files to be transmitted, the files to be transmitted may also be compressed, the multiple compressed files are generated into an aggregate file according to a preset range according to the size of the compressed files, and then the aggregate file is encoded to form an aggregate file conforming to the reverse transmission specification.
In the embodiment, the second threshold value meeting the set sending queue is determined by comparing the first parameter with the threshold value corresponding to the alternative file sending queue, the file set containing the file to be transmitted and having the data volume within the preset range is generated based on the file to be transmitted, and the set is added into the set sending queue, so that the small file slices to be transmitted are combined and transmitted, the frequent transmission of the small files is avoided, and the transmission efficiency is greatly improved.
In an embodiment, the sending the file to be transmitted to a receiving end located in a second secure area includes:
and sending the file set to the receiving end positioned in the second safety area.
It can be understood that the aggregate file is composed of a plurality of files to be transmitted, in the process of transmitting the files from the security three area to the security one area or the security two area across the security area, the transmission of the aggregate to the receiving end positioned in the second security area means that an aggregate file conforming to the reverse transmission specification is generated by combining a plurality of files to be transmitted, and the aggregate file is randomly placed into a reverse isolation transmission directory corresponding to a reverse link for transmission, so that the combined aggregate transmission of the aggregate file combined by the plurality of files to be transmitted is realized, and the transmission efficiency is greatly improved.
In an embodiment, the method further comprises:
sending a second identification parameter of the file set, wherein the second identification parameter comprises: the file to be transmitted comprises the file identification to be transmitted, the information abstract of the file set and the total number of the files to be transmitted which form the file set.
Here, the sent file set carries the second identification parameter, the identification of the file to be transmitted may include an original file name of the file to be transmitted, and the information digest of the file to be transmitted may be an information digest of the file to be transmitted generated by an MD5Message digest algorithm (MD5 Message-DigestAlgorithm). The MD5message digest algorithm is a widely used cryptographic hash function that generates a 128-bit (16-byte) hash value to ensure the integrity of the message transmission. Here, the size of the file to be transmitted may also be included for further verifying each file to be transmitted.
Here, the uniqueness of the file name is ensured by the aggregate file MD5, and meanwhile, whether the aggregate file received by the receiving end is complete is verified by the MD5, and further, when a plurality of files to be transmitted are merged into an aggregate file, the information of each file to be transmitted is stored in order at the header of the aggregate file, which includes: the file identification to be transmitted and the information abstract of the file to be transmitted are used for separating and restoring each file to be transmitted from the aggregate file.
The technical solutions of the embodiments of the present invention are further described below by specific examples.
Fig. 2 is a schematic flow chart of a file transfer system according to an embodiment of the present invention, as shown in fig. 2, where the file transfer system includes: the transmitting end applied to the first safety area is a safety three area, and the receiving end applied to the second safety area is a safety one area; specifically, the sending end located in the safety three areas is sent to the receiving end located in the safety one area for further processing.
With reference to fig. 3, the specific operation flow of the file transmission method is as follows:
step S1: scanning a file distribution service program;
here, the file distribution service program is located in the receiving end and used for receiving a file sending request and acquiring a file to be transmitted;
step S2: acquiring a file to be transmitted;
step S3: comparing the file size with a threshold;
if the file size meets the first threshold of the slice sending queue, the file is a large file, and the step is switched to step S4; if the file size meets the second threshold of the set sending queue, the file is a small file, and the step is turned to step S9;
step S4: putting the slices into a slice sending queue;
step S5: taking out a file to be transmitted from the queue;
step S6: compressing, slicing and encoding;
step S7: forming a group of slices to be transmitted;
here, after compressing, slicing and encoding are performed to form a plurality of slices to be transmitted that meet the reverse transmission specification, average packets are put into the sending-end directories of each reverse transmission link, and large files are sent in parallel, that is, step S8 is performed.
Step S8: putting the packets into a reverse isolation sending directory;
here, after the packet is placed in the reverse isolation transmission directory, step S14 is executed.
Step S9: putting the data into a set sending queue;
step S10: taking out a group of files to be transmitted from the set within the overtime time;
setting a smaller timeout time to ensure that a certain number of files (small files) to be transmitted exist in the set sending queue, wherein the timeout time is not too long, otherwise, the existing transmission task in the set sending queue is delayed;
step S11: compressing, combining and encoding;
step S12: forming a collection file;
step S13: randomly putting a reverse isolation sending directory;
step S14: the reverse isolation device transmits to the secure first zone directory.
In this way, the file to be transmitted is sent to the receiving end located in the second security zone, specifically, referring to fig. 4, after the receiving end receives the file to be transmitted, the specific operation flow of the file receiving method is as follows:
step S101: scanning a file distribution service program;
here, the file distribution service program is located in a receiving end of the first secure area and is used for scanning a file to be transmitted, which is sent by the sending end;
step S102: taking out the file to be transmitted from the reverse isolation receiving directory;
step S103: judging the file type according to the file identifier to be transmitted;
here, the file type may be determined according to the identifier of the file to be transmitted, or may be determined by naming the transmission file, for example, placing the "slice" extension file of the sliced file to be transmitted into the slice file receiving queue, and placing the "set" extension file into the aggregate file receiving queue; if the extension file is a 'slice' extension file, executing the step S104, and if the extension file is a 'set' extension file, executing the step S109;
step S104: putting the slices into a slice receiving queue;
step S105: waiting for all slices of the file to be transmitted to enter a queue;
step S106: decoding, merging and decompressing;
here, compression, slicing, encoding of the file in the secure area corresponds.
Step S107: restoring the file to be originally transmitted;
step S108: checking by MD 5;
here, after the MD5 is verified, step S114 is executed.
Step S109: putting the received data into a set receiving queue;
step S110: taking out a collection file;
step S111: decoding, splitting and decompressing;
here, the compression, combination, and encoding of the file in the secure area correspond.
Step S112: restoring the file to be originally transmitted;
step S113: performing MD5 verification on each file;
step S114: and sending the data to a corresponding receiving program.
After all slices to be transmitted of a large file enter a slice receiving queue, the slice file receiving service program in the secure first region decodes, combines and decompresses the slices to be transmitted to restore the original file to be transmitted, verifies the file MD5, and sends the file to be transmitted to a corresponding receiving program after the verification is passed
And the safe first-region aggregate file receiving service program reads a single file to be transmitted in the aggregate receiving queue, decodes the single file to be transmitted, splits the decoded file into a plurality of files according to second identification information corresponding to the aggregate file recorded at the head of the file, decompresses the files to form original small files to be transmitted, verifies each file to be transmitted MD5, and transmits each file to a corresponding receiving program after the verification is passed.
In the embodiment of the invention, a reverse file sending end and a reverse file receiving end are added on the basis of the existing reverse trans-regional transmission mode, and a strategy of 'small file compression, merging and transmission and large file compression, slicing and concurrent transmission' is adopted according to the size of a file to be transmitted, so that on one hand, small files are merged and transmitted, and the working efficiency of a reverse isolation device is improved; on the other hand, the large file slices are transmitted concurrently, the transmission speed of the large file is accelerated to be isolated in a reverse direction, and the transmission reliability of the large file is improved.
As shown in fig. 5, an embodiment of the present invention further provides a file transfer apparatus, where the apparatus includes: an acquisition module 51, a determination module 52 and a transmission module 53; wherein,
the obtaining module 51 is configured to obtain a file to be transmitted, and determine a first parameter of the file to be transmitted, where the first parameter at least represents a data amount of the file to be transmitted;
the determining module 52 is configured to determine a target file sending queue based on the first parameter and a threshold condition corresponding to the candidate file sending queue, and add the file to be transmitted to the target file sending queue;
the sending module 53 is configured to send the file to be transmitted to a receiving end located in a second security zone according to an operation policy corresponding to the target file sending queue, where the second security zone is different from the first security zone, and a data amount sent to the receiving end by sending the file to be transmitted at one time is within a preset range.
Optionally, the determining module 52 is further configured to compare the first parameter with a threshold condition corresponding to an alternative file sending queue, and determine that the first parameter meets a first threshold corresponding to the slice sending queue; generating a plurality of slices to be transmitted with the data volume within the preset range based on the file to be transmitted; and adding the plurality of slices to be transmitted into the slice sending queue.
Optionally, the sending module 53 is further configured to send the slice to be transmitted corresponding to the file to be transmitted to the receiving end in the second security zone.
Optionally, the sending module 53 is further configured to send a first identifier parameter of the file to be transmitted, where the first identifier parameter includes: the file identification to be transmitted, the information abstract of the file to be transmitted, the total number of the slices to be transmitted corresponding to the file to be transmitted and the serial number of the slices to be transmitted.
Optionally, the determining module 52 is further configured to compare the first parameter with a threshold condition corresponding to an alternative file sending queue, and determine that the first parameter meets a second threshold corresponding to the set sending queue; generating a file set containing the file to be transmitted, wherein the data volume of the file to be transmitted is within the preset range; and adding the file set into a set sending queue.
Optionally, the sending module 53 is further configured to send the file set to the receiving end located in the second security zone.
Optionally, the sending module 53 is further configured to send a second identification parameter of the file set, where the second identification parameter includes: the file to be transmitted comprises the file identification to be transmitted, the information abstract of the file set and the total number of the files to be transmitted which form the file set.
Here, it should be noted that: the above description of the information processing apparatus item is similar to the above description of the information processing method item, and the description of the advantageous effects of the same method is not repeated. For technical details that are not disclosed in the embodiments of the information processing apparatus of the present invention, refer to the description of the embodiments of the information processing method of the present invention.
As shown in fig. 6, an embodiment of the present invention further discloses a computer device, where the computer device includes: a processor 61 and a memory 62 for storing a computer program capable of running on the processor 61, wherein the processor 61 is adapted to implement the information processing method applied to the computer device when running the computer program.
In some embodiments, memory in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration, and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), double data Rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
And the processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
In some embodiments, the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Yet another embodiment of the present invention provides a computer storage medium storing an executable program that, when executed by a processor, can implement the steps of an information processing method applied to the vehicle. For example, as one or more of the methods shown in fig. 1-4.
In some embodiments, the computer storage medium may include: 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.
It should be noted that:
the methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A file transmission method is applied to a sending end located in a first safety zone, and is characterized by comprising the following steps:
acquiring a file to be transmitted, and determining a first parameter of the file to be transmitted, wherein the first parameter at least represents the data volume of the file to be transmitted;
determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue;
and sending the file to be transmitted to a receiving end positioned in a second safety area according to an operation strategy corresponding to the target file sending queue, wherein the second safety area is different from the first safety area, and the data volume sent to the receiving end by the file to be transmitted at one time is positioned in a preset range.
2. The file transfer method according to claim 1, wherein the target file send queue comprises a slice send queue; the determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue includes:
comparing the first parameter with a threshold condition corresponding to an alternative file sending queue, and determining that the first parameter meets a first threshold corresponding to the slice sending queue;
generating a plurality of slices to be transmitted with the data volume within the preset range based on the file to be transmitted;
and adding the plurality of slices to be transmitted into the slice sending queue.
3. The file transmission method according to claim 2, wherein the sending the file to be transmitted to a receiving end located in a second secure area comprises:
and sending the to-be-transmitted slice corresponding to the to-be-transmitted file to the receiving end positioned in a second safety zone.
4. The file transfer method according to claim 2, wherein the method further comprises:
sending a first identification parameter of the file to be transmitted, wherein the first identification parameter comprises: the file identification to be transmitted, the information abstract of the file to be transmitted, the total number of the slices to be transmitted corresponding to the file to be transmitted and the serial number of the slices to be transmitted.
5. The file transfer method of claim 1, wherein the target file send queue comprises a set send queue; the determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue includes:
comparing the first parameter with a threshold condition corresponding to an alternative file sending queue, and determining that the first parameter meets a second threshold corresponding to the set sending queue;
generating a file set containing the file to be transmitted, wherein the data volume of the file to be transmitted is within the preset range;
and adding the file set into a set sending queue.
6. The method according to claim 5, wherein the sending the file to be transmitted to a receiving end located in a second secure area comprises:
and sending the file set to the receiving end positioned in the second safety area.
7. The file transfer method according to claim 5, wherein the method further comprises:
sending a second identification parameter of the file set, wherein the second identification parameter comprises: the file to be transmitted comprises the file identification to be transmitted, the information abstract of the file set and the total number of the files to be transmitted which form the file set.
8. A file transmission device is applied to a sending end located in a first safety area, and is characterized by comprising:
the acquisition module is used for acquiring a file to be transmitted and determining a first parameter of the file to be transmitted, wherein the first parameter at least represents the data volume of the file to be transmitted;
the determining module is used for determining a target file sending queue based on the first parameter and a threshold condition corresponding to the alternative file sending queue, and adding the file to be transmitted into the target file sending queue;
and the sending module is used for sending the file to be transmitted to a receiving end positioned in a second safety area according to an operation strategy corresponding to the target file sending queue, wherein the second safety area is different from the first safety area, and the data volume sent to the receiving end by the file to be transmitted at one time is positioned in a preset range.
9. A computer device, comprising: a processor and a memory for storing a computer program capable of running on the processor;
wherein the processor is configured to implement the file transfer method according to any one of claims 1 to 7 when the computer program is executed.
10. A storage medium in which a computer program is stored, wherein the computer program, when executed by a processor, implements the file transfer method of any one of claims 1 to 7.
CN201910483005.7A 2019-06-04 2019-06-04 Document transmission method, device, computer equipment and storage medium Pending CN110266775A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910483005.7A CN110266775A (en) 2019-06-04 2019-06-04 Document transmission method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910483005.7A CN110266775A (en) 2019-06-04 2019-06-04 Document transmission method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110266775A true CN110266775A (en) 2019-09-20

Family

ID=67916708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910483005.7A Pending CN110266775A (en) 2019-06-04 2019-06-04 Document transmission method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110266775A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677497A (en) * 2019-10-23 2020-01-10 中国工商银行股份有限公司 Network medium distribution method and device
CN110971590A (en) * 2019-11-07 2020-04-07 珠海许继芝电网自动化有限公司 A method and device for efficient data transmission across reverse security isolation devices
CN114374701A (en) * 2021-12-06 2022-04-19 福建亿榕信息技术有限公司 A multi-level linkage artificial intelligence platform sample model transparent sharing device
CN114900515A (en) * 2022-03-25 2022-08-12 中国铁道科学研究院集团有限公司电子计算技术研究所 A train file return method, train host, station and control center
CN115150348A (en) * 2021-03-30 2022-10-04 奇安信科技集团股份有限公司 Method and system for restoring email attachments
CN116095147A (en) * 2023-02-08 2023-05-09 中银金融科技有限公司 A data transmission method and device, electronic equipment, and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090106260A1 (en) * 2007-10-22 2009-04-23 Hewlett-Packard Development Company, L.P. Method and System for Transferring Files
CN102231658A (en) * 2011-06-09 2011-11-02 山东电力集团公司 Safe communication method of internetwork isolation apparatus
CN104243495A (en) * 2014-10-11 2014-12-24 中国南方电网有限责任公司 Reverse isolating device cross method and system for JMS (java message service)
CN104601550A (en) * 2014-12-24 2015-05-06 国家电网公司 System and method for transmitting reversely quarantined file based on cluster array
CN106603686A (en) * 2016-12-23 2017-04-26 郑州云海信息技术有限公司 File transmission method based on distributed storage system
CN108881454A (en) * 2018-06-28 2018-11-23 北京珠穆朗玛移动通信有限公司 Document transmission method, mobile terminal and storage medium
CN108965112A (en) * 2018-08-09 2018-12-07 江苏神州信源系统工程有限公司 The method and device of file transmission is carried out using instant message applications
CN109446173A (en) * 2018-09-18 2019-03-08 平安科技(深圳)有限公司 Daily record data processing method, device, computer equipment and storage medium
CN109495434A (en) * 2017-09-13 2019-03-19 北京国双科技有限公司 A kind of document transmission method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090106260A1 (en) * 2007-10-22 2009-04-23 Hewlett-Packard Development Company, L.P. Method and System for Transferring Files
CN102231658A (en) * 2011-06-09 2011-11-02 山东电力集团公司 Safe communication method of internetwork isolation apparatus
CN104243495A (en) * 2014-10-11 2014-12-24 中国南方电网有限责任公司 Reverse isolating device cross method and system for JMS (java message service)
CN104601550A (en) * 2014-12-24 2015-05-06 国家电网公司 System and method for transmitting reversely quarantined file based on cluster array
CN106603686A (en) * 2016-12-23 2017-04-26 郑州云海信息技术有限公司 File transmission method based on distributed storage system
CN109495434A (en) * 2017-09-13 2019-03-19 北京国双科技有限公司 A kind of document transmission method and device
CN108881454A (en) * 2018-06-28 2018-11-23 北京珠穆朗玛移动通信有限公司 Document transmission method, mobile terminal and storage medium
CN108965112A (en) * 2018-08-09 2018-12-07 江苏神州信源系统工程有限公司 The method and device of file transmission is carried out using instant message applications
CN109446173A (en) * 2018-09-18 2019-03-08 平安科技(深圳)有限公司 Daily record data processing method, device, computer equipment and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677497A (en) * 2019-10-23 2020-01-10 中国工商银行股份有限公司 Network medium distribution method and device
CN110971590A (en) * 2019-11-07 2020-04-07 珠海许继芝电网自动化有限公司 A method and device for efficient data transmission across reverse security isolation devices
CN115150348A (en) * 2021-03-30 2022-10-04 奇安信科技集团股份有限公司 Method and system for restoring email attachments
CN115150348B (en) * 2021-03-30 2024-05-03 奇安信科技集团股份有限公司 Mail attachment restoring method and system
CN114374701A (en) * 2021-12-06 2022-04-19 福建亿榕信息技术有限公司 A multi-level linkage artificial intelligence platform sample model transparent sharing device
CN114374701B (en) * 2021-12-06 2024-05-14 福建亿榕信息技术有限公司 Transparent sharing device for sample model of multistage linkage artificial intelligent platform
CN114900515A (en) * 2022-03-25 2022-08-12 中国铁道科学研究院集团有限公司电子计算技术研究所 A train file return method, train host, station and control center
CN114900515B (en) * 2022-03-25 2024-04-02 中国铁道科学研究院集团有限公司电子计算技术研究所 A train file return method, train host, site and control center
CN116095147A (en) * 2023-02-08 2023-05-09 中银金融科技有限公司 A data transmission method and device, electronic equipment, and storage medium
CN116095147B (en) * 2023-02-08 2024-11-05 中银金融科技有限公司 Data transmission method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110266775A (en) Document transmission method, device, computer equipment and storage medium
EP2958298B1 (en) File uploading method in cloud storage, client, application server, and cloud storage system
US10505907B2 (en) Securely recognizing mobile devices
WO2016116999A1 (en) Packet transmission device, packet-receiving device, packet transmission program, and packet-receiving program
CN112615899A (en) Large file transmission method, device and system
SG190757A1 (en) Method and system of evidence preservation for digital documents
EP4090015B1 (en) A device and a method for signing a video segment comprising one or more groups of pictures
CN103259797B (en) data file transmission method and platform
CN104618498A (en) Data resource synchronizing method and server
CN105939201A (en) Method and device for checking state of server
CN107517239A (en) Data transmission method and device
CN111224782B (en) Data verification method based on digital signature, intelligent device and storage medium
CN111064813B (en) Method and device for synchronizing processing messages during block chain consensus processing
CN114830572A (en) Data transmission method, device, equipment, system and storage medium
CN114567506A (en) File uploading method and device, computer equipment and storage medium
CN104980449A (en) Network request security certification method and system
CN115396423A (en) File transmission method and device, electronic equipment and storage medium
CN106790653B (en) File transmission processing method and device
CN109560893B (en) Data verification method and device and server
US20140297753A1 (en) Method for transferring network event protocol messages
CN114070801A (en) Message processing method, message transmission method, device and electronic equipment
CN114499879A (en) Method, system, equipment and storage medium for transmitting trusted message of internet of things based on block chain technology
CN115174561B (en) File segmented transmission method and system
CN110443071B (en) Block chain big data processing method and system
CN117459524A (en) Large file encryption transmission method, device, equipment and readable 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

Application publication date: 20190920

RJ01 Rejection of invention patent application after publication