The Gateway to Computer Science Excellence
+4 votes

Consider a TCP connection using the multiplicative additive congestion control algorithm where the window size is 1 MSS and the threshold is 32 MSS. At the $8^{th}$ transmission timeout occurs and enters in the congestion detection phase. The value of the window size (in MSS) at the end of $12^{th}$ transmission is ______.

Ans given 8 but I got 16.

Though there are numerous questions of this sort being posted here on GO. But since my answer didn’t match with them, I wanted to clarify.

It says at the end of $12^{th}$ transmission. So we have to take the window size after the 12 RTTs right and not at 12th RTT?

in Computer Networks by Boss (23.6k points)
retagged by | 375 views
1 || 2 || 4 || 8 || 16 || 32 || 33 || 34(TO) || 1 || 2 || 4 || 8...

it should be 8... at the end of here means when it is about to end...

like the end of the story(last stage) moment before the end... means when 12th round is about to end here...


//as far as i am getting this.


Why did congestion avoidance phase start after 16MSS? We can go upto the threshold value i.e. 32MSS ..right?



Its okay. But "about to end" means the 12th RTT has just finished i.e. all the ACKs for 8 MSS have been received by the sender and now the window size should get doubled i.e. 16 MSS.. na? :(

at the end of , i think there is some grammar thing ... to be noticed i think it means just before the end..
what if we don't need 13th transmission ? there is no need to increase or decrease the window size. so it should be 8 only.

i also had doubt in this .
At first  I'm also face the same prob

But in everywhere i observe  they follow the same rule

Ath the end  12 transmission  means just before end

@Magma sure ?


Yeah i solved similar type question around 3 times

Ist time I'm did the same thing which @MiNiPanda did 


gate 2012  was ambiguous and marks were given to all.

this is also made easy question and in every made easy question they have not incremented the value.

In gate I think they would specifically mention what does end means, and if they don't then end means end we should increment, or else maybe they say tending to end.


yes I checked ..but then why made easy follow different rule :/

and yes acc to me also 16 is correct  

i guess 16 is correct

at the end of 12th transmission means beg of 13th transmission
1| 2| 4| 8| 16| 32| 33| 34 timeout

threshold = 16

1| 2| 4| 8

so answer should be 16 i think.
Window size during 12th transmission is 8KB and at the end of 12th transmission is 16KB.
16 MSS.

According to this answer 16  

This is my point of view I want to share.

In TCP AIMD, window size doubles or increases after successful acknowledgement. i.e; it is very much possible that 1 RTT (i.e; my minimum time we take to receive an acknowledgement) is greater than the transmission time of whole window. I meant to say that, it is possible, and most of the time happens, that once sender sends the whole window, it has to wait for sometime to receive an acknowledgement and increase its window size (whether doubles or single increment, depending on the phase going on).

Now coming to the question, when it says that at the end of 12th transmission, then we are talking only about transmission... i.e; the time when the whole window of the 12th transmission is sent. And as discussed earlier, there might be some time gap between the whole window transmission and 1Rtt, i.e; receiving and ACK. And until we receive an acknowledgement, how can the window size be adjusted?

So according to me 8 is the correct answer.

@aambazinga I got it know..thanks a lot!! :)


So then answer will be 8?


@Somoshree Datta 5 

yes the logic of aambazinga seems right. Isn't it?

supporting to aambazinga,

there may be chance of TO or 3 duplicates, then sender window changes

∴ we have to return the window size at 12th transmission if it ask what is the window size at end of 12 th transmission.
0 it..thanks! :) @MiNiPanda @Shaik Masthan

there may be chance of TO or 3 duplicates, then sender window changes

or may be not.

so both answers should be correct.(8 and 16).

gate question will either mention it clearly or they will provide a range in the answer.

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,832 questions
57,685 answers
107,174 users