Remote Procedure Call Protocol (RPC) is a protocol that requests services from remote computer programs over a network without understanding the underlying network technology. The RPC protocol assumes that some transmission protocols, such as TCP or UDP, carry information data between communication programs. In the OSI network communication model, RPC spans the transport layer and application layer. RPC makes it easier to develop applications, including distributed network applications.
Basic Introduction RPC adopts the Client/Server mode. A request is a client, and a service provider is a server. First, the client calls the process to send a call information with process parameters to the service process, and then waits for the response information. On the server side, the process remains asleep until the call information reaches. When a call Information arrives, the server obtains the process parameters, calculates the results, sends the reply information, and waits for the next call Information. Finally, the client calls the process to receive the reply information and obtain the process results, then, call and execute to continue. Multiple RPC modes and execution are available. Initially proposed by Sun. The IETF onc Charter revised the sun version, making the onc rpc protocol a standard IETF protocol. The most common mode and execution is the distributed computing environment (DCE) based on open software ). 2Working Principle
During running, the internal operations of a client calling the server's RPC are roughly as follows: 1. call the client handle; execute the transfer parameter 2. call the local system kernel to send network messages. 3. send messages to a remote host. 4. obtain the message from the server handle and obtain the parameter 5. execute remote process 6. the execution process returns the result to the server handle. the server handle returns the result and calls the remote system kernel 8. message returned to the local host 9. the client handle receives messages from the kernel 10. data http://baike.baidu.com/view/7287257.htm returned by the customer receiving handle