1,249 views
5 votes
5 votes

Assume a new TCP connection starts by sending 1 segment and then increases it congestion windows by 1 segment each time it receives an acknowledgement i,e after 1RTT congestion window is 2 segments in slowstart.Assume connection never leaves slow start.Find the number of RTT's it takes to send N segments

Given ans is Log2(N+1) 

1 Answer

Best answer
10 votes
10 votes
$$\begin{align*} &\text{They are saying packets instead of MSS } \\ &\text{So, According to the question : } \\ \\ &\begin{matrix} &\text{1st RTT} &\text{packet sent}&=1=2^0 \\ \\ &\text{2nd RTT} &\text{packet sent}&=2=2^1 \\ \\ &\text{3rd RTT} &\text{packet sent}&=4=2^2 \\ \\ &\text{4th RTT} &\text{packet sent}&=8=2^3 \\ \\ &\text{5th RTT} &\text{packet sent}&=16=2^4 \\ \\ &\text{6th RTT} &\text{packet sent}&=32=2^5 \\ \\ &---&---&---\\ \\ &\text{kth RTT} &\text{packet sent}&={\color{red}{\bf 2^{k-1}}} \\ \\ \hline\\ &\text{at the end of kth RTT}&\text{Total packet sent} &= \sum_{x=0}^{k-1}\left [ {\color{red}{\bf 2^{x}}} \right ] \end{matrix} \\ \\ &\text{Total packet sent} = \sum_{x=0}^{k-1}\left [ {\color{red}{\bf 2^{x}}} \right ] = {\color{red}{\bf 2^k - 1}} \\ & \Rightarrow N = {\color{red}{\bf 2^k - 1}} \\ &\Rightarrow k = {\color{red}{\bf \log_2\left [ N+1 \right ]}} \\ \end{align*}$$
selected by

Related questions

6 votes
6 votes
2 answers
2
Aegon asked Sep 22, 2016
5,266 views
In a TCP connection, the value of congestion window Cnwd = 2500 and the value of receiver window Rwnd = 4500.The host has sent 2000 bytes which has not been acknowledge. ...
3 votes
3 votes
1 answer
3
rahul sharma 5 asked Aug 13, 2017
1,104 views
R.T.T=10 microsec.M.S.S=100 BytesSlow start protocol used to send data.Sender needs to send data till it completes sending window size 8MSS.Find:-a. Total Time takenb....