Lecture 1
Lecture 1
CONTENT
Common Characteristics
Advantages
Disadvantages
Conclusion
2
WHAT IS A DISTRIBUTED SYSTEM?
A collection of independent computers that appears
to its users as a single coherent system.
Features:
No shared memory – message-based communication
Each runs its own local OS
Heterogeneity
Ideal: to present a single-system image:
The distributed system “looks like” a single computer
rather than a collection of separate computers.
1. WHAT IS A DISTRIBUTED SYSTEM?
Concurrency of components
Lack of a global ‘clock’
Independent failures of components
4
CONSEQUENCES OF DISTRIBUTED
SYSTEMS
Concurrency of components
Lack of a global ‘clock’
Independent failures of components
5
DEFINITION OF A DISTRIBUTED
SYSTEM
Openness
Scalability
GOAL 1 – RESOURCE
AVAILABILITY
Support user access to 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; also due to ease of
collaboration and info exchange – access
to remote services
Groupware: tools to support collaboration
GOAL 2 – DISTRIBUTION TRANSPARENCY
Sensor networks
21
3. EXAMPLES OF DISTRIBUTED SYSTEMS
22
3.1 LOCAL AREA NETWORK
email server Desktop
computers
print and other servers
Local area
Web server network
email server
print
File server
other servers
the rest of
the Internet
router/firewall
23
3.2 DATABASE MANAGEMENT SYSTEM
24
3.3 AUTOMATIC TELLER MACHINE
NETWORK
25
3.4 INTERNET
intranet %
%
% ISP
backbone
satellite link
desktop computer:
server:
network link:
26
3.4.1 WORLD-WIDE-WEB
27
3.4.2 WEB SERVERS AND WEB
BROWSERS
http://www.google.comlsearch?q=lyu
www.google.com
Browsers
Web servers
www.uu.se Internet
http://www.uu.se/
www.w3c.org
Activity.html
28
3.5 MOBILE AND UBIQUITOUS
COMPUTING
Internet
Mobile
phone
Printer Laptop
Camera Host site
29
4. COMMON CHARACTERISTICS/
ATTRIBUTES
30
4.1 HETEROGENEITY
published.
New components have to be integrated with
existing components.
Differences in data representation of interface
32
4.3 SECURITY
In a distributed system, clients send requests to
access data managed by servers, resources in
the networks:
Doctors requesting records from hospitals
Users purchase products through electronic commerce
Security is required for:
Concealing the contents of messages: security and
privacy
Identifying a remote user or other agent correctly
(authentication)
To improve security:
Allow only authorized users to access resources
Ensure that information transmitted over the network is
readable only by the intended recipients
Provide mechanisms to protect resources from attack
New challenges: 33
Denial of service attack
Security of mobile code
4.4 SCALABILITY
Adaptation of distributed systems to
accommodate more users
respond faster (this is the hard one)
Replication
36
4.7 TRANSPARENCY
Distributed systems should be perceived by users
and application programmers as a whole rather
than as a collection of cooperating components.
Transparency has different aspects.
These represent various properties that
distributed systems should have.
37
17.2.4 TRANSPARENCY
Access transparency
Hides the details of networking protocols that enable
communication between distributed computers
Location transparency
Builds on access transparency to hide the location of
resources in the distributed system
Failure transparency
Method by which a distributed system provides fault
tolerance
Checkpointing
Periodically stores the state of an object such that it can be
restored if a failure in the distributed system results in the
loss of the object
Replication
A system provides multiple resources that perform the same
function
17.2.4 TRANSPARENCY
Replication transparency
Hides the fact that multiple copies of a resource are available
in the system
Persistence transparency
Hides the information about where the resource is stored—
memory or disk
Migration and relocation transparency
Hide the movement of components of a distributed system
Migration transparency
Masks the movement of an object from one location to another in
the system
Relocation transparency
Masks the relocation of an object from other objects that
communicate with it
Transaction transparency
Allows a system to achieve consistency by masking the
coordination among a set of resources
Hides the implementation of checkpointing and other
consistency mechanisms
5. BASIC DESIGN ISSUES
General software engineering principles
include rigor and formality, separation of
concerns, modularity, abstraction,
anticipation of change, …
Specific issues for distributed systems:
Naming
Communication
Software structure
System architecture
Workload allocation
Consistency maintenance 48
5.1 NAMING
A name is resolved when translated into an
interpretable form for resource/object reference.
Communication identifier (IP address + port number)
Name resolution involves several translation steps
Design considerations
Choiceof name space for each resource type
Name service to resolve resource names to comm. id.
Name services include naming context resolution,
hierarchical structure, resource protection
49
5.2 COMMUNICATION
Separated components communicate with sending
processes and receiving processes for data transfer
and synchronization.
Message passing: send and receive primitives
synchronous or blocking
asynchronous or non-blocking
Abstractions defined: channels, sockets, ports.
Communication patterns: client-server communication
(e.g., RPC, function shipping) and group multicast
50
5.3 SOFTWARE STRUCTURE
Layers in centralized computer systems:
Applications
Middleware
Operating system
51
5.3 SOFTWARE STRUCTURE
Layers and dependencies in distributed systems:
Applications
Open
Distributed programming services
support
Network computers
53
5.4.1 CLIENTS INVOKE INDIVIDUAL
SERVERS
result result
Server
Client
Key:
Process: Computer:
54
5.4.2 PEER-TO-PEER SYSTEMS
Peer 2
Peer 1
Application
Application
Sharable Peer 3
objects
Application
Peer 4
Application
Peers 5 .... N
55
5.4.3 A SERVICE BY MULTIPLE SERVERS
Service
Server
Client
Server
Client
Server
56
5.4.4 WEB PROXY SERVER
Client Web
server
Proxy
server
Client Web
server
57
5.4.5 WEB APPLETS
a) client request results in the downloading of applet code
Client Web
server
Applet code
Web
Client Applet server
58
5.4.6 THIN CLIENTS AND COMPUTE
SERVERS
Computer server
Network computer or PC
59
6.ADVANTAGES
Sharing Data : There is a provision in the environment
where user at one site may be able to access the data
residing at other sites.
Autonomy : Because of sharing data by means of data
60
7. DISADVANTAGES
61
ISSUES/PITFALLS OF
DISTRIBUTION
Requirement for advanced software to
realize the potential benefits.
Security and privacy concerns regarding
network communication
Replication of data and services
provides fault tolerance and availability,
but at a cost.
Network reliability, security,
heterogeneity, topology
Latency and bandwidth
Administrative domains
THANKS