Slow FTP transfers over LAN compared to SMB

0

I'm running an FTP server via ProFTPD on my RasberryPi 4 (4 GB RAM) as well as a Samba share folder to my Windows. I've got a sync setup from my PC to my pi HDD using Goodsync, and when I use my Samba share to sync it errors out when I'm transferring big video files (it got stuck on a 13 GB video file).

So that's another issue you may be able to help me with too! But anyway, so for the larger files to get synced over I have to change sync via the FTP. So, my transfer speeds over samba are great over my Gigabyte LAN reaching 90-120 MB/s, however over ftp it's maxing at about 20 MB/s. Any ideas why it would be going slower? Should I try using another FTP server on the pi other than PROFTPD? It's running explicitly TLS BTW. Or maybe should I use a SSH FTP server? Cheers, Josh

EDIT: Same thing happens for NFS share on windows, it locks up with large file copies. For NFS/Samba it only locks up when copying to an external HDD (USB3), but not to the Pi SD

EDIT: I tried SFTP and it was slightly faster then FTPS (29MB/s) but still to slow. Any way I can speed up SFTP?

Josh Northeast

Posted 2019-10-12T12:28:28.377

Reputation: 1

What TLS ciphers are you using for ProFTPd, and what is smb encrypt set to in smb.conf? – user1686 – 2019-10-12T12:44:43.520

@grawity I don't have smb encrypt in my smb.config, so it would be at its default setting. As for the TLS ciphers, I'm not sure what that is, i didn't change any of the default settings for ProFTPd other then enabling TLS, – Josh Northeast – 2019-10-13T11:35:58.157

Answers

1

FTP is a slow protocol that cannot use all the bandwith (IIRC the sender waits for an ACK from received before it send the next packet).

If you can set up an SSH link, copying via rsync can use all the bandwidth (unless you have an I/O bottleneck at either end).

xenoid

Posted 2019-10-12T12:28:28.377

Reputation: 7 552

No, you're confusing FTP with TFTP. The former uses a regular TCP stream with sliding window acks. The latter is UDP-based and has its own scheme with individual packet acks. – user1686 – 2019-10-12T18:00:56.887

1@grawity I worked for a TV channel and for their large transfers (a broadcast-grade video is easily 60GB) they used alternative methods because FTP was a huge waste of bandwidth. – xenoid – 2019-10-12T19:17:11.880

@grawity ok, so I have ssh set up on my windows pc. Can i now use rsync to copy files over to my linux? – Josh Northeast – 2019-10-13T11:22:45.523