Node is saved as draft in My Content >> Draft
-
Communication Mode in Client Server Model
Communication
Two processes in client-server model can interact in various ways:
Sockets
In this communication technique, Server opens a socket using a port when client request is reached to the server.
Then the client also opens the socket using its port for accepting the response coming from the server.
When the request is reached to server, it is served. It can either be an information sharing or resource request.
Remote Procedure Call
This mechanism is used when the interaction between process is done with the procedure calls.
The client calls the procedure that are in the server.his communication happens in the following way:
-
The client process calls the client stub. It passes all the parameters pertaining to program local to it.
-
All parameters are then packed (marshalled) and a system call is made to send them to other side of the network.
-
Kernel sends the data over the network and the other end receives it.
-
The remote host passes data to the server stub where it is unmarshalled.
-
The parameters are passed to the procedure and the procedure is then executed.
-
The result is sent back to the client in the same manner.
0 Comment(s)