What happens when the input www.baidu.com

(1) First, the browser will first determine whether the URL URL standard, if it does not conform to the search engine.


(2) If it is correct URL, the browser will first retrieve the host HOST table, if the IP domain exists, go directly to the access; if not, you need to go to DNS resolution, resolution process is: the local server --- > root server ----> com server ---> Baidu server; return after finding, first return to the local server, and then returned to the user agent.


(3) now has an IP address baidu.com, but we know that communication is the need to establish both the IP and MAC address, then we certainly can not get the MAC address of baidu.com, this time you need to get with the ARP protocol gateway MAC address, and then send the request to the gateway, and then sent to the gateway server baidu.com.


(4) three-way handshake: the client will send a random number, and the server receives, to the number by one, and then again generate a random number himself, then add an ACK reply back to the client, after the end of the receipt, the ACK is also a reply, and may transmit data simultaneously. This is the TCP three-way handshake

 


(5) to find the appropriate repository, find the corresponding page and html, js, css parsing, rendering, build DOM tree, rendering, layout, drawing.


(6) Disconnect four wave

 

Guess you like

Origin www.cnblogs.com/muzishijie/p/11210556.html