Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.32 KB

Simulation.md

File metadata and controls

40 lines (30 loc) · 1.32 KB

Navigation: DEDIS :: Cothority :: Simulation

Simulation

When testing protocols and services, it is useful to have a way to test more than 1-10 nodes (which is covered by go-tests). Simulation can do this on different levels:

  • localhost - up to 100 nodes in a more real environment than go-tests
  • mininet - using a small number of machines, simulations can be done on up to 1000 nodes
  • deterlab - with good machines a protocol like CoSi can be tested and measured on up to 50'000 nodes

The goal is to discover different implementation-problems when going from a small number of nodes to a big number and then fix those problems as they arise. Simulations are also useful when writing papers and you need to run different configurations of your protocol or service and measure the time and bandwidth spent.

Running a simulation

To run a simulation for CoSi, you can do the following:

cd blscosi/simulation
go build
./simulation local.toml

The result of the simulation will be stored in directory test_data as a CSV file that can be used for further analysis.

Simulations available

Here is a list of available simulations in the cothority-code: