EWMA for calculating Estimated RTT

  • Thread starter alman9898
  • Start date
In summary, to calculate EstimatedRTT using EWMA, you need to use the above equation with the appropriate values for α and SampleRTT.
  • #1
alman9898
10
0

Homework Statement



For a given TCP connection, suppose 4 acknowledgments have been returned with RTTs: SampleRTT(4), SampleRTT(3), SampleRTT(2), SampleRTT(1). SampleRTT(1) is the most recent, SampleRTT(2) is the second most recent, etc.

Calculate EstimatedRTT...

Homework Equations



Initialize EstimatedRTT to SampleRTT(4), the first sample.

EstimatedRTT = [tex](1-\alpha)\times EstimatedRTT[/tex] + [tex]\alpha\times SampleRTT[/tex]

The Attempt at a Solution



Plugging in I get...

[tex](1-\alpha)^{3}\times SampleRTT(4) + \alpha\times(1-\alpha)^{2}\times SampleRTT(3) + \alpha\times(1-\alpha)\times SampleRTT(2) + \alpha\times SampleRTT(1)[/tex]

But, EWMA is supposed to put less emphasis on older values...this seems to work for SampleRTT(3) and SampleRTT(2) but SampleRTT(4) will have a larger coefficient. I believe it's supposed to be multiplied by a factor of alpha as well, but I can't seem to find any arithmetic error and it's very annoying...am I doing it wrong or what?

For reference, alpha = .1 in this problem, but that's not exactly important, the calculations should be the same.
 
Physics news on Phys.org
  • #2

Your attempt at a solution is correct, but there is a small error in your equation. The correct equation for calculating EstimatedRTT using EWMA is:

EstimatedRTT = (1-α) * EstimatedRTT + α * SampleRTT

Where α is the smoothing factor, typically set to a value between 0 and 1. So in your case, the correct equation would be:

EstimatedRTT = (1-0.1)^3 * SampleRTT(4) + 0.1 * (1-0.1)^2 * SampleRTT(3) + 0.1 * (1-0.1) * SampleRTT(2) + 0.1 * SampleRTT(1)

This will give you the correct value for EstimatedRTT, taking into account the smoothing factor α.
 
  • #3


Your calculation for EstimatedRTT is correct. However, it is important to note that the value of alpha will affect the weight given to each SampleRTT. A larger value of alpha will put more weight on the most recent SampleRTT, while a smaller value of alpha will put more weight on the older SampleRTTs. So, in this case, since alpha = 0.1, the most recent SampleRTT(1) will have a weight of 0.1, while the oldest SampleRTT(4) will have a weight of 0.1^3 = 0.001. This shows that the EWMA method does indeed put less emphasis on older values.
 

1. What is EWMA and how is it used to calculate Estimated RTT?

EWMA stands for Exponentially Weighted Moving Average. It is a statistical method that calculates a weighted average of a set of data points, giving more weight to recent data points. In the context of calculating Estimated RTT (Round Trip Time), EWMA is used to calculate a weighted average of the measured RTTs over time, with more recent RTTs having a higher weight in the calculation.

2. Why is EWMA preferred over a simple average for calculating Estimated RTT?

EWMA is preferred over a simple average because it gives more weight to recent data points, reflecting the fact that the network conditions and RTT can change over time. This makes the Estimated RTT more accurate and adaptive to variations in the network.

3. How does the choice of the EWMA coefficient affect the accuracy of the Estimated RTT?

The EWMA coefficient, also known as the smoothing factor, determines the weight given to the most recent data point. A higher coefficient gives more weight to recent data points, making the Estimated RTT more responsive to changes in the network. However, a very high coefficient can also make the Estimated RTT too sensitive to fluctuations in the RTT. On the other hand, a lower coefficient gives less weight to recent data points, making the Estimated RTT less responsive to changes in the network.

4. Can EWMA be used for calculating Estimated RTT in all types of networks?

Yes, EWMA can be used for calculating Estimated RTT in all types of networks, including wired and wireless networks. However, the choice of the EWMA coefficient may need to be adjusted based on the specific characteristics of the network, such as the level of congestion and packet loss.

5. How does EWMA help in improving the performance of a network protocol?

EWMA helps in improving the performance of a network protocol by providing a more accurate and adaptive estimate of the RTT, which is used in the calculation of the retransmission timeout (RTO). By having a more accurate RTO, the protocol can better handle variations in the network, leading to improved performance and reduced packet loss.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
555
  • Introductory Physics Homework Help
Replies
3
Views
1K
  • Differential Geometry
Replies
29
Views
1K
  • Programming and Computer Science
Replies
1
Views
585
  • Classical Physics
Replies
5
Views
950
  • Engineering and Comp Sci Homework Help
Replies
3
Views
3K
  • Introductory Physics Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Advanced Physics Homework Help
Replies
1
Views
1K
  • Special and General Relativity
3
Replies
75
Views
3K
Back
Top