Separate count-based quorum from probabilistic stake-weighted selection
Scientific architecture · Consensus mechanisms and Byzantine disagreement
Scientific concept map: Candidate proposal — Value; Validators — Votes or stake weights; Network condition — Failure or partition; Quorum rule — Agreement threshold; Outcome — Commit or wait.
Scientific foundations and analytical reasoning
A Byzantine quorum model with n≥3f+1 uses 2f+1 matching votes in the simplified n=3f+1 case. Stake weighting changes selection probabilities, not necessarily finality.
Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.
BC-M08 · Academic orientation
Scope and objectives
Scope of the experiment
Compare observer decisions with conflicting validator messages and inspect a 3-of-4 quorum. Explore a simplified count versus stake-weighted voting rule.
The focus of this experiment is to distinguish consensus, Byzantine behavior and finality assumptions. Students then trace decisions under a specified participant and fault model, and compare safety and liveness using the stated model. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.
Learning objectives
Distinguish consensus, Byzantine behavior and finality assumptions.
Trace decisions under a specified participant and fault model.
Compare safety and liveness using the stated model.
Identify the configured inputs (Consensus abstraction; Participants; Faulty/offline participants; Honest votes for conflicting value B; Participant 0 resource weight) and record the corresponding observed outputs with units where applicable.
Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.
Expected learning outcomes
On completion, students can distinguish consensus, Byzantine behavior and finality assumptions, trace decisions under a specified participant and fault model, and compare safety and liveness using the stated model.
Required deliverables
Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing compare safety and liveness using the stated model. Separate predicted values from observations.
Prerequisite knowledge and related learning
Review the foundational terminology in Concepts and confirm readiness using the existing setup instructions. After completion, continue to Smart contracts, lifecycle and gas.
Environment and experimental methodology
The listed browser model and experiment-specific local Python, Solidity or EVM workflow, where provided. Do not treat a model as a deployed ledger.
Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.
Scientific theory · Consensus under fault assumptions
Consensus separates agreement, validity and termination under an explicit network and fault model. In a simplified Byzantine setting with n=3f+1, a quorum of 2f+1 has intersection sufficient to include an honest participant. Proof-of-stake selection weights candidates by stake in the model, but selection alone is not a finality protocol.
Worked example and engineering interpretation
For four validators tolerating one Byzantine fault, three matching eligible votes form the teaching quorum. Stakes 10,20,70 give respective selection probabilities 10%,20%,70% in a simple proportional model. Compare observed frequencies over repeated trials and identify assumptions.
Engineering principles · additional worked teaching example
Classical PBFT safety assumes n≥3f+1 and a quorum of 2f+1 among 3f+1 replicas. For n=4,f=1, quorum 3; any two such quorums intersect in at least 2 replicas, at least one honest.
From theory to experiment
Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.
Worked engineering reasoning and boundary conditions
Engineering reference configuration: Consensus abstraction = PBFT; Participants = 7; Faulty/offline participants = 2; Honest votes for conflicting value B = 0; Participant 0 resource weight = 30; Leader-selection rounds = 100; Random seed = 42. In the classroom model, Quorum = 5; Fault bound = 2; Fault bound met = Yes; Decision = A; Votes A = 5; Votes B = 0. A quorum is only a decision in this simplified round; guarantees depend on the protocol and fault assumptions. PBFT quorum teaching abstraction with faulty participants silent; resource-weighted and timer/authority selection abstractions, not implementations of full named protocols.
Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.
Concept animation · independent state notebook
Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.
Step 1 of 7 · Calculated state 1
Calculated state 1
Validator
V0
Vote
A
Status
Honest
Calculated state 2
Validator
V1
Vote
A
Status
Honest
Calculated state 3
Validator
V2
Vote
A
Status
Honest
Calculated state 4
Validator
V3
Vote
A
Status
Honest
Calculated state 5
Validator
V4
Vote
A
Status
Honest
Calculated state 6
Validator
V5
Vote
offline
Status
Faulty/offline
Calculated state 7
Validator
V6
Vote
offline
Status
Faulty/offline
Teaching example only; inspect live calculations or real practical evidence separately.
How to investigate Consensus algorithms and Byzantine disagreement
Compare observer decisions with conflicting validator messages and inspect a 3-of-4 quorum. Explore a simplified count versus stake-weighted voting rule.
Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.
Experiment-specific guided practice
Objective: Compare observer decisions with conflicting validator messages and inspect a 3-of-4 quorum. Explore a simplified count versus stake-weighted voting rule.
For PBFT use seven participants, two faulty/offline, zero honest split. Calculate f=floor((n−1)/3)=2 and quorum 5; inspect five honest votes.
Set faults to three; check fault bound and available votes. Restore two and split two honest votes to B. Neither proposal should reach quorum in this fixture.
Switch to PoW and vary resource share and rounds; inspect seeded win frequencies. For PoS, PoB and PoC the resource denotes stake, burned resource or capacity, not hashrate.
Select PoA to compare deterministic authorized rotation, and PoET to compare equal independently sampled trusted timers. Explain their different trust assumptions.
Reference check: Observer decisions reflect the actual received votes and threshold. Equivocation is visible, and lack of quorum produces no decision.
Model boundary: No network authentication or multi-round BFT; count requires 3/4, weighted mode >2/3 of fixed total stake.
Independent task and submission evidence
2. Set faults to three; check fault bound and available votes. Restore two and split two honest votes to B. Neither proposal should reach quorum in this fixture. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.
Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.
Trial
Changed setting
Fixed settings
Predicted result
Actual observation / units
Evidence / uncertainty
A: baseline
Reference
Record
Predict
Record
Record
B: one change
Record
Same as A
Predict
Record
Record
A: repeat
Restore
Same as A
Predict
Record
Record
Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.
Compare observer decisions with conflicting validator messages and inspect a 3-of-4 quorum. Explore a simplified count versus stake-weighted voting rule.
Learning goals
Explain the mechanism using the actual intermediate states in this experiment.
Predict and verify the reference and modified conditions described below.
Interpret the acceptance criteria and identify the limits of the model.
Module flashcards · 12 questions
Browse all 12 questions and explanationsWhat is equivocation?
Sending conflicting messages to different recipients.
What is a quorum?
A threshold of agreement required by a specified protocol.
Does one-round voting implement BFT?
No. Real protocols require additional message, authentication and fault assumptions.
What changes in stake weighting?
Votes contribute their assigned weights rather than equal counts.
What does proof of work weight?
Computational effort satisfying the protocol target.
What does proof of stake weight?
Protocol-defined stake and validator rules.
What is proof of authority?
A consensus family that restricts validator participation to recognized authorities.
Why compare observer-local results?
An equivocating participant can make different observers see different messages.
Why can two observers see different votes from validator 4?
An equivocating validator can send conflicting votes to different observers.
What happens if the received votes do not meet the threshold?
No decision is produced.
Why repeat the trial with validator 4 offline?
To isolate the effect of missing votes rather than contradictory votes.
Why can the stake rule change an outcome relative to count voting?
Votes contribute different weights instead of one unit per validator.
Loading experiment-specific apparatus…Previous model / additional reference tools
Loading computational workbench…
Independent theoretical exercises
Before the simulation or practical, solve both experiment-specific tasks. List the given inputs, show the intermediate calculation or state trace, identify the expected observation, and state a limitation. Show formulas and intermediate calculations where relevant, or draw the requested state/sequence diagram. These are independent classroom fixtures; where they differ from the reference configuration below, do not treat them as measured values. Compare your predictions with the corresponding experiment afterwards.
01 · Predict and derive using the given inputs
For seven participants and two faulty, compute quorum and evaluate five matching honest votes versus four matching votes.
Engineering method — Classical PBFT safety assumes n≥3f+1 and a quorum of 2f+1 among 3f+1 replicas. For n=4,f=1, quorum 3; any two such quorums intersect in at least 2 replicas, at least one honest. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
02 · Compare or justify using evidence
For weights 30,20,10,10,10,10,10, calculate selection probabilities and expected selections over 100 trials; explain sampling variation.
Engineering method — Classical PBFT safety assumes n≥3f+1 and a quorum of 2f+1 among 3f+1 replicas. For n=4,f=1, quorum 3; any two such quorums intersect in at least 2 replicas, at least one honest. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
03 · Quorum calculation
Quorum calculation · Independent work
For n=10 under n=3f+1, find f, quorum and minimum intersection. Can three offline nodes alone prevent a seven-vote quorum if all other nodes agree?
Quorum calculation — Classical PBFT safety assumes n≥3f+1 and a quorum of 2f+1 among 3f+1 replicas. For n=4,f=1, quorum 3; any two such quorums intersect in at least 2 replicas, at least one honest. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
Work is saved locally when browser storage is available. Export it for submission; no remote upload or automatic grade is assigned.
Expanded independent theoretical exercise bank
Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.
Intermediate · Explain a changed-input result
Independent theoretical exercise · BC-M08-01
Use the reference configuration (Consensus abstraction = PBFT; Participants = 7; Faulty/offline participants = 2; Honest votes for conflicting value B = 0; Participant 0 resource weight = 30; Leader-selection rounds = 100; Random seed = 42), but change Participants = 9. The model reports Quorum = 7. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.
Intermediate · Quantitative comparison
Independent theoretical exercise · BC-M08-02
Two model observations of Quorum are 5 (reference) and 7 (changed condition). Compute signed change and, when the reference is nonzero, percentage change. Explain why units matter.
Intermediate · Interpret a technical trace
Independent theoretical exercise · BC-M08-03
For Faulty/offline participants = 4, the model supplies this excerpt from Validator votes:
Validator · Vote · Status
V0 · A · Honest
V1 · A · Honest
V2 · A · Honest
V3 · offline · Faulty/offline
V4 · offline · Faulty/offline
Count rows whose Vote value is exactly “A”, and identify the displayed row numbers. Explain what the count describes.
Advanced · Reverse reasoning
Independent theoretical exercise · BC-M08-04
An observation is Fault bound met = No. Candidate A uses Consensus abstraction = PBFT; Participants = 7; Faulty/offline participants = 2; Honest votes for conflicting value B = 0; Participant 0 resource weight = 30; Leader-selection rounds = 100; Random seed = 42. Candidate B changes the listed settings (Faulty/offline participants = 4) and keeps the remaining settings fixed. Which is consistent with the observation? If both can explain it, say what additional evidence is required.
Advanced · Diagnose a reported mismatch
Independent theoretical exercise · BC-M08-05
A student configures Faulty/offline participants = 3 while preserving all other reference settings, but copies the reference report of Fault bound met = Yes. Evaluate whether the report is justified. Identify the first configuration/output check to perform.
Challenging · Design a controlled verification
Independent theoretical exercise · BC-M08-06
Design a controlled comparison for Consensus algorithms and Byzantine disagreement using reference Consensus abstraction = PBFT; Participants = 7; Faulty/offline participants = 2; Honest votes for conflicting value B = 0; Participant 0 resource weight = 30; Leader-selection rounds = 100; Random seed = 42 and test Participants = 9. Specify the changed setting(s), measured metric Quorum, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.
Step-by-step experimental procedure
Compare fault tolerance and leader selection without conflating distinct consensus guarantees.
1 · Reference workbench configuration
Use the named reference workbench and its reference inputs. Additional live instruments may have different controls; use the matching instrument. Record virtual and practical results separately.
Consensus abstractionPBFT
Participants7
Faulty/offline participants2
Honest votes for conflicting value B0
Participant 0 resource weight30
Leader-selection rounds100
Random seed42
2 · Perform the investigation in order
For PBFT use seven participants, two faulty/offline, zero honest split. Calculate f=floor((n−1)/3)=2 and quorum 5; inspect five honest votes.
Set faults to three; check fault bound and available votes. Restore two and split two honest votes to B. Neither proposal should reach quorum in this fixture.
Switch to PoW and vary resource share and rounds; inspect seeded win frequencies. For PoS, PoB and PoC the resource denotes stake, burned resource or capacity, not hashrate.
Select PoA to compare deterministic authorized rotation, and PoET to compare equal independently sampled trusted timers. Explain their different trust assumptions.
Repeat the same seed and compare results; change seed for another campaign. Explain why expected share and observed fraction differ.
Compare Byzantine safety, reward/selection, latency and energy considerations qualitatively; do not infer implementation performance from this model.
3 · Compare controlled trials
Trial
Independent change
Expected check
Observation
Seven, two faults
Use reference inputs above
Quorum: 5; Decision: A
Record actual result
Three faults
Faulty/offline participants = 3
Fault bound met: No; Decision: No decision
Record actual result
Honest split
Honest votes for conflicting value B = 2
Decision: No decision
Record actual result
PoS selection
Consensus abstraction = PoS
Total selections: 100
Record actual result
PoA rotation
Consensus abstraction = PoA
Total selections: 100
Record actual result
4 · Analyze and report
What happens when the fault assumption is violated? Why does leader selection alone not provide finality?
Required evidence: Vote matrix and selection histograms with protocol-specific interpretation.
Model boundary: PBFT quorum teaching abstraction with faulty participants silent; resource-weighted and timer/authority selection abstractions, not implementations of full named protocols.
Controlled investigation · reproducible evidence
Method. Use the existing reference workbench configuration and the named controlled changes below. A controlled variable stays fixed while the independent variable is intentionally changed; the dependent variable is the resulting observed output. First predict each trial from the Concepts page. Run the baseline, then change only the specified setting and record the outcome. For deterministic traces one execution per case and a repeated verification are sufficient; for timing or stochastic measurements repeat at least five times, recording each run, median and range. Reset to the reference state between independent comparisons.
Trial
Independent change
Dependent observation
Seven, two faults
Use reference inputs above
Record actual outcome and units
Three faults
Faulty/offline participants = 3
Record actual outcome and units
Honest split
Honest votes for conflicting value B = 2
Record actual outcome and units
PoS selection
Consensus abstraction = PoS
Record actual outcome and units
Evidence: attach the completed comparison table, one trace or screenshot per condition, and actual practical terminal/hardware evidence where applicable. Explain any prediction mismatch and distinguish modeled behavior from measured results.
Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.
Execution scope: No network authentication or multi-round BFT; count requires 3/4, weighted mode >2/3 of fixed total stake. Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.
01Instructions · Markdown
# BC-M08 · Consensus algorithms and Byzantine disagreement
**PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh**
## 1. Scientific objective
Compare fault tolerance and leader selection without conflating distinct consensus guarantees.
Complete the analytical worksheet in the portal first. Record your predictions before running this notebook. This notebook is a bounded local computational investigation; use the portal’s separate WSL, hardware or Remix procedure for real interfaces.
02Instructions · Markdown
## Experiment-specific preparation
Compare observer decisions with conflicting validator messages and inspect a 3-of-4 quorum. Explore a simplified count versus stake-weighted voting rule.
**Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):**
1. For PBFT use seven participants, two faulty/offline, zero honest split. Calculate f=floor((n−1)/3)=2 and quorum 5; inspect five honest votes.
2. Set faults to three; check fault bound and available votes. Restore two and split two honest votes to B. Neither proposal should reach quorum in this fixture.
3. Switch to PoW and vary resource share and rounds; inspect seeded win frequencies. For PoS, PoB and PoC the resource denotes stake, burned resource or capacity, not hashrate.
4. Select PoA to compare deterministic authorized rotation, and PoET to compare equal independently sampled trusted timers. Explain their different trust assumptions.
5. Repeat the same seed and compare results; change seed for another campaign. Explain why expected share and observed fraction differ.
**Evidence:** Observer decisions reflect the actual received votes and threshold. Equivocation is visible, and lack of quorum produces no decision.
**Boundary:** No network authentication or multi-round BFT; count requires 3/4, weighted mode >2/3 of fixed total stake.
03Instructions · Markdown
## 2. Reference configuration and investigation
1. For PBFT use seven participants, two faulty/offline, zero honest split. Calculate f=floor((n−1)/3)=2 and quorum 5; inspect five honest votes.
2. Set faults to three; check fault bound and available votes. Restore two and split two honest votes to B. Neither proposal should reach quorum in this fixture.
3. Switch to PoW and vary resource share and rounds; inspect seeded win frequencies. For PoS, PoB and PoC the resource denotes stake, burned resource or capacity, not hashrate.
4. Select PoA to compare deterministic authorized rotation, and PoET to compare equal independently sampled trusted timers. Explain their different trust assumptions.
5. Repeat the same seed and compare results; change seed for another campaign. Explain why expected share and observed fraction differ.
6. Compare Byzantine safety, reward/selection, latency and energy considerations qualitatively; do not infer implementation performance from this model.
Run cells in order; do not substitute model results for physical measurements.
04Instructions · Markdown
## 3. Compute a PBFT teaching fault bound and quorum.
05Python · executable cell
PYTHON · Code cell
# =====================================================================
# BC-M08 | Code cell 01 | Consensus algorithms and Byzantine disagreement
# Purpose: 3. Compute a PBFT teaching fault bound and quorum.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Set n for the next computation or reference condition.
n=7; f=(n-1)//3; quorum=n-f
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert (f,quorum)==(2,5)
# Repeat the same operation for each configured input so observations are comparable.
for faulty in (2,3):print(faulty,n-faulty>=quorum)
# =====================================================================
# BC-M08 | Code cell 02 | Consensus algorithms and Byzantine disagreement
# Purpose: 4. Compare deterministic resource-weighted selection counts.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
import random,collections
# Set rng for the next computation or reference condition.
rng=random.Random(42)
# Set counts for the next computation or reference condition.
counts=collections.Counter(rng.choices(["A","B"],weights=[1,3],k=1000))
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert sum(counts.values())==1000
print(counts)
## Experimental analysis and submission
1. Record the reference input, predicted output and actual result.
2. Modify one independent variable and run the relevant cells again.
3. Explain the result using the theory and identify model limitations.
4. Save the notebook with outputs and retain the separate theoretical worksheet.
**Your derivation and conclusion:**
(Complete independently.)
09Instructions · Markdown
## Guided reasoning and evidence
A controlled comparison changes one independent input while keeping the other relevant inputs fixed; the dependent variable is the recorded output. Use this lab’s reference condition above.
**Independent task:** 2. Set faults to three; check fault bound and available votes. Restore two and split two honest votes to B. Neither proposal should reach quorum in this fixture. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.
| Trial | Input/configuration | Prediction | Observation | Evidence / limitation |
|---|---|---|---|---|
| A | Reference | | | |
| B | Changed input | | | |
| A repeat | Reference | | | |
A conclusion is supported only when it cites the recorded values or observed states and explains them with the experiment theory.
Formative assessment
Explain the following without looking at the simulation output, then reveal the reference response.
What is equivocation?
Sending conflicting messages to different recipients.
What is a quorum?
A threshold of agreement required by a specified protocol.
Does one-round voting implement BFT?
No. Real protocols require additional message, authentication and fault assumptions.
What changes in stake weighting?
Votes contribute their assigned weights rather than equal counts.
Applied task
Set validator 3 to B and validator 4 to equivocate; compare what observers receive.
Submit your reference and modified observations with a justification.
The original tutor and adaptive examination retain their existing 102-lab catalogue. Use the module-specific study questions above and copy this contextual prompt into your chosen AI assistant if needed.
Explain the engineering mechanism in BC-M08 · Consensus algorithms and Byzantine disagreement. My task: Compare observer decisions with conflicting validator messages and inspect a 3-of-4 quorum. Explore a simplified count versus stake-weighted voting rule.. Acceptance: Observer decisions reflect the actual received votes and threshold. Equivocation is visible, and lack of quorum produces no decision.. Model boundary: No network authentication or multi-round BFT; count requires 3/4, weighted mode >2/3 of fixed total stake.. Ask me for my actual observations and distinguish model predictions from real measurements.
Shared research workbenches · network designer & advanced studiesConcurrent-device simulation & Monte Carlo research