CS FundamentalsModerateProduct-company interview pattern
You type https://shop.example.com into a browser that has nothing cached. In which order do these happen? 1. TLS handshake 2. DNS resolution 3. HTTP GET request 4. TCP three-way handshake
- A. 2, 1, 4, 3
- B. 4, 2, 1, 3
- C. 2, 4, 3, 1
- D. 2, 4, 1, 3
Correct answer: D. 2, 4, 1, 3
The browser first needs the IP address (DNS), then a TCP connection, then TLS on top of TCP, and only then sends the HTTP request inside the encrypted channel. TLS cannot start before TCP is established, and the GET must be encrypted, so it comes last.
More Computer Networks questions
- What is the shortest valid form of the IPv6 address 2001:0db8:0000:0000:0000:ff00:0042:8329?
- Starting from 172.16.32.0/23, subnets are allocated largest first, each at the next aligned boundary, for LANs needing 200, 100 and 50…
- 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…
- 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…