Introduction to TCP and UDP in transport layer communication protocol

Source: Internet
Author: User

In network communication protocols, our transport layer communication protocols include TCP and UDP. We will introduce the two Protocols. The first is the analysis of the TCP protocol. I believe this protocol is quite familiar to everyone. Well, I will not repeat it here. Please refer to the following.

Transport Layer Communication Protocol 1: Analysis of TCP protocol

Transport Control Protocol (TCP) is the transport layer protocol in the TCP/IP protocol stack. It uses the sequence validation and packet re-transmission mechanism, provides reliable data stream transmission and virtual connection services to applications, TCP is the core of the Internet protocol. It is a connection-oriented and reliable transport layer protocol [4, it is widely used in computer networks 。
Since most network applications run on the same machine, the computer must be able to ensure that software programs on the machine at the destination can obtain data packets from the machine at the source address, and the source address computer can receive the correct reply from the target computer. This is done by using the TCP "Port Number". The network IP address and port number are combined into a unique identifier, we call it "socket" or "endpoint". TCP establishes a connection or virtual circuit between the endpoints for reliable communication [5].

Transport Layer Communication Protocol 2: Analysis of UDP protocol

The UDP protocol is short for the English user‑ramprotocol, that is, the User Datagram Protocol, it is mainly used to support network applications that need to transmit data between computers. network applications of many customer/Server modes, including network video conferencing systems, need to use UDP protocol. it has been used for many years, although its initial Glory has been concealed by some similar protocols, even today, UDP is still a very practical and feasible Network Transport Layer Protocol [8]. Like the well-known TCP (Transport Control Protocol) protocol, UDP is directly located at IP (Internet Protocol) the top layer of the Protocol. According to the OSI (Open System Interconnection) reference model, both UDP and TCP belong to the transport layer protocol 。

UDP is a simple datagram-oriented transport layer protocol. It does not provide reliability: It only sends data from applications to the IP layer, however, it cannot be ensured that they can reach the target broadcast and multicast. It is based on two UDP message transmission mechanisms. broadcast data is sent from a workstation, all other workstations in the LAN can receive it. Under the IP protocol, multicast is a form of broadcasting: IP multicast requires that all hosts interested in sending and receiving data be added to a specific group 。

Transport Layer Communication Protocol 3: UDP Application

Since UDP is an unreliable network protocol, what is its value or necessity? In fact, in some cases, the UDP protocol may become very useful, because UDP has a speed advantage beyond the reach of TCP. Although the TCP protocol has embedded various security protection functions, however, in the actual execution process, a large amount of system overhead will be occupied, and the speed will be seriously affected. In contrast, UDP has ruled out the reliable information transmission mechanism, the security and sorting functions are handed over to upper-layer applications, which greatly reduces the execution time and ensures the speed 。

The earliest specification for UDP protocol was RFC768, which was released in 1980, however, UDP continues to play a role in mainstream applications. Many applications, including video teleconference systems, prove the value of UDP protocol, these applications pay more attention to actual performance. Therefore, in order to achieve better performance (for example, higher frame refresh rate), certain reliability (for example, meeting quality) can be sacrificed) this is the trade-off between UDP and TCP Protocols. According to different environments and features, the two transmission protocols will play a more important role in the future online world 。

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.