aboutsummaryrefslogtreecommitdiff
path: root/src/ats/experiments
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-02-11 14:07:59 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-02-11 14:07:59 +0000
commit84faee523650bb8613d67f99777e990a7497bf73 (patch)
treed40b4efb0eb53b2f618787756adb84988314ab6f /src/ats/experiments
parenta5b4af52529d598adc78ae86621f8803d12eef8f (diff)
downloadgnunet-84faee523650bb8613d67f99777e990a7497bf73.tar.gz
gnunet-84faee523650bb8613d67f99777e990a7497bf73.zip
+ setting preference
+ set preference example + adding client_id to suport multiple applications
Diffstat (limited to 'src/ats/experiments')
-rw-r--r--src/ats/experiments/example.exp10
-rw-r--r--src/ats/experiments/set_preference.exp93
2 files changed, 93 insertions, 10 deletions
diff --git a/src/ats/experiments/example.exp b/src/ats/experiments/example.exp
index ac7e85889..fcf5fc453 100644
--- a/src/ats/experiments/example.exp
+++ b/src/ats/experiments/example.exp
@@ -101,13 +101,3 @@ op-2-address-network = 0
101op-2-address = 1_1_test 101op-2-address = 1_1_test
102op-2-plugin = test 102op-2-plugin = test
103 103
104#op-1-operation = start_set_preference
105#op-1-address-id = 1
106#op-1-peer-id = 1
107# constant, linear, sinus, random
108#op-1-gen-type = constant
109#op-1-base-rate= 10000
110#op-1-max-rate = 100000
111#op-1-frequency = 500 ms
112# BANDWIDTH, LATENCY
113#op-1-pref = BANDWIDTH \ No newline at end of file
diff --git a/src/ats/experiments/set_preference.exp b/src/ats/experiments/set_preference.exp
new file mode 100644
index 000000000..b49843e4b
--- /dev/null
+++ b/src/ats/experiments/set_preference.exp
@@ -0,0 +1,93 @@
1# Example setting up two peers
2
3[experiment]
4 name = test
5 max_duration = 15 s
6 log_freq = 1000 ms
7 cfg_file = experiments/gnunet_ats_sim_default.conf
8
9
10[episode-0]
11# Setup addresses
12
13# operations = address_add, address_del, start_set_property, stop_set_property,
14# start_set_preference, stop_preference, start_request, stop_request
15duration = 5 s
16op-0-operation = address_add
17op-0-address-id = 0
18op-0-peer-id = 0
19op-0-address-session = 0
20op-0-address-network = 0
21op-0-address = 0_0_test
22op-0-plugin = test
23
24op-1-operation = address_add
25op-1-address-id = 1
26op-1-peer-id = 1
27op-1-address-session = 0
28op-1-address-network = 0
29op-1-address = 1_1_test
30op-1-plugin = test
31
32op-2-operation = start_request
33op-2-peer-id = 0
34
35op-3-operation = start_request
36op-3-peer-id = 1
37
38[episode-1]
39# Set delay
40duration = 5 s
41
42op-0-operation = start_set_preference
43op-0-address-id = 0
44op-0-peer-id = 0
45op-0-client-id = 1
46# constant, linear, sinus, random
47op-0-gen-type = constant
48op-0-base-rate= 10000
49op-0-max-rate = 10000
50op-0-period = 1000 ms
51op-0-frequency = 1000 ms
52# BANDWIDTH, LATENCY
53op-0-pref = BANDWIDTH
54
55
56op-1-operation = start_set_preference
57op-1-address-id = 1
58op-1-peer-id = 1
59op-1-client-id = 1
60# constant, linear, sinus, random
61op-1-gen-type = linear
62op-1-base-rate= 10000
63op-1-max-rate = 20000
64op-1-period = 1000 ms
65op-1-frequency = 100 ms
66# BANDWIDTH, LATENCY
67op-1-pref = BANDWIDTH
68
69[episode-2]
70# Shutdown
71duration = 2 s
72
73op-0-operation = stop_request
74op-0-peer-id = 0
75
76op-1-operation = stop_request
77op-1-peer-id = 1
78
79op-2-operation = address_del
80op-2-address-id = 0
81op-2-peer-id = 0
82op-2-address-session = 0
83op-2-address-network = 0
84op-2-address = 0_0_test
85op-2-plugin = test
86
87op-3-operation = address_del
88op-3-address-id = 1
89op-3-peer-id = 1
90op-3-address-session = 0
91op-3-address-network = 0
92op-3-address = 1_1_test
93op-3-plugin = test