TCP transport is similar to sending packages that tracked from source to destination. For example, sending a mail through the post with the return address and tracking number to make sure it is 100% delivered.
For example, WhatsApp is using a transmission control protocol. Its transport method for the text messages is TCP. As you may notice this app keeps users informed about not just the receipt of the messages but also if those messages have seen and reproduced.
With TCP, there are three basic operations of reliability:
- Numbering and tracking data segments transmitted to a specific destination from a specific application
- Acknowledging received data
- Retransmitting any unacknowledged data after a certain period
Features of TCP
It is very important to understand the difference between UDP and TCP. For this understanding, it is also necessary to understand how each protocol work, implements reliability features and how they track the conversation.
Establishing a Session
Transmission control protocol (TCP) is a connection-oriented protocol. A connection-oriented protocol negotiates and establishes a permanent session between the source and destination devices earlier to forwarding any data. Throughout the session establishment, the devices discuss the amount of traffic that can be forwarded at a given time, and the communication data between the two can closely manage.
Reliability in the terms of networking means ensures that each segment that the source sends arrives at the destination. For many reasons, it is possible for a segment to become corrupted or lost, as it transmitted over the network.
Because of multiple routes on the network, that can have different transmission rates, data can arrive in the wrong order. By the help of numbering and sequencing the segments; TCP can make sure that these segments reassembled into the correct order.
The hosts in the network have limited resources, such as memory and processing power. When TCP is aware that these resources are not enough, it can request that the sending application decrease the rate of data flow. This made by TCP regulating the amount of data the source transmits. Flow control can avoid the need for retransmission of the data when the receiving host’s recourses overwhelmed.