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

Virgil Griffith i at virgil.gr
Thu Aug 14 22:22:13 UTC 2014


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?
-V


More information about the tor-talk mailing list