![]() |
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-BasedUDP is a datagram-oriented protocol, which means it sends data in small packets called datagrams independently of one another. No HandshakingUnlike 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 CommunicationEach 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 CorrectionUDP does not provide mechanisms for error checking, packet ordering, or data retransmission. It’s the application’s responsibility to handle these concerns if necessary. EfficiencyThe lack of connection overhead makes UDP efficient for scenarios where speed is more critical than reliability, such as streaming, gaming, or DNS lookups. ConclusionUDP 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. |
Reffered: https://www.geeksforgeeks.org
Computer Networks |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |