aboutsummaryrefslogtreecommitdiff
path: root/src/ats/experiments/example.exp
blob: 9e69ab8e2b38319c687af741b145ee072bee3ec1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[experiment]
 name = test
 max_duration = 15 s
 log_freq = 1000 ms
 cfg_file = experiments/gnunet_ats_sim_default.conf
 
 
[episode-0]
# Setup addresses

# operations = address_add, address_del, start_set_property, stop_set_property, 
# start_set_preference, stop_preference, start_request, stop_request
duration = 0
op-0-operation = address_add
op-0-address-id = 0
op-0-peer-id = 0
op-0-address-session = 0
op-0-address-network = 0
op-0-address = 0_0_test
op-0-plugin = test

op-1-operation = address_add
op-1-address-id = 1
op-1-peer-id = 1
op-1-address-session = 0
op-1-address-network = 0
op-1-address = 1_1_test
op-1-plugin = test

op-2-operation = start_request
op-2-peer-id = 0

op-3-operation = start_request
op-3-peer-id = 1

[episode-1]
# Set delay
duration = 5 s

op-0-operation = start_set_property
op-0-address-id = 0
op-0-peer-id = 0
# constant, linear, sinus, random
op-0-gen-type = random
op-0-base-rate= 10000
op-0-max-rate = 20000
op-0-frequency = 1000 ms
# bandwidth, latency
# "TERMINATOR", "UTILIZATION_UP", "UTILIZATION_DOWN", "UTILIZATION_PAYLOAD_UP", "UTILIZATION_PAYLOAD_DOWN", "NETWORK_TYPE", "DELAY", "DISTANCE", "COST_WAN", "COST_LAN", "COST_WLAN"
op-0-property = DELAY  

op-1-operation = start_set_property
op-1-address-id = 1
op-1-peer-id = 1
# constant, linear, sinus, random
op-1-gen-type = constant
op-1-base-rate= 1
op-1-max-rate = 1
op-1-frequency = 1000 ms
# bandwidth, latency
# "TERMINATOR", "UTILIZATION_UP", "UTILIZATION_DOWN", "UTILIZATION_PAYLOAD_UP", "UTILIZATION_PAYLOAD_DOWN", "NETWORK_TYPE", "DELAY", "DISTANCE", "COST_WAN", "COST_LAN", "COST_WLAN"
op-1-property = DELAY  


[episode-2]
# Shutdown
duration = 2 s
op-0-operation = stop_set_property
op-0-address-id = 0
op-0-peer-id = 0
op-0-property = DELAY

op-1-operation = stop_set_property
op-1-address-id = 1
op-1-peer-id = 1
op-1-property = DELAY

[episode-3]
# Shutdown
duration = 2 s

op-0-operation = stop_request
op-0-peer-id = 0  

op-1-operation = stop_request
op-1-peer-id = 1

op-2-operation = address_del
op-2-address-id = 0
op-2-peer-id = 0
op-2-address-session = 0
op-2-address-network = 0
op-2-address = 0_0_test
op-2-plugin = test

op-2-operation = address_del
op-2-address-id = 1
op-2-peer-id = 1
op-2-address-session = 0
op-2-address-network = 0
op-2-address = 1_1_test
op-2-plugin = test