Network communication choices affect latency, reliability, and application behavior. Interviewers ask this to test whether you understand transport-layer trade-offs and can connect them to real systems.
Explain the differences between TCP and UDP. In your answer, address:
You do not need to derive packet formats from memory, but you should be able to compare the protocols clearly, describe the main mechanisms behind reliability and speed, and discuss practical trade-offs such as overhead, congestion handling, and message loss.