Physical layer: supports the underlying network protocol:
Where the network layer supports IP protocol:
The transport layer supports the TCP protocol, which is connection-oriented:
Application layer Support HTTP,FTP TFTP,SMTP,DHCP protocol
A complete HTTP request process:
1, enter the URL address in the browser------2, find the DNS resolution domain name to find the corresponding IP---------3, through the IP and port to establish a TCP connection with the server------4, the browser issued an HTTP request to read the file, The request packet is sent to the server as the third message of the TCP three handshake------5, the server responds to the browser request and sends the corresponding HTML file to the browser------6, releases the TCP connection------7, and the browser renders the HTML and displays the content.
Cookies and session
Cookies: A set of key-value pairs that are kept on the client, unsafe, and can be analyzed by others for information stored in cookies
Session: A set of key-value pairs on the server side, dependent on the cookie, the security value is higher than the cookie
HTTP one-time request process