Datagram

Datagram

« Back to Glossary Index
Email
Twitter
Visit Us
Follow Me
LINKEDIN
Share
Instagram

In the context of computer networking, a datagram is a basic unit of data that is transmitted across a network. It’s a self-contained packet of data that contains information about the source, destination, and the content being transferred. It is used in connectionless communication systems, where each message is considered independently of others.

In an internet protocol (IP) network, a datagram is composed of several parts, including:

  1. Header: The header contains information about the datagram, such as the source IP address, the destination IP address, and other metadata. This metadata can include a time-to-live (TTL) value, which determines how many hops the datagram can make before it is discarded, and flags for fragmentation and reassembly if the datagram is too large for one packet.
  2. Payload: This is the actual data being transmitted, such as a piece of a file or a segment of a streaming video. The payload is what the recipient is interested in receiving.
  3. Footer: Some protocols include a footer at the end of the datagram, which can be used for error checking and other functions.

The datagram approach to networking is used in protocols like the User Datagram Protocol (UDP), where speed and simplicity are prioritized over error checking and delivery guarantees. UDP is often used for streaming media, live broadcasts, and other types of data where it’s more important to keep the data flowing than to ensure every single packet is received perfectly.

On the other hand, protocols like the Transmission Control Protocol (TCP) use a different approach, establishing a continuous connection and checking for errors and packet loss, ensuring all data is received and in the correct order, which is suitable for applications such as web browsing and email.

You may also like...