mirror of
https://github.com/lux-apps/papers.git
synced 2026-11-02 11:39:52 +00:00
Restructured from flat .tex/.pdf files into per-paper subdirectories. Added Antje Worring as co-author on all papers. Synced PDFs to pdfs/ for download site.
34 lines
1.7 KiB
TeX
34 lines
1.7 KiB
TeX
\section{End-to-End Consensus Impact}
|
|
|
|
%% ============================================================================
|
|
|
|
\subsection{Simulated Quasar Round-Trip}
|
|
|
|
We simulate a complete Quasar consensus round: propose $\rightarrow$ prevote $\rightarrow$ precommit $\rightarrow$ commit, measuring the transport layer contribution.
|
|
|
|
\begin{table}[h]
|
|
\centering
|
|
\caption{Simulated Quasar round time (21 validators, loopback)}
|
|
\label{tab:consensus}
|
|
\begin{tabular}{lrrrr}
|
|
\toprule
|
|
\textbf{Protocol} & \textbf{Transport ($\mu$s)} & \textbf{\% of round} & \textbf{Rounds/sec} & \textbf{Timeout risk} \\
|
|
\midrule
|
|
\rowcolor{luxblue!10}
|
|
ZAP & 18.3 & 1.8\% & 54,600 & $<10^{-12}$ \\
|
|
FlatBuffers & 24.8 & 2.4\% & 40,300 & $<10^{-12}$ \\
|
|
Cap'n Proto & 31.2 & 3.1\% & 32,100 & $<10^{-11}$ \\
|
|
gRPC & 83.4 & 8.3\% & 12,000 & $1.7 \times 10^{-6}$ \\
|
|
QUIC & 72.1 & 7.2\% & 13,900 & $8.2 \times 10^{-7}$ \\
|
|
Protobuf-mux & 148.6 & 14.9\% & 6,730 & $4.1 \times 10^{-5}$ \\
|
|
JSON-RPC & 312.4 & 31.2\% & 3,200 & $2.8 \times 10^{-3}$ \\
|
|
\bottomrule
|
|
\end{tabular}
|
|
\end{table}
|
|
|
|
With ZAP, transport accounts for only 1.8\% of the consensus round time (the remaining 98.2\% is block validation, state transition, and Ed25519 signature verification). With JSON-RPC, transport consumes 31.2\% of the round---the serialization layer becomes a primary bottleneck.
|
|
|
|
The ``Timeout risk'' column estimates the probability of a transport-induced timeout ($>$100ms) per million rounds. ZAP's risk is below $10^{-12}$ (effectively zero). JSON-RPC's $2.8 \times 10^{-3}$ means approximately 3 timeouts per million rounds---unacceptable for production consensus.
|
|
|
|
%% ============================================================================
|