SlideShare a Scribd company logo
1 of 14
Download to read offline
SLIDES BY OSAMA ASKOURA
EECS 6117
Distributed Computing
Set3
Consensus Agreement
Slide
2
Imagine a Byzantine agreement problem
where processes cannot be malicious (lie or
cheat or behave inconsistently)
Instead, processes can only behave
consistently or die (fail.)
This is what we define as a consensus
agreement with halting failures
Consensus in
Model
Synchronous
Non Anonymous Processes
Message-Passing system
Slide
2
Consensus algorithm 1:
• Pref : v (your input)
• Round 1: send your input to all
• Round 2:
for i =1 to f+1
• Keep sending input to all
• Pref =max value received in round
• Output pref
This means that we can tolerate any number
of failures (unlike Byzantine), but we need f+1
rounds!
Model
Synchronous
Non Anonymous Processes
Message-Passing system
Slide
2
CLAIM:
We cannot solve consensus in less than f+1 rounds
PROOF (Contradiction):
Suppose, exists algorithm that uses < f+ 1 rounds
Ifα1 and α2 are 2 executions of the algorithm,
α1 ~ α2 means some correct processes get same sequence of
messages in both executions
Ifα1 ~ α2 then some processes will output same result in both
executions
α1 ~~α2 if α1 ~ β1 ~ β2 ~ βn ~α2
Ifα1 ~~ α2 then they have same output.
Model
Synchronous
Non Anonymous Processes
Message-Passing system
Proof (continued):
Let α1 be failure-free execution where p1..pi have input 0 and
pi+1….. Pn have input 1
Inputs
P1 P2 P3 P4 …. Pn
α0 1 1 1 1 ….. 1 Outputs 1
α1 0 1 1 1 ….. 1
α2 0 0 1 1 ….. 1
α3 0 0 0 1 ….. 1
α4 0 0 0 0 ….. 1
αn 0 0 0 0 ….. 0 Outputs 0
Slide
2
PROOF (continued):
To contradict, prove:
α0 (no failure) ~β1 ~ α1  no failure
We know that α0 outputs 0 and αn outputs 1.
We will show that for each I αi ~~ αi+1 up to αn, so proc will
Output same result in α0 and αn;but we know they don’t!
(Contradiction)
Model
Synchronous
Non Anonymous Processes
Message-Passing system
Proc 1 fails
immediately
Slide
2
PROOF (continued):
Lemma:
Suppose ψ is an execution with ≤ 1failure per round (failure-sparse)
And is same as execution γ up to end of first r rounds and ψ has
No failures in round r+1 or later. ( 0 ≤r≤f )
Then ψ ~~ γ
Model
Synchronous
Non Anonymous Processes
Message-Passing system
Slide
2
PROOF (continued):
Proof of Lemma (By reverse induction on r):
Base step: r = f
Then ψ &γ are identical in first f rounds,
Since the algorithm uses f rounds (ψ ~~γ)
Inductive step
Assume claim is true for r+1; Prove claim for r
If γhas no failures in round r+1, then (ψ ~~γ) by inductive
hypothesis
We use fact that r ≥ f+1 when we kill q.
Model
Synchronous
Non Anonymous Processes
Message-Passing system
Summary for Synchronous
Conensus & Byzantine
Slide
2
Byzantine agreement is solvable iff n > 3f and
connectivity > 2f in an arbitrary graph
Halting failures (Consensus) is solvable iff connectivity >
f in an arbitrary graph and must take f + 1 rounds
How About
Byzantine/Consensus in
Asynchronous systems?
Slide
2
In Asynchronous systems,
1 halting failure makes the problem of agreement
insolvable. This is remains true even if you solve the
Halting Problem.
Impossibility for halting failures implies impossibility
for Byzantine failures as well in asynchronous systems
Slide
18
EECS6117notesFW15-16,Instructor:EricRuppert
HagitAttiyaandJenniferWelch.DistributedComputing:Fundamentals,SimulationsandAdvanced
Topics,2ndedition. Wiley,2004.
NancyA.Lynch.DistributedAlgorithms. MorganKaufmann,1996.
References

More Related Content

What's hot

time domain analysis, Rise Time, Delay time, Damping Ratio, Overshoot, Settli...
time domain analysis, Rise Time, Delay time, Damping Ratio, Overshoot, Settli...time domain analysis, Rise Time, Delay time, Damping Ratio, Overshoot, Settli...
time domain analysis, Rise Time, Delay time, Damping Ratio, Overshoot, Settli...Waqas Afzal
 
MATLAB Programming - Loop Control Part 2
MATLAB Programming - Loop Control Part 2MATLAB Programming - Loop Control Part 2
MATLAB Programming - Loop Control Part 2Shameer Ahmed Koya
 
Java Repetiotion Statements
Java Repetiotion StatementsJava Repetiotion Statements
Java Repetiotion StatementsHuda Alameen
 
Loops in c language
Loops in c languageLoops in c language
Loops in c languagetanmaymodi4
 
Java input Scanner
Java input Scanner Java input Scanner
Java input Scanner Huda Alameen
 
Looping statements in Java
Looping statements in JavaLooping statements in Java
Looping statements in JavaJin Castor
 
Types of loops in c language
Types of loops in c languageTypes of loops in c language
Types of loops in c languagesneha2494
 
Loops Basics
Loops BasicsLoops Basics
Loops BasicsMushiii
 
Do...while loop structure
Do...while loop structureDo...while loop structure
Do...while loop structureJd Mercado
 
Operators loops conditional and statements
Operators loops conditional and statementsOperators loops conditional and statements
Operators loops conditional and statementsVladislav Hadzhiyski
 
Solving Nonograms In Parallel
Solving Nonograms In ParallelSolving Nonograms In Parallel
Solving Nonograms In Parallel家郡 葉
 
Presentation on nesting of loops
Presentation on nesting of loopsPresentation on nesting of loops
Presentation on nesting of loopsbsdeol28
 

What's hot (20)

Chapter 3
Chapter 3Chapter 3
Chapter 3
 
time domain analysis, Rise Time, Delay time, Damping Ratio, Overshoot, Settli...
time domain analysis, Rise Time, Delay time, Damping Ratio, Overshoot, Settli...time domain analysis, Rise Time, Delay time, Damping Ratio, Overshoot, Settli...
time domain analysis, Rise Time, Delay time, Damping Ratio, Overshoot, Settli...
 
MATLAB Programming - Loop Control Part 2
MATLAB Programming - Loop Control Part 2MATLAB Programming - Loop Control Part 2
MATLAB Programming - Loop Control Part 2
 
Loops in C
Loops in CLoops in C
Loops in C
 
Java Repetiotion Statements
Java Repetiotion StatementsJava Repetiotion Statements
Java Repetiotion Statements
 
Semaphores
SemaphoresSemaphores
Semaphores
 
Loops in c language
Loops in c languageLoops in c language
Loops in c language
 
Java input Scanner
Java input Scanner Java input Scanner
Java input Scanner
 
Looping statements in Java
Looping statements in JavaLooping statements in Java
Looping statements in Java
 
Loops c++
Loops c++Loops c++
Loops c++
 
Java Programming: Loops
Java Programming: LoopsJava Programming: Loops
Java Programming: Loops
 
Types of loops in c language
Types of loops in c languageTypes of loops in c language
Types of loops in c language
 
Loops Basics
Loops BasicsLoops Basics
Loops Basics
 
Do...while loop structure
Do...while loop structureDo...while loop structure
Do...while loop structure
 
Operators loops conditional and statements
Operators loops conditional and statementsOperators loops conditional and statements
Operators loops conditional and statements
 
Solving Nonograms In Parallel
Solving Nonograms In ParallelSolving Nonograms In Parallel
Solving Nonograms In Parallel
 
universality
universalityuniversality
universality
 
Matlab Script - Loop Control
Matlab Script - Loop ControlMatlab Script - Loop Control
Matlab Script - Loop Control
 
Presentation on nesting of loops
Presentation on nesting of loopsPresentation on nesting of loops
Presentation on nesting of loops
 
Looping
LoopingLooping
Looping
 

Similar to Distributed Computing Set 3 - Topics of non-Byzantine Consensus

Similar to Distributed Computing Set 3 - Topics of non-Byzantine Consensus (20)

Computer Network Assignment Help
Computer Network Assignment HelpComputer Network Assignment Help
Computer Network Assignment Help
 
Ct2 2013 14
Ct2 2013 14Ct2 2013 14
Ct2 2013 14
 
Class 36: Halting Problem
Class 36: Halting ProblemClass 36: Halting Problem
Class 36: Halting Problem
 
Ch6
Ch6Ch6
Ch6
 
Rbd best
Rbd bestRbd best
Rbd best
 
OSCh7
OSCh7OSCh7
OSCh7
 
OS_Ch7
OS_Ch7OS_Ch7
OS_Ch7
 
Iteration
IterationIteration
Iteration
 
Grover's algorithm simplified.pptx
Grover's algorithm simplified.pptxGrover's algorithm simplified.pptx
Grover's algorithm simplified.pptx
 
Time response analysis
Time response analysisTime response analysis
Time response analysis
 
Exercise 1a transfer functions - solutions
Exercise 1a   transfer functions - solutionsExercise 1a   transfer functions - solutions
Exercise 1a transfer functions - solutions
 
control system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functionscontrol system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functions
 
While loop
While loopWhile loop
While loop
 
Os unit 3
Os unit 3Os unit 3
Os unit 3
 
TERMIN@TION AND DETECTION #ALL DET@IL 123
TERMIN@TION AND DETECTION #ALL DET@IL 123TERMIN@TION AND DETECTION #ALL DET@IL 123
TERMIN@TION AND DETECTION #ALL DET@IL 123
 
Control project
Control projectControl project
Control project
 
TIME RESPONSE ANALYSIS
TIME RESPONSE ANALYSISTIME RESPONSE ANALYSIS
TIME RESPONSE ANALYSIS
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework Help
 
Anlysis and design of algorithms part 1
Anlysis and design of algorithms part 1Anlysis and design of algorithms part 1
Anlysis and design of algorithms part 1
 
Answers computer networks 159334 assignment_2_2010
Answers computer networks 159334 assignment_2_2010Answers computer networks 159334 assignment_2_2010
Answers computer networks 159334 assignment_2_2010
 

More from Osama Askoura

Molecular Communication for Bio Fuels
Molecular Communication for Bio FuelsMolecular Communication for Bio Fuels
Molecular Communication for Bio FuelsOsama Askoura
 
Distributed Computing - Slide Set 1 (broadcast algorithms + stronger)
Distributed Computing - Slide Set 1 (broadcast algorithms + stronger)Distributed Computing - Slide Set 1 (broadcast algorithms + stronger)
Distributed Computing - Slide Set 1 (broadcast algorithms + stronger)Osama Askoura
 
Coexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed Spectrum
Coexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed SpectrumCoexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed Spectrum
Coexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed SpectrumOsama Askoura
 
Coexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed Spectrum
Coexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed SpectrumCoexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed Spectrum
Coexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed SpectrumOsama Askoura
 
Virtual reality Immersion and Presence in Physiological Measures
Virtual reality Immersion and Presence in Physiological MeasuresVirtual reality Immersion and Presence in Physiological Measures
Virtual reality Immersion and Presence in Physiological MeasuresOsama Askoura
 
6590 Research Paper Review: MAC Protocol for Multi-Hop Multicast in Adhoc Net...
6590 Research Paper Review: MAC Protocol for Multi-Hop Multicast in Adhoc Net...6590 Research Paper Review: MAC Protocol for Multi-Hop Multicast in Adhoc Net...
6590 Research Paper Review: MAC Protocol for Multi-Hop Multicast in Adhoc Net...Osama Askoura
 

More from Osama Askoura (6)

Molecular Communication for Bio Fuels
Molecular Communication for Bio FuelsMolecular Communication for Bio Fuels
Molecular Communication for Bio Fuels
 
Distributed Computing - Slide Set 1 (broadcast algorithms + stronger)
Distributed Computing - Slide Set 1 (broadcast algorithms + stronger)Distributed Computing - Slide Set 1 (broadcast algorithms + stronger)
Distributed Computing - Slide Set 1 (broadcast algorithms + stronger)
 
Coexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed Spectrum
Coexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed SpectrumCoexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed Spectrum
Coexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed Spectrum
 
Coexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed Spectrum
Coexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed SpectrumCoexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed Spectrum
Coexistence of LTE-U with WiFi 802.11n at 5GHz Unlicensed Spectrum
 
Virtual reality Immersion and Presence in Physiological Measures
Virtual reality Immersion and Presence in Physiological MeasuresVirtual reality Immersion and Presence in Physiological Measures
Virtual reality Immersion and Presence in Physiological Measures
 
6590 Research Paper Review: MAC Protocol for Multi-Hop Multicast in Adhoc Net...
6590 Research Paper Review: MAC Protocol for Multi-Hop Multicast in Adhoc Net...6590 Research Paper Review: MAC Protocol for Multi-Hop Multicast in Adhoc Net...
6590 Research Paper Review: MAC Protocol for Multi-Hop Multicast in Adhoc Net...
 

Recently uploaded

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 

Recently uploaded (20)

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 

Distributed Computing Set 3 - Topics of non-Byzantine Consensus

  • 1. SLIDES BY OSAMA ASKOURA EECS 6117 Distributed Computing Set3
  • 3. Slide 2 Imagine a Byzantine agreement problem where processes cannot be malicious (lie or cheat or behave inconsistently) Instead, processes can only behave consistently or die (fail.) This is what we define as a consensus agreement with halting failures Consensus in Model Synchronous Non Anonymous Processes Message-Passing system
  • 4. Slide 2 Consensus algorithm 1: • Pref : v (your input) • Round 1: send your input to all • Round 2: for i =1 to f+1 • Keep sending input to all • Pref =max value received in round • Output pref This means that we can tolerate any number of failures (unlike Byzantine), but we need f+1 rounds! Model Synchronous Non Anonymous Processes Message-Passing system
  • 5. Slide 2 CLAIM: We cannot solve consensus in less than f+1 rounds PROOF (Contradiction): Suppose, exists algorithm that uses < f+ 1 rounds Ifα1 and α2 are 2 executions of the algorithm, α1 ~ α2 means some correct processes get same sequence of messages in both executions Ifα1 ~ α2 then some processes will output same result in both executions α1 ~~α2 if α1 ~ β1 ~ β2 ~ βn ~α2 Ifα1 ~~ α2 then they have same output. Model Synchronous Non Anonymous Processes Message-Passing system
  • 6. Proof (continued): Let α1 be failure-free execution where p1..pi have input 0 and pi+1….. Pn have input 1 Inputs P1 P2 P3 P4 …. Pn α0 1 1 1 1 ….. 1 Outputs 1 α1 0 1 1 1 ….. 1 α2 0 0 1 1 ….. 1 α3 0 0 0 1 ….. 1 α4 0 0 0 0 ….. 1 αn 0 0 0 0 ….. 0 Outputs 0
  • 7. Slide 2 PROOF (continued): To contradict, prove: α0 (no failure) ~β1 ~ α1  no failure We know that α0 outputs 0 and αn outputs 1. We will show that for each I αi ~~ αi+1 up to αn, so proc will Output same result in α0 and αn;but we know they don’t! (Contradiction) Model Synchronous Non Anonymous Processes Message-Passing system Proc 1 fails immediately
  • 8. Slide 2 PROOF (continued): Lemma: Suppose ψ is an execution with ≤ 1failure per round (failure-sparse) And is same as execution γ up to end of first r rounds and ψ has No failures in round r+1 or later. ( 0 ≤r≤f ) Then ψ ~~ γ Model Synchronous Non Anonymous Processes Message-Passing system
  • 9. Slide 2 PROOF (continued): Proof of Lemma (By reverse induction on r): Base step: r = f Then ψ &γ are identical in first f rounds, Since the algorithm uses f rounds (ψ ~~γ) Inductive step Assume claim is true for r+1; Prove claim for r If γhas no failures in round r+1, then (ψ ~~γ) by inductive hypothesis We use fact that r ≥ f+1 when we kill q. Model Synchronous Non Anonymous Processes Message-Passing system
  • 11. Slide 2 Byzantine agreement is solvable iff n > 3f and connectivity > 2f in an arbitrary graph Halting failures (Consensus) is solvable iff connectivity > f in an arbitrary graph and must take f + 1 rounds
  • 13. Slide 2 In Asynchronous systems, 1 halting failure makes the problem of agreement insolvable. This is remains true even if you solve the Halting Problem. Impossibility for halting failures implies impossibility for Byzantine failures as well in asynchronous systems