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?
- A. 21 and 14
- B. 23 and 15
- C. 23 and 14
- 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
- A stop-and-wait sender has 6 frames to deliver over a 100 kbps link with one-way propagation delay 20 ms. Frames are 1000 bits and ACKs…
- A 20 Mbps link has a one-way propagation delay of 8 ms and carries 1250-byte frames; ACKs are negligibly short. The sender window is…
- An IPv4 datagram of total length 4020 bytes (20-byte header, no options) is forwarded over a link with MTU 1500 bytes and then over a link…
- A router receives an IPv4 fragment with header length field 5, total length 1196, fragment offset 294 and the More Fragments bit set…
- A sender protects the 10-bit message 1011001110 with a CRC using the generator 10011 (x^4 + x + 1) and transmits the resulting 14-bit…
- A 12-bit Hamming codeword protects 8 data bits. Positions are numbered 1 to 12 from the left, even-parity check bits sit at positions 1…