Re: speed limitation with scp and sftp using openssh



I believe (but I haven't examined the protocol) that the issue is the ssh method
of multiplexing the connection. It is akin to trying to transfer via CIFS.

The protocol is more chatty that it needs to be for that one task when
done alone.
The thing is that the SSH protocol was designed to be able to have
multiple operations
happening at the same time. You can have four terminal sessions, four
file transfers
and multiple X windows forwarded at the same time, over the same SSH connection.

FTP just opens a TCP connection and sends the data raw, across it. Closing of
the connection signals end of the transfer. So FTP will always be the
fastest way
to send data across a TCP connection. (UDP is another matter)

Others that are familiar with the SSH protocol implementation would be able to
describe it in more detail, if you want.

On 2/23/06, Richard Labutis <unixrules1@xxxxxxxxx> wrote:
I am running aix 4.3, 5.1, 5.2, 5.3 using various
versions of openssh.

why is there a speed limit in copying files from one
machine to another. The speed appears to cap out at
around 7-8 mb/sec. This is on a gigabit network.
I know encryption has overhead, but not that much.
scp and sftp is the commands used to copy files.
It makes no difference what version of ssh/aix, it all
has the same results.

if I used rcp or ftp, it's very fast.


Any thoughts?


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



--
And, did Guloka think the Ulus were too ugly to save?
-Centauri



Relevant Pages

  • Re: Does OpenSSH use RCP?
    ... It's not "if I want to", it's rtfrfc: show me separate protocol ... I didn't say FTP was ugly, I said lack of another layer between ... >> One connection - one application model doesn't work, ... Same as FTP: multiple connections per session. ...
    (comp.security.unix)
  • Re: [SLE] ssh for email question - Success!
    ... multiple forwards in one ssh line. ... 1> The connection speed. ... client but again, if you were using a VPN client ...
    (SuSE)
  • Re: pasing data between 2 win XP boxes via internet
    ... SSH is a client-server protocol. ... you can't write a ruby program to receive inbound SSH ... Have a non-Ruby ssh server at one side of the connection. ...
    (comp.lang.ruby)
  • Re: Specifying tunnel output interface?
    ... with any version of OpenSSH - it may even be a limitation of the SSH ... protocol as such (i.e. it would be necessary for the client to pass the ... originated by sshd, i.e. the connection from the host where sshd runs to ...
    (comp.security.ssh)
  • Re: SSH feature suggestion - inverse connection multiplexing
    ... I guess you could call the ability to handle multiple distinct ... tunnels over the same TCP connection multiplexing. ... Or to let a single TCP tunnel span multiple SSH connections. ...
    (comp.security.ssh)