[tor-bugs] #10331 [Onionoo]: Provide per-bridge usage statistics in Onionoo

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Mar 5 20:56:42 UTC 2014


#10331: Provide per-bridge usage statistics in Onionoo
-----------------------------+----------------------
     Reporter:  karsten      |      Owner:  karsten
         Type:  enhancement  |     Status:  assigned
     Priority:  minor        |  Milestone:
    Component:  Onionoo      |    Version:
   Resolution:               |   Keywords:
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+----------------------

Comment (by karsten):

 I finished a first version of this code today.  Here's a sample clients
 document:

 {{{
 {"hashed_fingerprint":"DE6397A047ABE5F78B4C87AF725047831B221AAB",
 "average_clients":{
 "1_week":{"first":"2014-02-26 12:00:00","last":"2014-02-28
 12:00:00","interval":86400,"factor":0.096168168,"count":3,"values":[999,949,985],"countries":{"ca":0.0273,"de":0.0103,"gb":0.0177,"in":0.0173,"ir":0.5179,"ru":0.0231,"sy":0.0607,"tr":0.0140,"us":0.0960},"transports":{"obfs2":0.9849,"obfs3":0.0120},"versions":{"v4":1.0000}},
 "1_month":{"first":"2014-02-02 12:00:00","last":"2014-02-28
 12:00:00","interval":86400,"factor":0.139049349,"count":27,"values":[384,371,354,349,374,432,503,485,458,493,536,null,509,524,576,607,622,null,635,509,566,774,999,945,690,656,681],"countries":{"??":0.1725,"cn":0.0187,"in":0.1801,"ir":0.2421,"ru":0.0101,"se":0.1733,"sy":0.0316,"us":0.0395},"transports":{"<??>":0.5471,"obfs2":0.4460},"versions":{"v4":1.0000}},
 "3_months":{"first":"2013-12-03 12:00:00","last":"2014-02-28
 12:00:00","interval":86400,"factor":0.139049349,"count":88,"values":[250,299,293,285,300,287,277,316,311,285,391,486,465,null,411,432,542,661,655,615,578,550,499,521,570,547,523,533,539,450,314,309,345,340,339,367,351,362,380,369,347,347,373,362,298,null,302,316,348,393,420,430,412,358,441,499,525,516,428,366,373,384,371,354,349,374,432,503,485,458,493,536,null,509,524,576,607,622,null,635,509,566,774,999,945,690,656,681],"countries":{"??":0.2935,"in":0.1843,"ir":0.1114,"nl":0.0261,"se":0.2938,"sy":0.0118,"us":0.0147},"transports":{"<??>":0.8312,"obfs2":0.1662},"versions":{"v4":1.0000}},
 "1_year":{"first":"2013-05-14 00:00:00","last":"2014-02-28
 00:00:00","interval":172800,"factor":0.123398448,"count":146,"values":[482,435,458,416,431,487,390,357,340,289,310,343,453,399,412,400,null,254,361,395,364,436,406,463,527,504,509,394,359,364,344,405,428,null,421,377,399,398,392,388,484,410,456,478,466,448,393,372,376,430,397,424,359,362,356,348,343,378,383,462,360,333,292,242,252,257,217,228,254,327,287,326,324,321,354,298,321,298,326,null,357,313,287,298,286,305,288,291,306,296,342,359,323,308,362,367,389,348,277,269,271,247,300,326,331,334,336,460,524,480,678,716,635,575,629,595,557,351,386,398,402,422,391,414,336,351,418,479,434,529,587,447,427,408,408,500,531,586,null,620,695,716,621,999,922,757],"countries":{"??":0.4255,"cn":0.0261,"gb":0.0221,"in":0.2083,"ir":0.0509,"nl":0.0744,"se":0.1419,"us":0.0111},"transports":{"<??>":0.9363,"obfs2":0.0628},"versions":{"v4":1.0000}}}
 }
 }}}

 The data format is the same as for bandwidth and weights documents, except
 that there are three additional fields:

  - "countries": Object containing fractions of clients by country in the
 considered time period. Keys are two-letter lower-case country codes as
 found in a GeoIP database. Values are numbers between 0 and 1 standing for
 the fraction of clients by country. A country is only included if at least
 1% of clients came from this country.
  - "transports": Object containing fractions of clients by transport in
 the considered time period. Keys are transport names, or "<OR>" for the
 default onion-routing transport protocol or "<??>" for unknown transports.
 Values are numbers between 0 and 1 standing for the fraction of clients by
 transport.
  - "versions": Object containing fractions of clients by IP version in the
 considered time period. Keys are either "v4" for IPv4 or "v6" for IPv6.
 Values are numbers between 0 and 1 standing for the fraction of clients by
 version.

 Thoughts on the data format?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10331#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list