Apple Event: May 7th at 7 am PT

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

Slow Wireless LAN in Leopard

All right, I've spent the past 12 hours (on and off, of course) looking through all the threads in here, doing a lot of experimentation, and a bunch of clean installs and whatnots, and I've decided to start a new thread, since in many of the said threads, some people seemed to have similar issues, but the other issues in the same threads seem to be different problems, and it just becomes confusing when you try to trouble shoot something and people are talking about different problems.


So, this thread is specifically for people who satisfy these criteria under Leopard:

1) You're having issues with very slow file transfers in your *local network* when at least one end is connected wirelessly; that is to say, when both ends are connected to the router via ethernet, you see no problem at all.

2) Your wireless connection doesn't display problems when connecting to the internet.

3) It is not specifically an 802.11n issue; i.e., the problem can be duplicated when in Mixed b/g only mode and/or using an 802.11g router.

4) It's not a router connection issue; i.e., your wireless connection isn't being dropped, and you are able to find your AP and connect to it without any problems.




So basically, that more or less sums up my problem. My equipments:

MacBook Core2Duo 2.2GHz, 802.11b/g/n, OSX 10.5.2
iMac Core2Duo 2.13GHz, 802.11b/g/n, OSX 10.5.2
Router 1: TRENDnet TEW-631BRP (Draft N router), H/W V3.0R, FW v.1.0.3.7
Router 2: NETGEAR WGR614 v.5 (g), FW v.1.0.3_1.0.3

Internet: RCN Cable, 20Mbps/2Mbps


In my usual setup, the iMac is connected via Ethernet and the Macbook is connected wirelessly.


I know that this is a Leopard problem, but I'm not so sure it's a 10.5.2 specific problem. Let me explain.

I'd been using the TRENDnet more or less happily for the last couple of months. My iMac and Macbook have been in sync in terms of Leopard versions, so I know things were OK till last night when I first noticed problems. Transferring a large video file from the iMac to the Macbook would start off fine, then really slow down, and finally almost completely halt. Naturally, I blamed 10.5.2.


After trying all the different "fixes" in the Leopard/network related threads with no avail, I tried booting my laptop into Tiger (10.4.11) installed on an external HDD. Voila, wireless file transfer speed is fast at around 8MB/sec (obviously using N). I did a fresh install of 10.5, and the speed immediately dropped down to 1-2MB/sec, although not necessarily stalling. Then, updating to 10.5.2 slowed it down more, and now the transfers will sooner or later almost completely stall.


Again, I tried all the suggested remedies (use b/g Only mode, adjust RTS/Fragmentation thresholds, use WEP instead of WPA, delete all the Network Services in System Preferences -> Network, etc., etc.). Nothing helps. I tried swapping the router to an older Netgear (802.11g/b), and it's the same deal, so it's not a router issue.


A definite characteristic is that the transfer seems to stall after a certain period of sustained transferring; i.e., this will usually only happen when transferring large files (>200MB). If I were to download a folder with 600 JPEG files @ 1MB each, there won't be a problem, and the transfer rate will be pretty fast (although not as fast as under Tiger @ 7-8MB/sec), and it won't stall. It's only when I try to transfer big video files, etc., that this problem occurs.



If you are having similar issues, please share your experiences, suggest remedies, offer insights. I will try to answer any question you may have and that I may have missed to address.


PLEASE: if your symptoms are different from what's listed up there, please try to refrain from posting here, unless you are absolutely certain that the issues are related. Thanks.

iMac 20" Core2Duo 2.13Ghz/ MacBook 2.2 GHz Superdrive (White), Mac OS X (10.5.2)

Posted on Feb 14, 2008 12:39 AM

Reply
163 replies

Apr 16, 2008 5:30 PM in response to Satoru Murata

I just spent 4 days trying to solve the slow wifi problem I had after upgrading Leopard 10.5.2 version. This is all the efforts I've found on the net and tried almost all of them. It seems like it fixed my problems. So I wanted to put it all together for any one who might be looking for the solution. Thank you to everyone in the net who posted all these solutions. I hope it fixes yours.

You will need your admin password and how to delete or rename protected system files for some of them.

1. Check your DNS settings. - System Preferences/Network/Airport - Advanced/DNS.
- ping it to make sure it returns at a reasonable speed.
- if the numbers are gray, that means your router is giving it to you automatically. you will have to change it in your router.
- many people seems to have had success with using OpenDNS - I didn't use it myself.

2. Turn off IPv6 - System Preferences/Network/Airport - Advanced/TCP/IP.

3. Check your preferences. If you upgraded to Leopard, it can corrupt these preference files. These are in /Library/Preferences/SystemConfiguration.
- com.apple.airport.preferences.plist
- NetworkInterfaces.plist
- Preferences.plist
Removing these will automatically recreate them. These fixed a lot of my weirdness on my system network.

For people running Parallel, make sure it's running and open System Preferences/Network and it will recreate it. The only thing is you need to rename it. Look in the icon next to the '-' sign.

Parallels Host-Guest
10.37.129.2 255.255.255.0
Parallels NAT
10.211.55.2 255.255.255.0

4. For people seeing slowdowns in Safari, look in "username/Library/Preferences/com.apple.Safari.plist" - this also gets recreated when destroyed.

5. In terminal, do sysctl net.inet.tcp.delayed_ack - value will probably be 3. Do sudo sysctl -w net.inet.tcp.delayed_ack=0

If you really want to speed things up, do the following:
sudo sysctl -w net.inet.tcp.rfc1323=0
sudo sysctl -w net.inet.tcp.recvspace=32768
sudo sysctl -w net.inet.tcp.sendspace=32768
sudo sysctl -w net.inet.tcp.win scalefactor=1
sudo sysctl -w net.inet.tcp.sockthreshold=0


6. For those who have their older backups, you can go back to an older version of your /System/Library/Extensions/AppleAirport.kext

7. Gems sometimes can be improved.

A. You can edit System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/gem something like this:
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++

require 'resolv-replace'

require 'rubygems'
require 'rubygems/gem_runner'
----------------------

*then do update gems.

B. Some people also seemed to have success doing this: (But I didn't try this)
# for OSX compatibility
Socket.do not_reverselookup = true

C. create a file called .gemrc in your root directory. Mine looks like this:
localhost:~ codemonkey$ more .gemrc
gem: –no-update-sources –no-ri –no-rdoc


8. This is not Leopard's fault but you should try changing the wireless channel in your wifi router. I went from channel 6 to channel 11 and it helped a lot.

Apr 17, 2008 1:26 PM in response to Satoru Murata

Hi guys, topic starter here.


Well, here's one success story, although by no means would I recommend it to everyone.

Basically, a total, complete, utter clean install of the OS fixed it for me. I'd been having various problems on my iMac besides this issue, and I decided, after inheriting about 3 generations' worth of Apps, preferences, kexts, etc., I should start afresh.


So, with a Time Machine backup at hand, I did a wipe and install, without moving inheriting any previous data. Updated it all the way to 10.5.2 and all the current updates, and lo and behold, wireless transfer speeds are "good". Not excellent, like 7-8MB/sec via my N router, but a good 4-5, and sometimes 6MB/sec transfer rates, both going up and coming down.


From there, I reinstalled all my apps from scratch, and only transferred over "old" data that were vital; specifically, everything in my user directory except for the Library folder -- the only contents from that directory that I copied over were the Mail/Mail Downloads directory; everything else got a fresh start.

Luckily, I have .Mac, so a lot of data could be retrieved through a resync with .Mac (Mail accounts, Keychains, etc.).

And that's where I'm at now. It's been about a week, and I'm still reinstalling (or simply transferring over from Time Machine) one or two apps a day. My iMac is still getting good transfer rates. Now I'm seriously contemplating whether I should go ahead and do the same with my Macbook.

Hopefully, 10.5.3 will come out before I absolutely need to do it, and it will fix this issue once and for all.

Apr 17, 2008 2:02 PM in response to needsomeihelp

needsomeihelp wrote:
Has the above worked for anyone yet? Please share your experiences! Thanks everyone.


Sorry, should have made mine more clear. Yes these worked for me. What I found was that it was a multiple sets of things that was causing the slowdown. Everything from corrupt prefs file, to my neighbor buying a new wireless (using my channel) and having a 3rd DNS server that was no longer working.

I collected all the solutions so if anyone is having troubles, they can just pick and choose which ones they want to try.

Jul 17, 2008 4:12 AM in response to s1ipx

BTW, this is what several of us have referred to in several threads when we've said to change your DNS settings to use OpenDNS' DNS servers.

For a variety of reasons (unrelated to Mac OS X), many ISPs' ancient and standards-defying DNS servers are beginning to show problems that result in excruciatingly slow web surfing.

Many Vista machines have also been bitten by the same issues and can be fixed in the same way.

Aug 9, 2008 1:30 PM in response to Satoru Murata

Here was my solution. (none of the others worked for me)

I changed the security on my netgear router to none. BUT I added wireless security of only registered mac addresses can connect. Hopefully this is safe enough. My speeds on my Macbook jumped from 4,000kbps to 10,000+kbps. There was no change to my wife's Windows machine however. Maybe my "n" card is faster than her "g" card even though it is not an "n" router. ???

Jim

Oct 29, 2008 7:49 PM in response to Satoru Murata

I tried the methods posted in this thread, but with the delayed_ack change to 0, I got the AFP copy speed from 700K to 1M, not a big improvment, I have also tried to copy a file from my iMac to MBP with FTP, the speed is about 2.7M, so there should be some problems of Leopard system.

My settings are listed below:
iMac 24" running Leopard 10.5.5 with cable connect to TP_LINK 941 router
MBP running Leopard 10.5.5 with wireless 802.11N connect to the router.

I have checked the connection speed of the wireless connection by using the network utility, it reports the speed is about 130MBPS, so it should not get so slow speed to copy files from my iMac to MBP by AFP/SMB.

Slow Wireless LAN in Leopard

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