1 Formal Models for Distributed Negotiations Exercises Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias Informaticas.

Slides:



Advertisements
Similar presentations
CommUnity, Tiles and Connectors joint work with Roberto Bruni José Luiz Fiadeiro Antónia Lopes Ugo Montanari Ivan Lanese Dipartimento di Informatica Università.
Advertisements

By: MSMZ. Objective After completing this chapter, you will be able to: Explain 2 contract review stage List the objective of each stage of the contract.
Impossibility of Distributed Consensus with One Faulty Process
Concurrency Control II
Based on: Petri Nets and Industrial Applications: A Tutorial
Applying Petri Net Unfoldings for Verification of Mobile Systems Apostolos Niaouris Joint work with V. Khomenko, M. Koutny MOCA ‘06.
Operational Resilience Theory and Experimentation Levi Lúcio.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
CS 603 Handling Failure in Commit February 20, 2002.
Distributed Computing 8. Impossibility of consensus Shmuel Zaks ©
Software Reliability CIS 640 Adapted from the lecture notes by Doron Pelel (
1 ICS 214B: Transaction Processing and Distributed Data Management Lecture 12: Three-Phase Commits (3PC) Professor Chen Li.
1 Formal Models for Distributed Negotiations The 2PC in an Extended Pi-Calculus Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela.
Roberto Pisa, Italy 13 June 2008 WADT Tiles for Reo Roberto Bruni Dipartimento di Informatica Università di Pisa WADT th International.
Dynamic Graph Transformation Systems Hernán Melgratti IMT Lucca Institute for Advance Studies Joint Work with Roberto Bruni Dipartimento di Informatica,
1 Formal Models for Transactions: Petri Nets Roberto Bruni Dipartimento di Informatica Università di Pisa Models and Languages for Coordination and Orchestration.
1 Formal Models for Distributed Negotiations Description Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias Informaticas.
1 Formal Models for Distributed Negotiations Zero-Safe Nets Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias Informaticas.
Non-blocking Atomic Commitment Aaron Kaminsky Presenting Chapter 6 of Distributed Systems, 2nd edition, 1993, ed. Mullender.
Distributed DBMSPage © 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background Distributed DBMS Architecture Distributed Database.
1 Petri Nets H Plan: –Introduce basics of Petri Net models –Define notation and terminology used –Show examples of Petri Net models u Calaway Park model.
1 Formal Models for Distributed Negotiations Workflows, BizTalk and ZSN Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias.
Simulation.
1 Ugo Montanari Dipartimento di Informatica Università di Pisa Roberto Bruni, GianLuigi Ferrari, Hernan Melgratti, Emilio Tuosto (Pisa) Cosimo Laneve (Bologna)
1 Formal Models for Distributed Negotiations Transactions in Linda Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias.
1 Formal Models for Distributed Negotiations Concurrent Languages Translation Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela.
Hernán Melgratti joint work with Roberto Bruni and Ugo Montanari Dipartimento di Informatica - Università di Pisa Flat Committed Join in Join.
1 Formal Models for Distributed Negotiations Committed Join Calculus Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias.
1 Formal Models for Distributed Negotiations Petri Nets Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias Informaticas.
1 Distributed Databases CS347 Lecture 16 June 6, 2001.
1 Formal Models for Transactions: Zero Safe Nets Roberto Bruni Dipartimento di Informatica Università di Pisa Models and Languages for Coordination and.
Transaction Ordering Verification using Trace Inclusion Refinement Mike Jones 11 January 2000.
Pre-nets, (read arcs) and unfolding: A functorial presentation Paolo Baldan (Venezia) Roberto Bruni (Pisa/Illinois) Ugo Montanari (Pisa) WADT Frauenchiemsee,
1 Ivan Lanese Computer Science Department University of Bologna Italy Concurrent and located synchronizations in π-calculus.
1 Formal Models for Distributed Negotiations From Petri Nets to Join Calculus Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela.
An algebra of Connectors for modeling CommUnity with Tiles joint work with Roberto Bruni Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan.
1 Formal Models for Transactions: BizTalk as ZSN Roberto Bruni Dipartimento di Informatica Università di Pisa Models and Languages for Coordination and.
1 Formal Models for Distributed Negotiations A Calculus of Compensations Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias.
Distributed Commit. Example Consider a chain of stores and suppose a manager – wants to query all the stores, – find the inventory of toothbrushes at.
Real-Time Synchronised Petri Nets Giovanna Di Marzo Serugendo Dino Mandrioli, Didier Buchs, Nicolas Guelfi University of Geneva, Switzerland PN’02 / 24th.
Dipartimento di Informatica Università di Pisa Nested Commits for Mobile Calculi: Extending Join Roberto Bruni, Hernán Melgratti and Ugo Montanari.
1 Formal Models for Distributed Negotiations Introduction Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias Informaticas.
Complete Axioms for Stateless Connectors joint work with Roberto Bruni and Ugo Montanari Dipartimento di Informatica Università di Pisa Ivan Lanese Dipartimento.
1 Formal Models for Distributed Negotiations Commit Protocols Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias Informaticas.
Cheng/Dillon-Software Engineering: Formal Methods Model Checking.
Distributed Commit Dr. Yingwu Zhu. Failures in a distributed system Consistency requires agreement among multiple servers – Is transaction X committed?
Distributed Consensus Reaching agreement is a fundamental problem in distributed computing. Some examples are Leader election / Mutual Exclusion Commit.
From requirements to specification Specification is a refinement of requirements Can be included together as Software Requirements Specifications (SRS)
Benjamin Gamble. What is Time?  Can mean many different things to a computer Dynamic Equation Variable System State 2.
Chapter Two: Section Four The Chain Rule. Chapter Two: Section Four Up to this point all of our derivative rules have considered functions of x in their.
Consensus and Its Impossibility in Asynchronous Systems.
Distributed Transaction Management, Fall 2002Lecture Distributed Commit Protocols Jyrki Nummenmaa
Dipartimento di Informatica Università di Pisa Alberto Baragatti, Roberto Bruni, Hernán Melgratti, Ugo Montanari and Giorgio Spagnolo Prototype Platforms.
CS294, Yelick Consensus revisited, p1 CS Consensus Revisited
Impossibility of Distributed Consensus with One Faulty Process By, Michael J.Fischer Nancy A. Lynch Michael S.Paterson.
Parosh Aziz Abdulla 1, Mohamed Faouzi Atig 1, Zeinab Ganjei 2, Ahmed Rezine 2 and Yunyun Zhu 1 1. Uppsala University, Sweden 2. Linköping University, Sweden.
Fault tolerance and related issues in distributed computing Shmuel Zaks GSSI - Feb
Relying on Safe Distance to Achieve Strong Partitionable Group Membership in Ad Hoc Networks Authors: Q. Huang, C. Julien, G. Roman Presented By: Jeff.
Cart First, the cart is on the left touching the contact sensor a. After pressing button S (start), the cart starts moving to the right. When the cart.
P RE - PROJECT P RE - PROJECT SOFTWARE QUALITY COMPONENTS Dr. Ahmad F. Shubita.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
Rewriting Nested Graphs, through Term Graphs Roberto Bruni, Andrea Corradini, Fabio Gadducci Alberto Lluch Lafuente and Ugo Montanari Dipartimento di Informatica,
Outline Introduction Background Distributed DBMS Architecture
Project Management
Project Management
Project Management
Project Management
Distributed Consensus
Assignment 5 - Solution Problem 1
Distributed Transactions
Presentation transcript:

1 Formal Models for Distributed Negotiations Exercises Roberto Bruni Dipartimento di Informatica Università di Pisa XVII Escuela de Ciencias Informaticas (ECI 2003), Buenos Aires, July

Formal Models for Distributed Negotiations2 Day 1 – Commit Protocols Write down the decentralized 2PC protocol in full detail. Assume that the maximum delay for a message to go from a process to its neighbours is the same for all process. Write down the linear 2PC protocol in detail, indicating the timeout period that each process should set when waiting for a message. Explain carefully how timeouts are determined by the position in the chain and the kind of expected message. In the linear 2PC protocol it is possible to speed up the abort when some process votes NO (passing the abort message immediately to the left). Develop this variation of 2PC.

Formal Models for Distributed Negotiations3 Day 2 – Petri Nets Consider the net below: find two different processes that correspond to the same computation proof (in the algebra that we have seen) write down part of the unfolding showing three pairs of events that are related respectively by , # and co a2a2 a1a1 a5a5 a4a4 a3a3 2 2 t1t1 t2t2 t3t3 t4t4 t5t5

Formal Models for Distributed Negotiations4 Day 2 – Zero Safe Nets Consider the Zero Safe net: write the corresponding CTPh / ITPh abstract nets Write the Zero Safe nets corresponding to processes a!(a?0|a!0) (a?0|a!0|a!b?0|b!0)\a\b (a?0+b?0)|(b!0+c!0)\a\b\c and then find the associated abstract nets t sr 2

Formal Models for Distributed Negotiations5 Day 2 – Basic Shapes Show that given any Zero Safe net B, we can always find a corresponding Zero Safe net B base that: yields the same abstract net as B, contains only transitions of the form below: fork open join close drop

Formal Models for Distributed Negotiations6 Day 3 – Linda Draw the LTS associated with the process out(a).0 | rdp(a)?out(b).0:out(c).0 | in(a)?out(c).0:out(b).0 under both the ordered and unordered semantics then draw the corresponding Petri nets their unfoldings

Formal Models for Distributed Negotiations7 Day 3 – Net Flavors It has been proved that reachability is decidable for any finite contextual net N that has exactly one inhibitor arc. Exploiting this result, show that reachability is decidable for any finite zero safe net.

Formal Models for Distributed Negotiations8 (Day 3 – TraLinda) Write a TraLinda process P for modeling the meeting schedule problem: the goal is to select a date for a meeting which is ok for every member of the team; the decision is constrained by a finite set of possible dates based on the availability of the meeting room; every member of the team suggests possible dates until an agreement is reached. State any additional assumptions you may need. Illustrate zsnet(P) and the corresponding abstract net.

Formal Models for Distributed Negotiations9 Day 4 – Join Calculus Define the type system  2 that characterizes those terms of the join-calculus that correspond to reconfigurable nets. Find the time and message complexity of D2PC.

Formal Models for Distributed Negotiations10 Day 5 – Join Calculus Define the Zero Safe net and the corresponding join-calculus implementation for the instance of the “Apartment Problem” defined by Persons: P, Q, R, S, T Apartments: A (free), B, C, D (free), E Rented: P in B, Q in C, S in E Wanted: P wants A or C, Q wants A or B, R wants A or C or E, S wants C or D, T wants D or E What is the abstract net?

Formal Models for Distributed Negotiations11 Day 5 – Compensations Propose an extension of join calculus (or committed join) where each transaction has two kinds of compensations: the first to be activated on abort the second to be activated on commit Describe the syntax, heating/cooling rules and reactions. Illustrate the main features of the new calculus by means of a few examples.

Formal Models for Distributed Negotiations12 Day 5 – Committed Join Write a Committed Join process P for modeling the order fulfillment problem: A company takes orders from its customers; when a new order is received the company: asks the warehouse to prepare the order for shipment books a courier to collect the order performs a credit check on the customer to verify that the goods can be paid State any additional assumptions you may need.