SlideShare a Scribd company logo
1 of 18
Muhammad Naveed(BC123186)
Introduction to Distributed
Systems
 What is a distributed system
 A distributed system is a collection of independent computers that appear to
the users of the system as a single system.
Advantages of Distributed Systems
 Data sharing: allow many users to access to a common
data base
 Resource Sharing: expensive peripherals like color
printers
 Communication: enhance human-to-human
communication, e.g., email, chat
 Flexibility: spread the workload over the available
machines
 Reliability: If one machine crashes, the system as a
whole can still survive. Higher availability and improved
reliability.
Disadvantages of Distributed
Systems
 Software: difficult to develop software for distributed
systems
 Network: loss of transmissions
 Security: easy access also applies to secrete data
Hardware Concepts
 MIMD (Multiple-Instruction Multiple-Data)
 Tightly Coupled versus Loosely Coupled
 Tightly coupled systems (multiprocessors)
o shared memory
o intermachine delay short, data rate high
 Loosely coupled systems (multicomputers)
o private memory
o intermachine delay long, data rate low
Bus versus Switched MIMD
• Bus: a single network, backplane, bus, cable or other
medium that connects all machines. E.g., cable TV
• Switched: individual wires from machine to machine,
with many different wiring patterns in use.
 Multiprocessors (shared memory)
 Bus
 Switched
 Multicomputers (private memory)
 Bus
 Switched
Switched Multiprocessors
 Switched Multiprocessors
 for connecting large number (say over 64) of processors
 crossbar switch: n**2 switch points
 omega network: 2x2 switches for n CPUs and n
memories, log n switching stages, each with n/2
switches,
 total (n log n)/2 switches
 delay problem: E.g., n=1024, 10 switching stages from
CPU to memory. a total of 20 switching stages. 100
MIPS 10 nsec instruction execution time need 0.5 nsec
switching time
Cont…
 NUMA (Non-Uniform Memory Access): placement of
program and data
 building a large, tightly-coupled, shared memory
multiprocessor is possible, but is difficult and expensive
Multicomputers
 Bus-Based Multicomputers
 easy to build
 communication volume much smaller
 relatively slow speed LAN (10-100 MIPS, compared to
300 MIPS and up for a backplane bus)
 Switched Multicomputers
 interconnection networks: E.g., grid, hypercube
 hypercube: n-dimensional cube
Software Concepts
• Software more important for users
• Three types:
1. Network Operating Systems
2. (True) Distributed Systems
3. Multiprocessor Time Sharing
(True) Distributed Systems
 tightly-coupled software on loosely-coupled hardware
 provide a single-system image or a virtual uniprocessor
 a single, global interprocess communication
mechanism, process management, file system; the same
system call interface everywhere
 Ideal definition:
“ A distributed system runs on a collection of computers that do
not have shared memory, yet looks like a single computer to
its users.”
Multiprocessor Operating Systems
 Tightly-coupled software on tightly-coupled hardware
 Examples: high-performance servers
 shared memory
 single run queue
 traditional file system as on a single-processor system:
central block cache
Design Issues of Distributed
Systems
• Transparency
• Flexibility
• Reliability
• Performance
• Scalability
Transparency
• How to achieve the single-system image, i.e., how to
make a collection of computers appear as a single
computer.
• Hiding all the distribution from the users as well as
the application programs can be achieved at two
levels:
1) hide the distribution from users
2) at a lower level, make the system look transparent to
programs.
1) and 2) requires uniform interfaces such as access to
files, communication.
Flexibility
• Make it easier to change
• Monolithic Kernel: systems calls are trapped and
executed by the kernel. All system calls are served by
the kernel, e.g., UNIX.
• Microkernel: provides minimal services.
1) IPC
2) some memory management
3) some low-level process management and scheduling
4) low-level i/o
E.g., Mac can support multiple file systems, multiple
system interfaces.
Reliability
• Distributed system should be more reliable than single
system. Example: 3 machines with .95 probability of
being up. 1-.05**3 probability of being up.
– Availability: fraction of time the system is usable.
Redundancy improves it.
– Need to maintain consistency
– Need to be secure
– Fault tolerance: need to mask failures, recover from
errors.
Performance
• Without gain on this, why bother with distributed
systems.
• Performance loss due to communication delays:
– fine-grain parallelism: high degree of interaction
– coarse-grain parallelism
• Performance loss due to making the system fault
tolerant.
Scalability
• Systems grow with time or become obsolete. Techniques
that require resources linearly in terms of the size of the
system are not scalable. e.g., broadcast based query won't
work for large distributed systems.
• Examples of bottlenecks
o Centralized components: a single mail server
o Centralized tables: a single URL address book
o Centralized algorithms: routing based on complete
information

More Related Content

What's hot

management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
Nilu Desai
 
1. Overview of Distributed Systems
1. Overview of Distributed Systems1. Overview of Distributed Systems
1. Overview of Distributed Systems
Daminda Herath
 
Unit i introduction to grid computing
Unit i   introduction to grid computingUnit i   introduction to grid computing
Unit i introduction to grid computing
sudha kar
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
Keshab Nath
 

What's hot (20)

Communication in Distributed Systems
Communication in Distributed SystemsCommunication in Distributed Systems
Communication in Distributed Systems
 
Desktop and multiprocessor systems
Desktop and multiprocessor systemsDesktop and multiprocessor systems
Desktop and multiprocessor systems
 
Introduction to OpenMP (Performance)
Introduction to OpenMP (Performance)Introduction to OpenMP (Performance)
Introduction to OpenMP (Performance)
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)
 
Replication in Distributed Systems
Replication in Distributed SystemsReplication in Distributed Systems
Replication in Distributed Systems
 
Types of clouds in cloud computing
Types of clouds in cloud computingTypes of clouds in cloud computing
Types of clouds in cloud computing
 
Unit 1
Unit 1Unit 1
Unit 1
 
Distributed Operating System,Network OS and Middle-ware.??
Distributed Operating System,Network OS and Middle-ware.??Distributed Operating System,Network OS and Middle-ware.??
Distributed Operating System,Network OS and Middle-ware.??
 
Distributed Operating Systems
Distributed Operating SystemsDistributed Operating Systems
Distributed Operating Systems
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
 
Scheduling in Cloud Computing
Scheduling in Cloud ComputingScheduling in Cloud Computing
Scheduling in Cloud Computing
 
1. Overview of Distributed Systems
1. Overview of Distributed Systems1. Overview of Distributed Systems
1. Overview of Distributed Systems
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
Unit i introduction to grid computing
Unit i   introduction to grid computingUnit i   introduction to grid computing
Unit i introduction to grid computing
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architecture
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
 
Underlying principles of parallel and distributed computing
Underlying principles of parallel and distributed computingUnderlying principles of parallel and distributed computing
Underlying principles of parallel and distributed computing
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
 

Viewers also liked

Term paper of cse(211) avdhesh sharma c1801 a24 regd 10802037
Term paper of cse(211) avdhesh sharma c1801 a24 regd 10802037Term paper of cse(211) avdhesh sharma c1801 a24 regd 10802037
Term paper of cse(211) avdhesh sharma c1801 a24 regd 10802037
Upendra Sengar
 
Disaster Recovery & Data Backup Strategies
Disaster Recovery & Data Backup StrategiesDisaster Recovery & Data Backup Strategies
Disaster Recovery & Data Backup Strategies
Spiceworks
 
Presentation on backup and recoveryyyyyyyyyyyyy
Presentation on backup and recoveryyyyyyyyyyyyyPresentation on backup and recoveryyyyyyyyyyyyy
Presentation on backup and recoveryyyyyyyyyyyyy
Tehmina Gulfam
 

Viewers also liked (20)

Lecture 1 (distributed systems)
Lecture 1 (distributed systems)Lecture 1 (distributed systems)
Lecture 1 (distributed systems)
 
Chap 01 lecture 1distributed computer lecture
Chap 01 lecture 1distributed computer lectureChap 01 lecture 1distributed computer lecture
Chap 01 lecture 1distributed computer lecture
 
Distributive operating system
Distributive operating systemDistributive operating system
Distributive operating system
 
Dce rpc
Dce rpcDce rpc
Dce rpc
 
Message passing
Message passingMessage passing
Message passing
 
Slide05 Message Passing Architecture
Slide05 Message Passing ArchitectureSlide05 Message Passing Architecture
Slide05 Message Passing Architecture
 
Term paper of cse(211) avdhesh sharma c1801 a24 regd 10802037
Term paper of cse(211) avdhesh sharma c1801 a24 regd 10802037Term paper of cse(211) avdhesh sharma c1801 a24 regd 10802037
Term paper of cse(211) avdhesh sharma c1801 a24 regd 10802037
 
Aos distibutted system
Aos distibutted systemAos distibutted system
Aos distibutted system
 
Distributed computing environment
Distributed computing environmentDistributed computing environment
Distributed computing environment
 
distributed Computing system model
distributed Computing system modeldistributed Computing system model
distributed Computing system model
 
message passing
 message passing message passing
message passing
 
Processes and Processors in Distributed Systems
Processes and Processors in Distributed SystemsProcesses and Processors in Distributed Systems
Processes and Processors in Distributed Systems
 
Clock Synchronization in Distributed Systems
Clock Synchronization in Distributed SystemsClock Synchronization in Distributed Systems
Clock Synchronization in Distributed Systems
 
Distributed computing ).ppt him
Distributed computing ).ppt himDistributed computing ).ppt him
Distributed computing ).ppt him
 
Transaction processing system
Transaction processing systemTransaction processing system
Transaction processing system
 
03 backup-and-recovery
03 backup-and-recovery03 backup-and-recovery
03 backup-and-recovery
 
models of distributed computing
models of distributed computingmodels of distributed computing
models of distributed computing
 
Backup And Recovery
Backup And RecoveryBackup And Recovery
Backup And Recovery
 
Disaster Recovery & Data Backup Strategies
Disaster Recovery & Data Backup StrategiesDisaster Recovery & Data Backup Strategies
Disaster Recovery & Data Backup Strategies
 
Presentation on backup and recoveryyyyyyyyyyyyy
Presentation on backup and recoveryyyyyyyyyyyyyPresentation on backup and recoveryyyyyyyyyyyyy
Presentation on backup and recoveryyyyyyyyyyyyy
 

Similar to Distributed Systems

Distributed computing
Distributed computingDistributed computing
Distributed computing
rohitsalunke
 
Computing notes
Computing notesComputing notes
Computing notes
thenraju24
 
Apos week 1 4
Apos week 1   4Apos week 1   4
Apos week 1 4
alixafar
 

Similar to Distributed Systems (20)

Distributed Systems.ppt
Distributed Systems.pptDistributed Systems.ppt
Distributed Systems.ppt
 
ln13-ds.pptefefdfdgdgerhfhgjhmmmmmmmmmmm
ln13-ds.pptefefdfdgdgerhfhgjhmmmmmmmmmmmln13-ds.pptefefdfdgdgerhfhgjhmmmmmmmmmmm
ln13-ds.pptefefdfdgdgerhfhgjhmmmmmmmmmmm
 
Distributed systems
Distributed systemsDistributed systems
Distributed systems
 
Chapter 1-Introduction.ppt
Chapter 1-Introduction.pptChapter 1-Introduction.ppt
Chapter 1-Introduction.ppt
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
 
Overview of Distributed Systems
Overview of Distributed SystemsOverview of Distributed Systems
Overview of Distributed Systems
 
Lect 2 Types of Distributed Systems.pptx
Lect 2 Types of Distributed Systems.pptxLect 2 Types of Distributed Systems.pptx
Lect 2 Types of Distributed Systems.pptx
 
Unit 2(oss) (1)
Unit 2(oss) (1)Unit 2(oss) (1)
Unit 2(oss) (1)
 
DISTRIBUTED SYSTEM.docx
DISTRIBUTED SYSTEM.docxDISTRIBUTED SYSTEM.docx
DISTRIBUTED SYSTEM.docx
 
Computing notes
Computing notesComputing notes
Computing notes
 
Distributed system notes unit I
Distributed system notes unit IDistributed system notes unit I
Distributed system notes unit I
 
1.intro. to distributed system
1.intro. to distributed system1.intro. to distributed system
1.intro. to distributed system
 
istributed system
istributed systemistributed system
istributed system
 
Computer Networking Theory Assignment 1
Computer Networking Theory Assignment 1Computer Networking Theory Assignment 1
Computer Networking Theory Assignment 1
 
Distributed Systems.pptx
Distributed Systems.pptxDistributed Systems.pptx
Distributed Systems.pptx
 
Chapter 1-Introduction.ppt
Chapter 1-Introduction.pptChapter 1-Introduction.ppt
Chapter 1-Introduction.ppt
 
CCUnit1.pdf
CCUnit1.pdfCCUnit1.pdf
CCUnit1.pdf
 
CSS 12 - Q1 - Lesson 3.pptx
CSS 12 - Q1 - Lesson 3.pptxCSS 12 - Q1 - Lesson 3.pptx
CSS 12 - Q1 - Lesson 3.pptx
 
Apos week 1 4
Apos week 1   4Apos week 1   4
Apos week 1 4
 
Distributed system lectures
Distributed system lecturesDistributed system lectures
Distributed system lectures
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Distributed Systems

  • 2. Introduction to Distributed Systems  What is a distributed system  A distributed system is a collection of independent computers that appear to the users of the system as a single system.
  • 3. Advantages of Distributed Systems  Data sharing: allow many users to access to a common data base  Resource Sharing: expensive peripherals like color printers  Communication: enhance human-to-human communication, e.g., email, chat  Flexibility: spread the workload over the available machines  Reliability: If one machine crashes, the system as a whole can still survive. Higher availability and improved reliability.
  • 4. Disadvantages of Distributed Systems  Software: difficult to develop software for distributed systems  Network: loss of transmissions  Security: easy access also applies to secrete data
  • 5. Hardware Concepts  MIMD (Multiple-Instruction Multiple-Data)  Tightly Coupled versus Loosely Coupled  Tightly coupled systems (multiprocessors) o shared memory o intermachine delay short, data rate high  Loosely coupled systems (multicomputers) o private memory o intermachine delay long, data rate low
  • 6. Bus versus Switched MIMD • Bus: a single network, backplane, bus, cable or other medium that connects all machines. E.g., cable TV • Switched: individual wires from machine to machine, with many different wiring patterns in use.  Multiprocessors (shared memory)  Bus  Switched  Multicomputers (private memory)  Bus  Switched
  • 7. Switched Multiprocessors  Switched Multiprocessors  for connecting large number (say over 64) of processors  crossbar switch: n**2 switch points  omega network: 2x2 switches for n CPUs and n memories, log n switching stages, each with n/2 switches,  total (n log n)/2 switches  delay problem: E.g., n=1024, 10 switching stages from CPU to memory. a total of 20 switching stages. 100 MIPS 10 nsec instruction execution time need 0.5 nsec switching time
  • 8. Cont…  NUMA (Non-Uniform Memory Access): placement of program and data  building a large, tightly-coupled, shared memory multiprocessor is possible, but is difficult and expensive
  • 9. Multicomputers  Bus-Based Multicomputers  easy to build  communication volume much smaller  relatively slow speed LAN (10-100 MIPS, compared to 300 MIPS and up for a backplane bus)  Switched Multicomputers  interconnection networks: E.g., grid, hypercube  hypercube: n-dimensional cube
  • 10. Software Concepts • Software more important for users • Three types: 1. Network Operating Systems 2. (True) Distributed Systems 3. Multiprocessor Time Sharing
  • 11. (True) Distributed Systems  tightly-coupled software on loosely-coupled hardware  provide a single-system image or a virtual uniprocessor  a single, global interprocess communication mechanism, process management, file system; the same system call interface everywhere  Ideal definition: “ A distributed system runs on a collection of computers that do not have shared memory, yet looks like a single computer to its users.”
  • 12. Multiprocessor Operating Systems  Tightly-coupled software on tightly-coupled hardware  Examples: high-performance servers  shared memory  single run queue  traditional file system as on a single-processor system: central block cache
  • 13. Design Issues of Distributed Systems • Transparency • Flexibility • Reliability • Performance • Scalability
  • 14. Transparency • How to achieve the single-system image, i.e., how to make a collection of computers appear as a single computer. • Hiding all the distribution from the users as well as the application programs can be achieved at two levels: 1) hide the distribution from users 2) at a lower level, make the system look transparent to programs. 1) and 2) requires uniform interfaces such as access to files, communication.
  • 15. Flexibility • Make it easier to change • Monolithic Kernel: systems calls are trapped and executed by the kernel. All system calls are served by the kernel, e.g., UNIX. • Microkernel: provides minimal services. 1) IPC 2) some memory management 3) some low-level process management and scheduling 4) low-level i/o E.g., Mac can support multiple file systems, multiple system interfaces.
  • 16. Reliability • Distributed system should be more reliable than single system. Example: 3 machines with .95 probability of being up. 1-.05**3 probability of being up. – Availability: fraction of time the system is usable. Redundancy improves it. – Need to maintain consistency – Need to be secure – Fault tolerance: need to mask failures, recover from errors.
  • 17. Performance • Without gain on this, why bother with distributed systems. • Performance loss due to communication delays: – fine-grain parallelism: high degree of interaction – coarse-grain parallelism • Performance loss due to making the system fault tolerant.
  • 18. Scalability • Systems grow with time or become obsolete. Techniques that require resources linearly in terms of the size of the system are not scalable. e.g., broadcast based query won't work for large distributed systems. • Examples of bottlenecks o Centralized components: a single mail server o Centralized tables: a single URL address book o Centralized algorithms: routing based on complete information