yaha TCP vs UDP ka clear, simple aur exam-friendly table de diya hai 👇
TCP vs UDP – Difference Table
| Feature / Point | TCP (Transmission Control Protocol) | UDP (User Datagram Protocol) |
|---|---|---|
| Connection type | Connection-oriented (pehle connection banta hai) | Connectionless (no connection) |
| Reliability | Reliable (data loss nahi hota) | Not reliable (data loss ho sakta hai) |
| Error checking | Yes + error recovery | Yes but no recovery |
| Data Delivery Order | Ordered (sequence maintain hota hai) | Not ordered (random order aa sakta hai) |
| Speed | Slow (extra checking hoti hai) | Fast (kam checking) |
| Overhead | High | Low |
| Use Cases | Web browsing, file transfer, email | Video streaming, gaming, VoIP |
| Acknowledgment (ACK) | ACK required | No ACK |
| Flow Control | Yes | No |
| Congestion Control | Yes | No |
| Header Size | Large (20 bytes) | Small (8 bytes) |
| Examples | HTTP, HTTPS, FTP, SMTP | DNS, DHCP, Live streaming |
One-Liner Difference
- TCP reliable hai, slow hai, connection-oriented hai.
- UDP fast hai, unreliable hai, connectionless hai.
Agar chaho to main diagram, real-life examples, ya 5-marks ka answer bhi bana du.
