LLMpediaThe first transparent, open encyclopedia generated by LLMs

datagram

Generated by DeepSeek V3.2
Note: This article was automatically generated by a large language model (LLM) from purely parametric knowledge (no retrieval). It may contain inaccuracies or hallucinations. This encyclopedia is part of a research project currently under review.
Article Genealogy
Parent: Bob Kahn Hop 4
Expansion Funnel Raw 47 → Dedup 0 → NER 0 → Enqueued 0
1. Extracted47
2. After dedup0 (None)
3. After NER0 ()
4. Enqueued0 ()
datagram
NameDatagram
Osi layerNetwork layer

datagram. In computer networking, a datagram is a basic transfer unit associated with a packet-switched network. It is a self-contained, independent entity of data carrying sufficient information to be routed from a source to a destination computer without reliance on earlier exchanges between the source and the destination or the network infrastructure. This connectionless approach is a fundamental characteristic of the Internet Protocol and underpins the operation of many modern communication protocols.

Definition and characteristics

A datagram is defined by its connectionless and stateless nature, meaning each unit is forwarded based on information contained within itself, without prior establishment of a dedicated path or session. This design is central to the operation of the Internet Protocol, specifically IPv4 and IPv6, which treat each datagram as an independent entity. Key characteristics include **unreliable delivery**, as the protocol makes no guarantees that a datagram will arrive at its intended destination host or will arrive in the correct sequence relative to other datagrams. This model promotes simplicity and efficiency within the network core, delegating responsibilities for reliability, when required, to higher-layer protocols such as the Transmission Control Protocol operating in the transport layer.

Structure and format

The structure of a datagram is defined by the specifications of the protocol that uses it. In the context of the Internet Protocol, an IP datagram consists of a **header** and a **payload**. The header contains all necessary control information for routing and delivery, including critical fields such as the source address, destination address, time to live, and a header checksum. The payload carries the actual data from the upper-layer protocol, which could be a segment from Transmission Control Protocol or a User Datagram Protocol message. The format is strictly defined by documents published by the Internet Engineering Task Force, such as RFC 791 for IPv4 and RFC 8200 for IPv6, ensuring global interoperability across diverse network hardware from vendors like Cisco Systems and Juniper Networks.

Protocols and usage

The primary protocol employing datagrams is the Internet Protocol, which forms the foundation of the global Internet. At the transport layer, the User Datagram Protocol is explicitly designed as a datagram service, providing application multiplexing and integrity verification via a checksum while maintaining the connectionless paradigm. This makes User Datagram Protocol ideal for time-sensitive applications like voice over IP, online gaming, and Domain Name System queries. Other protocols that utilize a datagram model include the General Packet Radio Service in mobile telecommunications and various link layer protocols in local area network technologies. The simplicity of datagram transmission is also exploited in multicast and broadcast communication scenarios.

Comparison with other transmission units

Datagrams are often contrasted with transmission units that rely on **connection-oriented** communication. The most direct comparison is between the User Datagram Protocol and the Transmission Control Protocol; while User Datagram Protocol uses datagrams for stateless communication, Transmission Control Protocol establishes a virtual circuit, ensuring reliable, ordered delivery through mechanisms like sequence numbers and acknowledgments. At lower layers, a **frame**, such as an Ethernet frame, is a data unit specific to the data link layer and is confined to a single network segment. A **packet** is a more general term that can refer to a datagram at the network layer or other protocol data units, but in strict OSI model terminology, a datagram is a specific type of network layer packet.

Security considerations

The stateless and connectionless nature of datagram transmission introduces distinct security challenges. A primary concern is **packet spoofing**, where an attacker forges the source address in a datagram's header to launch attacks like a denial-of-service attack or to bypass access control list filters. Datagrams are also susceptible to **sniffing** and **replay attacks** if the payload is not encrypted. To mitigate these risks, security protocols such as the IPsec suite, developed with standards from the Internet Engineering Task Force, can be employed to provide authentication, integrity, and confidentiality at the network layer. Furthermore, network perimeter defenses like firewalls from companies like Palo Alto Networks and intrusion detection systems are crucial for monitoring and filtering malicious datagram traffic. Category:Network layer protocols Category:Internet Protocol Category:Data transmission