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?

  1. A. By the 4-tuple (source IP, source port, destination IP, destination port); each browser connection uses a different source port
  2. B. The server opens a new listening port for each connection
  3. C. By the client’s MAC address in each frame
  4. 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

Exams that ask this topic