CS FundamentalsHardProduct-company interview pattern
A web server listens on TCP port 443. Three browsers on the same client machine connect to it at the same time. How does the server’s operating system tell the three connections apart?
- A. By the 4-tuple (source IP, source port, destination IP, destination port); each browser connection uses a different source port
- B. The server opens a new listening port for each connection
- C. By the client’s MAC address in each frame
- D. It cannot; only one connection per client IP is allowed
Correct answer: A. By the 4-tuple (source IP, source port, destination IP, destination port); each browser connection uses a different source port
A TCP connection is identified by its 4-tuple. All three share the server IP and port 443 and the client IP, but the client OS gives each an ephemeral source port. The listening port does not change, and MAC addresses do not survive routers.
More Computer Networks questions
- A TCP sender has cwnd = 12 KB. The receiver last advertised a window of 8 KB, and 3 KB of data is already sent but not yet acknowledged…
- For the host 200.1.1.100/28, what are the first and last usable host addresses of its subnet?
- A TCP Reno sender starts transmission round 1 with cwnd = 1 MSS and ssthresh = 32 MSS. In slow start cwnd doubles every round but is never…
- A TCP sender must deliver a file of exactly 100 segments. It starts with cwnd = 1 segment and ssthresh = 8 segments; cwnd doubles per…
- A TCP sender has EstimatedRTT = 100 ms and DevRTT = 10 ms. Two new RTT samples arrive: 140 ms, then 80 ms. For each sample it first…
- A client opens a TCP connection with initial sequence number 5000; the server chooses 9000. After the three-way handshake the client sends…