diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-02-11 14:07:59 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-02-11 14:07:59 +0000 |
commit | 84faee523650bb8613d67f99777e990a7497bf73 (patch) | |
tree | d40b4efb0eb53b2f618787756adb84988314ab6f /src/ats/experiments | |
parent | a5b4af52529d598adc78ae86621f8803d12eef8f (diff) | |
download | gnunet-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.exp | 10 | ||||
-rw-r--r-- | src/ats/experiments/set_preference.exp | 93 |
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 | |||
101 | op-2-address = 1_1_test | 101 | op-2-address = 1_1_test |
102 | op-2-plugin = test | 102 | op-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 | ||
15 | duration = 5 s | ||
16 | op-0-operation = address_add | ||
17 | op-0-address-id = 0 | ||
18 | op-0-peer-id = 0 | ||
19 | op-0-address-session = 0 | ||
20 | op-0-address-network = 0 | ||
21 | op-0-address = 0_0_test | ||
22 | op-0-plugin = test | ||
23 | |||
24 | op-1-operation = address_add | ||
25 | op-1-address-id = 1 | ||
26 | op-1-peer-id = 1 | ||
27 | op-1-address-session = 0 | ||
28 | op-1-address-network = 0 | ||
29 | op-1-address = 1_1_test | ||
30 | op-1-plugin = test | ||
31 | |||
32 | op-2-operation = start_request | ||
33 | op-2-peer-id = 0 | ||
34 | |||
35 | op-3-operation = start_request | ||
36 | op-3-peer-id = 1 | ||
37 | |||
38 | [episode-1] | ||
39 | # Set delay | ||
40 | duration = 5 s | ||
41 | |||
42 | op-0-operation = start_set_preference | ||
43 | op-0-address-id = 0 | ||
44 | op-0-peer-id = 0 | ||
45 | op-0-client-id = 1 | ||
46 | # constant, linear, sinus, random | ||
47 | op-0-gen-type = constant | ||
48 | op-0-base-rate= 10000 | ||
49 | op-0-max-rate = 10000 | ||
50 | op-0-period = 1000 ms | ||
51 | op-0-frequency = 1000 ms | ||
52 | # BANDWIDTH, LATENCY | ||
53 | op-0-pref = BANDWIDTH | ||
54 | |||
55 | |||
56 | op-1-operation = start_set_preference | ||
57 | op-1-address-id = 1 | ||
58 | op-1-peer-id = 1 | ||
59 | op-1-client-id = 1 | ||
60 | # constant, linear, sinus, random | ||
61 | op-1-gen-type = linear | ||
62 | op-1-base-rate= 10000 | ||
63 | op-1-max-rate = 20000 | ||
64 | op-1-period = 1000 ms | ||
65 | op-1-frequency = 100 ms | ||
66 | # BANDWIDTH, LATENCY | ||
67 | op-1-pref = BANDWIDTH | ||
68 | |||
69 | [episode-2] | ||
70 | # Shutdown | ||
71 | duration = 2 s | ||
72 | |||
73 | op-0-operation = stop_request | ||
74 | op-0-peer-id = 0 | ||
75 | |||
76 | op-1-operation = stop_request | ||
77 | op-1-peer-id = 1 | ||
78 | |||
79 | op-2-operation = address_del | ||
80 | op-2-address-id = 0 | ||
81 | op-2-peer-id = 0 | ||
82 | op-2-address-session = 0 | ||
83 | op-2-address-network = 0 | ||
84 | op-2-address = 0_0_test | ||
85 | op-2-plugin = test | ||
86 | |||
87 | op-3-operation = address_del | ||
88 | op-3-address-id = 1 | ||
89 | op-3-peer-id = 1 | ||
90 | op-3-address-session = 0 | ||
91 | op-3-address-network = 0 | ||
92 | op-3-address = 1_1_test | ||
93 | op-3-plugin = test | ||