When things happen after the user enters an address in the browser, the knockout round

Network has become everyone's life embellishment unconsciously. In the online world, people can shop, query information, query data. Stay at home, thousands of miles glance tone.

 

    Today I will give you popularize, we open the search engine (Baidu), typing in the text box and click the Search, this process has gone through in the end what ~ ~ ~ do not know the content for all readers, after reading I believe we must understand. (Emmm, readers do not understand computers read this article ticket items should still be a little dizzy right ......)

 

    If you want to learn more programming and Internet articles, you can see the very bottom of the article Oh! ! ! I will tell you in detail the way. Then begin to explain ~ ~ ~

 

 

1, the user enters the website domain name in the browser address bar

 

2, the browser automatically to get the domain address of the DNS request to the DNS server ip corresponding to the input user query

 

3, after the browser to get the ip address, the ip address + port number (HTTP default 80) and server to establish a connection (via three-way handshake)

 

4, three-way handshake after the connection is successfully established

 

5, the browser url address of the user input through the HTTP protocol request packet packaged and sent to the server via Socket (ip server address and port number)

 

6, when the server receives the HTTP client browser request message sent from the time, according to the HTTP protocol request packet parsed

 

7, then get the server request information (e.g., request path url) request packet, and accordingly the service logic operation

 

8, when the service logic processing is completed, the data server to be sent to the client in accordance with HTTP protocol response message packaging

 

9, then the server through the Socket (ip client address + port number) the response packet data is sent to the client browser

 

10, the time when the browser receives the response server sends its own data packets, according to the HTTP protocol browser content packets parsed

 

11, the browser to get the response data packet begins parsing rendering html, css, JavaScript execution

 

12, if the parsing process (top to bottom), the label found in the outer chain (link, css, img)

 

13, the browser will automatically initiate a new request (or by Socket) points to the path of address labels.

 

___ ___ completed to explain it over here, it is not it suddenly felt understood why. If you like you can continue to read down a few.

————————————————

Micro-channel group welcomed the exchange

php web mysql Linux other

Featured will be the main group of one to two daily technical articles published in the micro-channel group, exchange available to you to explore and learn. Taking into account intra-group discussions will lead to the top of the message is, every day so I'll share content on GitHub, convenient after coming online members and members of the search history, without the need to turn chat history.

Links: micro-channel technology to share records 

https://github.com/gtcarry888/WeChat-Sharing-record

Links: applets related source code 

https://github.com/gtcarry888/Source-code

 

Principles: the prohibition of intra-group contempt, irony and so any beginner, or direct kick groups, amateur prohibit any advertising.

 

The main group Wechat: xzzs730 (mark what he wanted)

For additional questions, you can contact the above-mentioned micro letter or message to [email protected] mailbox.

 

Like you can focus on my public No. Oh, dry goods continued to share ~ ~ ~

 

Published 53 original articles · won praise 61 · views 50000 +

Guess you like

Origin blog.csdn.net/qq_40884473/article/details/103280917