CC ResearchBack to OCC Research
RESEARCHChainflow · Sep 2024

Sui Mysticeti Upgrade Demystified

Breaking down the Mysticeti consensus upgrade on Sui, including its hybrid transaction processing, uncertified DAG-based consensus, and latency improvements.

By Othman Gbadamassi· OCC Research
Read on Chainflow
SuiConsensusInfrastructure

Introduction

The Mysticeti protocol introduced in July of this year is aimed at enhancing the efficiency and performance of Sui Network. Named after the Mysticeti suborder of whales, it symbolizes the power and capability the protocol brings to the chain.

The Sui Mysticeti Upgrade represents a cutting-edge approach to blockchain transaction processing, blending innovative consensus mechanisms with a unique architecture designed to enhance both speed and efficiency. By introducing new protocols and rethinking how transactions are validated and finalized, Sui tackles common performance bottlenecks found in traditional blockchain systems.


Sui's Hybrid Transaction Processing Strategy

Sui employs a hybrid strategy for transaction processing. It features a consensus pathway for transactions requiring the agreement of a majority of validators and a fast path for transactions that can be executed without consensus. Tasks like asset transfers, payments, or NFT minting can be finalized via the fast path before reaching consensus, achieving lower latency.


Fast Path Transactions and Optimistic Finality

In the fast path, Sui utilizes a technique known as optimistic finality. This approach allows transactions to be executed once they have received votes from a sufficient number of validators. Although they can still be reversed later if they are found to be invalid, transactions finalized through the consensus path are guaranteed to be accurate and immutable.


MYSTICETI Consensus Protocols: Enhancing Latency Reduction

Two critical solutions have been introduced:

  1. MYSTICETI-C A consensus protocol based on a threshold logical clock DAG of blocks, which commits each block as soon as it becomes determinable.
  2. MYSTICETI-FPC Adds a fast commit path designed to reduce latency in asset transfers further.

These protocols improve latency compared to previous methods by sidestepping the need for explicit block certification. Additionally, they employ a new commit rule that allows blocks to be finalized immediately upon validation without waiting for other blocks to be certified.


Uncertified DAG-Based Consensus and Latency Implications

The key technological shift from earlier versions of Sui is that Mysticeti utilizes an uncertified DAG-based consensus protocol, in contrast to the certified DAG-based protocol. This change significantly reduces latency from 1900ms to 400ms. The shift removes the delays associated with explicit block certification.


Balancing Latency for Consensus and Owned Object Transactions

This new approach could lead to increased latency for transactions involving owned objects transactions that concern only a single user's assets and do not impact shared resources. These transactions bypass the consensus mechanism and are executed directly. The potential latency increase might stem from the additional overhead introduced by the post-consensus checkpoint mechanism.

Despite the possibility of slightly higher latency for owned object transactions, the overall expectation is that the reduced latency for consensus-based transactions will more than compensate. Given that consensus-based transactions tend to be more complex and time-intensive, even a modest reduction in their latency could greatly enhance the system's overall performance.


Conclusion

Sui's innovative hybrid transaction processing strategy, combining both a consensus pathway and a fast path, offers significant performance improvements for blockchain transactions. By leveraging optimistic finality for simpler workloads and the MYSTICETI protocols for reducing latency in complex operations, Sui enhances both efficiency and scalability.

The shift to an uncertified DAG-based consensus protocol, while introducing slight trade-offs in certain cases, is a pivotal step in lowering latency for transactions requiring consensus. This balanced approach positions Sui as a forward-thinking solution for blockchain platforms seeking to optimize both speed and reliability.


Read on Chainflowoccresearch.org

Governance that remembers. Institutional Memory as a Service.

Have thoughts or feedback on this research?

Othman@occresearch.org