SlideShare a Scribd company logo
1 of 19
Consistency protocols
Speaker :呂宗螢
Adviser :梁文耀 老師
Date : 2006/11/29
Embedded and Parallel Systems Lab2
Consistency Protocols
 Implementation of a consistency model
How do we order operations according to a
consistency model
How are multiple writes applied and
propagated to different replicas?
 Data-consistency protocols
Implement data-consistency model
Need some sort of globally serialized
operations
Embedded and Parallel Systems Lab3
Consistency Protocols
 Primary-based protocols
Each data item has a primary replica
 Replication-based protocols
Operations can be carried out at multiple
replicas
Embedded and Parallel Systems Lab4
Primary-based Protocol
 Each data item has a primary replica
 All writes are applied to and coordinated
by the primary
 Two types :
Remote-Write : The primary is fixed and
remote
Local-Write : The primary is copied locally
before applying writes
Embedded and Parallel Systems Lab5
Remote-Write Protocols
 All read and Write operations are carried out at a
remote server.
 Client-server systems
 Primary-backup protocols
Embedded and Parallel Systems Lab6
Remote-Write Protocols
Embedded and Parallel Systems Lab7
Primary-Backup Protocols
 Budhiraja et al., 1993
 Read operations can happen locally
 Write operations also carried out on the
primary
 A write is complete only when all backups
have updated
 Update is Blocking
Embedded and Parallel Systems Lab8
Primary-Backup Protocols
Embedded and Parallel Systems Lab9
Primary-Backup Protocols
 Primary can order all incoming writes
 All processes are see all write operations in the
same order
 Sequential consistency
 Can use write-invalidate
 Update with Non-blocking(Budhiraja and
Marzullo, 1992)
 No assurance that the backups will actually receive
the write
 Not guaranteed that the effect of a write will be seen
in all subsequent reads
Embedded and Parallel Systems Lab10
Local-Write Protocols
 Primary-base local-write protocols
There is only a single copy of data item x.
 Where is the data? How to find?
Forwarding pointers
Home-based
 Primary-backup local-write protocols
Multiple copies of each data item x exist, but
one of them are primary
Can disconnected mode
Embedded and Parallel Systems Lab11
Primary-base local-write protocols
Embedded and Parallel Systems Lab12
Primary-backup local-write
protocols
Embedded and Parallel Systems Lab13
Replicated-Write Protocols
 Write operations can be carried out at
multiple replicas instead of only one
 Active Replication
Write operation is forwarded to all replicas
Need a total ordering
Use Lamport timestamps
Central sequencer
One problem to deal with replicated
invocations
Embedded and Parallel Systems Lab14
Replicated Invocations
Embedded and Parallel Systems Lab15
Replicated Invocations
(one solution)
 Mazouni et al., 1995
Embedded and Parallel Systems Lab16
Replicated-Write Protocols
 Quorum-Based Protocols
Voting protocols
Gifford ,1979
In a system where N replicas exist, a client
needs to assemble a read quorum of NR
servers to read, and a write quorum of NW
servers to write, where
NR+NW > N (prevents read-write conflicts)
NW > N/2 (prevents write-write conflicts)
Embedded and Parallel Systems Lab17
Quorum-Based Protocols
Embedded and Parallel Systems Lab18
Home-Based
 The home location is often chosen to be
the place where an entity was created
 Use Home agent
Embedded and Parallel Systems Lab19
Home-Based
Client’s location
Host’s home agent
3.Tunnel packet to
current location
4.Send successive packets
to current location
1.Send packet to host at its home
2.Return address
current location

More Related Content

What's hot

Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed SystemSunita Sahu
 
Introduction to distributed file systems
Introduction to distributed file systemsIntroduction to distributed file systems
Introduction to distributed file systemsViet-Trung TRAN
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure callsAshish Kumar
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing modelsishmecse13
 
Communications is distributed systems
Communications is distributed systemsCommunications is distributed systems
Communications is distributed systemsSHATHAN
 
Distributed system notes unit I
Distributed system notes unit IDistributed system notes unit I
Distributed system notes unit INANDINI SHARMA
 
Client-centric Consistency Models
Client-centric Consistency ModelsClient-centric Consistency Models
Client-centric Consistency ModelsEnsar Basri Kahveci
 
Clock Synchronization (Distributed computing)
Clock Synchronization (Distributed computing)Clock Synchronization (Distributed computing)
Clock Synchronization (Distributed computing)Sri Prasanna
 
Distributed objects & components of corba
Distributed objects & components of corbaDistributed objects & components of corba
Distributed objects & components of corbaMayuresh Wadekar
 
Distributed file system
Distributed file systemDistributed file system
Distributed file systemNaza hamed Jan
 
Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance SHIKHA GAUTAM
 
Design Goals of Distributed System
Design Goals of Distributed SystemDesign Goals of Distributed System
Design Goals of Distributed SystemAshish KC
 
Models of Distributed System
Models of Distributed SystemModels of Distributed System
Models of Distributed SystemAshish KC
 
Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dosvanamali_vanu
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network LayerRahul Hada
 
Message and Stream Oriented Communication
Message and Stream Oriented CommunicationMessage and Stream Oriented Communication
Message and Stream Oriented CommunicationDilum Bandara
 

What's hot (20)

Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
 
Introduction to distributed file systems
Introduction to distributed file systemsIntroduction to distributed file systems
Introduction to distributed file systems
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure calls
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing models
 
Communications is distributed systems
Communications is distributed systemsCommunications is distributed systems
Communications is distributed systems
 
Distributed system notes unit I
Distributed system notes unit IDistributed system notes unit I
Distributed system notes unit I
 
Naming in Distributed System
Naming in Distributed SystemNaming in Distributed System
Naming in Distributed System
 
Client-centric Consistency Models
Client-centric Consistency ModelsClient-centric Consistency Models
Client-centric Consistency Models
 
Clock Synchronization (Distributed computing)
Clock Synchronization (Distributed computing)Clock Synchronization (Distributed computing)
Clock Synchronization (Distributed computing)
 
Distributed objects & components of corba
Distributed objects & components of corbaDistributed objects & components of corba
Distributed objects & components of corba
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance
 
Design Goals of Distributed System
Design Goals of Distributed SystemDesign Goals of Distributed System
Design Goals of Distributed System
 
Fault tolerance
Fault toleranceFault tolerance
Fault tolerance
 
Models of Distributed System
Models of Distributed SystemModels of Distributed System
Models of Distributed System
 
Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dos
 
Process Management-Process Migration
Process Management-Process MigrationProcess Management-Process Migration
Process Management-Process Migration
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network Layer
 
Message and Stream Oriented Communication
Message and Stream Oriented CommunicationMessage and Stream Oriented Communication
Message and Stream Oriented Communication
 
Distributed Transaction
Distributed TransactionDistributed Transaction
Distributed Transaction
 

Viewers also liked

Consistency in Distributed Systems
Consistency in Distributed SystemsConsistency in Distributed Systems
Consistency in Distributed SystemsShane Johnson
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems Haitham Ahmed
 
Consistency Models in New Generation Databases
Consistency Models in New Generation DatabasesConsistency Models in New Generation Databases
Consistency Models in New Generation Databasesiammutex
 
Consistency in Distributed Systems
Consistency in Distributed SystemsConsistency in Distributed Systems
Consistency in Distributed SystemsDATAVERSITY
 
Slideshare presentation XIAXIONG
Slideshare presentation XIAXIONGSlideshare presentation XIAXIONG
Slideshare presentation XIAXIONGSean Xiong
 
Photos from gaza(1)
Photos from gaza(1)Photos from gaza(1)
Photos from gaza(1)Dolfi Diwald
 
Everyone needs life insurance
Everyone needs life insuranceEveryone needs life insurance
Everyone needs life insuranceInfiniteYou
 
Experian Lunchsessie 25 juli: Loyaliteit begint met een eerste acquirerende s...
Experian Lunchsessie 25 juli: Loyaliteit begint met een eerste acquirerende s...Experian Lunchsessie 25 juli: Loyaliteit begint met een eerste acquirerende s...
Experian Lunchsessie 25 juli: Loyaliteit begint met een eerste acquirerende s...experiannederland
 
Developing for Windows 8 based devices
Developing for Windows 8 based devicesDeveloping for Windows 8 based devices
Developing for Windows 8 based devicesAneeb_Khawar
 
Experian Lunchsessie 1 augustus: Ik “like” ROI op mijn social budget!
Experian Lunchsessie 1 augustus: Ik “like” ROI op mijn social budget!Experian Lunchsessie 1 augustus: Ik “like” ROI op mijn social budget!
Experian Lunchsessie 1 augustus: Ik “like” ROI op mijn social budget!experiannederland
 
Cs437 lecture 16-18
Cs437 lecture 16-18Cs437 lecture 16-18
Cs437 lecture 16-18Aneeb_Khawar
 
PKN tentang Rakyat
PKN tentang RakyatPKN tentang Rakyat
PKN tentang Rakyatichaa17
 

Viewers also liked (20)

Consistency in Distributed Systems
Consistency in Distributed SystemsConsistency in Distributed Systems
Consistency in Distributed Systems
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
 
Consistency Models in New Generation Databases
Consistency Models in New Generation DatabasesConsistency Models in New Generation Databases
Consistency Models in New Generation Databases
 
Consistency in Distributed Systems
Consistency in Distributed SystemsConsistency in Distributed Systems
Consistency in Distributed Systems
 
Slideshare presentation XIAXIONG
Slideshare presentation XIAXIONGSlideshare presentation XIAXIONG
Slideshare presentation XIAXIONG
 
Creative Business Development Briefing - February 2015
Creative Business Development Briefing - February 2015Creative Business Development Briefing - February 2015
Creative Business Development Briefing - February 2015
 
Psy 2
Psy 2Psy 2
Psy 2
 
Cs437 lecture 09
Cs437 lecture 09Cs437 lecture 09
Cs437 lecture 09
 
Creative Business Development Briefing - April 2015
Creative Business Development Briefing - April 2015Creative Business Development Briefing - April 2015
Creative Business Development Briefing - April 2015
 
Cot safety
Cot safetyCot safety
Cot safety
 
Photos from gaza(1)
Photos from gaza(1)Photos from gaza(1)
Photos from gaza(1)
 
Everyone needs life insurance
Everyone needs life insuranceEveryone needs life insurance
Everyone needs life insurance
 
Experian Lunchsessie 25 juli: Loyaliteit begint met een eerste acquirerende s...
Experian Lunchsessie 25 juli: Loyaliteit begint met een eerste acquirerende s...Experian Lunchsessie 25 juli: Loyaliteit begint met een eerste acquirerende s...
Experian Lunchsessie 25 juli: Loyaliteit begint met een eerste acquirerende s...
 
Developing for Windows 8 based devices
Developing for Windows 8 based devicesDeveloping for Windows 8 based devices
Developing for Windows 8 based devices
 
Experian Lunchsessie 1 augustus: Ik “like” ROI op mijn social budget!
Experian Lunchsessie 1 augustus: Ik “like” ROI op mijn social budget!Experian Lunchsessie 1 augustus: Ik “like” ROI op mijn social budget!
Experian Lunchsessie 1 augustus: Ik “like” ROI op mijn social budget!
 
Cvs
CvsCvs
Cvs
 
x town report
x town reportx town report
x town report
 
Creative & Digital Business Briefing - October 2016
Creative & Digital Business Briefing - October 2016Creative & Digital Business Briefing - October 2016
Creative & Digital Business Briefing - October 2016
 
Cs437 lecture 16-18
Cs437 lecture 16-18Cs437 lecture 16-18
Cs437 lecture 16-18
 
PKN tentang Rakyat
PKN tentang RakyatPKN tentang Rakyat
PKN tentang Rakyat
 

Similar to Consistency protocols

Performance improvement techniques for software distributed shared memory
Performance improvement techniques for software distributed shared memoryPerformance improvement techniques for software distributed shared memory
Performance improvement techniques for software distributed shared memoryZongYing Lyu
 
Dsm (Distributed computing)
Dsm (Distributed computing)Dsm (Distributed computing)
Dsm (Distributed computing)Sri Prasanna
 
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...xKinAnx
 
Parallelization using open mp
Parallelization using open mpParallelization using open mp
Parallelization using open mpranjit banshpal
 
RAFT Consensus Algorithm
RAFT Consensus AlgorithmRAFT Consensus Algorithm
RAFT Consensus Algorithmsangyun han
 
Algoritmi e Calcolo Parallelo 2012/2013 - OpenMP
Algoritmi e Calcolo Parallelo 2012/2013 - OpenMPAlgoritmi e Calcolo Parallelo 2012/2013 - OpenMP
Algoritmi e Calcolo Parallelo 2012/2013 - OpenMPPier Luca Lanzi
 
Linux@assignment ppt
Linux@assignment pptLinux@assignment ppt
Linux@assignment pptRama .
 
Parallel Processing (Part 2)
Parallel Processing (Part 2)Parallel Processing (Part 2)
Parallel Processing (Part 2)Ajeng Savitri
 
GFS - Google File System
GFS - Google File SystemGFS - Google File System
GFS - Google File Systemtutchiio
 
DSD-INT 2022 Singularity containers - simplifying the use of Delft3D FM on Hi...
DSD-INT 2022 Singularity containers - simplifying the use of Delft3D FM on Hi...DSD-INT 2022 Singularity containers - simplifying the use of Delft3D FM on Hi...
DSD-INT 2022 Singularity containers - simplifying the use of Delft3D FM on Hi...Deltares
 
Operating Systems - "Chapter 4: Multithreaded Programming"
Operating Systems - "Chapter 4:  Multithreaded Programming"Operating Systems - "Chapter 4:  Multithreaded Programming"
Operating Systems - "Chapter 4: Multithreaded Programming"Ra'Fat Al-Msie'deen
 
Centralized logging with Flume
Centralized logging with FlumeCentralized logging with Flume
Centralized logging with FlumeRatnakar Pawar
 
Evolution of MongoDB Replicaset and Its Best Practices
Evolution of MongoDB Replicaset and Its Best PracticesEvolution of MongoDB Replicaset and Its Best Practices
Evolution of MongoDB Replicaset and Its Best PracticesMydbops
 

Similar to Consistency protocols (20)

Performance improvement techniques for software distributed shared memory
Performance improvement techniques for software distributed shared memoryPerformance improvement techniques for software distributed shared memory
Performance improvement techniques for software distributed shared memory
 
Os lectures
Os lecturesOs lectures
Os lectures
 
Dsm (Distributed computing)
Dsm (Distributed computing)Dsm (Distributed computing)
Dsm (Distributed computing)
 
Threads
ThreadsThreads
Threads
 
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
 
File replication
File replicationFile replication
File replication
 
Linux
LinuxLinux
Linux
 
Parallelization using open mp
Parallelization using open mpParallelization using open mp
Parallelization using open mp
 
RAFT Consensus Algorithm
RAFT Consensus AlgorithmRAFT Consensus Algorithm
RAFT Consensus Algorithm
 
Algoritmi e Calcolo Parallelo 2012/2013 - OpenMP
Algoritmi e Calcolo Parallelo 2012/2013 - OpenMPAlgoritmi e Calcolo Parallelo 2012/2013 - OpenMP
Algoritmi e Calcolo Parallelo 2012/2013 - OpenMP
 
Lecture5
Lecture5Lecture5
Lecture5
 
Linux@assignment ppt
Linux@assignment pptLinux@assignment ppt
Linux@assignment ppt
 
CH04.pdf
CH04.pdfCH04.pdf
CH04.pdf
 
Parallel Processing (Part 2)
Parallel Processing (Part 2)Parallel Processing (Part 2)
Parallel Processing (Part 2)
 
GFS - Google File System
GFS - Google File SystemGFS - Google File System
GFS - Google File System
 
Fundamentals
FundamentalsFundamentals
Fundamentals
 
DSD-INT 2022 Singularity containers - simplifying the use of Delft3D FM on Hi...
DSD-INT 2022 Singularity containers - simplifying the use of Delft3D FM on Hi...DSD-INT 2022 Singularity containers - simplifying the use of Delft3D FM on Hi...
DSD-INT 2022 Singularity containers - simplifying the use of Delft3D FM on Hi...
 
Operating Systems - "Chapter 4: Multithreaded Programming"
Operating Systems - "Chapter 4:  Multithreaded Programming"Operating Systems - "Chapter 4:  Multithreaded Programming"
Operating Systems - "Chapter 4: Multithreaded Programming"
 
Centralized logging with Flume
Centralized logging with FlumeCentralized logging with Flume
Centralized logging with Flume
 
Evolution of MongoDB Replicaset and Its Best Practices
Evolution of MongoDB Replicaset and Its Best PracticesEvolution of MongoDB Replicaset and Its Best Practices
Evolution of MongoDB Replicaset and Its Best Practices
 

More from ZongYing Lyu

Architecture of the oasis mobile shared virtual memory system
Architecture of the oasis mobile shared virtual memory systemArchitecture of the oasis mobile shared virtual memory system
Architecture of the oasis mobile shared virtual memory systemZongYing Lyu
 
A deep dive into energy efficient multi core processor
A deep dive into energy efficient multi core processorA deep dive into energy efficient multi core processor
A deep dive into energy efficient multi core processorZongYing Lyu
 
Libckpt transparent checkpointing under unix
Libckpt transparent checkpointing under unixLibckpt transparent checkpointing under unix
Libckpt transparent checkpointing under unixZongYing Lyu
 
Device Driver - Chapter 6字元驅動程式的進階作業
Device Driver - Chapter 6字元驅動程式的進階作業Device Driver - Chapter 6字元驅動程式的進階作業
Device Driver - Chapter 6字元驅動程式的進階作業ZongYing Lyu
 
Device Driver - Chapter 3字元驅動程式
Device Driver - Chapter 3字元驅動程式Device Driver - Chapter 3字元驅動程式
Device Driver - Chapter 3字元驅動程式ZongYing Lyu
 
Web coding principle
Web coding principleWeb coding principle
Web coding principleZongYing Lyu
 
提高 Code 品質心得
提高 Code 品質心得提高 Code 品質心得
提高 Code 品質心得ZongYing Lyu
 
Compiler optimization
Compiler optimizationCompiler optimization
Compiler optimizationZongYing Lyu
 
MPI use c language
MPI use c languageMPI use c language
MPI use c languageZongYing Lyu
 
Parallel program design
Parallel program designParallel program design
Parallel program designZongYing Lyu
 

More from ZongYing Lyu (14)

Vue.js
Vue.jsVue.js
Vue.js
 
Architecture of the oasis mobile shared virtual memory system
Architecture of the oasis mobile shared virtual memory systemArchitecture of the oasis mobile shared virtual memory system
Architecture of the oasis mobile shared virtual memory system
 
A deep dive into energy efficient multi core processor
A deep dive into energy efficient multi core processorA deep dive into energy efficient multi core processor
A deep dive into energy efficient multi core processor
 
Libckpt transparent checkpointing under unix
Libckpt transparent checkpointing under unixLibckpt transparent checkpointing under unix
Libckpt transparent checkpointing under unix
 
Device Driver - Chapter 6字元驅動程式的進階作業
Device Driver - Chapter 6字元驅動程式的進階作業Device Driver - Chapter 6字元驅動程式的進階作業
Device Driver - Chapter 6字元驅動程式的進階作業
 
Device Driver - Chapter 3字元驅動程式
Device Driver - Chapter 3字元驅動程式Device Driver - Chapter 3字元驅動程式
Device Driver - Chapter 3字元驅動程式
 
Web coding principle
Web coding principleWeb coding principle
Web coding principle
 
提高 Code 品質心得
提高 Code 品質心得提高 Code 品質心得
提高 Code 品質心得
 
SCRUM
SCRUMSCRUM
SCRUM
 
Compiler optimization
Compiler optimizationCompiler optimization
Compiler optimization
 
MPI use c language
MPI use c languageMPI use c language
MPI use c language
 
Parallel program design
Parallel program designParallel program design
Parallel program design
 
MPI
MPIMPI
MPI
 
OpenMP
OpenMPOpenMP
OpenMP
 

Recently uploaded

Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odishasmiwainfosol
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZABSYZ Inc
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalLionel Briand
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Rob Geurden
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Matt Ray
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 

Recently uploaded (20)

Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZ
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive Goal
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
Advantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your BusinessAdvantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your Business
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 

Consistency protocols

  • 1. Consistency protocols Speaker :呂宗螢 Adviser :梁文耀 老師 Date : 2006/11/29
  • 2. Embedded and Parallel Systems Lab2 Consistency Protocols  Implementation of a consistency model How do we order operations according to a consistency model How are multiple writes applied and propagated to different replicas?  Data-consistency protocols Implement data-consistency model Need some sort of globally serialized operations
  • 3. Embedded and Parallel Systems Lab3 Consistency Protocols  Primary-based protocols Each data item has a primary replica  Replication-based protocols Operations can be carried out at multiple replicas
  • 4. Embedded and Parallel Systems Lab4 Primary-based Protocol  Each data item has a primary replica  All writes are applied to and coordinated by the primary  Two types : Remote-Write : The primary is fixed and remote Local-Write : The primary is copied locally before applying writes
  • 5. Embedded and Parallel Systems Lab5 Remote-Write Protocols  All read and Write operations are carried out at a remote server.  Client-server systems  Primary-backup protocols
  • 6. Embedded and Parallel Systems Lab6 Remote-Write Protocols
  • 7. Embedded and Parallel Systems Lab7 Primary-Backup Protocols  Budhiraja et al., 1993  Read operations can happen locally  Write operations also carried out on the primary  A write is complete only when all backups have updated  Update is Blocking
  • 8. Embedded and Parallel Systems Lab8 Primary-Backup Protocols
  • 9. Embedded and Parallel Systems Lab9 Primary-Backup Protocols  Primary can order all incoming writes  All processes are see all write operations in the same order  Sequential consistency  Can use write-invalidate  Update with Non-blocking(Budhiraja and Marzullo, 1992)  No assurance that the backups will actually receive the write  Not guaranteed that the effect of a write will be seen in all subsequent reads
  • 10. Embedded and Parallel Systems Lab10 Local-Write Protocols  Primary-base local-write protocols There is only a single copy of data item x.  Where is the data? How to find? Forwarding pointers Home-based  Primary-backup local-write protocols Multiple copies of each data item x exist, but one of them are primary Can disconnected mode
  • 11. Embedded and Parallel Systems Lab11 Primary-base local-write protocols
  • 12. Embedded and Parallel Systems Lab12 Primary-backup local-write protocols
  • 13. Embedded and Parallel Systems Lab13 Replicated-Write Protocols  Write operations can be carried out at multiple replicas instead of only one  Active Replication Write operation is forwarded to all replicas Need a total ordering Use Lamport timestamps Central sequencer One problem to deal with replicated invocations
  • 14. Embedded and Parallel Systems Lab14 Replicated Invocations
  • 15. Embedded and Parallel Systems Lab15 Replicated Invocations (one solution)  Mazouni et al., 1995
  • 16. Embedded and Parallel Systems Lab16 Replicated-Write Protocols  Quorum-Based Protocols Voting protocols Gifford ,1979 In a system where N replicas exist, a client needs to assemble a read quorum of NR servers to read, and a write quorum of NW servers to write, where NR+NW > N (prevents read-write conflicts) NW > N/2 (prevents write-write conflicts)
  • 17. Embedded and Parallel Systems Lab17 Quorum-Based Protocols
  • 18. Embedded and Parallel Systems Lab18 Home-Based  The home location is often chosen to be the place where an entity was created  Use Home agent
  • 19. Embedded and Parallel Systems Lab19 Home-Based Client’s location Host’s home agent 3.Tunnel packet to current location 4.Send successive packets to current location 1.Send packet to host at its home 2.Return address current location