CN106210020A - A kind of network file transmission method - Google Patents
A kind of network file transmission method Download PDFInfo
- Publication number
- CN106210020A CN106210020A CN201610522319.XA CN201610522319A CN106210020A CN 106210020 A CN106210020 A CN 106210020A CN 201610522319 A CN201610522319 A CN 201610522319A CN 106210020 A CN106210020 A CN 106210020A
- Authority
- CN
- China
- Prior art keywords
- server
- host side
- network
- time
- data bag
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of network file transmission method, network transmission environment is detected by adding extension information at FTP data packet header, FTP data bag transmission state is controlled by adding extension information in file download request header, the transmission state adjusting file data bag according to network communication state in time mates real-time network environment, thus prevent the appearance of packet drop, the present invention is fast to network condition information feedback speed, cycle is short, host side can judge timely and accurately, adjust appropriate speed, enhance the experience of user.
Description
Technical field
The invention belongs to network transmission technology field, relate to a kind of document transmission method, specifically a kind of network file passes
Transmission method.
Background technology
File transmission (file transfer) is a file or a part therein to be passed to from a computer system
Another computer system.One file or a part therein are passed to another department of computer science from a computer system
System.It going storage in file transmission to another computer, or may access the file on remote computer, or file is transmitted
Run (as a program) to another computer up or process (as data), or file transmission to printer is gone to beat
Print.Owing in networking, the file system of each computer often differs, therefore, the file transmission rule that the whole network to be set up is public
Then, referred to as file transfer protocol (FTP) (FTP).
Existing document transmission method is typically first to send a packet, and pending data bag checks whether to lose after receiving
Bag, if packet loss, retransmits, if without packet loss, continues to send, and it needs to add up a period of time, calculates packet loss, root
Determining whether to reduce speed according to packet loss, be typically required during this period of time several seconds, system recovery time is longer, and can only be
The packet loss fact is reacted after occurring, and affects the use of user.
Summary of the invention
It is an object of the invention to provide one can detect network condition in real time and adjust transmission rate according to network condition
To avoid occurring the network file transmission method of packet loss.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of network file transmission method, comprises the following steps:
Step one, host side transmission download file request is to server, and defines the mark of server transmission file data bag
Quasi-time interval T1, is marked at T1 request header extension information and is dealt into server in the lump;
Step 2, when server receives the download file request that marked time T1, extracts T1;
Step 3, server sends FTP data bag to host side after interval time T1, acquisition current time T2 simultaneously,
T2 is marked at FTP data header extension information and is sent to host side;
Step 4, server sends next FTP data bag to host side after interval time T1, when obtaining current simultaneously
Between T3, T3 is marked at FTP data header extension information send to host side;
Step 5, after host side receives the FTP data bag from server of subsidiary T2, extracts T2, then obtains the machine
Current time T4, computation delay T5=T4-T2;
Step 6, after host side receives the FTP data bag from server of subsidiary T3, extracts T3, then obtains the machine
Current time T6, computation delay T7=T6-T3;
Step 7, compares T5 and T7 size: if T5=T7, represent that network condition is unchanged, returns step 3 and continue to send;
If T5 < T7, representing that network becomes and block up, host side transmit a request to server, redefines T1=T1+T0 interval time, then returns
Return to step 2 continue to send;If T5 > T7, representing that network becomes unimpeded, host side transmit a request to server, redefines interval
Time T1=T1-T0, continues to send returning to step 2;
Wherein, described T2, T3, T4, T6 is time point, and described T0, T1, T5, T7 is the time period.
Beneficial effects of the present invention: the present invention detects network transmission by adding extension information at FTP data packet header
Environment, controls FTP data bag transmission state, according to network service shape by adding extension information in file download request header
Condition adjusts the transmission state of file data bag in time to mate real-time network environment, thus prevents the appearance of packet drop, this
Inventing network condition information feedback speed fast, the cycle is short, and host side can judge timely and accurately, adjusts appropriate speed
Rate, enhances the experience of user.
Accompanying drawing explanation
With specific embodiment, the present invention is described in further detail below in conjunction with the accompanying drawings.
Fig. 1 is the workflow diagram of the present invention.
Fig. 2 is the document transmission process schematic diagram of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, those of ordinary skill in the art obtained under not making creative work premise all other
Embodiment, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, the invention provides a kind of network file transmission method, comprise the following steps:
Step one, host side transmission download file request is to server, and defines the mark of server transmission file data bag
Quasi-time interval T1, is marked at T1 request header extension information and is dealt into server in the lump;
Step 2, when server receives the download file request that marked time T1, extracts T1;
Step 3, server sends FTP data bag to host side after interval time T1, acquisition current time T2 simultaneously,
T2 is marked at FTP data header extension information and is sent to host side;
Step 4, server sends next FTP data bag to host side after interval time T1, when obtaining current simultaneously
Between T3, T3 is marked at FTP data header extension information send to host side;
Step 5, after host side receives the FTP data bag from server of subsidiary T2, extracts T2, then obtains the machine
Current time T4, computation delay T5=T4-T2;
Step 6, after host side receives the FTP data bag from server of subsidiary T3, extracts T3, then obtains the machine
Current time T6, computation delay T7=T6-T3;
Step 7, compares T5 and T7 size: if T5=T7, represent that network condition is unchanged, returns step 3 and continue to send;
If T5 < T7, representing that network becomes and block up, host side transmit a request to server, redefines T1=T1+T0 interval time, then returns
Return to step 2 continue to send;If T5 > T7, representing that network becomes unimpeded, host side transmit a request to server, redefines interval
Time T1=T1-T0, continues to send returning to step 2;
Wherein, described T2, T3, T4, T6 is time point, and described T0, T1, T5, T7 is the time period.
Fig. 2 is the transmitting procedure schematic diagram of a kind of network file transmission method of the present invention, host side and server phase in figure
Intercommunication, time shaft vertically, and the arrow direction of horizontal direction be information transmission direction.From figure permissible
Finding out and first send file download request to server in host side, in the T2 moment, server sends FTP data bag to host side
(T2), sending FTP data bag (T3) at T3 moment server to host side, in the T4 moment, main pole termination receives server and sends
FTP data bag (T2), in the T6 moment, host side receive server send FTP data bag (T3), wherein, if host side
At T6 reception to not being FTP data bag (T3), then it represents that occurring file that packet loss occurs in transmitting procedure, host side is to clothes
Business device sends request, resends FTP data bag (T3), it is ensured that file integrity in transmitting procedure.
The present invention detects network transmission environment, by under file by adding extension information at FTP data packet header
Carry request header addition extension information and control FTP data bag transmission state, adjust number of files according to network communication state in time
Mating real-time network environment according to the transmission state of bag, thus prevent the appearance of packet drop, network condition is believed by the present invention
Breath feedback speed is fast, and the cycle is short, and host side can judge timely and accurately, adjusts appropriate speed, enhances user's
Experience.
In the description of this specification, the description of reference term " embodiment ", " example ", " concrete example " etc. means
Specific features, structure, material or feature in conjunction with this embodiment or example description is contained at least one enforcement of the present invention
In example or example.In this manual, the schematic representation to above-mentioned term is not necessarily referring to identical embodiment or example.
And, the specific features of description, structure, material or feature can be to close in any one or more embodiments or example
Suitable mode combines.
Above content is only to present configuration example and explanation, affiliated those skilled in the art couple
Described specific embodiment makes various amendment or supplements or use similar mode to substitute, without departing from invention
Structure or surmount scope defined in the claims, all should belong to protection scope of the present invention.
Claims (1)
1. a network file transmission method, it is characterised in that: comprise the following steps:
Step one, host side transmission download file request to server, and when defining the standard of server transmission file data bag
Between be spaced T1, T1 is marked at request header extension information be dealt into server in the lump;
Step 2, when server receives the download file request that marked time T1, extracts T1;
Step 3, server sends FTP data bag to host side after interval time T1, and acquisition current time T2 simultaneously, by T2
It is marked at FTP data header extension information and is sent to host side;
Step 4, server sends next FTP data bag after interval time T1 to host side, obtains current time simultaneously
T3, is marked at T3 FTP data header extension information and sends to host side;
Step 5, after host side receives the FTP data bag from server of subsidiary T2, extracts T2, then obtains the machine current
Time T4, computation delay T5=T4-T2;
Step 6, after host side receives the FTP data bag from server of subsidiary T3, extracts T3, then obtains the machine current
Time T6, computation delay T7=T6-T3;
Step 7, compares T5 and T7 size: if T5=T7, represent that network condition is unchanged, returns step 3 and continue to send;If T5
< T7 represents that network becomes and blocks up, host side transmit a request to server, redefines T1=T1+T0 interval time, again returns to
Step 2 continues to send;If T5 > T7, representing that network becomes unimpeded, host side transmit a request to server, redefines interval time
T1=T1-T0, continues to send returning to step 2;
Wherein, described T2, T3, T4, T6 is time point, and described T0, T1, T5, T7 is the time period.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610522319.XA CN106210020A (en) | 2016-07-04 | 2016-07-04 | A kind of network file transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610522319.XA CN106210020A (en) | 2016-07-04 | 2016-07-04 | A kind of network file transmission method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106210020A true CN106210020A (en) | 2016-12-07 |
Family
ID=57466092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610522319.XA Pending CN106210020A (en) | 2016-07-04 | 2016-07-04 | A kind of network file transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106210020A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111817920A (en) * | 2020-07-17 | 2020-10-23 | 济南浪潮数据技术有限公司 | Method, device and system for optimizing load of distributed storage system and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101599965A (en) * | 2009-07-02 | 2009-12-09 | 电子科技大学 | Based on the self-adaption high-speed information transmission protocol of measuring |
CN105357138A (en) * | 2015-09-30 | 2016-02-24 | 四川大学 | Self-adaptive reliable transmission method based on low priority |
CN105517665A (en) * | 2014-06-24 | 2016-04-20 | 华为技术有限公司 | Packet loss detection method, device, and system |
-
2016
- 2016-07-04 CN CN201610522319.XA patent/CN106210020A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101599965A (en) * | 2009-07-02 | 2009-12-09 | 电子科技大学 | Based on the self-adaption high-speed information transmission protocol of measuring |
CN105517665A (en) * | 2014-06-24 | 2016-04-20 | 华为技术有限公司 | Packet loss detection method, device, and system |
CN105357138A (en) * | 2015-09-30 | 2016-02-24 | 四川大学 | Self-adaptive reliable transmission method based on low priority |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111817920A (en) * | 2020-07-17 | 2020-10-23 | 济南浪潮数据技术有限公司 | Method, device and system for optimizing load of distributed storage system and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10715282B2 (en) | Method and related device for improving TCP transmission efficiency using delayed ACK | |
CN101473622B (en) | Method and system for outband identification of data network communication | |
CN101039309B (en) | Link sharing service apparatus and communication method thereof | |
CN107624231B (en) | Method, device, server and computer program product for transmitting and receiving data | |
CN103401946B (en) | HTTP uploads accelerated method and system | |
JP2011222049A5 (en) | ||
CN105138270A (en) | Data transmission mode | |
CN105376173A (en) | Sending window flow control method and terminal | |
CN105392157B (en) | A kind of method of adjustment of congestion window, relevant apparatus and system | |
CN103430489A (en) | File download method, device, and system in content delivery network | |
CN105763297A (en) | Cloud computing system-based remote data optimized transmission method and device | |
CN102404387A (en) | Method, device and equipment for information synchronization with other nodes | |
EP1975775A3 (en) | Image forming device, and method and computer program applicable to the same | |
CN101453751A (en) | Method for large file transmission under narrow-band network environment | |
CN102571545A (en) | Method and device for transmitting information in IPv4 (Internet Protocol vision 4) network | |
CN106210020A (en) | A kind of network file transmission method | |
CN104102607A (en) | CAN (controlled area network) bus driving method and system based on VxWorks operating system environment | |
CN104113510A (en) | Virtual desktop system and message data transmitting method thereof | |
CN105681225A (en) | Network resource acquisition method and device | |
CN103312621B (en) | Flow control system and flow control methods | |
CN104767590A (en) | Reliable data transmission and control method for serial communication | |
CN104486031B (en) | The long data transmission method of intelligent electric meter | |
CN106487694A (en) | A kind of data flow processing method and device | |
CN102404208A (en) | Stable network congestion control method with high-efficiency | |
CN107888508B (en) | PC-NC-based numerical control system and anti-interference weak real-time communication method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |