CS FundamentalsHardGATE CS (PYQ pattern)
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 byte 120,000 (LastByteRead). What window does it advertise?
- A. 35536
- B. 30000
- C. 65536
- D. 95536
Correct answer: A. 35536
RcvWindow = RcvBuffer - (LastByteRcvd - LastByteRead) = 65,536 - 30,000 = 35,536 bytes.
More Computer Networks questions
- 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…
- IPsec ESP in tunnel mode with AES-CBC protects an inner IP packet of 1400 bytes. Overheads: new outer IP header 20 bytes, ESP header 8…