header-langage
简体中文
English
Tiếng Việt
Scan to Download the APP
Partnered With:

Redundancy Risk and Failover for Beacon Chain Validators

Read this article in 7 Minutes
This article explains the dangers of redundancy to validators and proposes a reasonable failover for beacon chain VCs.
Original title: "Beacon Chain Validators: Redundancy Risks and Failover"
Original Source: Ethereum Enthusiast


Verifier and verifier client


Verifier is a concept related to the beacon chain, a verifier is the beacon chain consensus process a participant. Verifiers are identified by public keys, and each verifier will be assigned the task of verifying the beacon chain at different times. If you successfully complete these tasks, you will be rewarded; on the contrary, if you neglect your duties, you will not only not be rewarded, but will also be severely punished. In Phase 0, these accusations are limited to proposing blocks and submitting attestations on the beacon chain.


Verifiers need to use a software called  Verifier Client (VC) to perform their duties 1. All beacon chain client teams use VC as one of their client packages.


Needless to say, verifiers want their clients to be online at all times in order to get the most benefit and avoid all penalties. A common way to achieve high availability is to set up redundancy and failover mechanisms. This article explains the dangers of redundancy to validators and proposes a reasonable failover for VCs in the beacon chain.


Types of losses/penalties


Validators face three types of losses, severe The degree is arranged from small to large as follows:


  • Reward Frustration: When a validator fails to perform when assigned to a task, the TA cannot receive the reward corresponding to the task. The validator's equity (principal) will not decrease, but just loses a chance to get the reward.
  • Slack work penalty: If a verifier does not send a witness message, and the beacon chain cannot finalize the block at that time 2, then the verifier's rights and interests will be greatly reduced A small amount (of course, the relevant rewards will not be obtained).
  • Penalty penalty: If a verifier sends a witness message that violates the Casper FFG rules, the verifier will be  punished  immediately  - the verifier's rights and interests A certain ratio will be reduced 3, and the validator will be kicked out and can no longer participate in the consensus (and therefore will not be eligible for future rewards). Moreover, because the beacon chain cannot transfer and retrieve the pledged ETH, all the remaining money of the verifier will be locked on the beacon chain and cannot be used (until the beacon chain enables related functions).

The verifier who sent the witness message will be punished for slowing down, and the witness who sent the message will also lose, but the loss is smaller than the former; however, the author mainly discusses the loss related to the verifier being offline in this article, so it is also Extenuating circumstances.)
The first two types of loss are likely to be encountered by a validator whose VC is offline, but the third type is only if the VC is not set correctly (or the beacon chain encounters a clear attack) verifiers will encounter.
When it comes to failover and redundancy measures, the most important thing should be to do everything possible to avoid slashing, and then to improve online time to reduce the probability of reward failure and slowdown punishment.


Dangers of Redundant VC Facilities


Some stakers may think that running redundant VCs is insurance against a VC going offline. But in fact, redundant VC facilities are not safe, and it is very likely that validators will be slashed in the end!
Look at a practical example:
Beacon chain validators: redundancy risk and failover


- Redundant VC leads to slashing!


This validator runs two client instances  C1  and  C2, both with online VC. Unstable network conditions (peer node/link issues, message delivery delays, network partitions, etc.), resulting in two client instances not agreeing on which fork is the main chain, C1  and  C2  Take  B1  and  B2  as the current top checkpoint respectively (note that it is the top checkpoint, not the top block, and the inconsistency of the top checkpoint can occur without any malicious behavior). When it is the validator's turn to perform its validator tasks, the two client instances each send a voting message targeting the checkpoint they have identified as the main chain checkpoint. The result is that the target checkpoints of the two attestations are different (but both are at the same height). This is double voting, which violates the rules of Casper FFG and will result in the validator being slashed.



VC's failover protocol


Note: When I say "failover", I mean manually or automatically restarting a new VC instance after a VC is stopped. However, I do not recommend using an automated failover mechanism, because if implemented poorly, it will Will cause you to have two VCs hanging on the line!
The main point of the previous section is that validators should only have one live VC instance deployed at any time. However, VCs always make mistakes, how to deal with this risk? Stakers should define their own failover protocol (determining what uses should restart a new validator client instance) in advance to deal with this situation. Before developing a secure and reliable failover protocol, let's first look at a security feature built into validator clients: slashing protection.
Beacon Chain Validators: Risk of Redundancy and Failover


- Forfeiture Protection Mechanism-


Punishment protection mechanism: All VC software developed by the Beacon Chain client team has a penalty protection mechanism as a response to accidents Fail-safe for events. According to the slashing rules, only pairs of attestation messages will result in slashing, only need to check this pair of messages to judge the result. Then, VC can store all the messages and blocks signed by itself in the local  slash protection database . When signing any new attestation message/block, VC only needs to check whether the new message conflicts with the old message in the database (whether it will form a slashed message pair), and only sign the new message that does not conflict.
Therefore, VC needs three mechanisms to ensure correct and safe operation:


举报 Correction/Report
Choose Library
Add Library
Cancel
Finish
Add Library
Visible to myself only
Public
Save
Correction/Report
Submit