aboutsummaryrefslogtreecommitdiff
path: root/proposals/141-jit-sd-downloads.txt
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-08-05 16:29:20 +0000
committerPeter Palfrader <peter@palfrader.org>2008-08-05 16:29:20 +0000
commitf84db807cef35ad9d87c7073bfa0a78be940651e (patch)
tree8b4ca4970c10a7c3d63e6850f1dd6b72c0fa3905 /proposals/141-jit-sd-downloads.txt
parent39b69e6810a56e26ac512f5825f62d7e8cb0f208 (diff)
downloadtorspec-f84db807cef35ad9d87c7073bfa0a78be940651e.tar.gz
torspec-f84db807cef35ad9d87c7073bfa0a78be940651e.zip
We put bw info directory into the consensus, also versions are already there and protocol versions are not currently required
svn:r16423
Diffstat (limited to 'proposals/141-jit-sd-downloads.txt')
-rw-r--r--proposals/141-jit-sd-downloads.txt46
1 files changed, 19 insertions, 27 deletions
diff --git a/proposals/141-jit-sd-downloads.txt b/proposals/141-jit-sd-downloads.txt
index b6d27c8..9241089 100644
--- a/proposals/141-jit-sd-downloads.txt
+++ b/proposals/141-jit-sd-downloads.txt
@@ -119,28 +119,19 @@ Status: Draft
to the "r", "s", and "v" lines that already exist. This line
will convey weight information to clients.
- "w Exit=41 Guard=94 Middle=543 ..."
+ "w Bandwidth=193671"
- It starts with the letter w and then contains any number of Key=Value
- pairs. Values will be non-negative integers. Clients will pick
- routers with a propability proportional to the number for the intended
- purpose.
+ The bandwidth number is the lesser of observed bandwidth and bandwidth
+ rate limit from the server descriptor that the "r" line referenced by
+ digest (1st and 3rd field of the bandwidth line in the descriptor).
- Clients MUST accept sums of all weights for a given purpose over all
- routers in a consensus up to UINT64_max.
-
- [XXX how do we arrive at a consensus weight?
- option a) Perhaps the vote could contain the node's bandwidth, and
- this could be used to calculate the weights? It's
- necessary that the consensus remain a deterministic
- function of the votes.
- option b) Every voter assigns weights for each of the purposes
- (Exit, Guard, ..) so that their total sum is some constant
- X. When building a consensus we take the median for each
- purpose for each router.
-
- Option a has the disadvantage that if we want to tweak the weighting
- we have to make a new consensus-method]
+ The bandwidth item is added as another item in the router tuple
+ described in dir-spec section 3.4:
+ | * Two router entries are "the same" if they have the same
+ | <descriptor digest, published time, nickname, IP, ports> tuple.
+ | We choose the tuple for a given router as whichever tuple appears
+ | for that router in the most votes. We break ties in favor of
+ | the more recently published.
3.2 Fetching descriptors on demand
@@ -198,14 +189,15 @@ Status: Draft
3.3 Protocol versions
- [XXX: find out where we need "opt protocols Link 1 2 Circuit 1"
- information described in 2.3 above. If we need it, it might have
- to go into the consensus document.]
+ Server descriptors contain optional information of supported
+ link-level and circuit-level protocols in the form of
+ "opt protocols Link 1 2 Circuit 1". These are not currently needed
+ and will probably eventually move into the "v" (version) line in
+ the consensus. This proposal does not deal with them.
- [XXX: Similarly find out where we need the version number of a
- remote tor server. This information is in the consensus, but
- maybe we use it in some place where having it signed by the
- server in question is really important?]
+ Similarly a server descriptor contains the version number of
+ a Tor node. This information is already present in the consensus
+ and is thus available to all clients immediately.
3.4 Exit selection