Re: scp speed (push v/s pull)



On Tue, 23 Jan 2007 10:01:31 -0800, nash_rack1 wrote:

I've noticed that scp file transfer speeds are significantly different
depending on whether you're pushing a file to a remote machine or
pulling a file from a remote machine.

When I push a file to another machine, I get 800 kB/s speed. When I
pull the same file from another machine, I get 8500 kB/s. Why is the
speed so different? Does it depend on some network setting or is it
something inherent in the protocol?

A possibility might be a difference in internal buffer size between
client and server. When you push a file, it is the SSH client that
underlies the scp command the one that decides how many bytes will be sent
in one go, whereas when you pull a file it is the SSH server who decides
that.

I have played with implementations in which the client in box A would
push files in 8 KB blocks, whereas the server in box B would send them in
16 KB blocks. In such a situation, all other things (including networking)
being equal, pulling a file from B to A was much faster than pushing it
from A to B. I am pretty sure it was not one order of magnitude faster
though, and therefore it is probably not the cause of what are you are
observing. But, I thought you might like to keep it in mind.
.



Relevant Pages

  • socket object, connection refused ...
    ... using local host on server and client for 2 months ALL is going ok. ... I have snooped the network traffic and it does reach the remote machine. ... the server always send a RST message back and this causes my client script to display a connection refused message. ...
    (comp.lang.python)
  • How to get permission to launch application to remote machine with DCOM ?
    ... I want launch EXE-COM server on remote machine with DCOM ... DCOM reports "Access denied" on message box on client and in Event Viewer I ...
    (microsoft.public.win2000.security)
  • Sending a large collection of data by SocketPro
    ... Got a problem in sending a large collection of data to a remote machine? ... Download SocketPro at www.udaparts.com, ... I've noticed that whenever the server tries to send back to client a ... was invoked by the client the error happens, ...
    (microsoft.public.dotnet.framework.remoting)
  • Fault tolerance
    ... I have client applications sending messages via TCP to a server application ... I want to have a second remote machine running ...
    (microsoft.public.windows.server.networking)
  • Re: win32 service and sockets
    ... On Tuesday 08 February 2005 16:41, Tom Brown wrote: ... When I run the socket server by itself the test client can connect ... the server will bind to the port but the client cannot connect. ... It will not work from a remote machine. ...
    (comp.lang.python)