CS FundamentalsHardGATE CS · Product company CS fundamentals
A remote-shell client writes one keystroke (1 byte) at a time to a TCP socket with Nagle's algorithm enabled; the RTT is 50 ms and the user types 40 keys per second. What does Nagle's algorithm do?
- A. Sends every keystroke immediately in its own segment, because the data is urgent
- B. Sends the first byte at once, then coalesces later keystrokes until the outstanding data is ACKed
- C. Holds all bytes until a full MSS has accumulated
- D. Holds all bytes until the 200 ms delayed-ACK timer fires
Correct answer: B. Sends the first byte at once, then coalesces later keystrokes until the outstanding data is ACKed
Nagle allows only one unacknowledged small segment in flight; bytes typed during the 50 ms wait are coalesced, so about 2 keys go in each segment here. It never waits for a full MSS when no data is outstanding, which is why it adds little delay for interactive traffic unless it meets delayed ACKs.
More Computer Networks questions
- Which pair correctly matches the fix with the side that causes silly window syndrome? (i) receiving application reads data one byte at a…
- How many of the following statements about UDP are correct? 1. The UDP checksum covers a pseudo-header containing the source and…
- A sender must deliver frames 1–8 with a window of 4. Only the first transmission of frame 3 is lost; nothing else is lost, and the sender…
- A 2 Mbps link uses Selective Repeat with a window of 10 frames. The propagation delay is 8 times the frame transmission time and ACKs are…
- A block code has minimum Hamming distance 5. Which statement is correct?
- Compute the 16-bit Internet checksum (ones' complement of the ones' complement sum) of the words 0xABCD, 0xF00F, 0x1234 and 0x8E91.