There are a number of Python and bash scripts needed to run the security experiments.
-
config.py
contains several important global variables to be imported to other Python's scripts:NODES
: the list of strings representing the server IP addresses.partition_cmd
: use to specify the script that simulates partition attacks.TIMEOUT
: how long the partition lasts
-
partition.py
: implements the functionpartition(node_list, time_out)
that partitions the nodes in the givennode_list
in half, and keeps the partition fortime_out
seconds. It basically invokes the following scripts with different parameters:` partition.sh <node_i> <node_j> <time_out>`
-
partition.sh <node_i> <node_j> <time_out>
: drops TCP connection between the 2 nodes for the giventime_out
seconds. -
run-bench-security.sh <#nodes> <#threads> <#clients> <#req rate>
: works the same way asrun-bench.sh
, except that it invokespartition.py
at 100th second. -
exps.py
: contains the main script for launching the experiments:` python exps.py -security`