Coder Social home page Coder Social logo

Comments (8)

lemmy avatar lemmy commented on August 16, 2024

Tagging the spec authors: @konnov @banhday @josef-widder

from examples.

lduranovic avatar lduranovic commented on August 16, 2024

@lemmy Thanks!

from examples.

josef-widder avatar josef-widder commented on August 16, 2024

Hi @lduranovic99 , could you please clarify which spec you are referring to. I guess there might be several and the encoding of faults may differ, so to answer your second question, I want to be sure we are on the same page ;-)

Regarding the first concern, this encoding originated from our previous work on parameterized model checking threshold automata, e.g. here. This method only works on symmetric systems, so we couldn't capture a special process (the broadcaster) in an efficient manner. At the same time, we wanted to verify the threshold functionalities (t+1, n-t under resilience conditions like n>3t). Thus, we have chosen to capture the effect of the broadcaster in the initial state:

  • all processes have 0: e.g., the broadcaster is correct and didn't choose to send any message.
  • all processes have 1: e.g, the broadcaster is correct and thus sends to everyone
  • mixed inputs: the broadcaster is faulty and sense to some (those with 1)

(Of course the "all 0s" and "all 1s" also capture the scenario where the broadcaster is "faulty", but sends or does not send consistently to everyone.)

From our initial states, a process sends echo if and only if it sends echo in executions the corresponding execution with a broadcaster. To formalize the argument, I guess I would define projections of traces that abstract away the broadcaster, and show that there is trace equivalence to the traces of the spec.

from examples.

lduranovic avatar lduranovic commented on August 16, 2024

Hi @josef-widder! Thanks for the response. You can find the specific file that I was looking at here.

I think your explanation for why this specification makes sense (in terms of the broadcaster) makes sense to me, although I would be curious to see what this formalization argument for matching traces obtained by the two versions of the algorithm would look like.

I'm still very interested in the behavior of the faulty hosts, and what your thoughts are on how well this model captures the behavior of Byzantine hosts.

from examples.

josef-widder avatar josef-widder commented on August 16, 2024

Thanks to your initial question, I found a bug in the encoding. I proposed a fix in #81.

However, the overall encoding is OK, and indeed it captures the non-determinism on the correct receiver that is due to faulty senders. Consider this condition that guards the increment of the counter at process i of received echo messages nRcvdE[i]

\/ /\ nRcvdE[i] < nSntE + (IF includeByz THEN nByz ELSE 0)

The counter can only be incremented if it smaller than the sum of

  • the number of echo messages sent by correct processes
  • the number of Byzantine processes

Potentially, Byzantine processes can be assumed to have sent any message, and the adversary has the control whether and when to deliver these messages. Even if this action is enabled, it may never trigger, that is, nRcvdE[i] may never exceed nSntE.
So this kind of encoding captures the effect Byzantine nodes have on correct ones, rather than the actions of Byzantine nodes.

from examples.

ahelwer avatar ahelwer commented on August 16, 2024

@josef-widder @lduranovic are there any changes that need to be made to the example spec or are we good to close this issue?

from examples.

josef-widder avatar josef-widder commented on August 16, 2024

I think we can close the issue as it was mostly a question on modelling. The problem that we then found was fixed in #81.

from examples.

lduranovic avatar lduranovic commented on August 16, 2024

Yeah, thanks for asking! I will go ahead and close it with this comment then.

from examples.

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.