SlideShare ist ein Scribd-Unternehmen logo
INTRODUCTION TO
DISTRIBUTED SYSTEMS
By: Megersa
D.
Mar-24 1
Outline
• Definition of a Distributed System
• Goals of a Distributed System
• Types of Distributed Systems
Mar-24 2
What Is A Distributed System?
• A Distributed System is a collection of independent
computers that appears to its users as a single coherent
system.
• They help in sharing different resources and
capabilities to provide users with a single and
integrated coherent network.
• A distributed system is one in which components
located at networked computers, communicate and
coordinate their actions only by passing messages.
• Ideal: to present a single-system image:
– The distributed system “looks like” a single computer rather
than a collection of separate computers.
Mar-24 3
Definition of a Distributed System
Figure 1-1. A distributed system organized as middleware.
The middleware layer runs on all machines, and offers a
uniform interface to the system.
Mar-24 4
Role of Middleware (MW)
• Middleware is software that functions as intermediate
layer b/n applications and OS or b/n client and
server.
• In some early research systems: MW tried to provide
the illusion/not tangible that a collection of separate
machines was a single computer.
• Today:
– clustering software allows independent computers
to work together closely.
Mar-24 5
Middleware Examples
• CORBA (Common Object Request Broker
Architecture)
• DCOM (Distributed Component Object
Management) – being replaced by .net
• Sun’s ONC RPC (Open Network
Computing Remote Procedure Call)
• RMI (Remote Method Invocation)
• SOAP (Simple Object Access Protocol)
Mar-24 6
Distributed System Goals
• Resource Accessibility
• Distribution Transparency
• Openness
• Scalability
Mar-24 7
Goal 1 – Resource Availability
• Support user to access remote resources (printers, data
files, web pages, CPU cycles) and the fair sharing of
the resources.
• Economics of sharing expensive resources.
• Performance enhancement – due to multiple
processors, ease of collaboration and information
exchange – access to remote services.
– Groupware: is tools to support collaboration.
• Resource sharing introduces security problems.
Mar-24 8
Goal 2 – Distribution Transparency
• Makes the system more user friendly.
• A distributed system that appears to its users &
applications to be a single computer system is said to
be transparent.
– Users & apps should be able to access remote
resources in the same way they access local
resources.
• Transparency has several dimensions. Next Slide…
Mar-24 9
Types of Transparency
Transparency Description
Access Hide differences in data representation & resource
access (enables interoperability)
Location Hide location of resource (can use resource without
knowing its location)
Migration Hide possibility that a system may change location of
resource (no effect on access)
Replication Hide the possibility that multiple copies of the resource
exist (for reliability and/or availability)
Concurrency Hide the possibility that the resource may be shared
concurrently.
Failure Hide failure and recovery of the resource. How does
one differentiate betw. slow and failed?
Relocation Hide that resource may be moved during use.
Figure 1-2. Different forms of transparency in a distributed system
Mar-24 10
Goal 2: Degrees of Transparency
• There may be trade-off (compromise) b/n
transparency and performance of the system.
– Reduced performance: For example, many Internet
applications repeatedly try to contact a server before
finally getting service.
– Consequently, attempting to mask a transient server
failure before trying another one may slow down the
system as a whole.
• Too much emphasis on transparency may prevent the
user from understanding system behavior.
Mar-24 11
Goal 3 - Openness
• An open distributed system “…offers services
according to standard rules that describe the syntax and
semantics of those services.” In other words, the
interfaces to the system are clearly specified and freely
available.
• Interface Definition Languages (IDL): used to
describe the interfaces between software components,
usually in a distributed system.
– Definitions are language & machine independent
– Support communication between systems using
different OS/programming languages; e.g. a C++
program running on Windows communicates with a
Java program running on UNIX.
Mar-24 12
• Interoperability: the ability of two different
systems or applications to work together.
– A process that needs a service should be able to talk
to any process that provides the service.
– Multiple implementations of the same service may
be provided, as long as the interface is maintained.
• Portability: an application designed to run on
one distributed system can run on another
system which implements the same interface.
• Extensibility: Easy to add new components,
features.
Open Systems Support …
Mar-24 13
Goal 4 - Scalability
• Dimensions that may scale:
– With respect to size.
– With respect to geographical distribution.
– With respect to the number of
administrative organizations spanned.
• A scalable system still performs well
as it scales up along any of the three
dimensions (3D).
Mar-24 14
Size Scalability
• Scalability is negatively affected when the
system is based on;
– Centralized server: one for all users.
– Centralized data: a single database for all users.
– Centralized algorithms: one site collects all
information, processes it, distributes the results
to all sites.
• Complete knowledge: good
• Time and network traffic: bad
Mar-24 15
Decentralized Algorithms
• No machine has complete information about
the system state.
• Machines make decisions based only on local
information.
• Failure of a single machine doesn’t ruin the
algorithm.
• There is no assumption that a global clock
exists.
Mar-24 16
Geographic Scalability
• Early distributed systems ran on LANs, relied
on synchronous communication.
– May be too slow for WAN.
– Wide-area communication is unreliable.
– Unpredictable time delays may even affect
correctness.
• LAN communication is based on broadcast.
– Consider how this affects an attempt to locate a
particular kind of service
• Centralized components + wide-area
communication= wastage of network
bandwidth.
Mar-24 17
Scalability - Administrative
• Different domains may have different policies
about resource usage, management, security, etc.
• Trust often stops at administrative boundaries.
– Requires protection from malicious attacks.
Mar-24 18
Scaling Techniques
• Scalability affects performance more than
anything else.
• Three techniques to improve scalability:
– Hiding communication latencies / delays
– Distribution
– Replication
Mar-24 19
1. Hiding Communication Delays
• Structure applications to use asynchronous
communication (no blocking for replies)
– While waiting for one answer, do something else; e.g.,
create one thread to wait for the reply and let other
threads continue to process or schedule another task.
• Download part of the computation to the
requesting platform to speed up processing.
– Filling in forms to access a DB: send a separate
message for each field, or download form/code and
submit finished version.
– i.e., shorten the waiting times
Mar-24 20
Scaling Techniques
Figure 1-3. The difference between letting (a) a server
or (b) a client check forms as they are being filled.
Mar-24 21
2. Distribution
• Instead of one centralized service, divide into
parts and distribute geographically.
• Each part handles one aspect of the job
– Example: DNS namespace is organized as a tree of
domains; each domain is divided into zones; names
in each zone are handled by a different name server.
– WWW consists of many (millions?) of servers.
Mar-24 22
Scaling Techniques (2)
Figure 1-4. An example of dividing the DNS
name space into zones.
Mar-24 23
3. Replication
• Replication: multiple identical copies of
something.
– Replicated objects may also be distributed, but
aren’t necessarily.
• Replication;
– Increases availability
– Improves performance through load balancing
– May avoid latency by improving proximity of
resource
Mar-24 24
Summary
Goals for Distribution
• Resource accessibility
– For sharing and enhanced performance
• Distribution transparency
– For easier use
• Openness
– To support interoperability, portability, extensibility
• Scalability
– With respect to size (number of users), geographic
distribution, administrative domains
Mar-24 25
Types of Distributed Systems
• Distributed Computing Systems (1)
– Clusters
– Grids
– Clouds
• Distributed Information Systems (2)
– Transaction Processing Systems
– Enterprise Application Integration
• Distributed Embedded Systems (3)
– Home systems
– Health care systems
– Sensor networks
Mar-24 26
Distributed Computing Systems (1)
A) Cluster Computing
• A collection of similar processors (PCs, workstations)
running the same OS, connected by a high-speed
LAN.
• Parallel computing capabilities using inexpensive PC
hardware.
• Clustering is primarily used for high availability and
fault tolerance.
• If one node fails, another node in the cluster can take
over, ensuring continuous operation of the system.
Mar-24 27
Cluster Types & Uses
• High Performance Clusters (HPC)
– run large parallel programs.
– Scientific, military, engineering apps; e.g., weather
modeling.
• Load Balancing Clusters(LBC)
– Front end processor distributes incoming requests.
– server forms (e.g., at banks or popular web site)
• High Availability Clusters (HAC)
– Provide redundancy – back up systems.
– More fault tolerant.
Mar-24 28
Clusters – Beowulf model
• Linux-based
• Master-slave paradigm
– One processor is the master; allocates tasks to
other processors, maintains batch queue of
submitted jobs, handles interface to users
– Master has libraries to handle message-based
communication or other features (the
middleware).
Mar-24 29
Cluster Computing Systems
• Figure 1-6. An example of a cluster
computing system.
Figure1-5. An example of a (Beowulf) cluster computing system
Mar-24 30
Clusters – MOSIX model
• Provides a symmetric, rather than hierarchical
paradigm.
– High degree of distribution transparency (single
system image)
– Processes can migrate between nodes dynamically
and preemptively. Migration is automatic.
• Used to manage Linux clusters.
Mar-24 31
More About MOSIX
“The MOSIX Management System for Linux Clusters, Multi-clusters,
GPU Clusters and Clouds”, A. Barak and A. Shiloh”
• “Operating-system-like”; looks & feels like
a single computer with multiple processors.
• Supports interactive and batch processes.
• Provides resource discovery and workload
distribution among clusters.
• Clusters can be partitioned for use by an
individual or a group.
• Best for compute-intensive jobs.
Mar-24 32
B) Grids
• Similar to clusters but processors are more loosely
coupled, tend to be heterogeneous, and are not all in a
central location.
• Can handle workloads similar to those on
supercomputers, but grid computers connect over a
network (Internet) and supercomputers’ CPUs connect to
a high-speed internal bus/network.
• Problems are broken up into parts and distributed across
multiple computers in the grid – less communication
between parts than in clusters.
Mar-24 33
A Proposed Architecture for Grid Systems
• Fabric layer: interfaces to local
resources at a specific site.
• Connectivity layer: protocols to
support usage of multiple resources
for a single application; e.g., access a
remote resource or transfer data
between resources; and protocols to
provide security.
• Resource layer: manages a single
resource, using functions supplied by
the connectivity layer.
• Collective layer: resource discovery,
allocation, scheduling, etc.
• Applications: use the grid resources
• The collective, connectivity and
resource layers together form the
middleware layer for a grid.
Figure: layered architecture for grid
computing systems
Mar-24 34
3) Cloud Computing
• Provides scalable services as a utility over the
Internet.
• Often built on a computer grid.
• Users buy services from the cloud.
– Grid users may develop and run their own
software.
• Cluster/grid/cloud distinctions blur at the
edges!
Mar-24 35
Distributed Information Systems(2)
• Business-oriented.
• Systems to make a number of separate network
applications interoperable and build
“enterprise-wide information systems”.
• Two types discussed here:
– Transaction processing systems
– Enterprise application integration (EAI)
Mar-24 36
Distributed Information Systems(2)
Transaction Processing Systems (2.1)
• Provide a highly structured client-server
approach for database applications.
• Transactions are the communication model.
• Obey the ACID properties:
– Atomic: all or nothing.
– Consistent: invariants/constants are preserved.
– Isolated (serializable)
– Durable: committed operations can’t be undone
Mar-24 37
Transaction Processing Systems
• Figure 1-8. Example primitives for
transactions.
Figure: Example primitives for transactions
Mar-24 38
Transactions
• Transaction processing may be centralized
(traditional client/server system) or
distributed.
• A distributed database is one in which the
data storage is distributed – connected to
separate processors.
Mar-24 39
Nested Transactions
• A nested transaction is a transaction within
another transaction (a sub-transaction)
– Example: a transaction may ask for two things
(e.g., airline reservation info + hotel info)
which would spawn two nested transactions
• Primary transaction waits for the results.
– While children are active, parent may only
abort, commit, or spawn other children
Mar-24 40
Transaction Processing Systems
Figure: A nested transaction.
Mar-24 41
Enterprise Application Integration (2.2)
• Less structured than transaction-based systems.
• EA components communicate directly.
– Enterprise applications are things like HR data,
inventory programs, …
– May use different OSs, different DBs but need to
interoperate sometimes.
• Communication mechanisms to support this
include CORBA, Remote Procedure Call (RPC)
and Remote Method Invocation (RMI)
Mar-24 42
Enterprise Application
Integration
Figure: Middleware as a communication facilitator in enterprise
application integration.
Mar-24 43
Distributed Pervasive/Embedded/ Systems (3)
• The first two types of systems are characterized by
their stability, nodes and network connections
are more or less fixed.
• This type of system is likely to incorporate small,
battery-powered, mobile devices.
– Home systems
– Electronic health care systems – patient monitoring
– Sensor networks system – data collection, surveillance
Mar-24 44
Distributed Pervasive/Embedded/ Systems (3)
Home System (3.1)
• Built around one or more PCs, but can also
include other electronic devices:
– Automatic control of lighting, sprinkler
systems, alarm systems, etc.
– Network enabled appliances
– PDAs and smart phones, etc.
Mar-24 45
Distributed Pervasive/Embedded/ Systems (3)
Electronic Health Care Systems(3.2)
Figure: Monitoring a person in a pervasive electronic health care system,
using (a) a local hub or (b) a continuous wireless connection.
Mar-24 46
Distributed Pervasive/Embedded/ Systems (3)
Sensor Networks (3.3)
• A collection of geographically distributed nodes
consisting of a comm. device, a power source, some
kind of sensor, a small processor…
• Purpose: to collectively monitor sensory data
(temperature, sound, moisture etc.,) and transmit the
data to a base station.
• “Smart environment” – the nodes may do some
rudimentary processing of the data in addition to their
communication responsibilities.
Mar-24 47
Sensor Networks(3.3)
Figure: Organizing a sensor network database, while storing and
processing data (a) only at the operator’s site.
Mar-24 48
Sensor Networks
Figure: Organizing a sensor network database, while storing and
processing data … or (b) only at the sensors.
Mar-24 49
3/30/2024 50

Weitere ähnliche Inhalte

Ähnlich wie chapter 1- introduction to distributed system.ppt

Chapter-1-IntroDistributeddffsfdfsdf-1.pptx
Chapter-1-IntroDistributeddffsfdfsdf-1.pptxChapter-1-IntroDistributeddffsfdfsdf-1.pptx
Chapter-1-IntroDistributeddffsfdfsdf-1.pptx
meharikiros2
 
Lect 2 Types of Distributed Systems.pptx
Lect 2 Types of Distributed Systems.pptxLect 2 Types of Distributed Systems.pptx
Lect 2 Types of Distributed Systems.pptx
PardonSamson
 
Distributed system Tanenbaum chapter 1,2,3,4 notes
Distributed system Tanenbaum chapter 1,2,3,4 notes Distributed system Tanenbaum chapter 1,2,3,4 notes
Distributed system Tanenbaum chapter 1,2,3,4 notes
SAhammedShakil
 
DISTRIBUTED SYSTEM.docx
DISTRIBUTED SYSTEM.docxDISTRIBUTED SYSTEM.docx
DISTRIBUTED SYSTEM.docx
vinaypandey170
 
Lecture 9.pptx
Lecture 9.pptxLecture 9.pptx
Lecture 9.pptx
JiyaMalik33
 
Distributed Computing
Distributed Computing Distributed Computing
Distributed Computing
Megha yadav
 
istributed system
istributed systemistributed system
istributed system
abdillahkarine
 
introduction to cloud computing for college.pdf
introduction to cloud computing for college.pdfintroduction to cloud computing for college.pdf
introduction to cloud computing for college.pdf
snehan789
 
Chapter 1-Introduction.ppt
Chapter 1-Introduction.pptChapter 1-Introduction.ppt
Chapter 1-Introduction.ppt
balewayalew
 
Chapter 1 introduction
Chapter 1 introductionChapter 1 introduction
Chapter 1 introduction
Tamrat Amare
 
Chap 01 lecture 1distributed computer lecture
Chap 01 lecture 1distributed computer lectureChap 01 lecture 1distributed computer lecture
Chap 01 lecture 1distributed computer lecture
Muhammad Arslan
 
CCUnit1.pdf
CCUnit1.pdfCCUnit1.pdf
CCUnit1.pdf
AnayGupta26
 
Chapter One.ppt
Chapter One.pptChapter One.ppt
Chapter One.ppt
abdigeremew
 
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT JaipurDistributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
DrNilam Choudhary
 
Cloud computing basic introduction and notes for exam
Cloud computing basic introduction and notes for examCloud computing basic introduction and notes for exam
Cloud computing basic introduction and notes for exam
UtkarshAnand512529
 
distrbuted system chapter one .DS .pptx
distrbuted system chapter one  .DS .pptxdistrbuted system chapter one  .DS .pptx
distrbuted system chapter one .DS .pptx
ayoupalthman
 
Lecture03.pptx
Lecture03.pptxLecture03.pptx
Lecture03.pptx
Saunya2
 
Distributed Computing Report
Distributed Computing ReportDistributed Computing Report
Distributed Computing Report
IIT Kharagpur
 
Computing notes
Computing notesComputing notes
Computing notes
thenraju24
 
lect02.pdf
lect02.pdflect02.pdf
lect02.pdf
MouDasgupta6
 

Ähnlich wie chapter 1- introduction to distributed system.ppt (20)

Chapter-1-IntroDistributeddffsfdfsdf-1.pptx
Chapter-1-IntroDistributeddffsfdfsdf-1.pptxChapter-1-IntroDistributeddffsfdfsdf-1.pptx
Chapter-1-IntroDistributeddffsfdfsdf-1.pptx
 
Lect 2 Types of Distributed Systems.pptx
Lect 2 Types of Distributed Systems.pptxLect 2 Types of Distributed Systems.pptx
Lect 2 Types of Distributed Systems.pptx
 
Distributed system Tanenbaum chapter 1,2,3,4 notes
Distributed system Tanenbaum chapter 1,2,3,4 notes Distributed system Tanenbaum chapter 1,2,3,4 notes
Distributed system Tanenbaum chapter 1,2,3,4 notes
 
DISTRIBUTED SYSTEM.docx
DISTRIBUTED SYSTEM.docxDISTRIBUTED SYSTEM.docx
DISTRIBUTED SYSTEM.docx
 
Lecture 9.pptx
Lecture 9.pptxLecture 9.pptx
Lecture 9.pptx
 
Distributed Computing
Distributed Computing Distributed Computing
Distributed Computing
 
istributed system
istributed systemistributed system
istributed system
 
introduction to cloud computing for college.pdf
introduction to cloud computing for college.pdfintroduction to cloud computing for college.pdf
introduction to cloud computing for college.pdf
 
Chapter 1-Introduction.ppt
Chapter 1-Introduction.pptChapter 1-Introduction.ppt
Chapter 1-Introduction.ppt
 
Chapter 1 introduction
Chapter 1 introductionChapter 1 introduction
Chapter 1 introduction
 
Chap 01 lecture 1distributed computer lecture
Chap 01 lecture 1distributed computer lectureChap 01 lecture 1distributed computer lecture
Chap 01 lecture 1distributed computer lecture
 
CCUnit1.pdf
CCUnit1.pdfCCUnit1.pdf
CCUnit1.pdf
 
Chapter One.ppt
Chapter One.pptChapter One.ppt
Chapter One.ppt
 
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT JaipurDistributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
Distributed System Unit 1 Notes by Dr. Nilam Choudhary, SKIT Jaipur
 
Cloud computing basic introduction and notes for exam
Cloud computing basic introduction and notes for examCloud computing basic introduction and notes for exam
Cloud computing basic introduction and notes for exam
 
distrbuted system chapter one .DS .pptx
distrbuted system chapter one  .DS .pptxdistrbuted system chapter one  .DS .pptx
distrbuted system chapter one .DS .pptx
 
Lecture03.pptx
Lecture03.pptxLecture03.pptx
Lecture03.pptx
 
Distributed Computing Report
Distributed Computing ReportDistributed Computing Report
Distributed Computing Report
 
Computing notes
Computing notesComputing notes
Computing notes
 
lect02.pdf
lect02.pdflect02.pdf
lect02.pdf
 

Mehr von AschalewAyele2

Chapter_Five Compueter secuityryhf S.pdf
Chapter_Five Compueter secuityryhf   S.pdfChapter_Five Compueter secuityryhf   S.pdf
Chapter_Five Compueter secuityryhf S.pdf
AschalewAyele2
 
Chapter_three - Computer Security.pdf
Chapter_three -      Computer Security.pdfChapter_three -      Computer Security.pdf
Chapter_three - Computer Security.pdf
AschalewAyele2
 
Chapter 5 Selected Topics in computer.pptx
Chapter 5 Selected Topics in computer.pptxChapter 5 Selected Topics in computer.pptx
Chapter 5 Selected Topics in computer.pptx
AschalewAyele2
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
AschalewAyele2
 
chapter 3 Selected Topics in computer.pptx
chapter 3 Selected Topics in computer.pptxchapter 3 Selected Topics in computer.pptx
chapter 3 Selected Topics in computer.pptx
AschalewAyele2
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
AschalewAyele2
 
Chapter 4 Classification in data sience .pdf
Chapter 4 Classification in data sience .pdfChapter 4 Classification in data sience .pdf
Chapter 4 Classification in data sience .pdf
AschalewAyele2
 
Chapter 5-Naming in distributed system.pptx
Chapter 5-Naming in distributed system.pptxChapter 5-Naming in distributed system.pptx
Chapter 5-Naming in distributed system.pptx
AschalewAyele2
 
Chapter 4- Communication in distributed system.ppt
Chapter 4- Communication in distributed system.pptChapter 4- Communication in distributed system.ppt
Chapter 4- Communication in distributed system.ppt
AschalewAyele2
 
Chapter 3-Process in distributed system.ppt
Chapter 3-Process in distributed system.pptChapter 3-Process in distributed system.ppt
Chapter 3-Process in distributed system.ppt
AschalewAyele2
 
Chapter 2- Architecture os distributed system.ppt
Chapter 2- Architecture os distributed system.pptChapter 2- Architecture os distributed system.ppt
Chapter 2- Architecture os distributed system.ppt
AschalewAyele2
 

Mehr von AschalewAyele2 (11)

Chapter_Five Compueter secuityryhf S.pdf
Chapter_Five Compueter secuityryhf   S.pdfChapter_Five Compueter secuityryhf   S.pdf
Chapter_Five Compueter secuityryhf S.pdf
 
Chapter_three - Computer Security.pdf
Chapter_three -      Computer Security.pdfChapter_three -      Computer Security.pdf
Chapter_three - Computer Security.pdf
 
Chapter 5 Selected Topics in computer.pptx
Chapter 5 Selected Topics in computer.pptxChapter 5 Selected Topics in computer.pptx
Chapter 5 Selected Topics in computer.pptx
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
 
chapter 3 Selected Topics in computer.pptx
chapter 3 Selected Topics in computer.pptxchapter 3 Selected Topics in computer.pptx
chapter 3 Selected Topics in computer.pptx
 
chapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptxchapter 4 Selected Topics in computer.pptx
chapter 4 Selected Topics in computer.pptx
 
Chapter 4 Classification in data sience .pdf
Chapter 4 Classification in data sience .pdfChapter 4 Classification in data sience .pdf
Chapter 4 Classification in data sience .pdf
 
Chapter 5-Naming in distributed system.pptx
Chapter 5-Naming in distributed system.pptxChapter 5-Naming in distributed system.pptx
Chapter 5-Naming in distributed system.pptx
 
Chapter 4- Communication in distributed system.ppt
Chapter 4- Communication in distributed system.pptChapter 4- Communication in distributed system.ppt
Chapter 4- Communication in distributed system.ppt
 
Chapter 3-Process in distributed system.ppt
Chapter 3-Process in distributed system.pptChapter 3-Process in distributed system.ppt
Chapter 3-Process in distributed system.ppt
 
Chapter 2- Architecture os distributed system.ppt
Chapter 2- Architecture os distributed system.pptChapter 2- Architecture os distributed system.ppt
Chapter 2- Architecture os distributed system.ppt
 

Kürzlich hochgeladen

Modelo de slide quimica para powerpoint
Modelo  de slide quimica para powerpointModelo  de slide quimica para powerpoint
Modelo de slide quimica para powerpoint
Karen593256
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
İsa Badur
 
The cost of acquiring information by natural selection
The cost of acquiring information by natural selectionThe cost of acquiring information by natural selection
The cost of acquiring information by natural selection
Carl Bergstrom
 
23PH301 - Optics - Optical Lenses.pptx
23PH301 - Optics  -  Optical Lenses.pptx23PH301 - Optics  -  Optical Lenses.pptx
23PH301 - Optics - Optical Lenses.pptx
RDhivya6
 
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
frank0071
 
HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1
Shashank Shekhar Pandey
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
Sérgio Sacani
 
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdfMending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Selcen Ozturkcan
 
Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.
Aditi Bajpai
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Leonel Morgado
 
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
hozt8xgk
 
Immersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths ForwardImmersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths Forward
Leonel Morgado
 
Gadgets for management of stored product pests_Dr.UPR.pdf
Gadgets for management of stored product pests_Dr.UPR.pdfGadgets for management of stored product pests_Dr.UPR.pdf
Gadgets for management of stored product pests_Dr.UPR.pdf
PirithiRaju
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
Anagha Prasad
 
Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)
Sciences of Europe
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
PRIYANKA PATEL
 
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdfwaterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
LengamoLAppostilic
 
Compexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titrationCompexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titration
Vandana Devesh Sharma
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
Scintica Instrumentation
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
vluwdy49
 

Kürzlich hochgeladen (20)

Modelo de slide quimica para powerpoint
Modelo  de slide quimica para powerpointModelo  de slide quimica para powerpoint
Modelo de slide quimica para powerpoint
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
 
The cost of acquiring information by natural selection
The cost of acquiring information by natural selectionThe cost of acquiring information by natural selection
The cost of acquiring information by natural selection
 
23PH301 - Optics - Optical Lenses.pptx
23PH301 - Optics  -  Optical Lenses.pptx23PH301 - Optics  -  Optical Lenses.pptx
23PH301 - Optics - Optical Lenses.pptx
 
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
Juaristi, Jon. - El canon espanol. El legado de la cultura española a la civi...
 
HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1HOW DO ORGANISMS REPRODUCE?reproduction part 1
HOW DO ORGANISMS REPRODUCE?reproduction part 1
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
 
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdfMending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
 
Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
 
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
快速办理(UAM毕业证书)马德里自治大学毕业证学位证一模一样
 
Immersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths ForwardImmersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths Forward
 
Gadgets for management of stored product pests_Dr.UPR.pdf
Gadgets for management of stored product pests_Dr.UPR.pdfGadgets for management of stored product pests_Dr.UPR.pdf
Gadgets for management of stored product pests_Dr.UPR.pdf
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
 
Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)Sciences of Europe journal No 142 (2024)
Sciences of Europe journal No 142 (2024)
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
 
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdfwaterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
 
Compexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titrationCompexometric titration/Chelatorphy titration/chelating titration
Compexometric titration/Chelatorphy titration/chelating titration
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
 

chapter 1- introduction to distributed system.ppt

  • 2. Outline • Definition of a Distributed System • Goals of a Distributed System • Types of Distributed Systems Mar-24 2
  • 3. What Is A Distributed System? • A Distributed System is a collection of independent computers that appears to its users as a single coherent system. • They help in sharing different resources and capabilities to provide users with a single and integrated coherent network. • A distributed system is one in which components located at networked computers, communicate and coordinate their actions only by passing messages. • Ideal: to present a single-system image: – The distributed system “looks like” a single computer rather than a collection of separate computers. Mar-24 3
  • 4. Definition of a Distributed System Figure 1-1. A distributed system organized as middleware. The middleware layer runs on all machines, and offers a uniform interface to the system. Mar-24 4
  • 5. Role of Middleware (MW) • Middleware is software that functions as intermediate layer b/n applications and OS or b/n client and server. • In some early research systems: MW tried to provide the illusion/not tangible that a collection of separate machines was a single computer. • Today: – clustering software allows independent computers to work together closely. Mar-24 5
  • 6. Middleware Examples • CORBA (Common Object Request Broker Architecture) • DCOM (Distributed Component Object Management) – being replaced by .net • Sun’s ONC RPC (Open Network Computing Remote Procedure Call) • RMI (Remote Method Invocation) • SOAP (Simple Object Access Protocol) Mar-24 6
  • 7. Distributed System Goals • Resource Accessibility • Distribution Transparency • Openness • Scalability Mar-24 7
  • 8. Goal 1 – Resource Availability • Support user to access remote resources (printers, data files, web pages, CPU cycles) and the fair sharing of the resources. • Economics of sharing expensive resources. • Performance enhancement – due to multiple processors, ease of collaboration and information exchange – access to remote services. – Groupware: is tools to support collaboration. • Resource sharing introduces security problems. Mar-24 8
  • 9. Goal 2 – Distribution Transparency • Makes the system more user friendly. • A distributed system that appears to its users & applications to be a single computer system is said to be transparent. – Users & apps should be able to access remote resources in the same way they access local resources. • Transparency has several dimensions. Next Slide… Mar-24 9
  • 10. Types of Transparency Transparency Description Access Hide differences in data representation & resource access (enables interoperability) Location Hide location of resource (can use resource without knowing its location) Migration Hide possibility that a system may change location of resource (no effect on access) Replication Hide the possibility that multiple copies of the resource exist (for reliability and/or availability) Concurrency Hide the possibility that the resource may be shared concurrently. Failure Hide failure and recovery of the resource. How does one differentiate betw. slow and failed? Relocation Hide that resource may be moved during use. Figure 1-2. Different forms of transparency in a distributed system Mar-24 10
  • 11. Goal 2: Degrees of Transparency • There may be trade-off (compromise) b/n transparency and performance of the system. – Reduced performance: For example, many Internet applications repeatedly try to contact a server before finally getting service. – Consequently, attempting to mask a transient server failure before trying another one may slow down the system as a whole. • Too much emphasis on transparency may prevent the user from understanding system behavior. Mar-24 11
  • 12. Goal 3 - Openness • An open distributed system “…offers services according to standard rules that describe the syntax and semantics of those services.” In other words, the interfaces to the system are clearly specified and freely available. • Interface Definition Languages (IDL): used to describe the interfaces between software components, usually in a distributed system. – Definitions are language & machine independent – Support communication between systems using different OS/programming languages; e.g. a C++ program running on Windows communicates with a Java program running on UNIX. Mar-24 12
  • 13. • Interoperability: the ability of two different systems or applications to work together. – A process that needs a service should be able to talk to any process that provides the service. – Multiple implementations of the same service may be provided, as long as the interface is maintained. • Portability: an application designed to run on one distributed system can run on another system which implements the same interface. • Extensibility: Easy to add new components, features. Open Systems Support … Mar-24 13
  • 14. Goal 4 - Scalability • Dimensions that may scale: – With respect to size. – With respect to geographical distribution. – With respect to the number of administrative organizations spanned. • A scalable system still performs well as it scales up along any of the three dimensions (3D). Mar-24 14
  • 15. Size Scalability • Scalability is negatively affected when the system is based on; – Centralized server: one for all users. – Centralized data: a single database for all users. – Centralized algorithms: one site collects all information, processes it, distributes the results to all sites. • Complete knowledge: good • Time and network traffic: bad Mar-24 15
  • 16. Decentralized Algorithms • No machine has complete information about the system state. • Machines make decisions based only on local information. • Failure of a single machine doesn’t ruin the algorithm. • There is no assumption that a global clock exists. Mar-24 16
  • 17. Geographic Scalability • Early distributed systems ran on LANs, relied on synchronous communication. – May be too slow for WAN. – Wide-area communication is unreliable. – Unpredictable time delays may even affect correctness. • LAN communication is based on broadcast. – Consider how this affects an attempt to locate a particular kind of service • Centralized components + wide-area communication= wastage of network bandwidth. Mar-24 17
  • 18. Scalability - Administrative • Different domains may have different policies about resource usage, management, security, etc. • Trust often stops at administrative boundaries. – Requires protection from malicious attacks. Mar-24 18
  • 19. Scaling Techniques • Scalability affects performance more than anything else. • Three techniques to improve scalability: – Hiding communication latencies / delays – Distribution – Replication Mar-24 19
  • 20. 1. Hiding Communication Delays • Structure applications to use asynchronous communication (no blocking for replies) – While waiting for one answer, do something else; e.g., create one thread to wait for the reply and let other threads continue to process or schedule another task. • Download part of the computation to the requesting platform to speed up processing. – Filling in forms to access a DB: send a separate message for each field, or download form/code and submit finished version. – i.e., shorten the waiting times Mar-24 20
  • 21. Scaling Techniques Figure 1-3. The difference between letting (a) a server or (b) a client check forms as they are being filled. Mar-24 21
  • 22. 2. Distribution • Instead of one centralized service, divide into parts and distribute geographically. • Each part handles one aspect of the job – Example: DNS namespace is organized as a tree of domains; each domain is divided into zones; names in each zone are handled by a different name server. – WWW consists of many (millions?) of servers. Mar-24 22
  • 23. Scaling Techniques (2) Figure 1-4. An example of dividing the DNS name space into zones. Mar-24 23
  • 24. 3. Replication • Replication: multiple identical copies of something. – Replicated objects may also be distributed, but aren’t necessarily. • Replication; – Increases availability – Improves performance through load balancing – May avoid latency by improving proximity of resource Mar-24 24
  • 25. Summary Goals for Distribution • Resource accessibility – For sharing and enhanced performance • Distribution transparency – For easier use • Openness – To support interoperability, portability, extensibility • Scalability – With respect to size (number of users), geographic distribution, administrative domains Mar-24 25
  • 26. Types of Distributed Systems • Distributed Computing Systems (1) – Clusters – Grids – Clouds • Distributed Information Systems (2) – Transaction Processing Systems – Enterprise Application Integration • Distributed Embedded Systems (3) – Home systems – Health care systems – Sensor networks Mar-24 26
  • 27. Distributed Computing Systems (1) A) Cluster Computing • A collection of similar processors (PCs, workstations) running the same OS, connected by a high-speed LAN. • Parallel computing capabilities using inexpensive PC hardware. • Clustering is primarily used for high availability and fault tolerance. • If one node fails, another node in the cluster can take over, ensuring continuous operation of the system. Mar-24 27
  • 28. Cluster Types & Uses • High Performance Clusters (HPC) – run large parallel programs. – Scientific, military, engineering apps; e.g., weather modeling. • Load Balancing Clusters(LBC) – Front end processor distributes incoming requests. – server forms (e.g., at banks or popular web site) • High Availability Clusters (HAC) – Provide redundancy – back up systems. – More fault tolerant. Mar-24 28
  • 29. Clusters – Beowulf model • Linux-based • Master-slave paradigm – One processor is the master; allocates tasks to other processors, maintains batch queue of submitted jobs, handles interface to users – Master has libraries to handle message-based communication or other features (the middleware). Mar-24 29
  • 30. Cluster Computing Systems • Figure 1-6. An example of a cluster computing system. Figure1-5. An example of a (Beowulf) cluster computing system Mar-24 30
  • 31. Clusters – MOSIX model • Provides a symmetric, rather than hierarchical paradigm. – High degree of distribution transparency (single system image) – Processes can migrate between nodes dynamically and preemptively. Migration is automatic. • Used to manage Linux clusters. Mar-24 31
  • 32. More About MOSIX “The MOSIX Management System for Linux Clusters, Multi-clusters, GPU Clusters and Clouds”, A. Barak and A. Shiloh” • “Operating-system-like”; looks & feels like a single computer with multiple processors. • Supports interactive and batch processes. • Provides resource discovery and workload distribution among clusters. • Clusters can be partitioned for use by an individual or a group. • Best for compute-intensive jobs. Mar-24 32
  • 33. B) Grids • Similar to clusters but processors are more loosely coupled, tend to be heterogeneous, and are not all in a central location. • Can handle workloads similar to those on supercomputers, but grid computers connect over a network (Internet) and supercomputers’ CPUs connect to a high-speed internal bus/network. • Problems are broken up into parts and distributed across multiple computers in the grid – less communication between parts than in clusters. Mar-24 33
  • 34. A Proposed Architecture for Grid Systems • Fabric layer: interfaces to local resources at a specific site. • Connectivity layer: protocols to support usage of multiple resources for a single application; e.g., access a remote resource or transfer data between resources; and protocols to provide security. • Resource layer: manages a single resource, using functions supplied by the connectivity layer. • Collective layer: resource discovery, allocation, scheduling, etc. • Applications: use the grid resources • The collective, connectivity and resource layers together form the middleware layer for a grid. Figure: layered architecture for grid computing systems Mar-24 34
  • 35. 3) Cloud Computing • Provides scalable services as a utility over the Internet. • Often built on a computer grid. • Users buy services from the cloud. – Grid users may develop and run their own software. • Cluster/grid/cloud distinctions blur at the edges! Mar-24 35
  • 36. Distributed Information Systems(2) • Business-oriented. • Systems to make a number of separate network applications interoperable and build “enterprise-wide information systems”. • Two types discussed here: – Transaction processing systems – Enterprise application integration (EAI) Mar-24 36
  • 37. Distributed Information Systems(2) Transaction Processing Systems (2.1) • Provide a highly structured client-server approach for database applications. • Transactions are the communication model. • Obey the ACID properties: – Atomic: all or nothing. – Consistent: invariants/constants are preserved. – Isolated (serializable) – Durable: committed operations can’t be undone Mar-24 37
  • 38. Transaction Processing Systems • Figure 1-8. Example primitives for transactions. Figure: Example primitives for transactions Mar-24 38
  • 39. Transactions • Transaction processing may be centralized (traditional client/server system) or distributed. • A distributed database is one in which the data storage is distributed – connected to separate processors. Mar-24 39
  • 40. Nested Transactions • A nested transaction is a transaction within another transaction (a sub-transaction) – Example: a transaction may ask for two things (e.g., airline reservation info + hotel info) which would spawn two nested transactions • Primary transaction waits for the results. – While children are active, parent may only abort, commit, or spawn other children Mar-24 40
  • 41. Transaction Processing Systems Figure: A nested transaction. Mar-24 41
  • 42. Enterprise Application Integration (2.2) • Less structured than transaction-based systems. • EA components communicate directly. – Enterprise applications are things like HR data, inventory programs, … – May use different OSs, different DBs but need to interoperate sometimes. • Communication mechanisms to support this include CORBA, Remote Procedure Call (RPC) and Remote Method Invocation (RMI) Mar-24 42
  • 43. Enterprise Application Integration Figure: Middleware as a communication facilitator in enterprise application integration. Mar-24 43
  • 44. Distributed Pervasive/Embedded/ Systems (3) • The first two types of systems are characterized by their stability, nodes and network connections are more or less fixed. • This type of system is likely to incorporate small, battery-powered, mobile devices. – Home systems – Electronic health care systems – patient monitoring – Sensor networks system – data collection, surveillance Mar-24 44
  • 45. Distributed Pervasive/Embedded/ Systems (3) Home System (3.1) • Built around one or more PCs, but can also include other electronic devices: – Automatic control of lighting, sprinkler systems, alarm systems, etc. – Network enabled appliances – PDAs and smart phones, etc. Mar-24 45
  • 46. Distributed Pervasive/Embedded/ Systems (3) Electronic Health Care Systems(3.2) Figure: Monitoring a person in a pervasive electronic health care system, using (a) a local hub or (b) a continuous wireless connection. Mar-24 46
  • 47. Distributed Pervasive/Embedded/ Systems (3) Sensor Networks (3.3) • A collection of geographically distributed nodes consisting of a comm. device, a power source, some kind of sensor, a small processor… • Purpose: to collectively monitor sensory data (temperature, sound, moisture etc.,) and transmit the data to a base station. • “Smart environment” – the nodes may do some rudimentary processing of the data in addition to their communication responsibilities. Mar-24 47
  • 48. Sensor Networks(3.3) Figure: Organizing a sensor network database, while storing and processing data (a) only at the operator’s site. Mar-24 48
  • 49. Sensor Networks Figure: Organizing a sensor network database, while storing and processing data … or (b) only at the sensors. Mar-24 49