CN100401671C - Method for transmitting files - Google Patents

Method for transmitting files Download PDF

Info

Publication number
CN100401671C
CN100401671C CNB2005100350082A CN200510035008A CN100401671C CN 100401671 C CN100401671 C CN 100401671C CN B2005100350082 A CNB2005100350082 A CN B2005100350082A CN 200510035008 A CN200510035008 A CN 200510035008A CN 100401671 C CN100401671 C CN 100401671C
Authority
CN
China
Prior art keywords
file
internal memory
compression
decompression
data stream
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.)
Active
Application number
CNB2005100350082A
Other languages
Chinese (zh)
Other versions
CN1874231A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2005100350082A priority Critical patent/CN100401671C/en
Publication of CN1874231A publication Critical patent/CN1874231A/en
Application granted granted Critical
Publication of CN100401671C publication Critical patent/CN100401671C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a method for transmitting a file, which comprises processes of the compression, the transmission and the decompression of the file. The file transmission comprises the operation of data flow, the compression of the file uses memory compression, and the decompression of the file uses memory decompression. The present invention concretely comprises following steps: A. the compressed data flow is generated, and through a memory compressor of a node of source equipment, the original data flow is compressed into the compressed data flow. B. the compressed data flow is transmitted, and through a file transmitter, the compressed data flow is transmitted to the node of purpose equipment. C. the original file is generated, and through a memory decompressor of the node of the purpose equipment, the compressed data flow is decompressed and is reduced into the original file. By introducing the operation of the data flow in the process of file transmission and using the memory compression and the memory decompression, network resources can be saved, the storing space and the execution time of the node of the equipment are saved, and the continuity in the process of the file transmission is increased.

Description

A kind of file transmitting method
Technical field
The present invention relates to a kind of network information transfer method, relate in particular to the file transmitting method between a kind of heterogeneous networks device node.
Background technology
In the modern society, exist a large amount of various information networks, in order to satisfy people's different demands.In diverse network, the heterogeneous networks device node carries out information exchange by the networking, and the file delivery procedure between the heterogeneous networks device node is exactly a kind of very common information transferring method.
In general, the transmittability of network all is limited, and needs information transmitted to increase without limitation on the network, must be more efficiently so require the transmission of Information process.Transmit for file, carry out file transfer by the method that first File Compress, transmission again, final act decompress, less with respect to the direct transfer approach of file to taking of Internet resources, be a kind of relatively high-efficiency information transmission means.In the prior art, the method that transmits employing compressed file transmission usually for the file between network equipment node realizes.The process of compressed file transmission is as follows: earlier file is carried out File Compress (called file compression, be meant in file system whole file is compressed, generate the process of a compressed compressed file, it is an a kind of concrete compression method of realizing the compression of file), and then to the compression after file transmit, after transmission is finished, (called file decompresses again file to be carried out the file decompression at last, be meant in file system, whole compressed file is decompressed, generate the process of an original document that is reduced, it is an a kind of concrete decompression method of realizing the decompression of file).The method that Fig. 1 shows the transmission of available technology adopting compressed file realizes the schematic diagram that file transmits.
The process of above-mentioned compressed file transmission, File Compress and file decompress and all finish in file system.The File Compress process will generate a compressed compressed file, and the file decompression process will generate an original document that is reduced, and compressed file and original document all need to take the memory space that file system is managed.And, in general, all be more slowly for the read-write operation of file, write operation particularly.So generally speaking, the whole process of compressed file transmission need expend more memory space and time of implementation.And, the process of whole compressed file transmission adopts the mode of compressed file to transmit, can be divided into three subprocess very significantly: File Compress, file transfer, file decompress, the File Compress subprocess is to finish in source device node, the file transfer subprocess is finished between device node, and file decompression subprocess is to finish at the destination device node.These three subprocess each process each other can independently exist, and the continuity of whole compressed file transmission course is poor.
Summary of the invention
The objective of the invention is to solve the file that exists in the prior art and transmit that to occupy memory space more, the time of implementation is longer, the problem that the process continuity is relatively poor.
In order to realize goal of the invention, the invention provides following technical scheme:
A kind of file transmitting method, the decompression process that comprises compression, transmission and the file of file, wherein, the internal memory compression is adopted in the compression of file, the decompression of file adopts internal memory to decompress, and this method comprises that the internal memory compressor reducer of source device node compresses file, and the internal memory decompressor of destination device node decompresses to file, in the decompression process of the compression of file and file, have at least a process to contain the operation of data flow.
Alternatively, the decompression process of the compression of file, the transmission of file and file all contains the operation of data flow, specifically may further comprise the steps:
A1. generate packed data stream: the internal memory compressor reducer by source device node reads original data stream from original document, and described original data stream is carried out the internal memory compression, generates packed data stream, simultaneously, exports described packed data stream to the file transfer device;
A2. transmitted data compressing stream: by the file transfer device with described packed data flow transmission to the destination device node;
A3. generate original document: the internal memory decompressor by the destination device node carries out the internal memory decompression with packed data stream, is reduced to original document.
Alternatively, the compression of file and the transmission course of file contain the operation of data flow, specifically may further comprise the steps:
B1. generate packed data stream: the internal memory compressor reducer by source device node reads original data stream from original document, and described original data stream is carried out the internal memory compression, generates packed data stream, simultaneously, exports described packed data stream to the file transfer device;
B2. generate compressed file: by the file transfer device with described packed data flow transmission to the destination device node, and be stored in the file system of destination device node with the form of compressed file;
B3. generate original document: the file decompressor by the destination device node carries out the file decompression to compressed file, is reduced to original document.
Alternatively, the transmission of file and the decompression process of file contain the operation of data flow, specifically may further comprise the steps:
C1. generate compressed file: the File Compress device by source device node carries out File Compress generation compressed file to original document;
C2. transmit compressed file: from described compressed file, read packed data stream by the file transfer device, and with described packed data flow transmission to the destination device node;
C3. generate original document: the packed data stream of described file transfer device being exported by the internal memory decompressor of destination device node carries out the internal memory decompression, is reduced to original document.
File transmitting method of the present invention, the boil down to lossless compress of file.
File transmitting method of the present invention, the transmission of file can be adopted the FTP standard agreement.
File transmitting method of the present invention, the compression algorithm of file is consistent with the decompression algorithm of file.
File transmitting method of the present invention, the packed data form of file is consistent with the decompressed data form of file.
The operation of the present invention by in file delivery procedure, introducing data flow, adopt internal memory compression and internal memory to decompress, saved Internet resources, saved the memory space and the time of implementation of device node, increased the continuity of file delivery procedure.
Description of drawings
Fig. 1 is a compressed file transfer scheme schematic diagram of the prior art;
Fig. 2 is for internal memory of the present invention compresses, decompress files transfer scheme schematic diagram;
Fig. 3 is internal memory compression realization flow figure;
Fig. 4 is internal memory decompression realization flow figure;
Fig. 5 is an internal memory compressed file transfer scheme schematic diagram of the present invention;
Fig. 6 is an internal memory decompress files transfer scheme schematic diagram of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In the present invention, provide three kinds of different implementations, existing division is as follows in conjunction with the accompanying drawings:
As shown in Figure 2, the decompression process of the compression of file, the transmission of file and file contains the operation of data flow, the internal memory compression is adopted in the compression of file, the decompression of file adopts internal memory to decompress, the specific implementation process is as follows: in source device node, by the internal memory compressor reducer from the original document reading data flow, simultaneously, this data flow is carried out the internal memory compression, and the data after the output compression flow to the file transfer device; At the destination device node, accept the data flow that the file transfer device is exported by the internal memory decompressor, simultaneously, this data flow is carried out internal memory decompress, and the original data stream of output is stored as original document.In this scheme, the input of internal memory compressor reducer is an original data stream, output be packed data stream after the compression; Internal memory decompressor input be packed data stream, output be original data stream after decompressing, whole file transmits crosses the operation that range request can be finished data flow.
So-called internal memory compression is meant in the internal memory of computer, and the original data stream of importing is compressed, and exports the process of compressed packed data stream, and it is an a kind of concrete compression method of realizing the compression of file.Figure 3 shows that the realization flow of internal memory compression, specify as follows:
(a1) before beginning internal memory compression, compress some preparations of beginning earlier, as initialization of variable etc.;
(a2) from input traffic, obtain pending data,, otherwise jump to step (a4) if obtain success then continue;
(a3) the pending data that get access to are carried out squeeze operation, squeeze operation may need multi-pass operation just can finish, after each squeeze operation success, and need be with the output of the data after handling, after squeeze operation failure, all data were all finished output, rebound step (a2) continued to carry out;
(a4) the internal memory compression finishes, and carries out some end process, and whole afterwards flow process finishes.
So-called internal memory decompresses and is meant in the internal memory of computer, the packed data stream of importing decompressed, and the process of the original data stream that output is reduced, it is an a kind of concrete decompression method of realizing the decompression of file.Figure 4 shows that the realization flow that internal memory decompresses, specify as follows:
(b1) before the beginning internal memory decompresses, some preparations of the beginning that decompresses earlier are as initialization of variable etc.;
(b2) from input traffic, obtain pending data,, otherwise jump to step (b4) if obtain success then continue;
(b3) the pending data that get access to are carried out decompression operation, decompression operation may need multi-pass operation just can finish, after each decompression operation success, need be with the output of the data after handling, after decompression operation failure, all data were all finished output, rebound step (b2) continued to carry out;
(b4) internal memory decompresses and finishes, and carries out some end process, and whole afterwards flow process finishes.
The operation of so-called data flow is meant: input and output be continuous data flow, and the input and output of data flow are carried out on understanding simultaneously, be to intersect that what carry out (is exactly to import one piece of data on actual the realization, export the plurality of sections data then, then import one piece of data again, export one piece of data again, so repeat)
Because compression, the transmission of file and the decompression of file of file all are the operations of data flow, the operation of data flow requires to carry out continuously in whole file delivery procedure, thereby whole file delivery procedure cannot split, this process is exactly: come from the data in the original document of source device node, process by compression transmission decompression, finally produce corresponding data, just generated after the storage with the same original document of source device node at the destination device node.By this process, the original document on the source device node is sent on the destination device node.
This scheme than be more suitable for document transmission process need less personnel operation scene, can realize by this scheme: file is intactly transmitted, operating personnel do not know that even file data was compressed, and this process also is quite efficiently, both save Internet resources, saved the memory space and the time of implementation of device node again.
As shown in Figure 5, the compression of file and the transmission course of file contain the operation of digital data stream, the internal memory compression is adopted in the compression of file, the decompression of file adopts file to decompress, the specific implementation process is as follows: in source device node, by the internal memory compressor reducer from the original document reading data flow, simultaneously, this data flow is carried out the internal memory compression, and the data after the output compression flow to the file transfer device.At the destination device node, the file transfer device is a compressed file with the storage of accepting, and by the file decompressor compressed file decompress(ion) is condensed to original document again.This document transfer scheme contains the operation of data flow equally, and the operation of this data flow is to carry out in the transmission course of the compression of file and file, and the file decompression process is file operation.
Because the data flow operations of this programme is to carry out in the transmission course of the compression of file and file, thereby the whole process of this programme can be divided into two subprocess, File Compress transmission subprocess: the original document on the source device node generates a compressed file by internal memory compression and file transfer on the destination device node; File decompression subprocess: on the destination device node, the compressed file decompress(ion) is condensed to original document.
It is maintained equipment that this programme relatively is suitable for source device node, and the destination device node is the application scenarios of maintenance terminal.Can realize by this scheme: the attendant uploads the compression of the original document on the maintained equipment by maintenance terminal, finish upload after, the file after obtaining compressing; Then, the attendant carries out decompression operation at maintenance terminal to this document, obtains original document.The technology of this programme by internal memory compression is merged into a subprocess with the compression and the file transfer subprocess of file, improved the continuity of whole process, and saved the memory space and the time of implementation of source device node.
As shown in Figure 6, the transmission of file and the decompression process of file contain the operation of data flow, File Compress is adopted in the compression of file, the decompression of file adopts internal memory to decompress, the specific implementation process is as follows: in source device node, adopt File Compress with original document boil down to compressed file, the file transfer device reads compressed file, is transferred to the destination device node; At the destination device node, accept the data flow that the file transfer device is exported by the internal memory decompressor, simultaneously, this data flow is carried out internal memory decompress, and the original data stream of output is stored as original document.This document transfer scheme contains the operation of data flow equally, carries out between the file transfer device that operates in the destination device node of this data flow and the internal memory decompression machine, and the File Compress process is file operation.
Because the data flow operations of this programme is to carry out in the decompression process of the transmission of file and file, thereby the whole process of this programme can be divided into two subprocess, the File Compress subprocess: on source device node with original document boil down to compressed file; File transfer decompression subprocess: the compressed file on the source device node decompresses by file transfer and internal memory, generates original document on the destination device node.
It is maintained equipment that this programme relatively is suitable for the destination device node, and source device node is the application scenarios of maintenance terminal.Can realize by this scheme: the attendant at first on maintenance terminal with original document boil down to compressed file; Then, the attendant is by maintenance terminal, compressed file downloaded be decompressed on the maintained equipment, finish download decompress after, original document has just been arranged on the maintained equipment.This programme decompresses by internal memory file transfer and file decompression subprocess is merged into a subprocess, has improved the continuity of whole process, and has saved the memory space and the time of implementation of destination device node.
Adopt the transmission of lossless compress, file in view of the compression of file among the present invention and adopt the FTP standard agreement, be the known technology of those of ordinary skills, so do not repeat them here.
The above only is a common embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. file transmitting method comprises the decompression process of compression, transmission and the file of file it is characterized in that the internal memory compression is adopted in the compression of file that the decompression of file adopts internal memory to decompress, and this method comprises
The internal memory compressor reducer of source device node compresses file, and the internal memory decompressor of destination device node decompresses to file, in the decompression process of the compression of file and file, has at least a process to contain the operation of data flow.
2. method according to claim 1 is characterized in that, the decompression process of the compression of file, the transmission of file and file all contains the operation of data flow, specifically may further comprise the steps:
A1. generate packed data stream: the internal memory compressor reducer by source device node reads original data stream from original document, and described original data stream is carried out the internal memory compression, generates packed data stream, simultaneously, exports described packed data stream to the file transfer device;
A2. transmitted data compressing stream: by the file transfer device with described packed data flow transmission to the destination device node;
A3. generate original document: the internal memory decompressor by the destination device node carries out the internal memory decompression with packed data stream, is reduced to original document.
3. method according to claim 1 is characterized in that, the compression of file and the transmission course of file contain the operation of data flow, specifically may further comprise the steps:
B1. generate packed data stream: the internal memory compressor reducer by source device node reads original data stream from original document, and described original data stream is carried out the internal memory compression, generates packed data stream, simultaneously, exports described packed data stream to the file transfer device;
B2. generate compressed file: by the file transfer device with described packed data flow transmission to the destination device node, and be stored in the file system of destination device node with the form of compressed file;
B3. generate original document: the file decompressor by the destination device node carries out the file decompression to compressed file, is reduced to original document.
4. method according to claim 1 is characterized in that, the transmission of file and the decompression process of file contain the operation of data flow, specifically may further comprise the steps:
C1. generate compressed file: the File Compress device by source device node carries out File Compress generation compressed file to original document;
C2. transmit compressed file: from described compressed file, read packed data stream by the file transfer device, and with described packed data flow transmission to the destination device node;
C3. generate original document: the packed data stream of described file transfer device being exported by the internal memory decompressor of destination device node carries out the internal memory decompression, is reduced to original document.
5. according to claim 1,2,3 or 4 described methods, it is characterized in that the boil down to lossless compress of described file.
6. according to claim 1,2,3 or 4 described methods, it is characterized in that the FTP standard agreement is adopted in the transmission of described file.
7. according to claim 1,2,3 or 4 described methods, it is characterized in that the compression algorithm of described file is consistent with the decompression algorithm of file.
8. according to claim 1,2,3 or 4 described methods, it is characterized in that the packed data form of described file is consistent with the decompressed data form of file.
CNB2005100350082A 2005-05-31 2005-05-31 Method for transmitting files Active CN100401671C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100350082A CN100401671C (en) 2005-05-31 2005-05-31 Method for transmitting files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100350082A CN100401671C (en) 2005-05-31 2005-05-31 Method for transmitting files

Publications (2)

Publication Number Publication Date
CN1874231A CN1874231A (en) 2006-12-06
CN100401671C true CN100401671C (en) 2008-07-09

Family

ID=37484514

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100350082A Active CN100401671C (en) 2005-05-31 2005-05-31 Method for transmitting files

Country Status (1)

Country Link
CN (1) CN100401671C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873860B (en) * 2014-03-18 2017-12-22 深信服网络科技(深圳)有限公司 Document transmission method and device
CN112612830B (en) * 2020-12-03 2023-01-31 海光信息技术股份有限公司 Method and system for exporting compressed data in batches and electronic equipment
CN114025346B (en) * 2021-10-12 2024-03-29 杭州趣链科技有限公司 Data transmission method for data security and effectiveness between mobile self-setting networks
CN115086295A (en) * 2022-05-26 2022-09-20 北京快乐茄信息技术有限公司 File transmission method, file transmission device, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1184975A (en) * 1996-01-31 1998-06-17 北京九州计算机网络公司 Object oriented computer communication
US20020078241A1 (en) * 2000-12-15 2002-06-20 Alfy, Inc. Method of accelerating media transfer
US20020107988A1 (en) * 2001-02-05 2002-08-08 James Jordan In-line compression system for low-bandwidth client-server data link

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1184975A (en) * 1996-01-31 1998-06-17 北京九州计算机网络公司 Object oriented computer communication
US20020078241A1 (en) * 2000-12-15 2002-06-20 Alfy, Inc. Method of accelerating media transfer
US20020107988A1 (en) * 2001-02-05 2002-08-08 James Jordan In-line compression system for low-bandwidth client-server data link

Also Published As

Publication number Publication date
CN1874231A (en) 2006-12-06

Similar Documents

Publication Publication Date Title
KR100336280B1 (en) Method for video/audio streaming based on intermediate data
CN1187944C (en) Reuse of static checksum and information in header compression/decompression application
JP6784636B2 (en) Control device, program update system, program update method
CN101197773B (en) Packet compressed transmitting and received de-compression method and system based on multilink
CN102724500B (en) A kind of compressing/decompressing method of video data and system
CN100401671C (en) Method for transmitting files
CN105052040A (en) System and method for multi-stream compression and decompression
CN102694730B (en) Method and device for parallel processing
US7212974B2 (en) System and method for compressing and encoding data
CN107483952A (en) A kind of method, apparatus and system of jpeg image decompression
CN111221792B (en) Rbd file transmission method and system based on ceph
CN105659502A (en) System and method for conserving power consumption in a memory system
EA006982B1 (en) Dispersity coding for inverse multiplexing
CN103503381A (en) Method, device and system for device redirection data transmission
CN107615810A (en) Header compression system and method for online network code
KR101682508B1 (en) Routing apparatus and network apparatus
CN103561282B (en) The data transmission method and device of files in stream media
CN109298866A (en) TLV format protocol fast resolving method based on C language
CN103906007A (en) Multimedia-message forwarding method and device
US8938019B2 (en) Data transmitting device and data transmitting/receiving method
KR100389702B1 (en) The method for compressing and expanding data-stream without loss by bit-substitution
CN109521895A (en) A kind of control method and device of the peripheral hardware signal switching based on FPGA
JP2954202B1 (en) Program transfer method and transfer storage method in mobile communication base station system
JP2802228B2 (en) Data transfer method using packet switching
CN110995274B (en) Decompression method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant