Home Network Speed (ftp vs scp)

This is a discussion on Home Network Speed (ftp vs scp) within the Linux Networking forums, part of the Linux Forums category; I get about twice the throughput on my 10/100 network with ftp than with scp (8.6 MB/s ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-28-2003
Buck Turgidson
 
Posts: n/a
Default Home Network Speed (ftp vs scp)

I get about twice the throughput on my 10/100 network with ftp than with scp
(8.6 MB/s vs 4.6) transferring the same file.

Can this be explained by the compression or encryption that scp does? I
can't picture how it would make a difference, since bytes are bytes. I can
understand the CPU having to work harder to decompress or decrypt, but not
the pipe.

ftp
674015232 bytes received in 01:14 (8.63 MB/s)

scp
nx1 18% 117MB 4.6MB/s 01:53 ETA
Reply With Quote
  #2 (permalink)  
Old 12-29-2003
P Gentry
 
Posts: n/a
Default Re: Home Network Speed (ftp vs scp)

Buck Turgidson <jc_va@hotmail.com> wrote in message news:<TVDHb.18941$Fg.12239@lakeread01>...
> I get about twice the throughput on my 10/100 network with ftp than with scp
> (8.6 MB/s vs 4.6) transferring the same file.
>
> Can this be explained by the compression or encryption that scp does? I
> can't picture how it would make a difference, since bytes are bytes. I can
> understand the CPU having to work harder to decompress or decrypt, but not
> the pipe.
>
> ftp
> 674015232 bytes received in 01:14 (8.63 MB/s)
>
> scp
> nx1 18% 117MB 4.6MB/s 01:53 ETA


FTP transfers the bytes "as is", ie., the bytes read from disk are
sent down the wire without changes. Once received, job done.

SSH reads bytes from disk, encrypts them, _then_ sends them down the
wire. Once received, the bytes read from the wire must be decrypted
and returned to their original state before writing them to disk. Now
the job is done.

The bytes sent by FTP are _not_ the same bytes sent by SSH's scp.
Bytes are not just bytes, just as mosquito bytes are not the same as
cobra bytes! Otherwise, what's the point of using encryption or
compression?

hth,
prg
email above disabled
Reply With Quote
  #3 (permalink)  
Old 12-29-2003
David Bolton
 
Posts: n/a
Default Re: Home Network Speed (ftp vs scp)

P Gentry <rdgentry1@cablelynx.com> wrote:
> Buck Turgidson <jc_va@hotmail.com> wrote in message news:<TVDHb.18941$Fg.12239@lakeread01>...
>> I get about twice the throughput on my 10/100 network with ftp than with scp
>> (8.6 MB/s vs 4.6) transferring the same file.


[snip]

> SSH reads bytes from disk, encrypts them, _then_ sends them down the
> wire. Once received, the bytes read from the wire must be decrypted
> and returned to their original state before writing them to disk. Now
> the job is done.


In addition, it seems from my observations of tcpdump that SSH requires more
packets to send the encrypted info as opposed to plain text. Correct me if I'm
wrong, but my guess is that SSH will use at least double the packets, which
might account for your halved transfer rate.

Any experts who can clarify whether this is the case?

David
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0