When a server (service) using rpc starts, it registers with rpcbind (portmapper) process. It can either bind to a port it selected itself and register, or let rpcbind allocates a port afterwhich the server will bind itself to.
When a client need to use rpc server, it send request to rpcbind which will return the port used by the server sought. The rpc library in client and server will handle encoding the request into rpc format and decide.
Rpc client identify a rpc server using a rpc number that coded in /etc/rpc. The port is mapped in /etc/servcies
No comments:
Post a Comment