[or-cvs] r15120: flesh out some more sections of my bootstrap status event pl (tor/trunk/doc/spec/proposals/ideas)

arma at seul.org arma at seul.org
Wed Jun 11 04:09:36 UTC 2008


Author: arma
Date: 2008-06-11 00:09:35 -0400 (Wed, 11 Jun 2008)
New Revision: 15120

Modified:
   tor/trunk/doc/spec/proposals/ideas/xxx-bootstrap-phases.txt
Log:
flesh out some more sections of my bootstrap status event plan


Modified: tor/trunk/doc/spec/proposals/ideas/xxx-bootstrap-phases.txt
===================================================================
--- tor/trunk/doc/spec/proposals/ideas/xxx-bootstrap-phases.txt	2008-06-11 03:21:03 UTC (rev 15119)
+++ tor/trunk/doc/spec/proposals/ideas/xxx-bootstrap-phases.txt	2008-06-11 04:09:35 UTC (rev 15120)
@@ -17,8 +17,9 @@
   This proposal describes a new client status event so Tor can give
   more details to the controller. Section 2 describes the changes to the
   controller protocol; Section 3 describes Tor's internal bootstrapping
-  phases, both when everything is going correctly and when Tor detects
-  a problem and issues a bootstrap warning.
+  phases when everything is going correctly; Section 4 describes when
+  Tor detects a problem and issues a bootstrap warning; Section 5 covers
+  suggestions for how controllers should display the results.
 
 2. Controller event syntax.
 
@@ -29,7 +30,7 @@
 
   So in this case we send
   650 STATUS_CLIENT NOTICE/WARN BOOTSTRAP \
-  PROGRESS=num TAG=string SUMMARY=string WARNING=string
+  PROGRESS=num TAG=string SUMMARY=string WARNING=string REASON=string
 
   "Progress" gives a number between 0 and 100 for how far through
   the bootstrapping process we are. "Summary" is a string that can be
@@ -42,14 +43,10 @@
   The severity describes whether this is a normal bootstrap phase
   (severity notice) or an indication of a bootstrapping problem
   (severity warn). If severity warn, it should also include a "warning"
-  argument with any hints Tor has to offer about why it's having troubles
-  bootstrapping.
+  argument string with any hints Tor has to offer about why it's having
+  troubles bootstrapping, and a "reason" string that lists of the reasons
+  allowed in the ORConn event.
 
-  It is suggested that controllers start out in phase 0 ("starting"), and
-  then watch for either a bootstrap status event (meaning the Tor they're
-  using is sufficiently new to produce them) or a circuit_established
-  status event (meaning bootstrapping is finished).
-
 3. The bootstrap phases.
 
   This section describes the various phases currently reported by
@@ -173,3 +170,47 @@
   A full 3-hop circuit has been established. Tor is ready to handle
   application connections now.
 
+4. Bootstrap problem events.
+
+  When an OR Conn fails, we send a "bootstrap problem" status event, which
+  is like the standard bootstrap status event except with severity warn.
+  We include the same progress, tag, and summary values as we would for
+  a normal bootstrap event, but we also include 'warning' and 'reason'
+  strings.
+
+  The reason string is the same argument as the reason string for ORCONN
+  failure events; the controller can recognize the various reasons
+  and help the user accordingly. The warning string currently tries to
+  provide the equivalent of strerror() -- this isn't very useful if the
+  controller can recognize reason tags and be smarter, but for a very
+  simple controller it should be better than nothing.
+
+  Currently Tor ignores the first nine bootstrap problem reports for
+  a given phase, reports the tenth to the controller, and then ignores
+  further problems at that phase. Hopefully this is a good balance between
+  tolerating occasional errors and reporting serious problems quickly. (We
+  will want to revisit this approach if there are many different 'reason'
+  values being reported among the first ten problem reports, since in
+  this case the controller will only hear one of them.)
+
+5. Suggested controller behavior.
+
+  Controllers should start out with a yellow onion or the equivalent
+  ("starting"), and then watch for either a bootstrap status event
+  (meaning the Tor they're using is sufficiently new to produce them,
+  and they should load up the progress bar or whatever they plan to use
+  to indicate progress) or a circuit_established status event (meaning
+  bootstrapping is finished).
+
+  In addition to a progress bar in the display, controllers should also
+  have some way to indicate progress even when no controller window is
+  open. For example, folks using Tor Browser Bundle in hostile Internet
+  cafes don't want a big splashy screen up. One way to let the user keep
+  informed of progress in a more subtle way is to change the task tray
+  icon and/or tooltip string as more bootstrap events come in.
+
+  Controllers should also have some mechanism to alert their user when
+  bootstrapping problems are reported. Perhaps we should gather a set of
+  help texts and the controller can send the user to the right anchor in a
+  "bootstrapping problems" help page?
+



More information about the tor-commits mailing list