Open In App

Service Primitives

Service generally includes set of various primitives. A primitive simply means Operations. A Service is specified by set of primitives that are available and given to user or other various entities to access the service. All these primitives simply tell the service to perform some action or to report on action that is taken by peer entity. Each of the protocol that communicates in layered architecture also communicates in peer-to-peer manner with some of its remote protocol entity. Primitives are called calling functions between the layers that are used to manage communication among the adjacent protocol layers i.e., among the same communication node. The set of primitives that are available generally depends upon the nature of the service that is being provided. 

Classification of Service Primitives :



Primitive Meaning
Request It represent entity that wants or request service to perform some action or do some work (requesting for connection to remote computer).
Indication It represent entity that is to be informed about event (receiver just have received request of connection).
Response It represents entity that is responding to event (receiver is simply sending the permission or allowing to connect).
Confirm It represent entity that acknowledges the response to earlier request that has come back (sender just acknowledge the permission to get connected to the remote host).

 

In the above diagram, these four primitives work as following :



Parameters of Service Primitives : Some of the Service Primitives need parameters. These are given below :

Primitives of Connection-Oriented Service :

Primitive Meaning
Listen When server is ready to accept request of incoming connection, it simply put this primitive into action. Listen primitive simply waiting for incoming connection request.
Connect This primitive is used to connect the server simply by creating or establishing connection with waiting peer.
Accept This primitive simply accepts incoming connection from the peer.
Receive These primitive afterwards block the server. Receive primitive simply waits for incoming message.
Send This primitive is put into action by the client to transmit its request that is followed by putting receive primitive into action to get the reply. Send primitive simply sends or transfer the message to the peer.
Disconnect This primitive is simply used to terminate or end the connection after which no one will be able to send any of the message.

Primitives of Connectionless Service :

Primitive Meaning
Unitdata Unitdata primitive is simply required to send packet of data or information.
Facility, Report This primitive is required for getting details about the performance and working of the network such as delivery statistics or report.
Article Tags :