0

If I upload file using SCP then I get uploading speed up to 1.5 MB/s

scp filename  root@SERVER_IP:/path/to/store/

and If I use FTP to upload same file on same server then I get uploading speed up to 220 kB/s

ncftpput -R -v -u FTP_USER -p FTP_PWD SERVER_IP /path/ file.tgz

What could be the reason behind this degradation ?

  • Try to use FTP to another server. First with one on the local network. Do the speeds also differ if you do that? Do the speeds differ when you try another remote machine. Basically try some more testing first. – Hennes Feb 28 '13 at 22:31
0

You don't say what kind of network you're working in, but if it's an external network, your ISP or hosting provider could have bandwidth throttling in place for FTP.

http://en.wikipedia.org/wiki/Bandwidth_throttling

  • Ok..if this is the problem ..then should I talk to my service provider ? – Himanshu Matta Feb 27 '13 at 11:42
  • You could ask them for confirmation, sure. Unfortunately, if that is the case, there is not much you can do. You could try changing the port of your FTP server and hope that it'll spoof the throttling system, but most likely that won't be any help at all. – Salieri Feb 27 '13 at 11:58
  • How can I be sure that this is the problem behind degradation ? – Himanshu Matta Feb 27 '13 at 12:02
0

If ftp is being throttled by your ISP, try using it over a different port. That's what I did and I used ports 81 or 444.

Let us know the result.

  • I changed the port but still getting same speed. – Himanshu Matta Feb 28 '13 at 6:43
  • Try to download something via http (using wget or similar) and see what the speed is for that one. – gozu Mar 1 '13 at 23:40
  • I tried this..and I am getting speed more than 1MB/s. – Himanshu Matta Mar 2 '13 at 11:02
  • The pattern is clear, assuming you have repeated and verified these results, you can conclude that scp and http operate at a much higher speed than ftp. – gozu Mar 2 '13 at 19:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.