diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-06 15:50:20 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-06 15:50:20 +0000 |
commit | 6e198fdbfa22da72fadcae22b8797af76696b78a (patch) | |
tree | c5f5ff123a8670df80a7a286879f7e710aefe843 /src/ats/experiments | |
parent | 4e1baae59f18ee5d7cd47afe28ced3daaaa5a5ad (diff) | |
download | gnunet-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.exp | 13 | ||||
-rw-r--r-- | src/ats/experiments/set_preference.exp | 42 |
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 | 2 | name = test |
3 | max_duration = 15 s | 3 | max_duration = 15 s |
4 | log_freq = 1000 ms | 4 | log_freq = 1000 ms |
5 | cfg_file = experiments/gnunet_ats_sim_default.conf | 5 | cfg_file = experiments/gnunet_ats_sim_default.conf |
6 | 6 | log_output_dir = data/ | |
7 | 7 | log_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 | 4 | name = test |
5 | max_duration = 15 s | 5 | max_duration = 15 s |
6 | log_freq = 1000 ms | 6 | log_freq = 1000 ms |
7 | cfg_file = experiments/gnunet_ats_sim_default.conf | 7 | log_prefix = set_preference |
8 | 8 | cfg_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 |
15 | duration = 5 s | 15 | duration = 2 s |
16 | |||
16 | op-0-operation = address_add | 17 | op-0-operation = address_add |
17 | op-0-address-id = 0 | 18 | op-0-address-id = 0 |
18 | op-0-peer-id = 0 | 19 | op-0-peer-id = 0 |
19 | op-0-address-session = 0 | 20 | op-0-address-session = 0 |
20 | op-0-address-network = 0 | 21 | op-0-address-network = lan |
21 | op-0-address = 0_0_test | 22 | op-0-address = 0_0_test |
22 | op-0-plugin = test | 23 | op-0-plugin = test |
23 | 24 | ||
@@ -25,7 +26,7 @@ op-1-operation = address_add | |||
25 | op-1-address-id = 1 | 26 | op-1-address-id = 1 |
26 | op-1-peer-id = 1 | 27 | op-1-peer-id = 1 |
27 | op-1-address-session = 0 | 28 | op-1-address-session = 0 |
28 | op-1-address-network = 0 | 29 | op-1-address-network = lan |
29 | op-1-address = 1_1_test | 30 | op-1-address = 1_1_test |
30 | op-1-plugin = test | 31 | op-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 |
40 | duration = 1 s | 41 | duration = 10 s |
41 | 42 | ||
42 | op-0-operation = start_set_preference | 43 | op-0-operation = start_set_preference |
43 | op-0-address-id = 0 | 44 | op-0-address-id = 0 |
44 | op-0-peer-id = 0 | 45 | op-0-peer-id = 0 |
45 | op-0-client-id = 1 | 46 | op-0-client-id = 1 |
46 | # constant, linear, sinus, random | 47 | # constant, linear, sinus, random |
47 | op-0-gen-type = constant | 48 | op-0-gen-type = linear |
48 | op-0-base-rate= 10000 | 49 | op-0-base-rate= 1000 |
49 | op-0-max-rate = 10000 | 50 | op-0-max-rate = 10000 |
50 | op-0-period = 1000 ms | 51 | op-0-period = 10 s |
51 | op-0-frequency = 1000 ms | 52 | op-0-frequency = 500 ms |
52 | # BANDWIDTH, LATENCY | 53 | # BANDWIDTH, LATENCY |
53 | op-0-pref = BANDWIDTH | 54 | op-0-pref = BANDWIDTH |
54 | 55 | ||
@@ -58,12 +59,13 @@ op-1-address-id = 1 | |||
58 | op-1-peer-id = 1 | 59 | op-1-peer-id = 1 |
59 | op-1-client-id = 1 | 60 | op-1-client-id = 1 |
60 | # constant, linear, sinus, random | 61 | # constant, linear, sinus, random |
61 | op-1-gen-type = linear | 62 | op-1-gen-type = constant |
62 | op-1-base-rate= 10000 | 63 | op-1-base-rate= 1000 |
63 | op-1-max-rate = 20000 | 64 | op-1-max-rate = 1000 |
64 | op-1-period = 1000 ms | 65 | op-1-period = 10 s |
65 | op-1-frequency = 100 ms | 66 | op-1-frequency = 500 ms |
66 | op-1-prop = DELAY | 67 | # BANDWIDTH, LATENCY |
68 | op-1-pref = BANDWIDTH | ||
67 | 69 | ||
68 | [episode-2] | 70 | [episode-2] |
69 | # Shutdown | 71 | # Shutdown |