answersLogoWhite

0

What are the advantages of UDP?

Updated: 10/3/2023
User Avatar

Wiki User

14y ago

Best Answer

The advantages of TCP over UDP are quite clear, as TCP guarantees that the sent data actually arrives, that it arrives in order and that there are no duplicates, while UDP provides none of these guarantees (only offers "best effort" policy). Unlike TCP, UDP does not provide any flow and congestion control.

On the surface, an unreliable transport protocol like UDP may not seem very worthwhile or desirable. But in fact, UDP can be very useful in certain situations, and it enjoys one key advantage over TCP - speed. The reliability features built into TCP can be expensive in terms of overhead at execution time.

Therefore, many applications find UDP well-suited for their needs, for the following reasons:

No connection establishment

While TCP uses a three-way handshake before it starts to transfer data, UDP just blasts away without any formal preliminaries. Thus, UDP does not introduce any delay to establish a connection. This feature is most useful to applications which exchange sporadic and low-volume data.

No connection state

TCP maintains connection state in the end systems. This connection state includes receive and send buffers, congestion control parameters, and sequence and acknowledgment number parameters. This state information is needed to implement TCP's reliable data transfer service and to provide congestion control. UDP, on the other hand, does not maintain connection state and does not track any of these parameters. For this reason, a server devoted to a particular application can typically support many more active clients when the application runs over UDP rather than TCP.

Small segment header overhead

The TCP segment has 20 bytes of header overhead in every segment, whereas UDP only has 8 bytes of overhead. TCP needs more header fields in order to guarantee reliability, while UDP, that gives no guarantees, does not.

Unregulated send rate

TCP has a congestion control mechanism that throttles the sender when one or more links between sender and receiver becomes excessively congested. This throttling can have a severe impact on real-time applications, which can tolerate some packet loss but require a minimum send rate. On the other hand, the speed at which UDP sends data is only constrained by the rate at which the application generates data, the capabilities of the source (CPU, clock rate, etc.) and the access bandwidth to the internet. We should keep in mind, however, that the receiving host does not necessarily receive all the data. When the network is congested, a significant fraction of the UDP-transmitted data could be lost due to router buffer overflow. Thus, the receive rate is limited by network congestion even if the sending rate is not constrained.

Lower latency

With TCP, if a packet is lost, but the next packet makes it through, the kernel will withhold that packet until the earlier packet can be re-sent. This is because TCP is a guaranteed, in-order, stream protocol. This means that "fresh" data will sit in the kernel, becoming "stale", while waiting for the TCP timeout to be retransmitted (a minimum of 3 seconds for a lost packet). This is why UDP is usually better for games, voice conferencing, and other low-latency applications.

Broadcast and multicast

Being a connection-oriented protocol, TCP does not support broadcast and multicast. Therefore, applications that require this kind of service will have to use UDP as a transport protocol.

Application flexibility

The fact that UDP lacks built-in reliability mechanisms can be considered an advantage from the application designer's point of view. Building reliability directly into the application allows the application to "have its cake and eat it too". That is, application processes can communicate reliably without being constrained by the transmission rate constraints imposed by TCP's congestion control mechanism. Application-level reliability also allows an application to tailor its own application-specific form of error control.

For example, an interactive real-time may occasionally choose to retransmit a lost message, provided that round trip network delays are small enough to avoid adding significant playout delays. In fact, many of today's proprietary streaming applications do just this: they run over UDP, but they have built acknowledgements and retransmissions into the application in order reduce packet loss.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Because UDP does not include a "handshake" in its protocols, it tends to be faster than TCP. UDP assumes that error checking and correction is either not necessary or performed in the application, avoiding the overhead of such processing at the network interface level. Time-sensitive applications often use UDP because dropping packets is preferable to waiting for delayed packets, which may not be an acceptable option in a real-time system. UDP's stateless nature is also useful for servers answering small queries from huge numbers of clients. Unlike TCP, UDP is compatible with packet broadcasting (sending to all on local network) and multicasting (send to all subscribers). Common network applications that use UDP include: Domain Name Servers (DNS), streaming media like IPTV, Hulu, Netflix, etc, Voice over IP (VoIP), Trivial File Transfer Protocol (TFTP) and many online games.

This advantage comes at a price however - that handshake employed by TCP helps with error correction and authentication, thus UDP is usually less trustworthy than TCP.

See the attached related link for more information.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

UDP advantage is primarily speed - no error detection or correction is used, and handshaking is not employed either so it is a faster transport mechanism (although it is not reliable).

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

it is an unreliable protocol.

it does not care about the delivery of the packets or the sequence of delivery.

it does not perform conjestion control.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the advantages of UDP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is fastest udp or tcp?

UDP


Explain the format of udp hearder udp message queqe?

. A Explain the overview of UDP messaging.


What protocol uses udp?

DNS uses both TCP and UDP, also a lot of online chats use UDP. I think even when you want videos on YouTube UDP is used to deliver video and audio.


Why is UDP considered unreliable?

Routers Drop a lot of UDP packets


Udp is which layer protocol?

UDP is a layer 4 (transport) protocol.


What kind of packet does a client use to close UDP?

UDP is a connectionless protocol, so there is no session to close. UDP is not expecting any particular packet, so opening and closing via UDP is not necessary.


What are the advantages and disadvantages of using RTP?

Advantages will be from the TCP part, which are: Reliability, Long Packet support, and Session holding. Disadvantages will be the lost of RTP advantage, which are: lost Quick sync, lost of Ability to do short burst (UDP style).


What are the Differences between IP and UDP protocols?

1. IP works at network layer, UDP works at transport layer. 2. UDP carries application data, IP carries TCP segments or UDP datagrams.


What is the most significant difference between the Layer 4 TCP and the Layer 4 UDP?

the main difference between UDP and TCP is that UDP is not a reliable protocol.


How do you explain the format of udp hearder and explain the udp message queue?

i want argent answer


Which protocol does DHCP use at the Transport layer?

UDP and ports 67 and 68.


Where the UDP canot be used?

UDP typically should not be used where quality (not speed) is desired.