Skip to main content

Tentxa layer Network ( Connection Oriented and Connectionless Services )

Connection Oriented and Connectionless Services

These are the two services given by the layers to layers above them. These services are :
  1. Connection Oriented Service
  2. Connectionless Services

Connection Oriented Services

There is a sequence of operation to be followed by the users of connection oriented service. These are :
  1. Connection is established
  2. Information is sent
  3. 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

  1. In connection oriented service authentication is needed while connectionless service does not need any authentication.
  2. 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.
  3. Connection oriented service is more reliable than connectionless service.
  4. Connection oriented service interface is stream based and connectionless is message based.

Service Primitives

A service is specified by a set of primitives. A primitive means operation. To access the service a user process can access these primitives. These primitives are different for connection oriented service and connectionless service. There are five types of service primitives :
  1. LISTEN : When a server is ready to accept an incoming connection it executes the LISTEN primitive. It blocks waiting for an incoming connection.
  2. CONNECT : It connects the server by establishing a connection. Response is awaited.
  3. RECIEVE: Then the RECIEVE call blocks the server.
  4. SEND : Then the client executes SEND primitive to transmit its request followed by the execution of RECIEVE to get the reply. Send the message.
  5. DISCONNECT : This primitive is used for terminating the connection. After this primitive one can’t send any message. When the client sends DISCONNECT packet then the server also sends the DISCONNECT packet to acknowledge the client. When the server package is received by client then the process is terminated.

Connection Oriented Service Primitives

There are 4 types of primitives for Connection Oriented Service :
CONNECTThis primitive makes a connection
DATA, DATA-ACKNOWLEDGE, EXPEDITED-DATAData and information is sent using thus primitive
CONNECTPrimitive for closing the connection
RESETPrimitive for reseting the connection

Connectionless Oriented Service Primitives

There are 4 types of primitives for Connectionless Oriented Service:
UNIDATAThis primitive sends a packet of data
FACILITY, REPORTPrimitive for enquiring about the performance of the network, like delivery statistics.

Relationship of Services to Protocol

Services

These are the operations that a layer can provide to the layer above it. It defines the operation and states a layer is ready to perform but it does not specify anything about the implementation of these operations.

Services showing SERVICE ACCESS POINTS

Protocols

These are set of rules that govern the format and meaning of frames, messages or packets that are exchanged between the server and client.

Comments

Popular posts from this blog

Tentxa Layer Network ( OSI Models and Network layers )

____________________________________________________________________ Various types of OSI models and Network layers  Issued by Tentxa layer network

Tentxa Layer Network ( Comparison of OSI Reference Model and TCP/IP Reference Model )

Comparison of OSI Reference Model and TCP/IP Reference Model Following are some major differences between OSI Reference Model and TCP/IP Reference Model, with diagrammatic comparison below. OSI(Open System Interconnection) TCP/IP(Transmission Control Protocol / Internet Protocol) 1. OSI is a generic, protocol independent standard, acting as a communication gateway between the network and end user. 1. TCP/IP model is based on standard protocols around which the Internet has developed. It is a communication protocol, which allows connection of hosts over a network. 2. In OSI model the transport layer guarantees the delivery of packets. 2. In TCP/IP model the transport layer does not guarantees delivery of packets. Still the TCP/IP model is more reliable. 3. Follows vertical approach. 3. Follows horizontal approach. 4. OSI model has a separate Presentation layer and Session layer. 4. TCP/IP does not have a separate Presentation layer or Session layer. 5. OSI is a reference mode...