Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction. Outline Definitions Examples Hardware concepts Software concepts Readings: Chapter 1.

Similar presentations


Presentation on theme: "Introduction. Outline Definitions Examples Hardware concepts Software concepts Readings: Chapter 1."— Presentation transcript:

1 Introduction

2 Outline Definitions Examples Hardware concepts Software concepts Readings: Chapter 1

3 Quotable quote “I think there is a world market for maybe five computers” Thomas J. Watson Chairman of IBM, 1943

4 Definition of a Distributed System (Tannenbaum and van Steen) A distributed system is a piece of software that ensures that A collection of independent computers that appears to its users as a single coherent system.

5 Definition of a Distributed System (Colouris) A distributed system is In which hardware and software components located at networked computers communicate and coordinate their actions only by passing messages.

6 Definition of a Distributed System (Lamport) A distributed system is one in which I cannot get something done because a machine I've never heard of is down.

7 Primary Characteristics of a Distributed System Multiple computers u Concurrent execution u Independent operation and failures Communications u Ability to communicate u No tight synchronization Relatively easy to expand or scale Transparency

8 Example: A typical intranet (Coulouris)

9 Example: A typical portion of the Internet (Coulouris)

10 Example: Portable and handheld devices in a distributed system (Coulouris)

11 Why Build Distributed Systems? Economics u Share resources u Relatively easy to expand or scale u Speed – A distributed system may have more total computing power then a mainframe. Reliability u If a machine crashes, the system as a whole can survive. People are distributed, information is distributed.

12 Key Design Goals Connectivity Transparency Reliability Consistency Security Openness Scalability

13 Connectivity It should be easy for users to access remote resources and to share them with other users in a controlled fashion. Resources that can be shared include printers, storage facilities, data, files, web pages, etc; u Why? Economical Connecting users and resources makes collaboration and the exchange of information easier. u Just look at e-mail

14 Transparency A distributed system that is able to present itself to users and applications as if it were only a single computer system is said to be transparent. Very difficult to make distributed systems completely transparent. You may not want to, since transparency often comes at the cost of performance.

15 Transparency in a Distributed System Different forms of transparency in a distributed system. TransparencyDescription AccessHide differences in data representation and how a resource is accessed LocationHide where a resource is located MigrationHide that a resource may move to another location RelocationHide that a resource may be moved to another location while in use ReplicationHide that a resource may be shared by several competitive users ConcurrencyHide that a resource may be shared by several competitive users FailureHide the failure and recovery of a resource PersistenceHide whether a (software) resource is in memory or on disk

16 Degree of Transparency The goal of full transparency is not always desirable. Users may be located in different continents; distribution is apparent and not something you want to hide. Completely hiding failures of networks and nodes is (theoretically and practically) impossible: u You cannot distinguish a slow compuer from a failing one. u You can never be sure that a server actually performed an operation before a crash. Full transparency will cost in performance. u Keeping Web caches exactly up-to-date with the master copy u Immediately flushing write operations to disk for fault tolerance.

17 Openness An open distributed system allows for interaction with services from other open systems, irrespectively of the underlying environment. u Systems should conform to well-defined interfaces. u Systems should support portability of applications. u Systems should easily interoperate. Interoperability is characterized by the extent by which two implementations of systems or components from different manufacturers can co-exist and work together. Example: In computer networks there are rules that govern the format, contents and meaning of messages send and received.

18 Scalability There are three dimensions to scalability: u The number of users and processes (size scalability) u The maximum distance between nodes (geographical scalability) u The number of administrative domains (administrative scalability) Most systems focus on administrative size scalability u Well sort of – the typical solution is to buy powerful servers.

19 Techniques for Scaling Partition data and computations across multiple machines u Move computations to clients (Java applets) u Decentralized naming services (DNS) u Decentralized information systems (WWW) Make copies of data available at different machines u Replicated file servers (for fault tolerance) u Replicated databases u Mirrored web sites Allow client processes to access local copies u Web caches (browser/Web proxy) u File caching (at server and client)

20 Scaling – The problem Applying scaling techniques is easy, except for the following: u Having multiple copies (cached or replicated) leads to inconsistencies – modifying one copy makes that copy different from the rest. u Always keeping copies consistent requires global synchronization. u Global synchronization is expensive with respect to performance. We have learned to tolerate some inconsistencies.

21 Challenges Heterogeneity u Networks u Hardware u Operating systems u Programming languages

22 Challenges Failure Handling u Partial failures n Can non-failed components continue operation? n Can the failed components easily recover? u Detecting failures u Recovery u Replication

23 Hardware Concepts Multiprocessors Multicomputers Networks of computers

24 Multiprocessors and Multicomputers 1.6 Different basic organizations and memories in distributed computer systems

25 Multiprocessors Coherent memory u Each CPU writes though, reflected at other immediately Note the use of cache memory for efficiency Limited to small number of processors

26 Homogeneous Multicomputer Systems Grid Hypercube 1-9

27 Multiprocessor Usage Scientific and engineering applications often require loops over large vectors e.g., matrix elements or points in a grid or 3D mesh. Applications include computational fluid dynamics dynamic structures scheduling (airline) health and biological modeling economics and financial modelling (e.g., option pricing) Other applications include: Transaction processing Video on demand

28 Networks of Computers High degree of node heterogeneity u Nodes include PCs, workstations, multimedia workstations, palmtops, laptops High degree of network heterogeneity u This includes local-area ethernet, Atm and wireless connections. A distributed system should try to hide these differences. In this course, the focus really is in networks of computers.

29 Software Concepts An overview between DOS (Distributed Operating Systems) NOS (Network Operating Systems) Middleware SystemDescriptionMain Goal DOS Tightly-coupled operating system for multi-processors and homogeneous multicomputers Hide and manage hardware resources NOS Loosely-coupled operating system for heterogeneous multicomputers (LAN and WAN) Offer local services to remote clients Middleware Additional layer atop of NOS implementing general-purpose services Provide distribution transparency

30 Distributed Operating System OS on each computer knows about the other computers OS on different computer is generally the same Services are generally (transparently) distributed across computers. 1.14

31 Distributed Operating System This is harder to implement then a traditional operating system. Why? u Memory is not shared u No simple global communication u No simple systemwide synchronization mechanisms u May require that OS maintain global memory map in software. u No central point where resource allocation decisions can be made. Only very few truly multicomputer operating systems exist.

32 Network Operating System Each computer has its own operating system with networking facilities Computers work independently i.e., they may even have different operating systems Services are tied to individual nodes (ftp, telnet, www) Highly file oriented

33 Middleware OS on each computer need not know about the other computers OS on different computers may be different Services are generally (transparently) distributed across computers.

34 Middleware and Openness In an open middleware-based distributed system, the protocols used by each middleware layer should be the same, as well as the interfaces they offer to applications. 1.23

35 Middleware Services Communication Services u Hide “primitive” socket programming Data management in a distributed system u Naming services u Directory services (e.g., LDAP, search engines) u Location services for tracking mobile objects u Persistent storage facilities u Data caching and replication

36 Middleware Services Services giving applications control over when, where and how they access data. u Distributed transaction processing u Code migration Services for securing processing and communication: u Authentication and authorization services u Simple encryption services u Auditing services There are varying levels of success in being able to provide these types of middleware services.


Download ppt "Introduction. Outline Definitions Examples Hardware concepts Software concepts Readings: Chapter 1."

Similar presentations


Ads by Google