A page from the input URL to the page load display completed, this process has occurred:
1. Browser Completion URL address
After entering the URL, the browser will automatically check that the address is complete, such as whether to add HTTPS protocol, if found incomplete, will be automatically complete.
2. Querying the DNS for IP addresses
Each domain name corresponds to one or more IP addresses that provide the same service server, and only know the server IP address to establish a connection, so you need to resolve the domain name to an IP address through DNS.
3. After obtaining the IP address, establish the connection and carry out the handshake three times.
That is, each time the connection is established, the client and the server will have to make three conversations before the official transfer of content, the content of the three conversations is probably this:
(1) Client: I want to connect you, can I?
(2) Service side: Well, I'm ready, connect me.
(3) Client: Then I connect you.
4. Send a request to the IP address
The client sends a GET request to the server via an IP address, and the server receives the request on port 80 and responds.
5. The server receives the request on port 80, transmits the corresponding content to the browser
6. The browser parses the content and continues to search for requests within the page, and some words continue to be sent to the server via IP address
7. After accepting the content sent from the server to the browser, the browser renders the Web page and presents the content to the user
8. Disconnect the client from the server and wave four times
That is, before each disconnection, the client and the server will have to make four conversations before formally disconnecting, the content of the four conversations is probably this:
(1) The host sends a disconnect request to the server. (It's not too early, I have to go)
(2) The server sends a signal confirming receipt of the request after receiving the request. (Got It)
(3) The server sends a disconnect notification to the host (I should go too).
(4) The host disconnects after disconnecting and feedback a confirmation signal (well, OK), the server disconnects after receiving the confirmation signal.
A page from the input URL to the page load display completed, what happened in this process?