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

AFP/SMB vs. FTP

I switched back to Apple about 6 months ago... so far so good. My major issue that I have been unable to resolve is file transfer speeds between our Windows File Server and my MacBook Pro. I have literally tried every network configuration / every DNS setting / etc., all with very little success. Basically the deal is this:

If I use either the SMB protocol or the AFP protocol (which I have setup on my Win 2003 Server), the file transfer speed is terrible... we're talking about 5 minutes to transfer a 100MB file... maybe even longer. I have Cat 6 / Gigabit connections running from all of the jacks / switches, etc.

If I connect a PC to the same network connection, it takes about 1-2 seconds to transfer the same file.

Now here's the crazy thing. If I connect to the server using the Apple FTP protocol (on my MacBook), the file downloads in 1-2 seconds (vs. 5 minutes on SMB/AFP). The only problem with Apple's FTP protocol is that it's Read-Only meaning that it won't let me write back to the server.

So I'm at a loss. I know my connection is good. I know my Apple is capable of pulling the file off of the server at lightning-fast speeds (through FTP), but I cannot for the life of me get decent speeds out of the AFP or SMB protocols.

Any suggestions?

Sincerely,
Ray

MacBook Pro 17" 2.93Ghz / 8GB RAM, Mac OS X (10.5.8)

Posted on Aug 27, 2009 12:48 PM

Reply
Question marked as Best reply

Posted on Aug 27, 2009 7:14 PM

What client are you using (Mac OS X version) ?

Also, there's nothing read-only about FTP in OS X, you might mean the Finder's FTP implementation,
but it's not clear from what you've posted.

"AFP" in Win2k3 server is ancient and deprecated, and lousy for any current Mac OS (X). It was optimized for Mac OS 9 client and has never been updated since. Never use it, is my recommendation.
If you need AFP service for Windows server, look into ExtremeZ-IP. Not cheap, but good.

FTP is probably going to be fastest, but has serious security shortcomings.

In comparing AFP (on 10.4.x Server) to SMB (both a Win2k3 server and Samba on a Linux server),
transfer speeds on the same network were not hugely dis-similar, but will vary depending on read vs. write speeds and how many files vs. size of one (or fewer) large files.
12 replies
Question marked as Best reply

Aug 27, 2009 7:14 PM in response to rmajoran

What client are you using (Mac OS X version) ?

Also, there's nothing read-only about FTP in OS X, you might mean the Finder's FTP implementation,
but it's not clear from what you've posted.

"AFP" in Win2k3 server is ancient and deprecated, and lousy for any current Mac OS (X). It was optimized for Mac OS 9 client and has never been updated since. Never use it, is my recommendation.
If you need AFP service for Windows server, look into ExtremeZ-IP. Not cheap, but good.

FTP is probably going to be fastest, but has serious security shortcomings.

In comparing AFP (on 10.4.x Server) to SMB (both a Win2k3 server and Samba on a Linux server),
transfer speeds on the same network were not hugely dis-similar, but will vary depending on read vs. write speeds and how many files vs. size of one (or fewer) large files.

Aug 27, 2009 7:31 PM in response to davidh

I'm using 10.5.8.

I am referring to Finder's FTP implementation. I also have Yummy FTP but I don't want to open up an application every time I want to make a simple file transfer back and forth from my server.

I've tried SMB and it's just as bad as AFP. Basically about 1/50 as fast as FTP.

So am I hearing that I'm out of luck?

Aug 27, 2009 9:33 PM in response to rmajoran

The order of file transfer speeds using OS X:

FTP - full wire speed, saturates the connection. Reason, no Finder involved.

AFP/SMB - half wire speed maybe a little faster, depends on if it's one big file or many small files. Reason, the Finder.

sftp/scp - half AFP/SMB. Reason, encryption overhead.

And, yes, you are correct in your observation. The Finder is 'download only' with FTP connections.

Aug 28, 2009 10:16 AM in response to rmajoran

He wrote, "AFP/SMB - half wire speed maybe a little faster, depends on if it's one big file or many small files. Reason, the Finder."

So no, AFP is not "half" as fast as SMB. In my own fairly informal testing, that's never even been close to true.

Please google "wire speed" and see what Mabel is referring to.
Considering that this is (well, largely) one-way traffic, wire-speed makes a nice theoretical limit.
You'd have to do quite a number of things (including have networking equipment of a certain quality) to really achieve that limit.

But the Finder is really not involved in AFP or other transfers, insofar as it initiates them and then passes things off to different APIs. Along the way there have been AFP server/client updates that have been (for example) entirely distinct and separate from the Finder.

In my own testing with an old G5 tower as the server ("gigabit" ethernet network connection),
through a sub-$1,000 24-port Gig switch, to my 2.4 GHz MacBook Pro, I'm seeing roughly 37-41 MB/sec transfers (copying from server to client).

Aug 28, 2009 11:06 AM in response to davidh

So no, AFP is not "half" as fast as SMB.


No it's not. They transfer at roughly the same speed. The issue with them is not at the network layer, it's with the fact that whenever you transfer files to an AFP server, the Finder is involved at the server or client end creating the objects in the filesystem and it has always been the one contributing factor in the difference that you see when comparing against FTP transfers.

In network with end-to-end gigabit Ethernet, FTP will transfer to the server at roughly 70-80 MB/s and AFP/SMB will be roughly half that -for one large file. A 250 MB file will transfer in about four seconds and AFP/AMB will take about ten seconds. If you transfer a folder, of roughly the same size, with a large number of sub-folders and files it can take up to twice as long or longer if the folder contains thousands of small files. These times are pretty much in line 'davidh's' observations.

In your situation I would look to doing some very basic network troubleshooting. Run a simple ping against the server IP and let it run for a few minutes to gather some statistics. In an ideal situation, you should see no packet loss at all. One to two percent might occur if there are other users are on the system and file transfers are taking place. Any thing more than that and you have an issue with either the physical wiring or configuration of network devices like routers or switches. You'd be surprised how the simplest of config errors in a router can hose the network performance of even the most basic of networks.

Aug 28, 2009 7:14 PM in response to Mabel O'Farrell

Sorry but I really don't follow your thinking there, Mabel.

Honestly, (for example) the Finder is not involved on servers where I leave them at the login console.

and if I ssh in,
ps auxw | grep [F]inder


returns nothing.

The Finder in and of itself is not what is accomplishing AFP transfers.

http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/OSXTechnology_Overview/OSX_TechnologyOverview.pdf

Sep 2, 2009 4:03 AM in response to Mabel O'Farrell

my experience is that afp is much faster than smb. i have home server (freebsd) with samba (for win laptop) and atatalk - afp server - for my imac. i'm conected direct from mac to the server with gigabit cable. i dont know exactly my transfer speed but transfer 1gig file to server from mac over afp takes less than a minute, over sab more than 1.5 minute. i'm sure it's not about the server (it's 2core amd phenom x2 4ghz with 3gb ddr3/16000 ram and few sata disks), it's about the protocol.

AFP/SMB vs. FTP

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