Networking & Protocols (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What are the key differences between TCP and UDP?
junior Levelnetworking-protocolsBasic
In Simple Words:
- TCP (Transmission Control Protocol):
- Connection-oriented: Requires 3-way handshake.
- Reliable: Guarantees delivery via ACKs and retransmissions.
- In-Order: Segments reassembled in order. Flow and Congestion control.
- Use Cases: Web pages (HTTP), email (SMTP), file transfer, database connections.
- UDP (User Datagram Protocol):
- Connectionless: No handshake; fire-and-forget.
- Unreliable: No ACKs, packets may be dropped or arrive out of order. Zero overhead.
- Use Cases: Real-time multiplayer gaming, live video streaming, VoIP, DNS queries.