Results 1 to 7 of 7

Thread: SSH tunnel bandwidth overhead

  1. #1
    Join Date
    Apr 2005
    Beans
    432
    Distro
    Ubuntu

    SSH tunnel bandwidth overhead

    I'm using an SSH tunnel to stream mp3s from a remote HTTP server. I'm just wondering what sort of bandwidth overhead an SSH tunnel imposes when used as opposed to a conventional connection to the HTTP server.

  2. #2
    Join Date
    Apr 2005
    Beans
    432
    Distro
    Ubuntu

    Re: SSH tunnel bandwidth overhead

    bump for curiosity

  3. #3
    Join Date
    Feb 2008
    Location
    US
    Beans
    2,782
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: SSH tunnel bandwidth overhead

    i dont think(feel free to correct me) ssh has much overhead bandwidth. It is transferring more or less the same amount of data but just in an encrypted form. The main over head of SSH lies in the encrypting and decrypting of the data which is an overhead on the CPU. Still given most of the computers today with high clock rate multicore processors it isnt an issue most of the time.
    Desktop: Q6600 OC: 343 x 9, 4 GB RAM, 8600 GTS Twinview (22",17"), 1.5 TB RAID 5
    Laptop: Lenovo T61 T7300 @ 2 GHz, 2GB RAM, Nvidia 140M Quadro, 160 GB harddrive
    Remember to mark posts as [SOLVED] when your problem is resolved

  4. #4
    Join Date
    Apr 2005
    Beans
    432
    Distro
    Ubuntu

    Re: SSH tunnel bandwidth overhead

    Excellent, thanks. One wonders why anyone bothers opening ports on routers when SSH tunnels work so well.

  5. #5
    Join Date
    Feb 2008
    Location
    US
    Beans
    2,782
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: SSH tunnel bandwidth overhead

    an ssh tunnel still requires an open port and it requires that computer authenticate with each other and exchange keys. For many protocols this doesnt make any sense and is totally unnecessary.
    Desktop: Q6600 OC: 343 x 9, 4 GB RAM, 8600 GTS Twinview (22",17"), 1.5 TB RAID 5
    Laptop: Lenovo T61 T7300 @ 2 GHz, 2GB RAM, Nvidia 140M Quadro, 160 GB harddrive
    Remember to mark posts as [SOLVED] when your problem is resolved

  6. #6
    Join Date
    Apr 2005
    Beans
    432
    Distro
    Ubuntu

    Re: SSH tunnel bandwidth overhead

    Quote Originally Posted by tamoneya View Post
    an ssh tunnel still requires an open port and it requires that computer authenticate with each other and exchange keys. For many protocols this doesnt make any sense and is totally unnecessary.
    I was mainly referring to personal use such as mp3 streaming, mythweb access, file transfer, etc... After getting QoS tweaked on my router I've been able to eek every last bit per second out of my 384kb/sec upload and can usually stream 320kbps mp3s without interruption.

  7. #7
    Join Date
    Oct 2008
    Beans
    1

    Re: SSH tunnel bandwidth overhead

    Quote Originally Posted by tamoneya View Post
    i dont think(feel free to correct me) ssh has much overhead bandwidth. It is transferring more or less the same amount of data but just in an encrypted form. The main over head of SSH lies in the encrypting and decrypting of the data which is an overhead on the CPU. Still given most of the computers today with high clock rate multicore processors it isnt an issue most of the time.
    Actually, SSH does add some overhead to the packet. SSH has its own packets into which it wraps data before handing it off for TCP/IP encapsulation. This packet contains length (4 bytes), padding length (1 byte), data section (depends on MTU), padding(4-255 bytes), and Message Authentication Code (length varies, probably 20 bytes or less).

    Max MTU is 1500 bytes, you lose 66 bytes due to encapsulation (header information). This leaves you with 1434 bytes unencrypted. When using ssh encryption, worst case scenario uses around 380 bytes, cutting you down to 1054 bytes of actual data.

    Keep in mind this is worst case, but there is always some overhead.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •