Opened 14 years ago

Closed 20 months ago

Last modified 17 months ago

#2309 closed Feature request (rejected)

Support multi-threaded multipart downloads

Reported by: mrcapture Owned by:
Priority: high Component: FileZilla Client
Keywords: Cc: mrcapture, Tim Kosse, lukebenes@…, hakan_deliyurek@…, fastgoldfish@…
Component version: Operating system type: Windows
Operating system version:

Description (last modified by Tim Kosse)

FileZilla is really great software, but the feature I am
missing most is the ability to actually download ONE
file using multiple parallel connections. Many FTP
servers (including the one of the company I work for)
limit the bandwidth per connection, very often this limit
is in the 20kB/sec range. I was using LeechFTP before
that supports multi-threaded multi-part download (using
multiple parallel connections) but development has been
discontinued and it does not support any security (SSL).
Whenever you have a high-speed internet connection
and need to download a large file (e.g. CD image) I was
able to cut the download time by over 75% using this

Would be great if you could consider this for a future



Change History (28)

comment:1 Changed 14 years ago by Tim Kosse

Won't be implemented. The overhead from using multiple
connections reduced overall available bandwidth.
If someone uses multiple connections, all other users have
to pay for this by slower transfer speed

comment:2 Changed 11 years ago by slacka

Priority: normalhigh
Status: closedreopened

I agree that a without limits, this feature has the ability for abuse. However, a reasonable number like 5 or 10 connections would be a good compromise.

I first used this feature in leech FTP in 1998 and since then nearly all of modern FTP clients have added support for this feature (cuteFTP, ws-ftp, leechftp) in addition to all download accelerators for web browsers like downthemall use it. This has not led to the any major problems, so I see no reason why filezilla cannot keep up with the times.

comment:3 Changed 11 years ago by Tim Kosse

Priority: highnormal
Resolution: rejected
Status: reopenedclosed

See my previous reply.

comment:4 Changed 11 years ago by slacka

Cc: lukebenes@… added

CodeSquid ,

I have read your previous reply. However, your argument for not supporting this feature “If someone uses multiple connections, all other users have to pay for this by slower transfer speed” is only valid in certain low bandwidth situations. Nearly all proprietary FTP clients support this multi-part downloads. So in these low bandwidth situations, the FTP server administrator can and should easily prevent multi-part download by not support resume or limiting maximum simultaneous connections.

The aggregate bandwidth used by a multipart transfer is identical to a single stream transfer. A user transfering a file in 2 parts, gets the file twice as fast, but also frees up bandwith for other users in ½ the time.

Using Multi-part download is no more demanding of bandwidth than using filezilla’s feature “multiple connections to transfer files”. If mult-part download is really so bad, then shouldn't this feature be removed from filezilla?

comment:5 Changed 11 years ago by Tim Kosse

Strictly speaking I'd have to remove the option for multiple simultaneous transfers. (The public outcry would be gigantic though)

At least no bandwidth is wasted with that option. Compare it to multi-threaded downloads. Let's ignore the fact that you'd double the control connection overhead. Even then the largest cause of overhead remains: The FTP protocol has no range command. You can only give an offset at which to start the transfer, but cannot tell the server to only send you that many bytes. The server always prepares to send you the full file starting from the resume offset.
Now assume a file of 1MiB and you want to only get the first half. Resume offset 0. After receiving the 512KiB you've got all the data you want, yet the server is still sending. So you have to forcefully close the connection. Now at that point, the server has already sent you a lot more data you just didn't receive yet. Depending on the network configuration it can be many megabytes which are still in various buffers or on route to the destination. Furthermore, the server or operating system likely has already read-ahead a significant portion of the file, wasting RAM and causing the HDD to wear down.

comment:6 Changed 11 years ago by Jim

From a network administrator's perspective, codesquid is technically correct. Implementing this feature would waste a little bandwidth. But practically every other FTP client out there already supports this feature, so I think it should be up to us admin to support this feature or not. Besides for massive files, the bandwidth wasted would be a very small percent of the total bandwidth used.

It's great that FileZilla supports multiple simultaneous transfers. The problem is that these don't help at all if you are transferring only one single large file. For that you need full multi-part transfers. The existing framework in filezilla for pipelined transfers could be used to help implement multi-part transfers. When the top file in the transfer queue is large, you simply split it into several partial transfers, and then use pipelined transfers on those parts as if they were different complete files, filling up the transfer slots as usual. You still have to handle the pre-allocation of the file, and filling in the data into the right place for each part.

Codesquid does raise a good point about the FTP protocol lacking a range command. Couldn’t FileZilla address this deficiency in the FTP protocol with an extension? Initially only FileZilla clients connecting to FileZilla servers would support it, but if it was useful and implemented well, it could be adopted as an official extension to the FTP protocol, like RFC 2228. What do you think?

comment:7 Changed 10 years ago by rymo

Resolution: rejected
Status: closedreopened

"...the largest cause of overhead remains: The FTP protocol has no range have to forcefully close the connection"

...not so with SFTP! Regardless, we're only interested in this feature on really big downloads. If you're transferring a single 1GByte file with multiple FTP connections and end up with some overlap at the end, that's pretty minuscule overhead. If you are really that worried about wearing out server HDDs (seriously?!) then only enable multiple connections above a certain filesize threshold.

Parallel downloads need not and should not an on-by-default feature, but it's a vital option for enhancing poor connections just as custom PASV setting tweaks are necessary in poor server/network setups.

We're on a wireless connection here and for various reasons we can't get more than 2Mbps throughput on a single download connection -- yet run 10 or 20 parallel connections on the same server (a server we own, by the way) using axel under linux or Cygwin and we're able to max out our 10Mbps allocation on that single download. Why shouldn't we expect to accomplish the same in our favorite FTP client, FileZilla? Don't dumb down the client for fear of dumb servers.

comment:8 Changed 10 years ago by Jeff Cook

This really should be implemented. I use FileZilla as a client almost exclusively on private servers which I own and operate, and I want to use multiple connections per file. Why should I not be able to on my own server?

There are many measures server admins can take to protect themselves from abuse by excessive parallel connections. And as already stated, most other FTP clients support this feature, so FileZilla will not cause a massive influx of new unblockable abuse.

Don't deprive your users, many of whom have very legitimate uses for this, in favor of a smaller number of incompetent admins.

comment:9 Changed 8 years ago by Pierre

Operating system type: Linux
Operating system version: Fedora 14
Type: Feature requestBug report

I agree with the previous comment, I rented a dedicated server oversees and for whatever reason (I'm still awaiting an answer about it from them) they limited the speed at 120Ko/s per download, with all protocols (ftp, sftp, and http) while I still pay for an unlimited 100Mb/s service.

I can for exemple split a file in 10 parts, download the 10 parts simultaneously and get a 1 Mo/s speed.

The problem is not on filezilla's side of course, but if the feature was implemented it would be a relief. The use can be legitimate, and not only for stealing bandwidth as you can see!

comment:10 Changed 8 years ago by Pierre

Operating system type: Linux
Operating system version: Fedora 14
Type: Bug reportFeature request

comment:11 in reply to:  3 Changed 8 years ago by Jagsir

Replying to codesquid:

See my previous reply.

I have a need to copy files ( a large number between 2 computers) and I want to use filezilla in multi threaded transfer mode.

When I start the transfer I get 1 processor doing 99% and just 5-6% bandwidth usage.

comment:12 Changed 8 years ago by smk

This feature should seriously be considered, if you don't want to put it in the main client, have a plugin or something
This is absolutely the *only* reason preventing me from using this otherwise fantastic client

comment:13 Changed 7 years ago by yener azis

Cc: hakan_deliyurek@… added
Operating system type: Windows
Operating system version: windows XP SP3

I read the replies above and what I understand is that Filezilla does not support "multi-threaded transfer". Does it or not? I have version 3.5.0. Also is "multi-threaded transfer" the same as "multi-part transfer"?
I ask this because in my job I used for LTE UL throughput test the Filezilla client and got 45 Mbps and with MS-DOS FTP (put command) got only 25 Mbps. And I wonder why the big difference. Would you know why?

comment:14 in reply to:  1 Changed 5 years ago by badon

Cc: fastgoldfish@… added
Operating system version: windows XP SP3
Priority: normalhigh

Replying to codesquid:

Won't be implemented. The overhead from using multiple
connections reduced overall available bandwidth.
If someone uses multiple connections, all other users have
to pay for this by slower transfer speed

I just tested this, and I've learned that you're wrong about it reducing overall available bandwidth, in my test case of a single large file on a single-user system. I experienced a 5X bandwidth increase using 5 connections, instead of only 1 connection.

Since this is a single-user system I tested, that means you're also wrong about other users "paying" for something as a consequence, because there are no other users. As an admin on a multi-user system, I could easily limit simultaneous connections to 5, to ensure that maximum download speeds are achieved without over-doing the number of simultaneous connections.

Correct me if I'm wrong, but I think you're also probably wrong to expand the scope of FileZilla's design to policing a hypothetical admin's users on a hypothetical system that appears to not exist in the real world. Of course, it's good to design software with sensible and friendly usage in mind, but I can't think of any system I've ever witnessed that would benefit from this expansion in FileZilla's scope. All of them that are still operating today will support multiple connections, and FileZilla only stands in the way of using that feature as the admins intended.

It's worth noting that FTP isn't so popular as it used to be, so abuse is a non-issue. That might not have been the case 9 years ago when this feature was requested and rejected.

comment:15 Changed 5 years ago by badon

Note that this feature should properly be called "Segmented", not "multipart". See these URL's for explanation:

comment:16 Changed 5 years ago by Alexander Schuch

Status: reopenedmoreinfo_reopened

They talk about downloading from multiple servers. I just don't get why downloading from the *same* server using 5 parallel connections should be any better. After all, you have 5 TCP connections to maintain, so at least the overhead of 4 TCP connections is wasted.

Assume 100 KiB/s bandwidth. Assume 1% of TCP overhead. So using 100 KiB/s using 1 TCP connection gives you 99 KiB/s actual data bandwidth. Using 100 KiB/s using 5 TCP connections give 95 KiB/s actual data bandwidth.

comment:17 Changed 5 years ago by badon

Status: moreinfo_reopenedreopened

I think you're looking at the problem backward because you're missing the fact that 1 connection does not achieve maximum bandwidth. So, it's not a question of reaching maximum speed with 1 connection, and then dividing it up to 5 connections. Instead, it's a question of NOT reaching anything even close to maximum speed with 1 connection, and then getting closer to the theoretical maximum with more connections.

In the test I did, 1 connection was not achieving maximum speed. 5 connections got closer to achieving maximum speed (6+ connections weren't better). In that case, the question is "why wasn't I able to achieve maximum speed with only 1 connection?". I don't know the answer to that question, but since it was a Filezilla FTP server, I'm probably not the most qualified person around here to answer that question. Barring a server problem, maybe there's some sort of server hardware or network quirk that caused 1 connect to be so very inferior to multiple connections.

I honestly have no idea why multiple connections are better than 1 connection, but it's such a common feature to support for both clients and servers, surely I'm not the first person to experience this phenomenon, and just because no one here has explained it does not mean the phenomenon doesn't exist. The problem has been identified. The solution has been identified. As such, halting progress on this bug until somebody explains why the (industry standard) solution works is an irrelevant red herring.

As has been said already, Filezilla is probably the ONLY major FTP client that DOESN'T support multiple segmented downloading, so instead of asking "why should Filezilla be the same?", it might make more sense to ask "why should Filezilla be different?". What we're saying here is that there is no good reason for Filezilla to be different. Every objection to supporting multiple segmented downloads has been thoroughly shot down during the last 9 years (or dismissed as a red herring). It's time to concede that Filezilla should implement this feature eventually.

comment:18 Changed 5 years ago by Haxus

I use FileZilla quite a bit for general use, but at home I bought SmartFTP (and used CuteFTP previously) because of the segmented downloading. I have an FTP server overseas, and there is traffic shaping implemented along the way that often limits a single connection to less than 1MB/sec, while my home connection can do 10MB/sec or more.

Using multi-part/segmented downloads, I can saturate my connection. With FileZilla, my speeds are limited greatly. Segmented FTP downloads are implemented in other FTP programs for good reason. I understand that codesquid doesn't want to implement this for several reasons. Yes, there is some overhead and wasted bandwidth, and yes there are technical hurdles in implementing it, but I believe the performance benefits outweigh these negatives. These are also settings that can be disabled by default, and only apply to files over a target size.

I'll continue to use FileZilla in situations where I don't need segmented downloads, but SmartFTP/CuteFTP can download files over 10 times faster than FileZilla in these cases, so it will never replace them completely unless this is implemented.

comment:19 Changed 4 years ago by Håkon Struijk Holmen

Some times, TCP does not reach its maximum speed due to things like packet drops unrelated to congestion, or high latency.

One possible fix is to make TCP itself able to cope with higher latency and random packet drops. But in the meantime, segmented downloads is a widely adopted workaround.

This is very real, as the reason people want segmented downloads nowadays, is working around this type of issue.

There are also many potential users who would adopt FileZilla if this was implemented.

comment:20 Changed 4 years ago by Pierre

I really don't get why it's not at least recognised as a valid feature request. It's been 5 years since my last comment and I dropped FileZilla totally as an sftp client for this reason. Heavily using cross-continent transfer, it's a nightmare with Filezilla.

comment:21 Changed 4 years ago by badon

Correct me if I'm wrong, but it looks to me like this IS recognized as a valid feature request by virtue of the fact that its status is "reopened", and nobody has reclosed it yet. However, after 10+ years, I think it's wise to assume it's going to continue to be ignored. It should be easy to find an alternative, since anything still around today probably had this feature a decade ago.

comment:22 Changed 20 months ago by tyler.haske

Lack of segmented downloads means I cannot use or recommend FileZilla to anyone if they need to download large files. I still occasionally use it since it will at least use multiple connections for multiple files.

TCP wasn't intended for fast downloads, it was intended for accuracy. TCP doesn't handle latency well either. Its windowing algorithm needs to wait for traffic to be received, then send the acknowledgment back. While the server is waiting for the acknowledgement, it sends NOTHING. The windows are limited in size. You can look at a Wireshark capture and see that large portions of time, there just isn't any traffic on the wire as it waits for the ACK packets.

I've attached some analysis with Wireshark using tcptrace.

Please implement this. LFTP doesn't have a pretty graphical interface.

Source: TCP/IP expert.

Last edited 20 months ago by tyler.haske (previous) (diff)

comment:23 Changed 20 months ago by Tim Kosse

Description: modified (diff)

FileZilla is perfectly capable of saturating even transatlantic gigabit links using a single TCP connection.

This even works when using SFTP (assuming sufficient CPU power for the crypo is provided), which implements another layer of flow control with packet acknowledgement on top of TCP.

@tyler.haske: Since we're both TCP/IP experts, I'm sure you confirmed that the advertised TCP receive window set during the TCP handshake is large enough to accommodate the link's BDP.

comment:24 in reply to:  23 Changed 20 months ago by tyler.haske


I'm sure you confirmed that the advertised TCP receive window set during the TCP handshake

Ah, kernel tampering. Your proposed fix is to go in and adjust the windows setting that would affect every program, and every site my computer uses. Surely, this would have no adverse consquences.

No thanks. Just gonna use another client that implements segmented downloads. I know Tide is popular, but other brands of detergent do exist.

I just wanted to provide some better analysis for our audience than what this thread already offered.

Last edited 20 months ago by tyler.haske (previous) (diff)

comment:25 Changed 20 months ago by Tim Kosse

Ah, kernel tampering. Your proposed fix is to go in and adjust the windows setting that would affect every program, and every site my computer uses

It's a per-socket thing. Each and every program can configure the advertised receive window on every socket it creates using the TCP_RCVBUF socket option.

The only kernel settings you might need to tweak are memory limits, but increasing the limits them doesn't affect every program (unless you're very low on memory, but in that case using multiple connections would also exhaust your memory).

I just wanted to provide some better analysis for our audience than what this thread already offered.

Sorry, but your analysis is faulty. You're jumping to conclusions from a false premise and misinterpret the available data.

If you want plot another graph, please look at the receive and congestion window sizes and their utilization, with a line drawn in where the BDP sits at.

comment:26 Changed 20 months ago by hurakura

single tcp connection doesn't always give you the max download speed.
i don't know why you refuse to implement this feature in a otherwise great ftp client.
you are so stubborn. 12 years of ignoring users request. come on. if you don't know how to do it then just admit.

comment:27 Changed 20 months ago by Tim Kosse

Resolution: rejected
Status: reopenedclosed

@hurakura: Going ad hominem gets you nowhere.

comment:28 Changed 17 months ago by tyler.haske

Sorry, but your analysis is faulty. You're jumping to conclusions from a false premise and misinterpret the available data.
If you want plot another graph, please look at the receive and congestion window sizes and their utilization, with a line drawn in where the BDP sits at.

I don't want to theorycraft, but if we must, the research has been done for some time on this.

The End-to-End Performance Effects of Parallel TCP Sockets on a Lossy
Wide-Area Network (2002)

The above is exceptionally heavy on theory and testing. Multiple TCP streams increase the speed of packet-loss recovery. Since not all packet loss events are due to congestion, having multiple streams means node-to-node communication has a better chance of congesting the network, up to the point where packet loss is mostly due to congestion, not random events.

A lighter paper, taking into account buffer sizes, BDP tuning and multiple streams still found that ... the fastest transfers all used multiple streams:

Balancing TCP Buffer vs Parallel Streams in Application Level Throughput Optimization (2009)

I was looking for other file transfer methods and I ran across this which seems to show the current state-of-the-art for moving petabytes of data:

How to transfer large amounts of data via network by Harry Mangalam (2017)

Apparently, Google has known about this for some time, they wrote their own utility for copying files to their cloud, "gsutil". "rclone" is the app for other cloud providers, and it uses Parallel TCP too.

In the Grid Computing space where research institutions move petabytes of files, the most used app is GridFTP ... which as you can guess, supports parallel TCP.

Last edited 17 months ago by tyler.haske (previous) (diff)
Note: See TracTickets for help on using tickets.