CN104168093A - File transmission method and device - Google Patents

File transmission method and device Download PDF

Info

Publication number
CN104168093A
CN104168093A CN201310187224.3A CN201310187224A CN104168093A CN 104168093 A CN104168093 A CN 104168093A CN 201310187224 A CN201310187224 A CN 201310187224A CN 104168093 A CN104168093 A CN 104168093A
Authority
CN
China
Prior art keywords
burst
transmission
document
state
module
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.)
Granted
Application number
CN201310187224.3A
Other languages
Chinese (zh)
Other versions
CN104168093B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310187224.3A priority Critical patent/CN104168093B/en
Priority to PCT/CN2013/089185 priority patent/WO2014187114A1/en
Publication of CN104168093A publication Critical patent/CN104168093A/en
Application granted granted Critical
Publication of CN104168093B publication Critical patent/CN104168093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/188Time-out mechanisms

Landscapes

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

Abstract

The invention relates to a file transmission method comprising the following steps: the extraction step: extracting a fragment in a file to be transmitted to a reception end; the transmission step: submitting the fragment to a queue to be transmitted and monitoring whether the fragment is transmitted successfully; the judgment step: if the fragment fails to be transmitted successfully, judging whether the retransmission times of the fragment reaches a preset time threshold value; and the retransmission step: if the retransmission times of the fragment does not reach the preset time threshold value, re-executing the transmission step after waiting for a preset time, and updating the retransmission times of the fragment. The invention further provides a file transmission device. With the file transmission method and device, the transmission success rate of the single fragment of the file can be improved, and furthermore, the transmission success rate of the file can be improved.

Description

A kind of document transmission method and device
Technical field
The present invention relates to Internet technical field, particularly a kind of document transmission method and device.
Background technology
The method of carrying out on the internet file transfer at present is normally divided into this document the burst that several sizes are identical, then these several bursts is transferred to receiving terminal in order successively.If some bursts wherein, due to some reasons (as server reason, network failure or transmit overtime etc.) bust this, can select to retransmit at once this burst.If the number of retransmissions of this burst reaches predetermined threshold value, this transmission of this document is counted out, but can again attempt transmitting this document, and after the burst of last transmission success, do breakpoint transmission when then this document last time transmits, until complete the transmission of whole file.
Under wired internet, because network quality is relatively stable, once retransmit at once the machine-processed or very effective of burst after this bust this, can promote the transmission success rate of whole file.Yet, in network quality, change under very fast mobile Internet, from malfunction, recover the time that needs cost longer than wired internet.Therefore, failed probability is very high again after retransmitting at once for burst, cannot promote the transmission success rate of whole file.
Summary of the invention
In view of this, be necessary to provide a kind of document transmission method and device, can improve the transmission success rate of the single burst of file, and then promote the transmission success rate of this document.
A document transmission method, comprises the following steps: extraction step: the file to be transmitted to receiving terminal, extract a burst; Transmitting step: this burst is committed to queue to be transmitted, and monitors whether transmission success of this burst; Determining step: if this burst transmission success not judges whether the number of retransmissions of this burst reaches default frequency threshold value; Retransmissions steps: if the number of retransmissions of this burst does not reach this frequency threshold value, re-execute this transmitting step after waiting for one section of Preset Time, and upgrade the number of retransmissions of this burst.
A file transfer means, comprising: extraction module, for extracting a burst from the file to receiving terminal to be transmitted; Transport module, for this burst is committed to queue to be transmitted, and monitors whether transmission success of this burst; Judge module, if for this burst transmission success not, judge whether the number of retransmissions of this burst reaches default frequency threshold value; Retransmission module if do not reach this frequency threshold value for the number of retransmissions of this burst, re-executes this transmitting step, and upgrades the number of retransmissions of this burst after waiting for one section of Preset Time.
With respect to prior art, the present invention, after the single burst bust this of file, will wait for a period of time and retransmit this burst again, can improve the transmission success rate of the single burst of file, and then promote the transmission success rate of this document.
For above and other object of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and coordinate appended graphicly, be described in detail below.
Accompanying drawing explanation
Environment schematic diagram when the document transmission method that Fig. 1 provides for first embodiment of the invention is carried out.
The flow chart of the document transmission method that Fig. 2 provides for first embodiment of the invention.
The flow chart of the document transmission method that Fig. 3 provides for second embodiment of the invention.
Fig. 4 checks the flow chart of the method whether file has been transmitted in Fig. 3.
The flow chart of the document transmission method that Fig. 5 provides for third embodiment of the invention.
The flow chart of the document transmission method that Fig. 6 provides for fourth embodiment of the invention.
The flow chart of the document transmission method that Fig. 7 provides for fifth embodiment of the invention.
The flow chart of the document transmission method that Fig. 8 provides for sixth embodiment of the invention.
The flow chart of the document transmission method that Fig. 9 provides for seventh embodiment of the invention.
The block diagram of the file transfer means that Figure 10 provides for eighth embodiment of the invention.
The block diagram of the file transfer means that Figure 11 provides for ninth embodiment of the invention.
The block diagram of the file transfer means that Figure 12 provides for tenth embodiment of the invention.
The block diagram of the file transfer means that Figure 13 provides for eleventh embodiment of the invention.
The block diagram of the file transfer means that Figure 14 provides for twelveth embodiment of the invention.
The block diagram of the file transfer means that Figure 15 provides for thriteenth embodiment of the invention.
Embodiment
For further setting forth the present invention, realize technological means and the effect that predetermined goal of the invention is taked, below in conjunction with accompanying drawing and preferred embodiment, to according to the specific embodiment of the present invention, structure, feature and effect thereof, be described in detail as follows.
The first embodiment
First embodiment of the invention provides a kind of document transmission method, and it can be carried out by a transmitting terminal, for file being sent to a receiving terminal.Above-mentioned transmitting terminal and receiving terminal are for example computer, mobile electronic terminal or other similar arithmetic units.Consult shown in Fig. 1, it is the above-mentioned document transmission method environment schematic diagram while carrying out.Transmitting terminal 110 is connected with receiving terminal 120 by network 10.This network 10 can be internetwork connection mode arbitrarily, such as the Internet (Internet), mobile Internet (2G, the 3G network that provide as telecom operators), local area network (LAN) (wired or wireless) etc.
Below in conjunction with specific embodiment, above-mentioned document transmission method is described in detail as follows:
The flow chart of the document transmission method that Fig. 2 provides for the first embodiment, this document transmission method comprises the following steps:
Step S101, extracts a burst the file to be transmitted to receiving terminal 120;
Step S102, is committed to queue to be transmitted by this burst, and monitors whether transmission success of this burst;
Step S103, if this burst transmission success not judges whether the number of retransmissions of this burst reaches default frequency threshold value;
Step S104 if the number of retransmissions of this burst does not reach this frequency threshold value, re-executes described step S102, and upgrades the number of retransmissions of this burst after waiting for one section of Preset Time.
According to above-mentioned document transmission method, after the single burst bust this of file, to wait for a period of time and retransmit again this burst, once just retransmit at once the mode of burst than traditional bust this, the method can improve the transmission success rate of the single burst of file, and then promotes the transmission success rate of this document.
In some instances, each step of said method to realize details as follows:
File described in step S101 can be picture, document, video etc.In the present embodiment, can from this document, extract burst according to fixing burst size.If transmit first this document, the starting point that the first byte of this document of take is first burst is extracted this first burst, when this first burst is successfully transferred to after this receiving terminal 120, then the starting point of next burst is set according to this fixing burst size, and the rest may be inferred.If again transmit this document after failure, the starting point that the first byte of this document of still take is first burst is extracted this first burst.When this first burst is successfully transferred to after this receiving terminal 120, receive the successfully byte number of this document of reception that this receiving terminal 120 returns, this byte number again receiving terminal 120 being returned is made as the starting point of next burst, to realize, be connected on that success has been transmitted burst is follow-up resumes defeated this document, i.e. " breakpoint transmission ".
In step S102, this transmitting terminal 110 and this receiving terminal 120 can be to connect based on transmission control protocol (Transmission Control Protocol, TCP).Accordingly, described queue to be transmitted can be the output buffer of TCP.A minute sector-meeting that is positioned at this output buffer transfers to operating system to complete the transmission of physical layer.Concrete physical layer process of transmitting is controlled by operating system, does not repeat them here.
In the present embodiment, can also first to this burst and this document, be encrypted, for example use MD5(Message-Digest Algorithm5, Message Digest Algorithm 5) cryptographic algorithm is processed, then the secret value of this burst and secret value and this document is packaged into a packet and is committed to this queue to be transmitted, to guarantee this burst and the file integrality in transmitting procedure.
Whether transmission success can adopt setting not receive the method for the time-out time of return information to monitor this burst.In the time-out time setting, if do not receive the return information that this receiving terminal 120 returns, judge this burst bust this.If receive the return information that this receiving terminal 120 returns in the time-out time setting, according to this return information, judge whether transmission success of this burst.
The number of times that number of retransmissions described in step S103 is transmitted for being again committed to this queue to be transmitted after the each bust this of this burst.When a burst is transmitted first, the number of retransmissions of this burst is initialized as to zero, while again transmitting afterwards, by the number of retransmissions of this burst of accumulative total after this burst bust this.If the number of retransmissions of this burst reaches this frequency threshold value, judge this document bust this, can finish transmission or again transmit this document.
Preset Time described in step S104 extends the increase of the number of retransmissions along with this burst.Extend this Preset Time and can adopt the method for exponential backspace, for example first arrange one fiducial time Ti, suppose that the number of retransmissions of this burst is C, and this Preset Time is T0, the computing formula of this T0 can be: T0=Ti*2^ (C-1).After the bust this first of this burst, wait for this fiducial time and retransmit again after Ti that if bust this again after retransmitting current waits for that the rest may be inferred than retransmitting this burst after the time of this fiducial time of many one times of Ti again again.Owing to returning to normal condition from malfunction under the poor the Internet of network quality, need to spend the more time, after the wait of Preset Time, retransmit this burst, the transmission success rate that can make this burst is higher compared to retransmitting at once this burst after bust this again.
The second embodiment
In order to realize the complete transmission of file, consult shown in Fig. 3, the second embodiment provides a kind of document transmission method, and it further comprises after described step S102 than the document transmission method of the first embodiment:
Step S105, if this burst transmission success checks whether this document is transmitted, if this document is not transmitted, returns to step S101, if this document is transmitted, judges this document transmission success.Particularly, consult shown in Fig. 4, the step whether described inspection this document has been transmitted comprises:
Step S105.1, receives the return information that this receiving terminal 120 returns, and this return information comprises that this receiving terminal 120 has received the summation of all burst sizes of this document.
Step S105.2, judges that this receiving terminal 120 has received the summation of all burst sizes of this document and whether the size of this document equates, if so, judges that this document is transmitted, if not, judges that this document is not transmitted.
Through above-mentioned flow process, can determine whether this document is transmitted, if this document is not transmitted, continues to extract next burst and transmit from this document, until file transfer completes.
The 3rd embodiment
The document transmission method providing according to the first embodiment is transfer files on the internet, is according to fixing burst size, to extract burst from this document to transmit successively.Yet under the network of different quality and bandwidth, when the size of file fragmentation only reaches some values, transmission rate just can reach the maximum under this network.Therefore,, while adopting the burst of fixed size to transmit, if network quality is fine, and the size of burst relatively hour, just may limit transmission rate.Especially in the network bandwidth and the frequent mobile Internet changing of quality, if the size of burst is improper, will make network can not bring into play maximum transmittability, cannot promote the transmission speed of file.
For further addressing the above problem, to consult shown in Fig. 5, third embodiment of the invention provides a kind of document transmission method, and it is than the document transmission method of the first embodiment, and described step S101 further comprises:
Step S201, obtains that in this document, at least one has completed the transformation parameter of the burst of transmission, and this transformation parameter comprises burst size and transmission rate;
Step S202, according to this, at least one has completed the transformation parameter computation rate variability index of the burst of transmission, and this rate variation index characterizes transmission rate with respect to the speed of this burst size variation;
Step S203, judges whether this rate variation index is less than default first threshold, and if so, upgrading current transmission state is a different state;
Step S204, obtain with deserve before coefficient corresponding to transmission state, and the size of setting current burst to be transmitted is in this document, to complete recently the burst size of transmission and the product of this coefficient;
Step S205 intercepts current burst waiting for transmission according to the size of this current burst to be transmitted setting and transmits from this document.
According to above-mentioned document transmission method, according to the transformation parameter size of the current burst to be transmitted of enactment document dynamically that has completed the burst of transmission in file, can make the size of burst to be transmitted before deserving can adapt to the requirement of network quality and bandwidth, thereby promote the effective bandwidth of network when transfer files and the transmission speed of file.
In some instances, each step of said method to realize details as follows:
Size and transmission time that transmission rate described in step S201 can complete the burst of transmission according to each calculate.This transmission time refers to that corresponding burst receives the expression that this receiving terminal 120 replys and receives the time period successful information from sending to.Calculate after this transmission rate, can also use predefined smoothing factor to carry out smoothing processing to this transmission rate.
Rate variation index described in step S202 characterizes transmission rate with respect to the speed of this burst size variation, and at this, at least one has completed in the burst of transmission, when burst size variation, and the corresponding situation of change of transmission rate of burst.When burst size increases with certain growth rate, this transmission rate also has corresponding lifting, illustrates that now the growth rate of burst size can meet the requirement that this transmission rate promotes.And when burst size increases with this growth rate, this transmission rate is corresponding lifting not, illustrate that now the growth rate of burst size can not meet the requirement that transmission rate promotes, need to slow down the growth rate of burst size or keep burst size constant.
Whether the first threshold described in step S203 can meet for defining the growth rate of burst size the requirement that transmission rate promotes.Described current transmission state represents the growth rate of this burst size.In the present embodiment, deserve front transmission state and comprise the first state, the second state and the third state.Each state corresponding one for representing the coefficient of the growth rate of burst size.Wherein, this first state and coefficient corresponding to the second state are greater than 1, and coefficient corresponding to the first state be greater than the coefficient that the second state is corresponding, represent that the growth rate of burst size under the first state will be higher than the growth rate of burst size under the second state.Coefficient corresponding to this third state is 1, represents that under the third state, burst size remains unchanged.
Particularly, step S203 also comprises and determines current transmission state, if this rate variation index is less than this first threshold, and current transmission state is this first state, and upgrading current transmission state is this second state, slows down the growth rate of this burst size.If this rate variation index is less than this first threshold, and current transmission state is this second state, upgrades current transmission state for this third state, further slows down the growth rate of this burst size.
Step S204 obtain with upgrade after deserve before coefficient corresponding to transmission state, and the size of setting current burst to be transmitted completes the burst size of transmission and the product of this coefficient recently for this.If transmission state be the first state or the second state before deserving, at this, complete recently on the basis of burst size of transmission corresponding increase to set the size of burst to be transmitted.If transmission state is the third state before deserving, the size of setting burst to be transmitted is identical with the burst size that this completes transmission recently.
Step S205 intercepts current burst waiting for transmission according to the size of this current burst to be transmitted setting from this document, then carries out described step S102 to transmit this burst.
The 4th embodiment
Consult shown in Fig. 6, fourth embodiment of the invention provides a kind of document transmission method, document transmission method than the 3rd embodiment, update condition to transmission state before deserving has been made further restriction, so that the size of the burst to be transmitted setting adapts to the transmittability of network more, thus the transmission speed of lifting file.
Than the document transmission method of the 3rd embodiment, the document transmission method of the present embodiment further comprises:
Step S200, before carrying out described step S201, judge whether current burst waiting for transmission is the first burst of this document, if the first burst that current burst waiting for transmission is this document, perform step S206, if current burst waiting for transmission is not the first burst of this document, carry out described step S201.
Step S206, the size of setting current burst to be transmitted is the default value of burst size under current network type (the 2G/3G network providing such as telecom operators, WIFI network etc.), and should be updated to this first state by front transmission state, then perform step S205.
Step S207, before carrying out described step S203, determines and deserves whether front transmission state is this first state or the second state.If current state is the first state or the second state, perform step S208.If current state is the third state, perform step S209.
Step S208, at least one has completed in the burst of transmission to judge this, and whether the access times of every kind of burst size reach respectively default Second Threshold (for example 2 times).If the access times of this every kind burst size reach this Second Threshold, carry out described step S203, if the access times of this every kind burst size do not reach this Second Threshold, carry out described step S204.
Step S209, add up this at least one completed the burst of transmission transmission rate exceed continuously the number of times of preset range, and whether the number of times that judgement is added up reaches the 3rd default threshold value.If the number of times of adding up does not reach the 3rd threshold value, carry out described step S204.If the number of times of adding up reaches the 3rd threshold value, carry out described step S206.
It should be noted that, because the size of file part to be sent may be not enough to intercept current burst waiting for transmission according to the size of the current burst to be transmitted setting from this document, or the size at the current burst to be transmitted according to setting intercepts after current burst waiting for transmission from this document, the size of file part to be sent is less, need not again file part to be sent be transmitted as next burst, therefore, described step S204 and step S206 may further include: whether the size that judges this document part to be sent is less than the 4th default threshold value.If the size of this document part to be sent is less than the 4th threshold value, the size of setting current burst to be transmitted is the size of this document part to be sent, and then carries out described step S205.If the size of this document part to be sent is not less than the 4th threshold value, directly carry out this step S205.
According to the document transmission method of this enforcement, the update condition of transmission state before deserving has been made to further restriction, can make the size of the burst to be transmitted that sets more adapt to the transmittability of network, thereby promote the transmission speed of file.
The 5th embodiment
Consult shown in Fig. 7, fifth embodiment of the invention provides a kind of document transmission method, and it further proposes a kind of concrete implementation to described step S101 than the document transmission method of the 4th embodiment.First establishing in obtained this document at least one transformation parameter that has completed the burst of transmission comprises: the big or small S of the first burst of this document 1, at this burst size S 1under the smooth value V of transmission rate 1, complete recently the burst size S of transmission n, at this burst size S nunder the smooth value V of transmission rate s, with this burst size S ndifferent and at this burst size S nthe burst size S before transmitting recently 0, at this burst size S 0under the smooth value V of transmission rate 0.If the size of this current burst to be transmitted is S n+1, the present embodiment is than the document transmission method of the 4th embodiment, and described step S101 further comprises:
Step S11, judges this S nwhether be 0.If S nbe not 0, illustrate that current burst waiting for transmission is not the first burst of this document, enters step S12.If S nbe 0, the first burst that current burst waiting for transmission is this document is described, enter step S25.
Step S12, upgrades this S naccess times N.
Step S13, according to this obtained S 1, V 1, S n, V s, S 0and V 0calculate this rate variation index S.The formula that calculates this S is: S=[(V s-V 0)/V 1]/[(S n-S 0)/S 1].
Step S14, determines current transmission state.If current transmission state is this first state, enter step S15.If transmission state is this second state before deserving, enter step S18.If current transmission state is this third state, enter step S21.
Step S15, judges whether this S naccess times N equal default Second Threshold Nmax, and this rate variation index S calculating is less than default first threshold Smin.If so, enter step S16, if not, enter step S17.
Step S16, upgrading current transmission state is the second state, sets S n+1be coefficient B and the S that the second state is corresponding nproduct, then enter step S27.
Step S17, sets S n+1be coefficient A and the S that the first state is corresponding nproduct, then enter step S27.
Step S18, judges whether this S naccess times N equal default Second Threshold Nmax, and this rate variation index S calculating is less than default first threshold Smin.If so, enter step S19, if not, enter step S20.
Step S19, upgrading current transmission state is the third state, sets S n+1with S nequate, then enter step S27.
Step S20, sets S n+1be coefficient B and the S that the second state is corresponding nproduct, then enter step S27.
Step S21, judgement V swith the reference speed rate V under the third state stablebetween difference whether be less than the 3rd default threshold value.If not, illustrate that this transmission rate that completes recently the burst of transmission exceeds this preset range, enters step S22.If so, illustrate that this transmission rate that completes recently the burst of transmission does not exceed this preset range, enters step S23.The 3rd threshold value can be this reference speed rate V stableproduct with certain percentage constant D.
Step S22, upgrades the number of times M that this transmission rate that completes recently the burst of transmission exceeds this preset range, on the basis of this M, adds 1.
Step S23, the transmission rate that this is completed to the burst of transmission recently exceeds the number of times M zero clearing of this preset range.
Step S24, judges whether the number of times M that this transmission rate that completes recently the burst of transmission exceeds this preset range reaches the 4th default threshold value Mmax.If so, enter step S25.If not, enter step S26.
Step S25, upgrading current transmission state is the first state, sets S n+1with S 1equate, then enter step S27.
Step S26, sets S n+1with S nequate.
Step S27, judges whether the big or small Fs of this document part to be sent is less than the 4th default threshold value F.If so, enter step S28.If not, enter step S29.
Step S28, sets S n+1equate with Fs.
Step S29, returns to the S setting n+1, according to the S setting n+1burst size from this document, intercept current burst waiting for transmission to transmit.
The 6th embodiment
The document transmission method providing according to the first embodiment is transfer files on the internet, is adopt to set the time-out time of not receiving return information to monitor whether transmission success of burst.This time-out time is generally fixed value or the dynamic value estimating according to the average bandwidth of burst size and different the Internets or nearest historical bandwidth measured data.
Yet, because mobile Internet is that non-WIFI network of network mass change is very fast and amplitude is very large especially, the cable network that is far from is so stable, and in the time of the overwhelming majority, the actual bandwidth under a certain mobile Internet all has very large gap with the average bandwidth that statistics obtains.Therefore use the time-out time estimating according to the average bandwidth of burst size and the Internet, in the actual transmissions process of file fragmentation, will be very easy to overtime.And be " discontinuous ", " saltus step " soon and often because the network quality of mobile Internet changes, the bandwidth of the eve measuring according to history is difficult to go to estimate as a foundation bandwidth at rear a moment.Therefore, with setting this time-out time, monitor whether transmission success of burst, easily cause the transmission failure rate of the single burst of file very high.In addition, owing to reaching time-out time, declare after the burst bust this of file, data still can be through the complete transmitting procedure that just can finish this burst of Internet Transmission, causes the flow that the whole process of transmitting of this burst produces all because of the result of bust this, to slattern.
For further addressing the above problem, to consult shown in Fig. 8, sixth embodiment of the invention provides a kind of document transmission method, and it is than the document transmission method of the first embodiment, and described step S102 further comprises:
Step S301 is committed to the burst extracting from this document in this queue to be transmitted in a host process;
Step S302, continues to wait for interrupt signal;
Step S303, whether within a predetermined period of time have upstream volume production raw, if not, send interrupt latency request, and add the information that this host process does not produce upstream data flow within a predetermined period of time in this interrupt latency request if monitoring this host process;
Step S304, if receive the return information that this interrupt latency request or this receiving terminal return, finishes this step S302.
According to the document transmission method of the present embodiment, the duration that adopts monitoring host process not produce upstream data flow judges whether transmission success of burst, than the overtime processing mode of traditional transmission, can adapt to better unsettled network environment as mobile Internet, improve the success rate of burst transmission, and reduce the flow waste causing due to timeout issue in burst transmitting procedure.
In some instances, each step of said method to realize details as follows:
Host process described in step S301 refers to the process that will transmit this burst.For example, the process at a certain file transfer applications place.This burst can be packaged into network packet according to HTML (Hypertext Markup Language) (HyperText Transfer Protocol, HTTP).
Interrupt signal described in step S302 comprises return information that described interrupt latency request or receiving terminal 120 return etc.In addition,, in the process of carrying out at step S302, can also interrupt the execution of host process.
Step S303 can carry out in being different from a new monitoring process of this host process.Described predetermined amount of time is the network timeout period that can allow, and it can be set according to concrete needs, for example, can select 5 seconds.Described upstream data flow is that host process is submitted to this burst after this queue to be transmitted, and this queue to be transmitted transfers to operating system to be gone out and produced by Internet Transmission this burst.
If host process does not produce upstream data flow in this predetermined amount of time, illustrate that host process is passed Internet Transmission without any a byte and goes out in this predetermined amount of time, mean this this burst bust this, therefore need to send this interrupt latency request so that host process stops waiting for interrupt signal.After sending this interrupt latency request, this step S303 finishes.
If host process has upstream volume production raw in this predetermined amount of time, illustrate that host process has data to be passed Internet Transmission and goes out in this predetermined amount of time, mean that this burst is just in process of transmitting.The anxiety producing due to wait for fear of user, if host process has upstream volume production raw in this predetermined amount of time, step S303 can also point out user's this document to send by modes such as animation, words.
In step S304, if owing to receiving this interrupt latency request end step S302, according to this host process additional in this interrupt latency request, do not produce within a predetermined period of time the information of upstream data flow, return to the transmission result of this burst bust this.If owing to receiving the return information that receiving terminal 120 returns and end step S302 judges according to this return information whether this receiving terminal 120 successfully receives this burst.If this burst of the unsuccessful reception of this receiving terminal 120, also returns to the transmission result of this burst bust this.If this receiving terminal 120 successfully receives this burst, return to the transmission result of this burst transmission success.After receiving the return information that this receiving terminal 120 returns, trigger step S303 and finish.
In addition, after step S302, can also there is a monitoring whether Network Abnormal occurs, such as network, connect the step of Network Abnormals such as disconnecting, network connection is restricted.If there is this Network Abnormal, end step S302 and step S303, and return to the transmission result of this burst bust this.
The 7th embodiment
Consult shown in Fig. 9, seventh embodiment of the invention provides a kind of document transmission method, it further proposes a kind of implementation to described step S303 than the document transmission method of the 6th embodiment: by periodically monitoring the upstream data flow of this host process, judge whether host process has upstream volume production raw within a predetermined period of time.Particularly, this step S303 comprises:
Step S1, starts described monitoring process, and recording the upstream data flow that this host process produced is TBo.Start a counter, it is zero that the initial value of the value T of this counter is composed, and this counter does not carry out timing for host process being produced to the duration of upstream data flow.Start a timer (Timer), this timer triggers a step S2 for every through one section of preset time t.
Step S2, when being triggered by this timer, records the upstream data flow TBn that host process has produced, and obtains the upstream data flow TBo that the last host process being recorded while being triggered by this timer has produced.If the upstream data flow TBo that this host process recording while for being triggered by this timer for the first time, obtaining this monitoring process startup has produced.
Step S3, whether the judgement upstream data flow TB that host process produces in this is timed the preset time t before device triggers is zero, this TB can draw by solving the difference of described TBn and TBo.If this TB is non-vanishing, perform step S4, if this TB is zero, perform step S5.
Step S4, by the value T zero clearing of counter, and points out user's this document to send.The non-vanishing explanation of this TB host process in this is timed the preset time t before device triggers has upstream volume production raw, this document sends, therefore need to be by the value T zero clearing of this counter, so that the duration that this host process is not produced to upstream data flow re-starts timing.
Step S5, is updated to T+t by the value T of counter, and judges whether the value T after counter upgrades is less than preset upper limit threshold value Tmax.The integral multiple that this preset upper limit threshold value Tmax is described preset time t.If T is less than this Tmax, return to step S2.If T is not less than this Tmax, perform step S6.
Step S6, sends this interrupt latency request, and adds the information that this host process does not produce upstream data flow within a predetermined period of time in this interrupt latency request.This predetermined amount of time is from current time to be lighted, the time period of this preset upper limit threshold value of just passing by (for example 5 seconds).
In sum, on the basis of the document transmission method of the 6th embodiment, the document transmission method that the present embodiment provides can further judge by periodically monitoring the upstream data flow of this host process whether host process has upstream volume production raw within a predetermined period of time.
The 8th embodiment
Consult shown in Figure 10, eighth embodiment of the invention provides a kind of file transfer means 100, comprises extraction module 101, transport module 102, judge module 103 and retransmission module 104.Be appreciated that each above-mentioned module refers to computer program or program segment, for carrying out certain one or more specific function.In addition, the differentiation of above-mentioned each module does not represent that actual program code also must separate.
Extraction module 101, for extracting a burst from the file to receiving terminal to be transmitted.
Transport module 102, for this burst is committed to queue to be transmitted, and monitors whether transmission success of this burst.In the present embodiment, can also first to this burst and this document, be encrypted, then the secret value of this burst and secret value and this document is packaged into a packet and is committed to this queue to be transmitted, to guarantee this burst and the file integrality in transmitting procedure.
Judge module 103, if for this burst transmission success not, judge whether the number of retransmissions of this burst reaches default frequency threshold value.If the number of retransmissions of this burst reaches this frequency threshold value, judge this document bust this, can finish transmission or again transmit this document.
Retransmission module 104 if do not reach this frequency threshold value for the number of retransmissions of this burst, re-executes this transport module 102, and upgrades the number of retransmissions of this burst after waiting for one section of Preset Time.Described Preset Time extends the increase of the number of retransmissions along with this burst.
For the specific works process of above each module, the document transmission method that can provide with further reference to first embodiment of the invention, no longer repeats at this.
In sum, the file transfer means 100 of the present embodiment, after the single burst bust this of file, to wait for a period of time and retransmit again this burst, once just retransmit at once the mode of burst than traditional bust this, the method can improve the transmission success rate of the single burst of file, and then promotes the transmission success rate of this document.
The 9th embodiment
Consult shown in Figure 11, ninth embodiment of the invention provides a kind of file transfer means 200, and it,, than the file transfer means 100 of the 8th embodiment, also comprises:
Checking module 105, if for this burst transmission success, checks whether this document is transmitted.If this document is not transmitted, carry out described extraction module 101.If this document is transmitted, judge this document transmission success.
Particularly, this checking module 105 first receives the return information that this receiving terminal 120 returns, and this return information comprises that this receiving terminal 120 has received the summation of all burst sizes of this document.Then, checking module 105 judges that this receiving terminal 120 has received the summation of all burst sizes of this document and whether the size of this document equates, if so, judges that this document is transmitted, if not, judges that this document is not transmitted.
For the specific works process with upper module, the document transmission method that can provide with further reference to second embodiment of the invention, no longer repeats at this.
In sum, the file transfer means 200 of the present embodiment, can determine whether this document is transmitted, if this document is not transmitted, continues to extract next burst and transmit from this document, until file transfer completes.
The tenth embodiment
Consult shown in Figure 12, tenth embodiment of the invention provides a kind of file transfer means 300, and it is than the file transfer means 100 of the 8th embodiment, and described extraction module 101 further comprises:
Acquisition module 301, for obtaining this document, at least one has completed the transformation parameter of the burst of transmission, and this transformation parameter comprises burst size and transmission rate.Size and transmission time that described transmission rate can complete the burst of transmission according to each calculate.Calculate after this transmission rate, can also use predefined smoothing factor to carry out smoothing processing to this transmission rate.
Computing module 302, for according to this, at least one has completed the transformation parameter computation rate variability index of the burst of transmission, this rate variation index characterizes transmission rate with respect to the speed of this burst size variation.
The first judge module 303 is a different state for judging whether this rate variation index is less than default first threshold, if so, upgrading current transmission state.In the present embodiment, deserve front transmission state and comprise the first state, the second state and the third state.Each state corresponding one for representing the coefficient of the growth rate of burst size.Wherein, this first state and coefficient corresponding to the second state are greater than 1, and coefficient corresponding to the first state is greater than the coefficient that the second state is corresponding.Coefficient corresponding to this third state is 1.Particularly, if this rate variation index is less than this first threshold, and current transmission state is this first state, and upgrading current transmission state is this second state.If this rate variation index is less than this first threshold, and current transmission state is this second state, upgrades current transmission state for this third state.
The first setting module 304, for obtain with deserve before coefficient corresponding to transmission state, and the size of setting current burst to be transmitted is in this document, to complete recently the burst size of transmission and the product of this coefficient.
Interception module 305, intercepts current burst waiting for transmission for the size of this current burst to be transmitted according to setting from this document, then carries out this transport module 102 to transmit this burst.
For the specific works process of above each module, the document transmission method that can provide with further reference to third embodiment of the invention, no longer repeats at this.
In sum, the file transfer means 300 of the present embodiment, according to the transformation parameter size of the current burst to be transmitted of enactment document dynamically that has completed the burst of transmission in file, can make the size of burst to be transmitted before deserving can adapt to the requirement of network quality and bandwidth, thereby promote the effective bandwidth of network when transfer files and the transmission speed of file.
The 11 embodiment
Consult shown in Figure 13, eleventh embodiment of the invention provides a kind of file transfer means 400, it is than the file transfer means 300 of the tenth embodiment, and described extraction module 101 further comprises the second judge module 306, the second setting module 307, determination module 308, the 3rd judge module 309 and the 4th judge module 310.
The second judge module 306, for before carrying out described acquisition module 301, judges whether current burst waiting for transmission is the first burst of this document.If the first burst that current burst waiting for transmission is this document, carries out the second setting module 307.If current burst waiting for transmission is not the first burst of this document, carry out acquisition module 301.
The second setting module 307, is the default value of burst size under current network type for setting the size of current burst to be transmitted, and should be updated to this first state by front transmission state, then carries out interception module 305.
Determination module 308, for before carrying out the first judge module 303, determines whether current transmission state is the first state or the second state.If transmission state is this first state or the second state before deserving, carry out the 3rd judge module 309.If current transmission state is the third state, carry out the 4th judge module 310.
The 3rd judge module 309, for judging this, at least one has completed the burst of transmission, and whether the access times of every kind of burst size reach respectively default Second Threshold.If the access times of this every kind burst size reach this Second Threshold, carry out the first judge module 303.If the access times of this every kind burst size do not reach this Second Threshold, carry out the first setting module 304.
The 4th judge module 310, for add up this at least one completed the burst of transmission transmission rate exceed continuously the number of times of preset range, and whether the number of times that judgement is added up reaches the 3rd default threshold value.If the number of times of adding up does not reach the 3rd threshold value, carry out the first setting module 304.If the number of times of adding up reaches the 3rd threshold value, carry out the second setting module 307.
In addition, the first described setting module 304 and the second setting module 307 are also for further judging whether the size of this document part to be sent is less than the 4th default threshold value, if, the size of setting current burst to be transmitted is the size of this document part to be sent, and then carries out described interception module 305.If not, directly carry out this interception module 305.
For the specific works process of above each module, the document transmission method that can provide with further reference to fourth embodiment of the invention, no longer repeats at this.
In sum, 400 pairs of file transfer means of this enforcement deserve before the update condition of transmission state made further restriction, can make the size of the burst to be transmitted that sets more adapt to the transmittability of network, thereby promote the transmission speed of file.
The 12 embodiment
Consult shown in Figure 14, twelveth embodiment of the invention provides a kind of file transfer means 500, and it is than the file transfer means 100 of the 8th embodiment, and described transport module 102 further comprises:
Submit module 501 to, for the burst extracting from this document being committed to this queue to be transmitted in a host process.
Wait for module 502, for continuing to wait for interrupt signal.
The first monitoring module 503, whether be used for monitoring this host process has upstream volume production raw within a predetermined period of time, if not, send interrupt latency request, and add the information that this host process does not produce upstream data flow within a predetermined period of time in this interrupt latency request.
After sending this interrupt latency request, whether this first monitoring module 503 will stop monitoring this host process has upstream volume production raw within a predetermined period of time.If monitor host process, have within a predetermined period of time upstream volume production raw, the first monitoring module 503 can also point out user's this document to send by modes such as animation, words.In the present embodiment, this first monitoring module 503 can be carried out in being different from a new monitoring process of this host process.
The second monitoring module 504, if the return information returning for receiving this interrupt latency request or this receiving terminal triggers this wait module 502 and stops waiting for this interrupt signal.
If trigger this wait module 502 and stop waiting for interrupt signal owing to receiving this interrupt latency request, according to this host process additional in this interrupt latency request, do not produce within a predetermined period of time the information of upstream data flow, return to the transmission result of this burst bust this.
If trigger this wait module 102 and stop waiting for interrupt signal owing to receiving return information that receiving terminal 120 returns, judge according to this return information whether this receiving terminal 120 successfully receives this burst.If this burst of the unsuccessful reception of this receiving terminal 120, also returns to the transmission result of this burst bust this.If this receiving terminal 120 successfully receives this burst, return to the transmission result of this burst transmission success.In addition,, after receiving the return information that this receiving terminal 120 returns, whether this second monitoring module 504 also stops this first monitoring module 503 of triggering to monitor this host process has upstream volume production raw within a predetermined period of time.
In addition, this document transmitting device 500 can also comprise the 3rd monitoring module 505, and for waiting for that module 502 continues to wait for the process of interrupt signal, whether monitoring Network Abnormal occurs.If monitor generation Network Abnormal, trigger this wait module 502 and stop waiting for interrupt signal, and trigger this first monitoring module 503 and finish these host processes of monitoring and whether have within a predetermined period of time upstream volume production raw, and return to the transmission result of this burst bust this.
For the specific works process of above each module, the document transmission method that can provide with further reference to sixth embodiment of the invention, no longer repeats at this.
In sum, the file transfer means 500 of the present embodiment, the duration that adopts monitoring host process not produce upstream data flow judges whether transmission success of burst, than the overtime processing mode of traditional transmission, can adapt to better unsettled network environment as mobile Internet, improve the success rate of burst transmission, and reduce the flow waste causing due to timeout issue in burst transmitting procedure.
The 13 embodiment
Consult shown in Figure 15, thriteenth embodiment of the invention provides a kind of file transfer means 600, and it is than the file transfer means 500 of the 12 embodiment, and the first described monitoring module 503 comprises:
Promoter module 5031, for starting described monitoring process, recording the upstream data flow that this host process produced is TBo, start a counter, it is zero that the initial value of the value T of this counter is composed, start a timer (Timer), this timer triggers and once obtains submodule 5032 through one section of preset time t for every.
Obtain submodule 5032, for when being triggered by this timer, record the upstream data flow TBn that host process has produced, and obtain the upstream data flow TBo that the last host process being recorded while being triggered by this timer has produced.If the upstream data flow TBo that this host process recording while for being triggered by this timer for the first time, obtaining this monitoring process startup has produced.
Judgement submodule 5033, for judging whether the upstream data flow TB that host process produces in this is timed the preset time t before device triggers is zero, and this TB can draw by solving the difference of described TBn and TBo.
Prompting submodule 5034, if non-vanishing for this TB, by the value T zero clearing of counter, and points out user's this document to send.
Upgrade submodule 5035, if be zero for this TB, the value T of counter is updated to T+t, and judge whether the value T after counter upgrades is less than preset upper limit threshold value Tmax.If T is less than this Tmax, re-executes this and obtain submodule 5032.
Send submodule 5036, if be not less than this Tmax for T, send this interrupt latency request, and add the information that this host process does not produce upstream data flow within a predetermined period of time in this interrupt latency request.
For the specific works process of above each module, the document transmission method that can provide with further reference to seventh embodiment of the invention, no longer repeats at this.
In sum, compared to the file transfer means 500 of the 12 embodiment, the file transfer means 600 that the present embodiment provides can further judge by periodically monitoring the upstream data flow of this host process whether host process has upstream volume production raw within a predetermined period of time.
In addition, the embodiment of the present invention also provides a kind of computer-readable recording medium, is stored with computer executable instructions, and above-mentioned computer-readable recording medium is for example for example CD, hard disk or flash memory of nonvolatile memory.Above-mentioned computer executable instructions is for allowing computer or similar arithmetic unit complete the various operations of above-mentioned document transmission method.
The above, it is only preferred embodiment of the present invention, not the present invention is done to any pro forma restriction, although the present invention discloses as above with preferred embodiment, yet not in order to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, when can utilizing the technology contents of above-mentioned announcement to make a little change or being modified to the equivalent embodiment of equivalent variations, in every case be not depart from technical solution of the present invention content, any brief introduction of above embodiment being done according to technical spirit of the present invention is revised, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.

Claims (46)

1. a document transmission method, is characterized in that, the method comprises the following steps:
Extraction step: extract a burst the file to be transmitted to receiving terminal;
Transmitting step: this burst is committed to queue to be transmitted, and monitors whether transmission success of this burst;
Determining step: if this burst transmission success not judges whether the number of retransmissions of this burst reaches default frequency threshold value; And
Retransmissions steps: if the number of retransmissions of this burst does not reach this frequency threshold value, re-execute this transmitting step after waiting for one section of Preset Time, and upgrade the number of retransmissions of this burst.
2. document transmission method as claimed in claim 1, is characterized in that, this Preset Time extends along with the increase of this number of retransmissions.
3. document transmission method as claimed in claim 1, is characterized in that, described determining step also comprises:
If the number of retransmissions of this burst reaches this frequency threshold value, this document bust this.
4. document transmission method as claimed in claim 1, is characterized in that, also comprises inspection step:
If this burst transmission success, checks whether this document is transmitted;
If this document is not transmitted, return to this extraction step; And
If this document is transmitted, this document transmission success.
5. document transmission method as claimed in claim 4, is characterized in that, the step whether described inspection this document has been transmitted comprises:
Receive the return information that this receiving terminal returns, this return information comprises that this receiving terminal has received the summation of all burst sizes of this document; And
If this receiving terminal has received the summation of all burst sizes of this document and the equal and opposite in direction of this document, judge that this document is transmitted.
6. document transmission method as claimed in claim 1, is characterized in that, in described transmitting step, the step that this burst is committed to queue to be transmitted comprises:
This burst and this document are encrypted respectively;
The secret value of this burst and secret value and this document is packaged into a packet, then this packet is committed to this queue to be transmitted.
7. document transmission method as claimed in claim 1, is characterized in that, described extraction step comprises:
Obtaining step: obtain that in this document, at least one has completed the transformation parameter of the burst of transmission, this transformation parameter comprises burst size and transmission rate;
Calculation procedure: at least one has completed the transformation parameter computation rate variability index of the burst of transmission according to this, this rate variation index characterizes transmission rate with respect to the speed of this burst size variation;
The first determining step: judge whether this rate variation index is less than default first threshold, if so, upgrading current transmission state is a different state;
First sets step: obtain with deserve before coefficient corresponding to transmission state, and the size of setting current burst to be transmitted is in this document, to complete recently the burst size of transmission and the product of this coefficient; And
Intercepting step: intercept current burst waiting for transmission according to the size of this current burst to be transmitted setting from this document and transmit.
8. document transmission method as claimed in claim 7, is characterized in that, described obtaining step also comprises:
This transmission rate is carried out to smoothing processing.
9. document transmission method as claimed in claim 7, it is characterized in that, described current transmission state comprises the first state, the second state and the third state, wherein the first state and coefficient corresponding to the second state are greater than 1, and the coefficient that the first state is corresponding is greater than the coefficient that the second state is corresponding, coefficient corresponding to the third state is 1.
10. document transmission method as claimed in claim 9, is characterized in that, before described obtaining step, also comprises:
The second determining step: judge whether current burst waiting for transmission is the first burst of this document, if so, carries out the second setting step, if not, carries out this obtaining step; And
Described second sets step: the size of setting current burst to be transmitted is the default value of burst size under current network type, and current transmission state is updated to this first state, then carries out this intercepting step.
11. document transmission methods as claimed in claim 10, is characterized in that, also comprise determining step before described the first determining step:
Determine current transmission state, if transmission state is this first state or the second state before deserving, carry out this first determining step.
12. document transmission methods as claimed in claim 11, is characterized in that, also comprise the 3rd determining step before described the first determining step:
If transmission state is this first state or the second state before deserving, at least one has completed in the burst of transmission to judge this, and whether the access times of every kind of burst size reach respectively default Second Threshold, if, carry out this first determining step, if not, carry out this first setting step.
13. document transmission methods as claimed in claim 11, is characterized in that, described the first determining step comprises:
If this rate variation index is less than this first threshold, and current transmission state is this first state, and upgrading current transmission state is this second state; And
If this rate variation index is less than this first threshold, and current transmission state is this second state, upgrades current transmission state for this third state.
14. document transmission methods as claimed in claim 11, is characterized in that, the method also comprises the 4th determining step, if transmission state is this third state before deserving, carry out the 4th determining step, and the 4th determining step comprises:
Add up this at least one completed the burst of transmission transmission rate exceed continuously the number of times of preset range, and whether the number of times that judgement is added up reach the 3rd default threshold value, if not, carries out this and first set step, if so, carries out this and second set step.
15. document transmission methods as claimed in claim 14, is characterized in that, described the first setting step and second is set step and also comprised:
Whether the size that judges this document part to be sent is less than the 4th default threshold value, and the size of if so, setting current burst to be transmitted is the size of this document part to be sent.
16. document transmission methods as claimed in claim 1, is characterized in that, described transmitting step comprises:
Submit step to: in a host process, a burst of the file to receiving terminal to be transmitted is committed in a queue to be transmitted;
Waiting step: continue to wait for interrupt signal after this submits step to;
The first monitoring step: whether within a predetermined period of time have upstream volume production raw, if not, send interrupt latency request, and add the information that this host process does not produce upstream data flow within a predetermined period of time in this interrupt latency request if monitoring this host process; And
The second monitoring step: if receive the return information that this interrupt latency request or this receiving terminal return, finish this waiting step.
17. document transmission methods as claimed in claim 16, is characterized in that, after the described waiting step of end, also comprise:
If this host process does not produce upstream data flow within a predetermined period of time, return to the transmission result of this burst bust this.
18. document transmission methods as claimed in claim 16, is characterized in that, after sending this interrupt latency request, described the first monitoring step finishes.
19. document transmission methods as claimed in claim 16, is characterized in that, after the described waiting step of end, also comprise:
According to this return information, judge whether this receiving terminal successfully receives this burst, if not, return to the transmission result of this burst bust this.
20. document transmission methods as claimed in claim 16, is characterized in that, described the second monitoring step also comprises:
After receiving the return information that this receiving terminal returns, finish this first monitoring step.
21. document transmission methods as claimed in claim 16, is characterized in that, described the first monitoring step is carried out in being different from the new monitoring process of this host process.
22. document transmission methods as claimed in claim 16, is characterized in that, described the first monitoring step also comprises:
If this host process has upstream volume production raw within a predetermined period of time, point out user's this document to transmit.
23. document transmission methods as claimed in claim 16, is characterized in that, also comprise the 3rd monitoring step after described waiting step:
Whether monitoring there is Network Abnormal, if there is Network Abnormal, finishes this waiting step and this first monitoring step, and returns to the transmission result of this burst bust this.
24. 1 kinds of file transfer means, is characterized in that, this device comprises:
Extraction module, for extracting a burst from the file to receiving terminal to be transmitted;
Transport module, for this burst is committed to queue to be transmitted, and monitors whether transmission success of this burst;
Judge module, if for this burst transmission success not, judge whether the number of retransmissions of this burst reaches default frequency threshold value; And
Retransmission module if do not reach this frequency threshold value for the number of retransmissions of this burst, re-executes this transmitting step, and upgrades the number of retransmissions of this burst after waiting for one section of Preset Time.
25. file transfer means as claimed in claim 24, is characterized in that, this Preset Time extends along with the increase of this number of retransmissions.
26. file transfer means as claimed in claim 24, is characterized in that, if described judge module also reaches this frequency threshold value for the number of retransmissions of this burst, judge this document bust this.
27. file transfer means as claimed in claim 24, is characterized in that, also comprise checking module, for:
If this burst transmission success, checks whether this document is transmitted;
If this document is not transmitted, return to this extraction step; And
If this document is transmitted, this document transmission success.
28. file transfer means as claimed in claim 27, is characterized in that, whether described inspection this document is transmitted and comprises:
Receive the return information that this receiving terminal returns, this return information comprises that this receiving terminal has received the summation of all burst sizes of this document; And
If this receiving terminal has received the summation of all burst sizes of this document and the equal and opposite in direction of this document, judge that this document is transmitted.
29. file transfer means as claimed in claim 24, is characterized in that, described transport module also for:
This burst and this document are encrypted respectively; And
The secret value of this burst and secret value and this document is packaged into a packet, then this packet is committed to this queue to be transmitted.
30. file transfer means as claimed in claim 24, is characterized in that, described extraction module further comprises:
Acquisition module, for obtaining this document, at least one has completed the transformation parameter of the burst of transmission, and this transformation parameter comprises burst size and transmission rate;
Computing module, for according to this, at least one has completed the transformation parameter computation rate variability index of the burst of transmission, this rate variation index characterizes transmission rate with respect to the speed of this burst size variation;
The first judge module is a different state for judging whether this rate variation index is less than default first threshold, if so, upgrading current transmission state;
The first setting module, for obtain with deserve before coefficient corresponding to transmission state, and the size of setting current burst to be transmitted is in this document, to complete recently the burst size of transmission and the product of this coefficient; And
Interception module, intercepts current burst waiting for transmission for the size of this current burst to be transmitted according to setting from this document and transmits.
31. file transfer means as claimed in claim 30, is characterized in that, described acquisition module is also for carrying out smoothing processing to this transmission rate.
32. file transfer means as claimed in claim 30, it is characterized in that, described current transmission state comprises the first state, the second state and the third state, wherein the first state and coefficient corresponding to the second state are greater than 1, and the coefficient that the first state is corresponding is greater than the coefficient that the second state is corresponding, coefficient corresponding to the third state is 1.
33. file transfer means as claimed in claim 32, is characterized in that, described extraction module also comprises:
The second judge module, for before carrying out described acquisition module, judges whether current burst waiting for transmission is the first burst of this document, if so, carries out the second setting module, if not, carries out this acquisition module; And
Described the second setting module, is the default value of burst size under current network type for setting the size of current burst to be transmitted, and current transmission state is updated to this first state, then carries out this interception module.
34. file transfer means as claimed in claim 33, is characterized in that, described extraction module also comprises:
Determination module, for determining current transmission state, if transmission state is this first state or the second state before deserving, carries out this first judge module.
35. file transfer means as claimed in claim 34, is characterized in that, described extraction module also comprises:
The 3rd judge module, if be this first state or the second state for transmission state before deserving, at least one has completed in the burst of transmission to judge this, whether the access times of every kind of burst size reach respectively default Second Threshold, if, carry out this first judge module, if not, carry out this first setting module.
36. file transfer means as claimed in claim 34, is characterized in that, described the first judge module is used for:
If this rate variation index is less than this first threshold, and current transmission state is this first state, and upgrading current transmission state is this second state; And
If this rate variation index is less than this first threshold, and current transmission state is this second state, upgrades current transmission state for this third state.
37. file transfer means as claimed in claim 34, is characterized in that, described extraction module also comprises the 4th judge module, and for carrying out when deserving front transmission state for this third state, the 4th judge module is used for:
Add up this at least one completed the burst of transmission transmission rate exceed continuously the number of times of preset range, and whether the number of times that judgement is added up reach the 3rd default threshold value, if not, carries out this first setting module, if so, carries out this second setting module.
38. file transfer means as claimed in claim 37, is characterized in that, described the first setting module and the second setting module also for:
Whether the size that judges this document part to be sent is less than the 4th default threshold value, and the size of if so, setting current burst to be transmitted is the size of this document part to be sent.
39. file transfer means as claimed in claim 24, is characterized in that, described transport module further comprises:
Submit module to, for a burst of the file to receiving terminal to be transmitted being committed to a queue to be transmitted in a host process;
Wait for module, for continuing to wait for interrupt signal;
The first monitoring module, whether be used for monitoring this host process has upstream volume production raw within a predetermined period of time, if not, send interrupt latency request, and add the information that this host process does not produce upstream data flow within a predetermined period of time in this interrupt latency request; And
The second monitoring module, if the return information returning for receiving this interrupt latency request or this receiving terminal triggers this wait module and stops waiting for interrupt signal.
40. file transfer means as claimed in claim 39, is characterized in that, after this wait module of triggering stops waiting for interrupt signal, also comprise:
If this host process does not produce upstream data flow within a predetermined period of time, return to the transmission result of this burst bust this.
41. file transfer means as claimed in claim 39, is characterized in that, after sending this interrupt latency request, described the first monitoring module stops carrying out.
42. file transfer means as claimed in claim 39, is characterized in that, after this wait module of triggering stops waiting for interrupt signal, also comprise:
According to this return information, judge whether this receiving terminal successfully receives this burst, if not, return to the transmission result of this burst bust this.
43. file transfer means as claimed in claim 39, it is characterized in that, whether described the second monitoring module also stops monitoring this host process and has within a predetermined period of time upstream volume production raw for trigger the first monitoring module after receiving the return information that this receiving terminal returns.
44. file transfer means as claimed in claim 39, is characterized in that, described the first monitoring module is carried out in being different from the new monitoring process of this host process.
45. file transfer means as claimed in claim 39, is characterized in that, if described the first monitoring module also has upstream volume production raw for this host process within a predetermined period of time, point out user's this document to transmit.
46. file transfer means as claimed in claim 39, it is characterized in that, also comprise the 3rd monitoring module, for monitoring, whether there is Network Abnormal, if generation Network Abnormal, trigger this wait module and stop waiting for interrupt signal, whether triggering the first monitoring module stops monitoring this host process has upstream volume production raw within a predetermined period of time, and returns to the transmission result of this burst bust this.
CN201310187224.3A 2013-05-20 2013-05-20 A kind of document transmission method and device Active CN104168093B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310187224.3A CN104168093B (en) 2013-05-20 2013-05-20 A kind of document transmission method and device
PCT/CN2013/089185 WO2014187114A1 (en) 2013-05-20 2013-12-12 File transmission method, apparatus and storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310187224.3A CN104168093B (en) 2013-05-20 2013-05-20 A kind of document transmission method and device

Publications (2)

Publication Number Publication Date
CN104168093A true CN104168093A (en) 2014-11-26
CN104168093B CN104168093B (en) 2017-07-25

Family

ID=51911748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310187224.3A Active CN104168093B (en) 2013-05-20 2013-05-20 A kind of document transmission method and device

Country Status (2)

Country Link
CN (1) CN104168093B (en)
WO (1) WO2014187114A1 (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872001A (en) * 2015-12-21 2016-08-17 乐视云计算有限公司 Data transmission method and device based on P2P network
CN107172112A (en) * 2016-03-07 2017-09-15 阿里巴巴集团控股有限公司 A kind of computer documents transmission method and device
CN107360191A (en) * 2017-08-28 2017-11-17 腾讯科技(深圳)有限公司 A kind of file acquisition method, device and storage device
CN107645531A (en) * 2016-07-22 2018-01-30 平安科技(深圳)有限公司 Method of data synchronization and system
CN108401002A (en) * 2017-02-07 2018-08-14 腾讯科技(深圳)有限公司 Document transmission method and equipment
CN108804290A (en) * 2018-06-13 2018-11-13 姜锋 A kind of method and system for movable storage device information transmission security
CN109150935A (en) * 2017-06-19 2019-01-04 深圳联友科技有限公司 A kind of document transmission method, device and mobile terminal
CN109257428A (en) * 2018-09-27 2019-01-22 火烈鸟网络(广州)股份有限公司 Using the distribution method of packet, device, storage medium and equipment
CN109905479A (en) * 2019-03-04 2019-06-18 腾讯科技(深圳)有限公司 Document transmission method and device
CN110245164A (en) * 2019-05-09 2019-09-17 阿里巴巴集团控股有限公司 A kind of data backflow detection method, device and equipment
CN111586158A (en) * 2020-05-06 2020-08-25 山东汇贸电子口岸有限公司 Audio and video fragment uploading and retransmitting method
CN113076283A (en) * 2021-04-06 2021-07-06 中移(上海)信息通信科技有限公司 File consistency verification method and device and electronic equipment
CN113315809A (en) * 2021-04-22 2021-08-27 佛山市第二人民医院(佛山市便民医院) High-speed data transmission delay tolerance method and system for medical equipment
CN113360435A (en) * 2021-06-03 2021-09-07 三川智慧科技股份有限公司 Serial port communication optimization method, device, equipment and medium for intelligent water meter
CN114866446A (en) * 2022-04-15 2022-08-05 西安广和通无线通信有限公司 Data transmission rate testing method, system, electronic device and storage medium
CN117971985A (en) * 2024-04-01 2024-05-03 国家超级计算天津中心 Job file synchronization method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809050A (en) * 2006-02-13 2006-07-26 杭州华为三康技术有限公司 Message sending method
CN101674235A (en) * 2009-09-27 2010-03-17 中兴通讯股份有限公司 Data transmission method and apparatus
CN102143073A (en) * 2011-03-23 2011-08-03 深圳创维数字技术股份有限公司 Data transmission method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001054370A2 (en) * 2000-01-24 2001-07-26 The University Of Manitoba Method and system for segmented file transfer
CN101174930B (en) * 2006-11-03 2012-01-04 华为技术有限公司 Method and apparatus for implementing automatic retransmission request in relay system
KR20100070113A (en) * 2008-12-17 2010-06-25 한국전자통신연구원 Method for transmitting of long data in sensor node based on mac
CN102348253B (en) * 2010-07-30 2015-04-29 华为技术有限公司 Method for sending information, apparatus and system thereof
CN102438151B (en) * 2011-12-14 2013-07-03 哈尔滨工业大学 Error control method for watermark embedded video streaming media transmission channel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809050A (en) * 2006-02-13 2006-07-26 杭州华为三康技术有限公司 Message sending method
CN101674235A (en) * 2009-09-27 2010-03-17 中兴通讯股份有限公司 Data transmission method and apparatus
CN102143073A (en) * 2011-03-23 2011-08-03 深圳创维数字技术股份有限公司 Data transmission method and system

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872001A (en) * 2015-12-21 2016-08-17 乐视云计算有限公司 Data transmission method and device based on P2P network
CN107172112B (en) * 2016-03-07 2020-10-02 阿里巴巴集团控股有限公司 Computer file transmission method and device
CN107172112A (en) * 2016-03-07 2017-09-15 阿里巴巴集团控股有限公司 A kind of computer documents transmission method and device
CN107645531B (en) * 2016-07-22 2021-08-24 平安科技(深圳)有限公司 Data synchronization method and system
CN107645531A (en) * 2016-07-22 2018-01-30 平安科技(深圳)有限公司 Method of data synchronization and system
CN108401002A (en) * 2017-02-07 2018-08-14 腾讯科技(深圳)有限公司 Document transmission method and equipment
CN108401002B (en) * 2017-02-07 2021-01-01 腾讯科技(深圳)有限公司 File transmission method and equipment
CN109150935A (en) * 2017-06-19 2019-01-04 深圳联友科技有限公司 A kind of document transmission method, device and mobile terminal
CN109150935B (en) * 2017-06-19 2021-09-10 深圳联友科技有限公司 File transmission method and device and mobile terminal
CN107360191B (en) * 2017-08-28 2021-02-02 腾讯科技(深圳)有限公司 File acquisition method and device and storage equipment
CN107360191A (en) * 2017-08-28 2017-11-17 腾讯科技(深圳)有限公司 A kind of file acquisition method, device and storage device
CN108804290B (en) * 2018-06-13 2022-03-18 姜锋 Method and system for information transmission safety of mobile storage equipment
CN108804290A (en) * 2018-06-13 2018-11-13 姜锋 A kind of method and system for movable storage device information transmission security
CN109257428A (en) * 2018-09-27 2019-01-22 火烈鸟网络(广州)股份有限公司 Using the distribution method of packet, device, storage medium and equipment
CN109905479A (en) * 2019-03-04 2019-06-18 腾讯科技(深圳)有限公司 Document transmission method and device
CN110245164A (en) * 2019-05-09 2019-09-17 阿里巴巴集团控股有限公司 A kind of data backflow detection method, device and equipment
CN111586158A (en) * 2020-05-06 2020-08-25 山东汇贸电子口岸有限公司 Audio and video fragment uploading and retransmitting method
CN111586158B (en) * 2020-05-06 2023-04-14 山东汇贸电子口岸有限公司 Audio and video fragment uploading and retransmitting method
CN113076283B (en) * 2021-04-06 2022-02-18 中移(上海)信息通信科技有限公司 File consistency verification method and device and electronic equipment
CN113076283A (en) * 2021-04-06 2021-07-06 中移(上海)信息通信科技有限公司 File consistency verification method and device and electronic equipment
CN113315809A (en) * 2021-04-22 2021-08-27 佛山市第二人民医院(佛山市便民医院) High-speed data transmission delay tolerance method and system for medical equipment
CN113315809B (en) * 2021-04-22 2022-05-24 佛山市第二人民医院(佛山市便民医院) High-speed data transmission delay tolerance method and system for medical equipment
CN113360435A (en) * 2021-06-03 2021-09-07 三川智慧科技股份有限公司 Serial port communication optimization method, device, equipment and medium for intelligent water meter
CN114866446A (en) * 2022-04-15 2022-08-05 西安广和通无线通信有限公司 Data transmission rate testing method, system, electronic device and storage medium
CN117971985A (en) * 2024-04-01 2024-05-03 国家超级计算天津中心 Job file synchronization method and electronic equipment
CN117971985B (en) * 2024-04-01 2024-06-28 国家超级计算天津中心 Job file synchronization method and electronic equipment

Also Published As

Publication number Publication date
WO2014187114A1 (en) 2014-11-27
CN104168093B (en) 2017-07-25

Similar Documents

Publication Publication Date Title
CN104168093A (en) File transmission method and device
CN104168081A (en) Document transmission method and device
CN104184753A (en) File transmission method and device thereof
US20100205310A1 (en) System and method for dynamically optimizing tcp window size
CN113489575A (en) Data transmission method and device and electronic equipment
CN111385269B (en) Data transmission method and device
CN109951546B (en) Transaction request processing method, device, equipment and medium based on intelligent contract
CN113157300A (en) Data processing method, device and storage medium
US9553814B2 (en) Method and apparatus for controlling data flow by using proxy server
CN114710446B (en) Data transmission method, device, electronic equipment and storage medium
US20170171082A1 (en) Method and electronic device for updating client data
CN113452770B (en) Data synchronization method, device, computer equipment and storage medium
WO2021057068A1 (en) Rdma data flow control method and system, electronic device and readable storage medium
US20120066305A1 (en) Transmitting system and method thereof
US8966070B1 (en) System and method of reducing network latency
US10080196B2 (en) Method and apparatus for prolonging lasting time of inactive mode
CN112883107B (en) Asynchronous execution method, system and related equipment for transactions in block chain
CN105162794A (en) Method and apparatus for updating IPSEC key in appointed mode
CN104168274A (en) Data obtaining request processing method, client sides and server
CN109788070A (en) A kind of websocket disconnection reconnecting method and device
US20130187848A1 (en) Electronic device, control method, and computer product
CN107509192B (en) Authentication method and system
JP2000201179A (en) Transmitter, transmitting method, receiver, receiving method, transmitter-receiver, and transmitting and receiving method
CN103401895A (en) Network acceleration method and system
CN116546037A (en) Method, device, equipment and storage medium for synchronizing data among Redis clusters in real time

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant