A Computer on a 10Mbps network is regulated by a token bucket. The token…

20222008

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 16 megabits. What is the maximum duration for which the computer can transmit at the full 10Mbps?

  1. A.

    1.6 seconds

  2. B.

    2 seconds

  3. C.

    5 seconds

  4. D.

    8 seconds

Attempted by 133 students.

Show answer & explanation

Correct answer: B

Answer: 2 seconds.

Explanation:

  1. Initial tokens available: 16 megabits.

  2. Token fill (refill) rate: 2 Mbps. Transmission rate when sending at full speed: 10 Mbps.

  3. Net token consumption while sending at full speed = transmit rate - fill rate = 10 Mbps - 2 Mbps = 8 Mbps.

  4. Maximum duration = initial tokens / net consumption = 16 megabits / 8 Mbps = 2 seconds.

Quick check: If you ignored the refill you would get 16 / 10 = 1.6 s. Including the refill extends the time to 2 s, which matches the correct result.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Gate Guidance By Sanchit Sir