In the browser address bar to open the Baidu home page www.baidu.com in the end what happened during this period?

Just accidentally see such a face questions, feel a bit mean, I want to talk about my views from the perspective of five-layer network model.

1. First sent through the domain name server DNS Domain Name System domain name resolution request to obtain the IP address of Baidu 39.156.69.79;
2. Baidu system the MAC address IP address mapping by ARP Address Resolution Protocol;
3. Baidu by the server TCP three-way handshake segment transmission request connection and establish a connection;
4. application layer into the transport layer was formed in the HTTP request;
5 plus transport layer comprising a source port, and destination port field of the TCP header in the request message is formed in front of TCP packets after the segments into the network layer;
6. network layer in front of the TCP segment plus the data link layer comprising first portions formed into the IP datagram and the IP address of the IP address Baidu;
7. data link tail header and frame check sequence FCS-containing layer together with the IP datagram comprising a destination MAC address and source MAC address is encapsulated into the MAC frame back into the physical layer;
8. conversion frame at the physical layer and then the copper wire is bitstream fiber optic cables and other physical medium transmission server to Beijing Baidu form of electrical signals;
9. Baidu server after receiving the onion-like layers of the data unpack reverse HTTP request and upload To the application layer and the client sends an HTTP response message;
9. After the client receives an HTTP response message from the home page of the browser parses the HTML code Baidu and rendering the entire page;
10. The system of four wave via TCP TCP connection release .

Guess you like

Origin www.cnblogs.com/wangyi0419/p/11908883.html