CS FundamentalsVery hardGATE CS (PYQ pattern)
A TCP client with initial sequence number 4000 completes the handshake, sends 1000 bytes of data in two segments, and then sends FIN. The server's ACK of the FIN carries an acknowledgement number of what value?
- A. 5001
- B. 5000
- C. 5002
- D. 5003
Correct answer: C. 5002
SYN consumes one number (data starts at 4001); 1000 bytes occupy 4001-5000; FIN occupies 5001, so the ACK of the FIN is 5002.
More Computer Networks questions
- 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…
- A 1 Mbps link is shared by 35 users, each active only 10% of the time (independently) and sending at 100 kbps when active. With packet…
- A 1,000,000-byte message crosses 3 store-and-forward links of 1 Mbps each (ignore propagation and queuing), split into packets with a…
- Requests first check the browser cache (20% hit, 0 ms). Misses go to a campus proxy that hits 40% of the requests it sees and replies in…
- A web page consists of a base HTML file and 10 small objects. Fetching each object with a NEW TCP connection costs 2 RTTs (handshake plus…
- A resolver starts with an empty cache and resolves iteratively, caching every referral and answer. It handles, in order, www.example.com…