Cointime

Download App
iOS & Android

Considering Client Diversity through the lens of Network Performance

From Ethresearch by U. Natale and G. Sofia

AcknowledgementsThis research has been granted by Chorus One. We are grateful to M. Moser 3 for useful discussions and comments.

1 Introduction

There’s a lot that’s been said about client diversity in the Ethereum ecosystem. A diverse set of clients (at the consensus layer, and even at the execution level) is one of the first line of defense strategies in the face of unforeseen events, prioritizing the liveness of the network and allowing for its self-healing properties. A level of decentralization of block production is necessary for this dynamic liveness, which can be appreciated at many levels (geographical, organizational, and during software development). Even when there is a single supermajority client, Ethereum can survive many liveness faults due to the use of different Ethereum clients in the network. Not all the risk scenarios are perfect, but it is one of it’s greatest strengths.

Blockchains are complex coordination systems, and Ethereum is no exception. The underlying rules are defined in a single, open-source specification, freely accessible for anyone to contribute to. This core concept is separate from the various software programs individuals and institutions use to run nodes on the network.

The importance of client diversity

Ethereum’s on chain incentives (and penalties) strongly encourage diversity among client deployments and infrastructure. The more validators rely on a single type of client software, the greater the risk of a single point of failure in case of a critical bug.

We can consider for a moment what would happen in such an event:

  • In the case of a liveness fault, most BFT networks will stall and not make progress when 67% of the network’s nodes are affected, thus there’s no point in having a minority client. In the case of Ethereum, it will allow the minority clients to produce blocks that make it into the chain, even if finalization is stalled for hours or days.
  • In the event of a safety fault, the network behaves quite differently. Such a bug in the supermajority client (67%) can quite quickly lead to erroneous confirmation. Finality of the corrupted chain could then put the entire Ethereum community in a serious dilemma. Many of the affected validators could be slashed by trying to join the correct chain, a catastrophic development that puts many node operators at risk.

If the majority does not exceed that 67% threshold, a bug in a single client cannot be finalized.

The importance of client diversity

Screenshot 2024-03-04 at 2.57.19 AM1914×1090 293 KBFig. 1: A somewhat naive but useful look at the current status of client diversity. Source: https://clientdiversity.org/ 4

True client diversity is not as simple as avoiding the majority client. Alongside issues in fingerprinting and a reliance on self-reporting, the real status of client diversity for CL and EL clients is difficult to pin point with exactitude. The previous chart proposes a view of network diversity that highlights a concerning prevalence of the Geth execution client, and a less than ideal distribution in the consensus layer.

But what if a majority client consistently proposes the best blocks for the network, due to a more efficient, faster or more sophisticated implementation?

A final, sometimes overlooked, point about having different clients is that it fosters innovation. Outside of the clear rules for confirmation, different teams can propose and implement changes to the Ethereum protocol. Today we want to focus on the performance effects of client diversity, by sharing an analysis on two of it’s most widely used CL clients: Lighthouse and Teku. The goal is to contribute to a better understanding and stability of the entire Ethereum ecosystem, and to consider potential improvements that can mitigate second-level effects for validator behavior and diverse participation.

2 Are CL clients made equal?

The role of CL clients in the Ethereum ecosystem is critical to maintaining the integrity and efficiency of the blockchain. Among their responsibilities, we find the production of attestations and management of networking. These functions directly influence the overall effectiveness of validators, which in turn affects the robustness and reliability of the network. In this section, we aim to scrutinize the performance of Lighthouse and Teku, with respect to these core duties.

We collected data from 2024-01-11 to 2024-02-27 using the Rated Network API, focusing on the aggregate performance of Chorus One’s validators during this period.

Rolling Median Validator Effectiveness1800×600 87.9 KBFig. 2: Daily rolling median of avg. validator effectiveness for Chorus One validators from 2024-01-11 to 2024-02-27. Data from Rated Network 1.

Figure 2 shows the rolling median of daily validator effectiveness distribution for these two clients. Despite the overall behavior being clearly correlated — primarily due to a combination of our infrastructure and network performance — a noticeable divergence exists in the performance of validators associated with these clients. Validators utilizing the Teku client consistently outperform those utilizing Lighthouse, as evidenced by both 7-days (left panel) and 30-days (right panel) rolling medians of effectiveness.

When accounting for the daily distribution, we observed no significant anomalies that could be attributed to transient network effects, which might otherwise bias the outcome of the study. This daily granularity allow us to confirm that the observed performance disparity is consistent, and not a product of temporal network fluctuations. Preliminary findings suggest that the Teku client facilitates a higher level of validator effectiveness compared to Lighthouse.

Rolling Median Attestations and Correctness and inc. delay1800×1200 256 KB

Fig. 3: Daily rolling median of avg. total attestations (upper panels), avg. correctness (middle panels), and avg. inclusion delay (lower panel) for Chorus One validators from 2024-01-11 to 2024-02-27. Data from Rated Network 1.

Figure 3 shows the relevant metrics that contribute to shape the final validator effectiveness. To be precise, we show the rolling median of average total attestations (upper panels), average correctness (middle panels), and average inclusion delay (lower panel) for Chorus One validators from 2024-01-11 to 2024-02-27. Analyzing the different metrics separately suggests that the primary disparities between the two CL clients lie in the number of attestations and their correctness, with the inclusion delay differences being less significant in comparison. However, it is worth noting that, despite the small difference in the median of inclusion delay, Teku still seems to perform better. The consistent disparity translates in a non-negligible effect on the final validator effectiveness.

On a side note, also the daily rolling median of average uptime indicates a better network response for Teku validators, cfr. Fig. 4.

Rolling Median Avg. Uptime1800×600 68.9 KB

Fig. 4: Daily rolling median of avg. uptime for Chorus One validators from 2024-01-11 to 2024-02-27. Data from Rated Network 1.

We then compared the overall distributions for each validator in the sample, removing the dependency on the specific day. The outcome of this is shown in Fig. 5.

client_dependency_validator_pdfs1800×1000 120 KB

Fig. 5: Probability density function of validator effectiveness, avg. inclusion delay, and avg. correctness for Chorus One Lighthouse and Teku validators from 2024-01-11 to 2024-02-27.

The metric that differs most significantly is the correctness of attestations. The distributions of average correctness are the only ones that did not pass the Kolmogorov-Smirnov test, yielding a p-value of 1.16e-8. The hypothesis that the distributions of average inclusion delay are drawn from the same distribution cannot be excluded, given a p-value of 0.83. We observe a maximum inclusion of 1.08 for Teku client and 1.23 for Lighthouse, while median, 25% and 95% quantiles are consistent. Nonetheless, as noted in the daily distribution, validators running the Teku client tend to be more frequently in the region with lower inclusion delay on a daily basis. This may indicate some dependency on network behavior and warrants further investigation. A similar behavior is observed for total unique attestations.

When comparing the global validator effectiveness distributions, we find a p-value of 0.08. Despite the absence of a strong rejection, we still detect an overall better performance for the Teku validators, with a median of 98.39% and a 25%-quantile of 97.25% (compared with 98.25% and 96.97%, respectively, for Lighthouse validators).

2.1 Effects of CL on MEV-Boost

Since the formal introduction of timing games 2, we have seen an ever-increasing number of entities start playing such games. While research has shed light on the potential network implications of the timing games, and discussions around mitigation strategies are ongoing, we have only few data-driven studies in literature estimating the consequent effects on the network, see e.g. The cost of artificial latency in the PBS context and Latency is Money: Timing Games /acc.

A particularly underexplored avenue is the relationship between the choice of CL clients and the dynamics of MEV-Boost. In this section, we present a preliminary observation that seeks to start a broader exploration to fill this void in the literature.

client_dependency_send_getHeader_adagio_pdf1800×600 71.5 KB

Fig. 6: Probability density function for the start sent getHeader request (the start of validators’ view of the auction). The left panel shows the distribution for Lighthouse client, the right panel shows the distribution for the Teku client. The data are Chorus One proprietary data from 2024-01-11 to 2024-02-27.

Our analysis, captured in Fig. 6, delineates a marked disparity between the CL clients that we are considering in the study. We observe that validators running the Teku client are able to initiate the MEV-Boost auction significantly earlier within the slot timeframe.

Lighthouse validators start the send getHeader request with a median of 516.0 ms into the slot, with 95% and 25% quantiles at 821.2 ms and 473.5 ms. On the other hand, Teku validators start the auction with a median of 219.0 ms — 95% and 25% quantiles at 330.8 ms and 197.0 ms. We can observe that not only the Lighthouse distribution is shifted towards higher value, but also that the spread of the distribution is quite different — 347.7 ms vs 133.8 ms.

This discovery is non-trivial; it indicates that, in the MEV landscape, validators operating on the Lighthouse client are at a comparative advantage due to an inherent latency. Indeed, such delay has pronounced implications in the context of MEV, where timing represents a critical factor in the efficacy of MEV extraction strategies. The timing differential observed here could, therefore, have an impact on the overall MEV extraction process, echoing the dynamics of timing games where every millisecond can influence the economic outcome.

3 Conclusions

Our analysis has revealed nuanced disparities in network performance between two prevalent CL clients, Lighthouse and Teku, particularly in the context of MEV-Boost and associated timing games. These findings highlight the multifaceted nature of client behavior and the potential for unexpected consequences stemming from network interactions. While Teku clients demonstrate superior network performance metrics, this research uncovers layers of complexity that merit a cautious approach to client selection.

As we previously mentioned, the principle of client diversity emerges as a prudent strategy in mitigating risks associated with network performance variability and liveness. Our observation of performance discrepancies, despite similar configurations for both validator sets, underscores the necessity to investigate the underlying causes of these differences.

Moreover, the impact on the dynamics of MEV is significant. Teku clients exhibit a consistently reliable performance in the execution of timing games, suggesting a competitive edge in environments where precision is required. Conversely, the broader distribution observed in Lighthouse clients may offer an advantage in flexibly handling bid cancellation through statistical fluctuations. The higher median latency inherent to Lighthouse clients could inadvertently replicate the desired effect of additional artificial latency without the need to alter MEV-Boost’s underlying code.

In the constantly evolving arena of timing games, where an increasing number of participants are vying for advantages, superior network performance may become the preferred tradeoff. With relays engaging in these games, excelling in CL duties could lead to augmented gains, particularly as CL rewards remain a substantial component of the total APR for validators.

It is also worth mentioning that our observations on the performance of CL clients could have a non negligible impact with the introduction of EIP-4844. Indeed, it has already been shown that blob transactions risk slowing down block propagation by orders of a hundred milliseconds in times of increased network activity, cfr. Censorship, Latency, and Preconfirmations in the Blob Market 2. More investigation is needed to capture the effects of this feature under the complexity of the CL client disparities.

In conclusion, while our findings may not be definitive, we believe this research should serve as a call to action for all validators across the Ethereum network. We encourage all validators to engage in deep research, leveraging their unique datasets to illuminate the network’s intricacies further. The insights gleaned from such studies will be invaluable, not only in enhancing individual validator performance but also in contributing to the collective understanding and stability of the Ethereum ecosystem as a whole.

Comments

All Comments

Recommended for you

  • Ceasefire Announced, Israeli Drones Continue Airstrikes in Southern Lebanon

    On June 19, according to reports from Lebanon, Israeli drones continued to carry out airstrikes in southern Lebanon, targeting towns and mountainous areas in Nabatiyeh and Jezzine. Ibrahim Mousawi, a member of the Lebanese Parliament from Hezbollah, stated in an interview that after both sides agreed to a ceasefire, Hezbollah immediately began to comply with the agreement while reserving the right to respond if Israel violated the ceasefire. He said, 'If Israel respects the ceasefire, we will also respect the ceasefire.' Earlier, on June 19, the Israel Defense Forces reported that air raid sirens were activated in the northern Israeli region of Zarit due to suspected drone incursions. (CCTV)

  • ETH Surpasses $1700

    Market data shows that ETH has surpassed $1700, currently priced at $1700.16, with a 24-hour decline of 2.09%. The market is experiencing significant volatility, so please ensure proper risk management.

  • BTC Surpasses $63,000

    Market data shows that BTC has surpassed $63,000, currently priced at $63,002.87, with a 24-hour decline of 1.52%. The market is experiencing significant volatility, so please ensure proper risk management.

  • Upbit to Launch RE KRW, BTC, and USDT Trading Pairs

    On June 19, according to an official announcement, Upbit will launch RE trading pairs with KRW, BTC, and USDT.

  • IRGC: Ready to Inflict a Crushing Defeat on Enemies

    On June 19, the Islamic Revolutionary Guard Corps (IRGC) issued a statement today, asserting that the remarks made by Iran's Supreme Leader Mujtaba regarding the Iran-U.S. memorandum of understanding "further solidified the united front of the Iranian people, enabling them and the armed forces to more resolutely safeguard the achievements of victory, and providing invaluable resources for Iranian politicians in their pursuit of national rights." The statement indicated that the aggressors have faced defeat on the battlefield — they once threatened to "wipe Iran off the map" and "send Iran back to the Stone Age," but now they are "desperately retreating to the point of begging for understanding and negotiation," bowing their heads before the Iranian people. The statement warned that if the enemies attempt to make unreasonable demands again, infringing upon the rights of the Iranian nation as they have in the past, the IRGC will be fully prepared to respond with even greater strength across land, sea, air, and all hybrid warfare domains — ready to deliver a more devastating historical defeat to the enemies as soon as the Supreme Leader gives the order. (CCTV International News)

  • CFTC and SEC Seek Public Input to Clarify 'Swaps' Regulatory Definition

    On June 19, in the context of related litigation at the Chicago Mercantile Exchange (CME), the U.S. Commodity Futures Trading Commission (CFTC) and the U.S. Securities and Exchange Commission (SEC) jointly issued a public request for comments, planning to update and clarify the definitions and regulatory interpretations of certain derivative products. This inquiry covers a wide range of topics, including the definition of 'swaps', the definition of 'security-based swaps', and the delineation of the exemptions applicable to these definitions. The two agencies are also seeking public input on the regulatory treatment of new or emerging financial products, which may include event contracts on prediction market platforms and perpetual futures/perpetual contracts. CFTC Chairman Michael S. Selig stated in a press release: 'Today's joint public request for comments provides an opportunity to address the long-standing regulatory ambiguities in Title VII of the Dodd-Frank Act. These ambiguities have been hindering fair competition and responsible innovation.' According to Title VII of the Dodd-Frank Act, the CFTC has regulatory authority over swap products, except for security-based swaps. SEC Chairman Paul Atkins also noted in a statement that clarifying certain definitions has become urgent, particularly regarding the regulatory classification of event-driven products.

  • Morgan Stanley Submits Revised ETF Applications for Ethereum and SOL, Disclosing Lowest Market Fees

    On June 19, Morgan Stanley submitted revised filings for spot Ethereum and Solana ETFs, marking new progress in the review process following the approval of Bitcoin ETFs. The Wall Street investment bank filed updated S-1 registration statements for the two ETFs with the U.S. SEC on Thursday. This is the second update to the applications for the Ethereum and Solana ETFs originally submitted in January. The latest S-1 documents reveal that both ETFs will have an issuance fee rate set at 0.14%, making them the lowest fee products in the U.S. market for Ethereum and Solana ETFs. According to SoSoValue data, the current fee rate for Grayscale's mini Ethereum trust is 0.15%, the lowest in the Ethereum sector, while Franklin Templeton's Solana ETF SOEZ has a fee rate of 0.19%, the lowest in the Solana segment. The revised filings also disclose that Figment, Galaxy blockchain infrastructure company, and Canada’s Coinbase will serve as the staking service providers for the products. Morgan Stanley's upcoming ETH and SOL ETFs plan to stake a portion of their holdings to earn additional staking rewards. The documents specify that 5% of the staking earnings will be allocated as service fees for the staking service providers and custodians.

  • Fidelity Launches Money Market Fund for Stablecoin Issuers Aligned with the GENIUS Act

    On June 19, Fidelity Investments launched a new government money market fund designed as a reserve storage tool for stablecoin issuing institutions. The fund, named Fidelity Digital Reserve Fund (Ticker: FYMXX), aims to achieve current income while ensuring principal safety and maintaining high liquidity, as stated in its prospectus. The fund shares are exclusively available to institutional investors, including various stablecoin issuers, and the product was officially established on June 15. The prospectus specifies: 'The fund shares are expected to be primarily held by one or more stablecoin issuers as part or all of their reserve assets for issuing stablecoins to users.' This new fund will only invest in compliant reserve assets permitted for stablecoin issuers under the GENIUS Act, including U.S. Treasury bills, medium-term notes, long-term government bonds, cash, overnight repurchase agreements, and other government money market funds that meet stablecoin regulatory requirements. The minimum initial subscription amount for the fund is set at $1 million, although the fund company can independently decide to waive or reduce this threshold. The product aims to maintain a stable net asset value of $1 per share, with an annual management fee rate of 0.25%.

  • BTC Falls Below $63,000

    Market data shows that BTC has fallen below $63,000, currently priced at $62,967.9, with a 24-hour decline of 3.7%. The market is experiencing significant volatility, so please ensure proper risk management.

  • ETH Falls Below $1700

    Market data shows that ETH has fallen below $1700, currently priced at $1699.82, with a 24-hour decline of 3.79%. The market is experiencing significant volatility, so please ensure proper risk management.