CS FundamentalsHardGATE CS · Product-company placement
A client's SYN carries sequence number 5000. After the handshake it sends three data segments of 200, 300 and 100 bytes and then a FIN, all received in order. What acknowledgement number does the server send to acknowledge the FIN?
- A. 5601
- B. 602
- C. 5602
- D. 5600
Correct answer: C. 5602
The SYN consumes 5000, data occupies 5001–5600, and the FIN takes 5601, so ACK = 5602. 5601 forgets that a FIN consumes a sequence number, 602 is the relative ACK a capture tool shows, and 5600 also forgets the SYN.
More Computer Networks questions
- A TCP connection runs over a 1 Gbps path with an RTT of 80 ms. What is the smallest window-scale shift count S (window = 65,535 × 2^S…
- A production server shows thousands of TCP sockets stuck in CLOSEWAIT that never go away. What is the most likely cause?
- A TCP server listens on port 80. Three clients connect and the server accept()s all of them. How many TCP sockets does the server process…
- Karn's algorithm is applied to TCP's RTT estimation. Which statement is correct?
- The data 1001101110 is protected by a CRC with generator x⁴ + x + 1. What check bits are appended to it?
- A block code must correct every pattern of up to 2 bit errors and, at the same time, detect (without miscorrecting) every pattern of up to…