Remote Procedure Call: Giovanni Agosta
Remote Procedure Call: Giovanni Agosta
Giovanni Agosta
Outline
Introduction
computer_1
main
computer_1 computer_2
main
remote
procedure procedure
call call
return return
from from
procedure remote
procedure
rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
What to do?
No need to worry about mutual exclusion
When using UPD, remote procedures need to be idempotent
Message Format
Not fixed
Uses External Data Representation (XDR) to provide a
machine-independent data representation
network
Client Client Server Server
encode decode
XDR filter rpc call XDR filter
Overview
Writing calls to the XDR library directly is cumbersome
Use a domain specific language for both XDR and RPC
Use rpcgen compiler to compile XDR and RPC program
specification