GATE / CS ARCHIVE

GATE CSE 2016 SET 1 / QUESTION 54

GATE CSE 2016 Set 1 Q54

Computer Networks · Transport, Congestion Control & Traffic Shaping · Full GATE CSE 2016 Set 1 paper

GATE 2016 Set 1, Q54 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