Redirected
edited by
6,273 views
17 votes
17 votes

During a TCP connection, the size of the window advertised by the receiver is 20 KB. The last byte sent by the sender is 20480 and the last byte acknowledged by the receiver is 8384. If the current congestion window is 18 KB, then the current size of the sender's window is _______ (in KB).

edited by

2 Answers

Best answer
17 votes
17 votes

in TCP congestion window changes dynamically depending on congestion window , advertised window by receiver , amount data unacknowledged .

Reason :

window size : amount of data we can transmit before acknowledgement received.

in sliding window protocol , until acknowledgment received,  copy of transmitted data kept in buffer. 

window size= min (congestion window , advertised window) = 18 KB

size of unacknowledged  data =20480-8384 =12096 bytes = 11.8 KB

as this 11.8 KB is not acknowledged till now, this data is present in buffer , so (effective window size ) the amount of data that is possible to transmit before acknowledgement received is 

current active window size = 18 KB - 11.8 KB = 6.2 KB 

selected by
0 votes
0 votes

The Actual window size from the client side will not calculate the rwnd size on its own, it will just take the minimum of what is advertised to it, whatever data is there in the recvbuffer is not it’s concern. The min of (18,20) is 18, so 18 is the answer.

Related questions

7 votes
7 votes
2 answers
3
rahul sharma 5 asked Aug 16, 2017
1,654 views
Consider TCP congestion control. Assuming RTT as 4 seconds and segment size as 3KB, if bandwidth is 500kbps, what is the smallest window size for which there is no stalli...
2 votes
2 votes
3 answers
4
Purple asked Jan 18, 2017
7,650 views
In optimal window size for sender or for finding the maximum window size of sender N, do we consider N=1+2a or N=a.Where a=(propagation time/Transmission time)?For max ef...