Enter the URL to render the page from what happened?

Enter the URL to render the page from what happened? 

simply put:

  1. DNS
  2. Initiates a TCP three-way handshake to establish a connection
  3. After establishing a connection request initiated http
  4. The server responds to the request, the browser get html source code
  5. Browser parses the html code and request the relevant css, js and image resources
  6. Browser page rendering

Then on a more intuitive to FIG.

Well, since the hierarchy, TCP layer, why is to establish a TCP connection in HTTP it?

Since http is not a connection-oriented protocol, in the application layer, it generates a http request only information and data, but can not be directly transmitted, it becomes necessary to establish a connection tcp. tcp before http request information, which will be divided, and marked with indicia on each packet, and then continue to the network layer.

Guess you like

Origin blog.csdn.net/qq_38765789/article/details/93480771