28 Mar
2007
28 Mar
'07
8 a.m.
Some of you may have spotted Perry's "deliberate" mistake Perry Lorier wrote:
So what should you set your rwin to? rwin (in bytes) = (bandwidth_in_bits_per_second/(latency_in_ms/1000))/8
Thus to get 6mbit over a single tcp stream from europe 300ms away you need: estimated_ws = 2500,000 = (6,000,000/(300/1000))/8 That is about 2.5 MB of rwin.
That should be bandwidth delay _product_ so: estimated_ws = 225,000 = (6,000,000*(300/1000))/8 That is about 220kB of rwin which is not quite so bad as burning 4MB on every TCP connection. Note also that the TCP send window needs to be set the same so if your US or Euro server isn't similarly configured then you're screwed anyway. Richard.