Chapter 1
Chapter 1
Prerequisites:
- Operating System
- Computer Networks
Distributed Systems: Principles and Paradigms, 2nd Ed., Andrew S. Taenbaum and
Maarten Van Steen, Prentice Hall, 2007.
References:
7
Divyashikha Sethia (DTU)
Practical Evaluation
8
Divyashikha Sethia (DTU)
Definition of a Distributed System (1)
9
Divyashikha Sethia (DTU)
Some uses..
manner possible
•Large bank with branch offices over world, each office with:
- Master computer to store local accounts and handle local transactions
- Ability to communicate with other branch offices and central computer
located.
10
Divyashikha Sethia (DTU)
Definition of a Distributed System (2)
• Resource Availability
• Distribution Transparency
• Openness
• Scalability
• Threat to Security
different places
• Administrative scalability
Concept Example
- Global clock
1. Distribution
1. Replication
side
Divyashikha Sethia (DTU) 22
Hiding Communication latencies(2)
1.4
•Better solution: code for filling in form, and possibly checking entries, to the
client, and have the client return a completed form
Eg: Web in the form of Java applets and Javascript
1.5
The name of the server handling a document is encoded into that document's
•
URL.
•It is only because of this distribution of documents that the Web has been
capable of scaling to its current size
27
Divyashikha Sethia (DTU)
Scaling Techniques - Replication
•Replicate components across distributed system – increasing availability
and balancing load between components for better performance
eg: Geographically close copy can hide communication latency
• Higher reliability
Wires from
Single medium
machine to
connecting all
machine
machines
34
Hardware Concepts
A bus-based multiprocessor.
• Bus has address lines, data lines and control lines in parallel.
• Single coherent memory ( memory written is readable to others
Snoopy cache – cache constantly monitors the bus for any write
•
37
Divyashikha Sethia (DTU)
Multiprocessors (2)
1.8
38
Divyashikha Sethia (DTU)
Multiprocessor
• Crossbar Switch:
- Every intersection between CPU and memory is a physical switch that
can be opened or closed
- Many CPUs can access memory at the same time provided memory
• Omega network:
- Contains 2x2 switch
LAN
40
Divyashikha Sethia (DTU)
Homogeneous Multicomputer Systems
1-9
a) Grid b) Hypercube
41
Divyashikha Sethia (DTU)
Types of Distributed Systems
42
Divyashikha Sethia (DTU)
Distributed Computing System(1)
i) Cluster computing
- underlying hardware consists of similar workstations closely
connected by
means of a highspeed LAN
- each node runs same OS
43
Divyashikha Sethia (DTU)
Cluster Computing
45
Divyashikha Sethia (DTU)
Grid Computing
• Computing systems have a high degree of heterogeneity
46
Divyashikha Sethia (DTU)
Layered architecture for
grid computing
• Fabric layer
- Provides interfaces to local resources at a specific site.
- Allows sharing of resources within a virtual organization
• Connectivity Layer
- Communication protocol for grid transactions for usage of multiple resources
- Security protocols to authenticate users and resources
47
Divyashikha Sethia (DTU)
Layered architecture for
grid computing
Middleware
Layer
• Resource Layer
- Responsible for managing a single resource
- Functions for obtaining configuration information on a specific resource, perform
specific operations such as creating a process or reading data
• Collective layer
- Access multiple resources
- Services for resource discovery, allocation & scheduling tasks onto multiple
resources, data replication
• Application layer
- Applications that operate within virtual organization &which use grid computing
48
Divyashikha Sethia (DTU)
Difference between Cluster and
Grid computing
Characteristics of Grid Computing
• Loosely coupled (Decentralization)
Diversity and Dynamism
Distributed Job Management & scheduling
49
Divyashikha Sethia (DTU)
Distributed vs Cloud Computing
•Distributed computing/distributed system involve breaking up a
problem which can be solved by a group of computers working at the
same time.
• Cloud computing:
- lots of small allocation requests. The Amazon EC2 accounts are
52
Divyashikha Sethia (DTU)
Enterprise Application Integration
communication
54
Divyashikha Sethia (DTU)
Message Oriented middleware (MOM)
• Disadvantage of RPC & RPI:
- caller and callee need to be up and running at time of communication
- need to know exactly how to refer to each other
55
Divyashikha Sethia (DTU)
Distributed Pervasive System
⮚Small, battery-powered, mobile, devices with only a wireless connection
hence not very stable
⮚ Configured by owners, but should automatically discover environment
⮚Requirements:
56
Divyashikha Sethia (DTU)
Example of pervasive systems
Home Systems:
⮚
58
Divyashikha Sethia (DTU)
Sensor Networks
⮚Used for processing information and form the basis for many medium-
scale distributed systems
Distributed Database
⮚
59
Divyashikha Sethia (DTU)
Sensor Network database
61
Divyashikha Sethia (DTU)
In-network processing
⮚ Forward query to all sensor nodes along a tree encompassing all nodes
and subsequently aggregate results as they are propagated back to root,
where initiator is located
⮚ Aggregation will take place where two or more branches of the tree
come to together
62
Divyashikha Sethia (DTU)
Summary
⮚Distributed systems consist of autonomous computers that work together
to give the appearance of a single coherent system.
⮚Advantage:
Scalability
⮚Types of Systems:
63
Divyashikha Sethia (DTU)
Resources
• http://www.thepicky.com/tech/difference-cloud-computing-vs-grid-
computing/
64
Copy protected with Online-PDF-No-Copy.com Divyashikha Sethia (DTU)