Professional Documents
Culture Documents
Aptitude Engineering Mathematics Discrete Mathematics Operating System DBMS Computer Networks
We use cookies to ensure you have the best browsing experience on our website. By using
our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Got It !
Features of TCP Policy
https://www.geeksforgeeks.org/differences-between-tcp-and-udp/ 1/12
4/16/24, 11:32 AM Differences between TCP and UDP - GeeksforGeeks
Advantages of TCP
Disadvantages of TCP
We use cookies to ensure you have the best browsing experience on our website. By using
our site, you acknowledge that you have read and understood our Cookie Policy & Privacy
Policy
https://www.geeksforgeeks.org/differences-between-tcp-and-udp/ 2/12
4/16/24, 11:32 AM Differences between TCP and UDP - GeeksforGeeks
Features of UDP
https://www.geeksforgeeks.org/differences-between-tcp-and-udp/ 3/12
4/16/24, 11:32 AM Differences between TCP and UDP - GeeksforGeeks
Normally used for real-time applications which can not tolerate uneven
delays between sections of a received message.
Advantages of UDP
Disadvantages of UDP
We can not have any way to acknowledge the successful transfer of data.
UDP cannot have the mechanism to track the sequence of data.
UDP is connectionless, and due to this, it is unreliable to transfer data.
In case of a Collision, UDP packets are dropped by Routers in comparison
to TCP.
UDP can drop packets in case of detection of errors.
In general, both TCP and UDP are useful in the context of the work assigned
by us. Both have advantages upon the works we are performing, that’s why
it is difficult to say, which one is better.
We use cookies to ensure you have the best browsing experience on our website. By using
our site, you acknowledge that you have read and understood our Cookie Policy & Privacy
Policy
https://www.geeksforgeeks.org/differences-between-tcp-and-udp/ 4/12
4/16/24, 11:32 AM Differences between TCP and UDP - GeeksforGeeks
https://www.geeksforgeeks.org/differences-between-tcp-and-udp/ 5/12
4/16/24, 11:32 AM Differences between TCP and UDP - GeeksforGeeks
TCP is reliable as it
The delivery of data to the
guarantees the delivery of
Reliability destination cannot be
data to the destination
guaranteed in UDP.
router.
An acknowledgment No acknowledgment
Acknowledgment
segment is present. segment.
Sequencing of data is a
feature of Transmission There is no sequencing of
Control data in UDP. If the order is
Sequence required, it has to be
Protocol (TCP). this means
managed by the
that packets arrive in order
application layer.
at the receiver.
https://www.geeksforgeeks.org/differences-between-tcp-and-udp/ 6/12
4/16/24, 11:32 AM Differences between TCP and UDP - GeeksforGeeks
Example: Suppose there are two houses, H1 and H2, and a letter has to be
sent from H1 to H2. But there is a river in between those two houses. Now
how can we send the letter?
Solution 1: Make a bridge over the river and then it can be delivered.
Solution 2: Get it delivered by a pigeon.
https://www.geeksforgeeks.org/differences-between-tcp-and-udp/ 7/12
4/16/24, 11:32 AM Differences between TCP and UDP - GeeksforGeeks
FAQs
1. Which is faster: TCP or UDP?
UDP is faster than TCP. The reason for the faster UDP is its non-existent
acknowledge packet (ACK) which allows the streaming of continuous
packets where as TCP always works on the acknowledgment of a set of
packets calculated with the help of TCP window size and Round Trip Time
(RTT).
Both Protocols, TCP and UDP have several practical uses in day-to-day life,
but TCP has come as a better solution nowadays in the modern era as a
solution for this question of who is better at Video Conferencing. The reason
for this is because of the ability of UDP to order data correctly and it also
produces the output without error. TCP can also be used for Video
Conferencing when we have to focus more on quality rather than speed.
UDP is generally used when speed matters most rather than the quality of
the product. Some data packets might be lost or somehow received out of
order, but UDP is more prominently used in the case of live streaming.
Get 90% Course fee refund in just 90 Days! Also get 1:1 Mock Interview,
Job assistance and more additional benefits on selected courses. Take up
the Three 90 challenge today!
"GeeksforGeeks helped me ace the GATE exam! Thanks to them, I'm all set
for success!"
- Vibha Joshi | Expected AIR Top 100
https://www.geeksforgeeks.org/differences-between-tcp-and-udp/ 8/12
4/16/24, 11:32 AM Differences between TCP and UDP - GeeksforGeeks
Over 125,000+ students already trust us to be their GATE Exam guide. Join
them & let us help you in opening the GATE to top-tech IITs & NITs!
Previous Next
Similar Reads
Difference Between TCP, UDP and SCTP TCP and UDP in Transport Layer
Protocols
Various TCP and UDP ports Examples of TCP and UDP in Real Life
How Applications Coexist Over TCP and Why does DNS use UDP and not TCP?
UDP?
TCP vs UDP for Video Streaming Why is YouTube using TCP but not UDP?
Why does Netflix use TCP but not UDP Why is UDP Faster than TCP?
for streaming video?
P Palak Jain 5
We use cookies to ensure you have the best browsing experience on our website. By using
our site, you acknowledge that you have read and understood Between
our Cookie, Policy
GATE&CSPrivacy
Article Tags : Computer Networks
Policy
, Difference
https://www.geeksforgeeks.org/differences-between-tcp-and-udp/ 9/12
4/16/24, 11:32 AM Differences between TCP and UDP - GeeksforGeeks
Company Explore
About Us Job-A-Thon Hiring Challenge
Legal Hack-A-Thon
Careers GfG Weekly Contest
In Media Offline Classes (Delhi/NCR)
Contact Us DSA in JAVA/C++
Advertise with us Master System Design
GFG Corporate Solution Master CP
Placement Training Program GeeksforGeeks Videos
Geeks Community
Languages DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang
We use cookies to ensure you DSA Roadmap
have the best browsing experience on our website. By using
our site, you acknowledge that
SQLyou have read and understood our Cookie Policy & Privacy
DSA Interview Questions
Policy
https://www.geeksforgeeks.org/differences-between-tcp-and-udp/ 10/12
4/16/24, 11:32 AM Differences between TCP and UDP - GeeksforGeeks
https://www.geeksforgeeks.org/differences-between-tcp-and-udp/ 11/12
4/16/24, 11:32 AM Differences between TCP and UDP - GeeksforGeeks
Biology Management
Social Science HR Management
English Grammar Finance
Income Tax
We use cookies to ensure you have the best browsing experience on our website. By using
our site, you acknowledge that you have read and understood our Cookie Policy & Privacy
Policy
https://www.geeksforgeeks.org/differences-between-tcp-and-udp/ 12/12