Summary of the invention
The purpose of this invention is to provide a kind of reliable transmission acceleration method (New Fast Tcp) towards high bit-error, long delay characteristics network; To judge that the current network lost reason is that network congestion or link error cause, utilize the transmission strategy of transmitting terminal in the judged result adjustment reliable transport protocol again.
The objective of the invention is to realize like this: a kind of reliable transmission acceleration method towards high bit-error, long delay characteristics network; On the basis of FAST Transmission Control Protocol; Distinguish the reason of network generation packet loss according to following method: when transmitting terminal is received 3 repeat ACK bags; Can judge the transmission rate of previous RTT and the difference of current RTT transmission rate; If the transmission rate of current RTT during greater than the transmission rate of previous RTT, does not also have congested generation in the expression network, lost reason is a link error; If the transmission rate of current RTT then representes to have congested generation in the network much smaller than the transmission rate of previous RTT, can think that packet loss is owing to network congestion causes;
Transmission rate (the TP of current RTT
Current_rtt) computing formula following:
Wherein, Snd_nxt is the sequence number of the section that is being sent out, and seg_ack is the sequence number of the section confirmed of the current ACK bag of receiving, both differences are the data volumes of sending in the current RTT; Snd_mss is the maximum segment size of transport layer, and avgRTT is current average RTT;
diff=TP
Last_rtt-TP
Current_rtt (2)
Wherein, diff is the transmission rate (TP of previous RTT
Last_rtt) with the transmission rate (TP of current RTT
Current_rtt) poor; The method of judging the packet loss reason according to threshold parameter α is following:
(a) if diff>α thinks that then packet loss is caused by network congestion;
(b) if diff≤α thinks that then packet loss is caused by link error; Threshold parameter α value 0.99~1.
Transmitting terminal is taked following transmission strategy after distinguishing lost reason:
(a) network congestion if packet loss is, then transmitting terminal calls congestion avoidance algorithm, and the bag of retransmission of lost gets into the fast quick-recovery stage then fast, reduces data package transmission velocity;
(b) if because the packet loss that causes of link error, then explicit re-transmission gets into and recovers the stage fully, and being about to congestion window increases by 3, keeps original transmission rate.
According to current average RTT and current variable δ of RTT value structure that measures, its value can obtain through following formula:
T wherein
i(k) be the RTT value that k is measured, T
i(k) be k RTT value that measures; Construct two groups of threshold values again, be respectively { δ
1, δ
2..., δ
i..., δ
nAnd { λ
1, λ
2..., λ
i..., λ
n, λ
N+1, 0≤δ wherein
1<δ
2... δ
i<δ
I+1...<δ
n, 0≤λ
1<λ
2... λ
i<λ
I+1... λ
n<λ
N+1<1, the computing formula of improving the smoothing factor η (t) in the computational methods of calculating average RTT in the back is:
Formula capable of using (5) and formula (6) are upgraded according to formula (3), can reflect the average RTT value of the available bandwidth situation of network exactly;
T
i(k+1)=(1-η(t
k))T
i(k)+η(t
k)T
i(k) (3)。
The method of distinguishing lost reason is following:
The basic principle of this method is: because the transmission rate of adjacent R TT can reflect the situation of change of the available bandwidth of network, if the transmission rate of current RTT is during greater than the transmission rate of previous RTT, the expression network does not also have saturated, does not have congested generation in the network; If it is saturated that the transmission rate of current RTT, representes then that network has begun much smaller than the transmission rate of previous RTT, has congested generation in the network.Therefore; When transmitting terminal is received 3 repeat ACK bags, can judge the transmission rate of previous RTT and the difference of current RTT transmission rate, if the transmission rate of current RTT is during greater than the transmission rate of previous RTT; Also do not have congested generation in the expression network, lost reason is a link error; If the transmission rate of current RTT then representes to have congested generation in the network much smaller than the transmission rate of previous RTT, can think that packet loss is owing to network congestion causes.Transmission rate (the TP of current RTT wherein
Current_rtt) computing formula following:
Wherein, Snd_nxt is the sequence number of the section that is being sent out, and seg_ack is the sequence number of the section confirmed of the current ACK bag of receiving, both differences are the data volumes of sending in the current RTT; Snd_mss is the maximum segment size of transport layer, and avgRTT is current average RTT.
diff=TP
Last_rtt-TP
Current_rtt (2)
Wherein diff is the transmission rate (TP of previous RTT
Last_rtt) with the transmission rate (TP of current RTT
Current_rtt) poor, it can reflect the available bandwidth situation of network.We introduce a threshold parameter α, judge that the method for packet loss reason is following:
(a) if diff>α thinks that then packet loss is caused by network congestion;
(b) if diff≤α thinks that then packet loss is caused by link error.
Through a large amount of analysis of experiments, effect is better when obtaining threshold parameter α and getting the value of 0.99~1 scope.
Transmitting terminal is taked following transmission strategy after distinguishing lost reason:
(a) network congestion if packet loss is, then transmitting terminal calls congestion avoidance algorithm, and the bag of retransmission of lost gets into the fast quick-recovery stage (the fast quick-recovery of TCP-NewReno) then fast, reduces data package transmission velocity;
(b) if because the packet loss that causes of link error, then explicit re-transmission gets into and recovers the stage fully, and being about to congestion window increases by 3, keeps original transmission rate;
The computational methods of the average RTT of New Fast TCP are following:
The algorithm that calculates average RTT in the FAST Transmission Control Protocol is:
T
i(k+1)=(1-η(t
k))T
i(k)+η(t
k)T
i(k) (3)
η(t)=min(3/w
i(t),1/4) (4)
T wherein
i(k+1) be (to be T to the average RTT of k
i(k)) renewal, T
i(k) be k RTT value that measures, t
kBe to measure T
i(k) the moment, η (t) and w
i(t) be smoothing factor and window value respectively at moment t.
The value that can find out η (t) from formula (4) used value 1/8 much smaller than traditional Transmission Control Protocol; So the RTT after level and smooth can not reflect the available bandwidth situation of network exactly; Make that the renewal of congestion window is also insensitive; Can not utilize the bandwidth of link well, so a kind of improvement project of calculating average RTT has been proposed this patent.It is improved one's methods as follows:
Set a variable δ, its value can obtain through following formula:
Set two groups of threshold values, be respectively { δ
1, δ
2..., δ
i..., δ
nAnd { λ
1, λ
2..., λ
i..., λ
n, λ
N+1, 0≤δ wherein
1<δ
2... δ
i<δ
I+1...<δ
nAnd 0≤λ
1<λ
2... λ
i<λ
I+1... λ
n<λ
N+1<1, the computing formula of improving the smoothing factor η (t) in the computational methods of calculating average RTT in the back is:
Can select the size of corresponding threshold value number and threshold value according to actual conditions, select suitable value can improve the utilance and the reliable transmission performance of link.
Compared with prior art, the invention has the beneficial effects as follows:
The present invention through the improvement to its congestion control mechanism, fault recovering mechanism, has greatly improved the reliable transmission performance on the basis of FAST Transmission Control Protocol.The present invention has mainly solved two key issues, that is: lost reason is distinguished in (1), avoids congestion window to reduce by half blindly, has strengthened the transmission performance of reliable transport protocol; (2) propose a kind of average RTT account form based on the sectionally smooth factor, it is sensitiveer to make that congestion window upgrades ground according to network condition, thereby has improved link bandwidth utilization rate and transmission performance.
Embodiment
The present invention can be applicable in the network of high bit-error, long delay.Below in conjunction with accompanying drawing enforcement of the present invention is described further:
With reference to shown in Figure 1; By we to the present invention verify the topology diagram of work test; L-G simulation test has been simulated 10 pairs of business and has been carried out the ftp file transmission, and every pair of business all is the file of client from ftp server download 60M, and their share same section bottleneck link that bandwidth is 3Mbps.The bandwidth and the propagation delay of some links have wherein also been marked among the figure.According to topological structure shown in Figure 1, we have verified under different link error rates and the different link propagation delays, the transmission performance of each agreement.
With reference to shown in Figure 2, for the error rate of bottleneck link is 5 * 10
-6, when propagation delay is 50ms, the contrast of the throughput of the method that TCP-Reno, TCP-NewReno, FAST TCP and this patent are proposed (New FAST TCP).Because the error rate is bigger; The packet loss that a lot of link errors is arranged and cause, Traditional TCP protocol and FAST TCP method are not distinguished packet loss reason mechanism, so cause a large amount of unnecessary congestion windows to reduce by half; Transmission performance seriously reduces; The method that this patent proposed then can effectively be distinguished lost reason, thereby adopts the corresponding strategy that sends, and has improved the utilance and the transmission performance of link.As can be seen from the figure the throughput performance of this patent has a distinct increment than the performance of other several kinds of agreements.
With reference to shown in Figure 3, for the error rate of bottleneck link is 10
-5, when propagation delay is 50ms, the contrast of the throughput of four kinds of method for reliable transmission, a kind of situation in its result and front is similar, because this moment, the error rate was bigger, the throughput of New FAST TCP and other agreement differs bigger.
With reference to figure 4 with reference to shown in Figure 5, for the propagation delay at bottleneck link is 125ms, the error rate is respectively 5 * 10
-6With 10
-5The time, the throughput contrast of four kinds of method for reliable transmission.As can be seen from the figure the two kinds of situation in result of the test and front are similar, and under high bit-error, long delay environment, the transmission performance of New FAST TCP is higher than other several kinds of agreements far away.
(RTT refers to round-trip delay to table 1 in the table 1; Round Trip Time; RTT) be four kinds of method for reliable transmission under the various error rates and propagation delay, the time that a pair of service downloading 10M file is consumed, the institute's time spent that can be found out New FAST TCP by the data in the table 1 is much smaller than other several kinds of method for reliable transmission; Under the certain situation, its time-consuming is about 20% of other method.
Table 1