CN113824771A - File transmission method, device, equipment, storage medium and program product - Google Patents

File transmission method, device, equipment, storage medium and program product Download PDF

Info

Publication number
CN113824771A
CN113824771A CN202110985365.4A CN202110985365A CN113824771A CN 113824771 A CN113824771 A CN 113824771A CN 202110985365 A CN202110985365 A CN 202110985365A CN 113824771 A CN113824771 A CN 113824771A
Authority
CN
China
Prior art keywords
file
target
transmission
segmentation
compressed
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
CN202110985365.4A
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.)
Shenzhen Plaything Technology Co ltd
Original Assignee
Shenzhen Plaything Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Plaything Technology Co ltd filed Critical Shenzhen Plaything Technology Co ltd
Priority to CN202110985365.4A priority Critical patent/CN113824771A/en
Publication of CN113824771A publication Critical patent/CN113824771A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a file transmission method, a device, equipment, a storage medium and a program product, wherein the method comprises the following steps: when a file transmission request initiated by a sending end is received, a target file and a target communication end point corresponding to the file transmission request are obtained; sequentially carrying out segmentation processing and compression processing on the target file to obtain a compressed target segmentation file; and transmitting the compressed target segmentation file to a receiving end corresponding to the target communication end point through the target multithreading corresponding to the transmitting end. According to the invention, the target file is segmented and compressed, and finally the target file is transmitted through multiple threads, so that the file transmission rate is improved.

Description

File transmission method, device, equipment, storage medium and program product
Technical Field
The present invention relates to the field of network transmission, and in particular, to a file transmission method, apparatus, device, storage medium, and program product.
Background
With the rapid development of scientific technology, networks and mobile terminals become an indispensable part of people's lives, people often use networks and mobile terminals to remotely send files, the files can be sent from terminal to terminal or from one network to another network, the existing file transmission process is affected by transmission distance, network quality and files (file size and file type), and problems of low transmission speed, low transmission success rate and the like often occur.
Disclosure of Invention
The invention mainly aims to provide a file transmission method, a file transmission device, file transmission equipment and a storage medium, and aims to solve the problems of low transmission speed and low transmission success rate in the existing file transmission process.
In addition, in order to achieve the above object, the present invention further provides a file transmission method, including the steps of:
when a file transmission request initiated by a sending end is received, a target file and a target communication end point corresponding to the file transmission request are obtained;
sequentially carrying out segmentation processing and compression processing on the target file to obtain a compressed target segmentation file;
and transmitting the compressed target segmentation file to a receiving end corresponding to the target communication end point through the target multithreading corresponding to the transmitting end.
Optionally, after the step of acquiring the target file and the target communication endpoint corresponding to the file transmission request when receiving the file transmission request initiated by the sending end, the method includes:
acquiring a transmission frequency range and a signal-to-noise ratio of a target transmission channel between the sending end and a receiving end corresponding to the target communication end point;
compressing the target file, and calculating the byte size of the compressed target file;
and determining whether to segment the target file or not according to the transmission frequency range, the signal-to-noise ratio and the byte size.
Optionally, the step of determining whether to segment the target file according to the transmission frequency range, the signal-to-noise ratio, and the byte size includes:
acquiring a target transmission signal corresponding to the target file, and performing harmonic processing on the target transmission signal through preset high-frequency waves;
and if the frequency of the target transmission signal obtained after the harmonic processing does not belong to the transmission frequency range, or the transmission code element corresponding to the target transmission signal is not matched with the signal-to-noise ratio, or the byte size is larger than a preset threshold value, determining to segment the target file.
Optionally, the step of sequentially performing segmentation processing and compression processing on the target file to obtain a compressed target segmented file includes:
dividing the target file based on a preset time dependence degree and the number of the target transmission channels to obtain a divided file;
and compressing the divided files to obtain compressed target divided files.
Optionally, the step of compressing the split file to obtain a compressed target split file includes:
replacing continuous same data in the segmented file with preset characters to obtain a replaced segmented file, wherein the capacity of the preset characters is smaller than that of the continuous same data;
and generating a dictionary file corresponding to the segmentation file, recording the preset characters and the positions of the preset characters in the segmentation file in the dictionary file, and taking the segmentation file after replacement and the dictionary file as a compressed target segmentation file.
Optionally, the step of transmitting the compressed target split file to the receiving end corresponding to the target communication end point through the target multithreading corresponding to the sending end includes:
sequencing the target transmission channels according to the transmission frequency range and/or the signal-to-noise ratio to obtain a channel sequencing result;
based on the channel sorting result, establishing an incidence relation between the compressed target segmentation file and the target transmission channel;
and transmitting the compressed target segmentation file to a receiving end corresponding to the target communication endpoint through the target multithreading corresponding to the transmitting end and the incidence relation.
In addition, to achieve the above object, the present invention also provides a file transfer apparatus, including:
the system comprises an acquisition module, a sending module and a communication module, wherein the acquisition module is used for acquiring a target file and a target communication endpoint corresponding to a file transmission request when receiving the file transmission request initiated by a sending end;
the segmentation compression module is used for sequentially carrying out segmentation processing and compression processing on the target file to obtain a compressed target segmentation file;
and the transmission module is used for transmitting the compressed target segmentation file to a receiving end corresponding to the target communication endpoint through the target multithreading corresponding to the transmitting end.
In addition, to achieve the above object, the present invention also provides a file transfer apparatus, including: the file transmission method comprises a memory, a processor and a file transmission program which is stored on the memory and can run on the processor, wherein the file transmission program realizes the steps of the file transmission method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a storage medium having a file transfer program stored thereon, the file transfer program implementing the steps of the file transfer method as described above when executed by a processor.
Furthermore, to achieve the above object, the present invention also provides a program product comprising a computer program which, when executed by a processor, implements the steps of the file transfer method as described above.
The embodiment of the invention provides a file transmission method, a file transmission device, file transmission equipment and a storage medium. In the embodiment of the invention, when a file transmission request initiated by a sending end is received, a target file and a target communication end point corresponding to the file transmission request are obtained, then the target file is sequentially subjected to segmentation processing and compression processing to obtain a compressed target segmentation file, finally the compressed target segmentation file is transmitted to a receiving end corresponding to the target communication end point through target multithreading corresponding to the sending end, and the target file is segmented and compressed to finally transmit the target file through multithreading, so that the file transmission rate is improved.
Drawings
Fig. 1 is a schematic hardware structure diagram of an implementation manner of a file transfer device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a file transfer method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a file transfer method according to the present invention;
fig. 4 is a functional module diagram of an embodiment of a file transfer device according to the invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The file transmission terminal (also called terminal, equipment or terminal equipment) in the embodiment of the invention can be a PC (personal computer), and can also be a mobile terminal equipment with a display function, such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU (Central Processing Unit), a communication bus 1002, and a memory 1003. Wherein a communication bus 1002 is used to enable connective communication between these components. The memory 1003 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1003 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a file transfer program may be included in the memory 1003 as a kind of computer storage medium.
In the terminal shown in fig. 1, the processor 1001 may be configured to call a file transfer program stored in the memory 1003, and perform the following operations:
when a file transmission request initiated by a sending end is received, a target file and a target communication end point corresponding to the file transmission request are obtained;
sequentially carrying out segmentation processing and compression processing on the target file to obtain a compressed target segmentation file;
and transmitting the compressed target segmentation file to a receiving end corresponding to the target communication end point through the target multithreading corresponding to the transmitting end.
Further, the processor 1001 may be configured to call a file transfer program stored in the memory 1003, and further perform the following operations:
acquiring a transmission frequency range and a signal-to-noise ratio of a target transmission channel between the sending end and a receiving end corresponding to the target communication end point;
compressing the target file, and calculating the byte size of the compressed target file;
and determining whether to segment the target file or not according to the transmission frequency range, the signal-to-noise ratio and the byte size.
Further, the processor 1001 may be configured to call a file transfer program stored in the memory 1003, and further perform the following operations:
acquiring a target transmission signal corresponding to the target file, and performing harmonic processing on the target transmission signal through preset high-frequency waves;
and if the frequency of the target transmission signal obtained after the harmonic processing does not belong to the transmission frequency range, or the transmission code element corresponding to the target transmission signal is not matched with the signal-to-noise ratio, or the byte size is larger than a preset threshold value, determining to segment the target file.
Further, the processor 1001 may be configured to call a file transfer program stored in the memory 1003, and further perform the following operations:
dividing the target file based on a preset time dependence degree and the number of the target transmission channels to obtain a divided file;
and compressing the divided files to obtain compressed target divided files.
Further, the processor 1001 may be configured to call a file transfer program stored in the memory 1003, and further perform the following operations:
replacing continuous same data in the segmented file with preset characters to obtain a replaced segmented file, wherein the capacity of the preset characters is smaller than that of the continuous same data;
and generating a dictionary file corresponding to the segmentation file, recording the preset characters and the positions of the preset characters in the segmentation file in the dictionary file, and taking the segmentation file after replacement and the dictionary file as a compressed target segmentation file.
Further, the processor 1001 may be configured to call a file transfer program stored in the memory 1003, and further perform the following operations:
sequencing the target transmission channels according to the transmission frequency range and/or the signal-to-noise ratio to obtain a channel sequencing result;
based on the channel sorting result, establishing an incidence relation between the compressed target segmentation file and the target transmission channel;
and transmitting the compressed target segmentation file to a receiving end corresponding to the target communication endpoint through the target multithreading corresponding to the transmitting end and the incidence relation.
Based on the hardware structure of the equipment, the embodiment of the file transmission method is provided.
It should be noted that the file transmission method provided by the present invention is applied to file transmission between networks and file transmission between terminals, and also includes file transmission between networks and terminals; the equipment involved in the file transmission process does not only comprise a file sending terminal and a file receiving terminal, but also can be additionally provided with a forwarding server between the file sending terminal and the file receiving terminal, so that the file sent from the file sending terminal to the file receiving terminal is forwarded through the forwarding server. It is to be understood that the present invention is not limited to the type of file transferred.
Referring to fig. 2, in the first embodiment of the file transfer method of the present invention, the file transfer method includes steps S10 through S30:
step S10, when receiving a file transmission request initiated by a sending end, obtaining a target file and a target communication end point corresponding to the file transmission request;
first, the sending end mentioned in this embodiment may be a network (e.g., a local area network) or a device (e.g., a personal computer), and the file type sent by the sending end may be a document, a picture file, a video file, or an installation package file.
When a system receives a file transmission request initiated by a sending end, a target file and a target communication endpoint corresponding to the file transmission request are obtained, the target file is a file transmitted by the sending end, the target communication endpoint can be simply understood as an abstract endpoint, the sending end and the receiving end both have communication endpoints (the target communication endpoint mentioned in this embodiment refers to a communication endpoint of the sending end in particular), the target communication endpoint includes an IP address and a port number, and the communication endpoint of the sending end includes an IP address and a port number of the receiving end. It can be understood that the speed of file transmission is fast, so there is no situation that the IP address and (available) port number of the receiving end change during the file transmission process, even if the above situation occurs, the IP address and the available port number of the receiving end included in the target communication end point can be timely adjusted through a feedback mechanism, the feedback mechanism is an instant information sharing mechanism between the sending end and the receiving end, when the receiving end switches the IP address through the IP switching server for a second, the receiving end sends the information of IP address switching to the sending end or a forwarding server between the receiving end and the sending end through the feedback mechanism, so as to change the IP address and the available port number of the receiving end included in the target communication end point.
Step S20, sequentially carrying out segmentation processing and compression processing on the target file to obtain a compressed target segmented file;
it should be noted that, the file transmission method proposed by the present invention is intended to implement faster remote file transmission, and when a file is large (meaning that the space occupied by the file is large), the transmission speed of the file is liable to be affected. The file compression means that repeated parts in file contents are replaced by special characters, the repeated parts represented by the special characters are placed in a dictionary file and are sent to a receiving end along with the compressed file, and after the receiving end receives the compressed file and the dictionary file, the file is decompressed according to the contents recorded in the dictionary file to obtain a target file.
And step S30, transmitting the compressed object segmentation file to a receiving end corresponding to the object communication endpoint through the object multithreading corresponding to the transmitting end.
It should be noted that, a plurality of small files are obtained after splitting the target file, and the compressed target split file is transmitted to a receiving end corresponding to a target communication end point through multiple threads corresponding to a transmitting end, where each thread in the target multiple threads is responsible for transmitting one target split file, when a forwarding server exists between a transmitting end and a receiving end of the target file, the receiving end in this embodiment is the forwarding server, and the target communication end point includes an IP address and a receivable port of the forwarding server.
Further, in a possible embodiment, the method for service maintenance is applied to a client terminal, and in step S10, when a file transfer request initiated by a sender is received, a target file and a target communication endpoint corresponding to the file transfer request are obtained, and the following steps include:
a1, acquiring the transmission frequency range and signal-to-noise ratio of a target transmission channel between the sending end and the receiving end corresponding to the target communication end point;
a2, compressing the target file, and calculating the byte size of the compressed target file;
step a3, determining whether to segment the target file according to the transmission frequency range, the signal-to-noise ratio and the byte size.
It should be noted that, the transmission frequency range of the transmission channel affects the transmission success rate of the file, and the signal-to-noise ratio of the transmission channel affects the transmission rate of the file, specifically, the medium-channel for information (i.e. file) transmission is not ideal, and the information transmitted through the channel is interfered and distorted, so how to reduce the degree of interference during information transmission determines the degree of information distortion, the larger the degree of information distortion is, the lower the transmission success rate is, specifically, the pulse signal corresponding to the transmission information is a symbol, the waveform of the symbol is affected and changed by the symbol transmission speed, signal transmission distance, noise interference and transmission medium quality, when the waveform is changed greatly, the waveform distortion is more serious at the receiving end of the channel, and the transmission rate of the symbol is affected by the frequency range through which the channel can pass (i.e. the transmission frequency range of the channel), the signal transmitted on the channel (i.e. the pulse signal corresponding to the transmission file) is actually formed by performing multiple harmonics on analog signals with multiple frequencies, and the larger the transmission frequency range of the channel is, the lower the distortion degree of the pulse signal corresponding to the transmission file is, and the higher the transmission success rate of the file is.
Similarly, if the channel is required to transmit information faster, one symbol is required to carry more bit information, and as is known, a binary symbol, one symbol represents one bit; octal symbols, one symbol representing three bits; the hexadecimal code element, a code element represents four bits, because the noise is produced randomly, the instantaneous value of the noise is very large sometimes, under the condition of certain voltage range, the difference between the hexadecimal code element waveforms is smaller than that between the octal code element waveforms, because of the noise interference, when the real channel is transmitted, the code element waveform difference is too small, the receiving end is not easy to clearly identify, and the success rate of information transmission is low.
The method includes the steps of compressing a target file, calculating the byte size of the compressed target file, drawing a pulse signal corresponding to the target file, and determining whether to divide the target file according to the pulse signal corresponding to the target file, the transmission frequency range and the signal-to-noise ratio of a target transmission channel.
Further, in a possible embodiment, the step a3 determines whether to perform the segmentation process on the target file according to the transmission frequency range, the signal-to-noise ratio and the byte size, and the step of refining includes:
b1, acquiring a target transmission signal corresponding to the target file, and performing harmonic processing on the target transmission signal through preset high-frequency waves;
step b2, if the frequency of the target transmission signal obtained after the harmonic processing does not belong to the transmission frequency range, or the transmission code element corresponding to the target transmission signal is not matched with the signal-to-noise ratio, or the byte size is larger than a preset threshold, determining to segment the target file.
It is known that, the frequency of the target transmission signal corresponding to the target file is the fundamental wave, the fundamental wave and the higher frequency harmonic wave are increased to be superimposed to obtain the target transmission signal after harmonic processing, and it should be noted that all channels have respective allowable frequency ranges, when the preset high frequency wave is larger, the high frequency wave included in the target transmission signal obtained after harmonic processing cannot pass through the channel, thereby causing distortion of the transmission signal, when there are more high frequency waves that cannot pass through the channel in the target transmission signal (indicating that the frequency of the target transmission signal obtained after harmonic processing does not belong to the transmission frequency range of the target transmission channel), severe distortion of the transmission signal is generated, and the smaller the signal-to-noise ratio, the larger the scale of the allowed symbol is, i.e. the faster the transmission rate of the allowed symbol is allowed to pass through, and the larger the scale of the transmission symbol corresponding to the target transmission signal is, when the signal-to-noise ratio is smaller, the transmission code element corresponding to the target transmission signal is not matched with the signal-to-noise ratio, or the byte size of the compressed target file is still larger than a preset threshold value, and then the target file is determined to be segmented.
Further, in a possible embodiment, in the step S30, the compressed target split file is transmitted to the receiving end corresponding to the target communication end point through the target multithreading corresponding to the sending end, and the step of refining includes:
step S31, according to the transmission frequency range and/or the signal-to-noise ratio, the target transmission channels are sequenced to obtain a channel sequencing result;
step S32, based on the channel sorting result, establishing the incidence relation between the compressed target segmentation file and the target transmission channel;
and step S33, transmitting the compressed target division file to a receiving end corresponding to the target communication end point through the target multithreading corresponding to the transmitting end and the incidence relation.
It should be noted that, when there are multiple target transmission channels, all the target transmission channels may be sorted according to the transmission frequency range and/or the signal-to-noise ratio to obtain a channel sorting result, and it is known that all the target transmission channels may be sorted from large to small based on the size of the transmission frequency range; all the target transmission channels can be sequenced from small to large based on the magnitude of the signal-to-noise ratio, and certainly, the target transmission channels can also be sequenced by comprehensively considering the transmission frequency range and the signal-to-noise ratio to obtain a channel sequencing result, and the target transmission channel at the front in the sequencing result has higher transmission rate and transmission success rate, so that the incidence relation between the compressed target segmentation file and the target transmission channel can be established based on the importance degree, namely, the more important target segmentation file is transmitted through the target transmission channel at the front in the sequencing result.
In this embodiment, when a file transmission request initiated by a sending end is received, a target file and a target communication endpoint corresponding to the file transmission request are obtained, then the target file is sequentially subjected to segmentation processing and compression processing to obtain a compressed target segmented file, finally the compressed target segmented file is transmitted to a receiving end corresponding to the target communication endpoint through target multithreading corresponding to the sending end, and the target file is segmented and compressed to finally transmit the target file through multithreading, so that the file transmission rate is improved.
Further, referring to fig. 3, a second embodiment of the file transfer method of the present invention is proposed on the basis of the above-mentioned embodiment of the present invention.
This embodiment is a step of the first embodiment, which is a refinement of step S20, and the difference between this embodiment and the above-described embodiment of the present invention is step S21-step S22:
step S21, based on the preset time dependence degree and the number of the target transmission channels, the target file is segmented to obtain segmented files;
and step S22, compressing the divided files to obtain compressed target divided files.
It can be known that, when the content included in the target file has different time dependency degrees (that is, the content included in the target file needs to be sent in chronological order, and the content sent first has a higher time dependency degree), the target file is divided based on the preset time dependency degree and the number of the target transmission channels to obtain a divided file, specifically, if the number of the target transmission channels (in an idle state) is 5, it is determined that the target file needs to be divided into 5 small files, where the specific content included in each of the divided small files is determined by the time dependency degree corresponding to the content included in the target file, and therefore, the sizes of the content (capacity) included in the divided files may be different. And finally, compressing the divided files to obtain the compressed target divided files.
Further, in a possible embodiment, in the step S22, the step of compressing the divided files to obtain the compressed target divided file, and the step of refining includes:
step c1, replacing continuous same data in the segmented file with preset characters to obtain a replaced segmented file, wherein the capacity of the preset characters is smaller than the continuous same data;
and c2, generating a dictionary file corresponding to the segmentation file, recording the preset characters and the positions of the preset characters in the segmentation file in the dictionary file, and taking the segmentation file after replacement and the dictionary file as compressed target segmentation files.
It can be understood that when compressing the divided files, two points need to be paid attention to, namely, the size of the capacity of the compressed divided files plus the corresponding 'dictionary' files should be smaller than that of the divided files before compression, and each compressed divided file corresponds to a dictionary file. Firstly, replacing continuous and same data in the divided file with a preset character, wherein if the continuous and same data in the divided file is '11111', the preset character can be '51' and represents 5 continuous 1, and it should be noted that in this case, at least more than 3 continuous data exist for compression, the information that the preset character '51' represents '11111' is stored in the dictionary file, and the position information of '11111' in the divided file is also included, and the divided file and the dictionary file after replacement are taken as a compressed target divided file.
In this embodiment, the target file is divided based on the preset time dependency and the number of the target transmission channels, and then the divided files are compressed, so that the file transmission rate is increased.
In addition, referring to fig. 4, an embodiment of the present invention further provides a file transmission apparatus, where the file transmission apparatus includes:
the system comprises an acquisition module, a sending module and a communication module, wherein the acquisition module is used for acquiring a target file and a target communication endpoint corresponding to a file transmission request when receiving the file transmission request initiated by a sending end;
the segmentation compression module is used for sequentially carrying out segmentation processing and compression processing on the target file to obtain a compressed target segmentation file;
and the transmission module is used for transmitting the compressed target segmentation file to a receiving end corresponding to the target communication endpoint through the target multithreading corresponding to the transmitting end.
Optionally, the file transfer apparatus includes:
a signal-to-noise ratio acquisition module, configured to acquire a transmission frequency range and a signal-to-noise ratio of a target transmission channel between the sending end and a receiving end corresponding to the target communication endpoint;
the byte size calculation module is used for compressing the target file and calculating the byte size of the compressed target file;
and the determining module is used for determining whether to segment the target file according to the transmission frequency range, the signal-to-noise ratio and the byte size.
Optionally, the determining module includes:
the harmonic processing unit is used for acquiring a target transmission signal corresponding to the target file and carrying out harmonic processing on the target transmission signal through preset high-frequency waves;
and the condition judgment unit is used for determining to segment the target file if the frequency of the target transmission signal obtained after the harmonic processing does not belong to the transmission frequency range, or the transmission code element corresponding to the target transmission signal is not matched with the signal-to-noise ratio, or the byte size is larger than a preset threshold value.
Optionally, the segmentation compression module includes:
the segmentation unit is used for segmenting the target file based on the preset time dependence degree and the number of the target transmission channels to obtain a segmented file;
and the compression unit is used for compressing the divided files to obtain compressed target divided files.
Optionally, the compression unit includes:
the replacing unit is used for replacing continuous same data in the segmented file with preset characters to obtain a replaced segmented file, wherein the capacity of the preset characters is smaller than that of the continuous same data;
and the dictionary file generating unit is used for generating a dictionary file corresponding to the segmentation file, recording the preset characters and the positions of the preset characters in the segmentation file in the dictionary file, and taking the segmentation file after replacement and the dictionary file as a compressed target segmentation file.
Optionally, the transmission module includes:
the sequencing unit is used for sequencing the target transmission channels according to the transmission frequency range and/or the signal-to-noise ratio to obtain a channel sequencing result;
an association relationship establishing unit, configured to establish an association relationship between the compressed target partition file and the target transmission channel based on the channel sorting result;
and the transmission unit is used for transmitting the compressed target segmentation file to a receiving end corresponding to the target communication end point through the target multithreading corresponding to the transmitting end and the incidence relation.
In addition, an embodiment of the present invention further provides a storage medium, where a file transfer program is stored on the storage medium, and when executed by a processor, the file transfer program implements operations in the file transfer method provided in the foregoing embodiment.
The method executed by each program module can refer to each embodiment of the method of the present invention, and is not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity/action/object from another entity/action/object without necessarily requiring or implying any actual such relationship or order between such entities/actions/objects; the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, in that elements described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be substantially or partially embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the file transmission method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A file transmission method is characterized by comprising the following steps:
when a file transmission request initiated by a sending end is received, a target file and a target communication end point corresponding to the file transmission request are obtained;
sequentially carrying out segmentation processing and compression processing on the target file to obtain a compressed target segmentation file;
and transmitting the compressed target segmentation file to a receiving end corresponding to the target communication end point through the target multithreading corresponding to the transmitting end.
2. The file transmission method according to claim 1, wherein after the step of obtaining the target file and the target communication endpoint corresponding to the file transmission request when receiving the file transmission request initiated by the sending end, the file transmission method comprises:
acquiring a transmission frequency range and a signal-to-noise ratio of a target transmission channel between the sending end and a receiving end corresponding to the target communication end point;
compressing the target file, and calculating the byte size of the compressed target file;
and determining whether to segment the target file or not according to the transmission frequency range, the signal-to-noise ratio and the byte size.
3. The file transfer method according to claim 2, wherein the step of determining whether to perform the division processing on the target file according to the transmission frequency range, the signal-to-noise ratio, and the byte size comprises:
acquiring a target transmission signal corresponding to the target file, and performing harmonic processing on the target transmission signal through preset high-frequency waves;
and if the frequency of the target transmission signal obtained after the harmonic processing does not belong to the transmission frequency range, or the transmission code element corresponding to the target transmission signal is not matched with the signal-to-noise ratio, or the byte size is larger than a preset threshold value, determining to segment the target file.
4. The file transmission method according to claim 3, wherein the step of sequentially performing the division processing and the compression processing on the target file to obtain a compressed target divided file comprises:
dividing the target file based on a preset time dependence degree and the number of the target transmission channels to obtain a divided file;
and compressing the divided files to obtain compressed target divided files.
5. The file transfer method according to claim 4, wherein the step of compressing the divided file to obtain a compressed target divided file comprises:
replacing continuous same data in the segmented file with preset characters to obtain a replaced segmented file, wherein the capacity of the preset characters is smaller than that of the continuous same data;
and generating a dictionary file corresponding to the segmentation file, recording the preset characters and the positions of the preset characters in the segmentation file in the dictionary file, and taking the segmentation file after replacement and the dictionary file as a compressed target segmentation file.
6. The file transfer method according to claim 3, wherein the step of transferring the compressed object partition file to the receiving end corresponding to the object communication end point by the object multithreading corresponding to the sending end comprises:
sequencing the target transmission channels according to the transmission frequency range and/or the signal-to-noise ratio to obtain a channel sequencing result;
based on the channel sorting result, establishing an incidence relation between the compressed target segmentation file and the target transmission channel;
and transmitting the compressed target segmentation file to a receiving end corresponding to the target communication endpoint through the target multithreading corresponding to the transmitting end and the incidence relation.
7. A file transfer apparatus, characterized by comprising:
the system comprises an acquisition module, a sending module and a communication module, wherein the acquisition module is used for acquiring a target file and a target communication endpoint corresponding to a file transmission request when receiving the file transmission request initiated by a sending end;
the segmentation compression module is used for sequentially carrying out segmentation processing and compression processing on the target file to obtain a compressed target segmentation file;
and the transmission module is used for transmitting the compressed target segmentation file to a receiving end corresponding to the target communication endpoint through the target multithreading corresponding to the transmitting end.
8. A file transfer apparatus characterized by comprising: memory, processor and file transfer program stored on the memory and executable on the processor, the file transfer program when executed by the processor implementing the steps of the file transfer method according to any one of claims 1 to 6.
9. A storage medium, characterized in that the storage medium has stored thereon a file transfer program which, when executed by a processor, implements the steps of the file transfer method according to any one of claims 1 to 6.
10. A program product, characterized in that the program product comprises a computer program which, when being executed by a processor, carries out the steps of the file transfer method according to any one of claims 1 to 6.
CN202110985365.4A 2021-08-25 2021-08-25 File transmission method, device, equipment, storage medium and program product Pending CN113824771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110985365.4A CN113824771A (en) 2021-08-25 2021-08-25 File transmission method, device, equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110985365.4A CN113824771A (en) 2021-08-25 2021-08-25 File transmission method, device, equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN113824771A true CN113824771A (en) 2021-12-21

Family

ID=78923271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110985365.4A Pending CN113824771A (en) 2021-08-25 2021-08-25 File transmission method, device, equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN113824771A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040210948A1 (en) * 2003-01-25 2004-10-21 Huazhon University Of Science Technology Video splitting and distributed placement scheme for clustered video servers
CN102801690A (en) * 2011-05-25 2012-11-28 华为技术有限公司 Stream media processing method, distribution server, client and system
CN104519090A (en) * 2013-09-27 2015-04-15 深圳市腾讯计算机***有限公司 Method and device for file transfer
CN109359099A (en) * 2018-08-21 2019-02-19 中国平安人寿保险股份有限公司 Distributed document method for uploading, device, computer equipment and storage medium
CN112311902A (en) * 2020-12-23 2021-02-02 深圳市蓝凌软件股份有限公司 File sending method and device based on micro-service
CN112492033A (en) * 2020-11-30 2021-03-12 深圳市移卡科技有限公司 File transmission method, system and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040210948A1 (en) * 2003-01-25 2004-10-21 Huazhon University Of Science Technology Video splitting and distributed placement scheme for clustered video servers
CN102801690A (en) * 2011-05-25 2012-11-28 华为技术有限公司 Stream media processing method, distribution server, client and system
CN104519090A (en) * 2013-09-27 2015-04-15 深圳市腾讯计算机***有限公司 Method and device for file transfer
CN109359099A (en) * 2018-08-21 2019-02-19 中国平安人寿保险股份有限公司 Distributed document method for uploading, device, computer equipment and storage medium
CN112492033A (en) * 2020-11-30 2021-03-12 深圳市移卡科技有限公司 File transmission method, system and computer readable storage medium
CN112311902A (en) * 2020-12-23 2021-02-02 深圳市蓝凌软件股份有限公司 File sending method and device based on micro-service

Similar Documents

Publication Publication Date Title
US9716645B2 (en) Systems and methods for content type classification
CN108243256A (en) A kind of date storage method, encoding device and decoding device
CN102739717A (en) Downloading method, downloading proxy server and network system
CN108933801B (en) Method and device for establishing cloud desktop channel and cloud desktop communication
CN114143107B (en) Low-speed DDoS attack detection method, system and related equipment
US20230155913A1 (en) System and method for monitoring network performance
US10873467B2 (en) Method and system for compression and optimization of in-line and in-transit information security data
CN110719526B (en) Video playing method and device
US20080120428A1 (en) Unique compressed call identifiers
CN112311720B (en) Data transmission method and device
CN105812439A (en) Audio transmission method and device
CN104092648A (en) File request method and device
CN113824771A (en) File transmission method, device, equipment, storage medium and program product
CN112994934B (en) Data interaction method, device and system
CN102082726B (en) Data processing method, device and transmission system
CN105282255A (en) Image transmission method and system
CN114338833A (en) Cross-heterogeneous protocol cooperative transmission method, system, terminal equipment and storage medium
CN111083173B (en) Dynamic defense method in network communication based on openflow protocol
CN113014610B (en) Remote access method, device and system
CN103888850A (en) Network video playing method and terminal
CN110233706B (en) Method and device for detecting repeated data packets
US20160065464A1 (en) Modem, user terminal and method for sending message
CN107547447B (en) Network communication method and device of distributed file system and network communication system
CN106572364A (en) Method and device for downloading video
CN115580601A (en) Method and device for sending data packet

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