What Is UDP
What Is UDP
What is UDP:
The user datagram protocol is a connectionless, unreliable transport protocol. It
performs very limited error checking. It using a minimum of overhead
Why it is used:
It is so powerless,but it can be used in minimum of overhead like if a
process wants to send a small message and not need about reliability.
By sending a small message in UDP takes much less interaction between
sender and receiver.
Where it is used:
It is suitable for simple request and response application with little concern
for flow and error control
For a process with internal flow and error control like Trivial File Transfer
Protocol(TFTP)
It is suitable for multicasting.Multicasting capability is embedded in UDP
software
It is used for management processes such as SNMP
It is used for some route updating protocols like Routing Information
Protocol(RIP)
TCP
What is TCP:
Transmission Control Protocol is connection oriented protocol,it will creates
virtual connection between two TCPs to send data.TCP uses flow and error
control mechanisms in transport level.it is reliable one.
Why it is used:
Linux supports TCP and some of the reasons as follow:
The order in which the packets are received at the server side is same as the
way the packets are sent from the client side.Order is maintained.
TCP gives guarantee that the packets would reach the server.
TCP UDP
Ordered: If you send two messages along Ordered: If you send two messages out,
a connection, one after the other, you you don't know what order they'll arrive
know the first message will get there first. in i.e. no ordered
You don't have to worry about data
arriving in the wrong order.
Examples: World Wide Web (Apache Examples: Domain Name System (DNS
TCP port 80), e-mail (SMTP TCP port 25 UDP port 53), streaming media
Postfix MTA), File Transfer Protocol applications such as IPTV or movies,
(FTP port 21) and Secure Shell Voice over IP (VoIP), Trivial File
(OpenSSH port 22) etc. Transfer Protocol (TFTP) and online
multiplayer games etc