Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.01 KB

udp.md

File metadata and controls

27 lines (18 loc) · 1.01 KB

UDP

UDP is an alternative to TCP for establishing low-latency, loss-tolerating connections between applications.

UDP datagrams are treated as a fire-and-forget protocol, that is the sender cannot be sure the datagram was received intact.

UDP is considered a connectionless protocol because it doesn't require a virtual circuit to be established before any data transfer occurs.

On top of the IP layer, UDP provides two services:

  1. port numbers to distinguish between user requests
  2. checksum capability to verify data arrived intact

UDP Header

  • source port number (number of the sender)
  • destination port number (the port the datagram is addressed to)
  • length (length in bytes of the UDP header and any encapsulated data)
  • checksum (used in error checking)

UDP does provide two important functions for us

  1. it operates at near line speed
  2. there is no protocol delay

Resources