Skip to content

SFTP download is slow on high bandwidth high latency connections #899

Closed
@Ravenbs

Description

@Ravenbs

I use a 1GB/s connection with 16ms of ping time. This is very common in my region, because the providers offer internet connection over G-PON and DS-Lite, which drive the latency high.

sftp is a very latency critical protocol. With high latency the throughput falls to very small numbers. To overcome throughput issues, there were a series of patches in openSSH called “HPN-SSH”. With those patches in place, you can reach full speed in sftp transfers also with high latency lines. Those patches are active in most linux distribution out of the box. The patches need to be active on the file recipient side (its a buffer of incoming packets) to speed up the transfer.

With tools using openSSH and this extension (winSCP) upload and download reach about 450 Mbit/s on my line per connection.
With SSH.NET the upload reach 400 Mbit/s per connection, but the download only get 35 Mbit/s.

So my Questions and Request is:

  • Is it possible to enable something like this HPN buffer also in ssh.net?

Background:
SSH.NET is the backend for Duplicati backup software. In this Software, the Backup is very fast, but the restore is painful slow out of this reason.

Related links:
HPN FaQ: https://www.psc.edu/hpn-ssh-home/hpn-ssh-faq/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions