Afp/smb transfers caps at 2 megabytes/sec, wireless N

afpbandwidthfile-sharingmac-osxnetwork-share

I wanted to transfer files between two mac computers. The network is wireless-N and both computers have wireless-N modules in them.

The problem is that when I transfer files between them, via file sharing (afp) the network speed caps at 2 megabytes/sec. Just downloading files from the internet I can get faster speeds, so this isn't a constriction of my wifi bandwidth, it appears to be a constriction of the protocol being used.

My wifi-n is set to 130mbits, so I should see real world transfer speeds around 12-16 megabytes/sec

I did this command on both computers sudo sysctl -w net.inet.tcp.delayed_ack=0 which is supposed to lower tcp overhead, but this did not affect it.

How can I get the speed I am expecting?

Best Answer

Get a better access point. You're taking huge bandwidth penalties because the link from the source machine to the access point is sharing bandwidth with the link from the destination machine to the access point. Better access points can handle multiple simultaneous streams. This not only immediately doubles the available bandwidth but it also reduces the number of changes in a stream's transmit direction.

Right now, to send a packet results in roughly the following:

  1. The source machine obtains access to the channel, sends a preamble, and then sends the data to the access point.

  2. The AP sends a preamble and then sends the data to its destination.

  3. The destination obtains access to the channel, sends a preamble, and then sends the acknowledgement to the access point.

  4. The AP sends a preamble and then sends the acknowledgement to the source machine.

All four of these operations are competing for the same bandwidth. Tweaks like disabling 802.11b support can help a bit.

If your 130Mbps link is degrading to 65Mbps or so due to link distance or your channel is shared with anything else (other Wifi systems, Bluetooth), your speed numbers are, unfortunately, about right for a bottom-of-the-line 802.11n access point with no compatibility options disabled.

While product recommendations are off-topic here, you can get WRT610Ns and E3000s refurbished for $60 or less. I've used dozens of them in both home and commercial deployments, all refurbished, and they've all worked like champs. This will give you 5GHz support too, which is generally wide open and performs better (though at shorter distances), assuming any of your endpoints support it. (I prefer the E3000 because it only exists in one hardware version, so I know exactly what I'm going to get.)

Related Topic