Reliable Communication Smita Hiremath CSC 8530. Reliable Client-Server Communication Point-to-Point communication Established by TCP Masks omission failure,

Slides:



Advertisements
Similar presentations
Fault Tolerance CSCI 4780/6780. Reliable Group Communication Reliable multicasting is important for several applications Transport layer protocols rarely.
Advertisements

Dr. Kalpakis CMSC621 Advanced Operating Systems Fault Tolerance.
1 CS 194: Distributed Systems Process resilience, Reliable Group Communication Scott Shenker and Ion Stoica Computer Science Division Department of Electrical.
Reliable Group Communication Quanzeng You & Haoliang Wang.
L-15 Fault Tolerance 1. Fault Tolerance Terminology & Background Byzantine Fault Tolerance Issues in client/server Reliable group communication 2.
Computer Science Lecture 18, page 1 CS677: Distributed OS Last Class: Fault Tolerance Basic concepts and failure models Failure masking using redundancy.
Computer Science Lecture 17, page 1 CS677: Distributed OS Last Class: Fault Tolerance Basic concepts and failure models Failure masking using redundancy.
Fault Tolerance Chapter 7.
Distributed Systems CS Fault Tolerance- Part II Lecture 14, Oct 19, 2011 Majd F. Sakr, Mohammad Hammoud andVinay Kolar 1.
Group Communication Phuong Hoai Ha & Yi Zhang Introduction to Lab. assignments March 24 th, 2004.
Chapter 7 Fault Tolerance Basic Concepts Failure Models Process Design Issues Flat vs hierarchical group Group Membership Reliable Client.
Distributed Systems CS Fault Tolerance- Part III Lecture 15, Oct 26, 2011 Majd F. Sakr, Mohammad Hammoud andVinay Kolar 1.
"Failure is not an option. It comes bundled with your system.“ (--unknown)
Distributed Systems Fall 2009 Replication Fall 20095DV0203 Outline Group communication Fault-tolerant services –Passive and active replication Highly.
1 Fault Tolerance Chapter 7. 2 Fault Tolerance An important goal in distributed systems design is to construct the system in such a way that it can automatically.
Fault Tolerance Dealing successfully with partial failure within a Distributed System. Key technique: Redundancy.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Chapter 9: Fault Tolerance
Real Time Multimedia Lab Fault Tolerance Chapter – 7 (Distributed Systems) Mr. Imran Rao Ms. NiuYu 22 nd November 2005.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved Chapter 8 Fault.
1 Distributed Systems Fault Tolerance Chapter 8. 2 Course/Slides Credits Note: all course presentations are based on those developed by Andrew S. Tanenbaum.
Dec 4, 2007 Reliable Multicast Group Neelofer T. CMSC 621.
Fault Tolerance. Agenda Overview Introduction to Fault Tolerance Process Resilience Reliable Client-Server communication Reliable group communication.
Lab 2 Group Communication Farnaz Moradi Based on slides by Andreas Larsson 2012.
Distributed Systems CS Fault Tolerance- Part III Lecture 19, Nov 25, 2013 Mohammad Hammoud 1.
Distributed Systems Principles and Paradigms Chapter 07 Fault Tolerance 01 Introduction 02 Communication 03 Processes 04 Naming 05 Synchronization 06 Consistency.
1 8.3 Reliable Client-Server Communication So far: Concentrated on process resilience (by means of process groups). What about reliable communication channels?
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Group Communication Group oriented activities are steadily increasing. There are many types of groups:  Open and Closed groups  Peer-to-peer and hierarchical.
Farnaz Moradi Based on slides by Andreas Larsson 2013.
COMP 655: Distributed/Operating Systems Summer 2011 Dr. Chunbo Chu Week 7: Fault Tolerance 11/13/20151Distributed Systems - COMP 655.
ICS362 – Distributed Systems
More on Fault Tolerance Chapter 7. Topics Group Communication Virtual Synchrony Atomic Commit Checkpointing, Logging, Recovery.
Chapter 24 Transport Control Protocol (TCP) Layer 4 protocol Responsible for reliable end-to-end transmission Provides illusion of reliable network to.
CS603 Fault Tolerance - Communication April 17, 2002.
Fault Tolerance Chapter 7.
Fault Tolerance. Basic Concepts Availability The system is ready to work immediately Reliability The system can run continuously Safety When the system.
Kyung Hee University 1/33 Fault Tolerance Chap 7.
The Totem Single-Ring Ordering and Membership Protocol Y. Amir, L. E. Moser, P. M Melliar-Smith, D. A. Agarwal, P. Ciarfella.
V1.7Fault Tolerance1. V1.7Fault Tolerance2 A characteristic of Distributed Systems is that they are tolerant of partial failures within the distributed.
Fault Tolerance Chapter 7. Failures in Distributed Systems Partial failures – characteristic of distributed systems Goals: Construct systems which can.
- Manvitha Potluri. Client-Server Communication It can be performed in two ways 1. Client-server communication using TCP 2. Client-server communication.
Chapter 11 Fault Tolerance. Topics Introduction Process Resilience Reliable Group Communication Recovery.
Building Dependable Distributed Systems, Copyright Wenbing Zhao
Reliable Client-Server Communication. Reliable Communication So far: Concentrated on process resilience (by means of process groups). What about reliable.
Computer Science Lecture 3, page 1 CS677: Distributed OS Last Class: Communication in Distributed Systems Structured or unstructured? Addressing? Blocking/non-blocking?
Fault Tolerance Chapter 7. Basic Concepts Dependability Includes Availability Reliability Safety Maintainability.
Distributed Systems CS Fault Tolerance- Part II Lecture 18, Nov 19, 2012 Majd F. Sakr and Mohammad Hammoud 1.
1 CHAPTER 5 Fault Tolerance Chapter 5-- Fault Tolerance.
Fault Tolerance Chapter 7. Goal An important goal in distributed systems design is to construct the system in such a way that it can automatically recover.
Fault Tolerance CSCI 4780/6780. RPC Semantics in Presence of Failures 5 types of exceptions Client cannot locate server Request to server is lost Server.
Fault Tolerance (2). Topics r Reliable Group Communication.
1 Fault Tolerance Chapter 8. 2 Basic Concepts Dependability Includes Availability Reliability Safety Maintainability.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Group Communication A group is a collection of users sharing some common interest.Group-based activities are steadily increasing. There are many types.
Reliable multicast Tolerates process crashes. The additional requirements are: Only correct processes will receive multicasts from all correct processes.
More on Fault Tolerance
Fault Tolerance Prof. Orhan Gemikonakli
Fault Tolerance Chap 7.
Chapter 8 Fault Tolerance Part I Introduction.
Reliable group communication
Distributed Systems CS
Distributed Systems CS
DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S
Advanced Operating System
Distributed Systems CS
Reliable Client-Server Communication
Distributed Systems - Comp 655
Last Class: Communication in Distributed Systems
Last Class: Fault Tolerance
Presentation transcript:

Reliable Communication Smita Hiremath CSC 8530

Reliable Client-Server Communication Point-to-Point communication Established by TCP Masks omission failure, crash failure not masked

Cont… RPC Semantic in the presence of Failure 1. The client is unable to locate the server 2. The request message from the client to the server is lost 3. The server crashes after receiving a request 4. The reply message from the server to the client is lost 5. The client crashes after sending the request.

Cont… Client Cannot Locate the Server Server might be down Server evolves and new version of interface is installed Lost Request Messages Easiest one to deal Client stub start the timer when sending the request.

Cont… Server Crashes A server in client-server communication a) Normal case b) Crash after execution c) Crash before execution

Cont… At least once semantics – Guarantees that the RPC has been carried out at least once, but possibly more. At most once semantics – Guarantees that the RPC has been carried out at most once, but possibly none at all Guarantees nothing. RPC may have been carried out anywhere from zero to a large number of times

Cont… Lost Reply Message Some requests can be repeated (idempotent) Assign each request a sequence number Client Crashes Computations are orphans Extermination – the log is kept on the disk or some other medium that survives crash. Reincarnation – divide the time up into sequential numbered epochs.

Cont… Gentle reincarnation – computations are killed if the owner cannot be found. Expiration – RPC is given standard amount of time.

Reliable Group Communication Basic Reliable-Multicasting Message sent to a process group should be delivered to each member of that group. Agreement exists on who is the a member of the group.

Reliable-Multicasting scheme A simple solution to reliable multicasting when all receivers are known and are assumed not to fail a) Message transmission b) Reporting feedback

Scalability in Reliable Multicasting Two different approaches Nonhierarchical Feedback Control Hierarchical Feedback Control

Nonhierarchical Feedback Control Scalable Reliable Multicasting (SRM) Never acknowledges successful delivery of multicast messages. If the receiver missed a message, it multicasts its feedback to the rest of the group, which allows another group member to suppress its own feedback. Only a single feedback message will reach the sender, which in turn subsequently retransmits the message.

Nonhierarchical Feedback Control Several receivers have scheduled a request for retransmission, but the first retransmission request leads to the suppression of others.

Scale reasonably well Problems with this approach Ensuring that only one request for retransmission is returned to the sender requires accurate scheduling of feedback messages at each receiver. Feedback also interrupts those processes to which the message has been successfully delivered. Nonhierarchical Feedback Control

Hierarchical Feedback Control Scalability for very large groups of receivers. The group of receivers are partitioned into number of subgroups, which are organized into trees. Each subgroup appoints a local coordinator, which is responsible for handling retransmission Local coordinator will have its own history buffer.

The essence of hierarchical reliable multicasting. a) Each local coordinator forwards the message to its children. b) A local coordinator handles retransmission requests. Hierarchical Feedback Control

Atomic Multicast Atomic multicast problem – message must be delivered to either all processes or none at all.

Virtual Synchrony The logical organization of a distributed system to distinguish between message receipt and message delivery

Cont… The principle of virtual synchronous multicast.

Message Ordering Four different orderings: 1. Unordered multicasts 2. FIFO-ordered multicasts 3. Causally-ordered multicasts 4. Totally-ordered multicasts

Cont… Process P1Process P2Process P3 sends m1receives m1receives m2 sends m2receives m2receives m1 Three communicating processes in the same group. The ordering of events per process is shown along the vertical axis.

Cont… Process P1Process P2Process P3Process P4 sends m1receives m1receives m3sends m3 sends m2receives m3receives m1sends m4 receives m2 receives m4 Four processes in the same group with two different senders, and a possible delivery order of messages under FIFO- ordered multicasting

Cont… Multicast Basic Message Ordering Total-ordered Delivery? Reliable multicastNoneNo FIFO multicast FIFO-ordered delivery No Causal multicast Causal-ordered delivery No Atomic multicastNoneYes FIFO atomic multicast FIFO-ordered delivery Yes Causal atomic multicast Causal-ordered delivery Yes Six different versions of virtually synchronous reliable multicasting.

Implementing Virtual Synchrony a) Process 4 notices that process 7 has crashed, sends a view change b) Process 6 sends out all its unstable messages, followed by a flush message c) Process 6 installs the new view when it has received a flush message from everyone else