<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 10, 2013 at 9:57 AM, Philipp Winter <span dir="ltr"><<a href="mailto:identity.function@gmail.com" target="_blank">identity.function@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On Thu, Oct 10, 2013 at 07:23:11AM +0000, Aaron wrote:<br>
> I have been working on adding a "Tor Network Test Template" to ooni-probe;<br>
> the basic concept is to extend the Tor controller library we use (txtorcon)<br>
> to be able to build and attach circuits to specific streams, and iterate over<br>
> the exits in the consensus. That is, we'll provide primitives that will allow<br>
> you to specify a network interference test and tell ooni to run that test<br>
> against every exit we know about (or a subset, a specific exit, or what have<br>
> you).<br>
<br>
</div>I have a very similar goal.  However, instead of extending my controller (I use<br>
stem), I spawn parallel Tor processes out of a process pool (based on Python's<br>
'concurrent' module).  I assume, your scanning would be sequential?<br></blockquote><div><br></div><div>ooni is built with Twisted (<a href="http://twistedmatrix.com/">http://twistedmatrix.com/</a>), which is a python based asynchronous event-driven framework, similar in concept to libevent. Our scheduler caps the number of 'in flight' measurements to whatever you specify in the ooniprobe.conf 'concurrency' options.<br>
<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im"><br>
> ooni-probe features a concurrency-based scheduler, so as to limit the impact<br>
> on the network, and we've designed it to support plug-in rate limiting hooks<br>
> if you want to do something fancier.<br>
<br>
</div>Rate limiting certainly sounds fancier than what I had in mind :)<br></blockquote><div><br></div><div>We don't do anything that fancy yet, just left the stubs in place for future use as we thought they might come in handy.<br>
 <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class=""><div class="h5"><br>
Cheers,<br>
Philipp<br>
_______________________________________________<br>
tor-dev mailing list<br>
<a href="mailto:tor-dev@lists.torproject.org">tor-dev@lists.torproject.org</a><br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev</a><br>
</div></div></blockquote></div><br></div></div>