{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Week 1 -- Remote Procedure Call

Week 1 -- Remote Procedure Call - Remote Procedure Call...

Info icon This preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Remote Procedure Call CS-4513, D-Term 2007 1 Remote Procedure Call CS-4513 Distributed Computing Systems (Slides include materials from Operating System Concepts , 7 th ed., by Silbershatz, Galvin, & Gagne, Modern Operating Systems , 2 nd ed., by Tanenbaum, and Distributed Systems: Principles & Paradigms , 2 nd ed. By Tanenbaum and Van Steen)
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Remote Procedure Call CS-4513, D-Term 2007 2 Message-oriented Protocols Many still in widespread use Traditional TCP/IP and Internet protocols Difficult to design and implement Especially with more sophisticated middleware Many difficult implementation issues for each new implementation Formatting Uniform representation of data Client-server relationships
Image of page 2
Remote Procedure Call CS-4513, D-Term 2007 3 Remote Procedure Call (RPC) The most common framework for newer protocols and for middleware Used both by operating systems and by applications NFS is implemented as a set of RPCs DCOM, CORBA, Java RMI, etc., are just RPC systems
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Remote Procedure Call CS-4513, D-Term 2007 4 Remote Procedure Call (RPC) Fundamental idea: – Server process exports an interface of procedures or functions that can be called by client programs similar to library API, class definitions, etc. Clients make local procedure/function calls As if directly linked with the server process Under the covers, procedure/function call is converted into a message exchange with remote server process
Image of page 4
Remote Procedure Call CS-4513, D-Term 2007 5 Ordinary procedure/function call count = read(fd, buf, nbytes)
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Remote Procedure Call CS-4513, D-Term 2007 6 Remote Procedure Call Would like to do the same if called procedure or function is on a remote server
Image of page 6
Remote Procedure Call CS-4513, D-Term 2007 7 Solution — a pair of Stubs Client-side stub Looks like local server function Same interface as local function Bundles arguments into message, sends to server- side stub Waits for reply, un- bundles results returns Server-side stub Looks like local client
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern