* Dynamic RPC - Comments, Suggestions requested
@ 1991-11-07 21:13 Vangati Narender Reddy
0 siblings, 0 replies; only message in thread
From: Vangati Narender Reddy @ 1991-11-07 21:13 UTC (permalink / raw)
Hi folks,
This is to invite your responses, comments(or criticisms, if u like)
to a project I am doing for my Masters Thesis. I am doing my MS in CS
at West Virginia University and have started on this work in May'91.
Things have come to a certain stage that I feel I should know what
others think about the idea.
What is DRPC?
DRPC is a Dynamic RPC system layered on top of the current industrial RPC
implementations which elimates the static compilation process at the client
side. An application on top of DRPC does not need to compile with the client
stub and can make a run-time RPC as long as it can determine, at run-time, the
procedure name and characteristics.
Initially, when the server is written for an RPC application, and is
brought up, it registers it's interface through a command-line parser
with a network directory service.
The characteristics of an RPC_SERVICE are determined by the
1. location
2. RPC protocol
3. Transport protocol
4. Unique identifier
5. Arguments to the procedure
6. Result returned by the procedure.
At run-time this directory service is consulted by the DRPC RTL for resolution
of the procedure characteristics. Then, the particular server specific RPC
protocol is choosen. The data to be passed acros the network is marshalled
accordingly with the protocol, and the call is made through the run-time
library of that host RPC system. The call semantics are identical to the host
RPC system. DRPC does not concern itself with the actual call-making,
semantics, transporting etc.
Ex:-
Assume the server is implemented on top of NCS-RPC.
When DRPC consults the directory server and finds out the RPC protocol is NCS,
all the arguments are marshalled using native NCS marshalling routines and the
NCS run-time library is used to actually make the call.
In another call, if the server protocol is Sun's ONC, the data is marshalled
accordingly in XDR format and ONC's run-time library is used to make the call.
In DRPC, there is no concept of a client stub, and the client links with
the DRPC library. All the client should know is the interface specification
i.e. name, the proper parameters a procedure expects and returns.
Though the call semantics are exactly the same as the particular host RPC
being used at any instant, the syntax differs from a normal procedure call.
A typical DRPC call would look like
drpc(procedure_name, ¶m1, ¶m2, ......., &result);
This is so because no procedure by that name actually exists at the client
side.
Usefullness of DRPC:
The best way is to give an example, I suppose.
Ex:-
Lets take Sun's Network File system(NFS) which is based on RPC.
Let the basic calls supported be
open, close, read, write for files.
At some point, due to some reasons, the decision is taken to replace Sun NFS
with some XYZ file system which offers the same interface but is based on
a different RPC protocol.
Any application which is layered on top of DRPC does not have to come down.
It can continue to make remote calls, blissfully unaware of the changes.
Moreover DRPC increases dynamism and flexibility in a distributed application.
Current Status:
DRPC presently supports Sun RPC and NCS-RPC.
The idea has been to support things which are common to the two protocols
(especially in the area of data types) in order that a consistent interface
is provided to the two systems.
Well, that completes a brief and amateurish attempt to put down the idea
behind this project. Any interested persons, let me know
what u think.
Narender Reddy Vangati
vnr@cerc.wvu.wvnet.edu
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1991-11-07 21:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1991-11-07 21:13 Dynamic RPC - Comments, Suggestions requested Vangati Narender Reddy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox