How does TCP provide transport reliability

  1. The application data is divided into the length that TCP considers most suitable for sending
  2. Timeout resending: After TCP sends a segment, it starts a timer and waits for the destination end to receive the segment. If the destination end cannot receive the confirmation in time, it resends the segment.
  3. Checksum: the checksum of the head and data. If the checksum of the received segment is incorrect, TCP dismisses the segment and does not acknowledge receipt of the segment.
  4. Flow control: Each side of a TCP connection has a fixed amount of buffer space. The TCP receiver only allows the other end to send as much data as the receiver’s buffer can accept.
  5. Determine the reply and serial number
  6. Connection management
  7. Reorder out-of-order data
  8. Duplicate data can be discarded