edited by
2,183 views
3 votes
3 votes

Consider a selective repeat sliding window protocol that uses frame size of $2$ kb. The capacity of the link is $2$ Mbps and whose one-way latency is of $100$ msec. To achieve a link utilization of $50$%. What is the minimum number of bits required to represent the sequence number field is__________.

edited by

2 Answers

Best answer
2 votes
2 votes

Time for ACK to reach back for a frame  $=TT_{frame} + PD + PD + TT_{ack} \\= (2 \times 10^6 \times \frac{1}{2 \times 10^6} + 100 + 100 + 0) ms \\=201 ms$. 

Amount of data that could be transferred in $201 ms = 201 \times 10^{-3} \times 2Mbps = 402kb  = 201 $packets. 

So, for at least 50% utilization the number of frames to be sent $= \left \lfloor \frac{201}{2} \right \rfloor = 101$ which requires 7 bits to represent.

Now, the window size in selective repeat protocol is half the sequence number space (given in any text). So, we need one more bit for sequence number field making it at least 8. 

selected by
0 votes
0 votes

in one rtt it can sen total 400*103   bits
frame size given 2*103
so no of frames in window 400/2=200 
200 frames are present in window so we need 8 bits to represent it.

Related questions

6 votes
6 votes
2 answers
3
Akriti sood asked Jan 3, 2017
4,365 views
.With the SR protocol, it is possible for the sender to receive an ACK for a packet that falls outside of its current window.??pleasee explain with example