PBTS computes for a proposed value v
the proposal time v.time
, with bounded difference to the actual real-time the proposed value was generated.
The proposal time is read from the clock of the process that proposes a value for the first time, its original proposer.
With PBTS, therefore, we assume that processes have access to synchronized clocks.
The proper definition of what it means can be found in the system model,
but essentially we assume that two correct processes do not simultaneous read from their clocks
time values that differ more than PRECISION
, which is a system parameter.
When a value v
is produced by a process, it also assigns the associated proposal time v.time
.
If the same value v
is then re-proposed in a subsequent round of consensus,
it retains its original time, assigned by its original proposer.
A value v
should re-proposed when it becomes locked by the network, i.e., when it receives 2f + 1 PREVOTES
in a round r
of consensus.
This means that processes with 2f + 1
-equivalent voting power accepted, in round r
, both v
and its associated time v.time
.
Since the originally proposed value and its associated time were considered valid, there is no reason for reassigning v.time
.
In the first version of this specification, proposals were defined as pairs (v, time)
.
In addition, the same value v
could be proposed, in different rounds, but would be associated to distinct times each time it was reproposed.
Since this possibility does not exist in this second specification, the proposal time became part of the proposed value.
With this simplification, several small changes to the arXiv algorithm are no longer required.
Values decided in successive heights of consensus must have increasing times, so:
p
and any two decided heights h
and h'
, if h > h'
then decision_p[h].time > decision_p[h'].time
.For ensuring time monotonicity, it is enough to ensure that a value v
proposed by process p
at height h_p
has v.time > decision_p[h_p-1].time
.
So, if process p
is the proposer of a round of height h_p
and reads from its clock a time now_p <= decision_p[h_p-1]
,
it should postpone the generation of its proposal until now_p > decision_p[h_p-1]
.
Although it should be considered, this scenario is unlikely during regular operation, as from
decision_p[h_p-1].time
and the start of heighth_p
, a complete consensus instance need to terminate.
Notice that monotonicity is not introduced by this proposal, being already ensured by BFTTime
.
In BFTTime
, the Timestamp
field of every Precommit
message of height h_p
sent by a correct process is required to be larger than decision_p[h_p-1].time
, as one of such Timestamp
fields becomes the time assigned to a value proposed at height h_p
.
The time monotonicity of values proposed in heights of consensus is verified by the valid()
predicate, to which every proposed value is submitted.
A value rejected by the valid()
implementation is not accepted by any correct process.
PBTS introduces a new requirement for a process to accept a proposal: the proposal must be timely
.
It is a temporal requirement, associated with the following synchrony (that is, timing)
assumptions regarding the behavior of processes and the network:
PRECISION
;MSGDELAY
.Let now_p
be the time, read from the clock of process p
, at which p
receives the proposed value v
.
The proposal is considered timely
by p
when:
now_p >= v.time - PRECISION
now_p <= v.time + MSGDELAY + PRECISION
The first condition derives from the fact that the generation and sending of v
precedes its reception.
The minimum receiving time now_p
for v
be considered timely
by p
is derived from the extreme scenario when
the clock of p
is PRECISION
behind of the clock of the proposer of v
, and the proposal's transmission delay is 0
(minimum).
The second condition derives from the assumption of an upper bound for the transmission delay of a proposal.
The maximum receiving time now_p
for v
be considered timely
by p
is derived from the extreme scenario when
the clock of p
is PRECISION
ahead of the clock of the proposer of v
, and the proposal's transmission delay is MSGDELAY
(maximum).
The following changes are proposed for the algorithm in the arXiv paper.
StartRound
There are two additions to the propose
round step when executed by the proposer
of a round:
validValue
, which retains its original proposal time.function StartRound(round) {
round_p ← round
step_p ← propose
if proposer(h_p, round_p) = p {
wait until now_p > decision_p[h_p-1].time // time monotonicity
if validValue_p != nil {
proposal ← validValue_p
} else {
proposal ← getValue()
proposal.time ← now_p // proposal time
}
broadcast ⟨PROPOSAL, h_p, round_p, proposal, validRound_p⟩
} else {
schedule OnTimeoutPropose(h_p,round_p) to be executed after timeoutPropose(round_p)
}
}
The rule on line 22 applies to values v
proposed for the first time, i.e., for proposals not backed by 2f + 1 PREVOTE
s for v
in a previous round.
The PROPOSAL
message, in this case, carry -1
in its validRound
field.
The new rule for issuing a PREVOTE
for a proposed value v
requires the value to be timely
.
As the timely
predicate is evaluated in the moment that the value is received,
as part of a PROPOSAL
message, we require the PROPOSAL
message to be timely
.
upon timely(⟨PROPOSAL, h_p, round_p, v, −1⟩) from proposer(h_p, round_p) while step_p = propose do {
if valid(v) ∧ (lockedRound_p = −1 ∨ lockedValue_p = v) {
broadcast ⟨PREVOTE, h_p, round_p, id(v)⟩
}
else {
broadcast ⟨PREVOTE, h_p, round_p, nil⟩
}
step_p ← prevote
}
The rule on line 28 applies to values v
proposed again in the current round because its proposer received 2f + 1 PREVOTE
s for v
in a previous round vr
.
This means that there was a round r <= vr
in which 2f + 1
processes accepted v
for the first time, and so sent PREVOTE
s for v
.
Which, in turn, means that these processes executed the line 22 of the algorithm, and therefore judged v
as a timely
proposal.
In other words, we don't need to verify whether v
is a timely proposal because at least f + 1
processes judged v
as timely
in a previous round,
and because, since v
was re-proposed as a validValue
(line 16), v.time
has not being updated from its original proposal.
All other rules remains unchanged.
Back to main document.