CS FundamentalsVery hardProduct company interview · GATE level
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 chosen as the smallest size that keeps the link 100% utilised. What is the minimum number of sequence-number bits needed for Go-Back-N and for Selective Repeat (receiver window equal to sender window) respectively?
- A. 6 bits and 7 bits
- B. 6 bits and 6 bits
- C. 5 bits and 6 bits
- D. 7 bits and 8 bits
Correct answer: A. 6 bits and 7 bits
Tt = 10000 bits / 20 Mbps = 0.5 ms, so a = 8/0.5 = 16 and the window for full utilisation is 1 + 2a = 33 frames. Go-Back-N needs at least W + 1 = 34 sequence numbers, so 6 bits (64). Selective Repeat needs at least 2W = 66 sequence numbers, so 7 bits (128); 6 bits give only 64. Using a window of 1 + a = 17 leads to 5 and 6 bits, and forgetting the 2W rule gives 6 and 6.
More Computer Networks questions
- 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…
- A 100 Mbps CSMA/CD network has its two farthest stations 500 m of cable apart, with two repeaters on the path between them. Signals travel…
- Two Ethernet stations A and B collide. For A this is the 1st collision of its current frame, so it picks its backoff K uniformly from {0…