Re: [babel] Updated 6126bis

Juliusz Chroboczek <jch@irif.fr> Wed, 23 August 2017 12:51 UTC

Return-Path: <jch@irif.fr>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6355D132983 for <babel@ietfa.amsl.com>; Wed, 23 Aug 2017 05:51:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 XLW0GPkW8WJe for <babel@ietfa.amsl.com>; Wed, 23 Aug 2017 05:51:17 -0700 (PDT)
Received: from korolev.univ-paris7.fr (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B50511321AF for <babel@ietf.org>; Wed, 23 Aug 2017 05:51:16 -0700 (PDT)
Received: from potemkin.univ-paris7.fr (potemkin.univ-paris7.fr [IPv6:2001:660:3301:8000::1:1]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/75695) with ESMTP id v7NCpE8o013956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 23 Aug 2017 14:51:14 +0200
Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by potemkin.univ-paris7.fr (8.14.4/8.14.4/relay2/75695) with ESMTP id v7NCpDvP030249; Wed, 23 Aug 2017 14:51:13 +0200
Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id A1804EB332; Wed, 23 Aug 2017 14:51:13 +0200 (CEST)
X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr
Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id ZN96PKoLmhUb; Wed, 23 Aug 2017 14:51:12 +0200 (CEST)
Received: from trurl.irif.fr (user-164-126-194-205.play-internet.pl [164.126.194.205]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id 76DC8EB2D4; Wed, 23 Aug 2017 14:51:10 +0200 (CEST)
Date: Wed, 23 Aug 2017 14:51:09 +0200
Message-ID: <87lgma1m82.wl-jch@irif.fr>
From: Juliusz Chroboczek <jch@irif.fr>
To: Margaret Cullen <margaretw42@gmail.com>
Cc: babel@ietf.org
In-Reply-To: <7DB25AE9-876F-40A6-8B1A-87F67780D3F7@gmail.com>
References: <87h8x0u08e.wl-jch@irif.fr> <CAE7BE23-9421-4368-9A95-6918CACBF2F3@irif.fr> <7DB25AE9-876F-40A6-8B1A-87F67780D3F7@gmail.com>
User-Agent: Wanderlust/2.15.9
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]); Wed, 23 Aug 2017 14:51:14 +0200 (CEST)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (potemkin.univ-paris7.fr [194.254.61.141]); Wed, 23 Aug 2017 14:51:14 +0200 (CEST)
X-Miltered: at korolev with ID 599D7A42.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-Miltered: at potemkin with ID 599D7A41.001 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-j-chkmail-Enveloppe: 599D7A42.000 from potemkin.univ-paris7.fr/potemkin.univ-paris7.fr/null/potemkin.univ-paris7.fr/<jch@irif.fr>
X-j-chkmail-Enveloppe: 599D7A41.001 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/<jch@irif.fr>
X-j-chkmail-Score: MSGID : 599D7A42.000 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000
X-j-chkmail-Score: MSGID : 599D7A41.001 on potemkin.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000
X-j-chkmail-Status: Ham
X-j-chkmail-Status: Ham
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/_c-g4nI7pt1sVSWdK2bsJfC7TQA>
Subject: Re: [babel] Updated 6126bis
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Aug 2017 12:51:19 -0000

mrc> “attract” => “attract or misdirect”?

Yes, that's better.  I've put just "misdirect".

mrc> I would say “IPsec” or “IPsec/IKEv2" instead of just “IKEv2”.  IKE is
mrc> a key exchange protocol, but IPsec provides the actual authentication
mrc> and encryption.  Also, you need to expand the acronyms and add
mrc> informative references for these protocols.

Will do.  (The point here is that it's IKEv2 that is limited to unicast,
there's nothing in IPsec itself that prevents it from being used with
multicast.)

mrc> Do you think that we should say something in this section about how
mrc> an attacker who can redirect traffic can perform an on-path attack
mrc> from a location that would not normally be on-path for a given
mrc> connection?

Will do.

mrc> I understand how the information passed in Babel could allow you to
mrc> pinpoint a node’s topological location, but not it’s physical
mrc> location.  Therefore, I am not sure how using randomly chosen IPs and
mrc> addresses would alleviate that risk.  Could you offer a bit more
mrc> explanation?

I'll see if I can make it concise enough, but I think I won't bother.
(The point is that an attacker might know the location of fixed Babel
nodes, and therefore a node that advertises routes with a low metric is
advertising its topological proximity to a set of fixed nodes.  In
wireless networks, topological proximity coincides to some extent with
physical proximity, so you can find out where a mobile node is.)

> When carried over IPv6, Babel packets are ignored unless they are sent
> from a link-local IPv6 address; since routers don't forward link-local IPv6
> packets, this provides protection against spoofed Babel packets being sent
> from the global Internet.  No such natural protection exists when Babel
> packets are carried over IPv4.

mrc> It is possible to get similar protection by specifying that IPv4
mrc> packets are sent with a TTL of 1.  Is there a reason not to do that?

We already do:

  A Babel packet is sent as the body of a UDP datagram, with network-layer
  hop count set to 1

However, if an attacker knows that he's 3 hops away, he can send a packet
with a hop count of 3, which will appear to the receiver as having a hop
count of 1.

The standard workaround, used e.g. in neighbour discovery, is to send
packets with a hop count of 255, and discard any packets that are received
with a lower hop count (this is known as the "TTL hack" among the hip
crowd).  However, the consequence of the TTL hack is that a misdirected
packet will cruise the network for 255 hops; and therefore neither OSPF
nor RIP use it (I think BGP uses it, but I'm not sure).  Thus, I didn't
mandate the TTL hack in Babel, and I think it's too late to change.

-- Juliusz