diff options
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/transport_selection.h | 115 |
1 files changed, 103 insertions, 12 deletions
diff --git a/src/transport/transport_selection.h b/src/transport/transport_selection.h index b8080a9a1..249285ae1 100644 --- a/src/transport/transport_selection.h +++ b/src/transport/transport_selection.h | |||
@@ -135,7 +135,8 @@ enum GNUNET_ATS_Property | |||
135 | */ | 135 | */ |
136 | GNUNET_ATS_COST_ENERGY_CONSUMPTION = 4, | 136 | GNUNET_ATS_COST_ENERGY_CONSUMPTION = 4, |
137 | 137 | ||
138 | /* Connect cost | 138 | /** |
139 | * Connect cost | ||
139 | * How many bytes are transmitted to initiate a new connection using this transport? | 140 | * How many bytes are transmitted to initiate a new connection using this transport? |
140 | * | 141 | * |
141 | * Unit: [bytes] | 142 | * Unit: [bytes] |
@@ -152,7 +153,9 @@ enum GNUNET_ATS_Property | |||
152 | * */ | 153 | * */ |
153 | GNUNET_ATS_COST_CONNECT = 5, | 154 | GNUNET_ATS_COST_CONNECT = 5, |
154 | 155 | ||
155 | /* Bandwidth cost | 156 | /** |
157 | * Bandwidth cost | ||
158 | * | ||
156 | * How many bandwidth is available to consume? | 159 | * How many bandwidth is available to consume? |
157 | * Used to calculate which impact sending data with this transport has | 160 | * Used to calculate which impact sending data with this transport has |
158 | * | 161 | * |
@@ -168,7 +171,9 @@ enum GNUNET_ATS_Property | |||
168 | */ | 171 | */ |
169 | GNUNET_ATS_COST_BANDWITH_AVAILABLE = 6, | 172 | GNUNET_ATS_COST_BANDWITH_AVAILABLE = 6, |
170 | 173 | ||
171 | /* Network overhead | 174 | /** |
175 | * Network overhead | ||
176 | * | ||
172 | * How many bytes are sent over the wire when 1 kilobyte (1024 bytes) of application data is transmitted? | 177 | * How many bytes are sent over the wire when 1 kilobyte (1024 bytes) of application data is transmitted? |
173 | * A factor used with connect cost, bandwidth cost and energy cost to describe the overhead produced by the transport protocol | 178 | * A factor used with connect cost, bandwidth cost and energy cost to describe the overhead produced by the transport protocol |
174 | * | 179 | * |
@@ -191,25 +196,111 @@ enum GNUNET_ATS_Property | |||
191 | 196 | ||
192 | /* Physical layer quality properties */ | 197 | /* Physical layer quality properties */ |
193 | 198 | ||
194 | GNUNET_ATS_PHY_SIGNAL_STRENGTH = 1025, | 199 | /** |
200 | * Signal strength on physical layer | ||
201 | * | ||
202 | * Unit: [dBm] | ||
203 | */ | ||
204 | GNUNET_ATS_QUALITY_PHY_SIGNAL_STRENGTH = 1025, | ||
195 | 205 | ||
196 | GNUNET_ATS_PHY_COLLISION_RATE = 1026, | 206 | /** |
207 | * Collision rate on physical layer | ||
208 | * | ||
209 | * Unit: [B/s] | ||
210 | */ | ||
211 | GNUNET_ATS_QUALITY_PHY_COLLISION_RATE = 1026, | ||
197 | 212 | ||
198 | GNUNET_ATS_PHY_ERROR_RATE = 1027, | 213 | /** |
214 | * Error rate on physical layer | ||
215 | * | ||
216 | * Unit: [B/s] | ||
217 | */ | ||
218 | GNUNET_ATS_QUALITY_PHY_ERROR_RATE = 1027, | ||
199 | 219 | ||
200 | /* Network layer quality properties */ | 220 | /* Network layer quality properties */ |
201 | 221 | ||
202 | GNUNET_ATS_NET_DELAY = 1028, | 222 | /** |
223 | * Delay | ||
224 | * Time between when the time packet is sent and the packet arrives | ||
225 | * | ||
226 | * Unit: [μs] | ||
227 | * | ||
228 | * Examples: | ||
229 | * | ||
230 | * LAN : 180 | ||
231 | * Dialup: 4000 | ||
232 | * WLAN : 7000 | ||
233 | */ | ||
234 | GNUNET_ATS_QUALITY_NET_DELAY = 1028, | ||
203 | 235 | ||
204 | GNUNET_ATS_NET_LOSSRATE = 1029, | 236 | /** |
237 | * Jitter | ||
238 | * Time variations of the delay | ||
239 | * 1st derivative of a delay function | ||
240 | * | ||
241 | * Unit: [μs] | ||
242 | */ | ||
243 | GNUNET_ATS_QUALITY_NET_JITTER = 1029, | ||
205 | 244 | ||
206 | GNUNET_ATS_NET_ERRORRATE = 1030, | 245 | /** |
246 | * Error rate on network layer | ||
247 | * | ||
248 | * Unit: [B/s] | ||
249 | * | ||
250 | * Examples: | ||
251 | * | ||
252 | * LAN : 0 | ||
253 | * WLAN : 400 | ||
254 | * Bluetooth : 100 | ||
255 | * Note: This numbers are just assumptions as an example, not measured or somehow determined | ||
256 | */ | ||
257 | GNUNET_ATS_QUALITY_NET_ERRORRATE = 1030, | ||
207 | 258 | ||
208 | GNUNET_ATS_NET_DROPRATE = 1031, | 259 | /** |
260 | * Drop rate on network layer | ||
261 | * Bytes actively dismissed by a network component during transmission | ||
262 | * Reasons for dropped data can be full queues, congestion, quota violations... | ||
263 | * | ||
264 | * Unit: [B/s] | ||
265 | * | ||
266 | * Examples: | ||
267 | * | ||
268 | * LAN : 0 | ||
269 | * WLAN : 400 | ||
270 | * Bluetooth : 100 | ||
271 | * Note: This numbers are just assumptions as an example, not measured or somehow determined | ||
272 | */ | ||
273 | GNUNET_ATS_QUALITY_NET_DROPRATE = 1031, | ||
209 | 274 | ||
210 | GNUNET_ATS_NET_JITTER = 1032, | 275 | /** |
276 | * Loss rate on network layer | ||
277 | * Bytes lost during transmission | ||
278 | * Reasons can be collisions, ... | ||
279 | * | ||
280 | * Unit: [B/s] | ||
281 | * | ||
282 | * Examples: | ||
283 | * | ||
284 | * LAN : 0 | ||
285 | * WLAN : 40 | ||
286 | * Bluetooth : 10 | ||
287 | * Note: This numbers are just assumptions as an example, not measured or somehow determined | ||
288 | */ | ||
289 | GNUNET_ATS_QUALITY_NET_LOSSRATE = 1032, | ||
211 | 290 | ||
212 | GNUNET_ATS_NET_THROUGHPUT = 1033 | 291 | /** |
292 | * Throughput on network layer | ||
293 | * | ||
294 | * Unit: [kB/s] | ||
295 | * | ||
296 | * Examples: | ||
297 | * | ||
298 | * LAN : 3400 | ||
299 | * WLAN : 1200 | ||
300 | * Dialup: 4 | ||
301 | * | ||
302 | */ | ||
303 | GNUNET_ATS_QUALITY_NET_THROUGHPUT = 1033 | ||
213 | }; | 304 | }; |
214 | 305 | ||
215 | /** | 306 | /** |