Enter the URL to render the page from what happened?
simply put:
- DNS
- Initiates a TCP three-way handshake to establish a connection
- After establishing a connection request initiated http
- The server responds to the request, the browser get html source code
- Browser parses the html code and request the relevant css, js and image resources
- 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.