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

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?


Solution 1:

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!

Solution 2:

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.