• edited by
62,105 views
107 107 votes

Consider an instance of TCP’s Additive Increase Multiplicative Decrease (AIMD) algorithm where the window size at the start of the slow start phase is $2$ MSS and the threshold at the start of the first transmission is $8$ MSS. Assume that a timeout occurs during the fifth transmission. Find the congestion window size at the end of the tenth transmission.

  1. $8$ MSS
  2. $14$ MSS
  3. $7$ MSS
  4. $12$ MSS

12 Answers

Best answer
149 149 votes

At:

$t=1,\Rightarrow2$ MSS

$t=2, \Rightarrow4$ MSS

$t=3, \Rightarrow8$ MSS

$t=4, \Rightarrow9$ MSS (after threshold additive increase)

$t=5, \Rightarrow10$ MSS (fails)

Threshold will be reduced to $\dfrac{n}{2}$ i.e. $\dfrac{10}{2} = 5.$

$t=6, \Rightarrow 1$ MSS , 

(There is an ambiguity here if the window size will be 1 MSS or 2 MSS as given in the question and due to this GATE gave marks to all. Assuming window size to be 1 MSS) 

$t=7 \Rightarrow2$ MSS

$t=8, \Rightarrow4$ MSS

$t=9, \Rightarrow5$ MSS

$t=10, \Rightarrow6$ MSS.

So, at the end of $10^{\text{th}}$ successful transmission ,

The the congestion window size will be $(6+1) = 7$ MSS.

• edited by
75 75 votes
At

$t=1,\Rightarrow2MSS$

$t=2, \Rightarrow4MSS$

$t=3, \Rightarrow8MSS$

$t=4, \Rightarrow9MSS$ (after threshold additive increase)

$t=5, \Rightarrow10MSS$ (fails)

Threshold will be reduced by $\dfrac{n}{2}$ i.e. $\dfrac{10}{2}=5$.

$t=6, \Rightarrow2MSS$

$t=7 \Rightarrow4MSS$

$t=8, \Rightarrow5MSS$

$t=9, \Rightarrow6MSS$

$t=10, \Rightarrow7MSS$.

So at the end of $10^{th}$ transmission congestion window size will be $8 MSS$.
• edited by
1 flag:
✌ Low quality (leo_t “At t=10, ACK for the 10th transmission is received. Before receiving this ACK, congestion window =6 MSS. Receiving the ACK increases cwnd by 1 MSS. Therefore after ACK arrival, cwnd becomes 7 MSS. At t=6 it will be 1MSS”)
17 17 votes
In Case of AIMD , Remember following points to solve the questions : -

1 - Start with Given MSS (Min Seq Size)
2 - Increase the Window size in multiples of MSS till the threshold occurs
3 - Once the threshold reached , increase the window size by 1 MSS till the timeout occurs
4 - Once the timeout occurs , reduce threshold to half and again start from Given Start MSS.

Here , 2-4-8(Threshold reached , increase by 1 MSS till timeout)-9-10(Timeout reached)--(Reduce Threshold and again start from 2)--2-4-5-6-7(Window size at 10th Transaction).

Hence Ans : - 7
5 5 votes

Since Slow Start is used, window size is increased by the number of segments successfully sent. This happens until either threshold value is reached or time out occurs.
In both of the above situations AIMD is used to avoid congestion. If threshold is reached, window size will be increased linearly. If there is timeout, window size will be reduced to half.

Window size for 1st transmission = 2 MSS
Window size for 2nd transmission = 4 MSS
Window size for 3rd transmission = 8 MSS
threshold reached, increase linearly (according to AIMD)
Window size for 4th transmission = 9 MSS
Window size for 5th transmission = 10 MSS
time out occurs, resend 5th with window size starts with as slow start.
Window size for 6th transmission = 2 MSS
Window size for 7th transmission = 4 MSS
threshold reached, now increase linearly (according to AIMD)
Additive Increase: 5 MSS (since 8 MSS isn’t permissible anymore)
Window size for 8th transmission = 5 MSS
Window size for 9th transmission = 6 MSS
Window size for 10th transmission = 7 MSS

3 3 votes

Answer: 7MSS

if we start with 2MSS as CWND after timeout for next slow start phase the answer will be 8MSS at the end of 10th transmission , as threshold limitation occurs at the end of 7th transmission. 
There is an ambiguity present in the question...here nothing is mention about the segment size after timeout....if we consider segment size=1mss then ans is 7mss ...if we consider segment size=2mss then the ans is 8mss....
So without thinking so much and look gate solution relies on what info they given and if not given then you have to follow standard procedure / algorithm as per the concept . so when it is not mentioned that what is the CWND size after timout in the question directly then try to follow the standard way of solving and it always works. one of the IIT professors told me recently .  

2 2 votes

At

t=1, =>2mss

t=2, =>4mss

t=3, =>8mss

t=4, => 10mss (after threshold additive increase  and as the mss is 2 KB we add +2(linear increase) in each step till timeout)

t=5, =>12mss (fails)

Threshold will be reduced by n/2 i.e. 12/2 = 6.

t=6, =>1mss, 

t=7 =>2mss

t=8, =>4mss

t=9, =>5mss

t=10, =>6mss.

So at the end of 10th successful transmission ,the the congestion window size will be (6+1) = 7 mss.

Answer:
Position:
Show:

Related questions

125 125 votes
13 answers 13 answers
46.6k
46.6k views
Arjun asked Sep 29, 2014
46,578 views
Consider a source computer $(S)$ transmitting a file of size $10^{6}$ bits to a destination computer $(D)$ over a network of two routers $(R_{1}\text{ and }R_{2})$ and th...
108 108 votes
14 answers 14 answers
48.5k
48.5k views
gatecse asked Sep 26, 2014
48,484 views
An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: $245.248.128.0/20$. The ISP wants to give half of this chunk of a...
67 67 votes
7 answers 7 answers
17.8k
17.8k views
go_editor asked Apr 21, 2016
17,831 views
Consider the following C code segment.int a, b, c = 0; void prtFun(void); main() { static int a = 1; /* Line 1 */ prtFun(); a += 1; prtFun(); printf(“ \n %d %d ”, a, b); ...
69 69 votes
5 answers 5 answers
23.4k
23.4k views
go_editor asked Apr 21, 2016
23,355 views
Consider the following relations $A, B$ and $C:$ $$\overset{\textbf{A}}{\begin{array}{|c|c|c|}\hline\\\textbf{Id}& \textbf{Name}& \textbf{Age} \\\hline12& \text{A...