











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
The Remote Procedure Call (RPC) mechanism, which allows programs to call procedures located on other machines. The RPC enables a call to be made to a procedure that does not reside in the address space of the calling process. the steps involved in a remote procedure call and the role of the client and server stubs. It also explains the encoding and decoding of messages in RPC, known as marshaling and unmarshaling.
Typology: Slides
1 / 19
This page cannot be seen from the preview
Don't miss anything!
RPC allows programs to call procedures located on other machines. When a process on machine A calls' a procedure onmachine^ B,^ the^ calling^ process^ on^ A^ is^ suspended,^ and^ execution^ of the called procedure takes place on B. Information can be transported from the caller to the callee in the parameters and can come back in the procedure result. No message passing at all is visible to the programmer. This method is known as Remote Procedure Call, or often just RPC.
The RPC enables a call to be made to a procedure that does not reside in the address space of the calling process. (^) Since the caller and the callee processes have disjoint address space, the remote procedure has no access to data and variables of the callers environment. (^) RPC facility uses a message-passing scheme for information exchange between the caller and the callee processes. (^) On arrival of request message, the server process ◦ (^) extracts the procedure’s parameters, ◦ (^) computes the result, ◦ (^) sends a reply message, and ◦ (^) then awaits the next call message.
Difference between remote procedure calls and local procedure calls:
the involvement of communication network.
Stub ◦ (^) Provide a normal / local procedure call abstraction by concealing the underlying RPC mechanism. ◦ (^) A separate stub procedure is associated with both the client and server processes. ◦ (^) To hide the underlying communication network, RPC communication package known as RPC Runtime is used on both the sides.
◦ (^) Retransmission, ◦ (^) Acknowledgement, ◦ (^) Routing and ◦ (^) Encryption.
RPCRuntime, it unpacks it and makes a perfectly normal call to invoke the appropriate procedure in the server. ◦ On receipt of the result of procedure execution from the server, it unpacks the result into a message and then asks the local RPCRuntime to send it to the client stub.
To summarize, a remote procedure call occurs in the following steps: 1.The client procedure calls the client stub in the normal way. 2.The client stub builds a message and calls the local operating system. 3.The client's as sends the message to the remote as. 4.The remote as gives the message to the server stub.