Transmission Protocol: Difference Between TCP and UDP

Source: Internet
Author: User

TCP (Transmission Control Protocol ):

1) provide reliable data transmission in the IP environment (the byte stream sent by A computer will be sent to other computers on the network without errors, and when computer A receives data packets, data packets are also sent back to computer B, which also generates part of the traffic), effective traffic control, full duplex operations (data can be transferred simultaneously in both directions), multiplexing services, is connection-oriented, end-to-end transmission;

2) connection orientation: before formal communication, you must establish a connection with the other party. Establish a connection channel for the sent data before sending the data, such as making a call.

3) Application Protocols Supported by TCP: Telnet (Remote logon), FTP (file transfer protocol), and SMTP (Simple Mail Transfer Protocol ). TCP is used for applications with high data transmission capacity and reliability requirements.

UDP (User Data Protocol)

1) Non-connection-oriented (you do not need to establish a connection with the other party before the formal communication, regardless of the other Party's status, directly sent, such as SMS, QQ), cannot provide reliability, flow control, error recovery functions. UDP is used for applications that transmit only a small amount of data at a time with low reliability requirements and economic transmission.

2) UDP-supported application protocols: NFS (Network File System), SNMP (Simple Network Management System), DNS (Primary Domain Name System), and TFTP (General File Transfer Protocol.

Summary:

TCP: connection-oriented, reliable transmission (ensuring data correctness and Data Order), used to transmit a large amount of data (stream mode), slow speed, and costly connection establishment (time, system Resources ).

UDP: for non-connection, unreliable transmission, for transmitting a small amount of data (packet mode), fast.

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.