The first thing is UDP is connection less where as TCP is
connection oriented.The broadcasting and multicasting
software is available in the UDP only.Why because it is
connection less hence we can broadcast the packets very
easily,no need to wait for connection like in tcp,which
takes more delay.
UDP is a connectionless oriented service and it does not
wait for any acknowledgments whether the data has reached
its destination or not. It will not check for flow control
and error control.It is the faster protocol comparied to
Tcp.It is usually used for applications which require faster
data transmission such as , video streaming and for audio
applications over the network.
Tcp is a connection oriented service and is a
most reliable service. Tcp has all the functionalities like
Error control, flow control,Acknowledments.It is a slow
comparied to Udp.
TCP:1.it is a relaible communication
2.it is a slower process
3.ack based process
4.100% data transmission
5.if ack was not recvd data transmit once agin.
UDP:it is a unrelaible communication
2.it is a faster process
4.100% or 0% data transmission
A device is sending out data at the rate of 2000 bps. How
long does it take to send out 100 bits? How long does it
take to send out a singal character (8 bits)? How long does
it take to send a file of 100,000 characters?