config

package
v0.0.0-...-910d698 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RANDOM_ACCESS_PATTERN      string = "Random_Distribution"
	EXPONENTIAL_ACCESS_PATTERN string = "Exponential_Distribution"
)
View Source
const ACCESS_FREQUENCY_PATTERN string = EXPONENTIAL_ACCESS_PATTERN
View Source
const BASIC_UNIT_TIME int = 20 // 60 seconds

The basic unit of time (T)

View Source
const BLOCK_CREATE_PERIOD int = 5

Block create period

View Source
const END_TEST string = "END_TEST"
View Source
const FINALITY int = 6
View Source
const LAMBDA_ED float32 = 0.1

Lambda for Exponential Distribution the number of event in TSC0

View Source
const MAX_SC int = 4

Max number of storage class

View Source
const MAX_SC_PEER int = 7

Max the number of peers for each storage class

View Source
const NUM_AP_GEN int = 10

NUM_AP_GEN/TIME_AP_GEN : The rate to access data for access pattern The number of transactions to be read for access pattern

View Source
const NUM_TRANSACTION_BLOCK int = 6

The number of transaction in a block IF NUM_TRANSACTION_BLOCK == 0, choose random between 3 to 6

View Source
const PROBABILITY_FACTOR_SC0 float32 = 0.6931472 // P : 0.500000, T : 6.931472
View Source
const PROBABILITY_FACTOR_SC1 float32 = 1.3862944 // P : 0.750000, T : 13.862944
View Source
const PROBABILITY_FACTOR_SC2 float32 = 2.7725887 // P : 0.937500, T : 27.725887
View Source
const RATE_TSC int = 10 // x BASIC_UNIT_TIME

Time period for Remove data : T x TSC0 TSC0 : After the time, no access data will be removed from local storage. 1 Minuite : The start time for TS20 to remove objects is 23 minuites after starting simulation so about 50 minute is needed for total simulation time IoT+normal_fridge_1.log has 40057 transactions. We generate a block with 6 transactions and create every 5 seconds, so total simulation time will be around 9.3 hours. Thus, 10 minuites is good for 500 minuites(8.3 hours)

View Source
const SIM_SC int = 100

Simulator Storage class : 100

View Source
const TIME_AP_GEN int = 10 // Second

The number of time to create accessing transaction for access pattern

View Source
const TIME_UPDATE_NEITHBOUR int = 10 //60 // Second

The time to search neighbour nodes to update node info

View Source
const TOTAL_TRANSACTIONS int = 40000

Total transactions

TSC0 = RATE_TSC x BASIC_UNIT_TIME * (PROBABILITY_FACTOR / LAMBDA_ED)

Variables

View Source
var TSCX = [...]float32{TSC0I, TSC1I, TSC2I, 0}

Array for TSC0 ~ 3

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL