UDP is a transport layer protocol that provides an unreliable datagram service. It is positioned directly above IP in the TCP/IP protocol stack. UDP packets contain a header with source and destination port numbers as well as length fields, but do not establish connections, provide sequencing, or guarantee delivery like TCP. Well-known ports are assigned to common UDP applications like DNS, time synchronization, and trivial file transfer.