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

Post on 18-Mar-2016

34 views 0 download

Tags:

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

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

Chapter 3: Interprocess Communication

1

2

3

4

5

6

7

8

9

10

What happens when several clients send requests to the server

concurrently?

11

12

13

14

15

16

17

18

19

20

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

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41