The Gateway to Computer Science Excellence

+2 votes

A token bucket scheme is used for traffic shaping. A new token is put into the bucket at every 10 $\mu$sec. Assume each token picks one packet which contains 2 bytes of data. It is observed that initial capacity of the bucket is 10 Mbits. The computer can transmit at the full speed of 8 Mbps for _________ (in seconds upto 2 decimal places)

Answer is 1.56.

Need the step by step procedure to go about this question

Answer is 1.56.

Need the step by step procedure to go about this question

+2 votes

Best answer

initial capacity of token bucket is given as =$10^{7}$ bits

in every 10 $\mu$ sec => 1 token is added

in 10*$10^{-6}$ sec => 1 token is added

in 1 sec =>$10^{5}$ token added

token rate=$10^{5}$ tokens/sec.

1 token is equivalent to 16 (2*8) bits of data

due to token rate we are able to send 16*$10^{5}$ bits/sec from the host.

suppose the host transmit at maximum rate (i.e. 8mbps) for **t** secs

total data sent by host in **t **secs= 8*$10^{6}$*t

this data must be equal to the original capacity of token bucket + data transferred in 't' time due to token rate

8*$10^{6}$*t = $10^{7}$ bits + 16*$10^{5}$*t

**t=1.5625s**

- All categories
- General Aptitude 1.9k
- Engineering Mathematics 7.5k
- Digital Logic 2.9k
- Programming and DS 4.9k
- Algorithms 4.4k
- Theory of Computation 6.2k
- Compiler Design 2.1k
- Databases 4.1k
- CO and Architecture 3.4k
- Computer Networks 4.2k
- Non GATE 1.4k
- Others 1.4k
- Admissions 595
- Exam Queries 573
- Tier 1 Placement Questions 23
- Job Queries 72
- Projects 18

50,737 questions

57,395 answers

198,595 comments

105,446 users