Brief description: a url from the input press the Enter key, the page displayed, have experienced what?

First, enter the URL after the press Enter, this time the DNS server to resolve the current URL by URL ip;

To really look at IPthe future, this time the browser will webinitiate a server tcpconnection request ( three-way handshake ):

 

First : the establishment of a link, the client sends a synpacket to the server, and enters SYN_SENT(transmission control protocol) state, waiting for the server to confirm;

 

Second : the server receives a synpacket, must confirm the customer syn, while themselves transmit a ackpacket, i.e. syn + ackthe package, this time into the server SYN_RECV(after passive open end of the service, the client receives synand transmits the ackstate) state;

 

Third : the client receives a server syn + ackpacket, send a confirmation packet to the server ack, this package has been sent, the client and server into the ESTABLISHED( tcpsuccessful connection) state, complete the three-way handshake;

 

After the end of the three-way handshake, the client and server to establish a good connection, this time the tcpagreement is disconnected;

Began a visit to the default under the current server index.html, and call the access resource file, display the corresponding content

Guess you like

Origin www.cnblogs.com/piaobodewu/p/11229353.html