Connection Oriented and
Connectionless Services
These are the two services given by the
layers to layers above them. These services are :
- Connection Oriented Service
- Connectionless Services
Connection Oriented Services
There is a sequence of operation to be
followed by the users of connection oriented service. These are :
- Connection is established
- Information is sent
- Connection is released
In connection oriented service we have
to establish a connection before starting the communication. When
connection is established we send the message or the information and
then we release the connection.
Connection oriented service is more
reliable than connectionless service. We can send the message in
connection oriented service if there is an error at the receivers
end. Example of connection oriented is TCP (Transmission Control
Protocol) protocol.
Connection Less Services
It is similar to the postal services,
as it carries the full address where the message (letter) is to be
carried. Each message is routed independently from source to
destination. The order of message sent can be different from the
order received.
In connectionless the data is
transferred in one direction from source to destination without
checking that destination is still there or not or if it prepared to
accept the message. Authentication is not needed in this. Example of
Connectionless service is UDP (User Datagram Protocol) protocol.
Difference between Connection
oriented service and Connectionless service
- In connection oriented service authentication is needed while connectionless service does not need any authentication.
- Connection oriented protocol makes a connection and checks whether message is received or not and sends again if an error occurs connectionless service protocol does not guarantees a delivery.
- Connection oriented service is more reliable than connectionless service.
- Connection oriented service interface is stream based and connectionless is message based.
No comments:
Post a Comment