Lecture_5 (1) (1)
Lecture_5 (1) (1)
• Connectionless (Unreliable)
• Use Datagram
• No flag
• No Flow Control
• No Error Control
• Fast Transaction
User Datagram Protocol (UDP)
User Datagram Protocol (UDP)
Comparison of TCP and UDP
Applications of UDP
1. Speed: UDP is faster than TCP because it does not have the
overhead of establishing a connection and ensuring reliable data
delivery.
2. Lower latency: Since there is no connection establishment, there is
lower latency and faster response time.
3. Simplicity: UDP has a simpler protocol design than TCP, making it
easier to implement and manage.
4. Broadcast support: UDP supports broadcasting to multiple
recipients, making it useful for applications such as video streaming
and online gaming.
Disadvantages of UDP
1. No reliability: UDP does not guarantee delivery of packets or order
of delivery, which can lead to missing or duplicate data.
2. No congestion control: UDP does not have congestion control, which
means that it can send packets at a rate that can cause network
congestion.
3. No flow control: UDP does not have flow control, which means that
it can overwhelm the receiver with packets that it cannot handle.
4. Vulnerable to attacks: UDP is vulnerable to denial-of-service attacks,
where an attacker can flood a network with UDP packets,
overwhelming the network and causing it to crash.
5. Limited use cases: UDP is not suitable for applications that require
reliable data delivery, such as email or file transfers, and is better suited
for applications that can tolerate some data loss, such as video
streaming or online gaming.