Networking Forums

Networking Forums > Computer Networking > Linux Networking > Home Network Speed (ftp vs scp)

Reply
Thread Tools Display Modes

Home Network Speed (ftp vs scp)

 
 
Buck Turgidson
Guest
Posts: n/a

 
      12-28-2003, 03:55 PM
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
 
 
 
 
P Gentry
Guest
Posts: n/a

 
      12-29-2003, 02:20 AM
Buck Turgidson <(E-Mail Removed)> 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
 
David Bolton
Guest
Posts: n/a

 
      12-29-2003, 03:24 AM
P Gentry <(E-Mail Removed)> wrote:
> Buck Turgidson <(E-Mail Removed)> 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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bt home hub network speed Andrew Bellamy Broadband 0 12-30-2007 07:02 PM
Improve LAN speed on FC3, home network? Ohmster Linux Networking 15 05-29-2006 12:14 AM
Speed up file transfer between home network PootyTan Wireless Networks 0 07-27-2005 12:52 PM
Wireless Network at home, speed issue's du@hotmail.com Broadband 2 05-20-2005 11:13 AM
Home Network File/Printer Sharing Setup , internet Speed slows, **Help Needed** Broadband Hardware 0 12-31-2004 03:10 AM



1 2 3 4 5 6 7 8 9 10 11