aboutsummaryrefslogtreecommitdiff
path: root/src/ats/experiments/set_preference.exp
blob: 34f9af29623b7940518849f29e5842cda1453a7d (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
# Example setting up two peers 

[experiment]
name = test
max_duration = 15 s
log_freq = 1000 ms
log_prefix = set_preference
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 = 1 s

op-0-operation = address_add
op-0-address-id = 0
op-0-peer-id = 0
op-0-address-session = 0
op-0-address-network = lan
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 = lan
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 = 20 s

op-0-operation = start_set_preference
op-0-address-id = 0
op-0-peer-id = 0
op-0-client-id = 1
# constant, linear, sinus, random
op-0-gen-type = linear
op-0-base-rate= 1000
op-0-max-rate = 10000
op-0-period = 10 s
op-0-frequency = 500 ms
op-0-feedback_delay = 500 ms
# BANDWIDTH, LATENCY
op-0-pref = BANDWIDTH  


op-1-operation = start_set_preference
op-1-address-id = 1
op-1-peer-id = 1
op-1-client-id = 1
# constant, linear, sinus, random
op-1-gen-type = constant
op-1-base-rate= 1000
op-1-max-rate = 1000
op-1-period = 10 s
op-1-frequency = 500 ms
# BANDWIDTH, LATENCY
op-1-pref = BANDWIDTH  

[episode-2]
# 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-3-operation = address_del
op-3-address-id = 1
op-3-peer-id = 1
op-3-address-session = 0
op-3-address-network = 0
op-3-address = 1_1_test
op-3-plugin = test