CS FundamentalsVery hardGATE CS (PYQ pattern)
A client (initial sequence number 1000) connects to a server (initial sequence number 5000). After the handshake the client sends 200 bytes, the server sends 300 bytes, then the client sends FIN, and the server answers with one segment carrying both its ACK and its own FIN. Finally the client acknowledges the server's FIN. What are the acknowledgement number in the server's FIN segment and the sequence and acknowledgement numbers of the client's final ACK?
- A. 1201; seq 1201, ack 5301
- B. 1202; seq 1201, ack 5302
- C. 1202; seq 1202, ack 5302
- D. 1202; seq 1202, ack 5301
Correct answer: C. 1202; seq 1202, ack 5302
The client's SYN uses 1000, its data 1001-1200, and its FIN 1201, so the server acknowledges 1202. The server's data is 5001-5300 and its FIN uses 5301. The client's final ACK carries seq 1202 (its next unused number; the FIN consumed 1201) and ack 5302. Forgetting that SYN and FIN each consume a number gives the 1201/5301 answers.
More Computer Networks questions
- Which of the following statements about the network layer are correct? I. An ARP reply is sent as a unicast to the requester. II. ICMP…
- Which of the following statements about application protocols are correct? I. Most DNS queries are carried in UDP datagrams. II. HTTP is…
- A 100 MB (10^8 bytes) file is sent over a 100 Mbps path with an RTT of 20 ms. The receiver's window is fixed at 64 KB (65,536 bytes), the…
- A 1500-byte packet crosses 4 store-and-forward links with rates 100, 10, 100 and 10 Mbps and propagation delays 1, 5, 1 and 5 ms (no…
- 10.0.0.0/22 is divided into /26 subnets. A firewall rule must cover the address range 10.0.1.50 to 10.0.2.10 inclusive using whole /26…
- A /16 network is split into sixteen /20 subnets. One of those /20s is split further into /24 subnets, and one of those /24s is split into…