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.