# US 2021/0334177 A1 · Flexible byzantine fault tolerance

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0334177 A1
- Document ID: US20210334177A1
- Status: Published application
- Kind: A1
- Application number: 17/107,630
- Filed: 2020-11-30
- Published: 2021-10-28
- Earliest claimed: 2020-04-22
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Ittai ABRAHAM; Dahlia MALKHI; Kartik NAYAK; Ling REN
- Web page: https://patentgrep.com/patent/US20210334177A1

## CPC

- G06F 11/187: {Voting techniques}
- G06F 11/1425: {by reconfiguration of node membership}
- G06F 11/182: {based on mutual exchange of the output between redundant processing components}
- G06F 11/2041: {with more than one idle spare processing component}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and system for performing a flexible Byzantine fault tolerant (BFT) protocol. The method includes sending, from a client device, a proposed value to a plurality of replica devices and receiving, from at least one of the plurality of replica devices, a safe vote on the proposed value. The replica device sends the safe vote, based on a first quorum being reached, to the client device and each of the other replica devices of the plurality of replica devices. The method further includes determining that a number of received safe votes for the proposed value meets or exceeds a second quorum threshold, selecting the proposed value based on the determination, and setting a period of time within which to receive additional votes. The method further includes, based on the period of time elapsing without receiving the additional votes, committing the selected value for the single view.

## Claims

### Claim 1

A method for performing a flexible byzantine fault tolerant (BFT) protocol for a consensus, the method comprising:
sending, from a client device, a proposed value to a plurality of replica devices;
receiving, from at least one of the plurality of replica devices, a safe vote on the proposed value, wherein the at least one of the plurality of replica devices determines to send the safe vote based on a first quorum being reached and the safe vote is sent to the client device and each of the other replica devices of the plurality of replica devices;
determining that a number of received safe votes, received from the at least one of the replica devices, for the proposed value meets or exceeds a second quorum threshold;
selecting the proposed value based on the determination;
setting a period of time within which to receive additional votes from at least one of the plurality of replica devices, wherein the period of time is a network delay bound for a single view of the BFT protocol; and
based on the period of time elapsing without receiving the additional votes, committing the selected value for the single view of the BFT protocol.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
at least one of the plurality of replica devices receives an equivocating vote on the proposed value from the client device and/or at least one of the plurality of replica devices, wherein the equivocating vote comprises the safe vote and at least one not-safe vote, and
the method further comprises receiving a blame message from the at least one of the plurality of replica devices, the blame message transmitted from the at least one of the plurality of replica devices based on receiving the equivocating vote.

### Claim 3 (depends on 2)

The method of claim 2, wherein:
the client device is a leader device, and
the method further comprises:
based on a quantity of the blame messages meeting or exceeding a third quorum threshold, the client device is replaced as the leader device by one of the plurality of replica devices and the set period of time is adjusted, and
transitioning to a second view based on the replacement of the leader device.

### Claim 4 (depends on 3)

The method of claim 3, wherein:
the second quorum threshold is variable, and
the method further comprises setting the second quorum threshold based on varying levels of a safety tolerance and a liveness tolerance of the client device, and
the replacement leader device changes the second quorum threshold in the second view.

### Claim 5 (depends on 1)

The method of claim 1, wherein:
the setting the period of time comprises setting the period at time=2Δ, where Δ represents a maximum network delay, and
the value is committed based on a not-safe vote not being received within the period of time without synchrony among the plurality of replica devices.

### Claim 6 (depends on 1)

The method of claim 1, wherein:
the locking of the proposed value comprises pre-determining the safe vote for the proposed value in a later period of time, and
the method further comprises unlocking the proposed value based on detecting at least one of the plurality of replica devices has not locked the proposed value.

### Claim 7 (depends on 1)

The method of claim 1, wherein:
a first replica device of the plurality of replica devices executes a first protocol with a first delay bound,
a second replica device of the plurality of replica devices executes a second protocol with a second delay bound, and
the first delay bound is different than the second delay bound.

### Claim 8

A system configured to perform a flexible byzantine fault tolerant (BFT) protocol for a consensus, the system comprising:
a client device comprising:
a transceiver configured to transmit and receive signals, and
a processor configured to control the transceiver to send, to a plurality of replica devices, a proposed value,
the plurality of replica devices, each of the plurality of replica devices comprising:
a transceiver configured to receive the proposed value from the client device, and
a processor configured to determine to send a safe vote based on a first quorum threshold being reached,
wherein the transceiver of the plurality of replica device is further configured to transmit the safe vote to the client device and each of the other plurality of replica devices,
wherein the processor of the client device is further configured to:
determine that a number of received safe votes, received from at least one of the replica devices, for the proposed value meets or exceeds a second quorum threshold,
select the proposed value based on the determination,
set a period of time within which to receive additional votes from at least one of the plurality of replica devices, wherein the period of time is a network delay bound for a single view of the BFT protocol, and
based on the period of time elapsing without receiving the additional votes, commit the selected value for the single view of the BFT protocol.

### Claim 9 (depends on 8)

The system of claim 8, wherein:
the transceiver of each of the plurality of replica devices is further configured to receive an equivocating vote on the proposed value from the client device and/or at least one of the plurality of replica devices, wherein the equivocating vote comprises the safe vote and at least one not-safe vote,
based on receiving the equivocating vote, at least one of the plurality of replica devices is further configured to transmit a blame message, the blame message transmitted from the at least one of the plurality of replica devices based on receiving the equivocating vote, and
the transceiver of the client device is configured to receive the blame message.

### Claim 10 (depends on 9)

The system of claim 9, wherein,
the client device is identified as a leader device,
based on a quantity of the blame messages meeting or exceeding a third quorum threshold, the client device is replaced as the leader device by one of the plurality of replica devices and the set period of time is adjusted, and
the view changes based on the replacement of the leader device.

### Claim 11 (depends on 10)

The system of claim 10, wherein:
the second quorum threshold is variable, and
the processor of the client device is further configured to set the second quorum threshold based on a safety tolerance of the client device.

### Claim 12 (depends on 8)

The system of claim 8, wherein the processor of the client device is further configured to:
set the period of time at time=2Δ, where Δ represents a maximum network delay,
only the client device is informed of the value of 2Δ, and
commit the value based on a not-safe vote not being received within the period of time without synchrony among the plurality of replica devices.

### Claim 13 (depends on 8)

The system of claim 8, wherein the processor of the client device is further configured to:
in order to lock the proposed value, pre-determine the safe vote for the proposed value in a later period of time, and
unlock the proposed value based on detecting at least one of the plurality of replica devices has not locked the proposed value.

### Claim 14 (depends on 8)

The system of claim 8, wherein:
a first replica device of the plurality of replica devices executes a first protocol with a first delay bound,
a second replica device of the plurality of replica devices executes a second protocol with a second delay bound,
the first delay bound is different than the second delay bound,
only the client device knows both the first delay bound and the second delay bound, and
the first protocol with the first delay bound is executed simultaneously with the second delay bound.

### Claim 15

A non-transitory computer storage medium storing instructions executable by a first computer system at a first site that, when executed by a processor of the first computer system, cause the processor to:
send, from a client device, a proposed value to a plurality of replica devices;
receive, from at least one of the plurality of replica devices, a safe vote on the proposed value, wherein the at least one of the plurality of replica devices determines to send the safe vote based on a first quorum being reached and the safe vote is sent to the client device and each of the other replica devices of the plurality of replica devices;
determine that a number of received safe votes, received from the at least one of the replica devices, for the proposed value meets or exceeds a second quorum threshold;
select the proposed value based on the determination;
set a period of time within which to receive additional votes from at least one of the plurality of replica devices, wherein the period of time is a network delay bound for a single view of a BFT protocol; and
based on the period of time elapsing without receiving the additional votes, commit the selected value for the single view of the BFT protocol.

### Claim 16 (depends on 15)

The non-transitory computer storage medium of claim 15, wherein:
at least one of the plurality of replica devices receives an equivocating vote on the proposed value from the client device and/or at least one of the plurality of replica devices, wherein the equivocating vote comprises the safe vote and at least one not-safe vote, and
the medium further stores instructions that, when executed by the processor, cause the processor to receive a blame message from the at least one of the plurality of replica devices, the blame message transmitted from the at least one of the plurality of replica devices based on receiving the equivocating vote.

### Claim 17 (depends on 16)

The non-transitory computer storage medium of claim 16, wherein:
the client device is a leader device, and
the medium further stores instructions that, when executed by the processor, cause the processor to:
based on a quantity of the blame messages meeting or exceeding a third quorum threshold, the client device is replaced as the leader device by one of the plurality of replica devices and the set period of time is adjusted, and
change the view based on the replacement of the leader device.

### Claim 18 (depends on 17)

The non-transitory computer storage medium of claim 17, wherein:
the second quorum threshold is variable, and
the medium further stores instructions that, when executed by the processor, cause the processor to set the second quorum threshold based on a safety tolerance of the client device.

### Claim 19 (depends on 15)

The non-transitory computer storage medium of claim 15, wherein:
the setting the period of time comprises setting the period at time=2Δ, where Δ represents a maximum network delay, and
the value is committed based on a not-safe vote not being received within the period of time without synchrony among the plurality of replica devices.

### Claim 20 (depends on 15)

The non-transitory computer storage medium of claim 15, wherein:
the locking of the proposed value comprises pre-determining the safe vote for the proposed value in a later period of time,
the medium further stores instructions that, when executed by the processor, cause the processor to unlock the proposed value based on detecting at least one of the plurality of replica devices has not locked the proposed value,
a first replica device of the plurality of replica devices executes a first protocol with a first delay bound,
a second replica device of the plurality of replica devices executes a second protocol with a second delay bound, and
the first delay bound is different than the second delay bound.
