← Meta Interview Insights

Meta·Software Engineer·Technical Phone Screen·Intermediate

Intermediate
Jun 2026

Summary

Did a technical screen at Meta, pretty standard networking fundamentals stuff. One question on TCP vs UDP, nothing too wild.

Questions Asked (1)

Q1

What are the differences between TCP and UDP?

System DesignTechnical Trade-offs
Author's notes

Went through the usual points: TCP is connection-oriented, has handshake, guarantees ordering and delivery.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by defining TCP and UDP in one sentence each, then contrast them across key dimensions like connection, reliability, ordering, speed, and use cases. Conclude by explaining how these differences drive real-world protocol choices, especially in system design contexts.

Pro tip: Don't just list differences—tie them to trade-offs and concrete examples (e.g., HTTP/3 uses QUIC over UDP for speed while adding reliability at the application layer). This shows you understand when to choose each protocol, not just what they are.

1. Define the core nature

State that TCP is connection-oriented and reliable, while UDP is connectionless and best-effort. This sets the foundation for all other differences.

2. Compare key characteristics

Contrast them on reliability (acknowledgments/retransmissions vs none), ordering (sequenced vs unordered), speed/overhead (header size, congestion control), and connection setup (handshake vs none).

3. Map to use cases

Give examples: TCP for web (HTTP/1.1, HTTP/2), email (SMTP), file transfer (FTP); UDP for DNS, VoIP, video streaming, online gaming, and QUIC (HTTP/3).

4. Discuss trade-offs in system design

Explain that choosing between them depends on requirements: reliability vs latency, and mention that some systems build reliability on top of UDP when needed (e.g., QUIC).

Key Points to Mention

  • Connection-oriented (TCP handshake) vs connectionless (UDP)
  • Reliability: TCP guarantees delivery with acknowledgments and retransmissions; UDP does not
  • Ordering: TCP delivers data in order; UDP may deliver out of order
  • Speed and overhead: UDP is faster with smaller header (8 bytes vs 20+ bytes) and no congestion control
  • Use cases: TCP for web, email, file transfer; UDP for DNS, streaming, gaming, VoIP
  • Modern protocols: QUIC (HTTP/3) uses UDP to achieve low latency with reliability built on top

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.