Differences Between TCP and UDP

Source: Internet
Author: User

Difference Between TCP and udp tcp-Transmission Control Protocol, which provides connection-oriented and reliable byte stream service. Before the customer and the server exchange data with each other, a TCP connection must be established between the two parties before data can be transmitted. TCP provides timeout resend, discard duplicate data, test data, traffic control, and other functions to ensure data can be transferred from one end to the other. UDP-the User Datagram Protocol is a simple datagram-oriented transport layer protocol. UDP does not provide reliability. It only sends the application to www.2cto.com at the IP layer, but it cannot guarantee that the application can reach the destination. Because UDP does not need to establish a connection between the client and the server before transmitting the datagram, and there is no timeout and re-transmission mechanism, the transmission speed is very fast.
Difference Between TCP and UDP: 1. Based on connection and connectionless 2. Requirements on system resources (more TCP and less UDP) 3. UDP program structure is relatively simple 4. Stream mode and datagram mode 5. TCP ensures data correctness, UDP may cause packet loss, TCP ensures data order, and UDP does not guarantee the author's EvenCode

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.