A simulaion scenario consists of the initial network description followed by a series of simulation steps.
This consists of:
- the number of nodes in the network
- what protocols / modules each node is running (e.g.
bzz
/pss
) - which nodes are directly connected
A simulation step consists of:
- an action to perform in the network
- an expectation on a set of nodes
An example pss
simulation:
Network description:
10 nodes each running pss connected in a ring so that node1 is connected to node2,
node2 to node3, ..., node9 to node10, node10 to node1.
Steps:
Action: node1 sends a message to node10
Expectation: node10 receives the message
Action: node10 sends a reply to node1
Expectation: node1 receives the reply