CS FundamentalsHardGATE CS

A token bucket has capacity 1 MB, fills at 2 MB/s, and is full at t = 0, when a host starts sending a long burst. The host's link runs at 10 MB/s. How much data leaves in the first 0.25 s?

  1. A. 2.5 MB
  2. B. 1.25 MB
  3. C. 1.5 MB
  4. D. 0.5 MB

Correct answer: C. 1.5 MB

At full rate the bucket empties after C/(M − ρ) = 1/(10 − 2) = 0.125 s, after which output is limited to 2 MB/s. Total = C + ρt = 1 + 2 × 0.25 = 1.5 MB. 2.5 MB assumes full rate throughout, and 1.25 MB counts only the burst phase.

More Computer Networks questions

Exams that ask this topic