Protocol Selection and Trade-Offs
The fundamental difference between TCP and UDP lies in the trade-off between reliability and speed. The general rule of thumb is to use TCP when accuracy is critical and UDP when timeliness matters most.
TCP is used in applications where missing or corrupted data breaks functionality, such as loading web pages (HTTP/HTTPS), sending email, and performing file transfers. In these cases, waiting for retransmissions is preferable to missing data.
UDP is suited for real-time interactions such as live video streams, voice calls, and online games. In live streaming, a delayed packet representing an elapsed moment is useless, making it better to drop the lost packet and continue rather than pausing the stream to wait for retransmission. Streaming systems often combine UDP delivery with techniques like adaptive bitrate to adjust quality dynamically based on available bandwidth.
0
1
Tags
Prep Sessions
From Packets to Protocols: How Modern Networks Transmit Data @ University of Michigan - Ann Arbor
Ch.3 Core Communication Protocols - From Packets to Protocols: How Modern Networks Transmit Data @ University of Michigan - Ann Arbor
Transport Protocols: TCP versus UDP - From Packets to Protocols: How Modern Networks Transmit Data @ University of Michigan - Ann Arbor
Learn After
Which of the following applications is best suited for UDP rather than TCP?
In live streaming applications, lost packets are dropped rather than retransmitted because a delayed packet representing an elapsed moment is useless.
What technique do streaming systems often combine with UDP delivery to adjust stream quality dynamically based on available bandwidth?
Explain the fundamental trade-off between TCP and UDP, the general rule of thumb for choosing between them, and why file transfers use TCP while voice calls use UDP.