14

When you download a big enough file, you can see that in the early seconds, the download speed increases to finally reach its mean value. Why?

1
  • 2
    Can you share some names of applications you use where you see this behavior? There may be different answers depending on different software. Commented Jul 11, 2011 at 3:02

3 Answers 3

19

Two things:

  1. There's some overhead in negotiating and setting up the transfer, especially with protocols like FTP. FTP actually sets up a second TCP channel exclusively for data transfer, so a second 3-way handshake has to take place, etc etc.

  2. Most TCP connections are set for "slow startup". The TCP code is kind of feeling its way up to the maximum segment size that will work for the route between two hosts.

1
  • 1
    I don't think item #1 is a sufficient explanation, at least not with FTP, because most clients I've seen only calculate speed on the data channel, not the control channel. We also don't know if the questioner is referring specifically to FTP. Commented Jul 11, 2011 at 3:00
17

The method for calculating download speed varies from software to software. The first thing to keep in mind is that speed is always calculated in the context of a certain time duration. Some software may display download speed for the entire time you've been downloading (could be hours), while other software may display download speed for only the most recent x number of seconds. The shorter the time duration for the speed calculation, the more real-time the value is.

Further, when a download first begins, there is a choice to be made whether the software assumes an initial speed of 0, or whether the software assumes (and displays) no initial speed whatsoever until it has more data to make an estimate with.

In the situation you've described, it is possible that the software is such as the former above, and so it takes a few moments for the calculated value to average up (from 0) to a more accurate value.

1
  • 1
    Bingo - "there is a lack of data to derive a measurement from at the beginning" sounds most correct. I think most downloaders are smart enough to delay taking metrics until the file is actually being downloaded (as opposed to @Bruce).
    – new123456
    Commented Jul 10, 2011 at 22:09
13

It's called tcp windowing, on successful transmition of a packet the window the amount of data gets increased this will keep happening till an error in transmition happens it depends on the speed and reliabilty of the connection, the applications just calculates how long the transfer will take at the current rate the tcp window will allow

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .