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
transmit queue
parameter
sent
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

Document transmission method, device, computer equipment and storage medium
Technical field
The present invention relates to field of power electronics more particularly to a kind of document transmission method, device, computer equipment and storages Medium.
Background technique
According to " electric power secondary system security protection regulation " and " national electric power secondary system security protection overall plan " It is required that power automatic system is divided into production control zone and management information area, control zone (safety one is divided into production control Area) and noncontrolled area (2nd area of safety), management information area inside can be divided into production management area (safety according to different safety requirements 3rd area) and management information area (4th area of safety);It must be provided between production control zone and management information area through national specifying part The dedicated lateral one-way safety isolating device of the electric power of door detection certification;Wherein, reverse isolation device is used for 3rd area of safety to safety The transmitting of the one-way data in one area or 2nd area.
Currently, reverse isolation device generally uses file as transport vehicle, corresponding transmission is configured in isolating device Rule only allows legal data to realize the unidirectional delivery of non-network mode between two safety zones by close inspection;It adopts A series of problems is produced with conventional across reverse isolation file, on the one hand, causes efficiency of transmission low;Another party Face is not achieved timeliness requirement, while also increasing the risk of transmission failure;Finally can all file transmission task be caused to be accumulated, text Part can not be transferred to production control great Qu in time, to influence the related application using this document.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of document transmission method, device, computer equipment and storage medium.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
A kind of document transmission method, applied to the transmitting terminal for being located at the first safety zone, which comprises
File to be transmitted is obtained, determines the first parameter of the file to be transmitted, described in first parameter at least characterizes The data volume of file to be transmitted;
Based on first parameter and the corresponding threshold condition of alternative file transmit queue, determine that file destination sends team The file destination transmit queue is added in the file to be transmitted by column;
According to operation strategy corresponding with the file destination transmit queue, the file to be transmitted is sent to positioned at The receiving end of two safety zones, wherein second safety zone is different from first safety zone, the primary file to be transmitted It sends and is located in preset range to the data volume that the receiving end is sent.
In above scheme, the file destination transmit queue includes slice transmit queue;It is described to be based on first parameter Threshold condition corresponding with alternative file transmit queue, determines file destination transmit queue, and institute is added in the file to be transmitted State file destination transmit queue, comprising:
Compare first parameter and the corresponding threshold condition of alternative file transmit queue, determines that first parameter meets The corresponding first threshold of the slice transmit queue;
It is located at multiple slices to be transmitted in the preset range based on the file generated data volume to be transmitted;
The slice transmit queue is added in the multiple slice to be transmitted.
It is described that the file to be transmitted is sent to the receiving end positioned at the second safety zone in above scheme, comprising:
The slice to be transmitted corresponding with the file to be transmitted is sent to the reception positioned at the second safety zone End.
In above scheme, the method also includes:
Send the first identifier parameter of the file to be transmitted, wherein the first identifier parameter includes: described to be transmitted File identification, the informative abstract of the file to be transmitted, slice to be transmitted corresponding to the file to be transmitted sum and The number of the slice to be transmitted.
In above scheme, the file destination transmit queue includes set transmit queue;It is described to be based on first parameter Threshold condition corresponding with alternative file transmit queue, determines file destination transmit queue, and institute is added in the file to be transmitted State file destination transmit queue, comprising:
Compare first parameter and the corresponding threshold condition of alternative file transmit queue, determines that first parameter meets The corresponding second threshold of the set transmit queue;
Being located in the preset range based on the file generated data volume to be transmitted includes the file to be transmitted File set;
The file set is added to set transmit queue.
It is described that the file to be transmitted is sent to the receiving end positioned at the second safety zone in above scheme, comprising:
The file set is sent to the receiving end positioned at second safety zone.
In above scheme, the method also includes:
The second identifier parameter of the file set is sent, the second identifier parameter includes: the files-designated to be transmitted File set described in knowledge, the informative abstract of the file to be transmitted, the informative abstract of the file set and composition it is to be passed The sum of defeated file.
The embodiment of the present invention also provides a kind of file transfer means, applied to the transmitting terminal for being located at the first safety zone, comprising:
It obtains module and determines the first parameter of the file to be transmitted, first parameter for obtaining file to be transmitted At least characterize the data volume of the file to be transmitted;
Determining module determines mesh for being based on first parameter and the corresponding threshold condition of alternative file transmit queue File transmit queue is marked, the file destination transmit queue is added in the file to be transmitted;
Sending module, for basis operation strategy corresponding with the file destination transmit queue, by the text to be transmitted Part is sent to the receiving end positioned at the second safety zone, wherein second safety zone is different from first safety zone, primary institute The transmission for stating file to be transmitted is located in preset range to the data volume that the receiving end is sent.
The embodiment of the present invention also provides a kind of computer equipment characterized by comprising processor and for store can The memory of the computer program run on a processor;
Wherein, the processor is for realizing text described in any embodiment of the present invention when running the computer program Part transmission method.
The embodiment of the present invention also provides a kind of storage medium, is stored with computer program in the computer storage medium, It is characterized in that, realizing file transmission side described in any embodiment of the present invention when the computer program is executed by processor Method.
A kind of document transmission method, device provided by the embodiment of the present invention, computer equipment and storage medium, by obtaining File to be transmitted is taken, determines that the first parameter of the file to be transmitted, first parameter at least characterize the file to be transmitted Data volume;Based on first parameter and the corresponding threshold condition of alternative file transmit queue, determine that file destination sends team The file destination transmit queue is added in the file to be transmitted by column;In this way, different files to be transmitted is based on data volume Size corresponding file destination transmit queue is added;It, will 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 described first The transmission of safety zone, the primary file to be transmitted is located in preset range to the data volume that the receiving end is sent.In this way, right In data volume file to be transmitted of different sizes, different file destination transmit queues is added, based on the data volume to setting Preset range, it is ensured that each file data amount to be transmitted within a preset range, ensure that file to be transmitted is quick, stablize, be reliable Transmission.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of document transmission method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of a scenario of document transmission method provided in an embodiment of the present invention;
Fig. 3 be another embodiment of the present invention provides a kind of document transmission method flow diagram;
Fig. 4 is a kind of flow diagram for document receiving method that one embodiment of the invention provides;
Fig. 5 is a kind of illustrative view of functional configuration of file transfer means provided in an embodiment of the present invention;
Fig. 6 is a kind of hardware structural diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Technical solution of the present invention is further described in detail with reference to the accompanying drawings and specific embodiments of the specification.It answers Work as understanding, the specific embodiments described herein are merely illustrative of the present invention, is not intended to limit the present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention The normally understood meaning of technical staff is identical.It is specific that description is intended merely in the term used in the description of invention herein Embodiment target, it is not intended that in limitation the present invention.Term as used herein "and/or" includes one or more related Listed item any and all combination.
Fig. 1 is a kind of flow diagram of document transmission method provided in an embodiment of the present invention, is applied to be located at the first peace The transmitting terminal of the whole district, as shown in Figure 1, the described method comprises the following steps:
Step 101: obtaining file to be transmitted, determine the first parameter of the file to be transmitted, first parameter is at least Characterize the data volume of the file to be transmitted;
It is understood that the first safety zone can be the management information great Qu in power automatic system specifically can To be 3rd area of safety;Second safety zone, which can be the control of the production in electric system great Qu, specifically can be safety 2nd area of one area or safety, wherein must be provided with examining through national specific office between production control great Qu and management information great Qu Survey the dedicated lateral one-way safety isolating device of electric power of certification.Wherein, reversed safety insulating device is used for 3rd area of safety to safety The transmitting of the one-way data in one area or 2nd area.
File to be transmitted can be specially the unstructured numbers such as webpage, image, audio, video from external data source According to.First parameter can be the file size of file to be transmitted, specifically, for example, file to be transmitted is a picture, the first ginseng Number can characterize the data volume of the picture, 1M.
Step 102: being based on first parameter and the corresponding threshold condition of alternative file transmit queue, determine file destination The file destination transmit queue is added in the file to be transmitted by transmit queue;
Here, the corresponding threshold condition of alternative file transmit queue refers to that the setting of each alternative file transmit queue corresponds to Data volume the corresponding alternative file transmit queue of the first parameter is determined, for example, alternatively by being compared with the first parameter File transmit queue includes A transmit queue and B transmit queue, and A transmit queue threshold condition is 0-5M, B file transmit queue Threshold condition is greater than 5M, if the corresponding data volume of the first parameter is 0.5M, it is determined that file destination transmit queue is that A sends team A transmit queue is added in file to be transmitted by column.In this way, B transmit queue is added in big file, A transmit queue is added in small documents.
Step 103: according to operation strategy corresponding with the file destination transmit queue, the file to be transmitted being sent To the receiving end for being located at the second safety zone, wherein second safety zone is different from first safety zone, primary described to be passed The transmission of defeated file is located in preset range to the data volume that the receiving end is sent.
It is understood that different file destination transmit queues corresponds to different operation strategies, operation strategy be can be Parallel transmission is carried out to file to be transmitted, is also possible to the receiving end to file overall transfer to be transmitted to the second safety zone.
The transmission of the primary file to be transmitted is located in preset range to the data volume that the receiving end is sent refers to list Within a preset range, for example, preset range is 10M, then single is sent to receiving end to the data volume of the transmission of secondary file to be transmitted File to be transmitted data volume be less than or equal to 10M.
The application above embodiment determines the first parameter of the file to be transmitted, institute by obtaining file to be transmitted State the data volume that the first parameter at least characterizes the file to be transmitted;Based on first parameter and alternative file transmit queue pair The threshold condition answered determines file destination transmit queue, and the file destination transmit queue is added in the file to be transmitted;Such as This, is added corresponding file destination transmit queue based on the size of data volume for different files to be transmitted;According to the mesh The corresponding operation strategy of file transmit queue is marked, the file to be transmitted is sent to the receiving end positioned at the second safety zone, In, second safety zone is different from first safety zone, and the transmission of the primary file to be transmitted is sent out to the receiving end The data volume sent is located in preset range.In this way, the to be transmitted file of different sizes for data volume, is added different target texts Part transmit queue, the preset range based on the data volume to setting, it is ensured that each file data amount to be transmitted within a preset range, It ensure that file to be transmitted is quick, stablizes, reliable transmission.
In one embodiment, the file destination transmit queue includes slice transmit queue;It is described to be based on described first Parameter and the corresponding threshold condition of alternative file transmit queue, determine file destination transmit queue, and the file to be transmitted is added Enter the file destination transmit queue, comprising:
Compare first parameter and the corresponding threshold condition of alternative file transmit queue, determines that first parameter meets The corresponding first threshold of the slice transmit queue;
It is located at multiple slices to be transmitted in the preset range based on the file generated data volume to be transmitted;
The slice transmit queue is added in the multiple slice to be transmitted.
By comparing the first parameter and the corresponding threshold condition of alternative file transmit queue, determine that the first parameter meets slice The corresponding first threshold of transmit queue, the threshold condition of even slice transmit queue are the then corresponding number of the first parameter greater than 5M It is 10M according to amount, it is determined that file destination transmit queue is slice transmit queue, and slice transmit queue is added in file to be transmitted.
Being located at that the slice to be transmitted in the preset range refers to based on the file generated data volume to be transmitted will be to be passed Defeated file slice generates the multiple slices to be transmitted met in preset range, for example, preset range is 10M, then file to be transmitted When for 30M, then the slice to be transmitted of 10 3M is generated, which is added and is sliced transmit queue.
It should be noted that file to be transmitted can also be compressed here in addition to being sliced to file to be transmitted, File is cut into several slices to be transmitted according to preset range according to compressed file size, then each slice to be transmitted is carried out Coding forms multiple slices to be transmitted for meeting reverse transfer specification.
In the above-described embodiment, it by comparing the first parameter and the corresponding threshold value of alternative file transmit queue, determines full Foot is sliced the first threshold of transmit queue, and file generated to be transmitted is met to multiple slices to be transmitted of preset range, and will Slice transmit queue is added in slice to be transmitted, and big file is sliced concurrent transmission in this way, realizing, and avoids that file is excessive to be caused Used time too long transformation task accumulation, improve transmission speed.
It is in one embodiment, described that the file to be transmitted is sent to the receiving end positioned at the second safety zone, comprising:
The slice to be transmitted corresponding with the file to be transmitted is sent to the reception positioned at the second safety zone End.
It is understood that the corresponding slice to be transmitted of file to be transmitted includes at least two slices to be transmitted, specifically, The quantity of slice to be transmitted depends on each of first threshold and the setting of slice transmit queue setting slice size to be transmitted. In cross-safety zone, during transmitting file to 2nd area of one area of safety or safety by 3rd area of safety, slice to be transmitted is sent to Refer to positioned at the receiving end of the second safety zone and multiple slices to be transmitted are subjected to average packet according to inbound transmission link number, is put into The corresponding reversely and separately transmitting catalogue of each reverse link, sends catalogue by reverse isolation and reverse isolation device of passing through is transmitted to Receiving end.In this way, realizing the parallel transmission to slice to be transmitted.
In one embodiment, the method also includes:
Send the first identifier parameter of the file to be transmitted, wherein the first identifier parameter includes: described to be transmitted File identification, the informative abstract of the file to be transmitted, slice to be transmitted corresponding to the file to be transmitted sum and The number of the slice to be transmitted.
Here, the file to be transmitted of transmission carries first identifier parameter, and file identification to be transmitted can be with file to be transmitted Raw filename, the informative abstract of file to be transmitted can be through MD5 Message Digest 5 (MD5Message-Digest Algorithm) the informative abstract of the file to be transmitted of Lai Shengcheng.Wherein, MD5 Message Digest 5 is that one kind is widely used Cryptographic Hash Function, can produce out the hashed value (hash value) of one 128 (16 byte), for ensuring information Transmission is complete consistent.
In this way, passing through the informative abstract (original document of file identification to be transmitted (raw filename) and file to be transmitted MD5) the uniqueness of common guarantee file name, at the same by MD5 verify receiving end merge after file it is whether complete, it is described to The sum of slice to be transmitted corresponding to file and the number of the slice to be transmitted are transmitted in slice-merging to be transmitted, Determine the sum of slice to be transmitted and the merging sequence of each slice to be transmitted.
In one embodiment, the file destination transmit queue includes set transmit queue;It is described to be based on described first Parameter and the corresponding threshold condition of alternative file transmit queue, determine file destination transmit queue, and the file to be transmitted is added Enter the file destination transmit queue, comprising:
Compare first parameter and the corresponding threshold condition of alternative file transmit queue, determines that first parameter meets The corresponding second threshold of the set transmit queue;
Being located in the preset range based on the file generated data volume to be transmitted includes the file to be transmitted File set;
The file set is added to set transmit queue.
By comparing the first parameter and the corresponding threshold condition of alternative file transmit queue, determine that the first parameter meets set The corresponding second threshold of transmit queue, the threshold condition of even set transmit queue are the then corresponding number of the first parameter less than 10M It is 0.5M according to amount, it is determined that file destination transmit queue is set transmit queue, and set transmit queue is added in file to be transmitted.
The file set comprising transmission file being located in the preset range based on the file generated data volume to be transmitted The file set for referring to and multiple file sets to be transmitted being generated and meet the file to be transmitted in preset range is closed, wherein file set The data volume of conjunction meets preset range.
Here it is possible to time-out time is set in set transmit queue, and in time-out time, only one file to be transmitted, Then the file to be transmitted is sent as file set, if there is multiple files to be transmitted in time-out time, generates data volume position In the file set comprising multiple files to be transmitted in the preset range.For example, preset range is 3M, then file to be transmitted When for 0.3M, then the file set being made of the file to be transmitted of 10 0.3M is generated, set is added in file set and sends team Column.
It should be noted that file to be transmitted can also be compressed here in addition to gathering file to be transmitted, Multiple compressed files are set a file according to preset range generation according to compressed file size, then set is compiled Code, formation meet setting a file for reverse transfer specification.
In the above-described embodiment, it by comparing the first parameter and the corresponding threshold value of alternative file transmit queue, determines full The second threshold of foot set transmit queue, and the packet in the preset range is located at based on the file generated data volume to be transmitted File set containing the file to be transmitted, and set transmit queue is added in set, it will be multiple small to be passed in this way, realizing Defeated file slice carries out set and merges transmission, avoids small documents frequent transmission, greatly improves efficiency of transmission.
It is in one embodiment, described that the file to be transmitted is sent to the receiving end positioned at the second safety zone, comprising:
The file set is sent to the receiving end positioned at second safety zone.
It is made of it is understood that setting a file several files to be transmitted, in cross-safety zone, text is transmitted by 3rd area of safety Part to one area of safety or safety 2nd area during, will set be sent to positioned at the receiving end of the second safety zone refer to by it is multiple to The mode that transmission file set merges, which generates, to be met one of reverse transfer specification and sets a file, and described set a file is put at random Enter the corresponding reversely and separately transmitting catalogue of a reverse link, transmitted, in this way, realizing to by multiple file groups to be transmitted The merging set transmission set a file closed, substantially increases efficiency of transmission.
In one embodiment, the method also includes:
The second identifier parameter of the file set is sent, the second identifier parameter includes: the files-designated to be transmitted File set described in knowledge, the informative abstract of the file to be transmitted, the informative abstract of the file set and composition it is to be passed The sum of defeated file.
Here, the file set of transmission carries second identifier parameter, and file identification to be transmitted may include file to be transmitted Raw filename, the informative abstract of file to be transmitted can be through MD5 Message Digest 5 (MD5Message-Digest Algorithm) the informative abstract of the file to be transmitted of Lai Shengcheng.Wherein, MD5 Message Digest 5 is that one kind is widely used Cryptographic Hash Function, can produce out the hashed value (hash value) of one 128 (16 byte), for ensuring information Transmission is complete consistent.Here, it also may include file size to be transmitted, for further verifying each file to be transmitted.
Here, guarantee the uniqueness of file name by the MD5 that sets a file, while verifying what receiving end received by MD5 It whether complete sets a file, further, when by multiple file mergencess to be transmitted at setting a file, has on head of setting a file Sequence stores the information of each file to be transmitted, comprising: the informative abstract of the file identification to be transmitted, the file to be transmitted is used In from set a file it is middle fractionation restore each file to be transmitted.
It is further illustrated below by way of technical solution of the specific embodiment to the embodiment of the present invention.
Fig. 2 is a kind of flow diagram of document transmission system provided by the specific embodiment of the invention, as shown in Fig. 2, Wherein, comprising: the transmitting terminal applied to the first safety zone is 3rd area of safety, and the receiving end applied to the second safety zone is safety one Area;Specifically, the transmitting terminal positioned at 3rd area of safety be sent to be located at safety one area receiving end further.
Wherein, in conjunction with referring to Fig. 3, the concrete operations process of document transmission method is as follows:
Step S1: file distribution service program scanning;
Here, file distribution service program is located in receiving end, sends request for receiving file, obtains text to be transmitted Part;
Step S2: file to be transmitted is obtained;
Step S3: file size and threshold value comparison;
If file size meets the first threshold of slice transmit queue, as big file goes to step S4;If file size Meet the second threshold of set transmit queue, as small documents, goes to step S9;
Step S4: it is put into slice transmit queue;
Step S5: a file to be transmitted is taken out from queue;
Step S6: compression, slice, coding;
Step S7: one group of slice to be transmitted is formed;
Here, it compressed, be sliced, encoded, after forming multiple slices to be transmitted for meeting reverse transfer specification, average mark Group is put into the transmitting terminal catalogue of each inbound transmission link, carries out big file in parallel transmission, i.e. execution step S8.
Step S8: grouping is put into reverse isolation and sends catalogue;
Here, after grouping is put into reverse isolation transmission catalogue, step S14 is executed.
Step S9: it is put into set transmit queue;
Step S10: one group of file to be transmitted is taken out from set in time-out time;
Here, a lesser time-out time is set, guarantees the file to be transmitted for having certain amount in set transmit queue (small documents), while time-out time is unsuitable too long, otherwise causes existing transformation task transmission delay in set transmit queue;
Step S11: compression, combination, coding;
Step S12: it forms one and sets a file;
Step S13: it is put into reverse isolation at random and sends catalogue;
Step S14: reverse isolation device is transmitted to one area's catalogue of safety.
By the above-mentioned means, the file to be transmitted is sent to the receiving end positioned at the second safety zone, specifically, referring to Fig. 4, after receiving end receives file to be transmitted, the concrete operations process of document receiving method is as follows:
Step S101: file distribution service program scanning;
Here, file distribution service program is located in the receiving end in one area of safety, to be transmitted for sending to transmitting terminal File scan;
Step S102: catalogue is received from reverse isolation and takes out file to be transmitted;
Step S103: file type is judged according to file identification to be transmitted;
Here it is possible to determine file type according to file identification to be transmitted, can also by send the name of file come It determines, such as file to be transmitted " .slice " extension name file after slice is put into slice file reception queue, by " .set " Extension name file is put into receiving queue of setting a file;If " .slice " extension name file, S104 is thened follow the steps, if " .set " extension name file, thens follow the steps S109;
Step S104: it is put into slice receiving queue;
Step S105: all slices of file to be transmitted are waited to enter queue;
Step S106: decoding merges, decompression;
Here, corresponding in one area of safety to the compression of file, slice, coding.
Step S107: it is reduced into original file to be transmitted;
Step S108:MD5 verification;
Here, after MD5 verification, step S114 is executed.
Step S109: it is put into set receiving queue;
Step S110: it takes out one and sets a file;
Step S111: decoding is split, decompression;
Here, corresponding to the compression, combination, coding in one area of safety to file.
Step S112: it is reduced into original file to be transmitted;
Step S113: MD5 verification is carried out to each file;
Step S114: it is sent to correspondingly received program.
Here, one area of safety slice file reception service routine waits institute's available for transmission of some big file to be sliced and enters After being sliced receiving queue, these slices to be transmitted are decoded, merge, are decompressed, restore original file to be transmitted, and verify File to be transmitted is sent to after passing through and receives program accordingly by file MD5, verification
Safety one area set a file receive service routine read set receiving queue in single file to be transmitted, solved Decoded file declustering is multiple files according to the corresponding second identifier information of setting a file that top of file records by code, Original small documents to be transmitted are formed after decompression, and verify each file MD5 to be transmitted, and each file is sent to by verification after passing through It is corresponding to receive program.
In the embodiment of the present invention, by the basis of existing reversed transregional transmission mode, increase inverted file transmitting terminal and " small documents compression merges transmission, big compressing file is sliced concurrent transmission " is taken according to the size of file to be transmitted in receiving end Strategy improves reverse isolation device working efficiency thus it is possible, on the one hand, small documents merge transmission;On the other hand, big file slice Concurrent transmission is accelerated to improve big the file transmission reliability across the big file transfer speed of reverse isolation.
As shown in figure 5, described device includes: acquisition module the embodiment of the invention also provides a kind of file transfer means 51, determining module 52 and sending module 53;Wherein,
The acquisition module 51 determines the first parameter of the file to be transmitted for obtaining file to be transmitted, described One parameter at least characterizes the data volume of the file to be transmitted;
The determining module 52, for being based on first parameter and the corresponding threshold condition of alternative file transmit queue, It determines file destination transmit queue, the file destination transmit queue is added in the file to be transmitted;
The sending module 53, for according to operation strategy corresponding with the file destination transmit queue, will it is described to Transmission file is sent to the receiving end positioned at the second safety zone, wherein and second safety zone is different from first safety zone, The transmission of the primary file to be transmitted is located in preset range to the data volume that the receiving end is sent.
Optionally, it is corresponding to be also used to the first parameter and alternative file transmit queue described in comparison for the determining module 52 Threshold condition determines that first parameter meets the corresponding first threshold of the slice transmit queue;Based on the text to be transmitted Part generates data volume and is located at multiple slices to be transmitted in the preset range;It will be cut described in the multiple slice addition to be transmitted Piece transmit queue.
Optionally, the sending module 53 is also used to send out the slice to be transmitted corresponding with the file to be transmitted It send to the receiving end for being located at the second safety zone.
Optionally, the sending module 53 is also used to send the first identifier parameter of the file to be transmitted, wherein institute Stating first identifier parameter includes: the file identification to be transmitted, the informative abstract of the file to be transmitted, the file to be transmitted The number of the total and described slice to be transmitted of corresponding slice to be transmitted.
Optionally, it is corresponding to be also used to the first parameter and alternative file transmit queue described in comparison for the determining module 52 Threshold condition determines that first parameter meets the corresponding second threshold of the set transmit queue;Based on the text to be transmitted Part generates data volume and is located at the file set comprising the file to be transmitted in the preset range;The file set is added Enter to set transmit queue.
Optionally, the sending module 53 is also used to for the file set being sent to positioned at second safety zone The receiving end.
Optionally, the sending module 53 is also used to send the second identifier parameter of the file set, second mark Knowing parameter includes: the file identification to be transmitted, the informative abstract of the file to be transmitted, the informative abstract of the file set And the sum of the file to be transmitted of the composition file set.
It need to be noted that: the description of information above processing unit item is with the description of above- mentioned information processing method item Similar, the beneficial effect with method describes, and does not repeat them here.For undisclosed skill in information processing unit embodiment of the present invention Art details please refers to the description of information processing method embodiment of the present invention.
As shown in fig. 6, the computer equipment includes: processing the embodiment of the invention also discloses a kind of computer equipment Device 61 and for storing the memory 62 that can run computer program on processor 61, wherein the processor 61 is for transporting When the row computer program, the information processing method for being applied to the computer equipment is realized.
In some embodiments, the memory in the embodiment of the present invention can be volatile memory or non-volatile memories Device, or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), erasable programmable Read-only memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, ) or flash memory EEPROM.Volatile memory can be random access memory (Random Access Memory, RAM), use Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random-access Memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random are deposited Access to memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus are deposited at random Access to memory (Direct Rambus RAM, DRRAM).The memory of system and method described herein is intended to include but unlimited In the memory of these and any other suitable type.
And possible kind of the IC chip of processor, the processing capacity with signal.During realization, the above method Each step can be completed by the integrated logic circuit of the hardware in processor or the instruction of software form.Above-mentioned processor It can be general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory, processor reads the information in memory, completes the above method in conjunction with its hardware.
In some embodiments, embodiments described herein can with hardware, software, firmware, middleware, microcode or A combination thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, controller, microcontroller, microprocessor, for executing the other of herein described function In electronic unit or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
Further embodiment of this invention provides a kind of computer storage medium, which has can Program is executed, it can be achieved that being applied to the information processing method of the vehicles when executable code processor executes The step of.For example, one or more of method as Figure 1-Figure 4.
In some embodiments, the computer storage medium may include: USB flash disk, mobile hard disk, read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk Etc. the various media that can store program code.
It should be understood that
Disclosed method in several embodiments of the method provided herein, in the absence of conflict can be any group It closes, obtains new embodiment of the method.
Disclosed feature in several product embodiments provided herein, in the absence of conflict can be any group It closes, obtains new product embodiments.
Disclosed feature in several methods provided herein or apparatus embodiments, in the absence of conflict can be with Any combination obtains new embodiment of the method or apparatus embodiments.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of document transmission method, applied to the transmitting terminal for being located at the first safety zone, which is characterized in that the described method includes:
File to be transmitted is obtained, determines that the first parameter of the file to be transmitted, first parameter at least characterize described to be passed The data volume of defeated file;
Based on first parameter and the corresponding threshold condition of alternative file transmit queue, file destination transmit queue is determined, it will 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 positioned at the second peace The receiving end of the whole district, wherein second safety zone is different from first safety zone, the transmission of the primary file to be transmitted The data volume sent to the receiving end is located in preset range.
2. document transmission method as described in claim 1, which is characterized in that the file destination transmit queue includes slice hair Send queue;It is described to be based on first parameter and the corresponding threshold condition of alternative file transmit queue, determine that file destination is sent The file destination transmit queue is added in the file to be transmitted by queue, comprising:
Compare first parameter and the corresponding threshold condition of alternative file transmit queue, determines described in the first parameter satisfaction It is sliced the corresponding first threshold of transmit queue;
It is located at multiple slices to be transmitted in the preset range based on the file generated data volume to be transmitted;
The slice transmit queue is added in the multiple slice to be transmitted.
3. document transmission method as claimed in claim 2, which is characterized in that described be sent to the file to be transmitted is located at The receiving end of second safety zone, comprising:
The slice to be transmitted corresponding with the file to be transmitted is sent to positioned at the receiving end of the second safety zone.
4. document transmission method as claimed in claim 2, which is characterized in that the method also includes:
Send the first identifier parameter of the file to be transmitted, wherein the first identifier parameter includes: the file to be transmitted The sum of slice to be transmitted corresponding to mark, the informative abstract of the file to be transmitted, the file to be transmitted and described The number of slice to be transmitted.
5. document transmission method as described in claim 1, which is characterized in that the file destination transmit queue includes set hair Send queue;It is described to be based on first parameter and the corresponding threshold condition of alternative file transmit queue, determine that file destination is sent The file destination transmit queue is added in the file to be transmitted by queue, comprising:
Compare first parameter and the corresponding threshold condition of alternative file transmit queue, determines described in the first parameter satisfaction Gather the corresponding second threshold of transmit queue;
The file comprising the file to be transmitted being located in the preset range based on the file generated data volume to be transmitted Set;
The file set is added to set transmit queue.
6. according to the method described in claim 5, it is characterized in that, described be sent to the file to be transmitted positioned at the second peace The receiving end of the whole district, comprising:
The file set is sent to the receiving end positioned at second safety zone.
7. document transmission method as claimed in claim 5, which is characterized in that the method also includes:
The second identifier parameter of the file set is sent, the second identifier parameter includes: the file identification to be transmitted, institute State the file to be transmitted of file set described in the informative abstract of file to be transmitted, the informative abstract of the file set and composition Sum.
8. a kind of file transfer means, applied to the transmitting terminal for being located at the first safety zone characterized by comprising
It obtains module and determines the first parameter of the file to be transmitted, first parameter is at least for obtaining file to be transmitted Characterize the data volume of the file to be transmitted;
Determining module determines target text for being based on first parameter and the corresponding threshold condition of alternative file transmit queue The file destination transmit queue is added in the file to be transmitted by part transmit queue;
Sending module, for according to operation strategy corresponding with the file destination transmit queue, the file to be transmitted to be sent out Send to the receiving end for being located at the second safety zone, wherein second safety zone is different from first safety zone, it is primary described to The transmission of transmission file is located in preset range to the data volume that the receiving end is sent.
9. a kind of computer equipment characterized by comprising processor and for storing the calculating that can be run on a processor The memory of machine program;
Wherein, the processor is for realizing claim 1 to 7 described in any item files when running the computer program Transmission method.
10. a kind of storage medium, which is characterized in that be stored with computer program in the computer storage medium, feature exists In realization claim 1 to 7 described in any item document transmission methods when the computer program is executed by processor.
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 (5)

* 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 珠海许继芝电网自动化有限公司 Data transmission method and equipment for efficient reverse-crossing safety isolation device
CN114374701A (en) * 2021-12-06 2022-04-19 福建亿榕信息技术有限公司 Transparent sharing device of multistage linkage artificial intelligence platform sample model
CN114900515A (en) * 2022-03-25 2022-08-12 中国铁道科学研究院集团有限公司电子计算技术研究所 Train file returning method, train host, station and control center
CN115150348A (en) * 2021-03-30 2022-10-04 奇安信科技集团股份有限公司 Mail attachment restoring method and system

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 (8)

* 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 珠海许继芝电网自动化有限公司 Data transmission method and equipment for efficient reverse-crossing safety isolation device
CN115150348A (en) * 2021-03-30 2022-10-04 奇安信科技集团股份有限公司 Mail attachment restoring method and system
CN115150348B (en) * 2021-03-30 2024-05-03 奇安信科技集团股份有限公司 Mail attachment restoring method and system
CN114374701A (en) * 2021-12-06 2022-04-19 福建亿榕信息技术有限公司 Transparent sharing device of multistage linkage artificial intelligence platform sample model
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 中国铁道科学研究院集团有限公司电子计算技术研究所 Train file returning method, train host, station and control center
CN114900515B (en) * 2022-03-25 2024-04-02 中国铁道科学研究院集团有限公司电子计算技术研究所 Train file returning method, train host, station and control center

Similar Documents

Publication Publication Date Title
CN110266775A (en) Document transmission method, device, computer equipment and storage medium
CN112837160B (en) Block chain-based cross-chain transaction method and device and computer-readable storage medium
CN103259797A (en) Data file transmission method and platform
US11431662B2 (en) Techniques for message deduplication
US11526494B2 (en) Blockchain-based computing system and method for managing transaction thereof
CN112615899A (en) Large file transmission method, device and system
CN110989922B (en) Distributed data storage method and system
EP2626819A1 (en) Method and system for documentation of digital archives
US10608960B2 (en) Techniques for batched bulk processing
CN108243146B (en) Information submitting method
CN111046407A (en) Data storage system based on block chain
CN104462562A (en) Data migration system and method based on data warehouse automation
CN113961908B (en) Data storage method and device, computer equipment and storage medium
CN112035886A (en) Block chain consensus method, device, consensus node, system and storage medium
EP4057686A1 (en) Control information indicating method, communication node and computer readable storage medium
CN112105003B (en) Data synchronization system, method and device of intelligent door lock and readable storage medium
CN111355793A (en) Large file uploading method based on HTML5 and Python
CN103678699A (en) Method and system for merging data in server
CN107222453A (en) A kind of document transmission method and device
CN110659903B (en) Block chain-based data transaction method
CN115085926A (en) Data acquisition method and system based on block chain and Internet of things data aggregation gateway
US11252539B2 (en) Message delivery device, Method, and recording medium
CN115314738B (en) Method and device for processing pull stream by adding label to hook data
CN103699666A (en) Transmission method and transmission device for splitting data
KR20200083434A (en) Uplink control channel transmission method and terminal and base station

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