Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of...
-
Upload
may-newton -
Category
Documents
-
view
218 -
download
3
Transcript of Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of...
![Page 1: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/1.jpg)
Classification of Distributed SystemsProperties of Distributed Systems
motivation: advantages of distributed systems
classification architecture based
on interconnection on memory access
design based (OS models) design issues of a distributed system
transparency heterogeneity autonomy others
![Page 2: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/2.jpg)
Classification of Operating Systems (cont.)
“True” Distributed Operating System
Loosely-coupled hardware No shared memory, but provides the “feel” of a single
memory
Tightly-coupled software One single OS, or at least the feel of one
Machines are somewhat, but not completely, autonomous
P1 P2 P3
P4 P5
Network
M1 M2 M3
M4 M5
Disk1
Disk5Printer4
![Page 3: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/3.jpg)
Why Use Distributed Systems?What are the Advantages?
Price / performance Network of workstations provides more MIPS for less $ than
a mainframe does Higher performance:
n processors potentially give n times the computational power
Resource sharing: Expensive (scarce) resources need not be replicated for
each processor Scalability:
Modular structure makes it easier to add or replace processors and resources
Reliability: Replication of processors and resources yields fault
tolerance
![Page 4: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/4.jpg)
Classification of MIMD
Architectures
Tightly coupled parallel processing
Processors share clock and memory, run one OS, communicate frequently
Loosely coupled distributed computing
Each processor has its own memory, runs its own OS (?), communicates infrequently
Tanenbaum(date?)
MIMDparallel anddistributedcomputers
tightlycoupled
multiprocessors(shared
memory)
multicomputers(distributed /
private memory)
looselycoupled
switchedbus switchedbus
Ultra-computer
Sequent HypercubeWorkstationson a LAN
![Page 5: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/5.jpg)
Classification of Multiprocessors Based on Interconnection Network
Two main types of interconnection:
Bus
Switch (crossbar, multistage switch)
Bus-based interconnection
Simple
Bus is a broadcast medium
Contention for access to bus (does not scale well)
Complicates caches (need snoopy cache)
M1 M2 Mm
P1 P2 Pn
![Page 6: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/6.jpg)
Classification of Multiprocessors Based on Interconnection Network (cont.)
Corssbar switch:
little contention for memory access — multiplememories can be accessed in parallel
Simple routing
Number of crossbar switches grows quadratically
M1 M2 Mm
P1
P2
Pn
switch
![Page 7: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/7.jpg)
Classification of Multiprocessors Based on Interconnection Network (cont.)
Multistage switch
Reduced number of switches
Increased communication delay(number of hops
Increased contention for memory access
Complex network
P1
P2
P3
P4
P5
P6
P7
P8
M1
M2
M3
M4
M5
M6
M7
M8
![Page 8: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/8.jpg)
Classification of Multicomputers Based on Interconnection Network
Two main types of interconnection:
LAN (local area network) – bus based
Switching network Grid n2 - nodes arranged as an n x n grid
– easy to lay-out
– Maximum route proportional to n2
– Most messages take multiple hops Hypercube – a n-degree hypercube (n-cube) consists of 2n
nodes (processors) arranged in an n-dimensional cube, where each node is connected to n other nodes
– Maximum route proportional to n– Most messages take multiple hops
![Page 9: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/9.jpg)
Classification of Multiprocessors and Multicomputers, Based on Memory Access
UMA — Uniform Memory Access
Main memory is at a central location
NUMA — Non-Uniform Memory Access
Main memory is physically partitioned, with each partition attached to a different processor
Each processor can access its own memory (fast), or the memory of another processor (slow)
NORMA — No Remote Memory Access
Main memory is physically partitioned, with each partition attached to a different processor
A processor can not access the memory of another processor
![Page 10: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/10.jpg)
Distributed System Models
Minicomputer model
Several minicomputers connected to a network, each with several terminals
Workstation model
Many workstations connected to a network
Particularly useful if users can use remote workstations (process migration)
Workstation-server model
Same, plus more some machines run as servers: file server, print server, etc.
Good resource sharing (printers, etc.), cheap workstations (don’t need big disks)
Processor-pool model
Terminals connect to network, pool of processors connect to network
![Page 11: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/11.jpg)
Goals of a Distributed System:Transparency
Access transparency User is unaware whether a resource is local or remote
Location transparency User is unaware of physical location of hardware or
software resources location transparency user mobility
Migration transparency User is unaware if OS moves processes or resources (e.g.,
files) move to a different physical locations Replication transparency
Resource duplication is invisible to users Concurrency transparency
Resource sharing is invisible to users
![Page 12: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/12.jpg)
Goals of a Distributed System:Support Heterogeneity
Heterogeneity means “consisting of a number of completely different elements”
Computer hardware heterogeneity
Different computer architectures (e.g., instruction sets, data representations) of components in distributed systems
Network heterogeneity
Different transmission media, signaling, network interfaces, and protocols
Software heterogeneity
Different operating systems, application programs
![Page 13: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/13.jpg)
Goals of a Distributed System:Right Degree of Autonomy
Autonomy is a measure of the independence of the components in a distributed system
Low degree of autonomy = dependent Inflexible Little robustness in the presence of failures
High degree of autonomy = independent More flexibility High redundancy May still require some central control Poor resource sharing and coordination
![Page 14: Classification of Distributed Systems Properties of Distributed Systems n motivation: advantages of distributed systems n classification l architecture.](https://reader036.fdocuments.net/reader036/viewer/2022071705/56649ce15503460f949ab130/html5/thumbnails/14.jpg)
Other design issues of a distributed system
fault tolerance – system should be able to withstand failure of its components and continue (in possibly diminished capacity) its operation
flexibility – to ease modification and enhancement scalability – system’s performance should not dramatically
deteriorate as the system size decreases security
the communicating parties should be sure of each other identity (be able to trust each other)
the communicating parties should be sure that the communication is not compromised (altered or eavesdropped)
hard because there is no single point of control/authentication