TCP is a reliable transmission and why the application layer has to be verified

Source: Internet
Author: User

There has been this confusion before. One of the better explanations I've seen at the moment is that for the TCP layer, it's just the concept of data flow, and the logical semantics of data are not guaranteed, like

The correctness of the data is not guaranteed, for example, if the data has been tampered with, it is a protection of the application layer. One more thing I think of myself is, for example, you have a

File server, TCP does guarantee that every TCP packet arrives, but the correctness of your application is not guaranteed, such as during the transfer of your files, your program

In the logic of some error, not to put a file shard into the TCP stack, then the other side of course the best to get is a broken file.

TCP is a reliable transmission and why the application layer has to be verified

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.