8,502 views
1 votes
1 votes

If m number of bits are used for representing a sequence number in selective-repeat ARQ,then the maximum size of sliding window is 2m-1 .Justify this statement using a boundary case example.What will happen if the size of sliding window exceeds 2m-1 ?

3 Answers

Best answer
4 votes
4 votes

If  same sequence no is used but window size is increased , then we fail to find duplication of data. so we have to increase sequence no also such that it satisfy 

   sequence no >= sender window size + receiver window size 

in order to detect duplication of data 

selected by
1 votes
1 votes

In SR protocol size of sender window and reciever window is same.

let their size be x

so sequence number >= sender window size + reciever window size

2m  >= x + x

2m >= 2x

x <= 2m-1

hence proved

0 votes
0 votes
In case of selective repeat protocol the window size may be calculated as follows. Assume that the size of both the sender's and the receiver's window is w. So initially both of them contain the values 0 to (w-1). Consider that sender's data link layer transmits all the w frames, the receiver's data link layer receives them correctly and sends acknowledgements for each of them. However, all the acknowledgemnets are lost and the sender does not advance it's window. The receiver window at this point contains the values w to (2w-1). To avoid overlap when the sender's data link layer retransmits, we must have the sum of these two windows less than sequence number space. Hence, we get the condition
$Max Window Size = Sequence Number Space/2$

Related questions

1 votes
1 votes
0 answers
3
Sambhrant Maurya asked Sep 23, 2018
1,219 views
If the sender window size is 128 using selective repeat ARQ, then the sequence number of the frame to be sent after sending 400 frames is __________
0 votes
0 votes
1 answer
4
radha gogia asked Apr 23, 2018
990 views
A ) 255.255.(28-M -1) * 2M .0B) 255.255.(28-M )* 2M .0Please explain precisely .