Round-trip time (rtt)

RTT: Round-Trip Time (RTT) can also be called as round-trip delay. It is to calculate how much time required for sending a packet or signal pulse from one source to a specific destination and comes back to the same specific source. RTT is one of the several factors that affecting latency and the time between the request for data and also the complete return or display of that data. RTT can range between a few milliseconds under some ideal conditions to several seconds between points under adverse conditions.
Estimated RTT plus can be defined as “safety margin”. It is the estimated value of RTT that is based on the combination of current RTT and the past RTT.
EstimatedRTT = (1- a)*EstimatedRTTlast + a*SampleRTT
Large variation in Estimated RTT means larger safety margin. To calculate the DevRTT we need to estimate how much Sample RTT deviates from Estimated RTT i.e.,
DevRTT = (1-b)*DevRTTlast +b*|SampleRTT-EstimatedRTT| (typically, b = 0.25)

Don't use plagiarized sources. Get Your Custom Essay on
Round-trip time (rtt)
Just from $13/Page
Order Essay

Segment

Sample
RTT

Estimated
RTT

DevRTT

Time Out Interval

1

130

130.00

130.00

650.00

2

138

131.00

99.25

528.00

3

122

129.88

76.41

435.50

4

124

129.14

58.59

363.50

5

131

129.37

44.35

306.77

6

139

130.58

35.37

272.05

7

139

131.63

28.37

245.10

8

121

130.30

23.60

224.71

9

134

130.76

18.51

204.80

10

127

130.29

14.71

189.12

11

267

147.38

40.93

311.12

12

139

146.33

32.53

276.47

13

126

143.79

28.85

259.19

14

134

142.57

23.78

237.68

15

141

142.37

18.18

215.08

16

137

141.70

14.81

200.93

17

291

160.36

43.76

335.42

18

123

155.69

41.00

319.68

19

134

152.98

35.49

294.95

20

139

151.23

29.68

269.95

21

141

149.95

24.50

247.94

22

142

148.96

20.11

229.41

23

139

147.71

17.26

216.77

24

122

144.50

18.57

218.79

25

123

141.81

18.63

216.34

26

143

141.96

14.23

198.90

27

215

151.09

26.65

257.70

28

134

148.95

23.73

243.87

29

122

145.59

23.69

240.36

30

134

144.14

20.30

225.35

Table 1
A premature retransmission timeout occurs if there is no packet or signal loss or if the lost packet or signal can be captured by fast retransmission mechanism. With contrast, over estimation of RTT will lead to late retransmission timeout, in that case, if there is a loss and which cannot be captured by the fast retransmission mechanism. Therefore, it is crucial to have a Retransmission Timeout (RTO) value for TCP performance which is an equilibrium point in balancing between both the above cases.
Note: RTO must be smaller than RTT.
Following are the few algorithms which help in setting the retransmission timeout
Ludwig and Katz propose the Eifel algorithm to eliminate the unnecessary retransmissions that can result from a spurious retransmission timeout.

Gurtov and Ludwig present an enhanced version of the Eifel algorithm and show its performance benefits on paths with a high bandwidth-delay product.

Ekstrand Ludwig proposes a new algorithm for calculating the RTO, named the Peak-Hopper-RTO (PH-RTO), which improves upon the performance of TCP in high loss environments.

RFC 3649 proposes modification of TCP congestion control that adapts the increase strategy and makes it more aggressive for high bandwidth links (i.e. for large window sizes)
Even if there is no packet loss in the network, windowing can limit throughput. Because TCP transmits data up to the window size before waiting for the packets, the full bandwidth of the network may not always get used. The limitation caused by window size can be calculated as follows:
where RWIN is the maximum receive windows size and RTT is the round-trip time for the path.
At any given time, the window advertised by the receive side of TCP corresponds to the amount of free receive memory it has allocated for this connection. Otherwise it would take the risk to have to drop received packets by lack of space.
Unrelated to the TCP receive window, the sending side should also allocate the same amount of memory as the receive side for good performance. That is because, even after data has been sent on the network, the sending side must hold it in memory until its has been acknowledged as successfully received, just in case it would have to be retransmitted. If the receiver is far away, acknowledgments will take a long time to arrive. If the send memory is small, it can saturate and block emission. A simple computation gives the same optimal send memory size as for the receive memory size given above.

Packet loss
When packet loss occurs in the network, an additional limit is imposed on the connection. The limit can be calculated according to the formula (Mathis et al.):
where MSS is the maximum segment size and Ploss is the probability of packet loss
Below table shows the theoretical maximum sustained TCP throughput
135 kbits/sec at 1 second RTT
225 kbits/sec at 600 millisec RTT (typical satellite RTT)
449 kbits/sec at 300 millisec RTT
1200 kbits/sec at 100 millisec RTT (typical domestic Internet RTT)
1780 kbits/sec at 60 millisec RTT
2800 kbits/sec at 30 millisec RTT
4510 kbits/sec at 10 millisec RTT (typical within a city)
In order to set the ACK timer we need to know how large the ACK timeout value should be. It can be too short or too long.
Too short –> premature timeout –> extra retransmission
Too long –> slow reaction to loos –> poor performance
For this we need to have the timer longer than RTT, for this we need to estimate RTT by measuring the time from a segment transmission until the receipt of ACK which is nothing but Sample RTT. For this we need to ignore retransmissions and measure only one segment’s RTT at a time. By doing so, the sample RTT will vary and we can compute an average RTT based on the several recent RTT samples.
Timeout = Estimated RTT + 4*DevRTT
The probability of premature retransmission timeout is
P1 = P[RTO < RTT]
((1-p) W + (1-(1-p) W) (1-3/W) )
≈ P[RTO < RTT] (1-3/W 2)
≈ P[RTO < RTT]
The throughput degradation due to this event is:
L1 = WlogW.
During the slow start ph.ase we can observe, TCP sends at most W packets. We obtain that the expected output degradation result to premature retransmission timeout is:
P1.L1 = P[RTO<RTT].WlogW.
For given data the maximum sample RTT is 291, if we choose the 291 as rough value then as time out interval then the probability of premature timeout will occur on Segment 17 as we know all the data segment 1 to 30 but in real data transmission we couldn’t have the values that we why we need to estimate the optimum time out interval.
So we need to Caliculate Estimated RTT and Sample RTT and Dev RTT to optimum Time out values for reliable data tranmission.
As per the given data the Optimum Time Out Value for unknown next segment is caliculated dynamically with previous sample RTT and estimated RTT. In case of Segment 17 if we have the previous values of sample RTT and estimated RTT and DevRTT the Optimum Time out interval is 335.42.
http://www.slac.stanford.edu/comp/net/wan-mon/thru-vs-loss.html
 

What Will You Get?

We provide professional writing services to help you score straight A’s by submitting custom written assignments that mirror your guidelines.

Premium Quality

Get result-oriented writing and never worry about grades anymore. We follow the highest quality standards to make sure that you get perfect assignments.

Experienced Writers

Our writers have experience in dealing with papers of every educational level. You can surely rely on the expertise of our qualified professionals.

On-Time Delivery

Your deadline is our threshold for success and we take it very seriously. We make sure you receive your papers before your predefined time.

24/7 Customer Support

Someone from our customer support team is always here to respond to your questions. So, hit us up if you have got any ambiguity or concern.

Complete Confidentiality

Sit back and relax while we help you out with writing your papers. We have an ultimate policy for keeping your personal and order-related details a secret.

Authentic Sources

We assure you that your document will be thoroughly checked for plagiarism and grammatical errors as we use highly authentic and licit sources.

Moneyback Guarantee

Still reluctant about placing an order? Our 100% Moneyback Guarantee backs you up on rare occasions where you aren’t satisfied with the writing.

Order Tracking

You don’t have to wait for an update for hours; you can track the progress of your order any time you want. We share the status after each step.

image

Areas of Expertise

Although you can leverage our expertise for any writing task, we have a knack for creating flawless papers for the following document types.

Areas of Expertise

Although you can leverage our expertise for any writing task, we have a knack for creating flawless papers for the following document types.

image

Trusted Partner of 9650+ Students for Writing

From brainstorming your paper's outline to perfecting its grammar, we perform every step carefully to make your paper worthy of A grade.

Preferred Writer

Hire your preferred writer anytime. Simply specify if you want your preferred expert to write your paper and we’ll make that happen.

Grammar Check Report

Get an elaborate and authentic grammar check report with your work to have the grammar goodness sealed in your document.

One Page Summary

You can purchase this feature if you want our writers to sum up your paper in the form of a concise and well-articulated summary.

Plagiarism Report

You don’t have to worry about plagiarism anymore. Get a plagiarism report to certify the uniqueness of your work.

Free Features $66FREE

  • Most Qualified Writer $10FREE
  • Plagiarism Scan Report $10FREE
  • Unlimited Revisions $08FREE
  • Paper Formatting $05FREE
  • Cover Page $05FREE
  • Referencing & Bibliography $10FREE
  • Dedicated User Area $08FREE
  • 24/7 Order Tracking $05FREE
  • Periodic Email Alerts $05FREE
image

Our Services

Join us for the best experience while seeking writing assistance in your college life. A good grade is all you need to boost up your academic excellence and we are all about it.

  • On-time Delivery
  • 24/7 Order Tracking
  • Access to Authentic Sources
Academic Writing

We create perfect papers according to the guidelines.

Professional Editing

We seamlessly edit out errors from your papers.

Thorough Proofreading

We thoroughly read your final draft to identify errors.

image

Delegate Your Challenging Writing Tasks to Experienced Professionals

Work with ultimate peace of mind because we ensure that your academic work is our responsibility and your grades are a top concern for us!

Check Out Our Sample Work

Dedication. Quality. Commitment. Punctuality

Categories
All samples
Essay (any type)
Essay (any type)
The Value of a Nursing Degree
Undergrad. (yrs 3-4)
Nursing
2
View this sample

It May Not Be Much, but It’s Honest Work!

Here is what we have achieved so far. These numbers are evidence that we go the extra mile to make your college journey successful.

0+

Happy Clients

0+

Words Written This Week

0+

Ongoing Orders

0%

Customer Satisfaction Rate
image

Process as Fine as Brewed Coffee

We have the most intuitive and minimalistic process so that you can easily place an order. Just follow a few steps to unlock success.

See How We Helped 9000+ Students Achieve Success

image

We Analyze Your Problem and Offer Customized Writing

We understand your guidelines first before delivering any writing service. You can discuss your writing needs and we will have them evaluated by our dedicated team.

  • Clear elicitation of your requirements.
  • Customized writing as per your needs.

We Mirror Your Guidelines to Deliver Quality Services

We write your papers in a standardized way. We complete your work in such a way that it turns out to be a perfect description of your guidelines.

  • Proactive analysis of your writing.
  • Active communication to understand requirements.
image
image

We Handle Your Writing Tasks to Ensure Excellent Grades

We promise you excellent grades and academic excellence that you always longed for. Our writers stay in touch with you via email.

  • Thorough research and analysis for every order.
  • Deliverance of reliable writing service to improve your grades.
Place an Order Start Chat Now
image

Order your essay today and save 30% with the discount code Happy