CS FundamentalsHardGATE CS (PYQ pattern)
An application writes 1 byte every 10 ms (at t = 5, 15, 25, ... ms) for 25 bytes. TCP uses Nagle's algorithm: a small segment is sent only if no data is unacknowledged; otherwise bytes are held until the ACK arrives (or a full MSS accumulates). The RTT is 98 ms and ACKs are immediate. How many segments are sent?
- A. 25
- B. 4
- C. 5
- D. 3
Correct answer: B. 4
The first byte goes out at once; then each ACK (98 ms later) releases all bytes buffered meanwhile: segment sizes [1, 9, 10, 5] bytes.
More Computer Networks questions
- A client uses ephemeral ports 32768 to 60999 (28,232 ports). Every connection to the same server IP and port ends with the client in…
- A path has 10 Gbps bandwidth and an RTT of 80 ms. To keep the pipe full, TCP needs a window of one bandwidth-delay product. What is the…
- Three long-lived TCP flows share an 11 Mbps bottleneck with the same loss rate and segment size, so each flow's throughput is proportional…
- An IPv4 packet has header length (IHL) 6, total length 0x0074 bytes, and carries a TCP segment whose data-offset field is 8. The IP header…
- A TCP client with initial sequence number 4000 completes the handshake, sends 1000 bytes of data in two segments, and then sends FIN. The…
- A router output port is modelled as an M/M/1 queue with arrival rate 80 packets/s and service rate 100 packets/s. What is the average time…