top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Which is faster TCP or UDP and why ??

+4 votes

Which is better and why ??

posted Nov 7, 2013 by Vikas Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
depends TCP is connection oriented so slow and UDP is connection less so fast. But both serves different purpose depends what is the use case.

Check for SCTP also, it has both the features and faster then TCP.
Not entirely true, In some applications TCP is faster (better throughput) than UDP.
This is the case when doing lots of small writes relative to the MTU size. For example, I read an experiment in which a stream of 300 byte packets was being sent over Ethernet (1500 byte MTU) and TCP was 50% faster than UDP.
The reason is because TCP will try and buffer the data and fill a full network segment thus making more efficient use of the available bandwidth.

UDP on the other hand puts the packet on the wire immediately thus congesting the network with lots of small packets.

3 Answers

+2 votes

UDP is faster as compare to TCP. still both have serve differently as according to purpose.
still in terms of speed UDP is far ahead. as there is no error-checking for packets.also no 3 way handshaking is required in UDP .
ex-UDP can be multicasted to multiple hosts whereas TCP cannot do this at all.

answer Nov 7, 2013 by Himanshu Deep Dixit
+1 vote

Based on application only we can decide which one to use.
1.UDP connection takes less time But for TCP synchronization is first needed so for delay sensitive aplication we should use UDP.
2.One very good advantages of TCP is he reorders the packets But UDP it will not do.
3.In VOIP if we lost some packets also no need to do retransmission but for data sensitive application like file transfer (HTTP) we need complete packets.
4.Because UDP we will use where we don't care when any packet missed means dont have to take care for retransmission if more users are there.But TCP has to care about each and every user's Packet missing.

still many are there as both has its importance By combining the features of TCP and UDP with extra added feature like multi streaming and multihomming SCTP made and it is also used.

answer Nov 7, 2013 by Sachidananda Sahu
0 votes

UDP is connection less protocol, So there is no need of buffering, timer and acknowledge mechanism in both end. So, it is faster than TCP.

Voice service will use UDP.
Mail service will use TCP.

answer Dec 10, 2014 by sivanraj
Similar Questions
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.