aboutsummaryrefslogtreecommitdiff
path: root/doc/spec/tor-spec.txt
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-12-09 23:30:50 +0000
committerRoger Dingledine <arma@torproject.org>2008-12-09 23:30:50 +0000
commit3a3d2ec4d63417f0a790864754bf32e545c622b3 (patch)
tree73d5318401a1a854458569a05e03c6f288cfc4a3 /doc/spec/tor-spec.txt
parentd60d8976b921d141ffaeee43cd87cd2bc43c3654 (diff)
downloadtor-3a3d2ec4d63417f0a790864754bf32e545c622b3.tar.gz
tor-3a3d2ec4d63417f0a790864754bf32e545c622b3.zip
summarize proposal 111 in tor-spec
svn:r17544
Diffstat (limited to 'doc/spec/tor-spec.txt')
-rw-r--r--doc/spec/tor-spec.txt19
1 files changed, 16 insertions, 3 deletions
diff --git a/doc/spec/tor-spec.txt b/doc/spec/tor-spec.txt
index 4603060478..642c695b60 100644
--- a/doc/spec/tor-spec.txt
+++ b/doc/spec/tor-spec.txt
@@ -885,12 +885,26 @@ see tor-design.pdf.
7.1. Link throttling
- Each node should do appropriate bandwidth throttling to keep its
- user happy.
+ Each client or relay should do appropriate bandwidth throttling to
+ keep its user happy.
Communicants rely on TCP's default flow control to push back when they
stop reading.
+ The mainline Tor implementation uses token buckets (one for reads,
+ one for writes) for the rate limiting.
+
+ Since 0.2.0.x, Tor has let the user specify an additional pair of
+ token buckets for "relayed" traffic, so people can deploy a Tor relay
+ with strict rate limiting, but also use the same Tor as a client. To
+ avoid partitioning concerns we combine both classes of traffic over a
+ given OR connection, and keep track of the last time we read or wrote
+ a high-priority (non-relayed) cell. If it's been less than N seconds
+ (currently N=30), we give the whole connection high priority, else we
+ give the whole connection low priority. We also give low priority
+ to reads and writes for connections that are serving directory
+ information. See proposal 111 for details.
+
7.2. Link padding
Link padding can be created by sending PADDING cells along the
@@ -942,7 +956,6 @@ see tor-design.pdf.
cells when both a) the window is <= 450, and b) there are less than
ten cell payloads remaining to be flushed at that edge.
-
A.1. Differences between spec and implementation
- The current specification requires all ORs to have IPv4 addresses, but