Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ΔQ model for short Leios to harmonise Haskell and Rust simulations #161

Open
4 tasks
rkuhn opened this issue Jan 22, 2025 · 0 comments
Open
4 tasks

ΔQ model for short Leios to harmonise Haskell and Rust simulations #161

rkuhn opened this issue Jan 22, 2025 · 0 comments
Assignees
Milestone

Comments

@rkuhn
Copy link
Contributor

rkuhn commented Jan 22, 2025

While the intended level of detail (or closeness to an actual implementation) of the Rust and Haskell simulations differ, we want both of them to implement the same basic model of Leios and of the peer to peer network supporting it. To this end, we create a third description that is as abstract as possible but captures the timeliness and resource usage aspects of Leios protocol behaviour as set forth in the Agda spec plus timing as documented by research.

We achieve alignment of the simulations by modelling both the Rust and Haskell simulators using ΔQSD, making sure to employ design parameters and the protocol as formally specified but adapting to each simulation’s level of fidelity. Inconsistencies between ΔQ and simulation results need to be explained by either finding effects that are hard to treat in ΔQSD (a likely example being TCP window collapse) or identifying bugs in either the ΔQ expression or the simulation.

Once this work is complete, we document the approach, the lessons learnt, and a user guide for the ΔQSD tooling developed and improved as part of the endeavour. This will allow others — in particular that wider Cardano community — to benefit from the tools and knowledge.

Definition of Done:

  • match ΔQ expression to Rust simulation
  • match ΔQ expression to Haskell simulation
  • write technical report detailing the observed differences and the findings during the process
  • publish report and ΔQ tooling + user guide on the website
@will-break-it will-break-it added this to the PI9 milestone Jan 31, 2025
@will-break-it will-break-it changed the title establish ΔQ model for short Leios to harmonise Haskell and Rust simulations ΔQ model for short Leios to harmonise Haskell and Rust simulations Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants