Delivery-Date: Thu, 14 Aug 2014 18:22:46 -0400
Return-Path: <tor-talk-bounces@lists.torproject.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on moria.seul.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID autolearn=ham version=3.3.1
X-Original-To: archiver@seul.org
Delivered-To: archiver@seul.org
Received: from eugeni.torproject.org (eugeni.torproject.org [38.229.72.13])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by khazad-dum.seul.org (Postfix) with ESMTPS id 782151E0A6B;
	Thu, 14 Aug 2014 18:22:44 -0400 (EDT)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 38FEF30AB2;
	Thu, 14 Aug 2014 22:22:40 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id 3F40130AAC
 for <tor-talk@lists.torproject.org>; Thu, 14 Aug 2014 22:22:37 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at eugeni.torproject.org
Received: from eugeni.torproject.org ([127.0.0.1])
 by localhost (eugeni.torproject.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id ai21nHXVbksu for <tor-talk@lists.torproject.org>;
 Thu, 14 Aug 2014 22:22:37 +0000 (UTC)
Received: from mail-ig0-x22a.google.com (mail-ig0-x22a.google.com
 [IPv6:2607:f8b0:4001:c05::22a])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (not verified))
 by eugeni.torproject.org (Postfix) with ESMTPS id 228FE309A2
 for <tor-talk@lists.torproject.org>; Thu, 14 Aug 2014 22:22:36 +0000 (UTC)
Received: by mail-ig0-f170.google.com with SMTP id h3so837748igd.3
 for <tor-talk@lists.torproject.org>; Thu, 14 Aug 2014 15:22:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virgil.gr; s=dkim;
 h=mime-version:from:date:message-id:subject:to:content-type;
 bh=hijwoqvJKSNi5eoqw1a+/7Hwnq40juaFifJtFytkI5Q=;
 b=cG62aTWNqoU8CEtx1d5uBfdYloJS4IGmRCy0PNvUAJidNMfT9fiSQ7lMGuqmF1BQ4N
 U31WASLJoP2Q4w7sJaH+Aq5XFXDpVUzS/GilXYei7hTleWRNGiZlbnxdZDxCIVZiLiFP
 5mz/zy06AD84bnogFQQN9AAd5KkQICQf18JH8=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to
 :content-type;
 bh=hijwoqvJKSNi5eoqw1a+/7Hwnq40juaFifJtFytkI5Q=;
 b=b4r7DSQrbkX1FpyeER0KdDfox6zdsMlCeIyUBZcUwVIL2K5rlCzT0tMwnhdAZwsLLk
 cYvu7X6EyapeiEtlE5iK6RxOsIbctNtjRZuW6ZKAAngx5TiQVKshfgik/50cNhXQHHPE
 kjEKvphaeE+daiM1Vb3RgsiElbLqvKGE/DNpO7SJ34yUGkqGnjHFaF+emYCkpBwzt+xo
 IwZNG7E8faPRjrPrHlvUjOyjs1o/D2kv71V4vW5pR2ccoz4W76GUduzsME2PIFlAihku
 ijvMUIxHGTGR8gTz32pYxMaJfruyIEI3U+10ual9wgI2HbIyiGuG08WM64KNTbqD8EdI
 BhJw==
X-Gm-Message-State: ALoCoQlYy1HdiIkVrdQLYQ49CKGx5ESiCl9qT0cNPgF2T9Vt59d1Bc24hvU993IZGn3V/omFhkuu
X-Received: by 10.43.70.66 with SMTP id yf2mr630935icb.36.1408054953787; Thu,
 14 Aug 2014 15:22:33 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.50.134.2 with HTTP; Thu, 14 Aug 2014 15:22:13 -0700 (PDT)
From: Virgil Griffith <i@virgil.gr>
Date: Thu, 14 Aug 2014 15:22:13 -0700
Message-ID: <CADop2NGhrkmZ8SW96g84=VZjtdK6V1pkz6-3D0CJNWaaB6yxmw@mail.gmail.com>
To: "tor-talk@lists.torproject.org" <tor-talk@lists.torproject.org>
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Subject: [tor-talk] computing the Tor Metric's "advertised bandwidth" and
 "read bandwidth" from the archived Tor consensus
X-BeenThere: tor-talk@lists.torproject.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tor-talk@lists.torproject.org
List-Id: "all discussion about theory, design,
 and development of Onion Routing" <tor-talk.lists.torproject.org>
List-Unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=unsubscribe>
List-Archive: <http://lists.torproject.org/pipermail/tor-talk/>
List-Post: <mailto:tor-talk@lists.torproject.org>
List-Help: <mailto:tor-talk-request@lists.torproject.org?subject=help>
List-Subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>

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
-- 
tor-talk mailing list - tor-talk@lists.torproject.org
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

