File Transfer

A file is transferred from one location to another in 'buckets'. The size of the bucket is 10 kilobytes. Each bucket gets filled at the rate of 0.0001 kilobytes per millisecond. The transmission time from sender to receiver is 10 milliseconds per bucket. After the receipt of the bucket the receiver sends an acknowledgement that reaches sender in 100 milliseconds. Assuming no error during transmission, write a formula to calculate the time taken in seconds to successfully complete the transfer of a file of size N kilobytes.

Questions by aryadipan   answers by aryadipan

Showing Answers 1 - 6 of 6 Answers

Calculation for transferring 10 kb


0.0001 kilobytes per millisecond
so for 10 kb its 0.001

sender to receiver is 10 milliseconds per bucket

receipt of the bucket the receiver sends an acknowledgement that reaches sender in 100 milliseconds

so for 10 kb time needed is ::--> 110.001 ms

so formula for transferring  n kbs ::---->  [upper limit(n/10)] * 110.001

  Was this answer useful?  Yes

angadi

  • Feb 4th, 2011
 

Rate at which a bucket is filled : 0.0001 KB/ms = 0.1 KB/S
time taken for 1 bucket to be filled : 10 KB/0.1 KB/S = 100 Seconds
time taken for sending : 0.01 seconds
time taken for acknowledging : 0.1 seconds
Total time for sending 1 bucket: 100.11 seconds
Number of buckets for N KB = upper limit(N/10 )
Total time for N KB  = upper limit (N/10)*100.11 seconds

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions