0% found this document useful (0 votes)
14 views2 pages

TCP vs. UDP Communication Protocol Comparison

Uploaded by

Enrique Polanco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

TCP vs. UDP Communication Protocol Comparison

Uploaded by

Enrique Polanco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

TCP vs.

UDP Communica1on Protocol Comparison


TCP & UDP are a set of transmission rules that enable network devices to
communicate with each other.

TCP UDP
What?
TCP (Transmission Control Protocol) is a UDP (User Datagram Protocol) is a
connec2on-oriented protocol, which establishes a connec2onless protocol, meaning it sends
reliable communica2on between devices. It packets without establishing a prior
ensures data is transmi>ed accurately by connec2on, providing a faster but less reliable
establishing a connec2on and managing data communica2on method than TCP.
sequencing, acknowledgment, and retransmission
if necessary.
Brief
descrip0on A connec2on-oriented protocol that ensures A connec2onless protocol designed for fast,
reliable data transfer through error-checking, low-overhead data transfer without reliability
sequencing, and retransmissions. TCP establishes guarantees. UDP sends data packets without
a connec2on between devices to provide accurate establishing a connec2on, priori2zing speed
and ordered data delivery, making it ideal for over accuracy, which is suitable for applica2ons
applica2ons requiring reliability. where low latency is cri2cal.

Diagram

SYN

Request

Sender SYN A&ack


Sender Response

SYN A&ack
Response

Why cool?
TCP's reliability, through its error-checking, UDP’s simplicity and low overhead allow for
retransmission, and flow control mechanisms, fast, real-2me data transmission. It’s op2mal
makes it essen2al for accurate data transfer in for applica2ons that need low latency rather
applica2ons where errors must be minimized. This than guaranteed delivery, like streaming or
makes it ideal for tasks gaming.
like file transfers and webpage loading.
Why not?
TCP requires more resources and overhead due to UDP lacks error-checking and retransmission
connec2on setup and maintenance, resul2ng in features, meaning packets can be lost or arrive
slower speeds and higher latency. It is therefore out of order without correction, which can
less suitable for real-2me applica2ons where degrade quality in applications sensitive to
speed is priori2zed over accuracy, such as live data loss.
video or gaming.

When to
use? TCP is best used in scenarios that require reliability UDP is ideal for real-2me applica2ons where
and accuracy over speed, such as in HTTP, email, speed is more cri2cal than reliability, such as
and file transfers. It is especially useful in live broadcasts, online gaming, or Voice over IP
applica2ons where loss of packets would disrupt (VoIP), where minor data loss is acceptable and
data integrity. preferable to latency.

You might also like