CS FundamentalsVery hardGATE CS (PYQ pattern)
A TCP sender has LastByteSent = 7000 and LastByteAcked = 5000, cwnd = 4000 bytes, and the receiver's advertised window is 3000 bytes. How many more bytes can it send right now?
- A. 2000
- B. 3000
- C. 4000
- D. 1000
Correct answer: D. 1000
The usable window is min(cwnd, rwnd) = 3000 bytes. 2000 bytes (7000 - 5000) are already in flight, so 3000 - 2000 = 1000 more may be sent.
More Computer Networks questions
- A TCP receiver has a 65,536-byte receive buffer. It has received data up to byte 150,000 (LastByteRcvd) and the application has read up to…
- A sender uses path MTU discovery: it sends packets with the DF bit set, starting at 1500 bytes. The links along the path have MTUs 1500…
- Hosts A (subnet 1) and B, C (subnet 2) are joined by router R; all ARP caches start empty, and a host that receives an ARP request caches…
- In an RSA system p = 17, q = 11 and the public exponent is e = 7. What is the ciphertext for the plaintext m = 50, and what is the private…
- Alice and Bob use Diffie-Hellman with p = 23 and g = 5. Alice's secret is a = 6 and Bob's is b = 15. What is the shared secret key?
- 1000 bytes of plaintext are encrypted with AES in CBC mode (16-byte blocks) using PKCS#7 padding, and a random 16-byte IV is sent in front…