Re: [Anima-bootstrap] Anima bootstrap: discover protocol multicast notes

Brian E Carpenter <brian.e.carpenter@gmail.com> Tue, 17 January 2017 23:14 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: anima-bootstrap@ietfa.amsl.com
Delivered-To: anima-bootstrap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CCB741294C1 for <anima-bootstrap@ietfa.amsl.com>; Tue, 17 Jan 2017 15:14:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5MxGVwqI5CcC for <anima-bootstrap@ietfa.amsl.com>; Tue, 17 Jan 2017 15:14:00 -0800 (PST)
Received: from mail-pf0-x22a.google.com (mail-pf0-x22a.google.com [IPv6:2607:f8b0:400e:c00::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1A805129417 for <anima-bootstrap@ietf.org>; Tue, 17 Jan 2017 15:14:00 -0800 (PST)
Received: by mail-pf0-x22a.google.com with SMTP id e4so26928957pfg.1 for <anima-bootstrap@ietf.org>; Tue, 17 Jan 2017 15:14:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:organization:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=moq07vjpR0QyOc+INpH7U88uZoifnW+BIEkkcdKRKWM=; b=DUtidQvCyqOEVl68HgayJhIpyUg8HlvFy5eVGJT4OiFvWWMGHzfhNfMYzcAewqJYeQ lAG924qjgifMuuYt1cKG6bOczLg2eYFfirhircsGjREa8KZK7pZCid/FTz3yy3hPdphi rtQNs3/MQqvas2M4qAMdAzvplCufTeqANcDZO3Lytkjl1xYwHMryFpRVLyn0gxv6gnZR 0uUDyWug0OX77aovHV1WHQ9jOlx9MRwBdedqBUSVlJJrs+WJ3a6KDAveg98uQU/cx07K 4cHKakS5MHuG6FP1rfkfkWUjZKxJm3nQmVCpc4Dp7QnF5WFtIZokxIoYAkzH0oiQOjBn 65XQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=moq07vjpR0QyOc+INpH7U88uZoifnW+BIEkkcdKRKWM=; b=FENWJlZNi7AKdQYUEt9CNILfyzgHoD4jD/u7mEgVUpTIt62hk3PeMU7mOWuX5KQIfK KATQLP+eIWaRTwkmcj5z2aaO3bi5Ju6Si0HWBFdakiOmkfYunaLBbLDd4w/54UlpIcqZ eg3eBSaSGVVncjK8fsAy481D8/iEyYDcwOW9GivHnkwc9qhdmVBaZAVeqU5D2XmOYG7S kf1cI/eTNCbO/gJ10JT2c+HcoQBTaMpfZL5cE1y/Tlep4LIDdf25SNCuHfSXh8XYavtS tJK5SczYFlozx9Bwlf3LfopdDGKe/vGMGlt+58Isrwy/DLg0cIEyaixAGoFwKN2CQ2fE eoHw==
X-Gm-Message-State: AIkVDXKXq5MCqN7sNV+Q22XwxZstUxOfYFVpXmwy8YjmAY5Pga5M3o1KvpWmzfF0zFLedQ==
X-Received: by 10.98.57.16 with SMTP id g16mr152691pfa.109.1484694839424; Tue, 17 Jan 2017 15:13:59 -0800 (PST)
Received: from [192.168.178.21] ([118.148.125.53]) by smtp.gmail.com with ESMTPSA id q80sm58244464pfi.13.2017.01.17.15.13.57 for <anima-bootstrap@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 15:13:58 -0800 (PST)
To: anima-bootstrap@ietf.org
References: <20170117171732.GA14606@faui40p.informatik.uni-erlangen.de> <20170117172824.GB14606@faui40p.informatik.uni-erlangen.de>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
Message-ID: <c5daca2c-2c33-ee33-3415-7ce01a49715f@gmail.com>
Date: Wed, 18 Jan 2017 12:13:59 +1300
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <20170117172824.GB14606@faui40p.informatik.uni-erlangen.de>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima-bootstrap/tYjlsG_EJfAdg5i0HaMtdyOCtyQ>
Subject: Re: [Anima-bootstrap] Anima bootstrap: discover protocol multicast notes
X-BeenThere: anima-bootstrap@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Mailing list for the bootstrap design team of the ANIMA WG <anima-bootstrap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima-bootstrap>, <mailto:anima-bootstrap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima-bootstrap/>
List-Post: <mailto:anima-bootstrap@ietf.org>
List-Help: <mailto:anima-bootstrap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima-bootstrap>, <mailto:anima-bootstrap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Jan 2017 23:14:02 -0000

Hi Toerless,

> (R)ight: L2 discovery protocol requirement:
> proxy needs to periodically (unsolicited) announce its proxy service via L2 multicast/broadcast
> pledge only accepts reply if it was multicast/broadcast
> pledge should then try to register via such discovered proxies.
> if multiple proxies discovered, parallel and/or sequential -> more difficult discussion

I take that as a vote for M_FLOOD

> The security of (R)ight depends on pledge being able to see if received packet from proxy was L2
> unicast or multicasted. 

Why? If a malicious node knows that pledges might be checking this, they will
multicast their bogus announcements. And how could they know the address of
a targetted pledge anyway, in order to send the bogus announcement unicast?

> This information is typically ignored in existing network protocol stacks
> and is also typically unavailable on the socket-API. This IMHO makes it highly beneficial to
> use a very lightweight protocol (like the subset of GRASP dedicate to this) that can specifically
> be implemented to do this security check.

Presumably you have to use a raw socket. I don't see any other way to get the
destination address out of the packet.

Regards
   Brian

On 18/01/2017 06:28, Toerless Eckert wrote:
> 
> Oh, and just read mDNS RFC and found the place where it prohibits
> periodic unsolicited announcements, so added that at the end.
> 
> Michael: Would be great if you
> can figure out what you see in your network. Worst case we'll have
> to ask Stewart...
> 
> Cheers
> Toerless
> 
> On Tue, Jan 17, 2017 at 06:17:32PM +0100, Toerless Eckert wrote:
>> Hi folks
>>
>> I have added my gist wrt to the discovery protocol detail i am
>> interested in to the etherpad
>>
>> http://etherpad.tools.ietf.org:9000/p/anima-boostrapping?useMonospaceFont=true
>>
>>  lines 368  - 407
>>
>> Hope this explains it better than my feeble verbal attempts during the call.
>>
>> Cheers
>> Toerless
>