TL;DR
The paper introduces Saber, a novel blockchain paradigm that decouples transaction ordering (consensus) from transaction execution. By utilizing parallel execution groups and asynchronous processing for simple vs. complex transactions, Saber achieves high throughput and eliminates "adversarial livelocks" while requiring significantly smaller node groups than traditional sharding.
What Problem Does This Paper Address?
In traditional blockchains like Ethereum, every node must reach a consensus on the order of transactions and execute them sequentially. This creates a massive bottleneck. When a complex application—like the infamous CryptoKitties game—requires heavy computation (e.g., genetic mixing algorithms), it can clog the entire network, causing simple currency transfers to stall for hours.
Existing solutions like sharding attempt to fix this by dividing nodes into groups. However, sharding often requires extensive coordination between groups, suffers from congestion within groups, and requires very large group sizes (often 600+ nodes) to remain secure. Furthermore, these systems are prone to livelocks, where competing transactions repeatedly abort each other, wasting resources without making progress.
Methods
The authors propose Saber, which shifts the architecture from "execute-then-order" or "order-and-execute" to a more flexible "separate execution from consensus" model.
Key Components:
- Consensus Nodes (CNs): Their primary job is to order transactions and maintain the global state. For simple transactions (like payments), they execute them directly. For complex ones, they merely order them and lock the associated state.
- Execution Nodes (ENs): These nodes are divided into small execution groups. They take the ordered complex transactions, execute them off-chain, and return the results to the CNs.
- State Locking: To prevent livelocks, CNs handle "lock handling" during the consensus round. If a transaction gets the locks it needs, it is guaranteed to execute; if not, it waits for the next round. This prevents the "Alice vs. Bob" race conditions common in other parallel systems.
- Majority Voting: Saber uses a $2f' + 1$ node requirement for execution groups. Because they only need to ensure a result is correct (rather than reaching a full BFT consensus on ordering within the group), they can use much smaller groups—roughly 70 nodes to achieve the same security level that sharding requires 600 nodes for.
The authors demonstrate two implementations:
- Saber for Ethereum: A smart-contract-based approach that adds parallel support to Ethereum without requiring a hard-fork.
- SaberLedger: A standalone, permissionless blockchain that incorporates "state sharding" by storing the ledger in a distributed storage system (like IPFS).
Datasets
The evaluation utilized a simulation framework deployed on 3,467 Amazon EC2 t2.micro instances across 15 regions and 5 continents to simulate real-world network latency. The benchmarks included:
- CryptoKitties Gene Mixing: Used as the primary "complex transaction" benchmark due to its high computational cost.
- Real-world Ethereum Workload: A trace of 50,000 transactions retrieved from the Ethereum blockchain (blocks 5,998,827 to 5,999,326) to test mixed workloads of simple and complex tasks.
- SputnikVM: An implementation of the Ethereum Virtual Machine used to run the tests on each Execution Node.
Key Insights and Ideas
- Asynchrony as a Shield: By processing simple transactions asynchronously, Saber ensures that a "clogged" smart contract doesn't stop basic payments. Simple transactions bypass the execution groups entirely.
- The Power of Small Groups: The realization that execution only requires a "correctness proof" (via majority voting or TEEs) rather than a "total ordering consensus" allows Saber to scale horizontally with much less overhead than sharding.
- Livelock-Free Design: By moving the locking logic to the consensus layer, the authors transform a distributed coordination problem into a local state-management problem for Consensus Nodes, effectively killing the "adversarial livelock" attack vector.
Key Results
- Throughput: With a fast consensus layer, SaberLedger achieved a peak throughput of 8,100 complex transactions per second (TX/s). For comparison, standard Ethereum struggles to exceed 30 TX/s.
- Efficiency vs. Sharding: In a head-to-head comparison with the same number of nodes, Saber reached 4,201 TX/s while traditional sharding protocols reached only ~500 TX/s.
- Latency: Saber processed the 50,000 real-world Ethereum transactions in 7 seconds to 7 minutes (depending on configuration), whereas the actual Ethereum network took 2 hours to process the same batch.
- Scalability: The system showed near-linear scaling in throughput as more execution groups were added, until hitting the bottleneck of the consensus layer's signature verification.
Limitations and Future Work
- Developer Burden: Currently, developers must manually enumerate all state dependencies (locks) when writing contracts. The authors suggest that future work could involve compiler-level assistants to automatically detect these dependencies.
- Denial of Service (DoS): While Saber prevents livelocks, a wealthy attacker could still lock up popular states by paying high transaction fees. The authors note this is an inherent risk in any fee-based smart contract system (including Ethereum) but suggest monetary penalties as the primary deterrent.
- State Sharding Overhead: While SaberLedger supports state sharding via distributed storage, the communication overhead between execution groups and storage remains a point for further optimization.
Summary updated