Non-Distributed Excercises

Slides:



Advertisements
Similar presentations
Distributed Snapshots: Determining Global States of Distributed Systems - K. Mani Chandy and Leslie Lamport.
Advertisements

Global States.
Scalable Algorithms for Global Snapshots in Distributed Systems
Uncoordinated Checkpointing The Global State Recording Algorithm.
Multiprocessor Synchronization Algorithms ( ) Lecturer: Danny Hendler The Mutual Exclusion problem.
Prepare for Test 2. Synchronization Define semaphore and give algorithm Based on the traditional semaphore algorithms in the notes, show the value of.
Chapter 3 The Critical Section Problem
Distributed Systems Dinesh Bhat - Advanced Systems (Some slides from 2009 class) CS 6410 – Fall 2010 Time Clocks and Ordering of events Distributed Snapshots.
CS514: Intermediate Course in Operating Systems Professor Ken Birman Vivek Vishnumurthy: TA.
CS 582 / CMPE 481 Distributed Systems
Ordering and Consistent Cuts Presented By Biswanath Panda.
Distributed Systems Fall 2009 Logical time, global states, and debugging.
CPSC 668Set 12: Causality1 CPSC 668 Distributed Algorithms and Systems Fall 2009 Prof. Jennifer Welch.
20101 Synchronization in distributed systems A collection of independent computers that appears to its users as a single coherent system.
Ordering and Consistent Cuts Presented by Chi H. Ho.
1 Distributed Process Management: Distributed Global States and Distributed Mutual Exclusion.
Computer Science Lecture 10, page 1 CS677: Distributed OS Last Class: Clock Synchronization Physical clocks Clock synchronization algorithms –Cristian’s.
Time, Clocks, and the Ordering of Events in a Distributed System Leslie Lamport (1978) Presented by: Yoav Kantor.
Chapter 17 Theoretical Issues in Distributed Systems
Lecture 3-1 Computer Science 425 Distributed Systems Lecture 3 Logical Clock and Global States/ Snapshots Reading: Chapter 11.4&11.5 Klara Nahrstedt.
CIS 720 Distributed algorithms. “Paint on the forehead” problem Each of you can see other’s forehead but not your own. I announce “some of you have paint.
1 Distributed Systems CS 425 / CSE 424 / ECE 428 Global Snapshots Reading: Sections 11.5 (4 th ed), 14.5 (5 th ed)  2010, I. Gupta, K. Nahrtstedt, S.
© Oxford University Press 2011 DISTRIBUTED COMPUTING Sunita Mahajan Sunita Mahajan, Principal, Institute of Computer Science, MET League of Colleges, Mumbai.
Lecture 6-1 Computer Science 425 Distributed Systems CS 425 / ECE 428 Fall 2013 Indranil Gupta (Indy) September 12, 2013 Lecture 6 Global Snapshots Reading:
1 Distributed Process Management Chapter Distributed Global States Operating system cannot know the current state of all process in the distributed.
“Virtual Time and Global States of Distributed Systems”
Distributed Systems Fall 2010 Logical time, global states, and debugging.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Global States Steve Ko Computer Sciences and Engineering University at Buffalo.
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
CS4231 Parallel and Distributed Algorithms AY 2006/2007 Semester 2 Lecture 5 Instructor: Haifeng YU.
CS440 Computer Networks 1 Packet Switching Neil Tang 10/6/2008.
Event Ordering. CS 5204 – Operating Systems2 Time and Ordering The two critical differences between centralized and distributed systems are: absence of.
Ordering of Events in Distributed Systems UNIVERSITY of WISCONSIN-MADISON Computer Sciences Department CS 739 Distributed Systems Andrea C. Arpaci-Dusseau.
Lecture 7- 1 CS 425/ECE 428/CSE424 Distributed Systems (Fall 2009) Lecture 7 Distributed Mutual Exclusion Section 12.2 Klara Nahrstedt.
Distributed systems. distributed systems and protocols distributed systems: use components located at networked computers use message-passing to coordinate.
CSE 486/586 CSE 486/586 Distributed Systems Global States Steve Ko Computer Sciences and Engineering University at Buffalo.
Revisiting Logical Clocks: Mutual Exclusion Problem statement: Given a set of n processes, and a shared resource, it is required that: –Mutual exclusion.
Distributed Systems Lecture 6 Global states and snapshots 1.
Ordering of Events in Distributed Systems UNIVERSITY of WISCONSIN-MADISON Computer Sciences Department CS 739 Distributed Systems Andrea C. Arpaci-Dusseau.
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS
Logical time Causality between events is fundamental to the design of parallel and distributed systems. In distributed systems, it is not possible to have.
Global state and snapshot
CSE 486/586 Distributed Systems Reliable Multicast --- 1
Consistent cut A cut is a set of events.
Global state and snapshot
Time and Global States Ali Fanian Isfahan University of Technology
Deadlock-free Packet Switching
Mutual Exclusion Continued
Distributed Mutual Exclusion
Vector Clocks and Distributed Snapshots
CSE 486/586 Distributed Systems Global States
Theoretical Foundations
Distributed Mutex EE324 Lecture 11.
Distributed Snapshots & Termination detection
Lecture 9: Asynchronous Network Algorithms
Alternating Bit Protocol
Distributed Snapshot.
湖南大学-信息科学与工程学院-计算机与科学系
Logical Clocks and Casual Ordering
Outline Theoretical Foundations - continued Lab 1
Time And Global Clocks CMPT 431.
Outline Distributed Mutual Exclusion Introduction Performance measures
Event Ordering.
Lecture 8 Processes and events Local and global states Time
ITEC452 Distributed Computing Lecture 8 Distributed Snapshot
Overview of Networking
CSE 486/586 Distributed Systems Global States
Consistent cut If this is not true, then the cut is inconsistent
CSE 486/586 Distributed Systems Mutual Exclusion
CSE 486/586 Distributed Systems Reliable Multicast --- 1
Presentation transcript:

Non-Distributed Excercises CS60002: Distributed Systems INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Sliding Window Protocol TRUE OR FALSE (with explanation) In the sliding window protocol, we must use a large window size when the bandwidth of the communication channel is small. In the sliding window protocol, a packet is never re-transmitted by process P after it has been received by the process Q. INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Network Routing TRUE OR FALSE (with explanation) While the distributed version of the Floyd-Warshall algorithm is in execution, temporary cycles may be created in a routing path between some source and destination. NetChange routing algorithm uses an upper-bound on the number of nodes to guarantee termination. INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Deadlock Prevention TRUE OR FALSE (with explanation) Buffer graph for deadlock-free packet switching may have cycles if it has to support two-way communication between a pair of nodes. Forward state controller for deadlock-free packet switching uses fewer buffers than a forward count controller. INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Logical Clocks With respect to the space-time diagram given below (where stars indicate local computation events), what would be the Lamport’s logical timestamp and vector clock timestamp of the event a? a P1 P2 P3 INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Logical Clocks With respect to the space-time diagram given below (where stars indicate local computation events), what would be the Lamport’s logical timestamp and vector clock timestamp of the event a? 18 17 1 2 3 4 9 10 14 15 P1 1 2 5 6 7 9 10 11 12 P2 14 4 8 13 1 4 P3 4 5 10 15 16 LAMPORT’S LOGICAL TIMESTAMP INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Logical Clocks With respect to the space-time diagram given below (where stars indicate local computation events), what would be the Lamport’s logical timestamp and vector clock timestamp of the event a? [1,0,0] [2,0,0] [3,0,0] [4,0,0] [5,7,0] [6,7,0] [7,12,4] [8,12,4] [9,13,7] [10,13,7] P1 [0,1,0] [0,2,0] [3,4,0] [3,5,0] [3,6,0] [3,8,0] [3,9,4] [3,10,4] [3,11,4] [3,13,4] P2 [3,3,0] [3,7,0] [3,12,4] P3 [0,0,1] [0,2,2] [0,2,3] [0,2,4] [3,8,5] [3,13,6] [3,13,7] VECTOR CLOCKS INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Suppose in Lamport’s Logical Clock, each node I increments its clock by a fixed positive constant di > 0 on an event (instead of incrementing by 1). Will the clocks work correctly if the di’s are different for different i? Justify your answer. INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Global Snapshots Suppose that two processes i an j take five snapshots each of their local states independently at arbitrary times, with no communication for snapshot capture between them (i.e., no explicit snapshot capturing algorithm is run, processes just record their states whenever they want). Channel states are implicitly captured in the process states using message logs. Is it possible to have a scenario in which no pair of snapshots (one taken from i and one taken from j; there are 5*5=25 such pairs) is consistent? Justify your answer with a space-time diagram. INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Distributed Mutual Exclusion Show the following with an example using space-time diagrams involving two processes only: Why does Lamport’s mutual exclusion algorithm require FIFO channels? Why Raicairol-Carvalho’s mutual exclusion algorithm does not ensure timestamp-ordered entry into the critical section. INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR