45.8k views
2 votes
If a user types into the address bar of a web browser, what steps must the browser take before initiating a TCP connection to the web-server at Flakebook? Why are these steps taken?

a) DNS resolution, TCP handshake, HTTP request; to establish a connection and retrieve the webpage
b) TCP handshake, DNS resolution, HTTP request; to ensure secure communication
c) HTTP request, TCP handshake, DNS resolution; to prioritize content retrieval
d) DNS resolution, HTTP request, TCP handshake; for optimal performance

1 Answer

4 votes

Final answer:

The web browser first performs DNS resolution to translate the domain name into an IP address, followed by a TCP handshake to establish a connection, and only then proceeds with the HTTP request to retrieve the webpage.

Step-by-step explanation:

Before a web browser can initiate a TCP connection to a web-server such as Flakebook, it must go through a series of steps to ensure that the connection is successful and the requested content can be retrieved. The correct order of operations is, firstly, DNS resolution, where the browser queries a DNS server to convert the human-readable domain name into an IP address that the network can understand. Secondly, it performs a TCP handshake, which establishes a reliable connection between the browser and the server. Finally, once the connection is established, the browser can send an HTTP request to the server to retrieve the webpage. These steps are taken to ensure that the browser connects to the correct web-server and can successfully exchange data.

User Sufiyan Ghori
by
8.9k points