application layer and client server model

20
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000 Chapter 15 Application Layer and Client-Server Model

Upload: harsh-kansara

Post on 24-Nov-2014

140 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Chapter 15

Application Layerand

Client-ServerModel

Page 2: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

CONTENTSCONTENTS

• CLIENT-SERVER MODEL• CONCURRENCY• PROCESSES

Page 3: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 15-1 Comparison between OSI and TCP/IP

Page 4: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

CLIENT-SERVERMODEL

15.115.1

Page 5: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 15-2

Client-server model

Page 6: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 15-3

Client-server relationship

Page 7: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

CONCURRENCY

15.215.2

Page 8: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 15-4

Server types

Page 9: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 15-5

Connectionless iterative server

Page 10: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 15-6

Connection-oriented concurrent server

Page 11: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

PROCESSES

15.315.3

Page 12: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 15-7

Programs and processes

Page 13: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 14-8

Prototype for the getpid function

Page 14: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 15-9

A program that prints its own processid

Page 15: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 14-10

Prototype for the fork function

Page 16: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 14-11

A program with one parent and one child

Page 17: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 15-12

A program with two fork functions

Page 18: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 15-13

The output of the program in Figure 15.12

Page 19: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 15-14A program that prints the processids

of the parent and the child

Page 20: Application Layer and Client Server Model

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 15-15 Example of a server program with parent and child processes