The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+14 votes
2.8k views

A computer on a 10Mbps network is regulated by a token bucket. The token bucket is filled at a rate of 2Mbps. It is initially filled to capacity with 16Megabits. What is the maximum duration for which the computer can transmit at the full 10Mbps?

  1. 1.6 seconds
  2. 2 seconds
  3. 5 seconds
  4. 8 seconds
asked in Computer Networks by Veteran (68.8k points)
retagged by | 2.8k views
Is token bucket in gate syllabus 2018 since token ring is not in syllabus ?
Its not related to token ring . It is a congestion control algorithm in network layer (falls under traffic shaping).

3 Answers

+24 votes
Best answer

New tokens are added at the rate of r bits/sec which is
2Mbps in the given question.

Capacity of the token bucket (b) = 16 Mbits
Maximum possible transmission rate (M) = 10Mbps
So the maximum burst time = b/(M-r) = 16/(10-2) = 2 seconds


here is the animation for token bucket hope this will help us to understand the concept.

 

answered by Veteran (13.8k points)
selected by
Can you please explain how the formula is derived?
say till t sec it operate at 10mbps,

t*2+16=10*t

8t=16

so  t=2

I tried this easiest method! Is my approach correct, yes or no? plz let me know!

That animation link is not working. Those who are interested to see that: http://webmuseum.mi.fh-offenburg.de/index.php%3Fview=exh&src=8.html
+7 votes
It's 'kind of' aptitude question:

packets leaving bucket at 10Mbps   &&   packets entering bucket at 2Mbps.

So "actual rate" of bucket being empty is 10-2=8Mbps.

so (capacity/transmission rate) = 16/8 =2seconds.
answered by (377 points)
+6 votes
TIME TOKEN IN BUCKET TOKEN SEND LEFT IN BUCKET
First sec 16Mb+ 2Mb =18Mb 10Mb 8Mb
next sec 8Mb+2Mb 10Mb 0Mb

Hence for 2 seconds we can send the tokens at 10 Mbps.

answered by Active (2.5k points)


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

32,443 questions
39,189 answers
108,817 comments
36,563 users