vyzo / gerbil-simsub

A gossipsub protocol simulator
MIT License
37 stars 7 forks source link

Simulations with more constraints and performance metrics in outputs #3

Open rairyx opened 4 years ago

rairyx commented 4 years ago

Is it possible to do simulations on Pub/Sub(Gossipsub, floodsub, episub) with more network constraint(e.g. packet drop, node churns etc) and more metrics in outputs(e.g. message dissemination time, max delivery hop)? Thanks

vyzo commented 4 years ago

We can certainly do this, and but it would be a little work.

We actually use testground for this nowadays, which runs the actual production code. See https://github.com/libp2p/gossipsub-hardening, which should be made public soon, and also https://blog.ipfs.io/gossipsubv1.1-eval-report-and-security-audit/

rairyx commented 4 years ago

Thanks @vyzo, good to know, testground is very cool, but I'd like to do large scale simulations(with 10k, 100k.. nodes) which will be very expensive with testground

vyzo commented 4 years ago

That's a good point. What part of the protocol would you like to simulate? It should be fairly straightforward to write a simulator for v1.0 from scratch, v1.1 is a little more complicated.

rairyx commented 4 years ago

I'd like to simulate v1.0 first, ultimately v1.1 with more network constraints and performance metrics, also for floodsub and episub.