[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-dev] Hashring understanding
- To: Ola Bini <obini@xxxxxxxxxxxxxxxx>
- Subject: Re: [tor-dev] Hashring understanding
- From: George Kadianakis <desnacked@xxxxxxxxxx>
- Date: Thu, 04 Feb 2016 20:45:51 +0200
- Cc: "asn@xxxxxxxxxxxxxx" <asn@xxxxxxxxxxxxxx>, Reinaldo Junior <rjunior@xxxxxxxxxxxxxxxx>, Fan Jiang <fanjiang@xxxxxxxxxxxxxxxx>, Nick Mathewson <nickm@xxxxxxxxxxxxxx>, Ivan Pazmino <ipazmino@xxxxxxxxxxxxxxxx>, Tania Silva <tsilva@xxxxxxxxxxxxxxxx>, tor-dev@xxxxxxxxxxxxxxxxxxxx
- Delivered-to: archiver@xxxxxxxx
- Delivery-date: Thu, 04 Feb 2016 13:46:36 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1454611583; bh=w1aH1qSPdmYaCRcUj7mKVkSiRpNkDVY0FYYqBBoyxzA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=SLZnON0hb8xGPL1rleKJFxJTjqbuBEomTF6mzLmeCeFQ+MYj+euuTdoZ1XF+WFO6v wJxIfz+Z7w6cbgkQh4fA0rAEOuH9WvKVrfbEhVzS7Y+itno1DXLgv0lkLW2ZAkdF8F csYzNTo7KALX416pWF+mtFHI5zTtaFQUnNQucFv4=
- In-reply-to: <20160204161714.GD11086@hidden> (Ola Bini's message of "Thu, 4 Feb 2016 11:17:14 -0500")
- List-archive: <http://lists.torproject.org/pipermail/tor-dev/>
- List-help: <mailto:tor-dev-request@lists.torproject.org?subject=help>
- List-id: discussion regarding Tor development <tor-dev.lists.torproject.org>
- List-post: <mailto:tor-dev@lists.torproject.org>
- List-subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev>, <mailto:tor-dev-request@lists.torproject.org?subject=subscribe>
- List-unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-dev>, <mailto:tor-dev-request@lists.torproject.org?subject=unsubscribe>
- References: <20160203225942.GA11086@hidden> <20160204160242.GE6794@xxxxxxxxxxxxxxxxxxxxx> <20160204161714.GD11086@hidden>
- Reply-to: tor-dev@xxxxxxxxxxxxxxxxxxxx
- Sender: "tor-dev" <tor-dev-bounces@xxxxxxxxxxxxxxxxxxxx>
- User-agent: Microsoft Outlook Express 6.00.2900.5843
Ola Bini <obini@xxxxxxxxxxxxxxxx> writes:
> Hi,
>
> Thanks for the confirmation of our understanding! Very helpful.
>
> If I understand things correctly, we are supposed to take
> GUARDLIST_FAILOVER_THRESHOLD guards from the list of all guards and
> generate the GUARDLIST from that. Is that process supposed to be
> deterministic for a specific client on a specific network, or is it
> fine to use randomness to generate it?
>
Hello,
I think it's fine to use randomness to generate it for now; that's what tor
also currently does [0].
I think coming up with the right way to do deterministic sampling based on
specific networks can be the subject of a separate proposal :). I imagine that
there will be engineering and security issues that will complicate any easy
approaches. So you can ignore this part of the problem for now, and just use
fresh local randomness everytime you sample a guard :]
> And how long lived are the PRIMARY_GUARDS supposed to be?
The real lifetime of guards is currently a random value between 2 to 3 months
(see chosen_on_date) This is regardless of whether the guard is your primary
guard or not. We might increase the lifetime in the future, but probably the
precise value should not matter too much since it's a constant change.
[0]: see choose_good_entry_server() ->
router_choose_random_node() ->
smartlist_choose_node_by_bandwidth_weights()
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev