KIM COMPUTER


UDP (User Datagram Protocol) Basics

UDP (User Datagram Protocol) operates on top of the Internet Protocol (IP) and is a connectionless and unreliable protocol, prioritizing speed and efficiency over guaranteed delivery, unlike TCP.

It is used when speed and low latency are more important than accuracy (e.g., real-time streaming, online gaming, DNS queries).


1. Core Principle: Simplicity and Speed

UDP maximizes communication speed by eliminating all reliability mechanisms (handshakes, acknowledgements, retransmissions, etc.) found in TCP.

Key Difference: UDP is much lighter and faster than TCP, but it risks data loss or out-of-order arrival.


2. Key Features of UDP

Feature Description
Connectionless There is no setup or termination procedure; data is simply transmitted.
Unreliable Does not guarantee successful delivery of data.
Low Overhead Its header is very simple, resulting in less overhead and faster speed compared to TCP.
Datagram The unit of data transfer is called a 'datagram,' which is treated as an independent message.

3. Key Applications of UDP