SlideShare a Scribd company logo
1 of 31
Introduction to
Distributed
Systems
Today’s Session…
• What is a distributed system?
• Why do we need distributed system?
• Examples of distributed system
• Advantages
• Challenges
• Architectural categories
• Points to ponder
What do we have now which is not before??
Processor Memory
Storage Protocols
Networking
What do we have now which is not before??
Processor Memory
Storage Protocols
Networking
Computers got-
• Smaller
• Cheaper
• Power efficient
• Faster
What do we have now which is not before??
Processor Memory
Storage Protocols
Networking
• WHY?
- Microprocessor Tech
What do we have now which is not before??
Processor Memory
Storage Protocols
Networking
Avg song size = 4.4MB
Then @44kbps, download time was 15 mins
Now @12.9 mbps, download time is 3.5 sec
What do we have now which is not before??
Processor Memory
Storage Protocols
Networking
Large amount of Data
can be stored
What do we have now which is not before??
Processor Memory
Storage Protocols
Networking
• World is connected with
network.
• Live Streaming is possible
in secs.
• Faster and clear.
• A distributed system is a collection of
independent computers that appear to the
users of the system as a single coherent
system.
• Components located at networked
computers communicate and coordinate
their actions only by passing messages.
What is a distributed system??
What is a distributed system?? (Contd…)
• Consider large companies like Google or
Facebook with,
• Large number of Services, many users,
many requests at a time.
Can a single computer handle all
this??
What is a distributed system?? (Contd…)
• Consider large companies like Google or
Facebook with,
• Large number of Services, many users,
many requests at a time.
NO
What is a distributed system?? (Contd…)
• Consider large companies like Google or
Facebook with,
• Large number of Services, many users,
many requests at a time.
Do it with multiple computers which talk
to each other
Formal definition of distributed system
• A distributed system is a collection of
independent entities that cooperate to solve
a problem that cannot be individually solved.
Three major technologies in distributed system
• Main Frame Systems
• Bulk data processing
• Clusters
• Group of server and other resources connected
together
• Replacement of main frame to reduce cost
• Grid
• Combines resources over different geographical
location
Characteristics of distributed system
• No common physical clock
• No shared memory
• Geographical separation
• Autonomy and heterogeneity
Motivation for using a Distributed system
• Inherently distributed computations
• Resource sharing
• Access to geographically remote data and
resources
• Enhanced reliability
• Increased performance/cost ratio
• Scalability
• Modularity and incremental expandability
Relation to computer system components
• Each computer has a memory-processing unit and the
computers are connected by a communication
network.
Relation to computer system components
• The distributed software is also termed as middleware.
• A distributed execution is the execution of processes across the
distributed system to collaboratively achieve a common goal.
• An execution is also sometimes termed a computation or a run.
Characteristics of parallel systems
A parallel system may be broadly classified as belonging to one of
three types:
• A multiprocessor system
• A multicomputer parallel system
• Array processors
Characteristics of parallel systems
A parallel system may be broadly classified as belonging to one of
three types:
• A multiprocessor system
• A multicomputer parallel system
• Array processors
• A multiprocessor system is a parallel system in which the
multiple processors have direct access to shared memory
which forms a common address space.
• Such processors usually do not have a common clock.
Characteristics of parallel systems
A parallel system may be broadly classified as belonging to one of
three types:
• A multiprocessor system
• A multicomputer parallel system
• Array processors
Two standard architectures for parallel systems.
(a) Uniform memory access (UMA) multiprocessor system.
(b) Non-uniform memory access (NUMA) multiprocessor.
Characteristics of parallel systems
A parallel system may be broadly classified as belonging to one of
three types:
• A multiprocessor system
• A multicomputer parallel system
• Array processors
(a) Uniform memory access (UMA) multiprocessor system.
(b) Non-uniform memory access (NUMA) multiprocessor.
Characteristics of parallel systems
A parallel system may be broadly classified as belonging to one of
three types:
• A multiprocessor system
• A multicomputer parallel system
• Array processors
Uniform Memory Access (UMA)
• All the processors share the physical
memory in a centralized manner with
equal access time to all the memory.
• Each processor may have a private
cache memory.
• When all the processors have equal
access to all the peripheral devices, the
system is called a symmetric
multiprocessor.
• When only one or a few processors can
access the peripheral devices, the system
is called an asymmetric multiprocessor.
• When a CPU wants to access a memory
location, it checks if the bus is free, then
it sends the request to the memory
interface module and waits for the
requested data to be available on the
bus.
Characteristics of parallel systems
A parallel system may be broadly classified as belonging to one of
three types:
• A multiprocessor system
• A multicomputer parallel system
• Array processors
Non-uniform Memory Access
(NUMA)
• Shared memory is physically
distributed among all the
processors, called local memories.
• The collection of all local
memories forms a global address
space which can be accessed by all
the processors.
• NUMA systems also share CPUs
and the address space, but each
processor has a local memory,
visible to all other processors.
• In NUMA systems access to local
memory blocks is quicker than
access to remote memory blocks.
Characteristics of parallel systems
A parallel system may be broadly classified as belonging to one of
three types:
• A multiprocessor system
• A multicomputer parallel system
• Array processors
Non-uniform Memory Access
(NUMA)
• Shared memory is physically
distributed among all the
processors, called local memories.
• The collection of all local
memories forms a global address
space which can be accessed by all
the processors.
• NUMA systems also share CPUs
and the address space, but each
processor has a local memory,
visible to all other processors.
• In NUMA systems access to local
memory blocks is quicker than
access to remote memory blocks.
Characteristics of parallel systems
A parallel system may be broadly classified as belonging to one of
three types:
• A multiprocessor system
• A multicomputer parallel system
• Array processors
Multiple processors do not have direct access to shared memory.
The memory of the multiple processors may or may not form a
common address space.
Such computers usually do not have a common clock.
Shared Memory Message Passing
It is one of the region for data
communication
Mainly the message passing is used for
communication.
It is used for communication between
single processor and multiprocessor
systems where the processes that are
to be communicated present on the
same machine and they are sharing
common address space.
It is used in distributed environments
where the communicating processes
are present on remote machines which
are connected with the help of a
network.
The shared memory code that has to be
read or write the data that should be
written explicitly by the application
programmer.
Here no code is required because the
message passing facility provides a
mechanism for communication and
synchronization of actions that are
performed by the communicating
processes.
It is going to provide a maximum speed
of computations because the
communication is done with the help of
shared memory so system calls are
used to establish the shared memory.
Message passing is a time consuming
process because it is implemented
through kernel (system calls).
Shared Memory Message Passing
In shared memory make sure that the
processes are not writing to the same
location simultaneously.
Message passing is useful for sharing
small amounts of data so that conflicts
need not occur.
It follows a faster communication
strategy when compared to message
passing technique.
In message passing the communication
is slower when compared to shared
memory technique.
Given below is the structure of shared
memory system −
Given below is the structure of message
passing system −
Executing Tasks: Sync versus
Async
CS8603 – SYLLABUS
UNIT I INTRODUCTION
Introduction: Definition –Relation to computer system components –Motivation –Relation to parallel
systems — Message-passing systems versus shared memory systems –Primitives for distributed
communication –Synchronous versus asynchronous executions –Design issues and challenges. A model of
distributed computations: A distributed program –A model of distributed executions –Models of
communication networks –Global state — Cuts –Past and future cones of an event –Models of process
communications. Logical Time: A framework for a system of logical clocks –Scalar time –Vector time —
Physical clock synchronization: NTP.
UNIT II MESSAGE ORDERING & SNAPSHOTS
Message ordering and group communication: Message ordering paradigms –Asynchronous execution
with synchronous communication –Synchronous program order on an asynchronous system –Group
communication — Causal order (CO) — Total order. Global state and snapshot recording algorithms:
Introduction –System model and definitions –Snapshot algorithms for FIFO channels
UNIT III DISTRIBUTED MUTEX & DEADLOCK
Distributed mutual exclusion algorithms: Introduction — Preliminaries — Lamport?s algorithm — Ricart-
Agrawala algorithm — Maekawa?s algorithm — Suzuki–Kasami?s broadcast algorithm. Deadlock
detection in distributed systems: Introduction — System model — Preliminaries — Models of deadlocks
— Knapp?s classification — Algorithms for the single resource model, the AND model and the OR model.
UNIT IV RECOVERY & CONSENSUS
Checkpointing and rollback recovery: Introduction — Background and definitions — Issues in failure
recovery — Checkpoint-based recovery — Log-based rollback recovery — Coordinated checkpointing
algorithm — Algorithm for asynchronous checkpointing and recovery. Consensus and agreement
algorithms: Problem definition — Overview of results — Agreement in a failure —
free system — Agreement in synchronous systems with failures.
UNIT V P2P & DISTRIBUTED SHARED MEMORY
Peer-to-peer computing and overlay graphs: Introduction — Data indexing and overlays — Chord —
Content addressable networks — Tapestry. Distributed shared memory: Abstraction and advantages —
Memory consistency models –Shared memory Mutual Exclusion.

More Related Content

Similar to Intro_ppt.pptx

Overview of Distributed Systems
Overview of Distributed SystemsOverview of Distributed Systems
Overview of Distributed Systemsvampugani
 
Apos week 1 4
Apos week 1   4Apos week 1   4
Apos week 1 4alixafar
 
OS multiprocessing1.pptx
OS multiprocessing1.pptxOS multiprocessing1.pptx
OS multiprocessing1.pptxamerdawood2
 
Memory and Cache Coherence in Multiprocessor System.pdf
Memory and Cache Coherence in Multiprocessor System.pdfMemory and Cache Coherence in Multiprocessor System.pdf
Memory and Cache Coherence in Multiprocessor System.pdfrajaratna4
 
Memory Management in Operating Systems for all
Memory Management in Operating Systems for allMemory Management in Operating Systems for all
Memory Management in Operating Systems for allVSKAMCSPSGCT
 
Multiprocessor_YChen.ppt
Multiprocessor_YChen.pptMultiprocessor_YChen.ppt
Multiprocessor_YChen.pptAberaZeleke1
 
Distributed systems and scalability rules
Distributed systems and scalability rulesDistributed systems and scalability rules
Distributed systems and scalability rulesOleg Tsal-Tsalko
 
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptxParallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptxSumalatha A
 
EMBEDDED OS
EMBEDDED OSEMBEDDED OS
EMBEDDED OSAJAL A J
 
chapter-18-parallel-processing-multiprocessing (1).ppt
chapter-18-parallel-processing-multiprocessing (1).pptchapter-18-parallel-processing-multiprocessing (1).ppt
chapter-18-parallel-processing-multiprocessing (1).pptNANDHINIS109942
 
UNIT 1 - UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM.pptx
UNIT 1 - UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM.pptxUNIT 1 - UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM.pptx
UNIT 1 - UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM.pptxLeahRachael
 

Similar to Intro_ppt.pptx (20)

unit 4.pptx
unit 4.pptxunit 4.pptx
unit 4.pptx
 
Overview of Distributed Systems
Overview of Distributed SystemsOverview of Distributed Systems
Overview of Distributed Systems
 
Apos week 1 4
Apos week 1   4Apos week 1   4
Apos week 1 4
 
OS multiprocessing1.pptx
OS multiprocessing1.pptxOS multiprocessing1.pptx
OS multiprocessing1.pptx
 
Week5
Week5Week5
Week5
 
Distributed and clustered systems
Distributed and clustered systemsDistributed and clustered systems
Distributed and clustered systems
 
Memory and Cache Coherence in Multiprocessor System.pdf
Memory and Cache Coherence in Multiprocessor System.pdfMemory and Cache Coherence in Multiprocessor System.pdf
Memory and Cache Coherence in Multiprocessor System.pdf
 
Desktop and multiprocessor systems
Desktop and multiprocessor systemsDesktop and multiprocessor systems
Desktop and multiprocessor systems
 
Memory Management in Operating Systems for all
Memory Management in Operating Systems for allMemory Management in Operating Systems for all
Memory Management in Operating Systems for all
 
Multiprocessor_YChen.ppt
Multiprocessor_YChen.pptMultiprocessor_YChen.ppt
Multiprocessor_YChen.ppt
 
Distributed systems and scalability rules
Distributed systems and scalability rulesDistributed systems and scalability rules
Distributed systems and scalability rules
 
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptxParallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
 
EMBEDDED OS
EMBEDDED OSEMBEDDED OS
EMBEDDED OS
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
W-4.pptx
W-4.pptxW-4.pptx
W-4.pptx
 
parallel processing.ppt
parallel processing.pptparallel processing.ppt
parallel processing.ppt
 
chapter-18-parallel-processing-multiprocessing (1).ppt
chapter-18-parallel-processing-multiprocessing (1).pptchapter-18-parallel-processing-multiprocessing (1).ppt
chapter-18-parallel-processing-multiprocessing (1).ppt
 
Ch1 introduction
Ch1   introductionCh1   introduction
Ch1 introduction
 
Os concepts
Os conceptsOs concepts
Os concepts
 
UNIT 1 - UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM.pptx
UNIT 1 - UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM.pptxUNIT 1 - UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM.pptx
UNIT 1 - UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM.pptx
 

Recently uploaded

CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 

Recently uploaded (20)

CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 

Intro_ppt.pptx

  • 2. Today’s Session… • What is a distributed system? • Why do we need distributed system? • Examples of distributed system • Advantages • Challenges • Architectural categories • Points to ponder
  • 3. What do we have now which is not before?? Processor Memory Storage Protocols Networking
  • 4. What do we have now which is not before?? Processor Memory Storage Protocols Networking Computers got- • Smaller • Cheaper • Power efficient • Faster
  • 5. What do we have now which is not before?? Processor Memory Storage Protocols Networking • WHY? - Microprocessor Tech
  • 6. What do we have now which is not before?? Processor Memory Storage Protocols Networking Avg song size = 4.4MB Then @44kbps, download time was 15 mins Now @12.9 mbps, download time is 3.5 sec
  • 7. What do we have now which is not before?? Processor Memory Storage Protocols Networking Large amount of Data can be stored
  • 8. What do we have now which is not before?? Processor Memory Storage Protocols Networking • World is connected with network. • Live Streaming is possible in secs. • Faster and clear.
  • 9. • A distributed system is a collection of independent computers that appear to the users of the system as a single coherent system. • Components located at networked computers communicate and coordinate their actions only by passing messages. What is a distributed system??
  • 10. What is a distributed system?? (Contd…) • Consider large companies like Google or Facebook with, • Large number of Services, many users, many requests at a time. Can a single computer handle all this??
  • 11. What is a distributed system?? (Contd…) • Consider large companies like Google or Facebook with, • Large number of Services, many users, many requests at a time. NO
  • 12. What is a distributed system?? (Contd…) • Consider large companies like Google or Facebook with, • Large number of Services, many users, many requests at a time. Do it with multiple computers which talk to each other
  • 13. Formal definition of distributed system • A distributed system is a collection of independent entities that cooperate to solve a problem that cannot be individually solved.
  • 14.
  • 15. Three major technologies in distributed system • Main Frame Systems • Bulk data processing • Clusters • Group of server and other resources connected together • Replacement of main frame to reduce cost • Grid • Combines resources over different geographical location
  • 16. Characteristics of distributed system • No common physical clock • No shared memory • Geographical separation • Autonomy and heterogeneity
  • 17. Motivation for using a Distributed system • Inherently distributed computations • Resource sharing • Access to geographically remote data and resources • Enhanced reliability • Increased performance/cost ratio • Scalability • Modularity and incremental expandability
  • 18. Relation to computer system components • Each computer has a memory-processing unit and the computers are connected by a communication network.
  • 19. Relation to computer system components • The distributed software is also termed as middleware. • A distributed execution is the execution of processes across the distributed system to collaboratively achieve a common goal. • An execution is also sometimes termed a computation or a run.
  • 20. Characteristics of parallel systems A parallel system may be broadly classified as belonging to one of three types: • A multiprocessor system • A multicomputer parallel system • Array processors
  • 21. Characteristics of parallel systems A parallel system may be broadly classified as belonging to one of three types: • A multiprocessor system • A multicomputer parallel system • Array processors • A multiprocessor system is a parallel system in which the multiple processors have direct access to shared memory which forms a common address space. • Such processors usually do not have a common clock.
  • 22. Characteristics of parallel systems A parallel system may be broadly classified as belonging to one of three types: • A multiprocessor system • A multicomputer parallel system • Array processors Two standard architectures for parallel systems. (a) Uniform memory access (UMA) multiprocessor system. (b) Non-uniform memory access (NUMA) multiprocessor.
  • 23. Characteristics of parallel systems A parallel system may be broadly classified as belonging to one of three types: • A multiprocessor system • A multicomputer parallel system • Array processors (a) Uniform memory access (UMA) multiprocessor system. (b) Non-uniform memory access (NUMA) multiprocessor.
  • 24. Characteristics of parallel systems A parallel system may be broadly classified as belonging to one of three types: • A multiprocessor system • A multicomputer parallel system • Array processors Uniform Memory Access (UMA) • All the processors share the physical memory in a centralized manner with equal access time to all the memory. • Each processor may have a private cache memory. • When all the processors have equal access to all the peripheral devices, the system is called a symmetric multiprocessor. • When only one or a few processors can access the peripheral devices, the system is called an asymmetric multiprocessor. • When a CPU wants to access a memory location, it checks if the bus is free, then it sends the request to the memory interface module and waits for the requested data to be available on the bus.
  • 25. Characteristics of parallel systems A parallel system may be broadly classified as belonging to one of three types: • A multiprocessor system • A multicomputer parallel system • Array processors Non-uniform Memory Access (NUMA) • Shared memory is physically distributed among all the processors, called local memories. • The collection of all local memories forms a global address space which can be accessed by all the processors. • NUMA systems also share CPUs and the address space, but each processor has a local memory, visible to all other processors. • In NUMA systems access to local memory blocks is quicker than access to remote memory blocks.
  • 26. Characteristics of parallel systems A parallel system may be broadly classified as belonging to one of three types: • A multiprocessor system • A multicomputer parallel system • Array processors Non-uniform Memory Access (NUMA) • Shared memory is physically distributed among all the processors, called local memories. • The collection of all local memories forms a global address space which can be accessed by all the processors. • NUMA systems also share CPUs and the address space, but each processor has a local memory, visible to all other processors. • In NUMA systems access to local memory blocks is quicker than access to remote memory blocks.
  • 27. Characteristics of parallel systems A parallel system may be broadly classified as belonging to one of three types: • A multiprocessor system • A multicomputer parallel system • Array processors Multiple processors do not have direct access to shared memory. The memory of the multiple processors may or may not form a common address space. Such computers usually do not have a common clock.
  • 28. Shared Memory Message Passing It is one of the region for data communication Mainly the message passing is used for communication. It is used for communication between single processor and multiprocessor systems where the processes that are to be communicated present on the same machine and they are sharing common address space. It is used in distributed environments where the communicating processes are present on remote machines which are connected with the help of a network. The shared memory code that has to be read or write the data that should be written explicitly by the application programmer. Here no code is required because the message passing facility provides a mechanism for communication and synchronization of actions that are performed by the communicating processes. It is going to provide a maximum speed of computations because the communication is done with the help of shared memory so system calls are used to establish the shared memory. Message passing is a time consuming process because it is implemented through kernel (system calls).
  • 29. Shared Memory Message Passing In shared memory make sure that the processes are not writing to the same location simultaneously. Message passing is useful for sharing small amounts of data so that conflicts need not occur. It follows a faster communication strategy when compared to message passing technique. In message passing the communication is slower when compared to shared memory technique. Given below is the structure of shared memory system − Given below is the structure of message passing system −
  • 30. Executing Tasks: Sync versus Async
  • 31. CS8603 – SYLLABUS UNIT I INTRODUCTION Introduction: Definition –Relation to computer system components –Motivation –Relation to parallel systems — Message-passing systems versus shared memory systems –Primitives for distributed communication –Synchronous versus asynchronous executions –Design issues and challenges. A model of distributed computations: A distributed program –A model of distributed executions –Models of communication networks –Global state — Cuts –Past and future cones of an event –Models of process communications. Logical Time: A framework for a system of logical clocks –Scalar time –Vector time — Physical clock synchronization: NTP. UNIT II MESSAGE ORDERING & SNAPSHOTS Message ordering and group communication: Message ordering paradigms –Asynchronous execution with synchronous communication –Synchronous program order on an asynchronous system –Group communication — Causal order (CO) — Total order. Global state and snapshot recording algorithms: Introduction –System model and definitions –Snapshot algorithms for FIFO channels UNIT III DISTRIBUTED MUTEX & DEADLOCK Distributed mutual exclusion algorithms: Introduction — Preliminaries — Lamport?s algorithm — Ricart- Agrawala algorithm — Maekawa?s algorithm — Suzuki–Kasami?s broadcast algorithm. Deadlock detection in distributed systems: Introduction — System model — Preliminaries — Models of deadlocks — Knapp?s classification — Algorithms for the single resource model, the AND model and the OR model. UNIT IV RECOVERY & CONSENSUS Checkpointing and rollback recovery: Introduction — Background and definitions — Issues in failure recovery — Checkpoint-based recovery — Log-based rollback recovery — Coordinated checkpointing algorithm — Algorithm for asynchronous checkpointing and recovery. Consensus and agreement algorithms: Problem definition — Overview of results — Agreement in a failure — free system — Agreement in synchronous systems with failures. UNIT V P2P & DISTRIBUTED SHARED MEMORY Peer-to-peer computing and overlay graphs: Introduction — Data indexing and overlays — Chord — Content addressable networks — Tapestry. Distributed shared memory: Abstraction and advantages — Memory consistency models –Shared memory Mutual Exclusion.