Comparison of TCP and UDP
TCP and UDP represent opposing architectural trade-offs for transport-layer communication over the Internet Protocol (IP):
- Reliability vs. Overhead: TCP establishes connections via a three-way handshake, numbers packets, requires acknowledgments, and retransmits lost data, which ensures complete, ordered delivery at the cost of setup delay and transmission overhead. In contrast, UDP sends data immediately with no handshake, no acknowledgments, and no retransmissions, minimizing latency and overhead at the expense of delivery and ordering guarantees.
- Application Selection Rule of Thumb: Use TCP for accuracy when every byte must arrive correctly (e.g., loading web pages, sending email, transferring files). Use UDP for timeliness when real-time delivery is prioritized over perfection and minor packet loss is acceptable (e.g., live video broadcasts, voice calls, interactive online games).
0
1
Tags
Prep Sessions
Network Architecture and Data Flow: From Packets to Protocols @ University of Michigan - Ann Arbor
Ch.3 Routing and Transport Mechanisms - Network Architecture and Data Flow: From Packets to Protocols @ University of Michigan - Ann Arbor
Transport Layer Protocols: TCP versus UDP - Network Architecture and Data Flow: From Packets to Protocols @ University of Michigan - Ann Arbor
Related
User Datagram Protocol (UDP)
Comparison of TCP and UDP
Internet Protocol (IP)
Transmission Control Protocol (TCP)
TCP Three-Way Handshake
How does the Transmission Control Protocol (TCP) handle data that is lost or fails to receive confirmation from the receiver?
What does the Transmission Control Protocol (TCP) do to individual data units to help guarantee data integrity?
TCP Three-Way Handshake
TCP Packet Recovery and Congestion Control
Comparison of TCP and UDP
What action does the Transmission Control Protocol (TCP) take specifically to avoid network congestion?
True or False: Transmission Control Protocol (TCP) resends packets that are lost during transmission.
What specific action does TCP perform on each unit of data to support ordered delivery?
Describe the delivery guarantees provided by Transmission Control Protocol (TCP) and explain why these guarantees make TCP ideal for applications such as web browsing, email, and file transfers.
Learn After
Which mechanism does TCP use to ensure that lost data is recovered during transmission?
UDP guarantees that packets arrive in the exact order they were sent.
According to the general rule of thumb, why are applications like voice calls and live video broadcasts better suited for UDP rather than TCP?
Compare how TCP and UDP handle connection establishment and data delivery guarantees, and explain the trade-offs in overhead and latency associated with each approach.