UDP

UDP

Alongside TCP, UDPUser Datagram Protocol is the other most common communication protocol. It provides a simple and lightweight connectionless communication model. Being connectionless, a very minimal amount of protocol mechanisms come into play when sending packets. While checksums are still used for data integrity, UDP is favored in real-time applications, as it avoids the overhead of setting up a connection, error-checking, and retransmission delays.

The dgram module

The dgram module provides an implementation of UDP Datagram sockets. These sockets are required for UDP communication.

Get hands-on with 1400+ tech skills courses.