Token bucket mechanism is used for congestion control at router . Bucket capacity is 700 bytes (initially full), token arrival rate is 200 bytes/sec and maximum output rate is 300 bytes/sec. The amount of time in sec required to transmit 3000 bytes file is _____________________
MY SOLUTION
c= 700 bytes
M= 300 bytes /sec
R= 200 bytes/sec
T = c / (m-r)
700 / (300-200) = 700 / 100 = 7 sec
data sent = 300 bytes /sec * 7 sec = 2100
remaining data = total data - data sent
3000 - 2100 = 900
t = 900 / (300-200) = 900/100 = 9sec
therefore 7sec + 9sec = 16sec
ANSWER = 16 sec
SOLUTION GIVEN
c= 700 bytes
M= 300 bytes /sec
R= 200 bytes/sec
T = c / (m-r)
700 / (300-200) = 700 / 100 = 7 sec
data sent = 300 bytes /sec * 7 sec = 2100
remaining data = total data - data sent
3000 - 2100 = 900
t = 900 / 200 = 4.5sec
therefore 7sec + 4.5sec = 11.5sec
ANSWER = 11.5 sec
CAN someone help with the correct one