21
Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp) http://www.cse.chalmers.se/edu/ course/TDA297 http://www.cse.chalmers.se/edu/ course/INN290

Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

  • View
    227

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Distribuerade System fkTDA297(CTH), INN290 (GU)

VT 2009LP3 – 5p (7.5 hp)

http://www.cse.chalmers.se/edu/course/TDA297

http://www.cse.chalmers.se/edu/course/INN290

Page 2: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Syllabus Instructor: Philippas Tsigas E-mail: [email protected] Assistant: Andreas Larsson

E-mail: [email protected] Phone: +46-31-772 5409 Office: 5106 Office hours: By appointment Examination: TBA

Page 3: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Reading

We are going to use the 4th Edition of the book titled "Distributed Systems: Concepts and Design" written by: George Coulouris, Jean Dollimore and Tim Kindberg, and published by Addison-Wesley, ISBN 0-321-26354-5

Some extra material: Distributed Algorithms (Notes) + papers.

Page 4: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Description Distributed systems are popular and powerful

computing paradigms. Their importance increases as networked computers become more common than freestanding ones, especially since many different types of computers can be found in networks. In this course we will see the points of inherent difference and strength of distributed systems compared with sequential or strongly-coupled systems; consequently, we will also study the issues and problems that have to be addressed and solved efficiently for these differences to be taken advantage of, so that the system retains its strength and high potential.

Page 5: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Goals 1.Replication; The advantages and costs of

replicating data: Potential improvement in response times and

reliability Extra communication costs involved in keeping data

consistent. 2.Fault-tolerant Agreement in Distributed

Systems: (a very special and significant problem, since it is a

key issue in most synchronisation and coordination problems in distributed systems)

Study of the basic impossibility results and discuss their implications

Proceed with solutions and protocols for systems with certain strengths and design structures.

Page 6: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Goals cont.

3. Resource Allocation. 4. Distributed algorithms: How to

design and analyse distributed algorithms?

5. Sensor Networks.

Page 7: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Resources (Full support page for the

Coulouris’ book ) http://www.cdk4.net/

(1st Assignment): http://www.cse.chalmers.se/edu/

course/TDA297/labs/lab1.html

Page 8: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Resources cont.

(2nd Assignment) http://www.cse.chalmers.se/edu/

course/TDA297/labs/lab2.html(3nd Assignment)

Routing in Sensor Networks http://www.cse.chalmers.se/edu/

course/TDA297/labs/lab3.html

Page 9: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Approximate Course Schedule

Week Monday Wednesday Friday  

4 (Jan 19-23) Lecture 1:Introduction

No LectureLecture 2:Replication  

5 (Jan 26-Jan 30) No LectureLecture 3:Replication

Assignment Lect. 1: Introduction to Lab 1  

6 (Feb 2-6) Lecture 4:Quorum Consensus

Assignment Lect. 2:Introduction to Lab 2 +Questions and answersfor all labs.

Lecture 5:Distributed Transactions  

7 (Feb 9-13)

Lecture 6:Concurrency Control in Distributed Transactions + Atomic Commit protocols

CHARM – No LectureLecture 7:Byzantine General  

8 (Feb 16-20) Lecture 8:BroadcastingDeadline for lab 1 at 23:59

Lecture 9:Distributed Algorithms:Analysis of Broadcasting

Assignment Lect. 3:Sensor Networks + Introduction to Lab 3 +Questions and answers for all labs.

 

9 (Feb 23-27)

Lecture 10:Mutual Exclusion and

ResourceAllocation. Dining

PhilosophersDeadline for lab 2 at 23:59

Lecture 11:Generalization of the Dining Philosophers

Assignment Lect. 4:Questions and answers for all labs.  

10 (Mar 2-6)

Lecture 12:Drinking Philosophers andEfficient Resource Allocation

Assignment presentations:Presentations and Demos of the 3rd lab.Deadline for lab 3 at the lecture

 

Page 10: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Examination

Final examination: TBA 1st Lab due: 16th of February 2nd Lab due: 23th of February 3rd Lab due: 6th of March

Page 11: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Why Distributed Systems?

Page 12: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Because they are there

Distributed Applications

Automated Banking Systems Tracking Roaming Cellular Telephones Air-Traffic Control Systems Fly-by-wire Systems The World-Wide- Web

Page 13: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Because they have many +

Network vs. Centralised Systems

Cycles always available Incremental growth Independent failure Increased Autonomy

purchasing management software

Page 14: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Ingredients of D.S.

Multiple computers Interconnections

Shared states

Page 15: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Asynchronous Systems Communication is reliable but incurs

potentially unbounded delays

Page 16: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Distributed Computation

Page 17: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

State of the computation

Imagine stopping a distributed computation by stopping all of its processes simultaneously. The combined states of each of the processes, plus the contents of the messages in transit between processes will then tell us the exact global stateof the computation. The problem with our asynchronous system is that there is no such thing as simultaneity.

Page 18: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Cause and Effect Since there is no simultaneity in an

asynchronous system, we need something else in order to study the events in such a system.

We do have the notion of cause and effect, however.

If one event ei caused another event ej to happen, then ei and ej could never have happened simultaneously:

ei happened before ej

Page 19: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Causal Orders

Page 20: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

Space Time Diagram

Page 21: Distribuerade System fk TDA297(CTH), INN290 (GU) VT 2009 LP3 – 5p (7.5 hp)

States on Distributed Computations