π€ What is TCP? (Quick Recall)
TCP (Transmission Control Protocol) is a connection-oriented, reliable transport layer protocol.
π In simple words:
TCP makes sure that data reaches the destination correctly, completely, and in the right order.
π§ Why TCP is Special?
TCP is designed for applications where:
Data loss is not acceptable
Order of data must be preserved
Communication must be reliable
π Thatβs why TCP has many built-in features.
π§© Major Features of TCP
TCP provides the following important features:
1οΈβ£ Connection-Oriented Communication
2οΈβ£ Reliable Data Transfer
3οΈβ£ Sequencing & Ordered Delivery
4οΈβ£ Error Control
5οΈβ£ Flow Control
6οΈβ£ Congestion Control
7οΈβ£ Full-Duplex Communication
8οΈβ£ Multiplexing & Demultiplexing
Weβll explain each feature clearly π
π 1. Connection-Oriented Communication

Before data transfer:
TCP establishes a logical connection
Uses 3-way handshake
1οΈβ£ SYN
2οΈβ£ SYN-ACK
3οΈβ£ ACK
π Only after this, data transfer begins.
Both sender & receiver are ready
Reduces data loss
π Like making a phone call before talking π.
βοΈ 2. Reliable Data Transfer
TCP guarantees:
No data loss
No duplication
Correct delivery
Acknowledgments (ACK)
Retransmissions
Sequence numbers
If segment 3 is lost:
Receiver does not ACK
Sender retransmits segment 3
π Data reliability ensured βοΈ
π’ 3. Sequencing & Ordered Delivery

Each TCP segment is assigned a sequence number.
π This helps:
Identify missing segments
Arrange segments in correct order
Internet paths may differ:
Segment 5 may arrive before segment 4
π TCP reorders them correctly.
β 4. Error Control
TCP uses:
Checksum to detect errors
ACKs to confirm receipt
Retransmission if error occurs
π Corrupted segments are discarded, not used.
Checksum mismatch β error detected
Segment retransmitted
π¦ 5. Flow Control
Flow control ensures:
Sender does not overwhelm receiver
π TCP uses Sliding Window Protocol.
Receiver advertises window size
Sender sends only that much data
Window slides as ACKs arrive
π Prevents buffer overflow βοΈ
π§ 6. Congestion Control

Congestion occurs when:
Network is overloaded
Too many packets β packet loss
Slow Start
Congestion Avoidance
Fast Retransmit
Fast Recovery
π TCP adjusts sending rate automatically.
π 7. Full-Duplex Communication
TCP allows:
Data transfer in both directions
At the same time
π Sender β Receiver simultaneously.
Uploading and downloading at the same time.
π 8. Multiplexing & Demultiplexing
π§ What is Multiplexing?
Multiple applications send data
TCP uses port numbers to identify them
π§ What is Demultiplexing?
Receiver delivers data to correct application
Based on port numbers
π Enables:
Browser
Email
File transfer
all at once βοΈ
π§ TCP Features Summary Table
Feature | Explanation |
|---|---|
Connection-Oriented | Uses handshake |
Reliable | ACK + Retransmission |
Sequencing | Correct order delivery |
Error Control | Checksum |
Flow Control | Sliding window |
Congestion Control | Rate adjustment |
Full Duplex | Two-way communication |
Multiplexing | Uses port numbers |
π§ Why TCP is Heavier than UDP
Because TCP includes:
Connection setup
Reliability checks
Flow & congestion control
π Thatβs why:
TCP β Slower but safe
UDP β Faster but risky
π§ Memory Trick
TCP = SAFE protocol
Sequence
Acknowledgment
Flow control
Error control
β One-Line Summary
πΉ TCP provides reliable, ordered, and congestion-controlled communication through connection-oriented data transfer.