A datagram is, to quote the Internet's Request for Comments 1594, "a self-contained, independent entity of data carrying sufficient information to be routed from the source to the destination computer without reliance on earlier exchanges between this source and destination computer and the transporting network." The term is used in several well-known communication protocols, including the User Datagram Protocol and AppleTalk.

A very similar term, packet, is used in the Internet Protocol and other protocols related to the Internet.

A datagram or packet needs to be self-contained without reliance on earlier exchanges because there is no connection of fixed duration between the two communicating points as there is, for example, in most voice telephone conversations. (This kind of protocol is referred to as connectionless.)

This was last updated in April 2007

Dig Deeper on Network protocols and standards