Re: Why this is broken [was Re: Extending a /64]

Brian E Carpenter <brian.e.carpenter@gmail.com> Tue, 17 November 2020 00:45 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B786E3A0420 for <ipv6@ietfa.amsl.com>; Mon, 16 Nov 2020 16:45:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 Tu_c8d-Bjhr2 for <ipv6@ietfa.amsl.com>; Mon, 16 Nov 2020 16:45:13 -0800 (PST)
Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) (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 352443A0407 for <ipv6@ietf.org>; Mon, 16 Nov 2020 16:45:13 -0800 (PST)
Received: by mail-pg1-x529.google.com with SMTP id e21so14758821pgr.11 for <ipv6@ietf.org>; Mon, 16 Nov 2020 16:45:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=fff44gcbO8l36VlPkBCR4l6+jbzdgfnCxzQAGgCKMGo=; b=ftwVKp5OF/KUwZ/h7c+u4jGSgJPZIxdn8Akoqy/wOse7aQfEMtR9e6W106/fq+moai 7SfLwRr5hhJWEGV9awUAX3tYeYyLWSo3Jj6f9z+2mrwehA01nU4Erdw0wlHXZsnph9oW Iw5PDShpJ9c6KXSdQMsYyBivMC7o7b2Mv7l9DzVx7AH02N3RC46fJX96ttvSMtE+rJW6 YMtbNGXjLXo3+NTESHGWA1JsKi4+Y+jVxO/s+kAdFTtIpSfJ/mMvB1CJmgax8TZjFt1G +UZljLBUJmeLh7SnmTVXi0j5W1HVJtu0TNED+2ymnQxNVJf2L9W+/A5TqqJzam7Xr22N COwA==
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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fff44gcbO8l36VlPkBCR4l6+jbzdgfnCxzQAGgCKMGo=; b=jFIygsqnSt2A2IaMBtxbch8UoQ6lzseYyZBBpB/iMaXvUfaovVQGKXHMylLCNbTGRt kNshYksdd/Z8jctYx1lEn5lUpkMsUD/SlrAKh+mK0fCLvvGiQ5Nkj29yDR/rwtfq9XWw JK3JzyEUZHNLyREkGnpfA5OawMEIPyOPcvZU1d/ba7YSV32Xu2R9w7K0d2JLlY6mtyvj WqE7IvyvjBl61XVFQ4YDP3UuZSgTsIf+KjbsuQTgnH1nLZ70QQ3zbZGv58lVZkGm9SxY S2ZI0gmBX2rOZTVpW8YtPi+VvfhH+Ku9KewmGao6eJ4wWYiDrBKmCsx3m0IZ7ZODGgeF pMng==
X-Gm-Message-State: AOAM530DkQNVB0cMptUXzglpmYBFaWAX1vbGqxr5xQD6W+1VIbguCRjs XF9aQcNbyLUfaUvAnWPgu//bK9xmr8/Otg==
X-Google-Smtp-Source: ABdhPJwJvDmvzgc3Irf4bYnG/lMy+RI9YPxOnPrK6RrN6Xe1SGq/lLjkRPLM1C0fX3mdPHVIvAUaTg==
X-Received: by 2002:a63:141e:: with SMTP id u30mr1341279pgl.300.1605573911751; Mon, 16 Nov 2020 16:45:11 -0800 (PST)
Received: from [192.168.178.20] ([151.210.130.0]) by smtp.gmail.com with ESMTPSA id g26sm17191099pfo.57.2020.11.16.16.45.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2020 16:45:10 -0800 (PST)
Subject: Re: Why this is broken [was Re: Extending a /64]
To: Tony Whyman <tony.whyman@mccallumwhyman.com>, "Joel M. Halpern" <jmh@joelhalpern.com>, ipv6@ietf.org
References: <202011151920.0AFJKN9U003337@mail2.mwassocs.co.uk> <3d26bffe-b6c9-4ed7-6135-a515f9902fd7@gmail.com> <m1keOTi-0000EGC@stereo.hq.phicoh.net> <CAO42Z2wZkXryhw1u5WAFdtCvXHyyz1zeM22FP_gRxjurjsG-Jw@mail.gmail.com> <5f505585-1328-d942-2ec2-a2d96b7b4779@foobar.org> <m1kePdR-0000I6C@stereo.hq.phicoh.net> <b022d11f-b55d-07ef-307d-949ff57cd562@foobar.org> <m1keS7i-0000E0C@stereo.hq.phicoh.net> <f06db586-15ed-6dd3-d09f-06a4e3759275@mccallumwhyman.com> <m1kecJm-0000EOC@stereo.hq.phicoh.net> <5101F72E-4197-4E58-8DEF-9EB9D5541482@thehobsons.co.uk> <m1kefWI-0000ETC@stereo.hq.phicoh.net> <845e43f9-4534-a125-3105-9d345b85029f@mccallumwhyman.com> <f18f1e55-6c8f-2963-7e3a-f22a89dda46d@joelhalpern.com> <0443de45-931d-fbda-20ab-2931383a3a8d@mccallumwhyman.com> <61f8e6f7-1bfd-4c17-9e42-dc5fc10a19b5@gmail.com> <4dd7862a-2caa-d01f-3f50-7abc9c978bd0@mccallumwhyman.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <d52fd180-6a58-effb-c379-4df95dcc5ed7@gmail.com>
Date: Tue, 17 Nov 2020 13:45:05 +1300
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
In-Reply-To: <4dd7862a-2caa-d01f-3f50-7abc9c978bd0@mccallumwhyman.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/yo-gl0KyGp-Udbs-5laPp2D-dN0>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Nov 2020 00:45:16 -0000

Tony,

Thanks for the explanations.

I'm not disputing that you can make practically anything work in a private 
network. As I heard the late Dave Sincoskie say in an IAB discussion of the
Internet as it was in about 1994, "just buy an ****ing big CAM and you can
make anything work." Nor am I disputing that aircraft present an especially
hard case of mobility. (Isn't that why cell phones are mainly forbidden
on planes?)

But at Internet scale, we just can't do that. Routing prefixes need
to aggregate. This isn't an aesthetic consideration; it's fundamental
to why we have enough IPv6 prefixes to last for hundreds of years,
and why the backbone routers are able to keep up with growth.

If the first step is using the well-known IPv6 address to map to
a c/o address for mobility, why does the non-topological identfier
need to be in the prefix? The natural place for non-topological
bits in IPv6 is in the Interface Identifier.

Regards
   Brian Carpenter

On 17-Nov-20 12:17, Tony Whyman wrote:
> On 16/11/2020 20:20, Brian E Carpenter wrote:
>>
>>> Aircraft MNPs are non-topological
>> Thank you for that clear statement. Internet routing *is* topological.
>> Therefore, you cannot use bits in the routing prefix for non-topological
>> information. Therefore, you cannot put 39 magic bits into the routing
>> prefix; the Internet doesn't work like that. End of story. Back to the
>> drawing board.
>>
>> This is so badly conceived that I suggest an IETF liaison statement to
>> ICAO may be needed.
> 
> The basic problem of mobility is that a mobile node must keep the same 
> IP Address while it moves its location in an internet. In the ATN, we 
> complicate this by making our mobile node a mobile platform with one or 
> more onboard subnets, and require that an aircraft can make concurrent 
> use of multiple air/ground subnetworks. We can assign an MNP to each 
> aircraft, but that cannot be a locator in the normal sense in that it 
> does not relate to anything around it at any given time.
> 
> In the ATN/OSI, we did try to make the equivalent aircraft address 
> prefix routeable by using IDRP as the routing protocol and declaring 
> each aircraft to be a routing domain. At least this allowed routes to 
> the aircraft to be advertised throughout the ground internet. However, 
> this led to obvious scaleability problems (there are mitigation 
> strategies but this post is not about them). The distributed routing 
> also made it difficult to communicate the very different routing 
> policies that the ATC Providers required.
> 
> This approach did lead to the semantic equivalent of our "39 magic bits" 
> being a routeable address prefix, and there was a limited form of 
> aggregation possible from the fact that there was a common airline 
> prefix to the aircraft MNP.
> 
> In the ATN/IPS we first have a legacy problem - for reasons I keep 
> explaining - which make it very difficult to define an MNP that does not 
> include an airline identifier and the ICAO 24 bit identifier. However, 
> that does not stop us wanting to overcome the scaleability issues and 
> routing policy issues that we have with the legacy system.
> 
> We are considering various mobility management systems but, in the end, 
> they all come back to the same ideas.
> 
> 1. There is a routable care-of address assigned to each aircraft 
> interface to an air/ground subnetwork.
> 
> 2. The mobility routing problem for routing to an MNP relative IP 
> Address is to determine the care-of address of the aircraft interface 
> that best matches the routing policy requirements.
> 
> 3. Forward the packet to the care-of address using normal internet routing.
> 
> Here, the MNP is being used as a "name" and the mobility routing problem 
> is solved by looking up the care-of address associated with the MNP 
> (name). Once the packet gets to the aircraft then the destination 
> address becomes a routeable address, etc.
> 
> It's not as if this approach is that novel. In LISP, for example, a 
> destination IP address (an EID) is used to lookup a corresponding RLOC 
> IP address and the packet is then encapsulated and forwarded to the 
> RLOC. Once there, the EID is routeable.
> 
> So, I really don't see why you are so worked up about the 
> identifier/locator duality in an MNP. There is nothing that magic about 
> the 39 bits. They are just a unique identifier for the aircraft. Perhaps 
> it is because they contain redundant information that you find this 
> offensive - but that is primarily a legacy problem which we cannot 
> easily walk away from.
> 
> Constructive contributions are always welcome and if you want to send a 
> liaison statement to ICAO then it should be addressed to the secretary 
> of the Communications Panel and for the attention of Working Group I. If 
> you want access to the working papers then the usual protocol is to go 
> through your national CAA.
> 
>>
>> There's nothing to stop you putting those 39 bits into the Interface
>> Identifier of the aircraft's IPv6 addresses. That would need a slightly
>> different version of RFC7217, but would still allow 25 entropy bits.
> Possible, but what do you gain? You still need a unique MNP for each 
> aircraft. Also, we need the full 64-bits to map to the remaining parts 
> of the legacy NSAP Address.
>>
>> However, you should be aware that IP addresses are intrinsically
>> forgeable. I'm not sure I would want to fly on an aircraft whose
>> identity might be trivially forged. Also, it would be trivial for
>> an attacker to observe that a particular address belongs to a
>> particular aircraft.
> True, which is why we have end-to-end authentication, authenticated 
> logins and continuous peer entity authentication  over each air/ground 
> subnetwork, and a trust model under which all routing and MNP/care-of 
> address bindings are exchanged on the ground. Personally, I am not a fan 
> of "security through obscurity" and prefer to use strong encryption instead.
>>
>> One more comment below...
>>
>>> and hence could be densely allocated.
>>> However, if you want to go the distance and specify the minimum length
>>> identifier then:
>>>
>>> 1. You need to set up a new registration database for aircraft (in order
>>> to assign the new identifier) and one that is global rather than state
>>> based - which is the present approach.
>>>
>>> 2. You need to update the specification for the Aircraft Personality
>>> Module and organise the fleet wide upgrade necessary to ensure that
>>> every affected aircraft gets a new ICAO global Aircraft Identifier.
>>>
>>> 3. Safety Authorities will now identify a new hazard potentially
>>> resulting from a mis-match between the existing ICAO 24-bit identifier
>>> (which still has to be used for radar, ADS-B, TCAS, etc.), and the new
>>> airframe identifier.
>>>
>>> 4. We need to develop procedures and systems for mitigating the new
>>> hazard, assuming it is deemed serious enough.
>>>
>>> 5. The protocol gateways that are planned to avoid having to upgrade the
>>> existing ATC Systems in the same timeframe would now have to include a
>>> lookup table between the "old" NSAP Addresses and the "new" IPv6 Addresses.
>>>
>>> 6. The Safety Authority would identify a new hazard resulting from a
>>> table configuration/maintenance error and procedures/mitigations would
>>> be needed to counter the threat.
>>>
>>> 7. The address mapping would have to extend to the application protocols.
>>>
>>> In other words - a lot of negatives each with a potentially large cost
>>> attached to them.
>>>
>>> The next step is to accept that it is worth "wasting" a few more bits
>>> and using the existing ICAO 24-bit aircraft identifier instead of some
>>> new global aircraft identifier. This avoids issues 1 to 4 above.
>>>
>>> In order to avoid 5, 6  and 7, we need to have a simple algorithm to
>>> convert between aircraft ATN/OSI NSAP Addresses and ATN/IPS IPv6
>>> Addresses.
>> Are you aware that we already "solved" that in 1996 (https://tools.ietf.org/html/rfc1888), and scrapped it in 2005?
>>
>> Regards
>>     Brian
>>
>>
>>
>>> The existing (legacy) NSAP Address format for aircraft
>>> addresses starts off with some constant prefix and is then followed by
>>> an airline identifier, the ICAO 24-bit identifier, an 8 bit subnet id
>>> and a 48-bit End System id (it follows a structure originally proposed
>>> by NIST). The last two can be readily combined into a 64-bit host
>>> identifier. Indeed, if we based the MNP on the ICAO 24-bit then the only
>>> thing stopping a simple algorithm is the missing airline identifier part
>>> - this cannot be readily predicted from the ICAO 24-bit identifier
>>> without access to the registration database.
>>>
>>> In order to avoid a lookup table in the protocol gateway, etc. we need
>>> to have an airline identifier in the MNP. 15 bits appears to be the
>>> minimum we can get away with (in order to avoid a new airline
>>> identifier, the proposal is to generate a 15-bit identifier by encoding
>>> the existing ICAO three character airline identifier using ITA-2 letter
>>> shift). Hence 24 +15 = 39.
>>>
>>> The industry's network providers also regard embedding an airline
>>> identifier in the MNP as highly desirable. It is used in the existing
>>> system for diagnostic purposes and firewalls.
>>>
>>> This is not an "ICAO says so" at all. This is practical engineering to
>>> deliver a new system as an evolution from an existing system and with
>>> limited budgets. Start with a clean sheet of paper and you could use a
>>> lot less that 39 bits. Unfortunately, we do not have that luxury.
>>>
>>> Tony
>>>
>>> --------------------------------------------------------------------
>>> IETF IPv6 working group mailing list
>>> ipv6@ietf.org
>>> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
>>> --------------------------------------------------------------------
>>>
>>
>