SlideShare a Scribd company logo
1 of 11
Voting protocols and Dynamic voting protocols
Distributed Operating System
By:
P. Gayathri
I M.Sc CS
Department of computer science
Nadar Saraswathi college of arts and science
Voting Protocols
Voting-based consensus algorithms achieve consensus on
transactions (and sometimes network decisions) by
tallying the number of votes cast by nodes on a distributed
ledger network.
Static voting
This static voting is proposed by Gifford . Replicating data
at many sites is the common approach in the fault tolerance in
distributed systems. Data can still be obtained from the other
copies if the original fails.
Algorithm
 Site i issues a Lock_Request to its local lock manager.
 2. When the lock request is granted, site i sends a
Vote_Request message to all the sites.
 3. When a site j receives a Vote_Request message, it
issues a Lock_Request to its local lock manager. If the
local request is granted, then it returns the version
number of the replica (VNj) and the number of the
votes assigned to the replica (Vj) to site i.
Site i decide whether it has the quorum or not,
based on the replicas received within a timeout
period as follows (P denotes the set of sites which
have replied).
 If the request issued was a read, Vr=∑Vk b.
 If the request issued was a write, Vw=∑Vk c.
 Where the set of sites Q is determined as follows:
i. M=max{VNj : j€P} ii. Q={j€P : VNj=M}
Majority Based Dynamic Voting
This protocol is proposed by Jajodia and Mutchler .
Version number: The version number of a replica at a site i is an
integer that counts the number of successful updates to the
replica at i. VNi is initially set at zero and is incremented b one
at every successful updates to the replica at i. VNi is
Number of Replicas updated:
It is an integer that almost always reflects the number of replicas the
number of replicas participating in the most recent update RUi is initially
equal to the number of replicas.
Distinguished sites list:
The distinguished sites list [5] at a site i is a variable that stores ID’s of
one or more sites. The contents of DSi depend on RUi . When RUi is
even, DSi identifies the replica that is greater than all the other replicas
that participated in the most recent update of the replica at site i. When
RUi is odd, DSi is nil except when RUi =3, in which case DSi lists the
three replicas that participated in the most recent update from which a
majority is needed to allow access to data.
Protocol P1.
Vote increasing. The initiator (node i) 1. Send the new
vote value along with [15,16] Vi and Ni to the rest of the
nodes with which node i can communicate. 2. Wait for a
majority of acknowledgments to arrive (whether or not a
majority of votes has been received by node i is
determined by following protocol P2 [16] ), and then
install the change in the local voting vector, that is update
Vi[i] and increase the version number Ni[i] by 1.
Protocol P2.
Vote Collecting Assume node i is collecting votes to
decide upon an event. In this case, each voting 11 node j
will send i two vectors, the voting vector Vj and a
version vector Nj . Another vector vi is maintained where
vi[j] indicates the votes of j as determined b site i upon
the collection of votes. An entry Ni[j] represents the
version number for the value Vi[j] at site i
Protocol P3.
Vote Decreasing The same as P1, except
that: The initiator sends Vi and Ni along
with its vote decrease. Upon successfully
12 collecting a majority of votes, the
initiator increases Ni[i] by one and sets
the Vi[i] to the new value.
Group Based Voting
This voting mechanism is proposed by Agarwal and Jalote [6]. In the
previous voting algorithm, the site initiating the operation has to communicate
with all the nodes incurring high communication costs. In this algorithm [6] the
sites are divided into intersecting or overlapping groups. In the absence of
failures the site initiating the operation communicates with the sites of its group
thus reducing the communication costs. This algorithm suggests a method for
constructing such logical groups and show that the message overhead of any
operation in a system of N nodes is O (√n), when there are no or few failures in
the system.
THANK YOU

More Related Content

What's hot

Group Communication in distributed Systems.docx
Group Communication in distributed Systems.docxGroup Communication in distributed Systems.docx
Group Communication in distributed Systems.docx
MsecMca
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
Ashish Kumar
 
Fault Tolerance System
Fault Tolerance SystemFault Tolerance System
Fault Tolerance System
Ehsan Ilahi
 
Chapter 5 slides
Chapter 5 slidesChapter 5 slides
Chapter 5 slides
lara_ays
 
Parallel Programming
Parallel ProgrammingParallel Programming
Parallel Programming
Uday Sharma
 
Logical Clocks (Distributed computing)
Logical Clocks (Distributed computing)Logical Clocks (Distributed computing)
Logical Clocks (Distributed computing)
Sri Prasanna
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure calls
Ashish Kumar
 

What's hot (20)

Parallel Processing Concepts
Parallel Processing Concepts Parallel Processing Concepts
Parallel Processing Concepts
 
Group Communication in distributed Systems.docx
Group Communication in distributed Systems.docxGroup Communication in distributed Systems.docx
Group Communication in distributed Systems.docx
 
Data Parallel and Object Oriented Model
Data Parallel and Object Oriented ModelData Parallel and Object Oriented Model
Data Parallel and Object Oriented Model
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
Fault Tolerance System
Fault Tolerance SystemFault Tolerance System
Fault Tolerance System
 
Operating system 31 multiple processor scheduling
Operating system 31 multiple processor schedulingOperating system 31 multiple processor scheduling
Operating system 31 multiple processor scheduling
 
Static and dynamic scoping
Static and dynamic scopingStatic and dynamic scoping
Static and dynamic scoping
 
Chapter 5 slides
Chapter 5 slidesChapter 5 slides
Chapter 5 slides
 
Mc culloch pitts neuron
Mc culloch pitts neuronMc culloch pitts neuron
Mc culloch pitts neuron
 
Physical and Logical Clocks
Physical and Logical ClocksPhysical and Logical Clocks
Physical and Logical Clocks
 
Vector clock algorithm
Vector clock algorithmVector clock algorithm
Vector clock algorithm
 
Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance Distributed Systems Introduction and Importance
Distributed Systems Introduction and Importance
 
6.distributed shared memory
6.distributed shared memory6.distributed shared memory
6.distributed shared memory
 
Parallel Programming
Parallel ProgrammingParallel Programming
Parallel Programming
 
12. dfs
12. dfs12. dfs
12. dfs
 
File replication
File replicationFile replication
File replication
 
MPI message passing interface
MPI message passing interfaceMPI message passing interface
MPI message passing interface
 
Distributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithmDistributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithm
 
Logical Clocks (Distributed computing)
Logical Clocks (Distributed computing)Logical Clocks (Distributed computing)
Logical Clocks (Distributed computing)
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure calls
 

Similar to dos.pptx

Similar to dos.pptx (7)

12EASApril-3412
12EASApril-341212EASApril-3412
12EASApril-3412
 
SELECTING VOTES FOR ENERGY EFFICIENCY IN PROBABILISTIC VOTING-BASED FILTERING...
SELECTING VOTES FOR ENERGY EFFICIENCY IN PROBABILISTIC VOTING-BASED FILTERING...SELECTING VOTES FOR ENERGY EFFICIENCY IN PROBABILISTIC VOTING-BASED FILTERING...
SELECTING VOTES FOR ENERGY EFFICIENCY IN PROBABILISTIC VOTING-BASED FILTERING...
 
E voting
E votingE voting
E voting
 
Blockchain consensus algorithms
Blockchain consensus algorithmsBlockchain consensus algorithms
Blockchain consensus algorithms
 
Data link layer
Data link layerData link layer
Data link layer
 
AnuuTech PoH.pdf
AnuuTech PoH.pdfAnuuTech PoH.pdf
AnuuTech PoH.pdf
 
Public Key Cryptosystem Approach for P2P Botnet Detection and Prevention
Public Key Cryptosystem Approach for P2P Botnet Detection and PreventionPublic Key Cryptosystem Approach for P2P Botnet Detection and Prevention
Public Key Cryptosystem Approach for P2P Botnet Detection and Prevention
 

More from GayathriP95 (12)

cloud computing.pptx
cloud computing.pptxcloud computing.pptx
cloud computing.pptx
 
ML.pptx
ML.pptxML.pptx
ML.pptx
 
women.pptx
women.pptxwomen.pptx
women.pptx
 
IOT.pptx
IOT.pptxIOT.pptx
IOT.pptx
 
dip.pptx
dip.pptxdip.pptx
dip.pptx
 
cloud computing.pptx
cloud computing.pptxcloud computing.pptx
cloud computing.pptx
 
gayathrinosql.pptx
gayathrinosql.pptxgayathrinosql.pptx
gayathrinosql.pptx
 
crypto.pptx
crypto.pptxcrypto.pptx
crypto.pptx
 
python.pptx
python.pptxpython.pptx
python.pptx
 
gayathri.p.pptx
gayathri.p.pptxgayathri.p.pptx
gayathri.p.pptx
 
gayathri23.pptx
gayathri23.pptxgayathri23.pptx
gayathri23.pptx
 
gayathri.pptx
gayathri.pptxgayathri.pptx
gayathri.pptx
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

dos.pptx

  • 1. Voting protocols and Dynamic voting protocols Distributed Operating System By: P. Gayathri I M.Sc CS Department of computer science Nadar Saraswathi college of arts and science
  • 2. Voting Protocols Voting-based consensus algorithms achieve consensus on transactions (and sometimes network decisions) by tallying the number of votes cast by nodes on a distributed ledger network. Static voting This static voting is proposed by Gifford . Replicating data at many sites is the common approach in the fault tolerance in distributed systems. Data can still be obtained from the other copies if the original fails.
  • 3. Algorithm  Site i issues a Lock_Request to its local lock manager.  2. When the lock request is granted, site i sends a Vote_Request message to all the sites.  3. When a site j receives a Vote_Request message, it issues a Lock_Request to its local lock manager. If the local request is granted, then it returns the version number of the replica (VNj) and the number of the votes assigned to the replica (Vj) to site i.
  • 4. Site i decide whether it has the quorum or not, based on the replicas received within a timeout period as follows (P denotes the set of sites which have replied).  If the request issued was a read, Vr=∑Vk b.  If the request issued was a write, Vw=∑Vk c.  Where the set of sites Q is determined as follows: i. M=max{VNj : j€P} ii. Q={j€P : VNj=M}
  • 5. Majority Based Dynamic Voting This protocol is proposed by Jajodia and Mutchler . Version number: The version number of a replica at a site i is an integer that counts the number of successful updates to the replica at i. VNi is initially set at zero and is incremented b one at every successful updates to the replica at i. VNi is
  • 6. Number of Replicas updated: It is an integer that almost always reflects the number of replicas the number of replicas participating in the most recent update RUi is initially equal to the number of replicas. Distinguished sites list: The distinguished sites list [5] at a site i is a variable that stores ID’s of one or more sites. The contents of DSi depend on RUi . When RUi is even, DSi identifies the replica that is greater than all the other replicas that participated in the most recent update of the replica at site i. When RUi is odd, DSi is nil except when RUi =3, in which case DSi lists the three replicas that participated in the most recent update from which a majority is needed to allow access to data.
  • 7. Protocol P1. Vote increasing. The initiator (node i) 1. Send the new vote value along with [15,16] Vi and Ni to the rest of the nodes with which node i can communicate. 2. Wait for a majority of acknowledgments to arrive (whether or not a majority of votes has been received by node i is determined by following protocol P2 [16] ), and then install the change in the local voting vector, that is update Vi[i] and increase the version number Ni[i] by 1.
  • 8. Protocol P2. Vote Collecting Assume node i is collecting votes to decide upon an event. In this case, each voting 11 node j will send i two vectors, the voting vector Vj and a version vector Nj . Another vector vi is maintained where vi[j] indicates the votes of j as determined b site i upon the collection of votes. An entry Ni[j] represents the version number for the value Vi[j] at site i
  • 9. Protocol P3. Vote Decreasing The same as P1, except that: The initiator sends Vi and Ni along with its vote decrease. Upon successfully 12 collecting a majority of votes, the initiator increases Ni[i] by one and sets the Vi[i] to the new value.
  • 10. Group Based Voting This voting mechanism is proposed by Agarwal and Jalote [6]. In the previous voting algorithm, the site initiating the operation has to communicate with all the nodes incurring high communication costs. In this algorithm [6] the sites are divided into intersecting or overlapping groups. In the absence of failures the site initiating the operation communicates with the sites of its group thus reducing the communication costs. This algorithm suggests a method for constructing such logical groups and show that the message overhead of any operation in a system of N nodes is O (√n), when there are no or few failures in the system.