Re: Compression with ssh tunneling



In article <464251a1@xxxxxxxxxxxx>,
David Gempton <davidg@ttc4it_dot_co_dot_nz> wrote:
Here was the test:

# ssh -L222:localhost:22 root@server
# scp -P222 root@localhost:/tmp/file1 .

Then I repoeated the test with compression on the tunnel...

# ssh -C -L222:localhost:22 root@server
# scp -P222 root@localhost:/tmp/file1 .

And the speeds were about the same.

If I put the compression on the scp command instead of the tunnel there
was a major speed increase.

Is this likely to be because the binary network traffic generated by scp
is not very compressable or is it that compression on tunnels does not
work ??

The former, effectively. The network traffic generated by scp is an SSH
session, which is encrypted. Encryption produces what looks like random
data to anyone without the key, and so applying compression to encrypted
data is useless.

--
Ben Harris
.



Relevant Pages

  • Re: DAT72 vs Iomegas REV
    ... and 5.0.7 will run the ATAPI REV at PIO speeds. ... - The HP DAT24 is capable of backups at 7.2 gigabytes per hour and a ... capacity of 24 gigabytes with compression turned on, ...
    (comp.unix.sco.misc)
  • Re: Linux Kernel Source Compression
    ... compression in general. ... It is in fact quicker to ... decompress than bzip2, ... Compression speeds ...
    (Linux-Kernel)
  • Re: [SLE] Still cant connect to my ISP
    ... > There are two speeds to note, ... > Then there is the speed at which the local modem connects to the remote ... 57600 baud - nor can data flow faster than the theoretical 57600 baud ... The compression you mention above can only apply to data which can ...
    (SuSE)
  • Re: A new LZP+PPM conception
    ... and still gives very good compression for its speed. ... any involving arithmetic coding, and fancy transforms, ... I consider, current LZP ... and with slower decode speeds than lz77 (since one has to also ...
    (comp.compression)
  • TurboMac
    ... TurboMac works by data compression, ... the speed limitations of a dial-up connection. ... "limitations" of dial-up speeds and why, ...
    (comp.sys.mac.comm)