The Transmission Control Protocol (TCP) is a connection-oriented protocol for communications. It breaks down the data into small bundles and afterward reassembles the bundles into the original message on the opposite end.
The TCP model uses a three-way handshake to establish connection.
Sender sends a segment with a SYN (synchronize sequence number) which informs the recipient that the client is likely to start communication.
Recipient responds with SYN-ACK to the client request. Acknowledgement (ACK) signifies the response of the segment it received, and SYN signifies with what sequence number it is likely to start the segments with.
Finally, sender sends ACK in response to the recipient, and they both establish a reliable connection with which they will start the actual data transfer.

The User Datagram Protocol is an unreliable and connectionless protocol. Unlike TCP, UDP does not guarantee delivery, order, or error checking, making it a lightweight and efficient option for certain types of data transmission such as video conferencing.
