Is there a speed difference between transferring files over FTP and Samba?

6

1

I have a home network setup with a desktop PC, two laptops and a ubuntu server desktop all connected to a router (DD-WRT). I want to setup the ubuntu server on a separate subdomain (security reasons: I have websites coming into the server) but I also want to have access to the backup drives that I've installed on the server. I know that I can setup a FTP server on Ubuntu, but I'm wondering if I'm going to lose the speed while transferring that way. Anybody know a solution I can use?

James Mertz

Posted 2010-09-01T17:18:00.953

Reputation: 24 787

+1 - Good question. I'm sure there's a way using domains and subnets in Windows but I can't quite enumerate it. Also, I'm glad to see you so active here. – JNK – 2010-09-01T17:30:48.930

Answers

3

In my experience, it really depends on the build and configuration of the Linux server.

I have seen implementations/builds of Samba that have horrible performance and other builds where it appears to be faster than Windows to Windows.

FTP is probably the most straight forward solution to setup, however, Samba is much more feature rich.

For example, with Samba, you can map the drive, stream video and a lot more - it acts like a standard windows share where as without a third party add-on, FTP is very good for storing and retrieving files, but that is about it.

As for the other points, the router is irrelevant, I am not really sure that has anything to do with this setup and there is no need for different subdomains as you can always use IP or other security settings.

This was a bit complicated, if I have missed anything or you want me to clarify any points, please say!

William Hilsum

Posted 2010-09-01T17:18:00.953

Reputation: 111 572

What security setting do you suggest? or should i post that as another question? – James Mertz – 2010-09-01T17:34:17.830

@kronoS - depends what you want, both Samba and most FTP servers allow IP blocking, so if this is just for your internal network, you can limit the server programs to only allow connections from your internal network. – William Hilsum – 2010-09-01T17:55:07.613

3

FTP should be faster than SMB/CIFS (the protocol Samba implements) if you are just transferring complete files. SMB/CIFS implements a complete filesystem, and that's always going to have more overhead than just sending a bunch of bytes to the other side.

JanC

Posted 2010-09-01T17:18:00.953

Reputation: 1 125

My experience reflects this. FTP has been faster than SMB/CIFS in all cases I've tested. – Brian Knoblauch – 2010-09-01T17:52:17.543