CN104168093B - A kind of document transmission method and device - Google Patents

A kind of document transmission method and device Download PDF

Info

Publication number
CN104168093B
CN104168093B CN201310187224.3A CN201310187224A CN104168093B CN 104168093 B CN104168093 B CN 104168093B CN 201310187224 A CN201310187224 A CN 201310187224A CN 104168093 B CN104168093 B CN 104168093B
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.)
Active
Application number
CN201310187224.3A
Other languages
Chinese (zh)
Other versions
CN104168093A (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

Abstract

The present invention relates to a kind of document transmission method, including:Extraction step:A burst is extracted from the file to be passed for transporting to receiving terminal;Transmitting step:The burst is committed to queue to be transmitted, and monitor the burst whether transmission success;Judgment step:If the non-transmission success of the burst, judge whether the number of retransmissions of the burst reaches default frequency threshold value;Retransmissions steps:If the number of retransmissions of the burst is not up to the frequency threshold value, the transmitting step is re-executed after one section of preset time is waited, and update the number of retransmissions of the burst.The present invention also provides a kind of file transfer means.The transmission success rate of the single burst of file can be improved using the present invention, and then lifts the transmission success rate of this document.

Description

A kind of document transmission method and device
Technical field
The present invention relates to Internet technical field, more particularly to a kind of document transmission method and device.
Background technology
The method for carrying out file transmission on the internet at present is typically that this document is divided into several size identicals point Piece, then transmits this several burst to receiving terminal successively in sequence.If some burst therein is due to some reasons (Such as server reason, network failure or transmission time-out)Bust this, then can select to retransmit the burst at once.If the burst Number of retransmissions reaches predetermined threshold value, then this transmission of this document is counted out, but can reattempt to transmission this document, and Then breakpoint transmission is done after the burst of last transmission success during this document previous transmission, until completing the transmission of whole file.
It is this once retransmitting burst after bust this at once because network quality is stablized relatively under wired internet Mechanism or very effective, can lift the transmission success rate of whole file.However, changing movement quickly in network quality Under internet, recover to need to spend the time longer than wired internet from malfunction.Therefore, burst at once retransmit after again The probability of secondary failure is very high, it is impossible to lift the transmission success rate of whole file.
The content of the invention
In view of this, it is necessary to which a kind of document transmission method and device are provided, the biography of the single burst of file can be improved Defeated success rate, and then lift the transmission success rate of this document.
A kind of document transmission method, comprises the following steps:Extraction step:One is extracted from the file to be passed for transporting to receiving terminal Individual burst;Transmitting step:The burst is committed to queue to be transmitted, and monitor the burst whether transmission success;Judgment step:If The non-transmission success of the burst, then judge whether the number of retransmissions of the burst reaches default frequency threshold value;Retransmissions steps:If this point The number of retransmissions of piece is not up to the frequency threshold value, then re-executes the transmitting step after one section of preset time is waited, and update The number of retransmissions of the burst.
A kind of file transfer means, including:Extraction module, for extracting one point from the file to be passed for transporting to receiving terminal Piece;Transport module, for the burst to be committed into queue to be transmitted, and monitor the burst whether transmission success;Judge module, is used If in the non-transmission success of the burst, judging whether the number of retransmissions of the burst reaches default frequency threshold value;Retransmission module, is used If being not up to the frequency threshold value in the number of retransmissions of the burst, transmission step is re-executed after one section of preset time is waited Suddenly, and the number of retransmissions of the burst is updated.
Relative to prior art, the present invention will wait for a period of time and retransmit again after the single sliced transmission failure of file The burst, can improve the transmission success rate of the single burst of file, and then lift the transmission success rate of this document.
For the above and other objects, features and advantages of the present invention can be become apparent, preferred embodiment cited below particularly, And coordinate institute's accompanying drawings, it is described in detail below.
Brief description of the drawings
Environment schematic when Fig. 1 performs for the document transmission method that first embodiment of the invention is provided.
The flow chart for the document transmission method that Fig. 2 provides for first embodiment of the invention.
The flow chart for the document transmission method that Fig. 3 provides for second embodiment of the invention.
Fig. 4 is to check the flow chart of method whether file has been transmitted in Fig. 3.
The flow chart for the document transmission method that Fig. 5 provides for third embodiment of the invention.
The flow chart for the document transmission method that Fig. 6 provides for fourth embodiment of the invention.
The flow chart for the document transmission method that Fig. 7 provides for fifth embodiment of the invention.
The flow chart for the document transmission method that Fig. 8 provides for sixth embodiment of the invention.
The flow chart for the document transmission method that Fig. 9 provides for seventh embodiment of the invention.
The block diagram for the file transfer means that Figure 10 provides for eighth embodiment of the invention.
The block diagram for the file transfer means that Figure 11 provides for ninth embodiment of the invention.
The block diagram for the file transfer means that Figure 12 provides for tenth embodiment of the invention.
The block diagram for the file transfer means that Figure 13 provides for eleventh embodiment of the invention.
The block diagram for the file transfer means that Figure 14 provides for twelveth embodiment of the invention.
The block diagram for the file transfer means that Figure 15 provides for thriteenth embodiment of the invention.
Embodiment
Further to illustrate that the present invention is to realize technological means and effect that predetermined goal of the invention is taken, below in conjunction with Accompanying drawing and preferred embodiment, to embodiment, structure, feature and its effect according to the present invention, are described in detail as after.
First embodiment
First embodiment of the invention provides a kind of document transmission method, and it can be performed by a transmitting terminal, for file to be sent out Deliver in a receiving terminal.Above-mentioned transmitting terminal and receiving terminal are, for example, computer, mobile electronic terminal or other are similar Arithmetic unit.As shown in fig.1, environment schematic when it is performed for above-mentioned document transmission method.Transmitting terminal 110 passes through net Network 10 is connected with receiving terminal 120.The network 10 can be arbitrary internetwork connection mode, such as internet(Internet), it is mobile Internet(2G, the 3G network provided such as telecom operators), LAN(It is wired or wireless)Deng.
Above-mentioned document transmission method is described in detail as follows below in conjunction with specific embodiment:
The flow chart for the document transmission method that Fig. 2 provides for first embodiment, this document transmission method comprises the following steps:
Step S101, extracts a burst from the file to be passed for transporting to receiving terminal 120;
Step S102, queue to be transmitted is committed to by the burst, and monitor the burst whether transmission success;
Step S103, if the non-transmission success of the burst, judges whether the number of retransmissions of the burst reaches default number of times Threshold value;
Step S104, if the number of retransmissions of the burst is not up to the frequency threshold value, the weight after one section of preset time is waited The step S102 is newly performed, and updates the number of retransmissions of the burst.
According to above-mentioned document transmission method, after the single sliced transmission failure of file, it will wait for a period of time and weigh again The burst is passed, compared to traditional mode for retransmitting burst at once once bust this, this method can improve the list of file The transmission success rate of individual burst, and then lift the transmission success rate of this document.
In some instances, each step of the above method realizes that details is as follows:
File described in step S101 can be picture, document, video etc..In the present embodiment, can be according to fixed Burst size extracts burst from this document.If transmitting this document first, then using the first byte of this document as first burst Starting point extracts the first burst, after the first burst is successfully transferred to receiving terminal 120, further according to the burst size of the fixation The starting point of next burst is set, and the rest may be inferred.If failure after transmit this document again, then still using the first byte of this document as The starting point of first burst extracts the first burst.After the first burst is successfully transferred to receiving terminal 120, the receiving terminal is received The byte number of 120 this documents being properly received returned, then the byte number that receiving terminal 120 is returned is set to next burst " breakpoint transmission " starting point, resume defeated this document, i.e., to realize that the burst for being connected on Successful transmissions is follow-up.
In step S102, the transmitting terminal 110 and the receiving terminal 120 can be based on transmission control protocol (Transmission Control Protocol, TCP)Connection.Accordingly, described queue to be transmitted can be TCP Output buffer.Burst in the output buffer can transfer to the transmission of operating system completion physical layer.Specific physics Layer transmission process is controlled by operating system, will not be repeated here.
In the present embodiment, first the burst and this document can also be encrypted, such as using MD5 (Message-Digest Algorithm5, Message Digest Algorithm 5)AES processing, then by the burst and its add The secret value of close value and this document is packaged into a packet and is committed to the queue to be transmitted, to ensure the burst and file in biography Integrality during defeated.
Monitoring the burst, whether transmission success can use the method for setting the time-out time that do not receive return information.Institute In the time-out time of setting, if not receiving the return information of the receiving terminal 120 return, judge that the sliced transmission fails.If The return information of the receiving terminal 120 return is received in set time-out time, then judges that the burst is according to the return information No transmission success.
Number of retransmissions described in step S103 is to be committed to the queue to be transmitted again after each bust this of the burst The number of times being transmitted.When a burst is transmitted first, the number of retransmissions of the burst is initialized as zero, afterwards whenever this When being transmitted again after sliced transmission failure, the number of retransmissions of the burst will be added up.If the number of retransmissions of the burst reaches this Frequency threshold value, then judge this document bust this, can terminate to transmit or transmit again this document.
Preset time described in step S104 will extend with the increase of the number of retransmissions of the burst.Extend this it is default when Between can using index retract method, for example first set a fiducial time Ti, it is assumed that the number of retransmissions of the burst be C, and The preset time is T0, then the calculation formula of the T0 can be:T0=Ti*2^(C-1).After burst bust this first etc. Retransmitted again after after fiducial time Ti, if bust this again after current re-transmission, then one times would be waited more than fiducial time Ti Time after retransmit the burst again, the rest may be inferred.Due to being returned to just from malfunction under the poor internet of network quality Normal state needs to spend the more time, retransmits the burst again after the wait of preset time, can make the transmission of the burst Success rate is higher compared to the burst is retransmitted after bust this at once.
Second embodiment
In order to realize the complete transmission of file, as shown in fig.3, second embodiment provides a kind of document transmission method, its Compared to the document transmission method of first embodiment, further comprise after the step S102:
Step S105, if sliced transmission success, checks whether this document has been transmitted, if this document is not transferred Into then return to step S101, if this document has been transmitted, judges this document transmission success.Specifically, refering to Fig. 4 institutes Show, the step of whether described inspection this document has been transmitted includes:
Step S105.1, receives the return information of the receiving terminal 120 return, and the return information has included the receiving terminal 120 Receive the summation of all burst sizes of this document.
Step S105.2, judge the receiving terminal 120 received all burst sizes of this document summation and this document it is big It is small whether equal, if so, then judging that this document has been transmitted, if it is not, then judging that this document is not transmitted.
By above-mentioned flow, it may be determined that whether this document is transmitted, if this document is not transmitted, continue from this Extract next burst in file to be transmitted, until file is transmitted.
3rd embodiment
The document transmission method provided according to first embodiment transmits file on the internet, is big according to fixed burst The small burst that extracted from this document is transmitted successively.But under different quality and the network of bandwidth, the size of file fragmentation When only reaching some value, transmission rate can be only achieved the maximum under the network.Therefore, entered using the burst of fixed size Row transmission when, if network quality very well, and the size of burst it is relatively small when, it is possible to transmission rate can be limited.Especially In the mobile Internet that the network bandwidth and quality often change, if the size of burst is improper, network will be prevented from sending out Wave the transmittability of maximum, it is impossible to lift the transmission speed of file.
Further to solve the above problems, as shown in fig.5, third embodiment of the invention provides a kind of file transmission side Method, it is compared to the document transmission method of first embodiment, and described step S101 further comprises:
Step S201, obtains the configured transmission that at least one in this document has completed the burst of transmission, the configured transmission Including burst size and transmission rate;
Step S202, configured transmission computation rate variability index of at least one burst for having completed transmission according to this, The speed variability index characterizes speed of the transmission rate relative to the burst size variation;
Step S203, judges whether the speed variability index is less than default first threshold, if so, then updating current transmission State is a different state;
Step S204, obtains corresponding with present transmission state coefficient, and set the size of currently burst to be transmitted as The burst size of transmission and the product of the coefficient are recently completed in this document;
Step S205, is intercepted current waiting for transmission according to the size of the set current burst to be transmitted from this document Burst is transmitted.
According to above-mentioned document transmission method, dynamically set according to the configured transmission for the burst that transmission has been completed in file The size of the current burst to be transmitted of file, can make burst to be transmitted before deserving be sized to adapt to network quality and bandwidth It is required that, so as to lift the transmission speed of effective bandwidth and file of the network when transmitting file.
In some instances, each step of the above method realizes that details is as follows:
Transmission rate described in step S201 can be according to the size and transmission time of the burst for each having completed transmission Calculate.The transmission time refers to that the expression that the receiving terminal 120 is replied from sending to receiving of corresponding burst is received into Period between the information of work(.Calculate after the transmission rate, the transmission rate can also be used set in advance smooth The factor is smoothed.
Speed variability index described in step S202 characterizes transmission rate relative to the speed of the burst size variation, that is, exists This at least one completed in the burst of transmission, when burst size variation, the corresponding situation of change of transmission rate of burst. When burst size is increased with certain growth rate, the transmission rate also has corresponding lifting, then illustrates now burst size Growth rate can meet the transmission rate lifting requirement.And when burst size is increased with the growth rate, transmission speed Rate is not lifted accordingly, then illustrates the growth rate of now burst size and can not meet the requirement of transmission rate lifting, need Slow down the growth rate of burst size or keep burst size constant.
Whether the growth rate that the first threshold described in step S203 is used to define burst size disclosure satisfy that transmission rate The requirement of lifting.Described present transmission state is the growth rate for representing the burst size.In the present embodiment, forward pass is deserved Defeated state includes first state, the second state and the third state.Each state correspondence one is used for the growth for representing burst size The coefficient of speed.Wherein, the first state and the corresponding coefficient of the second state are more than 1, and the corresponding coefficient of first state is big In the corresponding coefficient of the second state, represent that the growth rate of burst size under first state is higher than burst size under the second state Growth rate.The corresponding coefficient of the third state is 1, represents that burst size keeps constant under the third state.
Specifically, step S203 also includes determining when preceding transmission state, if the speed variability index is less than first threshold Value, and present transmission state is the first state, then it is second state to update present transmission state, that is, slows down the burst size Growth rate.If the speed variability index is less than the first threshold, and present transmission state is second state, then updates and work as Preceding transmission state is the third state, i.e., further slow down the growth rate of the burst size.
Step S204 obtains coefficient corresponding with the present transmission state after renewal, and sets current burst to be transmitted Size is recently completed product of the burst size with the coefficient of transmission for this.If the present transmission state is first state or second State is then corresponding on the basis of this is recently completed the burst size of transmission to increase to set the size of burst to be transmitted.If should Present transmission state is the third state, then the size for setting burst to be transmitted is identical with the burst size that this is recently completed transmission.
Step S205 intercepts current waiting for transmission according to the size of the set current burst to be transmitted from this document Burst, then perform the step S102 to transmit the burst.
Fourth embodiment
As shown in fig.6, fourth embodiment of the invention provides a kind of document transmission method, compared to the text of 3rd embodiment Part transmission method, the update condition to the present transmission state has made further restriction, so that set burst to be transmitted Size more adapt to the transmittability of network, so as to lift the transmission speed of file.
Compared to the document transmission method of 3rd embodiment, the document transmission method of the present embodiment further comprises:
Step S200, before the step S201 is performed, judges whether current burst waiting for transmission is the first of this document Burst, if current burst waiting for transmission is the first burst of this document, performs step S206, if current burst waiting for transmission is not For the first burst of this document, then the step S201 is performed.
Step S206, sets the size of current burst to be transmitted as current network type(For example telecom operators provide 2G/3G networks, WIFI network etc.)The default value of lower burst size, and the present transmission state is updated to the first state, so Step S205 is performed afterwards.
Step S207, before the step S203 is performed, determine the present transmission state whether be the first state or Second state.If current state is first state or the second state, step S208 is performed.If current state is the third state, Then perform step S209.
Step S208, judging this, at least one has been completed in the burst of transmission, and the access times of every kind of burst size are It is no to respectively reach default Second Threshold(Such as 2 times).If the access times of every kind of burst size reach the Second Threshold, The step S203 is performed, if the access times of every kind of burst size are not up to the Second Threshold, the step is performed S204。
Step S209, the transmission rate for counting at least one burst for having completed transmission continuously exceeds preset range Number of times, and judge whether counted number of times reaches default 3rd threshold value.If the number of times counted is not up to the 3rd threshold value, Then perform the step S204.If the number of times counted reaches the 3rd threshold value, the step S206 is performed.
Significantly, since the size of file part to be sent may be not enough to according to set current to be transmitted The size of burst intercepts current burst waiting for transmission from this document, or according to the big of set current burst to be transmitted Small to be intercepted from this document after current burst waiting for transmission, the size of file part to be sent is smaller, again need not treat file Transmitting portion is transmitted as next burst, therefore, and the step S204 and step S206 may further include:Judge Whether the size of this document part to be sent is less than default 4th threshold value.If the size of this document part to be sent be less than this Four threshold values, then set the size of current burst to be transmitted as the size of this document part to be sent, the step then performed again S205.If the size of this document part to be sent is not less than the 4th threshold value, step S205 is directly performed.
According to the document transmission method of this implementation, the update condition to the present transmission state has made further restriction, The size of set burst to be transmitted can be made more to adapt to the transmittability of network, so as to lift the transmission speed of file.
5th embodiment
As shown in fig.7, fifth embodiment of the invention provides a kind of document transmission method, it is compared to fourth embodiment Document transmission method, further proposes a kind of concrete implementation scheme to the step S101.First set in acquired this document At least one configured transmission for having completed the burst of transmission includes:The size S of the first burst of this document1, it is big in the burst Small S1Under transmission rate smooth value V1, it is recently completed the burst size S of transmissionn, in burst size SnUnder transmission rate Smooth value Vs, with burst size SnIt is different and in burst size SnThe burst size S transmitted recently before0, in the burst Size S0Under transmission rate smooth value V0.If the size of the current burst to be transmitted is Sn+1, then the present embodiment is compared to The document transmission method of four embodiments, the step S101 further comprises:
Step S11, judges the SnWhether it is 0.If SnIt is not 0, then it is not the head of this document to illustrate current burst waiting for transmission Individual burst, into step S12.If SnFor 0, then illustrate the first burst that current burst waiting for transmission is this document, into step S25。
Step S12, updates the SnAccess times N.
Step S13, according to the acquired S1、V1、Sn、Vs、S0And V0Calculate speed variability index S.Calculate the public affairs of the S Formula is:S=[(Vs-V0)/V1]/[(Sn-S0)/S1]。
Step S14, determines present transmission state.If present transmission state is the first state, into step S15.If The present transmission state is second state, then into step S18.If present transmission state is the third state, enter step Rapid S21.
Step S15, judges whether the SnAccess times N be equal to default Second Threshold Nmax, and calculated should Speed variability index S is less than default first threshold Smin.If so, then entering step S16, if it is not, then entering step S17.
Step S16, renewal present transmission state is the second state, sets Sn+1For the corresponding coefficient B of the second state and Sn's Product, subsequently into step S27.
Step S17, sets Sn+1For the corresponding coefficient A and S of first statenProduct, subsequently into step S27.
Step S18, judges whether the SnAccess times N be equal to default Second Threshold Nmax, and calculated should Speed variability index S is less than default first threshold Smin.If so, then entering step S19, if it is not, then entering step S20.
Step S19, renewal present transmission state is the third state, sets Sn+1With SnIt is equal, subsequently into step S27.
Step S20, sets Sn+1For the corresponding coefficient B of the second state and SnProduct, subsequently into step S27.
Step S21, judges VsWith the reference speed rate V under the third statestableBetween difference whether be less than the default 3rd Threshold value.If it is not, illustrating that this is recently completed the transmission rate of the burst of transmission beyond the preset range, then into step S22.If It is to illustrate that this is recently completed the transmission rate of the burst of transmission without departing from the preset range, then into step S23.3rd threshold Value can be reference speed rate VstableWith certain percentage constant D product.
Step S22, the transmission rate for updating the burst for being recently completed transmission exceeds the number of times M of the preset range, that is, exists Jia 1 on the basis of the M.
Step S23, the number of times M by the transmission rate of the burst for being recently completed transmission beyond the preset range is reset.
Step S24, judges that this is recently completed whether the transmission rate of the burst of transmission reaches beyond the number of times M of the preset range To default 4th threshold value Mmax.If so, then entering step S25.If it is not, then entering step S26.
Step S25, renewal present transmission state is first state, sets Sn+1With S1It is equal, subsequently into step S27.
Step S26, sets Sn+1With SnIt is equal.
Step S27, judges whether the size Fs of this document part to be sent is less than default 4th threshold value F.If so, then entering Enter step S28.If it is not, then entering step S29.
Step S28, sets Sn+1It is equal with Fs.
Step S29, returns to set Sn+1, according to set Sn+1Burst size intercept and currently treat from this document The burst of transmission is to be transmitted.
Sixth embodiment
The document transmission method provided according to first embodiment transmits file on the internet, is not received back using setting The time-out time of complex information come monitor burst whether transmission success.The time-out time be usually according to burst size with it is difference mutual A fixed value or dynamic value that the average bandwidth of networking or nearest history bandwidth measured data are estimated.
However, due to mobile Internet be especially non-WIFI network network quality change is very fast and amplitude very greatly, far Stablize not as cable network, in the overwhelming majority, a certain mobile interchange actual bandwidth off the net is all obtained with statistics Average bandwidth have very big gap.When therefore using the time-out estimated according to the average bandwidth of burst size and internet Between, by very easy time-out during the actual transmissions of file fragmentation.And because the network quality change of mobile Internet is fast And often " discontinuous ", " saltus step ", the bandwidth of the eve obtained according to history measurement is difficult to be gone as a foundation The bandwidth at a moment after estimation.Therefore, using set the time-out time come monitor burst whether transmission success, be easily caused file list The transmission failure rate of individual burst is very high.Further, since after reaching time-out time and declaring that the sliced transmission of file fails, data are also It is that can be finished through network transmission and can just terminate the transmitting procedure of the burst, produced by causing the whole transmission process of this burst Flow is all slatterned because of the result of bust this.
Further to solve the above problems, as shown in fig.8, sixth embodiment of the invention provides a kind of file transmission side Method, it is compared to the document transmission method of first embodiment, and described step S102 further comprises:
The burst extracted from this document, is committed in the queue to be transmitted by step S301 in a host process;
Step S302, persistently waits interrupt signal;
Step S303, monitors whether the host process has the generation of upstream amount within a predetermined period of time, if it is not, then sending Interrupt latency is asked, and the additional host process does not produce upstream data flow within a predetermined period of time in interrupt latency request Information;
Step S304, if receiving the return information that interrupt latency request or the receiving terminal are returned, terminates the step Rapid S302.
According to the document transmission method of the present embodiment, the duration of upstream data flow is not produced using monitoring host process Come judge burst whether transmission success, compared to the processing mode of traditional transmission time-out, can better adapt to unstable Network environment such as mobile Internet, improves the success rate of sliced transmission, and reduce during sliced transmission due to timeout issue Caused flow is wasted.
In some instances, each step of the above method realizes that details is as follows:
Host process described in step S301 refers to transmit the process of the burst.For example, a certain file transfer applications institute Process.The burst can be according to HTTP(HyperText Transfer Protocol, HTTP)It is packaged into Network packet.
Interrupt signal described in step S302 includes the reply letter that described interrupt latency request or receiving terminal 120 are returned Breath etc..In addition, during step S302 is performed, the execution of host process can also be interrupted.
Step S303 can be performed in different from the new monitoring process of the host process.Described predetermined amount of time It it is the network timeout period that can allow, it be able to can for example be selected 5 seconds according to being set the need for specific.Described is upper Row data traffic is that host process submits to the burst after the queue to be transmitted, and the burst is transferred to operation system by the queue to be transmitted System is gone out and produced by network transmission.
If host process does not produce upstream data flow in the predetermined amount of time, illustrate host process in the predetermined amount of time Interior none of byte is gone out by network transmission, it is meant that this sliced transmission fails, it is therefore desirable to send this Interrupt latency request is so that host process stops waiting interrupt signal.After interrupt latency request is sent, step S303 terminates.
If host process has the generation of upstream amount in the predetermined amount of time, illustrate host process in the predetermined amount of time Inside there are data to be gone out by network transmission, it is meant that the burst is just in transmission process.In order to avoid user is due to wait The anxiety of generation, if host process has the generation of upstream amount in the predetermined amount of time, step S303 can also pass through The modes such as animation, word point out user's this document to send.
In step S304, if being due to receive the interrupt latency request and end step S302, according to the interruption etc. Wait that the host process added in asking does not produce the information of upstream data flow within a predetermined period of time, return to sliced transmission mistake The transmission result lost.If be due to receive receiving terminal 120 return return information and end step S302, according to the reply Information judges whether the receiving terminal 120 is properly received the burst.If the receiving terminal 120 is not successfully received the burst, this is also returned to The transmission result of sliced transmission failure.If the receiving terminal 120 has been properly received the burst, returns to the sliced transmission and successfully pass Defeated result.After the return information of the receiving terminal 120 return is received, triggering step S303 terminates.
In addition, after step S302, can also there is one to monitor whether occur Network Abnormal, such as network connection disconnection, The step of network connection such as is restricted at the Network Abnormal.If occurring the Network Abnormal, end step S302 and step S303, and return Return the transmission result of sliced transmission failure.
7th embodiment
As shown in fig.9, seventh embodiment of the invention provides a kind of document transmission method, it is compared to sixth embodiment Document transmission method, further proposes a kind of implementation to the step S303:By periodically monitoring the host process Upstream data flow come judge host process whether have within a predetermined period of time upstream amount generation.Specifically, the step S303 includes:
Step S1, starts described monitoring process, and it is TBo to record the upstream data flow that the host process produced.Start One counter, zero is assigned to by the value T of counter initial value, and the counter is used to not produce upstream to host process The duration of amount carries out timing.Start a timer(Timer), the timer is used for often tactile by one section of preset time t Send out a step S2.
Step S2, whenever by the timers trigger, the upstream data flow TBn that record host process has been produced, and obtain The upstream data flow TBo that the host process recorded when last time is by the timers trigger has been produced.If this is first time quilt The timers trigger, then obtain the upstream data flow TBo that the host process recorded when the monitoring process starts has been produced.
Step S3, judges to be timed the upstream data flow that host process is produced in the preset time t before device triggering at this Whether TB is zero, and the TB can be drawn by solving the TBn and TBo difference.If the TB is not zero, step is performed S4, if the TB is zero, performs step S5.
Step S4, the value T of counter is reset, and point out user's this document to send.The TB, which is not zero, to be illustrated to exist This, which is timed host process in the preset time t before device triggering, the generation of upstream amount, and this document is sent, therefore Need, by the value T clearings of the counter, meter to be re-started not produce the host process the duration of upstream data flow When.
Step S5, is updated to T+t, and judge whether the value T after counter renewal is less than preset upper limit by the value T of counter Threshold value Tmax.Predetermined upper threshold value Tmax is the integral multiple of the preset time t.If T is less than the Tmax, return to step S2.If T is not less than the Tmax, step S6 is performed.
Step S6, sends interrupt latency request, and add the host process in the scheduled time in interrupt latency request The information of upstream data flow is not produced in section.The predetermined amount of time is to be lighted from current time, and just past this is preset Upper limit threshold(Such as 5 seconds)Period.
In summary, on the basis of the document transmission method of sixth embodiment, the file transmission side that the present embodiment is provided Method further can judge host process within a predetermined period of time by periodically monitoring the upstream data flow of the host process Whether upstream amount generation is had.
8th embodiment
As shown in fig.10, a kind of file transfer means 100 of eighth embodiment of the invention offer, including extraction module 101, Transport module 102, judge module 103 and retransmission module 104.It is appreciated that above-mentioned each module refer to computer program or Program segment, for performing certain one or more specific function.In addition, the differentiation of above-mentioned each module does not represent actual program Code also must be separated.
Extraction module 101, for extracting a burst from the file to be passed for transporting to receiving terminal.
Transport module 102, for the burst to be committed into queue to be transmitted, and monitor the burst whether transmission success. In the present embodiment, first the burst and this document can also be encrypted, then by the burst and its secret value and this article The secret value of part is packaged into a packet and is committed to the queue to be transmitted, to ensure the burst and file in transmitting procedure Integrality.
Judge module 103, if for the non-transmission success of the burst, judge the burst number of retransmissions whether reach it is default Frequency threshold value.If the number of retransmissions of the burst reaches the frequency threshold value, this document bust this is judged, can terminate transmission Or this document is transmitted again.
Retransmission module 104, if the number of retransmissions for the burst is not up to the frequency threshold value, wait one section it is default when Between after re-execute the transport module 102, and update the number of retransmissions of the burst.Described preset time is by with the burst The increase of number of retransmissions and extend.
The specific work process of each module for more than, the file that can be provided with further reference to first embodiment of the invention is passed Transmission method, is not repeated herein.
In summary, the file transfer means 100 of the present embodiment, after the single sliced transmission failure of file, will be waited A period of time retransmits the burst again, and compared to traditional mode for retransmitting burst at once once bust this, this method can The transmission success rate of the single burst of file is improved, and then lifts the transmission success rate of this document.
9th embodiment
Refering to shown in Figure 11, ninth embodiment of the invention provides a kind of file transfer means 200, and it is implemented compared to the 8th The file transfer means 100 of example, in addition to:
Module 105 is checked, if for sliced transmission success, checking whether this document has been transmitted.If this document It is not transmitted, performs the extraction module 101.If this document has been transmitted, this document transmission success is judged.
Specifically, the inspection module 105 first receives the return information of the receiving terminal 120 return, and the return information includes The receiving terminal 120 has received the summation of all burst sizes of this document.Then, check that module 105 judges that the receiving terminal 120 has connect Whether the summation for receiving all burst sizes of this document is equal with the size of this document, if so, then judge that this document has been transmitted, If it is not, then judging that this document is not transmitted.
For with the specific work process of upper module, the file that can be provided with further reference to second embodiment of the invention is transmitted Method, is not repeated herein.
In summary, the file transfer means 200 of the present embodiment, it may be determined that whether this document is transmitted, if this article Part is not transmitted, then continues to extract next burst from this document being transmitted, until file is transmitted.
Tenth embodiment
Refering to shown in Figure 12, tenth embodiment of the invention provides a kind of file transfer means 300, and it is implemented compared to the 8th The file transfer means 100 of example, described extraction module 101 further comprises:
Acquisition module 301, for obtaining the configured transmission that at least one in this document has completed the burst of transmission, the biography Defeated parameter includes burst size and transmission rate.Described transmission rate can be according to the burst for each having completed transmission Size and transmission time are calculated.Calculate after the transmission rate, the transmission rate can also be used set in advance flat The sliding factor is smoothed.
Computing module 302, the configured transmission computation rate at least one burst for having completed transmission according to this becomes Change index, the speed variability index characterizes speed of the transmission rate relative to the burst size variation.
First judge module 303, for judging whether the speed variability index is less than default first threshold, if so, then It is a different state to update present transmission state.In the present embodiment, the present transmission state includes first state, second State and the third state.Each state correspondence one is used for the coefficient for representing the growth rate of burst size.Wherein, first shape State and the corresponding coefficient of the second state are more than 1, and the corresponding coefficient of first state is more than the corresponding coefficient of the second state.This The corresponding coefficient of three condition is 1.Specifically, if the speed variability index is less than the first threshold, and present transmission state is The first state, then it is second state to update present transmission state.If the speed variability index is less than the first threshold, and works as Preceding transmission state is second state, then it is the third state to update present transmission state.
First setting module 304, for obtaining coefficient corresponding with the present transmission state, and sets current to be transmitted point The size of piece be this document in be recently completed the burst size of transmission and the product of the coefficient.
Interception module 305, is intercepted currently for the size according to the set current burst to be transmitted from this document Burst waiting for transmission, then perform the transport module 102 to transmit the burst.
The specific work process of each module for more than, the file that can be provided with further reference to third embodiment of the invention is passed Transmission method, is not repeated herein.
In summary, the file transfer means 300 of the present embodiment, join according to the transmission for the burst that transmission has been completed in file The size of the number dynamically current burst to be transmitted of setting file, can make burst to be transmitted before deserving be sized to adapt to network The requirement of quality and bandwidth, so as to lift the transmission speed of effective bandwidth and file of the network when transmitting file.
11st embodiment
Refering to shown in Figure 13, eleventh embodiment of the invention provides a kind of file transfer means 400, and it is real compared to the tenth The file transfer means 300 of example are applied, described extraction module 101 further comprises the second judge module 306, the second setting module 307th, determining module 308, the 3rd judge module 309 and the 4th judge module 310.
Second judge module 306, for before the acquisition module 301 is performed, judging that currently burst waiting for transmission is The no first burst for this document.If current burst waiting for transmission is the first burst of this document, the second setting module is performed 307.If current burst waiting for transmission is not the first burst of this document, acquisition module 301 is performed.
Second setting module 307, for setting the size of current burst to be transmitted as current network type under burst size Default value, and the present transmission state is updated to the first state, then performs interception module 305.
Determining module 308, for whether before the first judge module 303 is performed, it to be first to determine present transmission state State or the second state.If the present transmission state is the first state or the second state, the 3rd judge module 309 is performed. If present transmission state is the third state, the 4th judge module 310 is performed.
3rd judge module 309, for judging this, at least one has been completed in the burst of transmission, every kind of burst size Whether access times respectively reach default Second Threshold.If the access times of every kind of burst size reach the Second Threshold, Then perform the first judge module 303.If the access times of every kind of burst size are not up to the Second Threshold, perform first and set Cover half block 304.
4th judge module 310, the transmission rate for counting at least one burst for having completed transmission continuously surpasses Go out the number of times of preset range, and judge whether counted number of times reaches default 3rd threshold value.If the number of times counted does not reach To the 3rd threshold value, then the first setting module 304 is performed.If the number of times counted reaches the 3rd threshold value, perform second and set Cover half block 307.
In addition, described the first setting module 304 and the second setting module 307 is additionally operable to determine whether that this document is pending Send whether the size of part is less than default 4th threshold value, if so, the size for then setting current burst to be transmitted is treated as this document The size of transmitting portion, then performs the interception module 305 again.If it is not, then directly performing the interception module 305.
The specific work process of each module for more than, the file that can be provided with further reference to fourth embodiment of the invention is passed Transmission method, is not repeated herein.
In summary, the update condition of 400 pairs of present transmission states of file transfer means of this implementation has made one Step is limited, and the size of set burst to be transmitted can be made more to adapt to the transmittability of network, so as to lift the biography of file Defeated speed.
12nd embodiment
Refering to shown in Figure 14, twelveth embodiment of the invention provides a kind of file transfer means 500, and it is real compared to the 8th The file transfer means 100 of example are applied, described transport module 102 further comprises:
Module 501 is submitted, for the burst extracted from this document to be committed into the queue to be transmitted in a host process In.
Module 502 is waited, for persistently waiting interrupt signal.
First monitoring module 503, for monitoring whether the host process has the generation of upstream amount within a predetermined period of time, If it is not, interrupt latency request is then sent, and the additional host process is not produced within a predetermined period of time in interrupt latency request The information of upstream data flow.
After interrupt latency request is sent, first monitoring module 503 will stop monitoring the host process in the scheduled time Whether upstream amount generation is had in section.If monitor host process has the generation of upstream amount within a predetermined period of time, First monitoring module 503 can also point out user's this document sending by modes such as animation, words.In the present embodiment In, first monitoring module 503 can be performed in different from the new monitoring process of the host process.
Second monitoring module 504, if for receiving the return information that interrupt latency request or the receiving terminal are returned, The wait module 502 is then triggered to stop waiting the interrupt signal.
If being due to receive interrupt latency request and trigger the wait module 502 and stop waiting interrupt signal, root The host process added in being asked according to the interrupt latency does not produce the information of upstream data flow within a predetermined period of time, and returning should The transmission result of sliced transmission failure.
If be due to receive receiving terminal 120 return return information and trigger the wait module 102 stop etc. it is to be interrupted Signal, then judge whether the receiving terminal 120 is properly received the burst according to the return information.If the receiving terminal 120 connects not successfully The burst is received, the transmission result of sliced transmission failure is also returned to.If the receiving terminal 120 has been properly received the burst, return The sliced transmission successfully transmits result.In addition, after the return information of the receiving terminal 120 return is received, second monitoring Module 504 will also trigger first monitoring module 503 and stop monitoring whether the host process has upstream data within a predetermined period of time Flow is produced.
In addition, this document transmitting device 500 can also include the 3rd monitoring module 505, for waiting module 502 During persistently waiting interrupt signal, monitor whether occur Network Abnormal.If monitoring generation Network Abnormal, this etc. is triggered Treat that module 502 stops waiting interrupt signal, and trigger first monitoring module 503 end to monitor the host process in the scheduled time Whether there is the generation of upstream amount in section, and return to the transmission result of sliced transmission failure.
The specific work process of each module for more than, the file that can be provided with further reference to sixth embodiment of the invention is passed Transmission method, is not repeated herein.
In summary, the file transfer means 500 of the present embodiment, upstream data flow is not produced using monitoring host process Duration judge burst whether transmission success, compared to the processing mode of traditional transmission time-out, can better adapt to Unstable network environment such as mobile Internet, improve sliced transmission success rate, and reduce during sliced transmission due to Flow is wasted caused by timeout issue.
13rd embodiment
Refering to shown in Figure 15, thriteenth embodiment of the invention provides a kind of file transfer means 600, and it is compared to the 12nd The file transfer means 500 of embodiment, the first described monitoring module 503 includes:
Start submodule 5031, for starting described monitoring process, record the upstream that the host process has been produced Measure as TBo, start a counter, the value T of counter initial value is assigned to zero, start a timer(Timer), should Timer is used to often trigger an acquisition submodule 5032 by one section of preset time t.
Acquisition submodule 5032, for whenever by the timers trigger, recording the upstream that host process has been produced Measure TBn, and the upstream data flow TBo that the host process recorded when obtaining the last time by the timers trigger has been produced.If this Secondary is for the first time by the timers trigger, then to obtain the upstream data that the host process recorded when the monitoring process starts has been produced Flow TBo.
Judging submodule 5033, for judging to be timed what host process in the preset time t before device triggering was produced at this Whether upstream data flow TB is zero, and the TB can be drawn by solving the TBn and TBo difference.
Prompting submodule 5034, if being not zero for the TB, the value T of counter is reset, and point out user this document Send.
Submodule 5035 is updated, if being zero for the TB, the value T of counter T+t is updated to, and judge counter more Whether the value T after new is less than predetermined upper threshold value Tmax.If T is less than the Tmax, the acquisition submodule 5032 is re-executed.
Sending submodule 5036, if being not less than the Tmax for T, sends interrupt latency request, and in the interruption etc. Wait to add the information that the host process does not produce upstream data flow within a predetermined period of time in asking.
The specific work process of each module for more than, the file that can be provided with further reference to seventh embodiment of the invention is passed Transmission method, is not repeated herein.
In summary, compared to the file transfer means 500 of the 12nd embodiment, the file transmission dress that the present embodiment is provided Put 600 further can judge host process in predetermined amount of time by periodically monitoring the upstream data flow of the host process Inside whether there is the generation of upstream amount.
In addition, the embodiment of the present invention also provides a kind of computer-readable recording medium, it is stored with computer and can perform Instruction, above-mentioned computer-readable recording medium is, for example, nonvolatile memory such as CD, hard disk or flash memory.It is above-mentioned Computer executable instructions be used to allowing computer or similar arithmetic unit to complete each in above-mentioned document transmission method Plant operation.
The above described is only a preferred embodiment of the present invention, any formal limitation not is made to the present invention, though So the present invention is disclosed as above with preferred embodiment, but is not limited to the present invention, any those skilled in the art, not Depart from the range of technical solution of the present invention, when the technology contents using the disclosure above make a little change or are modified to equivalent change The equivalent embodiment of change, as long as being that, without departing from technical solution of the present invention content, the technical spirit according to the present invention is implemented to more than Example any brief introduction modification, equivalent variations and the modification made, in the range of still falling within technical solution of the present invention.

Claims (46)

1. a kind of document transmission method, it is characterised in that this method comprises the following steps:
Extraction step:A burst is extracted from the file to be passed for transporting to receiving terminal, according to the burst that transmission has been completed in file Configured transmission dynamically set the size of the burst;
Transmitting step:The burst is committed to queue to be transmitted in a host process, and not produced using the host process is monitored The mode of the duration of row data traffic come judge the burst whether transmission success;
Judgment step:If the non-transmission success of the burst, judge whether the number of retransmissions of the burst reaches default frequency threshold value; And
Retransmissions steps:If the number of retransmissions of the burst is not up to the frequency threshold value, held again after one section of preset time is waited The row transmitting step, and update the number of retransmissions of the burst.
2. document transmission method as claimed in claim 1, it is characterised in that the preset time is with the increase of the number of retransmissions And extend.
3. document transmission method as claimed in claim 1, it is characterised in that described judgment step also includes:
If the number of retransmissions of the burst reaches the frequency threshold value, this document bust this.
4. document transmission method as claimed in claim 1, it is characterised in that also including checking step:
If sliced transmission success, checks whether this document has been transmitted;
If this document is not transmitted, the extraction step is returned;And
If this document has been transmitted, this document transmission success.
5. document transmission method as claimed in claim 4, it is characterised in that what whether described inspection this document had been transmitted Step includes:
The return information of receiving terminal return is received, the return information has received all burst sizes of this document including the receiving terminal Summation;And
If the receiving terminal received all burst sizes of this document summation and this document it is equal in magnitude, judge this document It is transmitted.
6. document transmission method as claimed in claim 1, it is characterised in that in described transmitting step, the burst is submitted To queue to be transmitted the step of include:
The burst and this document are encrypted respectively;
The secret value of the burst and its secret value and this document is packaged into a packet, the packet is then committed to this Queue to be transmitted.
7. document transmission method as claimed in claim 1, it is characterised in that the extraction step includes:
Obtaining step:The configured transmission that at least one in this document has completed the burst of transmission is obtained, the configured transmission includes Burst size and transmission rate;
Calculation procedure:Configured transmission computation rate variability index of at least one burst for having completed transmission, the speed according to this Rate variability index characterizes speed of the transmission rate relative to the burst size variation;
First judgment step:Judge whether the speed variability index is less than default first threshold, if so, then updating current transmission State is a different state;
First setting procedure:Obtain corresponding with present transmission state coefficient, and set the size of currently burst to be transmitted as The burst size of transmission and the product of the coefficient are recently completed in this document;And
Intercept step:Size according to the set current burst to be transmitted intercepts current burst waiting for transmission from this document It is transmitted.
8. document transmission method as claimed in claim 7, it is characterised in that the obtaining step also includes:To transmission speed Rate is smoothed.
9. document transmission method as claimed in claim 7, it is characterised in that the present transmission state include first state, Second state and the third state, wherein first state and the corresponding coefficient of the second state are more than 1, and the corresponding system of first state Number is more than the corresponding coefficient of the second state, and the corresponding coefficient of the third state is 1.
10. document transmission method as claimed in claim 9, it is characterised in that also include before the obtaining step:
Second judgment step:Judge whether current burst waiting for transmission is the first burst of this document, set if so, then performing second Step is determined, if it is not, then performing the obtaining step;And
Second setting procedure:The acquiescence of burst size under the size of current burst to be transmitted is set as current network type Value, and present transmission state is updated to the first state, then perform the interception step.
11. document transmission method as claimed in claim 10, it is characterised in that also include before first judgment step true Determine step:
Present transmission state is determined, if the present transmission state is the first state or the second state, first judgement is performed Step.
12. document transmission method as claimed in claim 11, it is characterised in that also include the before first judgment step Three judgment steps:
If the present transmission state is the first state or the second state, judge this at least one completed the burst of transmission In, whether the access times of every kind of burst size respectively reach default Second Threshold, if so, then performing the first judgement step Suddenly, if it is not, then performing first setting procedure.
13. document transmission method as claimed in claim 11, it is characterised in that first judgment step includes:
If the speed variability index is less than the first threshold, and present transmission state is the first state, then updates current transmission State is second state;And
If the speed variability index is less than the first threshold, and present transmission state is second state, then updates current transmission State is the third state.
14. document transmission method as claimed in claim 11, it is characterised in that this method also includes the 4th judgment step, if The present transmission state is the third state, then performs the 4th judgment step, the 4th judgment step includes:
The transmission rate for counting at least one burst for having completed transmission continuously exceeds the number of times of preset range, and judges institute Whether the number of times of statistics reaches default 3rd threshold value, if it is not, then perform first setting procedure, if so, then perform this second Setting procedure.
15. document transmission method as claimed in claim 14, it is characterised in that first setting procedure and the second setting step Suddenly also include:
Judge whether the size of this document part to be sent is less than default 4th threshold value, if so, then setting current to be transmitted point The size of piece is the size of this document part to be sent.
16. document transmission method as claimed in claim 1, it is characterised in that the transmitting step includes:
Submit step:A burst of the file to be passed for transporting to receiving terminal is committed to a queue to be transmitted in a host process In;
Waiting step:Interrupt signal is persistently waited after the submission step;
First monitoring step:Monitor whether the host process has the generation of upstream amount within a predetermined period of time, if it is not, then sending Interrupt latency is asked, and the additional host process does not produce upstream data flow within a predetermined period of time in interrupt latency request Information;And
Second monitoring step:If receiving the return information that interrupt latency request or the receiving terminal are returned, terminate this etc. Treat step.
17. document transmission method as claimed in claim 16, it is characterised in that also include after the waiting step is terminated:
If the host process does not produce upstream data flow within a predetermined period of time, the transmission knot of sliced transmission failure is returned Really.
18. document transmission method as claimed in claim 16, it is characterised in that described the after interrupt latency request is sent One monitoring step terminates.
19. document transmission method as claimed in claim 16, it is characterised in that also include after the waiting step is terminated:
Judge whether the receiving terminal is properly received the burst according to the return information, if it is not, then returning to sliced transmission failure Transmit result.
20. document transmission method as claimed in claim 16, it is characterised in that second monitoring step also includes:
Terminate first monitoring step after the return information of receiving terminal return is received.
21. document transmission method as claimed in claim 16, it is characterised in that first monitoring step is different from the master Performed in the new monitoring process of process.
22. document transmission method as claimed in claim 16, it is characterised in that first monitoring step also includes:
If the host process has the generation of upstream amount within a predetermined period of time, user's this document is pointed out just in the transmission.
23. document transmission method as claimed in claim 16, it is characterised in that also include the 3rd prison after the waiting step Control step:
Monitor whether occur Network Abnormal, if occurring Network Abnormal, terminate the waiting step and first monitoring step, and return Return the transmission result of sliced transmission failure.
24. a kind of file transfer means, it is characterised in that the device includes:
Extraction module, for from the file to be passed for transporting to receiving terminal extract a burst, according to completed in file transmission The configured transmission of burst dynamically sets the size of the burst;
Transport module, for the burst to be committed into queue to be transmitted in a host process, and is not produced using the host process is monitored The mode of the duration of raw upstream data flow come judge the burst whether transmission success;
Judge module, if for the non-transmission success of the burst, judging whether the number of retransmissions of the burst reaches default number of times Threshold value;And
Retransmission module, if the number of retransmissions for the burst is not up to the frequency threshold value, the weight after one section of preset time is waited The transmitting step is newly performed, and updates the number of retransmissions of the burst.
25. file transfer means as claimed in claim 24, it is characterised in that the preset time is with the increasing of the number of retransmissions Plus and extend.
26. file transfer means as claimed in claim 24, it is characterised in that if described judge module is additionally operable to the burst Number of retransmissions reach the frequency threshold value, then judge this document bust this.
27. file transfer means as claimed in claim 24, it is characterised in that also including checking module, be used for:
If sliced transmission success, checks whether this document has been transmitted;
If this document is not transmitted, the extraction step is returned;And
If this document has been transmitted, this document transmission success.
28. file transfer means as claimed in claim 27, it is characterised in that whether described inspection this document has been transmitted Including:
The return information of receiving terminal return is received, the return information has received all burst sizes of this document including the receiving terminal Summation;And
If the receiving terminal received all burst sizes of this document summation and this document it is equal in magnitude, judge this document It is transmitted.
29. file transfer means as claimed in claim 24, it is characterised in that described transport module is additionally operable to:
The burst and this document are encrypted respectively;And
The secret value of the burst and its secret value and this document is packaged into a packet, the packet is then committed to this Queue to be transmitted.
30. file transfer means as claimed in claim 24, it is characterised in that the extraction module further comprises:
Acquisition module, for obtaining the configured transmission that at least one in this document has completed the burst of transmission, the configured transmission Including burst size and transmission rate;
Computing module, for according to this at least one completed transmission burst configured transmission computation rate variability index, The speed variability index characterizes speed of the transmission rate relative to the burst size variation;
First judge module, for judging whether the speed variability index is less than default first threshold, if so, then updating current Transmission state is a different state;
First setting module, for obtaining coefficient corresponding with the present transmission state, and sets the big of current burst to be transmitted The small product to be recently completed the burst size and the coefficient of transmission in this document;And
Interception module, is intercepted current waiting for transmission for the size according to the set current burst to be transmitted from this document Burst is transmitted.
31. file transfer means as claimed in claim 30, it is characterised in that the acquisition module is additionally operable to transmission speed Rate is smoothed.
32. file transfer means as claimed in claim 30, it is characterised in that the present transmission state includes the first shape State, the second state and the third state, wherein first state and the corresponding coefficient of the second state are more than 1, and first state correspondence Coefficient be more than the corresponding coefficient of the second state, the corresponding coefficient of the third state be 1.
33. file transfer means as claimed in claim 32, it is characterised in that the extraction module also includes:
Second judge module, for before the acquisition module is performed, judging whether current burst waiting for transmission is this document First burst, if so, the second setting module is then performed, if it is not, then performing the acquisition module;And
Second setting module, for setting the size of current burst to be transmitted as current network type under burst size write from memory Recognize value, and present transmission state is updated to the first state, then perform the interception module.
34. file transfer means as claimed in claim 33, it is characterised in that the extraction module also includes:
Determining module, for determining present transmission state, if the present transmission state is the first state or the second state, holds Row first judge module.
35. file transfer means as claimed in claim 34, it is characterised in that the extraction module also includes:
3rd judge module, if being the first state or the second state for the present transmission state, judges this at least one In the burst for having completed transmission, whether the access times of every kind of burst size respectively reach default Second Threshold, if so, then First judge module is performed, if it is not, then performing first setting module.
36. file transfer means as claimed in claim 34, it is characterised in that first judge module is used for:
If the speed variability index is less than the first threshold, and present transmission state is the first state, then updates current transmission State is second state;And
If the speed variability index is less than the first threshold, and present transmission state is second state, then updates current transmission State is the third state.
37. file transfer means as claimed in claim 34, it is characterised in that the extraction module also judges mould including the 4th Block, for being performed when the present transmission state is the third state, the 4th judge module is used for:
The transmission rate for counting at least one burst for having completed transmission continuously exceeds the number of times of preset range, and judges institute Whether the number of times of statistics reaches default 3rd threshold value, if it is not, then perform first setting module, if so, then perform this second Setting module.
38. file transfer means as claimed in claim 37, it is characterised in that first setting module and the second setting mould Block is additionally operable to:
Judge whether the size of this document part to be sent is less than default 4th threshold value, if so, then setting current to be transmitted point The size of piece is the size of this document part to be sent.
39. file transfer means as claimed in claim 24, it is characterised in that the transport module further comprises:
Module is submitted, for a burst of the file to be passed for transporting to receiving terminal to be committed into a team to be transmitted in a host process In row;
Module is waited, for persistently waiting interrupt signal;
First monitoring module, for monitoring whether the host process has the generation of upstream amount within a predetermined period of time, if it is not, then Interrupt latency request is sent, and the host process is added in interrupt latency request and does not produce upstream data within a predetermined period of time The information of flow;And
Second monitoring module, if for receiving the return information that interrupt latency request or the receiving terminal are returned, triggering The wait module stops waiting interrupt signal.
40. file transfer means as claimed in claim 39, it is characterised in that wait module stopping etc. is to be interrupted triggering Also include after signal:
If the host process does not produce upstream data flow within a predetermined period of time, the transmission knot of sliced transmission failure is returned Really.
41. file transfer means as claimed in claim 39, it is characterised in that described the after interrupt latency request is sent One monitoring module stops performing.
42. file transfer means as claimed in claim 39, it is characterised in that wait module stopping etc. is to be interrupted triggering Also include after signal:
Judge whether the receiving terminal is properly received the burst according to the return information, if it is not, then returning to sliced transmission failure Transmit result.
43. file transfer means as claimed in claim 39, it is characterised in that second monitoring module is additionally operable to receiving To the receiving terminal return return information after trigger the first monitoring module stop monitor the host process within a predetermined period of time whether There is the generation of upstream amount.
44. file transfer means as claimed in claim 39, it is characterised in that first monitoring module is different from the master Performed in the new monitoring process of process.
45. file transfer means as claimed in claim 39, it is characterised in that if first monitoring module is additionally operable to the master Process has the generation of upstream amount within a predetermined period of time, then points out user's this document just in the transmission.
46. file transfer means as claimed in claim 39, it is characterised in that also including the 3rd monitoring module, for monitoring Whether occur Network Abnormal, if occurring Network Abnormal, trigger the wait module and stop waiting interrupt signal, triggering first is monitored Module stops monitoring whether the host process has the generation of upstream amount within a predetermined period of time, and returns to sliced transmission failure Transmission result.
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 CN104168093A (en) 2014-11-26
CN104168093B true 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)

Families Citing this family (15)

* 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
CN107645531B (en) * 2016-07-22 2021-08-24 平安科技(深圳)有限公司 Data synchronization method and system
CN108401002B (en) * 2017-02-07 2021-01-01 腾讯科技(深圳)有限公司 File transmission method and equipment
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
CN108804290B (en) * 2018-06-13 2022-03-18 姜锋 Method and system for information transmission safety of mobile storage equipment
CN109257428A (en) * 2018-09-27 2019-01-22 火烈鸟网络(广州)股份有限公司 Using the distribution method of packet, device, storage medium and equipment
CN109905479B (en) * 2019-03-04 2022-06-07 腾讯科技(深圳)有限公司 File transmission method and device
CN110245164A (en) * 2019-05-09 2019-09-17 阿里巴巴集团控股有限公司 A kind of data backflow detection method, device and equipment
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
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

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

Also Published As

Publication number Publication date
WO2014187114A1 (en) 2014-11-27
CN104168093A (en) 2014-11-26

Similar Documents

Publication Publication Date Title
CN104168093B (en) A kind of document transmission method and device
CN104184753B (en) A kind of document transmission method and device
CN104168081B (en) A kind of document transmission method and device
US11064330B2 (en) Methods for enabling delay-awareness in the constrained application protocol (CoAP)
JP6023368B1 (en) Interactive real-time media transfer protocol
US9155046B2 (en) Optimizing semi-active workloads
WO2020134755A1 (en) Data transmission method and device
US20170164231A1 (en) Data transmission method and base station
US10021182B2 (en) Method and apparatus for data synchronization
CN102148662B (en) Adjusting method and device for data transmitting speed
WO2019080906A1 (en) Lwaap-based data transmission method, device and storage medium
CN108924964A (en) Guarantee the method and user equipment of continuity
KR20130065619A (en) Method of transporting data from sending node to destination node
EP3490293B1 (en) Data receiving method, data sending method, receiving device and system
CN112437474A (en) Information transmission method and information transmission device
WO2021092859A1 (en) Method for establishing iso link, and ble device
JP2004229306A5 (en)
US10153961B2 (en) Communication device, communication method, and communication system
CN107359972B (en) A kind of data receiver method and device
WO2023179538A1 (en) Data transmission method and apparatus, electronic device, and storage medium
CN106302361A (en) A kind of method and apparatus preventing network attack
US8595477B1 (en) Systems and methods for reducing handshake delay in streaming protocol web requests
JP2017530574A (en) Method and device for signaling in a communication network
CN113852445B (en) Method, system, equipment and storage medium for improving data transmission reliability
US10425508B1 (en) System for identifying idle time of a protocol to facilitate communication using multiple protocols

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