TCP (Transmission Control Protocol)
TCP is a communication protocol to ensure reliable, ordered, and error-checked delivery of data between applications over a network; its like a courier service that ensures your package (data) reached its destination intact, in the right order, and without loss.
HOW IT WORKS ?
- Connection-Oriented Protocol:
- TCP establishes a connection between two devices before transmitting data
- This is like making a phone call where both parties say “hello” before talking to ensure they are connected
- Reliable Data delivery:
- TCP ensures that all data is delivered correctly. If a packet is lost or corrupted, TCP retransmits it.
- Its uses acknowledgments (ACKs) to confirm successful delivery.
- Ordered Delivery:
- Packets may arrive at their destination in a jumbled order due to different routes taken across the network.
- TCP reassembles the data in the correct order before passing it to the application
- Error Detection and Correction:
- TCP includes error-checking mechanisms to detect corrupted packets and request retransmission.
TCP Process: Step-by-step:
Visualizing TCP
Think of TCP as a polite, organized librarian:
- It greets you (three-way handshake).
- It carefully delivers books to you, ensuring none are missing or damaged (reliable delivery).