diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-07-28 22:14:39 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-07-28 22:14:39 +0000 |
commit | 76a408941c98f7d7a1667ac93e9f42acf99a87f9 (patch) | |
tree | 38d062ca3a460f9993e4a883979865b966401494 /doc | |
parent | afe9f33d35842f129d8fa363f109f643aeffef2f (diff) | |
download | tor-76a408941c98f7d7a1667ac93e9f42acf99a87f9.tar.gz tor-76a408941c98f7d7a1667ac93e9f42acf99a87f9.zip |
r13959@catbus: nickm | 2007-07-28 18:09:56 -0400
Use the correct formula to calculate exit weights.
svn:r10956
Diffstat (limited to 'doc')
-rw-r--r-- | doc/spec/path-spec.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/spec/path-spec.txt b/doc/spec/path-spec.txt index 01a2687234..05d9e8dcba 100644 --- a/doc/spec/path-spec.txt +++ b/doc/spec/path-spec.txt @@ -189,7 +189,11 @@ of their choices. on the fraction of bandwidth available from non-Exit nodes. Call the total clipped advertised bandwidth for Exit nodes under consideration E, and the total clipped advertised bandwidth for non-Exit nodes under - consideration N. If E<N/2, we do not consider Exit-flagged nodes. + and the total clipped advertised bandwidth for all nodes under + consideration T. If E<T/3, we do not consider Exit-flagged nodes. + Otherwise, we weight their bandwidth with the factor 1-T/(3E). This + ensures that bandwidth is evenly distributed over nodes in 3-hop paths. + Otherwise, we weight their bandwidth with the factor (E-N/2)/(N+E-N/2) == (2E - N)/(2E + N). This ensures that bandwidth is evenly distributed over nodes in 3-hop paths. |