Need RWIN formula tested.

Get help and discuss anything related to tweaking your internet connection, as well as the different tools and registry patches on the site. TCP Optimizer settings and Analyzer results should be posted here.
Post Reply
neo86
Regular Member
Posts: 255
Joined: Tue Aug 22, 2000 12:00 am

Need RWIN formula tested.

Post by neo86 »

Would somebody mind testing out this new rwin formula I have for XP/2k:

x=your cap in bits
mss=your mss (usually 1460)
mtu=your mtu (usually 1500)

e.g: If you cap is is 1.5mb/sec multiply 1.5*1000000 to get your cap in bits.

x/8*1460/1500=TcpWindowSize

If the value is an odd integer or has decimels:

Divide by 1460. Round that number to the nearest even integer, and multiply by 1460.

Multiply the final value by 10 and set that number to be your DefualtRcvWindow.
User avatar
earthmofo
Senior Member
Posts: 1128
Joined: Fri Nov 17, 2000 12:00 am
Location: Providence, RI USA

Post by earthmofo »

With a 3000/256 cap my value using your formular would be 3650000 which would be too high.

Why not use the correct formular?

(Maximum Bandwidth * Anticipated Latencey) / 8

Maximum Bandwidth = your cap in bytes

To make it a multipule of MSS simply divide by 1460, round the result to the nearest whole number then multiply by 1460.

The most important variable in calculating an RWIN Value is Latency and yours doesn't consider it.
"A never ending quest for knowledge as with knowledge comes wisdom"

Main System running Windows XP Pro: Intel Celeron 2.4 Ghz, 1 Gig Ram, 2 80 gig WD 7200 rpm HD's, Radeon 9200 Pro, Envision EN9110 19" LCD Display, HP 9500 CD-RW, D-Link DFE-530TX+ PCI Adapter, D-Link DI-704P Router, Motorola SB5100 Cable Modem with Cox HSI
neo86
Regular Member
Posts: 255
Joined: Tue Aug 22, 2000 12:00 am

Post by neo86 »

:rolleyes:

Did you even try the formula?
User avatar
mnosteele52
Posts: 11913
Joined: Tue Jul 24, 2001 12:00 pm
Location: Chesapeake, VA

Post by mnosteele52 »

The formula doesn't contain the necessary data to properly configure your RWIN and will give you a ridiculously high value. I have yet to see any connection that truly benefits from a RWIN above 64240, in some cases it might help but most it won't. From testing and helping others tweak their connections the majority of people with caps of 1500 on up reach their caps with 64240.... this is just my opinion from my experience...... I'm not saying don't use or try a larger value..... just that I personally have seen no benefit from it. :) :D
neo86
Regular Member
Posts: 255
Joined: Tue Aug 22, 2000 12:00 am

Post by neo86 »

So did you try the formula or not?

Results speak more than theories ever could.

Anyways, this thread is already dead. I'll keep my discoveries to myself from now on. Even numbers do worlds of good for efficiency.

:rolleyes: :D
Post Reply