Datagram

From HandWiki
Short description: Basic data transfer unit associated with a packet-switched network

A datagram is a basic transfer unit associated with a packet-switched network. Datagrams are typically structured in header and payload sections. Datagrams provide a connectionless communication service across a packet-switched network. The delivery, arrival time, and order of arrival of datagrams need not be guaranteed by the network.

History

See also: Packet switching#History

In the early 1970s, the term datagram was created by combining the words data and telegram by the CCITT rapporteur on packet switching,[1] Halvor Bothner-By.[2][3] While the word was new, the concept had already a long history.

In 1964, Paul Baran described, in a RAND Corporation report, a hypothetical military network having to resist a nuclear attack. Small standardized message blocks, bearing source and destination addresses, were stored and forwarded in computer nodes of a highly redundant meshed computer network.[4] "The network user who has called up a virtual connection to an end station and has transmitted messages ... might also view the system as a black box providing an apparent circuit connection".

In 1967, Donald Davies published a seminal article in which he introduced the packet and packet switching.[5] His proposed core network is similar to the one proposed by Paul Baran though developed independently. He assumes that "all users of the network will provide themselves with some kind of error control". His target is a "common-carrier communication network". To support remote access to computer services by user terminals, which at that time were transmitted character by character, he included, at the network periphery, interface computers that convert character flows into packet flows and vice versa.

In 1970, Lawrence Roberts and Barry D. Wessler published an article about ARPANET, the first multi-node packet-switching network.[6] An accompanying paper described its switching nodes (the IMPs) and its packet formats.[7] The network core performed datagram switching as in Baran's and Davies' model, but the end-to-end principle was applied at its periphery to deal with datagram losses and reordering. A reliable message transfer service was thus offered to user computers, thus greatly simplifying the network design.

Roberts presented the idea of packet switching to the communication professionals and faced anger and hostility. Before ARPANET was operating, they argued that the router buffers would quickly run out. After the ARPANET was operating, they argued packet switching would never be economic without the government subsidy. Baran faced the same rejection and thus failed to convince the military to construct a packet-switching network.[8]

In 1973, Louis Pouzin presented his design for CYCLADES, the first large-scale network implementing the pure Davies datagram model.[9] The CYCLADES team has thus been the first to tackle the highly complex problem of providing user applications a reliable virtual circuit service[10] while using an end to end network service known to possibly produce non-negligible datagram losses and reordering. Although Pouzin's concern "in a first stage is not to make breakthrough [sic] in packet switching technology, but to build a reliable communications tool for Cyclades",[9] two members of his team, Hubert Zimmerman and Gérard Le Lann, made significant contributions to the design of Internet's TCP that Vint Cerf, its main designer, acknowledged.REFERENCE FOR RFC675 IS NOT DEFINED YET. You are invited to add it here.

In 1981, the Defense Advanced Research Projects Agency (DARPA) issued the first specification the Internet Protocol (IP). It introduced a major evolution of the datagram concept: fragmentation.'REFERENCE FOR RFC791 IS NOT DEFINED YET. You are invited to add it here. With fragmentation, some parts of the global network may use large packet size (typically local area networks to minimize processing overhead), while some others may impose smaller packet sizes (typically wide area networks to minimize response time). Network nodes may fragment a datagram into several smaller packets.

In 1999, the Internet Engineering Task Force (IETF) sanctioned the use of the already largely deployed network address translation (NAT) whereby each public address can be shared by several private devices.REFERENCE FOR RFC2663 IS NOT DEFINED YET. You are invited to add it here. With it, the forthcoming Internet Address exhaustion was delayed, leaving enough time to introduce IPv6, the new generation of Internet Protocol supporting longer addresses. The initial principle of full end to end network transparency to datagrams was for this relaxed: NAT nodes had to manage per-connection states, making them in part connection oriented.

In 2015, the IETF upgraded its informational 1998 RFC 2309 that datagram switching nodes perform active queue management (AQM), to make it a stronger and more detailed best current practice recommendation through the publication of RFC 7567. While the initial datagram queueing model was simple to implement and needed no more tuning than queue lengths, support of more sophisticated and parametrized mechanisms were found necessary "to improve and preserve Internet performance" (RED, ECN etc.). Further research on the subject was also called for, with a list of identified items.REFERENCE FOR RFC7567 IS NOT DEFINED YET. You are invited to add it here.

Definition

The term datagram is defined as follows:REFERENCE FOR RFC1594 IS NOT DEFINED YET. You are invited to add it here.

"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."
—RFC 1594

A datagram 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.[11]

Datagram service is often compared to a mail delivery service; the user only provides the destination address but receives no guarantee of delivery, and no confirmation upon successful receipt. Datagram service is therefore considered unreliable. Datagram service routes datagrams without first creating a predetermined path. Datagram service is therefore considered connectionless. There is also no consideration given to the order in which it and other datagrams are sent or received. In fact, many datagrams in the same group can travel along different paths before reaching the same destination in a different order.[12]

Structure

Each datagram has two components, a header and a data payload. The header contains all the information sufficient for routing from the originating equipment to the destination without relying on prior exchanges between the equipment and the network. Headers may include source and destination addresses as well as a type field. The payload is the data to be transported. This process of nesting data payloads in a tagged header is called encapsulation.

Examples

Datagram nomenclature
OSI layer Name
Layer 4 Data segment
Layer 3 Data packet
Layer 2 Ethernet frame (IEEE 802.3)
Wireless LAN frame (IEEE 802.11)
Layer 1 Chip (CDMA)

Internet Protocol

The Internet Protocol (IP) defines standards for several types of datagrams. The internet layer is a datagram service provided by an IP. For example, UDP is run by a datagram service on the internet layer. IP is an entirely connectionless, best effort, unreliable, message delivery service. TCP is a higher level protocol running on top of IP that provides a reliable connection-oriented service.

See also

References

  1. "The CCITT studies packet switching as part of public data network development". https://www.deepdyve.com/lp/association-for-computing-machinery/the-ccitt-studies-packet-switching-as-part-of-public-data-network-TU05NzohPP. 
  2. Rémi Després (November 2010). "X.25 virtual circuits — Transpac in France — Pre-Internet data networking". IEEE Communications Magazine 48 (10). doi:10.1109/MCOM.2010.5621965. https://ieeexplore.ieee.org/document/5621965. 
  3. "Comment j'ai inventé le Datagramme" (in fr). http://old.open-root.eu/la-doc/histoire-des-reseaux/le-datagramme/. 
  4. "On distributed communications networks". http://pages.cs.wisc.edu/~akella/CS740/F08/740-Papers/Bar64.pdf. 
  5. "A digital communication network for computers giving rapid response at remote terminals". https://people.mpi-sws.org/~gummadi/teaching/sp07/sys_seminar/how_did_erope_blow_this_vision.pdf. 
  6. Lawrence Roberts; Barry D. Wessler (1970). "Computer network development to achieve resource sharing". Proceedings of the May 5-7, 1970, spring joint computer conference on - AFIPS '70 (Spring). p. 543. doi:10.1145/1476936.1477020. https://www.researchgate.net/publication/234815171. 
  7. Frank E Heart; R E Kahn; Severo M Ornstein; William R Crowther; David C Walden (1970). "The interface message processor for the ARPA computer network". Proceedings of the May 5-7, 1970, spring joint computer conference on - AFIPS '70 (Spring). p. 551. doi:10.1145/1476936.1477021. https://dl.acm.org/doi/10.1145/1476936.1477021. 
  8. Roberts, L. (1988-01-01), "The arpanet and computer networks", A history of personal workstations (New York, NY, USA: Association for Computing Machinery): pp. 141–172, doi:10.1145/61975.66916, ISBN 978-0-201-11259-7, https://doi.org/10.1145/61975.66916, retrieved 2023-11-30 
  9. 9.0 9.1 Pouzen, Louis. "Presentation and major design aspects of the Cyclades network". http://rogerdmoore.ca/PS/CYCLB.html. 
  10. Extending TCP for transactions -- Concepts, doi:10.17487/RFC1379, RFC 1379, https://tools.ietf.org/html/rfc1379 
  11. Tanenbaum, Andrew S.; Wetherall, David J. (2011). Computer networks, fifth edition. Pearson. p. 59. ISBN 978-0-13-255317-9. 
  12. Packet Reordering Metrics, November 2006, doi:10.17487/RFC4737, RFC 4737, https://tools.ietf.org/html/rfc4737