It was designed specially to provide a reliable logical circuit or connection, between application processes on different machines.
It establishes a connection and ensures that the other end receive any packets.
In the early 1970s, the internet was a small research network called ARPAnet. This network used a technology called Network Control Protocol NCP, which allowed hosts to connect to each other.
NCP did approximately the same job that TCP and IP do together today. Due to limitation in NCP, new protocol was developed to be better suited to a growing internetwork.
TCP is the IP-suite transport layer protocol that provides all the functions that a typical needs for a reliable transportation of data across an arbitrary internetwork with guaranteed delivery.
Once the devices have connected to each other, they can pass data bidirectionally between them.
In the first phase, a connection is set up between the two hosts which are to communicate. This stage called synchronization.
The second phase is a phase of data transfer. TCP undertakes acknowledgements of segments, as well as flow control and congestion control during the data transfer.
After the completion of data transfer, either of the two ends may close the close connection.
Transmission Control Protocol (TCP)