0% found this document useful (0 votes)
63 views

What Is UDP

The UDP protocol is a connectionless, unreliable transport protocol that performs minimal error checking and uses little overhead, making it suitable for simple request/response applications with low reliability needs like DNS, streaming media, and TFTP. TCP is a connection-oriented, reliable protocol that establishes connections, ensures ordered delivery, and uses error checking, making it better suited for applications requiring reliable data transfer like file transfers, email, and web applications. While TCP provides reliability, ordering, and error checking, UDP is lighter weight and better for real-time applications.

Uploaded by

jeevanpb
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

What Is UDP

The UDP protocol is a connectionless, unreliable transport protocol that performs minimal error checking and uses little overhead, making it suitable for simple request/response applications with low reliability needs like DNS, streaming media, and TFTP. TCP is a connection-oriented, reliable protocol that establishes connections, ensures ordered delivery, and uses error checking, making it better suited for applications requiring reliable data transfer like file transfers, email, and web applications. While TCP provides reliability, ordering, and error checking, UDP is lighter weight and better for real-time applications.

Uploaded by

jeevanpb
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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:

It establishes connection before it starts sending any data.

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

Reliability: TCP is connection-oriented Reliability: UDP is connectionless


protocol. When a file or message send it protocol. When you a send a data or
will get delivered unless connections message, you don't know if it'll get there,
fails. If connection lost, the server will it could get lost on the way. There may
request the lost part. There is no be corruption while transferring a
corruption while transferring a message. message.

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.

Heavyweight: - when the low level parts Lightweight: No ordering of messages,


of the TCP "stream" arrive in the wrong no tracking connections, etc. It's just fire
order, resend requests have to be sent, and and forget! This means it's a lot quicker,
all the out of sequence parts have to be and the network card / OS have to do
put back together, so requires a bit of very little work to translate the data back
work to piece together. from the packets.

Multicasting: Its not possible Multicasting capacity is embedded in


UDP software
Streaming: Data is read as a "stream," Datagrams: Packets are sent individually
with nothing distinguishing where one and are guaranteed to be whole if they
packet ends and another begins. There arrive. One packet per one read call.
may be multiple packets per read call.

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

You might also like