UDP

Properties

Uses Connectionless communication model.

Unreliable network protocol

Integrity verification - UDP checksum

Why use UDP?

Fast

In scenarios where we do not need error checking or correction, we could use it.

Otherwise in other protocols like TCP/IP , we would have extra overhead to process the packets.

Control over reliability on app level.

Attributes

  • Transaction oriented - query - response
  • datagrams - model ip tunneling / rpc / nfs
  • simple - can bootstrap with it, without having a full protocol stack (e.g. DHCP, FTP)
  • Stateless
  • No retransmission delay - real-time app (VoIP, games)
  • multicast support

Implementation

udp ports

udp datagram

UDP checksum

Applications

DNS resolution

Routing information Protocol (RIP)

Dynamic Host Configuration Protocol (DHCP)