Architectures of distributed systems

Slides:



Advertisements
Similar presentations
Distributed Systems Major Design Issues Presented by: Christopher Hector CS8320 – Advanced Operating Systems Spring 2007 – Section 2.6 Presentation Dr.
Advertisements

Jaringan Informasi Pengantar Sistem Terdistribusi oleh Ir. Risanuri Hidayat, M.Sc.
Distributed components
OCT 1 Master of Information System Management Organizational Communications and Distributed Object Technologies Review For Midterm.
Edition 3, © Addison-Wesley 2001
EEC-681/781 Distributed Computing Systems Lecture 3 Wenbing Zhao Department of Electrical and Computer Engineering Cleveland State University
Distributed Systems Fall 2009 Course introduction.
.NET Mobile Application Development Introduction to Mobile and Distributed Applications.
.NET Mobile Application Development Remote Procedure Call.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 12 Slide 1 Distributed Systems Design 1.
Client/Server Architectures
Chapter 2 Architectural Models. Keywords Middleware Interface vs. implementation Client-server models OOP.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 12 Slide 1 Distributed Systems Architectures.
1 System Models. 2 Outline Introduction Architectural models Fundamental models Guideline.
1 MSCS 237 Communication issues. 2 Colouris et al. (2001): Is a system in which hardware or software components located at networked computers communicate.
Exercises for Chapter 2: System models
Source: George Colouris, Jean Dollimore, Tim Kinderberg & Gordon Blair (2012). Distributed Systems: Concepts & Design (5 th Ed.). Essex: Addison-Wesley.
Architectures of distributed systems Fundamental Models
Chapter 2: System Models. Objectives To provide students with conceptual models to support their study of distributed systems. To motivate the study of.
Advanced Computer Networks Topic 2: Characterization of Distributed Systems.
1 MSCS 237 Communication issues. 2 Colouris et al. (2001): Is a system in which hardware or software components located at networked computers communicate.
Architecture Models. Readings r Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn. 3 m Note: All figures from this book.
Prepared By: Md Rezaul Huda Reza
D ISTRIBUTED S YSTEM UNIT-1 Prepared By: G.S.Mishra.
Client/Server Computing
© Chinese University, CSE Dept. Distributed Systems / Distributed Systems Topic 1: Characterization of Distributed & Mobile Systems Dr. Michael R.
Seminar on Service Oriented Architecture Distributed Systems Architectural Models From Coulouris, 5 th Ed. SOA Seminar Coulouris 5Ed.1.
Distributed System Models
Exercises for Chapter 2: System models From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 4, © Pearson Education 2005.
From Coulouris, Dollimore, Kindberg and Blair Distributed Systems: Concepts and Design Edition 5, © Addison-Wesley 2012 System Models by Dr. Sarmad Sadik.
Distributed Systems: Concepts and Design Jinghai Rao 13,9,2000.
Lecture 13 Parallel Processing. 2 What is Parallel Computing? Traditionally software has been written for serial computation. Parallel computing is the.
Object Interaction: RMI and RPC 1. Overview 2 Distributed applications programming - distributed objects model - RMI, invocation semantics - RPC Products.
Distributed Systems Architectures Chapter 12. Objectives  To explain the advantages and disadvantages of different distributed systems architectures.
Distributed Systems Architectures. Topics covered l Client-server architectures l Distributed object architectures l Inter-organisational computing.
Chapter 1 Characterization of Distributed Systems
Principles of Network Applications
Distributed Systems CS
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
CSC 480 Software Engineering
CHAPTER 3 Architectures for Distributed Systems
Chapter 2: System Model Introduction Architecture Models
#01 Client/Server Computing
Slides for Chapter 2: Architectural Models
Advanced Operating Systems
Distributed Systems Bina Ramamurthy 11/12/2018 From the CDK text.
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
Lecture 4: RPC Remote Procedure Call Coulouris et al: Chapter 5
Distributed Systems Bina Ramamurthy 11/30/2018 B.Ramamurthy.
Inventory of Distributed Computing Concepts
Distributed Systems Bina Ramamurthy 12/2/2018 B.Ramamurthy.
Slides for Chapter 2: Architectural Models
Multiple Processor Systems
Architectures of distributed systems Fundamental Models
Lecture 4: RPC Remote Procedure Call CDK: Chapter 5
Architectures of distributed systems Fundamental Models
System Models and Networking Chapter 2,3
COMP28112 Lecture 2 A few words about parallel computing
Distributed Systems CS
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
Introduction To Distributed Systems
Architectures of distributed systems Fundamental Models
Lecture 7: RPC (exercises/questions)
Distributed Systems (15-440)
COMP28112 Distributed Computing
Chapter 2: System models
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
System Models Bina Ramamurthy 9/7/2019 B.Ramamurthy.
#01 Client/Server Computing
Presentation transcript:

Architectures of distributed systems COMP28112 Lecture 3 Architectures of distributed systems (the way to build systems) Fundamental Models (and abstraction of reality to help analyze)

Architectures of Distributed Systems Tightly coupled Highly integrated machines that may look as a single computer. Loosely coupled (share nothing) Client-Server Peer-to-Peer A Key differentiation based on the Programming Interface: Distributed Objects Web Services Read “Web Services are not Distributed Objects”, Internet Computing, Nov-Dec. 2003, http://www.allthingsdistributed.com/historical/archives/000343.html 8-Apr-19 COMP28112 Lecture 3

Tightly coupled systems Distributed shared memory (DSM)provides the illusion of a single shared memory: it spares the programmer the concerns of message passing. 8-Apr-19 COMP28112 Lecture 3

Issues with Distributed Shared Memory Machines are still connected by a network: Minimize network traffic Reduce the latency between request and completion How to keep track of the location of shared data How to overcome delays when accessing remote data How to make shared data concurrently accessible Replicate shared data on multiple machines: Need memory coherence Lots of research in the context of building parallel computers – see Chapter 18 in Coulouris et al book. 8-Apr-19 COMP28112 Lecture 3

Architectural Styles (talking about loosely-coupled systems) Based on the logical organization of the components of distributed systems: Layered architectures Object-based architectures Data-centered architectures Event-based architectures 8-Apr-19 COMP28112 Lecture 3

The layered architectural style See Figure 2-1 in Tanenbaum and Van Steen book 8-Apr-19 COMP28112 Lecture 3

The object-based architectural style See Figure 2-1 in Tanenbaum and Van Steen book 8-Apr-19 COMP28112 Lecture 3

The Event-Based architectural style See Figure 2-2 in Tanenbaum and Van Steen book 8-Apr-19 COMP28112 Lecture 3

Shared-Data Space Architectural Style See Figure 2-2 in Tanenbaum and Van Steen book 8-Apr-19 COMP28112 Lecture 3

System Architectures of Distributed Systems 8-Apr-19 COMP28112 Lecture 3

Middleware Middleware: a software layer that provides a programming abstraction to mask the heterogeneity of the underlying platforms (networks, languages, hardware, …) E.g., CORBA, Java RMI But… the end-to-end argument implies that some aspects of communication support cannot always be abstracted away from applications. 8-Apr-19 COMP28112 Lecture 3

The end-to-end argument “The function in question can completely and correctly be implemented only with the knowledge and help of the application standing at the end points of the communication system. Therefore, providing that questioned function as a feature of the communication system itself is not possible. (Sometimes an incomplete version of the function provided by the communication system may be useful as a performance enhancement.)” See: Coulouris pages 33-34 http://web.mit.edu/Saltzer/www/publications/endtoend/endtoend.pdf 8-Apr-19 COMP28112 Lecture 3

On Models A model is an abstraction of reality (which is complex)… …to help analyze real-situations A model must be concise and precise. 8-Apr-19 COMP28112 Lecture 3

Client-Server Model 8-Apr-19 COMP28112 Lecture 3

Client-Server Model Characteristics of a server: Passive (slave) Waits for requests Upon receipts of requests, it processes them and sends replies Can be stateless (does not keep any information between requests) or stateful (remembers information between requests) Characteristics of a client: Active (master) Sends requests Waits for and receives server replies 8-Apr-19 COMP28112 Lecture 3

Peer-to-Peer (P2P) Earlier Example: Usenet News Other examples: Napster, Gnutella, Freenet, … 8-Apr-19 COMP28112 Lecture 3

Client-Server vs P2P Client-Server P2P Widely Used Functional Specialisation Asymmetrical Tends to be centralised Tends to scale poorly P2P Symmetrical, computers have same “rights” Truly Distributed Share / exploit resources with a large number of participants Resource discovery is a challenge 8-Apr-19 COMP28112 Lecture 3

Variations on a theme… Sometimes we need to consider: The use of multiple servers to increase performance and resilience The use of mobile code Users’ need for low-cost computers Requirements to add and remove mobile devices 8-Apr-19 COMP28112 Lecture 3

Multiple Servers 8-Apr-19 COMP28112 Lecture 3

Proxies and Caches 8-Apr-19 COMP28112 Lecture 3

Mobile Code… 8-Apr-19 COMP28112 Lecture 3

Thin Clients 8-Apr-19 COMP28112 Lecture 3

Design Requirements Performance Quality of Service Responsiveness Throughput Load balancing Quality of Service Caching and Replication Dependability Correctness Security Fault-Tolerance 8-Apr-19 COMP28112 Lecture 3

Fundamental Models Models include all the essential ingredients that we need to consider in order to understand and reason about some aspects of a system’s behaviour. A way of abstracting from reality. Aspects that we need to capture include: Process Interaction Failure Security Managing concurrency and failure underlies many of the problems we face! 8-Apr-19 COMP28112 Lecture 3

Factors affecting process interaction Performance of communication channels Computer Clocks and Timing Events Two variants of the process interaction model: Synchronous systems: Process Execution Speeds: has known lower and upper bound Message transmitted delay: bounded Clock drift rates: drift rate from real time has a known bound Asynchronous systems: All the above may take an arbitrarily long time. 8-Apr-19 COMP28112 Lecture 3

Event Ordering 8-Apr-19 COMP28112 Lecture 3

Failures in distributed systems What can go wrong? (see Figure 2.10 in Coulouris 4th edition or Figure 2.15 in Coulouris 5th edition) Fail/crash, omissions, arbitrary (byzantine) How to mask failures? Read about checksums in network protocols for error detection 8-Apr-19 COMP28112 Lecture 3

In Summary... Different Architectures offer different solutions Managing Concurrency, Failures, and Security underlies many of the problems we face. Reading: Coulouris (4th or 5th edition), Chapter 2; Tanenbaum, Sec. 2.1, 2.2 (skim through the rest of Chapter 2) Read the text associated with the figures from Coulouris et al and Tanenbaum et al textbooks that are shown in this handout. Next time: Remote procedure calls. 8-Apr-19 COMP28112 Lecture 3