Question

Consider the Go-back-N protocol with a sender window of size 4 and, for simplicity, assume infinite...

Consider the Go-back-N protocol with a sender window of size 4 and, for simplicity, assume infinite sequence numbers that never wrap. Suppose that at time T the next in-order packet that the receiver is expecting has a sequence number of K. Assume that the underlying channel may lose or corrupt packets but does not reorder them.

(a)What are the possible sets of sequence numbers inside the sender’s window at time T? Justify your answer.

(b) What are all possible values of the ACK field in all possible messages currently propagating back to the sender at time T? Justify your answer.

Homework Answers

Answer #1

1.  [K-1, K-4]

  • In Go back N protocol, the receiver window size is 1.
  • It is given that receiver expects the packet having sequence number ‘K’.
  • It means it has processed all the packets ranging from 0 to K-1.
  • It is assumed that sender has received the acknowledgement for all these packets.
  • So, outstanding packets in sender’s window waiting for the acknowledgement starts from K.
  • Sender window size = 4.
  • Therefore, last packet in sender’s window will have sequence number K+4-1.

2. [K, K-4]

  • Acknowledgement number is the next expected sequence number by the receiver.
  • Receiver expects the packet having sequence number ‘K’ at time ‘t’.
  • It means it has received the packets ranging from 0 to K-1 whose acknowledgements are are on the way.
  • For the (K-1)th packet, acknowledgement number would be ‘K’.
  • For the (K-2)th packet, acknowledgement number would be ‘K-1’ and so on.

Now,

  • At any time, maximum number of outstanding packets can be ‘4’.
  • This is because sender’s window size is ‘4’.
  • Therefore, the possible values of acknowledgement number ranges from [K-n+1, ……, K-3, K-2, K-1, K] (total 4 values)
  • Here, we have assumed that the acknowledgement for all the packets are sent independently.
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Consider the SR protocol. a. Draw the FSM diagram for the SR protocol assuming infinitely growing...
Consider the SR protocol. a. Draw the FSM diagram for the SR protocol assuming infinitely growing sequence numbers. Pay special attention to border cases (packet corruption, ACK loss, etc.) b. The alternating bit protocol (“RDT 3.0”) may not operate correctly when the channel can reorder packets. Does the SR protocol with infinite sequence numbers work correctly in the presence of packet reordering? Justify your answer. c. While in the GBN protocol the sender starts with packet sequence 1, the SR...
Can someone please explain this to me? Suppose that the Go-Back-N protocol with ? = 3...
Can someone please explain this to me? Suppose that the Go-Back-N protocol with ? = 3 and the sending window of size 7 is used to send packets. Let ?f = 31 modulo 2m, ?n = 35 modulo 2m, and ?n= 33 modulo 2m. What are the sequence numbers of data packets in transit? What are the acknowledgement numbers of ACK packets in transmit? If the sender’s process sends two more data packets to the sender’s transport layer and one...
Consider a scenario where two hosts use a sliding window protocol, either Go-Back-N or Selective Repeat,...
Consider a scenario where two hosts use a sliding window protocol, either Go-Back-N or Selective Repeat, to exchange data packets. Assume that the RTT is 30 milliseconds and the sending rate is R = 1Gbps, and the size of every packet is L = 2,000 bytes, including both header fields and data. (a). How big would the window size have to be for the channel utilization to be greater than 98%? (b). Assume that we use the window size calculated...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT