CHAPTER 1: OVERVIEW OF DISTRIBUTED SYSTEMS Dr. Tr n H i Anh - - PowerPoint PPT Presentation

chapter 1 overview of distributed systems
SMART_READER_LITE
LIVE PREVIEW

CHAPTER 1: OVERVIEW OF DISTRIBUTED SYSTEMS Dr. Tr n H i Anh - - PowerPoint PPT Presentation

CHAPTER 1: OVERVIEW OF DISTRIBUTED SYSTEMS Dr. Tr n H i Anh Outline 2 Introduction 1. Characteristics of Distributes Systems 2. Components of Distributes Systems 3. Topics in Distributed Systems 4. 1. Introduction 3 1.1. Brief


slide-1
SLIDE 1

CHAPTER 1: OVERVIEW OF DISTRIBUTED SYSTEMS

  • Dr. Trần Hải Anh
slide-2
SLIDE 2

Outline

2

1.

Introduction

2.

Characteristics of Distributes Systems

3.

Components of Distributes Systems

4.

Topics in Distributed Systems

slide-3
SLIDE 3

1.1. Brief history 1.2. Definition 1.3. Examples

  • 1. Introduction

3

slide-4
SLIDE 4

1.1. History

2/20/17 @ Trần Hải Anh 2014

4

¨ History of computer ¤ First generation (1937-1946) n vacuum tubes

n ENIAC (Electronic Numerical Integrator And Computer) ¤ Second generation: (1947 – 1962 )

n Transistor

n Universal Automatic Computer (UNIVAC 1). ¤ Third generation: 1963 - present

n IC: Integrated Circuit

n MS-Dos n IBM PC

¨ History of Computer Network ¨ Change the way of using PC

slide-5
SLIDE 5

Distributed Systems

5

slide-6
SLIDE 6

1.2. Definition

6

¨ Independent computers

¤ They don’t depend on each others. Different on

hardware and software architecture.

¨ Connected ¨ Provide common service uniformly ¨ Users don’t need to care about system’s details ¨ A collection of independent connected

computers that provides services to its users as a single coherent system. [Tanenbaum 2006]

slide-7
SLIDE 7

Distributed vs. Ubiquitous Systems

7

¨ Networked computer system: appears as many

machines

¨ Distributed computer system: appears as single

system

¨ Ubiquitous system: appears as no computer system

slide-8
SLIDE 8

1.3. Examples

8

¨ WWW ¨ Email system ¨ Etc.

MTA MDA MTA MDA Internet SMTP Các bí danh Người sử dụng Hộp thư NSD Bộ đệm thư gửi đi SMTP POP/IMAP Web Server Web Mail DNS Các bản ghi MX Các bản ghi MX Các bí danh Người sử dụng Hộp thư NSD Bộ đệm thư gửi đi SMTP POP/IMAP Web Server Web Mail

slide-9
SLIDE 9

2.1. Making resources accessible 2.2. Distribution transparency 2.3. Openness 2.4. Scalability

  • 2. Goals

2/20/17

9

@ Trần Hải Anh 2014

slide-10
SLIDE 10

2.1. Making resources accessible

2/20/17 @ Trần Hải Anh 2014

10

¨ Easy to access remote resources ¨ Resources: anything (printers, computers, storage

facilities, data, files, web pages, etc.)

¨ Example:

¤ Sharing printer ¤ Sharing supercomputer, high-performance storage system ¤ Other expensive peripherals

¨ Working together: groupware ¨ Security problems: eavesdropping, intrusion on

communication, etc.

slide-11
SLIDE 11

2.2. Distribution Transparency

2/20/17 @ Trần Hải Anh 2014

11

¨ Hide the fact that its processes and resources are

physically distributed across multiple computers

¨ Appear as a single computer system à transparent

slide-12
SLIDE 12

Types of transparency

12

Degree of transparency? Attempting to completely hide all distribution aspects from users is not a good idea

slide-13
SLIDE 13

2.3. Openness

13

¨ Open distribution system is a system that offers

services according to standard rules that describe the syntax and semantics of those services.

¨ Protocols ¨ Services are specified through interfaces. ¨ Interface Definition Language (IDL). ¨ Interoperability ¨ Portability ¨ Extensible

slide-14
SLIDE 14

2.4. Scalability

14

¨ Size

¤ Add more users and resources

¨ Geographical scalability

¤ Users and resources may lie far apart

¨ Administrative scalability

¤ It spans many independent administrative

  • rganizations
slide-15
SLIDE 15

Scalability problems

15

¨ Size: ¤ Centralized services ¤ Centralized data ¤ Centralized algorithms ¨ Geographical scalability ¤ LAN à wide area network ¤ Broadcasting ¤ Reliable communication ¨ Administrative scalability ¤ Resource usage ¤ Management ¤ Security

slide-16
SLIDE 16

Scaling techniques

16

¨ Asynchronous communication ¨ Distribution ¨ Replicate ¨ Caching

slide-17
SLIDE 17

3.1. Hardware 3.2. Software 3.3. Middleware

  • 3. Components of Distributed

Systems

17

slide-18
SLIDE 18

3.1. Hardware

18

(a) (b) (c)

slide-19
SLIDE 19

3.2. Software

19

  • DS is similar to OS
  • Handle the resources
  • Hide the complexity and heterogenity
  • 2 types:
  • tightly-coupled systems (DOS)
  • loosely-coupled systems (NOS)

System Description Main Goal DOS Multicomputer, multiprocessors Transparency NOS NOS on local machines Local services for

  • ther machines

Middleware Provide basic services to develop apps Distributed transparency

slide-20
SLIDE 20

3.2.1. Distributed Operating Systems (DOS)

2/20/17 @ Trần Hải Anh 2014

20

¨ Multiprocessor OS ¨ Multicomputer OS ¨ Like the uniprocessor OS, but handling multi

processors.

slide-21
SLIDE 21

Uniprocessor OS

¨ Main goal: sharing the

resource

¨ Set the access

permission for each app/process

¨ 2 modes: kernel mode

& user mode

21

slide-22
SLIDE 22

User mode & Kernel mode

22

¨ User mode:

¤ Không gian nhớ ảo riêng ¤ Giới hạn truy cập

¨ Kernel mode:

¤ Không gian nhớ ảo đơn ¤ Không giới hạn truy cập

slide-23
SLIDE 23

Monolithic kernel vs Microkernels

¨ Single process runs on

a single memory space

¨ All services run on

  • ne kernel memory

space

¨ E.g: MS-DOS, UNIX,

Linux.

¨ Kernel is divided into

separated processes

¨ Processes run on either

user-space or kernel-space

¨ Processes run separately

  • n separate memory

spaces

¨ E.g: QNX, L4, HURD,

MINIX

23

Monolithic kernel Microkernels

slide-24
SLIDE 24

Microkernel

24

Separate app from OS code in using microkernel

slide-25
SLIDE 25

Multiprocessor OS

25

¨ Use the common shared memory ¨ OS supports multi-processor, transparent to apps. ¨ Avoid concurrent accesses

¤ Semaphore ¤ Monitor

slide-26
SLIDE 26

Multicomputer OS

26

slide-27
SLIDE 27

3.2.2. Network OS

27

1-19

slide-28
SLIDE 28

Network OS

28

1-20

slide-29
SLIDE 29

3.3. Middleware

¨ Combine advantages of

DOS and NOS

¨ Middleware ¨ E.g:

¤ File system in UNIX ¤ RPC

¨ Middleware service:

¤ Transparent access ¤ High level

communication facilities

29

slide-30
SLIDE 30

Homework

30

¨ Do the assignment on the LMS ¨ Watch the online course for the chapter 1

2/20/17 @ Trần Hải Anh 2014