Q. What is the difference between TCP and UDP?
What the Interviewer Want to Know
They are looking for an answer that clearly demonstrates your understanding of the fundamental properties and appropriate use cases of each protocol—TCP for reliable, connection-oriented communication that offers error checking, ordered data delivery, and flow control, and UDP for faster, connectionless communication that minimizes overhead by forgoing such guarantees.
How to Answer
#ERROR!
Example Answer
"TCP is a connection-oriented protocol that guarantees delivery by establishing a connection through a handshake and using error checking and flow control, making it reliable and suitable for applications where data integrity is crucial, such as web pages and file transfers; on the other hand, UDP is a connectionless protocol that does not guarantee delivery, provides less overhead and error correction, and is therefore used in time-sensitive applications like video streaming or gaming where speed is more critical than perfect data delivery."
Common Mistakes
- Overemphasizing speed differences while neglecting reliability aspects.
- Failing to mention that TCP provides connection-oriented communication while UDP is connectionless.
- Omitting discussion of error checking and congestion control mechanisms in TCP.
- Oversimplifying by stating UDP is "faster" without explaining its lack of delivery guarantees.
- Not contrasting the impact of these protocols on applications, such as streaming vs. file transfer.
Similar Questions
Unlimited Mock Interviews with Your Personal Career Advisor
Sarah Academy offers 1-on-1 mock interviews with Career Advisors who guide you through real questions and personalized feedback, helping you improve your answers and build lasting confidence.