Connection Oriented VS Connectionless service
A Connectionless service is a data communication between two nodes where the sender sends
data without ensuring whether the receiver is available to receive the data. Here, each data packet
has the destination address and is routed independently irrespective of the other packets. Thus the
data packets may follow different paths to reach the destination. There’s no need to setup
connection before sending a message and relinquish it after the message has been sent. The data
packets in a connectionless service are usually called datagrams.
Advantages of Connectionless Services
1. It has low overhead.
2. It enables to broadcast and multicast messages, where the sender sends messages to
multiple recipients.
3. It is simpler and has low overhead.
4. It does not require any time for circuit setup.
5. In case of router failures or network congestions, the data packets are routed through
alternate paths. Hence, communication is not disrupted.
Disadvantages of Connectionless Services
1. It is not a reliable connection. It does not guarantee that there will not be a loss of packets,
wrong delivery, out – of – sequence delivery or duplication of packets.
2. Each data packet requires longer data fields since it should hold all the destination address
and the routing information.
3. They are prone to network congestions.
A connection-oriented service is one that establishes a dedicated connection between the
communicating entities before data communication commences. It is modeled after the telephone
system. To use a connection-oriented service, the user first establishes a connection, uses it and
then releases it. In connection-oriented services, the data streams/packets are delivered to the
receiver in the same order in which they have been sent by the sender.
Advantages of Connection-Oriented Services
1. This is mostly a reliable connection.
2. Congestions are less frequent.
3. Sequencing of data packets is guaranteed.
4. Suitable for long connection.
Disadvantages of Connection-Oriented Services
1. Resource allocation is needed before communication. This often leads to under-utilized
network resources.
2. The lesser speed of connection due to the time is taken for establishing and relinquishing the
connection.
3. In the case of router failures or network congestions, there are no alternative ways to
continue communication.