46
A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Embed Size (px)

Citation preview

Page 1: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

A brief overview about

Distributed Systems

Group A4

Chris SunBryan MadenMin Fang

Page 2: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Why we need distributed system?

Computers become cheaper

More computers exist

Share resources

Connected together

Page 3: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Centralized v.s. Distributed systems

Mainframes Computerclusters

Page 4: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Characteristics

A collection of independent computers connected through networks.

Page 5: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Characteristics

Providing a single coherent system to users.

hiding the difference between computers and the communications.

Page 6: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Characteristics

Easy to expand and scale.

Replacing, add, and deletecomponents

Page 7: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Characteristics

Middleware

An additional layer of software to hide the heterogeneity of underlying platforms from applications

Page 8: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Middleware

Page 9: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Characteristics

Data flow control is more important than computing.

I/O bound task

Page 10: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

CharacteristicsNot proper for tasks of large computing.

A single computer is more efficient for computing.

Problem division and solution combination

Page 11: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Characteristics

LAN or WAN

Page 12: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Goals

Connecting

Transparency

Open

Scalable

Page 13: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Connecting

Easy to share resource

Economics

Page 14: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Transparency

Hide difference in data representation and how a

resource is accessed

Access

Page 15: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Transparency

Hide where a resource is located

Location

Logic Name

Page 16: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Transparency

Hide that a resource may move to another location

Migration

Page 17: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Transparency

Hide that a resource may be moved to another location while in use

Relocation

Page 18: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Transparency

Hide that a resource is replicated

Replication

Page 19: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Transparency

Hide that a resource may be shared by several competitive users

Concurrency

Locking

Page 20: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Transparency

Hide the failure and recovery of a resource

Failure

Page 21: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Transparency

Hide whether a (software) resource is in

memory or on disk

Persistence

Page 22: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Open

Offer services according to standard rules that describe the system and

semantics of those services

Protocol and IDL

Page 23: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Open

Flexible

Separating policy and mechanism

Rich set of parameters

Increase complexity

Page 24: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Scalable

Size

Geography

Administration

Page 25: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Scalable

Decentralization

Data Services Algorithms

Page 26: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Scalable

Techniques

Async Distributed Replicate

DNS zones Cache

Page 27: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Hardware types

Page 28: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Multiprocessor

A single physical address space shared by all CPUs

Page 29: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Multiprocessor

Bus

Coherent

Overloaded

Page 30: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Multiprocessor

Cache

90% hit rate

512K~1M

Page 31: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Multiprocessor

Crossbar

N2

Page 32: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Multiprocessor

Omega

N/2log2 N

Page 33: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Multicomputer

Each machine has its own private memory

Page 34: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

MulticomputerHomogeneous

OS Network Memory

Parallel

Page 35: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Multicomputer

Bus

Ethernet

25~100 nodes

Page 36: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Multicomputer

Switch

Mesh Hypercube

Page 37: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Multicomputer

Hypercube

Dimension = N

# Node = 2N

# Link = k2k-1

Page 38: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Multicomputer

Physical routing distance

Hamming distance

Page 39: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Types of Architectures

• Bus • Fully Connected• Ring• 2D

– Grid

– Torus

• HyperCube• Fully connected

Page 40: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

2D - Grid

• Grid or mesh– Matrix– Switches are connected to many other switches

but only one processor.

SwitchProcessor

Page 41: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

2D - Torus

• Each column is a ring

• Each row is a ring.

• More connections – more communication.

SwitchProcessor

Page 42: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Bandwidth

• Bisection Bandwidth– Separate network into two halves.

– Sum the bandwidth of the lines crossing the imaginary dividing line.

• Examples:– Bus has Bisection Bandwidth of one since only one con

nection between nodes.

– Grid = 4

– Torus = 8

Page 43: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Fault Tolerance

• The bigger the bandwidth the better the fault tolerance.

• Bus network has low fault tolerance.– When the bus is down, the communication is

down.

• Fully connected network has highest fault tolerance.– Also most expensive. (messaging, hardware)

Page 44: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

Leads to …

• Grid networks are starting to be developed to share processors and act as a single unit.

• Applications in Gaming, workplace.– Users have more computing power at less cost. – Users in one time zone can use grid in other

time zone where those users are asleep. Continual use of computing power.

Page 45: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

References

• Computer Architecture – A Quantitative Approach. Second Edition, Hennessy & Patterson, Morgan Kaufmann, 1996.

Page 46: A brief overview about Distributed Systems Group A4 Chris Sun Bryan Maden Min Fang

The End