Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Leopard is setting RWIN too large!!!

I did a TCP test at speedguide.net and this is what it found for my TCP stack settings:

Default TCP Receive Window (RWIN) = 524280
RWIN Scaling (RFC1323) = 3 bits (scale factor of 6)
Unscaled TCP Receive Window = 65535

This is way off normal, and changing the RWIN in terminal has no effect. It stays at 524280, which is too large except for an extremely fast connection. Nothing I could do in terminal would set the RWIN to a correct range.

I finally turned scaling off (RFC1323=0) which set my RWIN to 65535, but that is a bit low for my cable connection. There does not seem to be a way to get any other size.

Mac OS X (10.5)

Posted on Oct 27, 2007 4:47 PM

Reply
68 replies

Oct 29, 2007 1:44 PM in response to Scott Micciche

I was able to accomplish these changes:

sudo sysctl -w net.inet.tcp.sendspace=64240
sudo sysctl -w net.inet.tcp.recvspace=64240

and the TCP analyzer reads not much differently to my untrained eyes:

« SpeedGuide.net TCP Analyzer Results »
Tested on: 10.29.2007 16:37
IP address: 70.181.xxx.xxx

TCP options string: 020405b4010303000101080a2b9d12a20000000004020000
MSS: 1460
MTU: 1500
TCP Window: 65160 (NOT multiple of MSS)
RWIN Scaling: 0
Unscaled RWIN : 65160
Reccomended RWINs: 64240, 128480, 256960, 513920
BDP limit (200ms): 2606kbps (326KBytes/s)
BDP limit (500ms): 1043kbps (130KBytes/s)
MTU Discovery: ON
TTL: 50
Timestamps: ON
SACKs: ON
IP ToS: 00000000 (0)

When trying to access </etc/sysctl.conf> to make the change permanent in Terminal, I get this response:

/etc/sysctl.conf
-bash: /etc/sysctl.conf: Permission denied

Whattaya think?

Oct 29, 2007 2:38 PM in response to Scott Micciche

Scott,

Scott Micciche wrote:
I've been a Unix sysadmin for 19 years, editing files isn't as scary as some think. 🙂


Easy for you to say!!!!

Thank you so much for that fix. Although I am new to the Mac, I have been around computers for a long time, an old DOS junkie. Unix is completely new to me, but the process seems similar. I just don't know all the commands yet.

I followed your excellent post and my internet speed is right back where it was before the Leopard install. RWIN at 66608 with DSL connection. I am going to check our iMac next.


Thanks again

null

Oct 29, 2007 2:38 PM in response to Scott Micciche

Scott: I was able to modify the file in sudo as per your direction. Here's what speedguide.net reports now:

« SpeedGuide.net TCP Analyzer Results »
Tested on: 10.29.2007 17:34
IP address: 70.181.xxx.xxx

TCP options string: 020405b4010303030101080a078e3a690000000004020000
MSS: 1460
MTU: 1500
TCP Window: 524280 (NOT multiple of MSS)
RWIN Scaling: 3
Unscaled RWIN : 65535
Reccomended RWINs: 64240, 128480, 256960, 513920
BDP limit (200ms): 20971kbps (2621KBytes/s)
BDP limit (500ms): 8388kbps (1049KBytes/s)
MTU Discovery: ON
TTL: 50
Timestamps: ON
SACKs: ON
IP ToS: 00000000 (0)

Is this the expected result? Thanks...

Leopard is setting RWIN too large!!!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.