BeginnerPhone
2 min
TCP vs UDP
NetworkingProtocols
Advertisement
Interview Question
What are the key differences between TCP and UDP, and when would you use one over the other?
Key Points to Cover
- TCP: connection-oriented, reliable, ordered packets
- UDP: connectionless, faster, possible packet loss
- Use TCP for reliability (HTTP, FTP); UDP for speed (DNS, streaming)
Evaluation Rubric
Explains TCP characteristics30% weight
Explains UDP characteristics30% weight
Provides examples of usage40% weight
Hints
- 💡Think reliability vs speed.
Potential Follow-up Questions
- ❓Why is UDP used for DNS?
- ❓When would TCP be too slow?
Advertisement