diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-08-14 17:12:05 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-08-14 17:12:05 -0400 |
commit | b9e45cc508b6fbf596e1ba40761e11d0629a3291 (patch) | |
tree | 7d099a8223b0527cb500bd634f36af33e85fa5dd /doc | |
parent | e0dc2e907eb029bd4e3d7933ef72f3ff942a9b81 (diff) | |
parent | 9e1fe29bebf57fc38975c552eefaa9cb97dd5c68 (diff) | |
download | tor-b9e45cc508b6fbf596e1ba40761e11d0629a3291.tar.gz tor-b9e45cc508b6fbf596e1ba40761e11d0629a3291.zip |
Merge commit 'mikeperry/bandwidth-voting-final'
Diffstat (limited to 'doc')
-rw-r--r-- | doc/spec/dir-spec.txt | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/doc/spec/dir-spec.txt b/doc/spec/dir-spec.txt index 0a3b0c11bc..4bec7b00d0 100644 --- a/doc/spec/dir-spec.txt +++ b/doc/spec/dir-spec.txt @@ -1029,13 +1029,20 @@ descriptors if they would cause "v" lines to be over 128 characters long. - "w" SP "Bandwidth=" INT NL + "w" SP "Bandwidth=" INT [SP "Measured=" INT] NL [At most once.] An estimate of the bandwidth of this server, in an arbitrary unit (currently kilobytes per second). Used to weight router - selection. Other weighting keywords may be added later. + selection. + + Additionally, the Measured= keyword is present in votes by + participating bandwidth measurement authorites to indicate + a measured bandwidth currently produced by measuring stream + capacities. + + Other weighting keywords may be added later. Clients MUST ignore keywords they do not recognize. "p" SP ("accept" / "reject") SP PortList NL @@ -1178,6 +1185,13 @@ rate limit from the router descriptor. It is given in kilobytes per second, and capped at some arbitrary value (currently 10 MB/s). + The Measured= keyword on a "w" line vote is currently computed + by multiplying the previous published consensus bandwidth by the + ratio of the measured average node stream capacity to the network + average. If 3 or more authorities provide a Measured= keyword for + a router, the authorites produce a consensus containing a "w" + Bandwidth= keyword equal to the median of the Measured= votes. + The ports listed in a "p" line should be taken as those ports for which the router's exit policy permits 'most' addresses, ignoring any accept not for all addresses, ignoring all rejects for private @@ -1260,6 +1274,11 @@ one, breaking ties in favor of the lexicographically larger vote.) The port list is encoded as specified in 3.4.2. + * If consensus-method 6 or later is in use and if 3 or more + authorities provide a Measured= keyword in their votes for + a router, the authorities produce a consensus containing a + Bandwidth= keyword equal to the median of the Measured= votes. + The signatures at the end of a consensus document are sorted in ascending order by identity digest. @@ -1280,6 +1299,7 @@ "3" -- Added legacy ID key support to aid in authority ID key rollovers "4" -- No longer list routers that are not running in the consensus "5" -- adds support for "w" and "p" lines. + "6" -- Prefers measured bandwidth values rather than advertised Before generating a consensus, an authority must decide which consensus method to use. To do this, it looks for the highest version number |