SlideShare une entreprise Scribd logo
1  sur  39
CS 704DAdvanced Operating System(Distributed Computing) Debasis Das
Distributed Computing Fundamentals MIT    CS704D Advanced OS           Class of 2011 2
Motivations for Distributed Computing Fast but inexpensive processors are available aplenty Availability of cost effective and efficient communication networks  Result is ; distributing the computing load even over large geographical distances is an cost effective option now. MIT    CS704D Advanced OS           Class of 2011 3
Types of Interconnected Multiprocessors Tightly coupled systems Processors in the system operate through a common address space(a common main memory) Loosely couple system Each processor has its own private memory  and are on different address spaces MIT    CS704D Advanced OS           Class of 2011 4
Block Diagrams MIT    CS704D Advanced OS           Class of 2011 5 Tightly coupled CPU CPU CPU CPU Systemwide Shared memory Local Mem Local Mem Local Mem Local Mem CPU CPU CPU CPU Communication Network Loosely coupled
A Distributed Computing System A collection of processors Interconnected by a network Each processor has its own local memory & peripherals Communication between processors is by messages A node is a local processor with its own local memory and peripherals All others are “remote” nodes MIT    CS704D Advanced OS           Class of 2011 6
Distributed System Models Minicomputer Model Workstation Model Workstation-server model Processor pool Model Hybrid model MIT    CS704D Advanced OS           Class of 2011 7
Minicomputer Model MIT    CS704D Advanced OS           Class of 2011 8 Communication network Mini computer Mini computer Mini computer Mini computer
Mini-computer Model A user is connected to his local machine Can access to the remote nodes Resource sharing MIT    CS704D Advanced OS           Class of 2011 9
Workstation Model MIT    CS704D Advanced OS           Class of 2011 10 Workstation WS WS Comunication network WS WS WS
Workstation Model User submits work to the local workstation If the local station is not able to manage the processing, it will find one idle machines and transfer processes to other workstations Problems are  How to find an idle WS How to transfer a process & execute it What happens to the remote process if user logs on to an WS that was idle until now and was given for a remote process execution MIT    CS704D Advanced OS           Class of 2011 11
Workstation-Server model MIT    CS704D Advanced OS           Class of 2011 12 WS WS WS WS WS WS Communication network Server Server Server
Workstation-Server model Advantages compared to WS model Cheaper to provides servers with the required services than providing it locally. e.g file services Any WS can be used to access the file servers With diskless workstations, it is easier to maintain a few large disks centrally Process migration is not necessary, request response protocol (client server model of communication) User gets guaranteed response time as workstations are not used for remote processes, processing power may be wasted MIT    CS704D Advanced OS           Class of 2011 13
Processor Pool Model MIT    CS704D Advanced OS           Class of 2011 14 Terminals Net Run Server File  Server
Processor Pool Model Compared to WS-Server model Provides better resource utilization Additional services can be provided without the need for more processors Not very suitable for high performance interactive ( such as graphics & windowing) applications, WS-server models probably will work better MIT    CS704D Advanced OS           Class of 2011 15
Hybrid Model Real models depend of the workload being handled. The work station server is a model suitable model for users doing most work locally, doing a little bit of interactive work, send emails, execute simple programs etc. Workstation-server configurations may have pools of processors. These pools can be used for jobs that are compute intensive MIT    CS704D Advanced OS           Class of 2011 16
Advantages of Distributed Computing Systems Design of distributed systems are more complex than centralized ones. That’s because communication and security issues have to be handled additionally.  Still the advantages are  Applications are inherently distributable in many cases Information sharing Resource sharing Better price performance Shorter response times, higher throughputs Higher reliability Extensibility & incremental growth Flexibility in meeting user needs MIT    CS704D Advanced OS           Class of 2011 17
Inherently Distributed Applications Applications that need local processing as well as global level processing and viewing requirements Employee database of a multi branch company Banking Airlines ticketing MIT    CS704D Advanced OS           Class of 2011 18
Information Sharing among Distributed Users Person to person communication over distance. In a distributed system work at a local node can be easily shared at remote nodes too Thus users distributed at diverse areas can collaborate Groupware is possible and is a natural for distributed computing MIT    CS704D Advanced OS           Class of 2011 19
Resource Sharing Besides information Software in libraries Databases Hardware resources can be shared MIT    CS704D Advanced OS           Class of 2011 20
Better Price Performance Increasing performance yet falling prices of processors Better  & higher speed networks being available at higher reliability yet lower prices Better resource sharing MIT    CS704D Advanced OS           Class of 2011 21
Shorter Response & higher Throughput If the problem can be split suitably More processors will reduce processing time Throughput will increase Better resource utilization MIT    CS704D Advanced OS           Class of 2011 22
Higher Reliability Redundant drives,  back up copies etc. can be easily arranged in a distributed system Availability is better  Fail soft is possible etc. MIT    CS704D Advanced OS           Class of 2011 23
Extensibility & Incremental Growth Additional resources can be added incrementally Additional processors can be added when needed Addition of resources does not disrupt the work too much MIT    CS704D Advanced OS           Class of 2011 24
Flexibility in Meeting User Needs Ordinary data processing High performance computing Work can be distributed to specialized processing unit For example, interactive jobs can run on local work stations while processor pools can manage compute intensive jobs MIT    CS704D Advanced OS           Class of 2011 25
What is a Distributed OS? “ An operating System of is a program that controls the resources of a computer system and provides its users with an interface or virtual machine that is more convenient to use than the bare machine.”- Tannenbaum & Van Renesse [1985] Thus what OS needs to do are Present users with a VM that is easier to program than the underlying hardware Manage resources, keep track of resource users, track requests, account usage, be the umpire in deciding who gets what MIT    CS704D Advanced OS           Class of 2011 26
NOS vs. DOS System Image In case of NOS it is known to the users that distinct machines working cooperatively through a communication system. Whereas a DOS  provides a single machine image Autonomy Systems are autonomous. In DOS the operating system manages all the machines Fault tolerance capability No fault tolerance, DOS provides high levels of tolerance MIT    CS704D Advanced OS           Class of 2011 27
Definition of a DOS Again by Tannenbaum & Van Renesse A distributed OS is one that looks to its users like an ordinary centralized operating system but runs on multiple, independent central processing units. The key concept here is transparency. In other words, the use of multiple processors should be invisible(transparent) to the user. Another way of expressing the same idea is to say that the user views the system as a “virtual uniprocessor”, not as a collection of distinct machines. MIT    CS704D Advanced OS           Class of 2011 28
Difficulties Do manage resources optimally, the manager must be aware of the accurate status of every resource. However, a distributed system never has that Resources are physically separated No common clock Delivery of message may be delayed or even lost No accurate status information is thus available, yet the OS has to try and run things optimally MIT    CS704D Advanced OS           Class of 2011 29
DOS Design Issues MIT    CS704D Advanced OS           Class of 2011 30
Features of a DOS Transparency Reliability Flexibility Performance Scalability Heterogeneity Security Emulation of existing OS MIT    CS704D Advanced OS           Class of 2011 31
Transparency Access transparency Uniform access whether remote or local; uniform system calls and naming conventions Location transparency Name  transparency & user mobility Replication transparency Naming & replication control Failure transparency Redundancy; servers, communication etc. Migration transparency Automatic, no name change, message passing (receiver has migrated) Concurrency transparency Event driven ordering, mutual exclusion, no-starvation Performance transparency Auto reconfig, scaling should not cause disruption MIT    CS704D Advanced OS           Class of 2011 32
Reliability Faults can be fail-stop or Byzantine; prevention includes Fault Avoidance Good design practices, low failure components, redundancy etc. Fault Tolerance Redundancy, distributed control Fault Detection & Recovery Atomic transactions, stateless servers, ack & time out based messages MIT    CS704D Advanced OS           Class of 2011 33
Flexibility Ease of modifications When required it should be easy to modify sub-systems Ease of enhancement When required it should be easy to enhance features Structure of the kernel Monolithic kernel or a microkernel Modular, server based services, easy to implement and modify There is a small performance penalty MIT    CS704D Advanced OS           Class of 2011 34
Performance Batch, if possible Cache whenever possible Minimize copying of data Minimize network traffic Take advantage of fine grained parallelism for multiprocessing MIT    CS704D Advanced OS           Class of 2011 35
Scalability Avoid centralized entities Avoid centralized algorithms Perform most operations on client workstations MIT    CS704D Advanced OS           Class of 2011 36
Heterogeneity Format related issues could be a big hurdle Format interchange conversions will have to be supported Better to have an intermediate internal format MIT    CS704D Advanced OS           Class of 2011 37
Security Sender needs to know the right receiver received the message The receiver needs to have assurance that a genuine sender sent the  message Both sender and receiver need to be assured that the contents  of the message was not tampered  with during transmission MIT    CS704D Advanced OS           Class of 2011 38
Emulation of Existing Operating System New developments will use the API of the new OS Necessary for the ability to run existing applications Backward compatibility MIT    CS704D Advanced OS           Class of 2011 39

Contenu connexe

Tendances

ISBG 2015 - Infrastructure Assessment - Analyze, Visualize and Optimize
ISBG 2015 - Infrastructure Assessment - Analyze, Visualize and OptimizeISBG 2015 - Infrastructure Assessment - Analyze, Visualize and Optimize
ISBG 2015 - Infrastructure Assessment - Analyze, Visualize and OptimizeChristoph Adler
 
Distributed information sys
Distributed information sysDistributed information sys
Distributed information sysMeena Chauhan
 
Client server computing in mobile environments
Client server computing in mobile environmentsClient server computing in mobile environments
Client server computing in mobile environmentsPraveen Joshi
 
Topic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information SystemsTopic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information Systemssanjoysanyal
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed SystemSunita Sahu
 
1. Overview of Distributed Systems
1. Overview of Distributed Systems1. Overview of Distributed Systems
1. Overview of Distributed SystemsDaminda Herath
 
CSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating SystemCSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating Systemghayour abbas
 
Client server-computing
Client server-computingClient server-computing
Client server-computingjayasreep3
 
Distributed network
Distributed networkDistributed network
Distributed networkDhani Ahmad
 
Client server computing_keypoint_and_questions
Client server computing_keypoint_and_questionsClient server computing_keypoint_and_questions
Client server computing_keypoint_and_questionslucky94527
 
Client server computing
Client server computingClient server computing
Client server computingjorge cabiao
 
Design patterns of Distributed Systems
Design patterns of Distributed SystemsDesign patterns of Distributed Systems
Design patterns of Distributed SystemsHussain Mansoor
 
Distributed Operating System
Distributed Operating SystemDistributed Operating System
Distributed Operating SystemAjithaG9
 
Cloud computing notes unit II
Cloud computing notes unit II Cloud computing notes unit II
Cloud computing notes unit II NANDINI SHARMA
 

Tendances (20)

ISBG 2015 - Infrastructure Assessment - Analyze, Visualize and Optimize
ISBG 2015 - Infrastructure Assessment - Analyze, Visualize and OptimizeISBG 2015 - Infrastructure Assessment - Analyze, Visualize and Optimize
ISBG 2015 - Infrastructure Assessment - Analyze, Visualize and Optimize
 
Distributed information sys
Distributed information sysDistributed information sys
Distributed information sys
 
Distributed system
Distributed systemDistributed system
Distributed system
 
Client server computing in mobile environments
Client server computing in mobile environmentsClient server computing in mobile environments
Client server computing in mobile environments
 
Distributed information system
Distributed information systemDistributed information system
Distributed information system
 
Distributed System ppt
Distributed System pptDistributed System ppt
Distributed System ppt
 
Topic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information SystemsTopic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information Systems
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
 
1. Overview of Distributed Systems
1. Overview of Distributed Systems1. Overview of Distributed Systems
1. Overview of Distributed Systems
 
CSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating SystemCSI-503 - 11.Distributed Operating System
CSI-503 - 11.Distributed Operating System
 
Intro ds 1
Intro ds 1Intro ds 1
Intro ds 1
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Client server-computing
Client server-computingClient server-computing
Client server-computing
 
Distributed network
Distributed networkDistributed network
Distributed network
 
Client server computing_keypoint_and_questions
Client server computing_keypoint_and_questionsClient server computing_keypoint_and_questions
Client server computing_keypoint_and_questions
 
Client server computing
Client server computingClient server computing
Client server computing
 
Design patterns of Distributed Systems
Design patterns of Distributed SystemsDesign patterns of Distributed Systems
Design patterns of Distributed Systems
 
Distributed Operating System
Distributed Operating SystemDistributed Operating System
Distributed Operating System
 
Cloud computing notes unit II
Cloud computing notes unit II Cloud computing notes unit II
Cloud computing notes unit II
 
Components of client server application
Components of client server applicationComponents of client server application
Components of client server application
 

Similaire à Cs 704 d set4distributedcomputing-1funda

lec3_10.ppt
lec3_10.pptlec3_10.ppt
lec3_10.pptImXaib
 
Introduction To .Net Compact Framework and SQL Server CE Development
Introduction To .Net Compact Framework and SQL Server CE DevelopmentIntroduction To .Net Compact Framework and SQL Server CE Development
Introduction To .Net Compact Framework and SQL Server CE Developmentchristopherfairbairn
 
Advanced Operating System- Introduction
Advanced Operating System- IntroductionAdvanced Operating System- Introduction
Advanced Operating System- IntroductionDebasis Das
 
Intro to distributed systems
Intro to distributed systemsIntro to distributed systems
Intro to distributed systemsblueside7
 
Distributed Computing system
Distributed Computing system Distributed Computing system
Distributed Computing system Sarvesh Meena
 
engage 2015 - - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...
engage 2015 -  - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...engage 2015 -  - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...
engage 2015 - - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...Christoph Adler
 
Software_Defined_Networking.pptx
Software_Defined_Networking.pptxSoftware_Defined_Networking.pptx
Software_Defined_Networking.pptxAsfawGedamu
 
Distributed Processing
Distributed ProcessingDistributed Processing
Distributed ProcessingImtiaz Hussain
 
Infrastructure student
Infrastructure studentInfrastructure student
Infrastructure studentJohn Scrugham
 
Chapter_2_Network_Operating_System_NOS_and_Windows_Network_Concepts.pptx
Chapter_2_Network_Operating_System_NOS_and_Windows_Network_Concepts.pptxChapter_2_Network_Operating_System_NOS_and_Windows_Network_Concepts.pptx
Chapter_2_Network_Operating_System_NOS_and_Windows_Network_Concepts.pptxgadisaAdamu
 
Linuxcon 2011 Crash Course in Open Source Cloud Computing
Linuxcon 2011   Crash Course in Open Source Cloud ComputingLinuxcon 2011   Crash Course in Open Source Cloud Computing
Linuxcon 2011 Crash Course in Open Source Cloud ComputingMark Hinkle
 

Similaire à Cs 704 d set4distributedcomputing-1funda (20)

lec3_10.ppt
lec3_10.pptlec3_10.ppt
lec3_10.ppt
 
CH12.ppt
CH12.pptCH12.ppt
CH12.ppt
 
Introduction To .Net Compact Framework and SQL Server CE Development
Introduction To .Net Compact Framework and SQL Server CE DevelopmentIntroduction To .Net Compact Framework and SQL Server CE Development
Introduction To .Net Compact Framework and SQL Server CE Development
 
Dos unit1
Dos unit1Dos unit1
Dos unit1
 
Distributed Systems.pptx
Distributed Systems.pptxDistributed Systems.pptx
Distributed Systems.pptx
 
Wk6a
Wk6aWk6a
Wk6a
 
Advanced Operating System- Introduction
Advanced Operating System- IntroductionAdvanced Operating System- Introduction
Advanced Operating System- Introduction
 
Future prediction-ds
Future prediction-dsFuture prediction-ds
Future prediction-ds
 
Intro to distributed systems
Intro to distributed systemsIntro to distributed systems
Intro to distributed systems
 
Distributed Computing system
Distributed Computing system Distributed Computing system
Distributed Computing system
 
engage 2015 - - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...
engage 2015 -  - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...engage 2015 -  - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...
engage 2015 - - 2015 - Infrastructure Assessment - Analyze, Visualize and Op...
 
Software_Defined_Networking.pptx
Software_Defined_Networking.pptxSoftware_Defined_Networking.pptx
Software_Defined_Networking.pptx
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
Distributed Processing
Distributed ProcessingDistributed Processing
Distributed Processing
 
Infrastructure student
Infrastructure studentInfrastructure student
Infrastructure student
 
SOFTWARE COMPUTING
SOFTWARE COMPUTINGSOFTWARE COMPUTING
SOFTWARE COMPUTING
 
Chapter_2_Network_Operating_System_NOS_and_Windows_Network_Concepts.pptx
Chapter_2_Network_Operating_System_NOS_and_Windows_Network_Concepts.pptxChapter_2_Network_Operating_System_NOS_and_Windows_Network_Concepts.pptx
Chapter_2_Network_Operating_System_NOS_and_Windows_Network_Concepts.pptx
 
Os Ds Arch
Os Ds ArchOs Ds Arch
Os Ds Arch
 
CLOUD COMPUTING UNIT-1
CLOUD COMPUTING UNIT-1CLOUD COMPUTING UNIT-1
CLOUD COMPUTING UNIT-1
 
Linuxcon 2011 Crash Course in Open Source Cloud Computing
Linuxcon 2011   Crash Course in Open Source Cloud ComputingLinuxcon 2011   Crash Course in Open Source Cloud Computing
Linuxcon 2011 Crash Course in Open Source Cloud Computing
 

Plus de Debasis Das

Developing robust & enterprise io t applications
Developing robust & enterprise io t applicationsDeveloping robust & enterprise io t applications
Developing robust & enterprise io t applicationsDebasis Das
 
IoT: An Introduction and Getting Started Session
IoT: An Introduction and Getting Started SessionIoT: An Introduction and Getting Started Session
IoT: An Introduction and Getting Started SessionDebasis Das
 
Development eco-system in free-source for io t
Development eco-system in free-source for io tDevelopment eco-system in free-source for io t
Development eco-system in free-source for io tDebasis Das
 
Microprocessors & microcontrollers- The design Context
Microprocessors & microcontrollers- The design ContextMicroprocessors & microcontrollers- The design Context
Microprocessors & microcontrollers- The design ContextDebasis Das
 
Management control systems jsb 606 part4
Management control systems jsb 606 part4Management control systems jsb 606 part4
Management control systems jsb 606 part4Debasis Das
 
Management control systems jsb 606 part3
Management control systems jsb 606 part3Management control systems jsb 606 part3
Management control systems jsb 606 part3Debasis Das
 
Management control systems jsb 606 part2
Management control systems jsb 606 part2Management control systems jsb 606 part2
Management control systems jsb 606 part2Debasis Das
 
Management control systems jsb 606 part1
Management control systems jsb 606 part1Management control systems jsb 606 part1
Management control systems jsb 606 part1Debasis Das
 
Computers for management jsb 1072003 ver
Computers for management jsb 1072003 verComputers for management jsb 1072003 ver
Computers for management jsb 1072003 verDebasis Das
 
Trends in education management
Trends in education managementTrends in education management
Trends in education managementDebasis Das
 
Ei502microprocessorsmicrtocontrollerspart4 8051 Microcontroller
Ei502microprocessorsmicrtocontrollerspart4 8051 MicrocontrollerEi502microprocessorsmicrtocontrollerspart4 8051 Microcontroller
Ei502microprocessorsmicrtocontrollerspart4 8051 MicrocontrollerDebasis Das
 
Ei502microprocessorsmicrtocontrollerspart5 sixteen bit8086 1
Ei502microprocessorsmicrtocontrollerspart5 sixteen bit8086 1Ei502microprocessorsmicrtocontrollerspart5 sixteen bit8086 1
Ei502microprocessorsmicrtocontrollerspart5 sixteen bit8086 1Debasis Das
 
Ei502 microprocessors & micrtocontrollers part3hardwareinterfacing
Ei502 microprocessors & micrtocontrollers part3hardwareinterfacingEi502 microprocessors & micrtocontrollers part3hardwareinterfacing
Ei502 microprocessors & micrtocontrollers part3hardwareinterfacingDebasis Das
 
Ei502 microprocessors & micrtocontrollers part 2(instructionset)
Ei502 microprocessors & micrtocontrollers part 2(instructionset)Ei502 microprocessors & micrtocontrollers part 2(instructionset)
Ei502 microprocessors & micrtocontrollers part 2(instructionset)Debasis Das
 
Ei502 microprocessors & micrtocontrollers part 1
Ei502 microprocessors & micrtocontrollers part 1Ei502 microprocessors & micrtocontrollers part 1
Ei502 microprocessors & micrtocontrollers part 1Debasis Das
 
It802 d mobilecommunicationspart4
It802 d mobilecommunicationspart4It802 d mobilecommunicationspart4
It802 d mobilecommunicationspart4Debasis Das
 
It802 d mobilecommunicationspart3
It802 d mobilecommunicationspart3It802 d mobilecommunicationspart3
It802 d mobilecommunicationspart3Debasis Das
 
It 802 d_Mobile Communications_part 2
It 802 d_Mobile Communications_part 2It 802 d_Mobile Communications_part 2
It 802 d_Mobile Communications_part 2Debasis Das
 
It 802 d_Mobile Communications_part 2
It 802 d_Mobile Communications_part 2It 802 d_Mobile Communications_part 2
It 802 d_Mobile Communications_part 2Debasis Das
 
It 802 d_mobile_communicationsSomeHistory
It 802 d_mobile_communicationsSomeHistoryIt 802 d_mobile_communicationsSomeHistory
It 802 d_mobile_communicationsSomeHistoryDebasis Das
 

Plus de Debasis Das (20)

Developing robust & enterprise io t applications
Developing robust & enterprise io t applicationsDeveloping robust & enterprise io t applications
Developing robust & enterprise io t applications
 
IoT: An Introduction and Getting Started Session
IoT: An Introduction and Getting Started SessionIoT: An Introduction and Getting Started Session
IoT: An Introduction and Getting Started Session
 
Development eco-system in free-source for io t
Development eco-system in free-source for io tDevelopment eco-system in free-source for io t
Development eco-system in free-source for io t
 
Microprocessors & microcontrollers- The design Context
Microprocessors & microcontrollers- The design ContextMicroprocessors & microcontrollers- The design Context
Microprocessors & microcontrollers- The design Context
 
Management control systems jsb 606 part4
Management control systems jsb 606 part4Management control systems jsb 606 part4
Management control systems jsb 606 part4
 
Management control systems jsb 606 part3
Management control systems jsb 606 part3Management control systems jsb 606 part3
Management control systems jsb 606 part3
 
Management control systems jsb 606 part2
Management control systems jsb 606 part2Management control systems jsb 606 part2
Management control systems jsb 606 part2
 
Management control systems jsb 606 part1
Management control systems jsb 606 part1Management control systems jsb 606 part1
Management control systems jsb 606 part1
 
Computers for management jsb 1072003 ver
Computers for management jsb 1072003 verComputers for management jsb 1072003 ver
Computers for management jsb 1072003 ver
 
Trends in education management
Trends in education managementTrends in education management
Trends in education management
 
Ei502microprocessorsmicrtocontrollerspart4 8051 Microcontroller
Ei502microprocessorsmicrtocontrollerspart4 8051 MicrocontrollerEi502microprocessorsmicrtocontrollerspart4 8051 Microcontroller
Ei502microprocessorsmicrtocontrollerspart4 8051 Microcontroller
 
Ei502microprocessorsmicrtocontrollerspart5 sixteen bit8086 1
Ei502microprocessorsmicrtocontrollerspart5 sixteen bit8086 1Ei502microprocessorsmicrtocontrollerspart5 sixteen bit8086 1
Ei502microprocessorsmicrtocontrollerspart5 sixteen bit8086 1
 
Ei502 microprocessors & micrtocontrollers part3hardwareinterfacing
Ei502 microprocessors & micrtocontrollers part3hardwareinterfacingEi502 microprocessors & micrtocontrollers part3hardwareinterfacing
Ei502 microprocessors & micrtocontrollers part3hardwareinterfacing
 
Ei502 microprocessors & micrtocontrollers part 2(instructionset)
Ei502 microprocessors & micrtocontrollers part 2(instructionset)Ei502 microprocessors & micrtocontrollers part 2(instructionset)
Ei502 microprocessors & micrtocontrollers part 2(instructionset)
 
Ei502 microprocessors & micrtocontrollers part 1
Ei502 microprocessors & micrtocontrollers part 1Ei502 microprocessors & micrtocontrollers part 1
Ei502 microprocessors & micrtocontrollers part 1
 
It802 d mobilecommunicationspart4
It802 d mobilecommunicationspart4It802 d mobilecommunicationspart4
It802 d mobilecommunicationspart4
 
It802 d mobilecommunicationspart3
It802 d mobilecommunicationspart3It802 d mobilecommunicationspart3
It802 d mobilecommunicationspart3
 
It 802 d_Mobile Communications_part 2
It 802 d_Mobile Communications_part 2It 802 d_Mobile Communications_part 2
It 802 d_Mobile Communications_part 2
 
It 802 d_Mobile Communications_part 2
It 802 d_Mobile Communications_part 2It 802 d_Mobile Communications_part 2
It 802 d_Mobile Communications_part 2
 
It 802 d_mobile_communicationsSomeHistory
It 802 d_mobile_communicationsSomeHistoryIt 802 d_mobile_communicationsSomeHistory
It 802 d_mobile_communicationsSomeHistory
 

Cs 704 d set4distributedcomputing-1funda

  • 1. CS 704DAdvanced Operating System(Distributed Computing) Debasis Das
  • 2. Distributed Computing Fundamentals MIT CS704D Advanced OS Class of 2011 2
  • 3. Motivations for Distributed Computing Fast but inexpensive processors are available aplenty Availability of cost effective and efficient communication networks Result is ; distributing the computing load even over large geographical distances is an cost effective option now. MIT CS704D Advanced OS Class of 2011 3
  • 4. Types of Interconnected Multiprocessors Tightly coupled systems Processors in the system operate through a common address space(a common main memory) Loosely couple system Each processor has its own private memory and are on different address spaces MIT CS704D Advanced OS Class of 2011 4
  • 5. Block Diagrams MIT CS704D Advanced OS Class of 2011 5 Tightly coupled CPU CPU CPU CPU Systemwide Shared memory Local Mem Local Mem Local Mem Local Mem CPU CPU CPU CPU Communication Network Loosely coupled
  • 6. A Distributed Computing System A collection of processors Interconnected by a network Each processor has its own local memory & peripherals Communication between processors is by messages A node is a local processor with its own local memory and peripherals All others are “remote” nodes MIT CS704D Advanced OS Class of 2011 6
  • 7. Distributed System Models Minicomputer Model Workstation Model Workstation-server model Processor pool Model Hybrid model MIT CS704D Advanced OS Class of 2011 7
  • 8. Minicomputer Model MIT CS704D Advanced OS Class of 2011 8 Communication network Mini computer Mini computer Mini computer Mini computer
  • 9. Mini-computer Model A user is connected to his local machine Can access to the remote nodes Resource sharing MIT CS704D Advanced OS Class of 2011 9
  • 10. Workstation Model MIT CS704D Advanced OS Class of 2011 10 Workstation WS WS Comunication network WS WS WS
  • 11. Workstation Model User submits work to the local workstation If the local station is not able to manage the processing, it will find one idle machines and transfer processes to other workstations Problems are How to find an idle WS How to transfer a process & execute it What happens to the remote process if user logs on to an WS that was idle until now and was given for a remote process execution MIT CS704D Advanced OS Class of 2011 11
  • 12. Workstation-Server model MIT CS704D Advanced OS Class of 2011 12 WS WS WS WS WS WS Communication network Server Server Server
  • 13. Workstation-Server model Advantages compared to WS model Cheaper to provides servers with the required services than providing it locally. e.g file services Any WS can be used to access the file servers With diskless workstations, it is easier to maintain a few large disks centrally Process migration is not necessary, request response protocol (client server model of communication) User gets guaranteed response time as workstations are not used for remote processes, processing power may be wasted MIT CS704D Advanced OS Class of 2011 13
  • 14. Processor Pool Model MIT CS704D Advanced OS Class of 2011 14 Terminals Net Run Server File Server
  • 15. Processor Pool Model Compared to WS-Server model Provides better resource utilization Additional services can be provided without the need for more processors Not very suitable for high performance interactive ( such as graphics & windowing) applications, WS-server models probably will work better MIT CS704D Advanced OS Class of 2011 15
  • 16. Hybrid Model Real models depend of the workload being handled. The work station server is a model suitable model for users doing most work locally, doing a little bit of interactive work, send emails, execute simple programs etc. Workstation-server configurations may have pools of processors. These pools can be used for jobs that are compute intensive MIT CS704D Advanced OS Class of 2011 16
  • 17. Advantages of Distributed Computing Systems Design of distributed systems are more complex than centralized ones. That’s because communication and security issues have to be handled additionally. Still the advantages are Applications are inherently distributable in many cases Information sharing Resource sharing Better price performance Shorter response times, higher throughputs Higher reliability Extensibility & incremental growth Flexibility in meeting user needs MIT CS704D Advanced OS Class of 2011 17
  • 18. Inherently Distributed Applications Applications that need local processing as well as global level processing and viewing requirements Employee database of a multi branch company Banking Airlines ticketing MIT CS704D Advanced OS Class of 2011 18
  • 19. Information Sharing among Distributed Users Person to person communication over distance. In a distributed system work at a local node can be easily shared at remote nodes too Thus users distributed at diverse areas can collaborate Groupware is possible and is a natural for distributed computing MIT CS704D Advanced OS Class of 2011 19
  • 20. Resource Sharing Besides information Software in libraries Databases Hardware resources can be shared MIT CS704D Advanced OS Class of 2011 20
  • 21. Better Price Performance Increasing performance yet falling prices of processors Better & higher speed networks being available at higher reliability yet lower prices Better resource sharing MIT CS704D Advanced OS Class of 2011 21
  • 22. Shorter Response & higher Throughput If the problem can be split suitably More processors will reduce processing time Throughput will increase Better resource utilization MIT CS704D Advanced OS Class of 2011 22
  • 23. Higher Reliability Redundant drives, back up copies etc. can be easily arranged in a distributed system Availability is better Fail soft is possible etc. MIT CS704D Advanced OS Class of 2011 23
  • 24. Extensibility & Incremental Growth Additional resources can be added incrementally Additional processors can be added when needed Addition of resources does not disrupt the work too much MIT CS704D Advanced OS Class of 2011 24
  • 25. Flexibility in Meeting User Needs Ordinary data processing High performance computing Work can be distributed to specialized processing unit For example, interactive jobs can run on local work stations while processor pools can manage compute intensive jobs MIT CS704D Advanced OS Class of 2011 25
  • 26. What is a Distributed OS? “ An operating System of is a program that controls the resources of a computer system and provides its users with an interface or virtual machine that is more convenient to use than the bare machine.”- Tannenbaum & Van Renesse [1985] Thus what OS needs to do are Present users with a VM that is easier to program than the underlying hardware Manage resources, keep track of resource users, track requests, account usage, be the umpire in deciding who gets what MIT CS704D Advanced OS Class of 2011 26
  • 27. NOS vs. DOS System Image In case of NOS it is known to the users that distinct machines working cooperatively through a communication system. Whereas a DOS provides a single machine image Autonomy Systems are autonomous. In DOS the operating system manages all the machines Fault tolerance capability No fault tolerance, DOS provides high levels of tolerance MIT CS704D Advanced OS Class of 2011 27
  • 28. Definition of a DOS Again by Tannenbaum & Van Renesse A distributed OS is one that looks to its users like an ordinary centralized operating system but runs on multiple, independent central processing units. The key concept here is transparency. In other words, the use of multiple processors should be invisible(transparent) to the user. Another way of expressing the same idea is to say that the user views the system as a “virtual uniprocessor”, not as a collection of distinct machines. MIT CS704D Advanced OS Class of 2011 28
  • 29. Difficulties Do manage resources optimally, the manager must be aware of the accurate status of every resource. However, a distributed system never has that Resources are physically separated No common clock Delivery of message may be delayed or even lost No accurate status information is thus available, yet the OS has to try and run things optimally MIT CS704D Advanced OS Class of 2011 29
  • 30. DOS Design Issues MIT CS704D Advanced OS Class of 2011 30
  • 31. Features of a DOS Transparency Reliability Flexibility Performance Scalability Heterogeneity Security Emulation of existing OS MIT CS704D Advanced OS Class of 2011 31
  • 32. Transparency Access transparency Uniform access whether remote or local; uniform system calls and naming conventions Location transparency Name transparency & user mobility Replication transparency Naming & replication control Failure transparency Redundancy; servers, communication etc. Migration transparency Automatic, no name change, message passing (receiver has migrated) Concurrency transparency Event driven ordering, mutual exclusion, no-starvation Performance transparency Auto reconfig, scaling should not cause disruption MIT CS704D Advanced OS Class of 2011 32
  • 33. Reliability Faults can be fail-stop or Byzantine; prevention includes Fault Avoidance Good design practices, low failure components, redundancy etc. Fault Tolerance Redundancy, distributed control Fault Detection & Recovery Atomic transactions, stateless servers, ack & time out based messages MIT CS704D Advanced OS Class of 2011 33
  • 34. Flexibility Ease of modifications When required it should be easy to modify sub-systems Ease of enhancement When required it should be easy to enhance features Structure of the kernel Monolithic kernel or a microkernel Modular, server based services, easy to implement and modify There is a small performance penalty MIT CS704D Advanced OS Class of 2011 34
  • 35. Performance Batch, if possible Cache whenever possible Minimize copying of data Minimize network traffic Take advantage of fine grained parallelism for multiprocessing MIT CS704D Advanced OS Class of 2011 35
  • 36. Scalability Avoid centralized entities Avoid centralized algorithms Perform most operations on client workstations MIT CS704D Advanced OS Class of 2011 36
  • 37. Heterogeneity Format related issues could be a big hurdle Format interchange conversions will have to be supported Better to have an intermediate internal format MIT CS704D Advanced OS Class of 2011 37
  • 38. Security Sender needs to know the right receiver received the message The receiver needs to have assurance that a genuine sender sent the message Both sender and receiver need to be assured that the contents of the message was not tampered with during transmission MIT CS704D Advanced OS Class of 2011 38
  • 39. Emulation of Existing Operating System New developments will use the API of the new OS Necessary for the ability to run existing applications Backward compatibility MIT CS704D Advanced OS Class of 2011 39