Remote Procedure Call in Distributed System
Remote Procedure Call in Distributed System
4.Server stub
Server stub is responsible for the following two task:
On the receipt of call request message from the local remote procedure calls runtime, it unpacks it and make
perfectly normal call to invoke the appropriate procedure in the server.
The server When we start the server, the server stub runs and puts the
process in the background (don’t forget to run PS to find it and kill it
when you no longer need it) . It creates a socket and binds any local port
to the socket. It then calls a function in the RPC library, svc_register, to
register the program number and version. This contacts the port
mapper. The port mapper is a separate process that is usually started at
system boot time. It keeps track of the port number, version number,
and program number. On UNIX System V release , this process is rpcbind.
On earlier systems, it was known as Portman. The server then waits for a
client request (i.e., it does a listen).
Set by jemal Mmd 14
Step Of Remote Procedure Calls
Clearly, there is no architectural support for making remote procedure
calls.
A local procedure call generally involves placing the calling parameters
on the stack and executing some form of a call instruction to the address
of the procedure.
The procedure can read the parameters from the stack, do its work,
place the return value in a register and then return to the address on top
of the stack.
None of this exists for calling remote procedures.
We’ll have to simulate it all with the tools that we do have, namely local
Set by jemal Mmd 15
Count..
- Server independent.
- Process-oriented and thread oriented models supported by RPC.
- The development of distributed systems is simple because it uses
straightforward semantics and easier.
- Like the common communications between the portions of an application, the
development of the procedures for the remote calls is quite general.
- The procedure calls preserves the business logics which is apt for the
application.
- Enables the usage of the applications used in the distributed environment, no
only in the local environment.
RPC provides interoperability between CORBA ORB implementations.
- A lightweight RPC protocol permits efficient implementations
Set by jemal Mmd 21
Count…
Remote procedure calls support process oriented and thread oriented
models.
The internal message passing mechanism of RPC is hidden from the
user.
The effort to re-write and re-develop the code is minimum in remote
procedure calls.
Remote procedure calls can be used in distributed environment as well
as the local environment.
Many of the protocol layers are omitted by RPC to improve performance
It is not a standard.
There is no flexibility in RPC for hardware architecture.
It is only interaction based.
There is an increase in costs because of remote procedure call
T
al M
Je m
by
Set