Re: Network timeout estimation
- From: "Jim Langston" <tazmaster@xxxxxxxxxxxxxx>
- Date: Sat, 17 Nov 2007 17:16:41 -0800
"dondora" <koninja@xxxxxxxxxxx> wrote in message
news:d3778c32-a874-4377-875c-f7082fe193c1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi there.
I need your help.
I'm coding a simple program which provides reliable transmission using
udp as a homework.
I'm going to use expressions used in TCP timeout estimation.
Let me show those expressions.
EstimatedRTT = (1 - a) * EstimatedRTT + a * SampleRTT
(the recommended a = 0.125)
DevRTT = (1 - b) * DevRTT + b * |SampleRTT - EstimatedRTT|
(the recommended b = 0.25)
TimeoutInterval = EstimatedRTT + 4 * DevRTT
What I really want is TimeoutInterval. But to get it, I have to know
EstimatedRTT and DevRTT,
and the real problem is at initial time, at which time nothing has
done like sening a packet and receiving a ACK)
I don't know what EstimatedRTT is to be and what DevRTT is to be.
Can you help me to solve this problem? I'll appreciate that. I really
need your help~!~! please~!~!
Well, for the first packet you should probably make it some high value as
you'll be waiting for the other end to acknowledge, open the socket, prepare
and start sending. Such as 5 seconds or something. Just plug some number
in initially and see how it works, if it it's too long or two short,
manipulate it.
.
- References:
- Network timeout estimation
- From: dondora
- Network timeout estimation
- Prev by Date: Re: Path optimizations
- Next by Date: Re: two interesting data structure/algorithm questions
- Previous by thread: Re: Opps I just woke-up and I have not had my cup of coffee!
- Next by thread: Re: Network timeout estimation
- Index(es):
Relevant Pages
|