Open In App

How does UDP Work Without Connection?

Last Updated : 21 Mar, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Answer: By sending data packets directly to the recipient without establishing a prior connection, making it faster but less reliable than connection-oriented protocols.

Datagram-Based

UDP is a datagram-oriented protocol, which means it sends data in small packets called datagrams independently of one another.

No Handshaking

Unlike TCP, UDP does not perform a handshake to establish a connection before data transmission begins. This absence of a connection setup phase allows UDP to send data immediately.

Stateless Communication

Each UDP packet is sent without knowledge of the previous or subsequent packets, making the protocol stateless. There’s no tracking of the connection state or data packet sequence.

No Error Correction

UDP does not provide mechanisms for error checking, packet ordering, or data retransmission. It’s the application’s responsibility to handle these concerns if necessary.

Efficiency

The lack of connection overhead makes UDP efficient for scenarios where speed is more critical than reliability, such as streaming, gaming, or DNS lookups.

Conclusion

UDP enables rapid data transmission by eliminating the need for connection establishment and maintenance, making it ideal for time-sensitive applications where occasional data loss is acceptable.


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads