aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-09-10 08:44:03 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-09-10 08:44:03 +0000
commitf363035eff30aa7e28ce2f561b7d7fd89a19f97f (patch)
tree4280e97082ccc491cf6a4c3e938ac60c569b99df /src
parent0429f53f9bd2e4c20da01f4e648eba1776473766 (diff)
downloadgnunet-f363035eff30aa7e28ce2f561b7d7fd89a19f97f.tar.gz
gnunet-f363035eff30aa7e28ce2f561b7d7fd89a19f97f.zip
more renaming from simplistic to proportional
Diffstat (limited to 'src')
-rw-r--r--src/ats/ats.conf.in4
-rw-r--r--src/ats/gnunet-service-ats-solver_proportional.c18
-rw-r--r--src/ats/gnunet-service-ats_addresses.h2
-rw-r--r--src/ats/test_ats_api.conf2
-rw-r--r--src/ats/test_ats_change_preference.c2
-rw-r--r--src/ats/test_ats_simplistic_change_preference.c2
-rw-r--r--src/ats/test_ats_simplistic_pref_aging.c4
7 files changed, 17 insertions, 17 deletions
diff --git a/src/ats/ats.conf.in b/src/ats/ats.conf.in
index 6879b4250..457e86c65 100644
--- a/src/ats/ats.conf.in
+++ b/src/ats/ats.conf.in
@@ -10,8 +10,8 @@ UNIXPATH = /tmp/gnunet-service-ats.sock
10UNIX_MATCH_UID = YES 10UNIX_MATCH_UID = YES
11UNIX_MATCH_GID = YES 11UNIX_MATCH_GID = YES
12 12
13# Designated assigment mode: simplistic / MLP 13# Designated assigment mode: PROPORTIONAL / MLP / RIL
14MODE = simplistic 14MODE = PROPORTIONAL
15 15
16# Network specific inbound/outbound quotas 16# Network specific inbound/outbound quotas
17UNSPECIFIED_QUOTA_IN = 64 KiB 17UNSPECIFIED_QUOTA_IN = 64 KiB
diff --git a/src/ats/gnunet-service-ats-solver_proportional.c b/src/ats/gnunet-service-ats-solver_proportional.c
index e36f04b5e..c9be2684b 100644
--- a/src/ats/gnunet-service-ats-solver_proportional.c
+++ b/src/ats/gnunet-service-ats-solver_proportional.c
@@ -37,9 +37,9 @@
37 * on gnunet.org:/vcs/fsnsg/ats-paper.git/tech-doku/ats-tech-guide.tex 37 * on gnunet.org:/vcs/fsnsg/ats-paper.git/tech-doku/ats-tech-guide.tex
38 * use build_txt.sh to generate plaintext output 38 * use build_txt.sh to generate plaintext output
39 * 39 *
40 * ATS addresses : simplistic solver 40 * ATS addresses : proportional solver
41 * 41 *
42 * The simplistic solver ("simplistic") distributes the available 42 * The proportional solver ("proportional") distributes the available
43 * bandwidth fair over all the addresses influenced by the 43 * bandwidth fair over all the addresses influenced by the
44 * preference values. For each available network type an in- and 44 * preference values. For each available network type an in- and
45 * outbound quota is configured and the bandwidth available in 45 * outbound quota is configured and the bandwidth available in
@@ -76,13 +76,13 @@
76 * is used to specify network related information as total adresses 76 * is used to specify network related information as total adresses
77 * and active addresses in this network and the configured in- and 77 * and active addresses in this network and the configured in- and
78 * outbound quota. Each network also contains a list of addresses 78 * outbound quota. Each network also contains a list of addresses
79 * added to the solver located in this network. The simplistic 79 * added to the solver located in this network. The proportional
80 * solver uses the addresses' solver_information field to store the 80 * solver uses the addresses' solver_information field to store the
81 * simplistic network it belongs to for each address. 81 * proportional network it belongs to for each address.
82 * 82 *
83 * 3.2 Initializing 83 * 3.2 Initializing
84 * 84 *
85 * When the simplistic solver is initialized the solver creates a 85 * When the proportional solver is initialized the solver creates a
86 * new solver handle and initializes the network structures with 86 * new solver handle and initializes the network structures with
87 * the quotas passed from addresses and returns the handle solver. 87 * the quotas passed from addresses and returns the handle solver.
88 * 88 *
@@ -95,7 +95,7 @@
95 * 3.4 Updating an address 95 * 3.4 Updating an address
96 * 96 *
97 * The main purpose of address updates is to update the ATS 97 * The main purpose of address updates is to update the ATS
98 * information for addresse selection. Important for the simplistic 98 * information for addresse selection. Important for the proportional
99 * solver is when an address switches network it is located 99 * solver is when an address switches network it is located
100 * in. This is common because addresses added by transport's 100 * in. This is common because addresses added by transport's
101 * validation mechanism are commonly located in 101 * validation mechanism are commonly located in
@@ -104,12 +104,12 @@
104 * return of payload data transport switches to the real network 104 * return of payload data transport switches to the real network
105 * the address is located in. When an address changes networks it 105 * the address is located in. When an address changes networks it
106 * is first of all removed from the old network using the solver 106 * is first of all removed from the old network using the solver
107 * API function GAS_simplistic_address_delete and the network in 107 * API function GAS_proportional_address_delete and the network in
108 * the address struct is updated. A lookup for the respective new 108 * the address struct is updated. A lookup for the respective new
109 * simplistic network is done and stored in the addresse's 109 * proportional network is done and stored in the addresse's
110 * solver_information field. Next the address is re-added to the 110 * solver_information field. Next the address is re-added to the
111 * solver using the solver API function 111 * solver using the solver API function
112 * GAS_simplistic_address_add. If the address was marked as in 112 * GAS_proportional_address_add. If the address was marked as in
113 * active, the solver checks if bandwidth is available in the 113 * active, the solver checks if bandwidth is available in the
114 * network and if yes sets the address to active and updates the 114 * network and if yes sets the address to active and updates the
115 * bandwidth distribution in this network. If no bandwidth is 115 * bandwidth distribution in this network. If no bandwidth is
diff --git a/src/ats/gnunet-service-ats_addresses.h b/src/ats/gnunet-service-ats_addresses.h
index 5fa8a4906..4f17fd912 100644
--- a/src/ats/gnunet-service-ats_addresses.h
+++ b/src/ats/gnunet-service-ats_addresses.h
@@ -116,7 +116,7 @@
116 * it as a value_number. If no configuration value is found it will assign 116 * it as a value_number. If no configuration value is found it will assign
117 * GNUNET_ATS_DefaultBandwidth. The most important step is to load the 117 * GNUNET_ATS_DefaultBandwidth. The most important step is to load the
118 * configured solver using configuration "[ats]:MODE". Current solvers are 118 * configured solver using configuration "[ats]:MODE". Current solvers are
119 * MODE_SIMPLISTIC, MODE_MLP. Interaction is done using a solver API 119 * MODE_PROPORTIONAL, MODE_MLP. Interaction is done using a solver API
120 * 120 *
121 * 1.4 Solver API 121 * 1.4 Solver API
122 * 122 *
diff --git a/src/ats/test_ats_api.conf b/src/ats/test_ats_api.conf
index c71ec9c1c..e4d7644ac 100644
--- a/src/ats/test_ats_api.conf
+++ b/src/ats/test_ats_api.conf
@@ -20,7 +20,7 @@ UNIX_MATCH_UID = YES
20UNIX_MATCH_GID = YES 20UNIX_MATCH_GID = YES
21 21
22# Enable MLP mode (default: NO) 22# Enable MLP mode (default: NO)
23MODE = SIMPLISTIC 23MODE = PROPORTIONAL
24#MODE = MLP 24#MODE = MLP
25# Network specific inbound/outbound quotas 25# Network specific inbound/outbound quotas
26# UNSPECIFIED 26# UNSPECIFIED
diff --git a/src/ats/test_ats_change_preference.c b/src/ats/test_ats_change_preference.c
index ff34d00d6..f6b91d36d 100644
--- a/src/ats/test_ats_change_preference.c
+++ b/src/ats/test_ats_change_preference.c
@@ -26,7 +26,7 @@
26 */ 26 */
27/** 27/**
28 * @file ats/test_ats_change_preferences.c 28 * @file ats/test_ats_change_preferences.c
29 * @brief test for ats simplistic solver preference aging: 29 * @brief test for ats proportional solver preference aging:
30 * Add 2 addresses and set high preference for one. Expect higher bw for this 30 * Add 2 addresses and set high preference for one. Expect higher bw for this
31 * address, wait. Preferences should age and so bw assigned should decrease. 31 * address, wait. Preferences should age and so bw assigned should decrease.
32 * @author Christian Grothoff 32 * @author Christian Grothoff
diff --git a/src/ats/test_ats_simplistic_change_preference.c b/src/ats/test_ats_simplistic_change_preference.c
index 80759b874..d5dbe9f9a 100644
--- a/src/ats/test_ats_simplistic_change_preference.c
+++ b/src/ats/test_ats_simplistic_change_preference.c
@@ -26,7 +26,7 @@
26 */ 26 */
27/** 27/**
28 * @file ats/test_ats_simplistic_change_preference.c 28 * @file ats/test_ats_simplistic_change_preference.c
29 * @brief test for changing preferences in ats simplistic solver 29 * @brief test for changing preferences in ats proportional solver
30 * @author Christian Grothoff 30 * @author Christian Grothoff
31 * @author Matthias Wachs 31 * @author Matthias Wachs
32 */ 32 */
diff --git a/src/ats/test_ats_simplistic_pref_aging.c b/src/ats/test_ats_simplistic_pref_aging.c
index 305eda1a5..0dc89d8ba 100644
--- a/src/ats/test_ats_simplistic_pref_aging.c
+++ b/src/ats/test_ats_simplistic_pref_aging.c
@@ -26,7 +26,7 @@
26 */ 26 */
27/** 27/**
28 * @file ats/test_ats_api_scheduling_add_address.c 28 * @file ats/test_ats_api_scheduling_add_address.c
29 * @brief test for ats simplistic solver preference aging: 29 * @brief test for ats proportional solver preference aging:
30 * Add 2 addresses and set high preference for one. Expect higher bw for this 30 * Add 2 addresses and set high preference for one. Expect higher bw for this
31 * address, wait. Preferences should age and so bw assigned should decrease. 31 * address, wait. Preferences should age and so bw assigned should decrease.
32 * @author Christian Grothoff 32 * @author Christian Grothoff
@@ -439,7 +439,7 @@ run (void *cls,
439int 439int
440main (int argc, char *argv[]) 440main (int argc, char *argv[])
441{ 441{
442 if (0 != GNUNET_TESTING_peer_run ("test_ats_simplistic_pref_aging", 442 if (0 != GNUNET_TESTING_peer_run ("test_ats_proportional_pref_aging",
443 "test_ats_api.conf", 443 "test_ats_api.conf",
444 &run, NULL)) 444 &run, NULL))
445 return 1; 445 return 1;