Preliminary knowledge: The TCP/IP reference model is divided into four tiers: application layer, Transport layer, network layer and interface layer.
Application layer: To provide users with a variety of services, such as the HTTP we use to browse the Web, SMTP to send and receive mail, log on to the remote host SSH.
Transport Layer: Provides end-to-end transport services. (Port-to-port) more specifically, provides a process-to-process transport service.
Network layer: As with the transport layer, it can be summed up to provide end-to-end transport services. More specifically, the network layer provides host-to-host transport services.
Network interface layer (link layer): Provides a transport service for a directly connected device, converts a data frame into a bitstream, and converts the bitstream into a voltage high and low signal of a physical circuit.
1. First look through the DNS server to find the IP address that corresponds to the input URL.
2. Encapsulate the request information by the HTTP protocol and send it to the corresponding server based on the IP address. There is a three-time handshake connection for TCP. (If the input is not a full domain name such as Baidu. Instead of www.baidu.com) the server sends it to the browser to tell it to access its full domain name.
3. The server handles requests from the browser.
4. The server returns the response information.
5. The browser accepts the returned information. Parsing information has html,css,js, and other documents.
6. Render the display page by translating these files.
Enter the URL to press ENTER after the process