← ByteDance Interview InsightsBackend Engineer

ByteDance·Backend Engineer·Technical Phone Screen·Intermediate

Intermediate
May 2026

Summary

Bytedance backend screen, pretty standard networking fundamentals territory. One question, not a long round.

Questions Asked (1)

Q1

Can you explain what TCP and UDP are, and walk through the key differences between them?

Technical Trade-offsSystem Design
Author's notes

Knew this cold so it wasn't stressful.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start with a clear, concise definition of TCP and UDP, then compare them across key dimensions like reliability, ordering, and overhead. Emphasize that the choice depends on the application's requirements, and give examples of when to use each.

Pro tip: Mention that many modern systems use a hybrid approach (e.g., QUIC over UDP) to get the best of both worlds, showing awareness of evolving protocols.

1. Define TCP and UDP

Briefly explain that TCP is connection-oriented and reliable, while UDP is connectionless and best-effort.

2. Compare key characteristics

Contrast them on reliability, ordering, overhead, and speed, highlighting how each affects performance.

3. Discuss use cases

Give examples of applications that use TCP (e.g., web, email) and UDP (e.g., streaming, gaming, DNS).

4. Explain trade-offs

Emphasize that the choice depends on the need for reliability vs. low latency, and mention that some systems use both.

5. Mention modern evolutions

Briefly note protocols like QUIC that build on UDP to provide reliability with lower latency, showing up-to-date knowledge.

Key Points to Mention

  • TCP is connection-oriented (handshake) and provides reliable, ordered delivery with error checking and retransmission.
  • UDP is connectionless, unreliable, and does not guarantee ordering, but has lower overhead and latency.
  • TCP is used for applications requiring data integrity (e.g., HTTP, FTP, SMTP), while UDP is used for real-time or loss-tolerant applications (e.g., VoIP, video streaming, DNS).
  • TCP has flow control and congestion control mechanisms, which UDP lacks.
  • UDP supports broadcast and multicast, while TCP is point-to-point.
  • Modern protocols like QUIC use UDP to achieve reliability with reduced latency, blending benefits of both.

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