Delivery-Date: Mon, 04 Aug 2014 15:15:29 -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 6187D1E0C5B;
	Mon,  4 Aug 2014 15:15:28 -0400 (EDT)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id BB0D52F779;
	Mon,  4 Aug 2014 19:15:25 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id E9B952CA2D
 for <tor-talk@lists.torproject.org>; Mon,  4 Aug 2014 19:15:21 +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 p-koqBOS5_Aj for <tor-talk@lists.torproject.org>;
 Mon,  4 Aug 2014 19:15:21 +0000 (UTC)
Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com
 [IPv6:2a00:1450:400c:c05::233])
 (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 9FCBA2F7A2
 for <tor-talk@lists.torproject.org>; Mon,  4 Aug 2014 19:15:21 +0000 (UTC)
Received: by mail-wi0-f179.google.com with SMTP id f8so44008wiw.6
 for <tor-talk@lists.torproject.org>; Mon, 04 Aug 2014 12:15:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:message-id:date:from:user-agent:mime-version:to:subject
 :references:in-reply-to:content-type:content-transfer-encoding;
 bh=Ay2Z16cDN6trMWxxLsS1iCucbdJ8H9G2AJb7JZSQzLI=;
 b=DBoOyBp74iGFldOJ4HvGa1xuM+bUHk6qh1iUtSFKi9Ig8ccFAOkd75Ms2wyqT/V69X
 7fIy9zdmWJ26CY9LyO8yuqeMKVrSnundsYZ3VqWNw2A30cmIh5qmKhxut2FEKg38TrIa
 yoTgX9JRacDnslPdh4WHWXACLxOMHlJwWPJMBszl+1K171GGXzTUzoO2aPvpEVWivQ2s
 JAjWQ2ysHM4pw70J01Y52sKmOwagpybOvG2LWrTf97kcIB0hubDRdM0qsGnP1l2zh8t5
 7ZNo0fPgFowkUsq2ydqAVmK6rtw9MCqI00FOPZV4uzfLjyESM4oudEADMPRlHRaY1RqL
 VtTg==
X-Received: by 10.180.96.33 with SMTP id dp1mr31719725wib.20.1407179717430;
 Mon, 04 Aug 2014 12:15:17 -0700 (PDT)
Received: from karstens-air.multi.box
 (dyndsl-031-150-213-236.ewe-ip-backbone.de. [31.150.213.236])
 by mx.google.com with ESMTPSA id td10sm28197040wic.10.2014.08.04.12.15.15
 for <multiple recipients>
 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
 Mon, 04 Aug 2014 12:15:16 -0700 (PDT)
Message-ID: <53DFDBC1.40200@torproject.org>
Date: Mon, 04 Aug 2014 21:15:13 +0200
From: Karsten Loesing <karsten@torproject.org>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9;
 rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: tor-talk@lists.torproject.org
References: <53DAB8B4.1080403@bitmessage.ch>
In-Reply-To: <53DAB8B4.1080403@bitmessage.ch>
X-Enigmail-Version: 1.6
Subject: Re: [tor-talk] understanding metrics bw graphs
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>

On 31/07/14 23:44, Nusenu wrote:
> Hi,
> 
> I would have a question regarding the bw-flags graphs on metrics.tpo [1]
> 
> "guard bw history"
> a) Does this include the entire accumulated traffic of relays having
> the guard flag? (which would include the traffic of a guard relay
> acting as a middle or exit relay - if it also has the exit flag)
> 
> or
> 
> b) Does this only and exclusively include the entire accumulated
> traffic that *enters* the tor network via all guard relays?
> (to actually do that the traffic accounting on relays would have to do
> accounting accordingly on a per connection type level)

a) is correct.

Minor nitpick: a relay can exit even if it doesn't have the Exit flag;
that flag is only assigned for load-balancing purposes.

There's no data available for b).

> Which would bring me to the next question (which would be required to
> actually do the required accounting for (b)): Is a relay able to tell
> whether it is being used as first or second hop solely by looking at
> packets (not their source)?

Looking at the packet source and comparing it to the list of known
relays would probably be the most reliable way for counting bytes as
first or second hop.  But this is not implemented, and there are plans
to implement this, to the best of my knowledge.

> Same question applies to: "exit bw history"

a).

> Does your answer also apply to [2]?

Yes, except that [2] distinguishes between Guard only and Guard & Exit.

All the best,
Karsten

> [1] https://metrics.torproject.org/bandwidth.html#bandwidth-flags
> 
> [2] https://metrics.torproject.org/bandwidth.html#bwhist-flags
-- 
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

