aboutsummaryrefslogtreecommitdiff
path: root/src/ats/experiments
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-05-06 15:50:20 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-05-06 15:50:20 +0000
commit6e198fdbfa22da72fadcae22b8797af76696b78a (patch)
treec5f5ff123a8670df80a7a286879f7e710aefe843 /src/ats/experiments
parent4e1baae59f18ee5d7cd47afe28ced3daaaa5a5ad (diff)
downloadgnunet-6e198fdbfa22da72fadcae22b8797af76696b78a.tar.gz
gnunet-6e198fdbfa22da72fadcae22b8797af76696b78a.zip
- refine preference calculcations to reflect all clients
- refining bandwidth distribution in a network - adding a configurable factor to better respect preferences
Diffstat (limited to 'src/ats/experiments')
-rw-r--r--src/ats/experiments/example.exp13
-rw-r--r--src/ats/experiments/set_preference.exp42
2 files changed, 29 insertions, 26 deletions
diff --git a/src/ats/experiments/example.exp b/src/ats/experiments/example.exp
index 9e69ab8e2..a490e5ec6 100644
--- a/src/ats/experiments/example.exp
+++ b/src/ats/experiments/example.exp
@@ -1,10 +1,11 @@
1[experiment] 1[experiment]
2 name = test 2name = test
3 max_duration = 15 s 3max_duration = 15 s
4 log_freq = 1000 ms 4log_freq = 1000 ms
5 cfg_file = experiments/gnunet_ats_sim_default.conf 5cfg_file = experiments/gnunet_ats_sim_default.conf
6 6log_output_dir = data/
7 7log_append_time_stamp = no
8
8[episode-0] 9[episode-0]
9# Setup addresses 10# Setup addresses
10 11
diff --git a/src/ats/experiments/set_preference.exp b/src/ats/experiments/set_preference.exp
index dfbd75b18..5e651dc25 100644
--- a/src/ats/experiments/set_preference.exp
+++ b/src/ats/experiments/set_preference.exp
@@ -1,23 +1,24 @@
1# Example setting up two peers 1# Example setting up two peers
2 2
3[experiment] 3[experiment]
4 name = test 4name = test
5 max_duration = 15 s 5max_duration = 15 s
6 log_freq = 1000 ms 6log_freq = 1000 ms
7 cfg_file = experiments/gnunet_ats_sim_default.conf 7log_prefix = set_preference
8 8cfg_file = experiments/gnunet_ats_sim_default.conf
9 9
10[episode-0] 10[episode-0]
11# Setup addresses 11# Setup addresses
12 12
13# operations = address_add, address_del, start_set_property, stop_set_property, 13# operations = address_add, address_del, start_set_property, stop_set_property,
14# start_set_preference, stop_preference, start_request, stop_request 14# start_set_preference, stop_preference, start_request, stop_request
15duration = 5 s 15duration = 2 s
16
16op-0-operation = address_add 17op-0-operation = address_add
17op-0-address-id = 0 18op-0-address-id = 0
18op-0-peer-id = 0 19op-0-peer-id = 0
19op-0-address-session = 0 20op-0-address-session = 0
20op-0-address-network = 0 21op-0-address-network = lan
21op-0-address = 0_0_test 22op-0-address = 0_0_test
22op-0-plugin = test 23op-0-plugin = test
23 24
@@ -25,7 +26,7 @@ op-1-operation = address_add
25op-1-address-id = 1 26op-1-address-id = 1
26op-1-peer-id = 1 27op-1-peer-id = 1
27op-1-address-session = 0 28op-1-address-session = 0
28op-1-address-network = 0 29op-1-address-network = lan
29op-1-address = 1_1_test 30op-1-address = 1_1_test
30op-1-plugin = test 31op-1-plugin = test
31 32
@@ -37,18 +38,18 @@ op-3-peer-id = 1
37 38
38[episode-1] 39[episode-1]
39# Set delay 40# Set delay
40duration = 1 s 41duration = 10 s
41 42
42op-0-operation = start_set_preference 43op-0-operation = start_set_preference
43op-0-address-id = 0 44op-0-address-id = 0
44op-0-peer-id = 0 45op-0-peer-id = 0
45op-0-client-id = 1 46op-0-client-id = 1
46# constant, linear, sinus, random 47# constant, linear, sinus, random
47op-0-gen-type = constant 48op-0-gen-type = linear
48op-0-base-rate= 10000 49op-0-base-rate= 1000
49op-0-max-rate = 10000 50op-0-max-rate = 10000
50op-0-period = 1000 ms 51op-0-period = 10 s
51op-0-frequency = 1000 ms 52op-0-frequency = 500 ms
52# BANDWIDTH, LATENCY 53# BANDWIDTH, LATENCY
53op-0-pref = BANDWIDTH 54op-0-pref = BANDWIDTH
54 55
@@ -58,12 +59,13 @@ op-1-address-id = 1
58op-1-peer-id = 1 59op-1-peer-id = 1
59op-1-client-id = 1 60op-1-client-id = 1
60# constant, linear, sinus, random 61# constant, linear, sinus, random
61op-1-gen-type = linear 62op-1-gen-type = constant
62op-1-base-rate= 10000 63op-1-base-rate= 1000
63op-1-max-rate = 20000 64op-1-max-rate = 1000
64op-1-period = 1000 ms 65op-1-period = 10 s
65op-1-frequency = 100 ms 66op-1-frequency = 500 ms
66op-1-prop = DELAY 67# BANDWIDTH, LATENCY
68op-1-pref = BANDWIDTH
67 69
68[episode-2] 70[episode-2]
69# Shutdown 71# Shutdown