A very classic problem, limited ability, can only be summarized briefly

  • 1. DNS resolution
  • 2, TCP connection, TCP three handshake,
  • 3. Send the HTTP request
  • 4. The server returns a response packet based on the request
  • 5. The client renders the page based on returned data
  • 6, TCP four times waved, disconnected

DNS resolution: Translates domain names into IP addresses. Search for caches in the routers on the client. If no, search for TCP three-way handshake on each DNS server: Synchronizes the confirmation numbers and serial numbers of the client and server, and exchanges window sizes. The first handshake, initiated by the client, tells the server that the request is about to be sent b. The second handshake, initiated by the server, tells the client that it is ready to receive request C. The third handshake, initiated by the client, tells the server to prepare to send a request to render page A. Build a DOM tree based on HTML b. Build a CSS rule tree based on CSS C. Construct a rendering tree according to DOM tree and CSS rule tree d. calculate the information of each node according to the rendering tree e. Render the page according to the information of each node TCP four wave a. The first wave, initiated by the client, tells the server that the request has been sent and the server is ready to shut down b. The second wave, initiated by the server, tells the client that the request has been received and is ready to close C. The third wave, initiated by the server, informs the client that the response packet has been sent and asks the client to prepare to shut down d. The fourth wave is initiated by the client to inform the server that the response packet has been received. The server shuts down immediately after receiving the message from the client. The client waits for a period of time and shuts down immediately


Welcome everyone to point out and correct!