Docsity

The Client Server Model - Lecture Slides | EECS 591, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download The Client Server Model - Lecture Slides | EECS 591 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

EECS 591 Winter 2003

Handout 4

-^ The Client-Server Model^ – Section 1.5 Tanenbaum^ – Handout in class •^ RPC^ – Section 2.2 Tanenbaum^ – Section 7.3 Tanenbaum

The Client-Server Model

Key Idea:

Structure a distributed system as a collection (or group) of cooperating processes, called servers, that offer services tousers, called clients.

S1^ S2^ S

C

  • Examples?

C

C

request^ reply

Processing Level

The general organization of an Internet search engineinto three different layers

Multitiered Architectures (1)

Alternative client-server organizations (a) – (e).

Modern Architectures

An example of horizontal distribution of a Web service.

Remote Procedure Call

-^ First suggested by Birrell & Nelson in ‘84 •^ Remote ops in the guise of a procedural interface •^ Perform ops on other machines asif they were local •^ No I/O, no msg. visible to the programmer

Conventional Procedure Call

a)^

Parameter passing in a local procedure call: the stack before the call to read b)^

The stack while the called procedure is active

Client and Server Stubs

Principle of RPC between a client and server program.

Issues

-^ Why is RPC more than a syntactic change?^ – Exchanging messages between different processors (arch)^ – Little-endian vs. big-endian^ – Character representation^ – Sending pointers? •^ What’s parameter marshalling?^ – Exchanging data structures between programs in different

languages on two different architectures – Should the transport protocol be able to handle this issue?

-^ Dynamic binding •^ RPC semantics in the presence of failures

Passing Value Parameters (1)

Steps involved in doing remote computation through RPC

Parameter Specification and Stub Generation^ a)

A procedureb)^ The corresponding message.Note: IDL to support application development.

Two Extensions to RPC

-^ Doors: RPC for processes on he same machine •^ Asynchronous RPC

Asynchronous RPC (1)

a)^

The interconnection between client and server in atraditional RPC b)^

The interaction using asynchronous RPC

Asynchronous RPC (2)

A client and server interacting through two asynchronous RPCs