TCP, UDP, HTTP, SOCKET

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.