aboutsummaryrefslogtreecommitdiff
path: root/bandwidth-file-spec.txt
diff options
context:
space:
mode:
authorGeorg Koppen <gk@torproject.org>2021-03-22 10:28:52 +0000
committerGeorg Koppen <gk@torproject.org>2021-03-22 10:37:51 +0000
commite6b05bf44888ba35735e5293e4faa79a3cbac66d (patch)
treee68b1cda6555e27cdb6093a8139f3d998bc02908 /bandwidth-file-spec.txt
parentbaf7bc9cf7d474e77daa9922471c2b090d90053d (diff)
downloadtorspec-e6b05bf44888ba35735e5293e4faa79a3cbac66d.tar.gz
torspec-e6b05bf44888ba35735e5293e4faa79a3cbac66d.zip
Clarify Torflow's aggregation steps
Closes torspec#40.
Diffstat (limited to 'bandwidth-file-spec.txt')
-rw-r--r--bandwidth-file-spec.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/bandwidth-file-spec.txt b/bandwidth-file-spec.txt
index fdb5bd5..924623e 100644
--- a/bandwidth-file-spec.txt
+++ b/bandwidth-file-spec.txt
@@ -1166,7 +1166,7 @@ B.3. Quota changes
consensus diffs and compressed consensuses. But if the relay
quota is too small, some relays may be over- or under-weighted.
-B.4. Torflow aggreation
+B.4. Torflow aggregation
Torflow implements two methods to compute the bandwidth values from the
(stream) bandwidth measurements: with and without PID control feedback.
@@ -1192,9 +1192,9 @@ B.4. Torflow aggreation
measured (`n`), ie, calculate the mean average of the relays'
filtered bandwidth.
- calculate the stream average by dividing the sum of all the
- relays' filtered bandwidth by the number of relays that have been
+ relays' measured bandwidth by the number of relays that have been
measured (`n`), ie, calculate the mean average or the relays'
- measured bandwidth.
+ measured bandwidth.
In pseudocode:
@@ -1213,8 +1213,8 @@ B.4. Torflow aggreation
r_strm_i = bw_i / bw_avg_strm
4. Calculate the final ratio for each relay:
- The final ratio is the larger between the filtered bandwidth and the
- stream bandwidth.
+ The final ratio is the larger between the filtered bandwidth's and the
+ stream bandwidth's ratio.
In pseudocode: