What is TCP?

Transmission Control Protocol (TCP) is a communication standard, one of the first internet protocols (TCP/IP). It is connection-oriented, for all kind of devices and applications to exchange messages through a particular network. 

Data is organized in a specific way by TCP to be transmitted between client and server. The purpose is to protect the data on their trip around the network from the sending to the delivery.

TCP is a very popular protocol in network communications. 

How does it work?

Transmission Control Protocol (TCP) was created for sending packets on the Internet, making sure the proper data and messages’ are delivered through networks. It works through a process that involves different steps. 

As mentioned previously, TCP is connection-oriented. This means it has to make sure the connection between source and destination is not only set, but also kept until the whole exchange of data (sending and receiving of messages) is completed.

Thus, the first step is TCP sets the connection needed by a source and its destination. During this period, there’s a connection, but there’s not data transmission yet. 

Then communication starts. TCP gets messages from the sender (server or application) and split them up into packets. TCP organizes the chopped data with numbers to have control over all the packets and protect messages’ integrity. 

Already chopped and numbered, messages will go to the IP layer for transporting. They will be sent and re-sent by the different devices involved in the network (gateways, routers, etc.) until they reach their destination. All packets belonging to a message have the same destination. But they all can travel following a different route. 

As soon as they arrive, they are rebuilding. Yes, through the numbers assigned to every message’s packet, it puts all packets together again. 

Once messages are built, they are delivered to their recipient. 

You know that network congestion, traffic load balancing maneuvers, and other factors can affect networks’ performance. TCP can solve those problems if such causes affect packets and get duplicated, disordered, delivered, or lost. The protocol can identify the specific issue, then request the lost data to be transmitted again, and reorganize in the proper order, disordered packets.

If, after fixing problems, messages still don’t get delivered, the source is informed about the failure.

Without a doubt, Transmission Control Protocol (TCP) is a reliable standard and a key for the Internet to work better and more precisely. 

There are different protocols, but if you need accuracy and you can’t afford the loss of data (packets), TCP is ideal for you. That is why it is widely used by very well-known Internet applications like SSH (secure shell), FTP (file transfer protocol) or IMAP (message access protocol), SMTP (simple mail transfer protocol), HTTP (hypertext transfer protocol).

Advantages of TCP

  • It guarantees accurate end-to-end data delivery. The bytes received will be the exact ones (same order) originally sent. 
  • Its functionality includes not only issues’ detection (duplicated, lost packets, etc.), but also the ability to fix them.
  • It operates with network congestion avoidance, an algorithm that includes different mechanisms to control congestion problems (AIMD, congestion window, slow start…).

Disadvantages of TCP

  • It is focused on accurate delivery, and that takes time. TCP’s process and additional fixing of problems, in case they occur, can cause delays. We talk about seconds or milliseconds, but in the context of a demanding world (Internet), that can mean much.
  • It’s not a choice for real-time applications like voice-over IP or streaming media. The reason is TCP’s process doesn’t have a fast transmission as a goal.

Conclusion

TCP is a reliable tool, very popular on networks. If it is about accuracy for delivering data, no doubt TCP is the choice. 

Leave a Reply

Your email address will not be published. Required fields are marked *

Navigation