lect-04 - 2006, 2007, M. T. Harandi Lecture 4-1 Computer...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2006, 2007, M. T. Harandi Lecture 4-1 Computer Science 425 Distributed Systems Lecture 4 Inter-process Communication & Distributed Objects 2006, 2007, M. T. Harandi Lecture 4-2 Middleware Layers Applications Middleware layers Request reply protocol External data representation Operating System RMI, RPC and events 2006, 2007, M. T. Harandi Lecture 4-3 Remote Procedure Call (RPC) Uniform, reusable, user-friendly, and action based. Provide a familiar interface for the application developer Implement the request-reply primitive Format of the message is standard Supports code reuse Client calls for invocation of a procedure at the server machine. Semantics are similar to procedure calls in local programs Standard interface, independent of applications A library of reusable procedures, distributed over all sites. 2006, 2007, M. T. Harandi Lecture 4-4 Marshalling & Unmarshalling External data representation: an agreed standard for the representation of data structures and primitive values. CORBA Common Data Representation (CDR) Javas object serialization. Marshalling : the process of taking a collection of data items and assembling them into a form suitable for transmission. Translation of non-portable representations. Assembly of data items into an external data rep. Unmarshalling : the process of disassembling transmitted data at the destination. generation of primitive values reconstruction of structured data 2006, 2007, M. T. Harandi Lecture 4-5 Stubs Stubs are generated automatically from interface specifications. Stubs hide details of (un)marshalling from application programmer & library code developer. Client Stubs perform marshalling Server Stubs perform unmarshalling Stubs also take care of communication & invocation 2006, 2007, M. T. Harandi Lecture 4-6 Client and Server Stub Procedures in RPC client Request Reply Communication Communication module module dispatcher service client stub server stub procedure procedure client process server process procedure program 2006, 2007, M. T. Harandi Lecture 4-7 The Stub Generation Process Interface Specification Stub Generator Server Stub Common Header Client Stub Client Source RPC LIBRARY Server Source Compiler / Linker RPC LIBRARY Client Program Server Program Compiler / Linker...
View Full Document

This note was uploaded on 07/01/2009 for the course CS CS421 taught by Professor Kirillmechitov during the Summer '09 term at University of Illinois, Urbana Champaign.

Page1 / 20

lect-04 - 2006, 2007, M. T. Harandi Lecture 4-1 Computer...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online