Summary of TCP Key Points

Source: Internet
Author: User

Summary of TCP Key Points

1. Transmission Control Protocol (TCP) is a connection-oriented, reliable, and byte stream-based transport layer communication protocol.

1 connection orientation means that two applications that use TCP (usually a client and a server) must establish a TCP connection before exchanging data with each other.

2 TCP provides reliability through the following methods:

1) The application data is split into data blocks that TCP considers appropriate. The unit of information transmitted by TCP to the IP address is called the packet segment.

2) When TCP sends a segment, it starts a timer and waits for the destination to confirm the segment. If you cannot receive confirmation in time, the message segment will be resent.

3) when TCP receives data from the other end of a TCP connection, it sends a confirmation message. This confirmation will be postponed by a few minutes.

4) TCP will keep its header and data validation. If the test and acceptor discard the packet segment and do not confirm receipt of the packet segment.

5) TCP provides traffic control.

3. TCP does not explain the content of the byte stream. The interpretation of the byte stream is submitted to the application layer.

Ii. TCP Header

The length of a TCP header is 20 bytes.

A TCP connection is uniquely represented by a triplet containing the source ip address, source port, destination ip address, and destination port. The sequence number is used to indicate the Data byte stream from the sending end to the receiving end. It indicates the first byte in a packet segment. Confirm that the sequence number is the Data byte number received last time plus one. The receiving window Indicates the bytes that can be received by the receiving end to control the TCP traffic. The test covers the entire TCP packet segment, including the header and data, which are calculated and stored by the initiator and verified by the receiver.

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.