TCP (Transmission Control Protocol) is a connection oriented protocol that establishes a reliable connection between two devices before and data is transmitted. Below is a breakdown of what TCP does:

Reliable Communication

TCP ensure that data is sent from one device to another without loss or corruption. It does it by establishing connection between the sender and received before data is being transmitted. This is done by establishing a Tree-way handshake.

Once connection is established, the data is broken into smaller packets and they are send one by one and reassembled in the correct order at the destination.