GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER NETWORKS

Balance token accumulation and transmission

2 questions solved the same way, newest first. Back to Computer Networks

How these are solved

Use initial bucket tokens plus tokens generated over time as an output budget, respecting the peak link rate. Burst depletion and minimum completion time are different requested outputs, not strict repeats.

2 marks · NAT
Not in GATE 2027 syllabusReport issue

Transport, Congestion Control & Traffic Shaping

Question 54, GATE 2016: A token bucket is full with capacity 1 MB. Tokens arrive at 10 MB/s and the maximum output link rate is 20 MB/s. Find the minimum time to send 12 MB in the fluid token-bucket model.
Tap to enlarge
Answer & solution

Official answer: 1.1 : 1.1

Our answer: 1.1

Token conservation imposes transmitted data≤1+10t megabytes, so sending 12 MB needs t≥1.1s. The output-rate bound additionally gives t≥12/20=0.6s. Attain 1.1s by sending at 20 MB/s for 0.1s, consuming the initial 1 MB net token reserve while transmitting 2 MB, then at 10 MB/s for 1s for the remaining 10 MB. This is the standard fluid token-bucket model, with no additional packet-granularity overhead.

A full bucket permits an initial burst above the sustained token rate. While transmitting at 20 MB/s, tokens are consumed net at 20−10=10 MB/s, so the initial 1 MB reserve lasts 0.1s. During that interval 2 MB are sent, not 1 MB, because new tokens keep arriving. The remaining 10 MB then require 1s at the sustained 10 MB/s rate. The token conservation lower bound proves no alternative schedule can beat this 1.1s construction.

Original paper, page 20 · Answer key

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Maximum token-bucket burst duration

Transport, Congestion Control & Traffic Shaping

Question 58, GATE 2008: A computer transmits on a 10-Mbit/s network through a token bucket replenished at 2 Mbit/s. Initially it holds its full capacity of 16 Mbits. How long can transmission continue at the full 10 Mbit/s?

(A) 1.6 seconds
(B) 2 seconds
(C) 5 seconds
(D) 8 seconds
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. At full output rate 10 Mbit/s, tokens are consumed at 10 Mbit/s while replenishment continues at 2 Mbit/s. The initially full 16-Mbit bucket therefore drains at a net rate of 8 Mbit/s.
2. Its maximum full-rate burst lasts 16/(10−2)=2 seconds, option B. Equivalently 10t≤16+2t gives t≤2.
3. Ignoring concurrent refill would incorrectly produce 1.6 seconds.

Original paper, page 11