Re: [tor-bugs] #22355 [Core Tor/Tor]: Update dir-spec with client fallback directory mirror attempt and timeout behaviour

2017-09-25 Thread Tor Bug Tracker & Wiki
#22355: Update dir-spec with client fallback directory mirror attempt and 
timeout
behaviour
+
 Reporter:  teor|  Owner:  (none)
 Type:  defect  | Status:  new
 Priority:  Medium  |  Milestone:  Tor: 0.3.2.x-final
Component:  Core Tor/Tor|Version:
 Severity:  Normal  | Resolution:
 Keywords:  tor-spec, spec  |  Actual Points:
Parent ID:  | Points:  0.5
 Reviewer:  |Sponsor:
+
Changes (by catalyst):

 * cc: catalyst (added)


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #22355 [Core Tor/Tor]: Update dir-spec with client fallback directory mirror attempt and timeout behaviour

2017-09-25 Thread Tor Bug Tracker & Wiki
#22355: Update dir-spec with client fallback directory mirror attempt and 
timeout
behaviour
+
 Reporter:  teor|  Owner:  (none)
 Type:  defect  | Status:  new
 Priority:  Medium  |  Milestone:  Tor: 0.3.2.x-final
Component:  Core Tor/Tor|Version:
 Severity:  Normal  | Resolution:
 Keywords:  tor-spec, spec  |  Actual Points:
Parent ID:  | Points:  0.5
 Reviewer:  |Sponsor:
+
Changes (by nickm):

 * cc: teor (added)


Comment:

 teor, may I assign this one to you?  It's okay to defer to 0.3.3.x, or to
 do it any time on the 0.3.2.x timeframe.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #22355 [Core Tor/Tor]: Update dir-spec with client fallback directory mirror attempt and timeout behaviour

2017-05-28 Thread Tor Bug Tracker & Wiki
#22355: Update dir-spec with client fallback directory mirror attempt and 
timeout
behaviour
--+
 Reporter:  teor  |  Owner:
 Type:  defect| Status:  new
 Priority:  Medium|  Milestone:  Tor: 0.3.2.x-final
Component:  Core Tor/Tor  |Version:
 Severity:  Normal| Resolution:
 Keywords:  torspec   |  Actual Points:
Parent ID:| Points:  0.5
 Reviewer:|Sponsor:
--+

Comment (by teor):

 It's also worth noting that the relevant comment in the source code is out
 of date due to exponential backoff, and the behaviour will also be
 modified by #17750:

 https://gitweb.torproject.org/tor.git/tree/src/or/config.c#n559

 For a summary, see #22421, the most relevant lines are:

 {{{
* Clients with only authorities will try:
*  - at least 3 authorities over 10 seconds, then exponentially
 backoff,
*with the next attempt 3-21 seconds later,
* Clients with authorities and fallbacks will try:
*  - at least 2 authorities and 4 fallbacks over 21 seconds, then
*exponentially backoff, with the next attempts 4-33 seconds later,
 }}}

 Other background info:

 The schedules are a list of maximum delays, and the multiplier is 3 (in
 test networks, 2).

 Each attempt occurs after a random delay between (last_delay + 1) and
 (min(last_delay*3, scledule_max_delay) + 1).

 Calculating for authorities and fallbacks separately:

 If 90% of fallbacks are up (and not censored), we expect at least 99.99%
 of clients to try a fallback that is up within the first 16 seconds
 (trying at most 4 fallbacks). (We try to rebuild the list when 10% of
 fallbacks go down.)

 If 7/8 authorities are up (and not censored), we expect 100% of clients to
 try an authority that is up within the first 17 seconds (trying at most 2
 authorities). (I'm not sure what the stats are on how many authorities are
 ever down at the same time.)

 So, to answer your original question, a reasonable timeout is 17 seconds +
 (SSL establishment time) + (the time it takes to download a consensus,
 certificates, and relay descriptors). We aimed for 30 seconds, because
 that's when Linda's study found that most users give up.

 Or if you can get an event when the client connects to a directory server,
 you can be smarter about keeping on trying, or giving up at around 20-25
 seconds.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #22355 [Core Tor/Tor]: Update dir-spec with client fallback directory mirror attempt and timeout behaviour

2017-05-23 Thread Tor Bug Tracker & Wiki
#22355: Update dir-spec with client fallback directory mirror attempt and 
timeout
behaviour
--+
 Reporter:  teor  |  Owner:
 Type:  defect| Status:  new
 Priority:  Medium|  Milestone:  Tor: 0.3.2.x-final
Component:  Core Tor/Tor  |Version:
 Severity:  Normal| Resolution:
 Keywords:  torspec   |  Actual Points:
Parent ID:| Points:  0.5
 Reviewer:|Sponsor:
--+

Comment (by teor):

 Before we implemented exponential backoff (0.2.9.1-alpha, #15942) this was
 the behaviour:

 https://trac.torproject.org/projects/tor/ticket/4483#comment:43
 https://trac.torproject.org/projects/tor/ticket/4483#comment:47

 Then we implemented exponential backoff, and it didn't work well:

 https://trac.torproject.org/projects/tor/ticket/20499
 https://trac.torproject.org/projects/tor/ticket/20909#comment:4
 https://trac.torproject.org/projects/tor/ticket/20534#comment:8

 After #20499 and friends, the behaviour is:

 https://trac.torproject.org/projects/tor/ticket/20534#comment:19

 And we want to make it even less variable, so bootstrap times are more
 consistent:

 https://trac.torproject.org/projects/tor/ticket/20604
 https://trac.torproject.org/projects/tor/ticket/20605

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #22355 [Core Tor/Tor]: Update dir-spec with client fallback directory mirror attempt and timeout behaviour

2017-05-23 Thread Tor Bug Tracker & Wiki
#22355: Update dir-spec with client fallback directory mirror attempt and 
timeout
behaviour
--+
 Reporter:  teor  |  Owner:
 Type:  defect| Status:  new
 Priority:  Medium|  Milestone:  Tor: 0.3.2.x-final
Component:  Core Tor/Tor  |Version:
 Severity:  Normal| Resolution:
 Keywords:  torspec   |  Actual Points:
Parent ID:| Points:  0.5
 Reviewer:|Sponsor:
--+

Comment (by mikeperry):

 I think we should specify the number and timing schedule of how we connect
 to fallback dirs, in as much detail as the second half of this comment:
 https://trac.torproject.org/projects/tor/ticket/4483#comment:45.

 I was looking through the proposals and spec for specific timing and
 connection info so that I could make sane initial choices for timeouts for
 giving on on initial TLS connections to the Tor network for probing, and
 couldn't find any..

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs