Q3
Compare TCP and UDP.
💬Answer
| Feature | TCP (Transmission Control Protocol) | UDP (User Datagram Protocol) |
|---|---|---|
| Connection | Connection-oriented (requires 3-way handshake) | Connectionless (sends packets immediately) |
| Reliability | Guaranteed delivery (acknowledgments + retransmission) | Unreliable (best-effort delivery; packets can be lost) |
| Ordering | Guarantees packets arrive in sequential order | No ordering guarantees |
| Speed | Slower (protocol overhead + flow control) | Much faster (minimal overhead) |
| Use Cases | Web pages (HTTP), database connections, SSH | Video streaming, online gaming, DNS queries, VoIP |
Related Networking Questions
View All NetworkingQuestions →
Created by
Apurv Gujjar
DevOps & Cloud Engineer
Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio