http protocol belongs to the application layer. The http protocol specifies what messages a client may send to the server and what responses it may receive. The application layer is also called an application entity, which consists of several specific application service elements and one or more common application service elements.
What layer does http belong to?
http is the transmission protocol, and the HTTP protocol belongs to the application layer. An application that communicates with other computers, which corresponds to the communication service of the application. [Recommended tutorial: HTTP video tutorial]
The communication protocol adopts a 4-layer hierarchical structure. Each layer calls the network provided by the next layer to complete its own needs. . These 4 layers are:
1. Application layer: The layer for communication between applications, such as Simple Email Transfer (SMTP), File Transfer Protocol (FTP), Network Remote Access Protocol (Telnet), Hypertext Transport Protocol (HTTP), Extensible Communication and Presentation Protocol (XMPP), etc.
2. Transport layer: In this layer, it provides data transmission services between nodes, such as Transmission Control Protocol (TCP), User Datagram Protocol (UDP), etc. TCP and UDP are added to the data packet Transmit data and pass it to the next layer, which is responsible for transmitting the data and ensuring that the data has been delivered and received.
3. Interconnection network layer: Responsible for providing basic data packet transmission functions so that each data packet can reach the destination host (but does not check whether it is received correctly), such as Internet Protocol (IP).
4. Network interface layer: Management of actual network media, defining how to use actual networks (such as Ethernet, SerialLine, etc.) to transmit data.
The above is the detailed content of Which layer does the http protocol belong to?. For more information, please follow other related articles on the PHP Chinese website!