aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_ats_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-08 11:46:36 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-08 11:46:36 +0000
commit6115a1150c65bd4a33ed61c6e96594c4a73d86ac (patch)
treef2bb2a57f540a3799cd112b5235f1c4222fd283e /src/include/gnunet_ats_service.h
parentcd0a6e382eafd7fd241a00a10527333d73985fca (diff)
downloadgnunet-6115a1150c65bd4a33ed61c6e96594c4a73d86ac.tar.gz
gnunet-6115a1150c65bd4a33ed61c6e96594c4a73d86ac.zip
more dead and duplicate code elimination
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r--src/include/gnunet_ats_service.h96
1 files changed, 9 insertions, 87 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h
index 188f9091b..0bfaeb65d 100644
--- a/src/include/gnunet_ats_service.h
+++ b/src/include/gnunet_ats_service.h
@@ -98,11 +98,6 @@ enum GNUNET_ATS_Network_Type
98 */ 98 */
99#define GNUNET_ATS_MaxBandwidthString "unlimited" 99#define GNUNET_ATS_MaxBandwidthString "unlimited"
100 100
101/**
102 * Number of property types supported by ATS
103 */
104#define GNUNET_ATS_PropertyCount 11
105
106 101
107/** 102/**
108 * Enum defining all known property types for ATS Enum values are used 103 * Enum defining all known property types for ATS Enum values are used
@@ -129,7 +124,7 @@ enum GNUNET_ATS_Property
129 * 124 *
130 * Unit: [bytes/second] 125 * Unit: [bytes/second]
131 */ 126 */
132 GNUNET_ATS_UTILIZATION_OUT, 127 GNUNET_ATS_UTILIZATION_OUT = 1,
133 128
134 /** 129 /**
135 * Actual traffic on this connection from the other peer to this peer. 130 * Actual traffic on this connection from the other peer to this peer.
@@ -137,29 +132,13 @@ enum GNUNET_ATS_Property
137 * 132 *
138 * Unit: [bytes/second] 133 * Unit: [bytes/second]
139 */ 134 */
140 GNUNET_ATS_UTILIZATION_IN, 135 GNUNET_ATS_UTILIZATION_IN = 2,
141
142 /**
143 * Actual traffic on this connection from this peer to the other peer.
144 * Only payload from layers > transport
145 *
146 * Unit: [bytes/second]
147 */
148 GNUNET_ATS_UTILIZATION_PAYLOAD_OUT,
149
150 /**
151 * Actual traffic on this connection from the other peer to this peer.
152 * Only payload from layers > transport
153 *
154 * Unit: [bytes/second]
155 */
156 GNUNET_ATS_UTILIZATION_PAYLOAD_IN,
157 136
158 /** 137 /**
159 * Is this address located in WAN, LAN or a loopback address 138 * Is this address located in WAN, LAN or a loopback address
160 * Value is element of GNUNET_ATS_Network_Type 139 * Value is element of GNUNET_ATS_Network_Type
161 */ 140 */
162 GNUNET_ATS_NETWORK_TYPE, 141 GNUNET_ATS_NETWORK_TYPE = 3,
163 142
164 /** 143 /**
165 * Delay 144 * Delay
@@ -173,77 +152,20 @@ enum GNUNET_ATS_Property
173 * WLAN : 2 152 * WLAN : 2
174 * Dialup: 500 153 * Dialup: 500
175 */ 154 */
176 GNUNET_ATS_QUALITY_NET_DELAY, 155 GNUNET_ATS_QUALITY_NET_DELAY = 4,
177 156
178 /** 157 /**
179 * Distance on network layer (required for distance-vector routing). 158 * Distance on network layer (required for distance-vector routing).
180 * 159 *
181 * Unit: [DV-hops] 160 * Unit: [DV-hops]
182 */ 161 */
183 GNUNET_ATS_QUALITY_NET_DISTANCE, 162 GNUNET_ATS_QUALITY_NET_DISTANCE = 5
184
185 /**
186 * Network overhead on WAN (Wide-Area Network)
187 *
188 * How many bytes are sent on the WAN when 1 kilobyte (1024 bytes)
189 * of application data is transmitted?
190 * A factor used with connect cost, bandwidth cost and energy cost
191 * to describe the overhead produced by the transport protocol
192 *
193 * Unit: [bytes/kb]
194 *
195 * Interpretation: less is better
196 *
197 * Examples:
198 *
199 * TCP/IPv4 over Ethernet: 1024 + 38 + 20 + 20 = 1102 [bytes/kb]
200 * TCP/IPv6 over Ethernet: 1024 + 38 + 20 + 40 = 1122 [bytes/kb]
201 * UDP/IPv4 over Ethernet: 1024 + 38 + 20 + 8 = 1090 [bytes/kb]
202 * UDP/IPv6 over Ethernet: 1024 + 38 + 40 + 8 = 1110 [bytes/kb]
203 */
204 GNUNET_ATS_COST_WAN,
205 163
206 /** 164/**
207 * Network overhead on LAN (Local-Area Network) 165 * Number of property types supported by ATS
208 * 166 */
209 * How many bytes are sent on the LAN when 1 kilobyte (1024 bytes) 167#define GNUNET_ATS_PropertyCount 6
210 * of application data is transmitted?
211 * A factor used with connect cost, bandwidth cost and energy cost
212 * to describe the overhead produced by the transport protocol
213 *
214 * Unit: [bytes/kb]
215 *
216 * Interpretation: less is better
217 *
218 * Examples:
219 *
220 * TCP/IPv4 over Ethernet: 1024 + 38 + 20 + 20 = 1102 [bytes/kb]
221 * TCP/IPv6 over Ethernet: 1024 + 38 + 20 + 40 = 1122 [bytes/kb]
222 * UDP/IPv4 over Ethernet: 1024 + 38 + 20 + 8 = 1090 [bytes/kb]
223 * UDP/IPv6 over Ethernet: 1024 + 38 + 40 + 8 = 1110 [bytes/kb]
224 */
225 GNUNET_ATS_COST_LAN,
226 168
227 /**
228 * Network overhead on WLAN (Wireless Local Area Network)
229 *
230 * How many bytes are sent on the LAN when 1 kilobyte (1024 bytes)
231 * of application data is transmitted?
232 * A factor used with connect cost, bandwidth cost and energy cost
233 * to describe the overhead produced by the transport protocol
234 *
235 * Unit: [bytes/kb]
236 *
237 * Interpretation: less is better
238 *
239 * Examples:
240 *
241 * TCP/IPv4 over Ethernet: 1024 + 38 + 20 + 20 = 1102 [bytes/kb]
242 * TCP/IPv6 over Ethernet: 1024 + 38 + 20 + 40 = 1122 [bytes/kb]
243 * UDP/IPv4 over Ethernet: 1024 + 38 + 20 + 8 = 1090 [bytes/kb]
244 * UDP/IPv6 over Ethernet: 1024 + 38 + 40 + 8 = 1110 [bytes/kb]
245 */
246 GNUNET_ATS_COST_WLAN
247 169
248}; 170};
249 171