[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-talk] computing the Tor Metric's "advertised bandwidth" and "read bandwidth" from the archived Tor consensus



On 15/08/14 00:22, Virgil Griffith wrote:
> I've been parsing the historical collecTor consensus files using the Stem
> library.  I want to be able to recreate the existing numbers before I delve
> into new stuff, so I am attempting to recreate some datapoints from the
> Metrics site.
> 
> The "router status entries", queried by:
> *
> https://stem.torproject.org/api/descriptor/router_status_entry.html#stem.descriptor.router_status_entry.RouterStatusEntryV3
> 
> has a "bandwidth" and "measured" entry.  But, it remains unclear to me how
> to derive the "bandwidth history" on:
> * https://metrics.torproject.org/bandwidth.html
> 
> I presume the "bandwidth claimed" in the RouterStatus descriptor is
> synonymous with the "advertised bandwidth" on Metrics.  However, the
> "measured" entry in the RouterStatus descriptor has been blank for every
> file I tried.  Therefore it's unclear to me how to compute the "bandwidth
> history" line on Metrics.
> 
> Any enlightenment here?

The various bandwidth numbers in Tor descriptors are all but
self-explanatory.  Presuming things will almost always lead you in the
wrong direction.  That's also the case here.

I suggest you start by reading the relevant parts in dir-spec.txt
(search for bandwidth):

https://gitweb.torproject.org/torspec.git/blob/HEAD:/dir-spec.txt

Short answer: the bandwidth history graphs are based on the bandwidth
histories contained in extra-info descriptors.  Search for
"read-history" and "write-history" in dir.spec.txt.

All the best,
Karsten

-- 
tor-talk mailing list - tor-talk@xxxxxxxxxxxxxxxxxxxx
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk