In this tutorial, we’ll discuss datagram networks. We’ll present the key features with an example.
Finally, we’ll highlight some important advantages and disadvantages of datagram networks.
2. Introduction to Datagram Networks
Datagram networks are a type of computer network in which data is transmitted in the form of discrete packets. Furthermore, these discrete packets are known as datagrams. Additionally, we can send datagrams without establishing a dedicated connection between the sender and receiver.
Each datagram contains a header that includes the source and destination addresses. Additionally, it also contains other information necessary for routing the packet to its destination.
In a datagram network, we treat each packet as an independent unit. Furthermore, we forward each packet based on its destination address.
Additionally, it’s important to note that datagram networks are different than circuit-switched networks. We need to establish a dedicated connection between the sender and receiver in a circuit-switched network before sending data packets.
We use datagram networks in a variety of contexts, including the Internet and other packet-switched networks. Furthermore, they’re particularly well-suited for applications that require high levels of flexibility, such as real-time multimedia streaming and online gaming.
However, as we treat each packet independently, datagram networks can be susceptible to packet loss. Additionally, it increases network congestion. Hence, the use of datagram networks can result in reduced performance and reliability.
Let’s explore some key features of datagram networks.
Datagram networks are connectionless. Therefore, there’s no pre-established connection between the sender and receiver. Additionally, each packet is transmitted independently and treated as a separate entity.
These networks use packet switching to transmit data. Therefore, each packet contains the necessary information to route it to its destination.
Furthermore, datagram networks provide an unreliable delivery service, which means that packets may be lost, duplicated, or delivered out of order. Hence, there’s no guarantee that all packets will reach their destination.
These networks have a simple network architecture. Hence, they don’t require the maintenance of connection state information between network nodes. This makes them easy to implement and scale.
Finally, datagram networks can support various applications, including real-time multimedia streaming, online gaming, and peer-to-peer file sharing.
Let’s take a look at an example where we send four datagram packets from Computer 1 to Computer 2:
We first divide a message into four datagram packets. Next, all the datagram packets take different routes. Routes to reach the destination aren’t fixed. Finally, Computer 2 receives the data packets that are not in the same order sent from Computer 1.
Hence, in order to retrieve the original message, Computer 2 needs to reorder the received packets in the same order sent from Computer 1. It’s also important to note that, in datagram networks, the packets may get lost in the transition. Additionally, the receiver may receive duplicate packets.
5. Advantages and Disadvantages
Let’s take a look at the table that contains important advantages and disadvantages of datagram networks:
In this tutorial, we discussed datagram networks. We presented the key features with an example. Finally, we highlighted some important advantages and disadvantages of datagram networks.