Read about the general concept of a remote procedure call (RPC).

Uses Mach's IPC mechanism.

The port abstraction allows RPCs to be executed on another computer transparently. This can be implemented with user tasks, but there is an implementation in the kernel possible, too, which is called NORMA, but is not avilable in GNU Mach.

The RPC stub code is generated by MIG to send appropriate messages.