<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 25 Mar 2016, at 22:26, George Kadianakis <<a href="mailto:desnacked@riseup.net" class="">desnacked@riseup.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Tim Wilson-Brown - teor <<a href="mailto:teor2345@gmail.com" class="">teor2345@gmail.com</a>> writes:<br class=""><br class=""><blockquote type="cite" class="">[ text/plain ]<br class=""><br class=""><blockquote type="cite" class="">On 25 Mar 2016, at 00:31, George Kadianakis <<a href="mailto:desnacked@riseup.net" class="">desnacked@riseup.net</a>> wrote:<br class=""><br class="">Tim Wilson-Brown - teor <<a href="mailto:teor2345@gmail.com" class="">teor2345@gmail.com</a> <<a href="mailto:teor2345@gmail.com" class="">mailto:teor2345@gmail.com</a>>> writes:<br class=""><br class=""><blockquote type="cite" class="">[ text/plain ]<br class=""><br class=""><blockquote type="cite" class="">On 24 Mar 2016, at 22:55, George Kadianakis <<a href="mailto:desnacked@riseup.net" class="">desnacked@riseup.net</a> <<a href="mailto:desnacked@riseup.net" class="">mailto:desnacked@riseup.net</a>>> wrote:<br class=""><br class=""><br class=""><snip><br class=""><br class=""></blockquote></blockquote>I think Reinaldo et al. were also thinking of incorporating the<br class="">ReachableAddresses logic in there, so that DYSTOPIC_GUARDS changes based on the<br class="">reachability settings of the client. I'm not sure exactly how that would work,<br class="">especially when the user can change ReachableAddresses at any moment. I think<br class="">we should go for the simplest thing possible here, and improve our heuristics<br class="">in the future based on testing.<br class=""></blockquote><br class="">I suggest that we compose the set of UTOPIC guards based on addresses that are reachable and preferred (or, if there are no guards with preferred addresses, those guards that are reachable). I suggest that we use the same mechanism with DYSTOPIC guards, but add a port restriction to 80 & 443 to all the other restrictions. (This may result in the empty set.)<br class=""><br class=""></blockquote><br class="">Alright, this seems like a good process here. We should do it like that.<br class=""><br class="">What happens if a utopic guard suddenly is not included in the<br class="">ReachableAddresses anymore? Maybe we mark it as 'bad' (the same way we mark<br class="">relays that leave the consensus).<br class=""></div></div></blockquote><div><br class=""></div><div>Yes, if it's not available, it doesn't really matter why.</div><div>(Having different behaviours for different reasons would complicate guard selection.)</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><br class=""><snip><br class=""><br class="">I think the current proposal tries to balance this, by enabling this heuristic<br class="">only after Alice exhausts her utopic guardlist. Also, keep in mind that the<br class="">utopic guardlist might contain 80/443 guards as well. So if Alice is lucky, she<br class="">got an 80/443 guard in her utopic guard list, and she will still bootstrap<br class="">before the dystopic heuristic triggers.<br class=""><br class="">There are various ways to make this heuristic more "intelligent", but I would<br class="">like to maintain simplicity in our design (both simple to understand and to<br class="">implement). For example, we could imagine that we always put some 80/443 guards<br class="">as our primary guards, or in the utopic guardlist. Or, that we reduce the 2%<br class="">requirement so that we go trigger the dystopic heuristic faster.<br class=""></blockquote><br class="">Or that tor can get a hint about which ports it can access based on which ports it used to bootstrap.<br class="">(See below for details.)<br class=""><br class=""></blockquote><br class="">Yes, could be.<br class=""><br class="">How would that work though?<br class=""></div></div></blockquote><div><br class=""></div><div>We pass the port(s) that we've successfully bootstrapped on to the guard selection algorithm as an initial hint.</div><div>The algorithm ensures than X% of the relays it selects are on those port(s).</div><div><br class=""></div><div>The problem with this approach is that it biases guard selection towards the DirPorts that authorities and fallback directories are on.</div><div>So X% must be high enough to ensure we can continue to load descriptors if all other ports are blocked, but low enough not to overload guards on those ports.</div><br class=""><blockquote type="cite" class=""><div class=""><div class="">And what happens if the network changes? How does the hint work then though?<br class=""></div></div></blockquote><div><br class=""></div><div>There are two scenarios:</div><div>If the network changes after a short period of downtime (<24 hours), the consensus will still be current, and we won't bootstrap again.</div><div>Some of our guards will fail, and we will choose other guards from the original list.</div><div><br class=""></div><div><div>If the network changes after a long period of downtime (>=24 hours), the consensus will expire, and we will bootstrap again, and get a new hint.</div><div>We will check if the original list contains Y% guards on these new ports (where Y <= X).</div><div>If it doesn't, we can augment the list with new guards on those ports, or create an entirely new list.</div><div><br class=""></div><div>There is a risk here that the list grows without bound if Y% is high, and we regularly switch between N sites that each allow a small number of different ports.</div></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class=""><blockquote type="cite" class="">Currently, I'm hoping that we will understand the value of this heuristic<br class="">better when we implement it, and test it on real networks...<br class=""><br class="">Any suggestions?<br class=""></blockquote><br class="">There's a whole lot of my thoughts below.<br class=""><br class="">Why such a large list of guards?<br class=""><br class="">Apart from the fingerprinting issue (which I think gets worse with a larger list, at least if it's tried in order), I wonder why we bother trying such a large UTOPIC guardlist.<br class="">Surely after you've tried 10 guards, the chances that the 11th is going to connect is vanishingly small.<br class="">(Unless it's on a different port or netback, I guess.)<br class="">And if our packets are reaching the guard, and being dropped on the way back, we have to consider the load this places on the network.<br class=""><br class=""></blockquote><br class="">Indeed, I also feel that 80 guards is a lot of guards to try before switching to dystopic mode.<br class=""><br class="">I would be up for reducing it. I wonder what's the right number here.<br class=""><br class="">My fear with having a small number of sampled guards in a guardlist is that if<br class="">all of them go down at the same time, then that guardlist is useless.<br class=""></div></div></blockquote><div><br class=""></div><div>I would imagine that the probability of 10+ guards going down at the same time is minuscule, unless the network has major issues, or a port is blocked on the client side.</div><br class=""><blockquote type="cite" class=""><div class=""><div class="">Also, this reminds me that the proposal does not precisely specify what happens<br class="">when guards in SAMPLED_UTOPIC_GUARDS become bad (they drop out of the<br class="">consensus).  Do we keep them on the list but marked as bad? What happens if<br class="">lots of them become bad? When do we add new guards? Currently the proposal only<br class="">says:<br class=""><br class="">      It will be filled in by the algorithm if it's empty, or if it contains<br class="">      less than SAMPLE_SET_THRESHOLD guards after winnowing out older<br class="">      guards. It should be filled by using NEXT_BY_BANDWIDTH with UTOPIC_GUARDS<br class="">      as an argument.<br class=""><br class="">I think we should be more specific here.<br class=""></div></div></blockquote><div><br class=""></div><div>Yes, we need to behave sensibly if lots of guards become bad.</div><div>It's most likely that we're effectively blocked from Tor.</div><div>Or that we can only use a small number of ports to get out.</div><div>In this case, it would help to add guards with known good ports (from a recent bootstrap hint).</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class="">Client Bootstrap<br class=""><br class="">The proposal ignores client bootstrap.<br class=""><br class="">There are a limited number of hard-coded authorities and fallback directories available during client bootstrap.<br class="">The client doesn't select guards until it has bootstrapped from one of the 9 authorities or 20-200 fallback directories.<br class=""><br class=""></blockquote><br class="">What do you think should be mentioned here?<br class=""></div></div></blockquote><div><br class=""></div><div>That clients bootstrap before selecting guards.</div><div>That loading a consensus takes additional time during initial bootstrap (5-30s?) that's not counted in these calculations.</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class="">Bootstrap / Launch Time<br class=""><br class="">The proposal calculates bootstrap and launch time incorrectly.<br class=""><br class="">The proposal assumes that Tor attempts to connect to each guard, waits for failure before trying another. But this isn't how Tor actually works - it sometimes tries multiple connections simultaneously. So summing the times for individual connection attempts to each guard doesn't provide an accurate picture of the actual connection time.<br class=""><br class="">When bootstrapping in 0.2.7 and earlier, tor will try an authority, wait up to 10 seconds for it to fail, then try another.<br class="">Then there's a 60 second wait before the third authority, but at that point the user has likely lost interest.<br class=""><br class="">In 0.2.8, tor connects to authorities and fallbacks concurrently. It will try 3 fallbacks and 1 authority in the first 10 seconds, and download from whichever one connects first So 0.2.8 is far more likely to connect within a few seconds.<br class=""><br class="">In all current versions, tor then downloads the consensus (~1.5MB, could take 10 seconds or more), and chooses directory guards.<br class="">Then it simultaneously connects to 3 directory guards to download certificates and descriptors.<br class="">The time it takes tor to work out if a connection to a directory guard has succeeded happens simultaneously with other directory guard timeouts.<br class=""><br class="">So under this proposal, it would really take tor:<br class="">10 seconds for initial bootstrap<br class="">20 seconds (or more) to download the consensus<br class="">600 seconds / 3 directory guards = 200 seconds to exhaust its UTOPIC guardlist<br class=""></blockquote><br class="">Where does the "600 seconds" figure come from here?<br class=""></div></div></blockquote><div><br class=""></div><div>It's the existing figure in the proposal. 10 seconds x 60 guards in the UTOPIC list.</div><div>Although if tor is building preemptive paths at the same time, the calculation could well be:</div><div><br class=""></div><div>600 seconds / (3 directory guards + 1 OR guard) = 150 seconds to exhaust its UTOPIC guardlist</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><blockquote type="cite" class="">(tor skip the first two phases if it has a live consensus)<br class=""><br class="">Can we revise the proposal to take this into account?<br class=""><br class=""></blockquote><br class="">Are you talking about section 4? Yes, that could be rewritten a bit.<br class=""><br class="">However, I think that section does not specifically talk about bootstrap as you<br class="">seem to be doing.<br class=""><br class="">So, if you have Tor running and you move your laptop to a network with<br class="">FascistFirewall, you will not be bootstrapping again with 3 directory<br class="">guards. Instead, you are going to be walking over the guard list with a single<br class="">guard. So in that case section 4 will be more accurate.<br class=""><br class="">Or am I wrong?<br class=""></div></div></blockquote><br class=""></div><div>I think it depends.</div><div><br class=""></div><div>Tor will use its directory guards to download new descriptors on a regular basis.</div><div>Tor will use its OR guard to connect to the Tor network and build preemptive paths on a regular basis.</div><div>This all happens at the same time.</div><div><br class=""></div><div>So I think it depends how many updated descriptors there are in each consensus.</div><div>(And it depends exactly when you download a new consensus.)</div><div><br class=""></div><div>Tim</div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Tim Wilson-Brown (teor)</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""></div><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">teor2345 at gmail dot com<br class="">PGP 968F094B<br class=""><br class="">teor at blah dot im<br class="">OTR CAD08081 9755866D 89E2A06F E3558B7F B5A9D14F</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
<br class=""></body></html>