TCP and UDP on the transport layer

Source: Internet
Author: User

TCP and UDP are protocols in the transport layer in the OSI model.

TCP definition

TCP (transmission Control Protocol Transmission Protocol ) is a connection-oriented, reliable, byte-stream-based Transport Layer communication protocol defined by the IETF RFC 793.

UDP definition

The UDP (user Datagram Protocol Subscriber Datagram Protocol ) is a connectionless transport layer protocol in the OSI (open System interconnection Open Systems Interconnect) Reference Model, Provides transaction-oriented, simple, unreliable information delivery services.

Difference:

    1. TCP provides a connection-oriented, reliable transmission of data streams;

      UDP provides non-connection-oriented, unreliable data flow transmissions.

    2. TCP provides reliable services, data transmitted over TCP connections, error-free, no-loss, no-duplication, sequential arrival, and UDP does its best to deliver, that is, no guarantee of reliable delivery.

    3. TCP-oriented byte stream;

      UDP is message-oriented.

    4. The TCP connection can only be point-to;

      UDP supports a pair of one or one-to-many, many-to-one, and many-to-many interactive communications.

    5. TCP header overhead 20 bytes;

      UDP has a small header overhead and only 8 bytes.

    6. The logical communication channel of TCP is a reliable channel with full duplex;

      The logical communication channel of UDP is an unreliable channel.

Usage scenarios:

TCP: Browser, SSH QQ file transfer, etc.

UDP: Audio and multimedia applications, QQ chat, online games and live streaming, etc.

TCP and UDP on the transport layer

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.