Commit Graph

217 Commits

Author SHA1 Message Date
Csaba Kiraly dc2710f012
make messages be a half-line large
- enable NodeQueue in proposer
- fill queue at beginning
- do not forward individual samples
- forward when repair is possible, i.e. when half-line was received

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-13 21:07:43 +02:00
Csaba Kiraly c468b83051
update config_failuremodel
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-13 06:04:03 +02:00
Csaba Kiraly 13571b9339
change proposerPublishTo to 1
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-13 06:03:39 +02:00
Csaba Kiraly 14a408f7d6
move initBlock code after network setup
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-13 06:03:14 +02:00
Csaba Kiraly 77057d336d
change figure size
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-13 06:02:39 +02:00
Csaba Kiraly 520b48cd0e
convert figures to mbps
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-13 06:02:28 +02:00
Csaba Kiraly b65f565734
segment instead of sample
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-13 06:01:53 +02:00
Csaba Kiraly fc9338df3f
save config and code state for reproducibility
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-13 06:01:04 +02:00
Csaba Kiraly 20487a2c53
adding scenario configs
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-12 20:24:38 +02:00
Csaba Kiraly d97b323674
configure bandwidth in mbps
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-12 18:28:11 +02:00
Csaba Kiraly a5e4573599
fixup: fix missing 'order' in failureModel == "sequential"
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-12 16:02:51 +02:00
Csaba Kiraly 6c5dc3f3cd
progress plot: add time axis
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-12 16:02:03 +02:00
Csaba Kiraly 6fa8be07fe
Merge branch 'plot-progress' into failureMode 2023-04-12 14:49:15 +02:00
Csaba Kiraly 7b58e59c90
fixup: close plot to release memory
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-12 14:47:36 +02:00
Csaba Kiraly 8867f54a22
plot progress per run
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-12 14:47:33 +02:00
Csaba Kiraly 1dd021f000
extending .gitignore
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-12 00:21:59 +02:00
Csaba Kiraly ed97a861a9
fixup: increase step counter while steps4StopCondition
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-10 22:05:48 +02:00
Csaba Kiraly 91050ca19a
adding failureModes with special erasure patterns
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-10 00:00:17 +02:00
Csaba Kiraly 3e822ab6ca
measure validation progress more precisely
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-09 23:21:23 +02:00
Csaba Kiraly 5496249987
make failureRate exact
simplify code and make sure failureRate is the exact
portion of segments missing, not just a probability per
sample.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-04-09 01:13:28 +02:00
Csaba Kiraly 73e02a132d
fix formatting
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-30 16:22:00 +02:00
Leo 1957f6b3ff
Merge pull request #38 from status-im/stopCondition-fix
Add stop condition fix
2023-03-30 16:18:18 +02:00
Leonardo Bautista-Gomez c4ad3cf80e Small fix 2023-03-30 16:10:10 +02:00
Leonardo Bautista-Gomez ae36844e7f Add stop condition fix 2023-03-30 14:26:14 +02:00
Csaba Kiraly 1b4a225114
Merge pull request #35 from status-im/issue-29
Solving Issue 29 partially. Still remains the problems of stop condition.
2023-03-30 13:46:00 +02:00
Leo 7719f84a10
Switch from time steps to miliseconds (#30)
Switch from time steps to miliseconds
2023-03-30 13:41:50 +02:00
Leonardo Bautista-Gomez 296c4fb762 Rows and columns to sets 2023-03-30 13:36:48 +02:00
Leonardo Bautista-Gomez 795bb1d10d Move set to simulator for future diagnostic purposes 2023-03-30 13:15:42 +02:00
Leo 57b0ee89f7
Merge pull request #32 from status-im/measure-progress
Measure and save progress and traffic statistics.
2023-03-30 11:18:19 +02:00
Csaba Kiraly 98db10f7a6
Add more documentation
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-30 00:13:33 +02:00
Csaba Kiraly cb0a3ea1ba
fixup: avoid warning on mean if empty
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-29 16:36:40 +02:00
Csaba Kiraly 9f3089c232
rowIDs and columnIDs are sets
Fixes issue 29, where multiple instances of an ID in rowIDs
created a topology with nodes with a huge degree.

This huge degree then created lots of duplicates, eating up available
bandwidth.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-29 15:54:44 +02:00
Csaba Kiraly f85cdb401b
fix line allocation when evenLineDistribution=True
vector should have chi elements for each validator

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-29 15:49:52 +02:00
Csaba Kiraly eb4f451303
save progress and traffic statistics to XML
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 23:15:44 +02:00
Csaba Kiraly 23af30e381
add generalized metrics collection
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 22:29:22 +02:00
Csaba Kiraly 7e4074938a
add duplicate statistics
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 22:29:22 +02:00
Csaba Kiraly 6616cc799f
move traffic stats calculation to observer
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 22:29:20 +02:00
Csaba Kiraly 119777787e
add progress meters to observer
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 22:28:30 +02:00
Csaba Kiraly 037c4cd67a
count number of validators having all rows/columns
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 22:28:30 +02:00
Csaba Kiraly bcf3098e9f
Merge pull request #28 from status-im/cleanup
Code cleanup
2023-03-27 11:41:19 +02:00
Csaba Kiraly 3795948564
fix requirements.txt 2023-03-27 11:37:23 +02:00
Csaba Kiraly ec6ed7c1e8
dump results to XML after each run
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 11:37:22 +02:00
Csaba Kiraly 894009b414
Validator node: add nodeClass property
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 11:37:22 +02:00
Csaba Kiraly ff93161b8d
set vpn in validator
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 11:37:22 +02:00
Csaba Kiraly 122f6a8348
remove resetShape
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 11:37:22 +02:00
Csaba Kiraly 6e4b37a3d2
adding log level TRACE
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 11:37:22 +02:00
Csaba Kiraly af124c0755
simplify code
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 11:37:22 +02:00
Csaba Kiraly 952d191ccd
remove unused golden data
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 11:37:22 +02:00
Csaba Kiraly 954d40e758
use new simulator object instead of reset
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>

# Conflicts:
#	study.py
2023-03-27 11:37:21 +02:00
Csaba Kiraly d38b8074f4
use main
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2023-03-27 11:37:21 +02:00