GateAI
TCP Flow and Congestion Control

GATE CSE 2016 Set 1 · Q54

NAT2 marksMedium

Time

For a host machine that uses the token bucket algorithm for congestion control, the token bucket has a capacity of 1 megabyte and the maximum output rate is 20 megabytes per second. Tokens arrive at a rate to sustain output at a rate of 10 megabytes per second. The token bucket is currently full and the machine needs to send 12 megabytes of data. The minimum time required to transmit the data is ____________ seconds.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 1.1

TCP Flow and Congestion Control

Let:

  • Bucket capacity C=1 MBC = 1\text{ MB}

  • Maximum burst transmission rate M=20 MB/sM = 20\text{ MB/s}

  • Token generation rate R=10 MB/sR = 10\text{ MB/s}

  • Total data to transmit D=12 MBD = 12\text{ MB}

  1. Burst phase (until the bucket becomes empty): During the burst time tbt_b, the output rate is M=20 MB/sM = 20\text{ MB/s}.

    M⋅tb=C+R⋅tbM \cdot t_b = C + R \cdot t_b
    20⋅tb=1+10⋅tb  ⟹  10⋅tb=1  ⟹  tb=0.1 seconds20 \cdot t_b = 1 + 10 \cdot t_b \implies 10 \cdot t_b = 1 \implies t_b = 0.1\text{ seconds}

    Data sent during burst phase:

    Dburst=M⋅tb=20×0.1=2 MBD_{\text{burst}} = M \cdot t_b = 20 \times 0.1 = 2\text{ MB}
  2. Sustained rate phase: Remaining data to transmit:

    Drem=12−2=10 MBD_{\text{rem}} = 12 - 2 = 10\text{ MB}

    Since the bucket is empty, data can only be sent at the token arrival rate R=10 MB/sR = 10\text{ MB/s}:

    trem=10 MB10 MB/s=1.0 secondt_{\text{rem}} = \frac{10\text{ MB}}{10\text{ MB/s}} = 1.0\text{ second}
  3. Total transmission time:

    T=tb+trem=0.1+1.0=1.1 secondsT = t_b + t_{\text{rem}} = 0.1 + 1.0 = 1.1\text{ seconds}

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This TCP Flow and Congestion Control previous year question is Q54 of the GATE CSE 2016 Set 1 paper. Find more GATE CSE PYQs on TCP Flow and Congestion Control in Computer Networks, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related TCP Flow and Congestion Control PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

TCP Flow and Congestion Control in GATE CSE

TCP Flow and Congestion Control has 23 GATE CSE PYQs across 21 papers from 2012 to 2026. 6 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2016 Set 1.

How GATE tests TCP Flow and Congestion Control

More from GATE CSE 2016 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2016 Set 1 · Q54 · NAT

For a host machine that uses the token bucket algorithm for congestion control, the token bucket has a capacity of 1 megabyte and the maximum output rate is 20 megabytes per second. Tokens arrive at a rate to sustain output at a rate of 10 megabytes per second. The token bucket is currently full and the machine needs to send 12 megabytes of data. The minimum time required to transmit the data is … seconds.

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.