Enter the url from a page to load content, this process has gone through what

First, when the browser receives url, will see if there is a local cache (browser cache - Router Cache - Cache system), there is a direct display

DNS name resolution is not carried out, the domain names into IP addresses, to access the appropriate server by ip address,

Browser to access the server's time, will carry out a tcp connection, the occurrence of three-way handshake

Handshake succeeds, the browser sends http request to the server, request data

Server receives the request, the process returns the corresponding data to the browser

Browser receives the response from the server,

Read page content, browser rendering , parse html source code

Dom tree is generated, analytic style css, js interaction

And that has gone through the process

 

Meaning that roughly three-way handshake

First period of time the client sends packets to the server

Secondary server receives the message, treatment, returned to the client a message

Three client receives the packet, processing, sending messages, both on the establishment of the basic contact

 

Guess you like

Origin www.cnblogs.com/skydragonli/p/11634874.html