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

Feat/make alpha more realistic #18

Merged
merged 3 commits into from
Aug 11, 2023
Merged

Conversation

cortze
Copy link
Owner

@cortze cortze commented Aug 11, 2023

Motivation

The current comparison of the simulated lookups from the ones displayed in probelab.io shows that we are pretty close to simulating accurately a DHT.
Some test already show that the model could be validated with that data:

simulation (50ms delay) vs IPFS simulation vs IPFS from US
image image

However, there are a few things that need to be addressed in order to simulate the real behavior of a P2P network:

  • A more realistic lookup operation (as alpha defines concurrency, we need to mimic the a scheduler to aggregate wisely the delays)
  • Make the distinction between "slow" and "fast" connection failures

Related links:

Description

This PR exactly tackles both points, adding a "scheduling" logic to aggregate delays and different rates and delays for "fast" and "slow" errors

Tasks

  • Upgrade lookup for alpha >1
  • Aggregate "slow" delay rages and rates
  • Upgrade Test

Proof of Success

Tests pass :)

@cortze cortze merged commit 4265ee7 into main Aug 11, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant