Manuscript Offprint

arXiv:2609.31388

Adaptive Switching Between Leader-Based and Leaderless BFT Protocols

Sudip Bhujel, Yue Li, Ning Zhang, Y. Thomas Hou, Wenjing Lou, Yang Xiao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Byzantine fault-tolerant (BFT) protocols are known for providing operational consistency and resilience in distributed systems. However, evolving network conditions, often driven by the network’s inherent dynamism or adversarial influence, make it suboptimal to rely on a static protocol at all times. Existing BFT protocol adaptation solutions switch only among leader-based protocols and coordinate each switch through a separate consensus round, leaving them ineffective at handling severe asynchrony or situations in which an adaptive adversary targets the network’s leader.

We propose BFTIDE, a protocol adaptation architecture that enables a BFT system to intelligently and swiftly switch to a suitable protocol as network conditions shift. BFTIDE integrates a novel protocol switching layer that embeds protocol transition logic into the ongoing BFT operation, enabling safe and low-overhead transitions between partially synchronous leader-based protocols and asynchronous leaderless protocols. It further incorporates an offline-trained reinforcement learning policy that allows nodes to propose protocols at runtime based on observed system metrics. Experimental results show that BFTIDE reduces transaction latency under adverse network conditions compared with static BFT protocols and the state-of-the-art BFT protocol adaptation scheme BFTBrain (NSDI'25), while maintaining comparable throughput. The switching layer adds a modest 10–21% overhead to median latency when idle and requires no separate consensus round per switch.

1 Introduction

Byzantine fault-tolerant (BFT) consensus ensures that non-faulty participants (nodes) agree on a common value despite arbitrarily behaving (Byzantine) participants. BFT state machine replication (BFT-SMR) [1] extends BFT consensus to transaction processing by ensuring all non-faulty nodes agree on each transaction's outcome and execute transactions in the same order [2]. Consequently, BFT-SMR is widely used in database replication [3–5], distributed ledgers, and fault-tolerant computing systems [6–9].

The communication redundancy of BFT-SMR protocols (BFT protocols for short) makes their performance sensitive to network conditions. Past research has shown that no single BFT protocol fits all network scenarios because protocols differ in their design priorities and constraints [10–12]. For instance, PBFT [13] and its variants [14–19] adopt the leader-based, pipelined paradigm along with timeout mechanisms to achieve high throughput during favorable (synchronous) network conditions. However, they suffer from frequent protocol view changes and prolonged latency when the network connectivity fluctuates dramatically, and when an adversary targets the leader, they can degrade to latencies several times those of a leaderless protocol, or stall [20]. In contrast, asynchronous BFT protocols [21–29] are predominantly based on a leaderless design in that all nodes independently accept client requests and drive protocol progress. They make no timing assumptions on message delivery and are not impacted by single-node bottlenecks. However, they rely on expensive cryptographic primitives to guarantee the protocol's eventual termination (i.e., liveness), resulting in significant computation and communication overhead [20], which is undesirable when the network becomes synchronous [30].

Adapting to Evolving Network Conditions. Changing network conditions and adversarial influence make static protocol configurations suboptimal for both latency and throughput [31–33]. Prior work explores two approaches to improving real-time performance.

The dual-path approach combines optimistic and pessimistic paths for network adaptability [20, 30, 34–37]. The optimistic path usually runs a partially synchronous protocol for high performance under favorable conditions. The pessimistic path usually runs an asynchronous BFT protocol to preserve safety and eventual liveness under extreme network conditions. The dual-path approach requires each participant to decide which path to use for client requests and result commitment based on a pre-defined trigger. The trigger, however, requires frequent and careful tuning, which is inefficient and not always optimal. The parallel variants [35, 37, 38] require running two paths simultaneously, which is inefficient if pessimistic conditions occur only rarely.

The second approach leverages multi-protocol switching, in which system nodes proactively switch to a new protocol from a candidate pool to improve performance across a time window amid varying network conditions [33, 39, 40]. In particular, BFTBrain [33] uses reinforcement learning (RL) to select a throughput-maximizing protocol from a portfolio of PBFT-style leader-based protocols based on network interactions. BFTBrain and prior multi-protocol switching systems [33, 39, 40] primarily target synchronous or partially synchronous protocols and lack a clear strategy for pessimistic asynchronous conditions. They also do not address adaptive leader manipulation: leader-based protocols such as HotStuff [19] concentrate progress in the current leader and rely on view changes for leader replacement, so targeted delays or denial-of-service attacks on successive leaders can trigger repeated view changes and harm liveness during asynchronous periods.

Switching between these protocol families requires reconciling their distinct commit structures; for instance, HotStuff commits a chain of blocks, whereas asynchronous protocols rely on agreement on subsets of proposals. Crucially, replicas must agree on both the target protocol and the boundary at which it takes over, preserve the committed prefix, and retain pending requests for re-proposal. Protocol selection must therefore account for the cost of this handoff, while handoff execution remains subject to the incumbent protocol's progress.

Research Question. How can a BFT-SMR system, while its incumbent protocol continues to commit, adapt between protocols with different synchrony assumptions while preserving a common committed log and keeping transition overhead low?

Contributions. We propose BFTIDE, a BFT protocol adaptation architecture for switching between leader-based partially synchronous and leaderless asynchronous protocols under changing network conditions without interrupting continuous operation. As shown in Fig. 1, BFTIDE separates the coordination of a transition from the policy that proposes when and where to switch. It comprises two complementary components:

Embedded protocol switching logic. BFTIDE’s protocol switch layer coordinates the target protocol and transition boundary so that the target continues the incumbent’s committed log. The design embeds switch agreement in the incumbent’s native messaging and consensus flow. Signed votes form a switch certificate for the target. Replicas verify this evidence and reach the agreed boundary before activating the target. Under sustained application traffic, embedding allows switch agreement to share the communication and ordering costs of ordinary SMR operations. Switching progress re-

Figure

Figure 1: Overview of BFTIDE. The policy proposes a protocol, while the switch layer coordinates its activation.

mains subject to the incumbent’s liveness conditions; safety of the protocol transition holds under the Byzantine model plus one delivery condition on the certificate. (see §3.)

Policy-guided protocol proposals. We formulate protocol selection as a Markov Decision Process (MDP) and instantiate the policy with a Deep Q-Network (DQN). Aggregated measurements of transaction latency, throughput, offered load, and peer delays inform protocol proposals, while the reward accounts for performance and switching cost. The system loads an offline-trained model for local inference at each replica. The policy proposes a target, whereas the PS Layer governs activation through certificate verification and the agreed boundary. This separation allows other selection policies to use the same switching mechanism. (see §4.)

Implementation and Validation. We implemented and open-sourced BFTIDE along with network functions that simulate varying adverse network conditions. We deployed our experimental network on CloudLab [41] with up to 31 nodes. Our experiments demonstrate that BFTIDE can reduce latency relative to BFTBrain [33] under leader delay and global delay, while achieving performance comparable to HotStuff under benign conditions. Notably, with a 250 ms injected leader delay in the 31-node system, BFTIDE tracks the better-performing protocol under each network condition. At the highest load (120 KB/s), it achieves a median latency of 3.9 s, compared with 6.3 s for HotStuff and 26.4 s for BFTBrain, while matching HotStuff's latency under benign, jitter, and mild global-delay conditions. Averaged across the four conditions at 120 KB/s, its latency is about 70% lower than BFTBrain's. (see §6.)

References (100)

Couldn't load all references. Reload the page to try again.