CS FundamentalsVery hardProduct company interview · GATE level

A sender must deliver frames 1 to 12. Every 6th frame transmission (counting retransmissions too) is lost; ACKs are never lost. With Go-Back-N and window size 4, after a frame is lost the sender still transmits the following frames of its window (up to 3 more, if they exist) before it times out and goes back to the lost frame. With Selective Repeat only the lost frame is resent. How many frame transmissions are needed in total under Go-Back-N and under Selective Repeat?

  1. A. 21 and 14
  2. B. 23 and 15
  3. C. 23 and 14
  4. D. 19 and 15

Correct answer: C. 23 and 14

Go-Back-N: transmissions 1-5 carry frames 1-5; the 6th (frame 6) is lost, then frames 7, 8, 9 are sent uselessly (transmissions 7-9). Go back: 6, 7, then frame 8 is the 12th transmission and is lost; 9, 10, 11 follow (13-15). Go back: 8, 9, then frame 10 is the 18th and is lost; 11, 12 follow (19, 20). Go back: 10, 11, 12 (21-23). Total 23. Selective Repeat: 12 frames plus one retransmission per loss; with 14 transmissions two (the 6th and 12th) are lost and 12 succeed, so 14. Counting 15 assumes a third loss that is never needed.

More Computer Networks questions

Exams that ask this topic