Remote Procedure Call (RPC) protocols

RPC is used to uniformly call a procedure (a function) on a remote machine. (It can usually also be used between processes on the same machine.)

This should be possible regardless of the different platform-specific details (like actual data sizes, endianness, padding, ...). RPC mechanisms include a "marshalling" function to gather up the arguments to the procedure and send them from the caller to the callee in a standardized format, or to indicate in the call message the format being used. The callee will "un-marshall" the received arguments and supply them to the code that executes the call. Similarly, the results of the call are marshalled into a standardized format before being sent from the callee back to the caller, and un-marshalled and supplied to the caller after being received. XXX - a diagram might explain this much better

Often the various RPC mechanisms provide additional services, such as grouping several related functions in a so called program (ONC-RPC) or interface (DCE/RPC).

The "traditional" RPC services are not well suited for the internet (e.g. dynamically choosing port numbers causing problems with firewalls). New RPC-like protocols are called Web services and often use HTTP for transport and XML for the content (i.e., using XML as the standardized format for marshalling arguments and results).

There are several different RPC mechanisms available:

External links


Imported from https://wiki.wireshark.org/RPC on 2020-08-11 23:24:03 UTC