Introduction The API for the Internet protocols External data representation and marshalling

41
Introduction The API for the Internet protocols External data representation and marshalling Client-Server communication Chapter 3: Interprocess Communication 1

description

Chapter 3: Interprocess Communication. Introduction The API for the Internet protocols External data representation and marshalling Client-Server communication. What happens when several clients send requests to the server concurrently?. Issues - PowerPoint PPT Presentation

Transcript of Introduction The API for the Internet protocols External data representation and marshalling

Page 1: Introduction The API for the Internet protocols External data representation and marshalling

Introduction The API for the Internet protocols External data representation and marshalling Client-Server communication

Chapter 3: Interprocess Communication

1

Page 2: Introduction The API for the Internet protocols External data representation and marshalling

2

Page 3: Introduction The API for the Internet protocols External data representation and marshalling

3

Page 4: Introduction The API for the Internet protocols External data representation and marshalling

4

Page 5: Introduction The API for the Internet protocols External data representation and marshalling

5

Page 6: Introduction The API for the Internet protocols External data representation and marshalling

6

Page 7: Introduction The API for the Internet protocols External data representation and marshalling

7

Page 8: Introduction The API for the Internet protocols External data representation and marshalling

8

Page 9: Introduction The API for the Internet protocols External data representation and marshalling

9

Page 10: Introduction The API for the Internet protocols External data representation and marshalling

10

Page 11: Introduction The API for the Internet protocols External data representation and marshalling

What happens when several clients send requests to the server

concurrently?

11

Page 12: Introduction The API for the Internet protocols External data representation and marshalling

12

Page 13: Introduction The API for the Internet protocols External data representation and marshalling

13

Page 14: Introduction The API for the Internet protocols External data representation and marshalling

14

Page 15: Introduction The API for the Internet protocols External data representation and marshalling

15

Page 16: Introduction The API for the Internet protocols External data representation and marshalling

16

Page 17: Introduction The API for the Internet protocols External data representation and marshalling

17

Page 18: Introduction The API for the Internet protocols External data representation and marshalling

18

Page 19: Introduction The API for the Internet protocols External data representation and marshalling

19

Page 20: Introduction The API for the Internet protocols External data representation and marshalling

20

Page 21: Introduction The API for the Internet protocols External data representation and marshalling

21

Issues– At language-level data (for comm) are stored in data structures– At TCP/UDP-level data are communicated as ‘messages’ or

streams of bytes – hence, conversion/flattening is needed– Problem? Different machines have different primitive data reps,

e.g., big-endian and little-endian order of integers, float-type, char codes

– Marshalling (before trans) and unmarshalling (restored to original on arrival)

– Either both machines agree on a format type (included in parameter list) or an intermediate external standard (external data rep) is used, e.g., CORBA Common Data Rep (CDR)/IDL for many languages; Java object serialization for Java code only, Sun XDR standard for Sun NFSs

Page 22: Introduction The API for the Internet protocols External data representation and marshalling

22

Page 23: Introduction The API for the Internet protocols External data representation and marshalling

23

Page 24: Introduction The API for the Internet protocols External data representation and marshalling

24

Page 25: Introduction The API for the Internet protocols External data representation and marshalling

25

Page 26: Introduction The API for the Internet protocols External data representation and marshalling

26

Page 27: Introduction The API for the Internet protocols External data representation and marshalling

27

Page 28: Introduction The API for the Internet protocols External data representation and marshalling

28

Page 29: Introduction The API for the Internet protocols External data representation and marshalling

29

Page 30: Introduction The API for the Internet protocols External data representation and marshalling

30

Page 31: Introduction The API for the Internet protocols External data representation and marshalling

31

Page 32: Introduction The API for the Internet protocols External data representation and marshalling

32

Page 33: Introduction The API for the Internet protocols External data representation and marshalling

33

Page 34: Introduction The API for the Internet protocols External data representation and marshalling

34

Page 35: Introduction The API for the Internet protocols External data representation and marshalling

35

Page 36: Introduction The API for the Internet protocols External data representation and marshalling

36

Page 37: Introduction The API for the Internet protocols External data representation and marshalling

37

Page 38: Introduction The API for the Internet protocols External data representation and marshalling

38

Page 39: Introduction The API for the Internet protocols External data representation and marshalling

39

Page 40: Introduction The API for the Internet protocols External data representation and marshalling

40

Page 41: Introduction The API for the Internet protocols External data representation and marshalling

41