SKR 4401
SKR 4401
Systems
1
SKR 4401 Distributed Systems
Textbooks:
Distributed Systems, Principles and Paradigms,
by A. Tanenbaum and M. V. Steen, Prentice Hall,
2002.
ISDN: 0-13-088893-1
Reference Book:
Distributed Systems: Concepts and Design, by
Coulouris, Dollimore and Kindberg.Edition 3,
Addison-Wesley 2001
ISDN 0201-61918-0
2
Course Outline
Introduction to Distributed Systems (DS)
Process & Inter-Process Communication in DS
Naming
Synchronization in DS
Consistency & Replication
Fault Tolerance
Security in DS
Distributed System Paradigms
New Developments in Distributed Systems
3
Course Work and Assessment
Test 1: 20%
Test 2: 20%
Assignment: 20%
- An assignment involving the development of a
distributed application using various technologies
related to the course.
Final Examination : 40%
For a student to pass the course, at least 30% of
the maximum mark for the examination must be
obtained.
4
1. Introduction to DS
The definition of distributed systems (DS) and
characteristics
Major goals in building DS
Hardware and software concepts in DS
Middleware in DS
Client-server model
5
Learning Objectives
To understand the (informal) definition of distributed
systems and its implications;
To examine the major goals in building DS: connecting
users and resource, transparency, openness and
scalability;
To understand the basic architectures of the underlying
hardware in DS, focusing on multiprocessor and
multicomputer systems;
To examine the major features of distributed operating
system (DOS) and network operating system (NOS);
To study how middleware is developed on the top of the
NOS to build a DS;
To gain a good understanding of client-server model in
DS.
6
What Is A Distributed System?
A distributed system is a collection of independent
computers that appears to its users as a single
coherent system.
- A. S. Tanenbaum et al.
2002
8
Ex 2 Intranets
9
Ex 3:Mobile and Ubiquitous
Computing System
10
Example 4: Embedded System
11
Example 5: Distributed Mutlimedia
System
12
Distributed System
1.1
14
WHY Distributed System?
The sharing of resources is a main motivation for
constructing distributed systems.
The DS may provide distribution-transparency
platforms for easy programming for distributed
applications.
Some applications are inherently distributed (e.g.
banking and supermarket chain etc).
Other good features of DS include high
performance/cost, reliability, scalability, and
flexibility etc.
15
Challenge 1: Heterogeneity
18
Challenge 4: Scalability
20
Scaling Techniques: reducing the
overall communication
1.4
1.5
23
Challenge 6: Concurrency
24
Challenge 7: Transparency
25
Distribution Transparency
Transparency is defined as the concealment from the
user and the application programmer of the
separation of components in a DS.
Achieving distribution transparency makes everyone
into thinking that the collection of machines is simply
an old-fashioned time-sharing system, instead of a
collection of independent components.
The transparency is generally preferable for any DS.
It also should be considered together with other
issues such as performance.
26
Transparency in a Distributed
System
Transparency Description
Hide differences in data representation and how a resource is
Access
accessed
Location Hide where a resource is located
Relocation Hide that a resource may be moved to another location while in use
1.6
29
Hardware Concepts:
Multicomputers
Homogeneous multicomputers (usually used in
parallel systems): a single interconnection network,
all processors are the same and generally have access
to the same amount of private memory.
Heterogeneous multicomputers (usually used in
distributed systems): a variety of different,
independent computers connected through different
networks.
Due to the large scale, inherent heterogeneity, and
lack of global system view in heterogeneous
multicomputer, sophisticated software is needed to
build applications, developing a distributed system
(DS). Thus DSs usually have a software layer
(middleware) to provide transparency.
30
Homogeneous Multicomputer
Systems
1-9
a) 2D-Mesh (Grid)
b) Hypercube
31
Software Concepts: Distributed
OS
Distributed systems act as resource manager (like
traditional OS), and more importantly, attempt to hide the
heterogeneous nature to provide a virtual single system on
which applications can be easily executed.
Distributed operating systems (DOS): managing
multiprocessor and homogeneous multicomputers. DOS
aims to support high performance through multiple
processors.
In multiprocessor, DOS supports for multiple processors
having access to a shared memory and protects data
against simultaneous access the same shared memory
locations.
In multicomputer, DOS offers the message-passing
facilities to applications.
The main goal of DOS is to hide the intricacies of managing
the underlying hardware such that it can be shared by
multiple processes.
32
Software Concepts: Network OS
Network operating system (NOS): used for
heterogeneous multicomputer systems. In additional
to managing the underlying hardware and other
resources, it makes the local services available to
remote clients. NOS does not provide a single system
image (transparency) to the users.
Example: some (non-transparency) services NOS may
provide (in UNIX)
rlogin machine
rcp machine1:file2 machine2:file2
The lack of transparency in NOS has some drawbacks,
such as they are harder to use and manage, and
introducing some security problem.
33
Network Operating System
General structure of a network operating system.
1-19
34
Software Concepts: An Overview
System Description Main Goal
An overview between
DOS (Distributed Operating Systems)
NOS (Network Operating Systems)
Middleware
35
Software Concepts: Middleware
Middleware: a software layer between applications and
the NOS provides a higher level abstraction as well as
masking the heterogeneity of the underlying components.
Modern DSs are generally built in this way.
In such a DS, the local OS in each computer manages its
resources while the middleware offer a more-or-less
complete collection of services used by the applications.
Most middleware is based on some model (or paradigm)
for describing distribution and communication, such as
distributed file system, remote procedure call (RPC),
distributed object, distributed document etc.
36
Positioning Middleware
1-22
Applications
Operating System
38
Middleware: Services
Some services common to many middleware
systems:
* high-level communication facilities: to hide the
low-level message passing through computer
networks, and implement access transparency;
* naming services: allow entities to be shared and
looked up. Scalability could be a big issue;
* facilities for storage (persistence): It could be
offered through a distributed file system, and
integrated database into their system in more
advanced middleware;
* facilities for distributed transactions;
* facilities for security.
39
Middleware and Openness
1.23
Number of copies of OS 1 N N N
Shared
Basis for communication Messages Files Model specific
memory
Global,
Resource management Global, central Per node Per node
distributed
1.25
43
A service provided by multiple
servers
Service
Server
Client
Server
Client
Server
44
Multitiered Architectures
An example of a server acting as a client (vertical distribution).
1-30
45
The Client-Server Model:
Application Layering
There is often no clear distinction between a client
and a server.
Many client-server applications are targeted toward
supporting user access to database, a distinction can
be drawn between the following three levels:
* user-interface level: contains all that is necessary
to directly interface with the user, such as display
management;
* process level: typically contains the applications;
* data level: contains the actual data being acted
on.
46
Application Layering (search engine
in Internet)
1-28
47
Client-Server Architecture
The distinction into three logical levels suggests a
number of possibilities for physically distributing a
client-server application across several machines.
One approach for organizing clients and servers is to
distribute the programs in the application layers
across different machines, as shown in the next slide.
In modern architectures, it often uses horizontal
distribution: a client or server may be physically slit
up into logically equivalent parts, but each part is
operating on its own share of the complete data set,
thus balancing the load.
For simple collaborative applications, there may be no
server. A peer process model can be used.
48
Alternative client-server
organizations
Alternative client-server organizations (a) (e).
1-29
49
Modern Architectures
1-31
50
A distributed application based on peer
processes (not client-server model)
Coordination Coordination
c ode c ode
Applic ation
Coordination
c ode
51
Summary-I
DSs consist of autonomous computers working
together to give the appearance of single coherent
system.
A DS should easily connect users to resources; It
should hide the fact that resources are distributed
across network; It should be open and scalable.
A DOS manages the hardware of multiprocessors and
homogeneous multicomputers. It does a good job at
providing a single-system view, but does not really
support autonomous computers.
An NOS is good at connecting autonomous
computers, so that users can make use of each
nodes local services, but it does not offer a single-
system view.
52
Summary-II
Modern DSs are generally built by adding an
additional software layer, called middleware, atop of
an NOS, to hide the heterogeneity and distributed
nature of the underlying collection of computers. In
such a DS, a specific model, such as distributed file
system or distribute object, can be adopted.
The internal organization of a DS is important. Client-
server model is a widely applied model in DS. A
further refinement in this model is often made by
distinguishing a user-interface level, a processing
level, and a data level.
In modern DS, it is desirable to have horizontal
distribution by which clients and servers are
physically distributed and across multiple computers
(example: WWW). 53