Time it takes to transfer a file to a client

  • Thread starter SlurrerOfSpeech
  • Start date
  • Tags
    File Time
In summary, Peter said that the transfer rate is the rate of the slowest transfer, as has already been noted. For example, you could have both B -> C and C -> D be 1 zillion pebbles/second; but if A -> B is 1 pebble/second, then the B -> C and C -> D processes will spend all but one zillionth of each second waiting for the next pebble, so they will still only be transferring one pebble per second. A process can't transfer pebbles if there are no pebbles in the pile it's moving pebbles from.The formula for K piles with rates r0, ..., rk is complicated but it
  • #1
SlurrerOfSpeech
141
11
Let's say I have a client that asks for a file from a remote server that then asks for the file from some other remote server (Let's say Azure Blob Storage, for example). Let's say that the file can be transferred from blob storage to the web server at 60mb/s and from the web server to the client at 40mb/s.

Client <==== T1=40mb/s ==== Web Server <===== T2=60mb/s ==== Blob Storage

Is my intuition correct that 40mb/s is essentially the total transfer rate, since the bytes are basically being produced faster than they can be consumed?

So, basically, the formula is like

  • If T1 < T2, then T = T1
  • If T1 >= T2, then T = T1 + T2
In the example I showed, let's say that the Client could directly get the file from Blob Storage at 50mb/s. Then I suppose this would be faster and cost less money.

Sorry if this sounds like a super-n00b question. It's only recently that I've dealt with these kinds of questions.
 
Technology news on Phys.org
  • #2
It depends on whether the two transfers are done in parallel or sequentially.

Internet transfer speeds are time variable. Also, data is transferred in packets, so the data rate for each packet is higher than the average for many packets including idle time.

In the end, it depends on how precise you want to be and how many complexities you want to consider. But for the simplest case, yes 40 is the correct answer.
 
  • #3
I have no idea why you add two transfer rate.

If you have a chain of sequential transfers, then the total effective transfer rate for the client is in general limited to that of the smallest transfer rate.
 
  • #4
Filip Larsen said:
I have no idea why you add two transfer rate.

If you have a chain of sequential transfers, then the total effective transfer rate for the client is in general limited to that of the smallest transfer rate.

Is there a theorem for this?
 
  • #5
SlurrerOfSpeech said:
Is there a theorem for this?

Not an named one, because it's obvious. Think about it in a non-computer setting. For example, if I have three piles of pebbles, A, B and C, and I can move pebbles from A to be at 1 pebble/second and B to C at 2 pebbles/second, how many pebbles can move per second from A to B to C? If I increase the B to C rate from 2 to a zillion, does that change the total rate at all?
 
  • #6
Vanadium 50 said:
Not an named one, because it's obvious. Think about it in a non-computer setting. For example, if I have three piles of pebbles, A, B and C, and I can move pebbles from A to be at 1 pebble/second and B to C at 2 pebbles/second, how many pebbles can move per second from A to B to C? If I increase the B to C rate from 2 to a zillion, does that change the total rate at all?

But let's say that the rates are

A -> B: 1 pebble/second
B -> C: 1 zillion pebbles/second
C -> D: 1 pebble/second

That's a different rate than if we change C -> D to be 1 zillion/second.

The formula for K piles with rates r0, ..., rk is complicated but it would involve summing the rates, for certain.
 
  • #7
SlurrerOfSpeech said:
let's say that the rates are

A -> B: 1 pebble/second
B -> C: 1 zillion pebbles/second
C -> D: 1 pebble/second

That's a different rate than if we change C -> D to be 1 zillion/second.

No, it isn't. The rate of the whole process is the rate of the slowest transfer, as has already been noted. For example, you could have both B -> C and C -> D be 1 zillion pebbles/second; but if A -> B is 1 pebble/second, then the B -> C and C -> D processes will spend all but one zillionth of each second waiting for the next pebble, so they will still only be transferring one pebble per second. A process can't transfer pebbles if there are no pebbles in the pile it's moving pebbles from.

SlurrerOfSpeech said:
The formula for K piles with rates r0, ..., rk is complicated but it would involve summing the rates, for certain.

No, it wouldn't. The correct answer has already been given in #3 (and I stated it again above). It's not a complicated formula at all.
 
  • #8
SlurrerOfSpeech said:
That's a different rate than if we change C -> D to be 1 zillion/second.

Asz Peter said, no it's not. You might want to try it yourself on pencil and paper - what's in each pile at step 1, step 2, step 3.
 
  • #9
SlurrerOfSpeech said:
So, basically, the formula is like

  • If T1 < T2, then T = T1
  • If T1 >= T2, then T = T1 + T2
If only it were that simple...
In real life you have additional delays such as:
  • Protocol overhead
  • Congestion problems
  • Store-and-forward delays
  • "Light-speed" delays (the time it takes for a symbol to transverse a physical connection)
  • etc.
 
  • #10
SlurrerOfSpeech said:
But let's say that the rates are

A -> B: 1 pebble/second
B -> C: 1 zillion pebbles/second
C -> D: 1 pebble/second

That's a different rate than if we change C -> D to be 1 zillion/second.

Consider automobile vehicle flow on a highway, no side streets and no on or off ramps for your trip.
  • Start of trip is one lane each direction
  • Traffic is flowing at 30mph (50kph)
  • using the rule-of-thumb for vehicle spacing of one car length for each 10mph of speed,
    there will be about 300 vehicles per hour entering and leaving the roadway
  • The highway now widens to three lanes in each direction
  • Traffic speeds up to 60mph (100kph)
  • Vehicles-per-hour is still 300 per hour because no more cars can enter from the one lane highway, there is no place for more vehicles to come from
  • The next section of highway has an 80mph (130kph) speed limit
  • There will still be only 300 vehicles per hour passing any point because there is no source for any more cars
Reading this over, the above is hard to follow. Here is a simpler example of grocery shopping in a supermarket.
  • You enter to purchase only one item
  • You get to the checkout cash register and discover there is a long line
  • It doesn't how fast you can pick your item or how fast people can get from the cash register to the exit, you still have to wait for the slow checkout
Your data transmission and both of the above are 'sequential' or 'serial' processes, and are limited by the slowest step in the process. The slowest step is often referred to as the 'choke point' or the 'limiting process.'

Hope this helps.

Cheers,
Tom
 
  • Like
Likes Natuurfenomeen22
  • #11
Tom.G said:
Your data transmission and both of the above are 'sequential' or 'serial' processes, and are limited by the slowest step in the process. The slowest step is often referred to as the 'choke point' or the 'limiting process.'
This

Another term used is "bottleneck."

Thread closed as having been asked and answered. OP: if you still don't understand, please PM me.
 
  • Like
Likes jim mcnamara

What is the average time it takes to transfer a file to a client?

The average time it takes to transfer a file to a client can vary greatly depending on factors such as file size, internet connection speed, and network congestion. However, on average, it can take anywhere from a few seconds to a few minutes.

What can affect the speed of file transfer?

The speed of file transfer can be affected by several factors, including the size of the file, the quality of the internet connection, the type of network being used, and any potential network congestion.

How can I speed up the file transfer process?

To speed up the file transfer process, you can try compressing the file before sending it, using a faster internet connection, or using a wired network connection instead of a wireless one.

What is the best way to ensure a fast and successful file transfer?

The best way to ensure a fast and successful file transfer is to have a stable and reliable internet connection, use a file transfer protocol specifically designed for large file transfers, and make sure the recipient also has a good internet connection.

Is there a limit to the file size that can be transferred to a client?

The limit to the file size that can be transferred to a client depends on the file transfer protocol being used and the capabilities of the client's computer and internet connection. Some protocols may have a file size limit, while others may not. It is best to check with the specific protocol and the client's capabilities beforehand.

Similar threads

Replies
7
Views
233
  • Programming and Computer Science
Replies
1
Views
982
  • Thermodynamics
Replies
4
Views
1K
  • Programming and Computer Science
Replies
12
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Introductory Physics Homework Help
Replies
21
Views
8K
Replies
13
Views
1K
  • Computing and Technology
Replies
4
Views
3K
  • Biology and Medical
Replies
5
Views
2K
  • Special and General Relativity
Replies
12
Views
3K
Back
Top