diff options
-rw-r--r-- | src/ats/experiments/example.exp | 62 | ||||
-rw-r--r-- | src/ats/experiments/gnunet_ats_sim_default.conf | 6 |
2 files changed, 68 insertions, 0 deletions
diff --git a/src/ats/experiments/example.exp b/src/ats/experiments/example.exp new file mode 100644 index 000000000..708ce353e --- /dev/null +++ b/src/ats/experiments/example.exp | |||
@@ -0,0 +1,62 @@ | |||
1 | [experiment] | ||
2 | name = test | ||
3 | masters = 1 | ||
4 | slaves = 2 | ||
5 | max_duration = 15 s | ||
6 | log_freq = 100 ms | ||
7 | cfg_file = gnunet_ats_sim_default.conf | ||
8 | |||
9 | [episode-0] | ||
10 | # operations = address_add, address_del, start_set_property, stop_set_property, start_set_preference, stop_preference | ||
11 | duration = 2 s | ||
12 | op-0-operation = address_add | ||
13 | op-0-address-id = 0 | ||
14 | op-0-peer-id = 0 | ||
15 | op-0-address-session = 0 | ||
16 | op-0-address-network = 0 | ||
17 | op-0-address = 0_0_udp | ||
18 | op-0-plugin = udp | ||
19 | |||
20 | op-1-operation = start_set_preference | ||
21 | op-1-address-id = 0 | ||
22 | op-1-peer-id = 0 | ||
23 | # constant, linear, sinus, random | ||
24 | op-1-gen-type = random | ||
25 | op-1-base-rate= 10000 | ||
26 | op-1-max-rate = 10000 | ||
27 | op-1-frequency = 1 | ||
28 | # BANDWIDTH, LATENCY | ||
29 | op-1-pref = LATENCY | ||
30 | |||
31 | op-2-operation = start_set_property | ||
32 | op-2-address-id = 0 | ||
33 | op-2-peer-id = 0 | ||
34 | # constant, linear, sinus, random | ||
35 | op-2-gen-type = random | ||
36 | op-2-base-rate= 10000 | ||
37 | op-2-max-rate = 10000 | ||
38 | op-2-frequency = 1 | ||
39 | # bandwidth, latency | ||
40 | # "TERMINATOR", "UTILIZATION_UP", "UTILIZATION_DOWN", "UTILIZATION_PAYLOAD_UP", "UTILIZATION_PAYLOAD_DOWN", "NETWORK_TYPE", "DELAY", "DISTANCE", "COST_WAN", "COST_LAN", "COST_WLAN" | ||
41 | op-2-property = UTILIZATION_UP | ||
42 | |||
43 | [episode-1] | ||
44 | duration = 2 s | ||
45 | |||
46 | op-0-operation = address_del | ||
47 | op-0-address-id = 0 | ||
48 | op-0-peer-id = 0 | ||
49 | op-0-address-session = 0 | ||
50 | op-0-address-network = 0 | ||
51 | op-0-address = 0_0_udp | ||
52 | op-0-plugin = udp | ||
53 | |||
54 | op-1-operation = stop_set_preference | ||
55 | op-1-address-id = 0 | ||
56 | op-1-peer-id = 0 | ||
57 | op-1-pref = BANDWIDTH | ||
58 | |||
59 | op-2-operation = stop_set_property | ||
60 | op-2-address-id = 0 | ||
61 | op-2-peer-id = 0 | ||
62 | #op-2-property = UTILIZATION_UP \ No newline at end of file | ||
diff --git a/src/ats/experiments/gnunet_ats_sim_default.conf b/src/ats/experiments/gnunet_ats_sim_default.conf new file mode 100644 index 000000000..ca95eb923 --- /dev/null +++ b/src/ats/experiments/gnunet_ats_sim_default.conf | |||
@@ -0,0 +1,6 @@ | |||
1 | @INLINE@ template_perf_ats.conf | ||
2 | [transport] | ||
3 | plugins = unix | ||
4 | |||
5 | [ats] | ||
6 | MODE = PROPORTIONAL | ||