d istributed s ystem unit-1 prepared by: g.s.mishra

94
DISTRIBUTED SYSTEM UNIT-1 Prepared By: G.S.Mishra

Upload: isaac-clark

Post on 20-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

DISTRIBUTED SYSTEMUNIT-1

Prepared By: G.S.Mishra

Page 2: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

WHAT IS A DISTRIBUTED SYSTEM?

Page 3: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

WHAT IS A DISTRIBUTED SYSTEM? CONTD….

• “ A distributed system in which hardware or, software components located at networked computers communicate & coordinate their actions only by passing messages.”

Consequences:

Concurrency No global clock Independent failure

Page 4: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 5: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 6: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

EXAMPLES OF DISTRIBUTED SYSTEM

The Internet

The Intranet

Mobile & Ubiquitous Computing

Page 7: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 8: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 9: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

MOBILE SYSTEMS Cellular Concept Frequency Reuse

Page 10: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

CLUSTERS

Page 11: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

ARCHITECTURE

Page 12: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

TERMINOLOGIES USED

Page 13: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

OTHER EXAMPLES

Web server ( Centralized )

MP3.com : a number of MP3 files stored in the Web

site.

Failure of this site cause unavailability of services

Napster: stores the MP3 files on the actual users’

machines

napster.com is used as a massive index (or meeting

place) for connecting users

Page 14: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

EXAMPLES CONTD….

Users connect to Napster to search for the files

they desire

Thereafter connect to users directly to download

the file.

MP3 file is distributed across a number of servers

making it more reliable against failure.

But search is centralized.

Gnutella does not have a centralized search facility nor a central storage facility for the files.

Page 15: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

EXAMPLE CONTD…

Each user in the network runs a servent (a client

and a server),

which allows him/her to act as both a provider and

consumer of information (as in Napster)

but acts as a search facility also.

if any of the servents are unavailable, users can

almost certainly still reach the file they require

Page 16: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

DIFFERENCE BETWEEN CENTRALIZED & DECENTRAIZED SYSTEMS

Broad Areas:1. Resource Discovery2. Resource Availability3. Resource Communication

1-Resource Discovery:

A two-stage process The discovery service needs to be located The relevant information is retrieved. E.g. DNS

Page 17: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

DIFFERENCE….. CONTD…

Resource Availability:

Web servers fall into the centralized category here because there is only one IP address that hosts a particular site.

If that machine goes down then the Web site is unavailable

machines could be made fault tolerant by replicating

the web site employ some internal switching mechanisms but

the availability of the IP address remains the same.

Page 18: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 19: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

In a more decentralized approach; by offering many duplicate services that can perform the same functionality.

Resource availability is tied in closely to resource discovery.

3- Resource Communication

1. Brokered Communication: where the communication is always passed through

a central server and therefore a resource does not have to reference the other resource directly

Page 20: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

2. Point-to-Point (or Peer-to-Peer) Communication:

this involves a direct connection (although this connection may be multi-hop) betweenthe sender and the receiver. In this case, the sender is aware of the receiver’s location.

Page 21: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 22: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 23: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 24: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 25: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 26: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 27: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 28: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 29: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 30: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

GOALS OF DISTRIBUTED SYSTEM

Advantages of distributed system over centralized system

Page 31: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

GOALS OF DISTRIBUTED SYSTEM CONTD…

Advantages of Distributed System over Independent PCs

Page 32: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

GOALS OF DISTRIBUTED SYSTEM CONTD…

Disadvantages of Distributed System

Page 33: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

HARDWARE CONCEPTS : TAXONOMY OF PARALLEL & DISTRIBUTED COMPUTER SYSTEMS

Page 34: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

BUS BASED MULTIPROCESSOR

Page 35: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

MULTICOMPUTERS WORKSTATION ON LAN

Page 36: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SWITCHED MULTIPROCESSORS

Page 37: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SWITCHED MULTICOMPUTERS

Page 38: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SOFTWARE CONCEPTS

Page 39: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SOFTWARE CONCEPTS

Page 40: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SOFTWARE CONCEPTS

Page 41: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SOFTWARE CONCEPTS

Page 42: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SOFTWARE CONCEPTS

Page 43: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SOFTWARE CONCEPTS

Page 44: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

RESOURCE SHARING hardware resources like printers or disks to

reduce costs sharing databases, a set of web pages, search

engine

Service: file services - read, write, delete. We buy goods by electronic payment service

Server: a running program (process) on a networked computer that accepts requests

Remote invocation: The complete interaction between the client and the server from sending request to receiving server’s response

Page 45: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

THE WORLD WIDE WEB

Page 46: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

CHALLENGES

Heterogenity :

Networks, computer hardware, Operating systems, Programming languages

Openness

Security : Denial of Service attack

Scalability

Page 47: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

CHALLENGES CONTD…

Failure Handling:

Detecting failures, Masking failures, tolerating failures, Recovery from failures, Redundancy

Concurrency

Transparency: Access transparency- Enables local & remote

resources to be accessed using identical operations.

Page 48: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

CHALLENGES CONTD…

Location transparency- Enables resources to be accessed without knowledge of their location.

Concurrency transparency- Enables processes to operate concurrently using shared resources without interference between them.

Replication transparency- enables multiple instances of resources to be used to increase reliability and performance without knowledge of replicas by users.

Page 49: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

CHALLENGES CONTD…Failure transparency- enables the concealment of

faults, allowing users and application programs to complete their tasks despite the failure of hardware or software components.

Mobility transparency- allow the movement of resources and clients within a system without affecting the operation of users or programs.

Performance transparency- allows the system to be reconfigured to improve performance as loads vary.

Scaling transparency- allows the system and applications to expand in scale without change to the system structure.

Page 50: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

WEB SERVERS AND WEB BROWSERS

Page 51: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SHARED MEMORY MULTI-PROCESSOR

Page 52: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SYSTEM MODELS Architectural Model: Concerned with the

placement of parts and the relationships between them.

Software Layers System Architecture

Fundamental model: Concerned with a more formal description of the properties that are common in all architectural models.

Interaction Model Failure Model Security Model

Page 53: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SOFTWARE LAYERS

Page 54: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SYSTEM ARCHITECTURES

The working of Search engines

CLIENT SERVER MODEL

Page 55: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SERVICES PROVIDED BY MULTIPLE SERVERS

For Replicated data

Page 56: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

WEB PROXY SERVER

Proxy servers are used as a cache to store recently used data objects, sharing other web resources, to increase availability and performance, reducing load on a network & web servers.

Page 57: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

A DISTRIBUTED APPLICATION BASED ON PEER PROCESSES

All of the processes play similar roles, interacting cooperatively as peers to perform a distributed activity without any distinction between clients and servers.

Page 58: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

WEB APPLELTS

Page 59: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

FUNDAMENTAL MODELS

Fundamental model: Concerned with a more formal description of the properties that are common in all architectural models.

Interaction Model Failure Model Security Model

Page 60: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

INTERACTION MODEL

Performance of communication channel

Latency: delay between the start of a messages transmission from one process and the beginning of its receipt by another process.

Bandwidth: Total amount of information transmitted in a given time.

Jitter: The time taken to deliver a series of messages.

Page 61: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

INTERACTION MODEL CONTD…

o Two variants of the interaction model Synchronous Distributed system Asynchronous Distributed system

o Computer clocks & Timing Events

o Event ordering

Page 62: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

REAL TIME ORDERING OF EVENT

Page 63: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

FAILURE MODEL

Omission failure

Arbitrary failure

Masking failures

Reliability

Page 64: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SECURITY MODEL

Securing processes and their interactions

The enemy

Protecting objects

Defeating Security Threats

Page 65: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

PROTECTING OBJECTS

Page 66: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

THE ENEMY

Page 67: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SECURE CHANNELS

Page 68: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

THIN CLIENTS AND COMPUTE SERVERS

Page 69: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

OBJECTS AND PRINCIPALS

Page 70: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

THE ENEMY

Page 71: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SECURE CHANNELS

Page 72: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 73: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 74: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 75: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 76: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

THE WEB

Page 77: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 78: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 79: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 80: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 81: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 82: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 83: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 84: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SYSTEM MODELS Architectural Model:

Concerned with the placement of parts and the relationships between them.

Fundamental model:

Concerned with a more formal description of the properties that are common in all architectural models.

Page 85: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SYSTEM MODELSArchitectural Models:

The placements of its parts & relationship between them:

The partition of data or, replication

Requirements to add & remove mobile devices

conveniently

Use of mobile code & agents

Caching of data

Page 86: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

Software Layers:

Applications, services Middleware Operating System Computer & Network Hardware

(OS & CN Hardware referd to as Platform)

ARCHITECTURAL MODELS

Page 87: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra
Page 88: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

SYSTEM MODELSArchitectural Models:

The placements of its parts & relationship between them:

The partition of data or, replication

Requirements to add & remove mobile devices

conveniently

Use of mobile code & agents

Caching of data

Page 89: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

ORDERING OF EVENTSLamport’s Happened Before relationship:

For two events a and b, a → b if a and b are events in the same process and a occurred

before b a is an event of sending a message m and b is the

corresponding receive event at the destination process If a → c and c → b for some event c, then a → c (transitive relation )

Page 90: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

ORDERING OF EVENTSLamport’s Happened Before relationship:

For two events a and b, a → b if a and b are events in the same process and a occurred

before b a is an event of sending a message m and b is the

corresponding receive event at the destination process If a → c and c → b for some event c, then a → c (transitive relation )

Page 91: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

ORDERING OF EVENTSLamport’s Happened Before relationship:

For two events a and b, a → b if a and b are events in the same process and a occurred

before b a is an event of sending a message m and b is the

corresponding receive event at the destination process If a → c and c → b for some event c, then a → c (transitive relation )

Page 92: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

ORDERING OF EVENTSLamport’s Happened Before relationship:

For two events a and b, a → b if a and b are events in the same process and a occurred

before b a is an event of sending a message m and b is the

corresponding receive event at the destination process If a → c and c → b for some event c, then a → c (transitive relation )

Page 93: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

ORDERING OF EVENTSLamport’s Happened Before relationship:

For two events a and b, a → b if a and b are events in the same process and a occurred

before b a is an event of sending a message m and b is the

corresponding receive event at the destination process If a → c and c → b for some event c, then a → c (transitive relation )

Page 94: D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra

ORDERING OF EVENTSLamport’s Happened Before relationship:

For two events a and b, a → b if a and b are events in the same process and a occurred

before b a is an event of sending a message m and b is the

corresponding receive event at the destination process If a → c and c → b for some event c, then a → c (transitive relation )