Giter Site home page Giter Site logo

Bounded Badger about honeybadgerbft HOT 1 OPEN

amiller avatar amiller commented on August 11, 2024 1
Bounded Badger

from honeybadgerbft.

Comments (1)

lishuai87 avatar lishuai87 commented on August 11, 2024

Since the protocol's security relies on eventual delivery of every message, the only way to emulate this in an unreliable network is to store and resend messages indefinitely until a read receipt is obtained.

However, the need to provide unbounded buffers means that the software may end up consuming all the machine’s available disk space or RAM. If messages are dropped when the buffers full up, then the network model no longer fulfills the guarantees assumed by the security analysis, and hence the security proof cannot be guaranteed.

Hi, in a complicated network, we may have many nodes crash (or restart, power-fail) at the same time, the network may randomly drop messages.
In this case, store and resend indefinitely until a read receipt is obtained means we need write (and sync) every message to DB ?
If receiver replied a receipt and then crash, the sender will not resend the message, so we also need write (and sync) every incoming message to DB ?

outgoing message:

VAL
ECHO
READY
BVAL
AUX
CONF
TERM

incoming message:

incoming VAL
incoming ECHO
incoming READY
incoming BVAL
incoming AUX
incoming CONF
incoming TERM

For one round, we need at least 14 writes (and 14 syncs) ? It's a huge burden for real projects.

What if we don't store and resend every message, just let the receiver query missing messages?
In this case, we need store RBC input data, BA input data, and coin data. When node restarts, and it finds missing message, it sends query request to other nodes, then other nodes resend the missing messages.
This only need 2 or 3 writes. But I don't know if this breaks the security guarantee...

from honeybadgerbft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.