From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,1ba84ed20a8a47d8,start X-Google-Attributes: gidf8c9b,public X-Google-Thread: 101626,1ba84ed20a8a47d8,start X-Google-Attributes: gid101626,public X-Google-Thread: f88e1,1ba84ed20a8a47d8,start X-Google-Attributes: gidf88e1,public X-Google-Thread: 1164f8,1ba84ed20a8a47d8,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 114b0c,1ba84ed20a8a47d8,start X-Google-Attributes: gid114b0c,public X-Google-ArrivalTime: 1991-11-07 14:26:05 PST Path: gmdzi!zeus.ieee.org!sdd.hp.com!cs.utexas.edu!uunet!haven.umd.edu!cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!cathedral!vnr From: vnr@cathedral.cerc.wvu.wvnet.edu (Vangati Narender Reddy) Newsgroups: alt.sys.sun,comp.sys.dec,comp.sys.apollo,comp.sys.hp,comp.unix.questions Subject: Dynamic RPC - Comments, Suggestions requested Keywords: RPC Message-ID: <2471@babcock.cerc.wvu.wvnet.edu> Date: 7 Nov 91 21:13:25 GMT Sender: news@cerc.wvu.wvnet.edu Followup-To: poster Xref: gmdzi alt.sys.sun:56196 comp.sys.dec:25763 comp.sys.apollo:60495 comp.sys.hp:30582 comp.unix.questions:50320 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