• retagged by
4,232 views
6 6 votes
A sliding window protocol uses Selective Repeat. The sender sliding window size is $32$. After receiving the first $100$ frames, the acknowledgement number that is piggybacked by the receiver along with data frame is _______.

3 Answers

Best answer
4 4 votes

This screenshot is taken from Kurose's book which shows that if packet0 is receuived then ack0 is sent not Ack1, hence 35 should be correct answer!

But if we refer Forozuan then answer should be 36: following screenshot is from Forozuan

In my opinion 35 is correct answer, I have noticed in one more case when Forozuan's book gave different concept than Kurose's book. Kurose's book is more relible!

• selected by
5 5 votes

In Selective Repeat, Sender and Receiver both have a window size of n. But to avoid sending a duplicate packet, or sending the wrong packet that has the right number, Sender and Receiver use different sequencing.

Given, n = 32.

So, Sender numbers from 0 to 31.

Receiver numbers from 32 to 63.

 

What sender sees as 0th frame, receiver sees as 32nd.

What sender sees as 1st frame, receiver sees as 33rd...

One might say that receiver sees the frame numbers in "Excess 32"

 

So, When sender sends 100th Frame, it got sent with number 99 (because counting starts from 0). Receiver saw it as 131. (Let's not perform modulo right now for simplicity)

So, now receiver expects 132nd frame. => 132 mod 32 => 4th frame. But hold on... Receiver sees it as "Excess 32", remember? This means the receiver expects 4 + 32 = 36th frame.


PS: EDIT:

As per some authors, in SR, Receiver won't send the ACK of expected frame, rather it'll send the ACK of the frame successfully received.

So, it'll send ACK of 131th frame. So, 131 mod 32 => 3rd frame. Do Excess 32 => 35th frame.

4 4 votes
We have 0-63 sequence numbers

With that 64 frames can be numbered

Then 0 for 65th frame

1 for 66th frame

35 for 100th frame

Ack35 will be piggybacked
Answer:
Position:
Show:

Related questions

8 8 votes
2 2 answers
2.2k
2.2k views
Bikram asked Nov 26, 2016
2,224 views
Consider a sliding window protocol that uses Selective Repeat, the sender sliding window size is $32$. The sequence number of the frame to be sent after sending $200$ fra...
1 1 vote
1 answers 1 answer
964
964 views
Bikram asked Nov 26, 2016
964 views
A selective repeat ARQ uses a window size of $26$ to send the data. The number of bits needed to define the sequence number is _____.
3 3 votes
2 answers 2 answers
1.8k
1.8k views
Bikram asked Nov 26, 2016
1,808 views
A message bit stream is $101101101$, the bit pattern will be if message is transmitted with bit stuffing and a flag bit of $0111$___________
1 1 vote
1 1 answer
989
989 views
Bikram asked Nov 26, 2016
989 views
A LAN operates Ethernet with CSMA/CD mechanism runs at a transmission rate of 8 Mbps and one way signal propagation time is 25 microsecond, the minimum transmitted frame...