Test setup
| Route | Oregon, USA to Sydney, Australia, over a public cloud |
|---|---|
| Round trip | 140 ms |
| Path capacity | 11.8 Gbit/s |
| Packet loss | None, then 0.1%, 1% and 3%, added on the sending side |
| Compared with | Standard TCP (CUBIC, the Linux default), tuned TCP (BBR) as one stream and as eight streams together, HTTP, UDT, Tsunami and scp, on the same hosts and path. TCP was tuned for this path: BBR switched on and larger buffers on both hosts. |
| Runs | Three runs per test. We show the median, with the fastest and slowest run beside it. |
| Streams | 20-second runs, memory to memory |
| Copies | 1 GiB and 10 GiB files, disk to disk, with a 5-minute limit and a 15-minute limit |
Throughput, Oregon to Sydney
Mbit/s of useful data. 20-second runs, median of three, with the slowest and fastest run under it. Standard TCP is what HTTPS, SFTP, scp and FTP get on a server as installed. Tuned TCP is the same with an expert's settings on both hosts: BBR switched on and larger buffers. Eight tuned streams together is how specialist parallel-transfer tools work. Each TCP figure is the most a tool built on it could reach: the data moved from memory, with no encryption, disk or file checks.
| Added loss | Farwing | Standard TCP | Tuned TCP | 8 × tuned TCP | vs standard TCP | vs tuned TCP |
|---|---|---|---|---|---|---|
| None | 11,542 10,808–11,582 | 3,571 3,346–4,367 | 4,258 4,165–4,258 | 10,833 10,824–10,848 | 3.2× | 2.7× |
| 0.1% | 11,475 11,336–11,483 | 14 4.4–16 | 1,713 947–1,778 | 9,610 9,586–9,706 | 819× | 6.6× |
| 1% | 11,275 11,242–11,459 | 1.2 1.2–1.3 | 1,494 1,480–1,607 | 9,147 8,231–9,527 | 9,395× | 7.5× |
| 3% | 11,372 11,371–11,400 | 0.5 0.5–0.6 | 716 691–1,384 | 7,330 7,114–8,387 | 22,744× | 15× |
From no loss to 3% loss, Farwing kept 98% of its speed. Eight tuned TCP streams together kept 68%, one tuned stream 17%, and standard TCP almost none.
Farwing ran with its default four lanes, on the same hosts. Standard TCP is CUBIC, the Linux default. Tuned TCP is BBR. The speed-ups are Farwing's median over the other median, rounded down.
Fast on local networks, too
Farwing is built for long, lossy paths, and that is where it pulls furthest ahead. It is just as much at home on a fast, clean network close by. Two servers in one data center, over a public cloud: a 100 Gbit/s link, 0.1 ms round trip, no loss added, 32 CPU cores on each server. 20-second runs, memory to memory, median of three.
16 lanes, 9,001-byte packets (jumbo frames). Each lane is one flow through the network, and cloud networks cap a single flow, so on a link this fast the speed grows with the lanes. Farwing starts with 4 lanes and adds more, up to 16, once a connection shows it carries more. --lanes sets the number by hand.
1 GiB copy, start of command to checked file
Same path as the throughput table, disk to disk. HTTP is a single TCP stream. UDT and Tsunami are UDP copy tools on the same hosts. Each run had a 5-minute limit to produce a complete, checked file.
| Added loss | Farwing | Farwing, first copy | HTTP | UDT | Tsunami | scp |
|---|---|---|---|---|---|---|
| None | 2.1 s 2.1–2.2 s | 13 s 12–13 s | 3.8 s 3.7–4.2 s | 20 s 20–21 s | 5.1 s 5.1–5.1 s | 79 s 79–79 s |
| 0.1% | 2.3 s 2.3–2.4 s | 24 s 19–38 s | stalled | 65 s 63–70 s | 81 s 73–96 s | stalled |
| 1% | 2.4 s 2.4–2.4 s | 149 s 144–169 s | stalled | 284 s 257–286 s | stalled | stalled |
| 3% | 4.5 s 3.1–6.0 s | stalled | stalled | stalled | stalled | stalled |
"Farwing" is a repeat copy to a host Farwing has reached before. "Farwing, first copy" is a copy to a new host, timed from putting Farwing on that host to the checked file. Putting it there uses scp, which slows under loss like any TCP copy: where the first copy stalled, the time limit ran out before Farwing was on the host.
10 GiB copy
The same copy with a file ten times larger, and a 15-minute limit. scp and Tsunami were timed at 1 GiB only.
| Added loss | Farwing | HTTP | UDT |
|---|---|---|---|
| None | 8.9 s 8.8–8.9 s | 23 s 20–25 s | 178 s 172–198 s |
| 0.1% | 11 s 9.1–12 s | stalled | 671 s 665–675 s |
| 1% | 12 s 12–13 s | stalled | stalled |
| 3% | 13 s 12–15 s | stalled | stalled |
"stalled" means the median run did not produce a complete file inside the time limit. A range that ends in "stalled" means the slowest run did not finish. Once a run stalled, that tool's other runs at that loss level were skipped. A tool that stalled on the 1 GiB copy is shown as stalled for the 10 GiB copy at that loss level: the larger file would not finish inside the time limit.
farwing bench user@host --size 5G