CS FundamentalsHardProduct-company interview pattern
A sender transmits bytes 1–4000 as four 1000-byte TCP segments. Segment 2 (bytes 1001–2000) is lost; segments 1, 3 and 4 arrive in order. Using cumulative acknowledgements (ACK = next byte expected), which ACK numbers does the receiver send?
- A. 1001, 3001, 4001
- B. 1000, 1000, 1000
- C. 1001, 2001, 4001
- D. 1001, 1001, 1001
Correct answer: D. 1001, 1001, 1001
After segment 1 the receiver expects byte 1001. Segments 3 and 4 are out of order, so each triggers a duplicate ACK for 1001. Two duplicates after the original ACK are what fast retransmit counts. 1000 forgets that the ACK names the NEXT byte expected.
More Computer Networks questions
- A 1 MB file (take 1 MB = 10⁶ bytes) is sent in one burst over an 8 Mbps link with a one-way propagation delay of 20 ms. How long after the…
- An organisation owns 172.20.0.0/16 and needs equal-sized subnets, each with at least 1000 usable host addresses. What is the maximum…
- An access-control list needs the wildcard mask that corresponds to the subnet mask 255.255.248.0. What is it?
- In distance-vector routing, which technique stops a router from advertising a route back out of the interface through which it learned…
- An ISP wants to advertise the eight networks 192.168.4.0/24 through 192.168.11.0/24 with a single CIDR prefix. What is the smallest single…
- You type https://shop.example.com into a browser that has nothing cached. In which order do these happen? 1. TLS handshake 2. DNS…