minda
Uploaded by
4 SLIDES
190 VIEWS
40LIKES

Understanding Remote Procedure Calls (RPC) Architecture and Implementation

DESCRIPTION

Remote Procedure Calls (RPC) enable one host to invoke a procedure that appears local but runs on another network machine. This architecture establishes a client/server relationship to pass parameters from the calling host to the server process, allowing access to resources unavailable locally. Examples of RPCs include Sun NFS and NIS, often built on TCP or UDP transports. RPC servers register services with a portmapper, and clients query this to identify listening ports for their requests. This seamless interaction facilitates efficient remote resource management.

1 / 4

Download Presentation

Understanding Remote Procedure Calls (RPC) Architecture and Implementation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chap 35 Remote Procedure Calls • RPC allows one host to make a procedure call that appears to be part of a local process (fig 35.1), but is really executed on another machine on the network(fig 35.2). • The host on which the procedure call is executed has resources that are not available on the calling host.

  2. RPC Architecture • Client/server relationship between the two hosts • Arguments and parameters are passed from local procedure to client stub which passes info to server stub. Arguments are unpacked and passed to server process on server. Results are sent back in reverse(fig 35.3).

  3. RPC Examples • Sun NFS, mount, and NIS all use remote procedure calls(rpc) and XDR • The server resource might be a centralized configuration file (NIS) or a shared file system(NFS) • RPC is the session protocol used by both NFS and NIS. • RPC may be built on top of TCP or UDP transports. Both NFS and NIS use connection UDP transport. • /etc/rpc file contains list of RPC servers (eg.NFS) and their program numbers. Each program may contain many procedures( eg. NFS read block, write block, create file …).

  4. RPC Implementation • Each RPC server registers its service with the portmapper (port 111) by informing the portmapper which ports it will listen on for incoming client requests. • Ypbind is NIS client; ypserv is NIS rpc server • nfs client contacts portmapper(port 111) to find the ports on which mountd(port 33003) and nfsd (port 2049) rpc servers are listening

More Related