Remote Procedure Call in Distributed System

PoojaBele1 3,023 views 10 slides Oct 21, 2019
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

Presentation to give description about the remote procedure call in distributed systems
Presentation covers some points on remote procedure call in distributed systems


Slide Content

Remote Procedure Calls(RPC) in D Istributed Operating Systems By: Pooja Prashant Bele Department of Computer Science AND ENGINEERING

INDEX Introduction The RPC Model Transparency of RPC Implementing RPC Mechanism RPC Messages Marshaling Arguments and Results Conclusion

Introduction RPC allows programs to call procedures located on other machines. Information can be transported from caller to callee in the parameters and come back in the procedure result No message passing at all visible to the programmer Special case of message-passing model Features 1)simple call syntax and similarity to local procedure calls 2)its ease if use, efficiency and generality 3) it can be used as an IPC mechanism between -Processes on different machines -Different Processes on same machines

The RPC Model

Transparency of RPC There are two types of transparencies Syntactic Transparency Semantic Transparency Syntactic Transparency:- It means that a RPC should have exactly same syntax as a local procedure call Semantic Transparency:- It means that semantic of a RPC are identical to those of local procedure call.

Implementing RPC Mechanism

Marshaling Arguments and Results Marshaling basically involves the following steps Taking the arguments or the results that will form the message data to be sent to the remote process. Encoding the message data of step 1 above on the senders computer. This encoding process involves the conversion of program object into a stream form that is suitable for transmission and placing them into a message buffer. Decoding the message data on the receivers computer. This decoding process involves the reconstruction of program objects from the message data that was received in stream form.

Conclusion RPC provides programmers with a familiar mechanism for building distributed systems. RPC facility is not an universal panacea for all types of distributed applications, it does provide a valuable communication mechanism that is suitable for building a fairly large number of distributed applications.