IP: Network layer protocol;
TCP and UDP: Transport layer protocol;
HTTP: Application layer protocol;
SOCKET:TCP/IP the network's API.
TCP/IP stands for Transmission Control Protocol/Internet Protocol, which refers to a series of protocols.
TCP and UDP use the IP protocol to transfer packets from one network to another network. Think of IP as a highway that allows other protocols to travel and find the exits of other computers. TCP and UDP are "trucks" on highways, and the goods they carry are protocols such as HTTP, File Transfer Protocol FTP, and so on.
TCP and UDP are transport layer protocols that are used, such as Ftp,http and SMTP. Although both TCP and UDP are used to transmit other protocols, they have a significant difference: TCP provides guaranteed data transfer, and UDP does not. This means that TCP has a special mechanism to ensure that data is safe from one endpoint to another without error, and UDP does not provide any such assurance.
HTTP (Hypertext Transfer Protocol) is a protocol that leverages TCP to transfer information between two computers, typically Web servers and clients. The client initiates an HTTP request to the Web server using a Web browser, and the Web server sends the requested information to the client.
Remember, the IP protocol is required to connect to the network; TCP is a mechanism that allows us to securely transmit data, and HTTP, which uses the TCP protocol to transmit data, is a special protocol used by Web servers and clients.
The Socket interface is a TCP/IP network Api,socket interface that defines many functions or routines for developing applications on TCP/IP networks.
TCP, UDP, HTTP, SOCKET