Re: [lisp] On the use of priority associated to RLOCs

Luigi Iannone <ggx@gigix.net> Wed, 24 May 2023 11:49 UTC

Return-Path: <ggx@gigix.net>
X-Original-To: lisp@ietfa.amsl.com
Delivered-To: lisp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A5953C1522A4 for <lisp@ietfa.amsl.com>; Wed, 24 May 2023 04:49:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gigix-net.20221208.gappssmtp.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZXlKWeHs_Hff for <lisp@ietfa.amsl.com>; Wed, 24 May 2023 04:49:14 -0700 (PDT)
Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AEE4FC151B3E for <lisp@ietf.org>; Wed, 24 May 2023 04:49:14 -0700 (PDT)
Received: by mail-wr1-x443.google.com with SMTP id ffacd0b85a97d-3063433fa66so483377f8f.3 for <lisp@ietf.org>; Wed, 24 May 2023 04:49:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gigix-net.20221208.gappssmtp.com; s=20221208; t=1684928953; x=1687520953; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=ac5g5cNGgjrd9rSMdn7wWaaqRTyYAq51SjCitICsWvY=; b=fhOoYgLw3ikhwkkbdtkCV7S/VZGxl6Kyshyr9RtzRZXLDFuFhyaxH/+0IJd7qUEm6P v52YMzF+s7lj7UBqhhdXehrkJD82r6UBtlDCYL1RpNr5BjSK2GrHN0rkKVS8qvTvA54U EJEzB8AYencuqqlNw76gMo3SjgVHBXTPr5SN/n9rordDUG4IYXFJSZv9i9GB0KaAmyh2 TvNYdxkAtGoKl0NQJ5+0bwTukhNxY8C0ssAVfBzrbS9V+D8Ukz3zLKE/99+yVVleMTk3 iogRqQyonPIZGl8Br3/+UpinkkGHX7ziWYGZdjYzrY+xkBoMVqb0kGN3ZiVLxh3Xn108 d3Sw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684928953; x=1687520953; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ac5g5cNGgjrd9rSMdn7wWaaqRTyYAq51SjCitICsWvY=; b=TJ/QrKRIEfY7tZKDGpMkeEhlX0m/gHDYWYPt6mGIQlsPvVpf32iMDCfTpXHb4Y6ODh coJyhjmybWZIZSRjMhaqNuxzHogy1prME4cUZsqwPr7VBzkRR/bv2LXEgDiWPUnaKEqZ IWwl8OScnDwh77PUhPAkgQHjwhFoUoVcHXD/IwLwSsz8ponStFefWQhc1ka6LTrw8tcJ osdqeQzRR4n38Am9lGkVYTpoDWwqJvP2LC3CkeCS8l3rLaKqqdx9s9Lo4GonSppC1NLh jsVt4blzkkKeGxXjTTbFwfAB2K1Uju52RhEZJikSkryYPCdE7gQNTFnN/AniHfGqW1td gKXg==
X-Gm-Message-State: AC+VfDxVGB8C0RuFBmtatpyYwt4Sfz0o2chxjilcK84DAHYEByeNIYZs XLymBh9zdqcKy/alV8XV5RbKs8Gi5OKncu2uZ7WR8a2lMVI=
X-Google-Smtp-Source: ACHHUZ5Pg0Wa72ehd4H8DjiPW2XEdzL1NLlHh0QNOkcRlJ4Cq4O3XLtl+kUBEJDVh3DEPIydGHCqfw==
X-Received: by 2002:adf:cd10:0:b0:307:95d1:d7d0 with SMTP id w16-20020adfcd10000000b0030795d1d7d0mr12421190wrm.39.1684928952631; Wed, 24 May 2023 04:49:12 -0700 (PDT)
Received: from smtpclient.apple ([37.170.11.76]) by smtp.gmail.com with ESMTPSA id w6-20020a5d6086000000b003064600cff9sm14212172wrt.38.2023.05.24.04.49.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 May 2023 04:49:11 -0700 (PDT)
From: Luigi Iannone <ggx@gigix.net>
Message-Id: <202A023C-9DD7-4FCC-9D16-07404B72DDB2@gigix.net>
Content-Type: multipart/alternative; boundary="Apple-Mail=_CE0B02E8-DA93-49EA-B935-7BD139C5A535"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\))
Date: Wed, 24 May 2023 13:48:59 +0200
In-Reply-To: <50E8A755-4164-4452-8158-A997B65E7008@gmail.com>
Cc: Joel Halpern <jmh@joelhalpern.com>, "lisp@ietf.org list" <lisp@ietf.org>
To: Dino Farinacci <farinacci@gmail.com>
References: <97B0D7ED-C1E1-4285-A401-DA2BA2FDCE3E@gigix.net> <C23CF756-7F9B-4064-B975-51831B4364D5@gmail.com> <3d13b538-2dc6-fb36-a32d-a2accf4c43ae@joelhalpern.com> <50E8A755-4164-4452-8158-A997B65E7008@gmail.com>
X-Mailer: Apple Mail (2.3731.600.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/lisp/jhx3YDsvv57tsfZDqgPB86lIBK8>
Subject: Re: [lisp] On the use of priority associated to RLOCs
X-BeenThere: lisp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: List for the discussion of the Locator/ID Separation Protocol <lisp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lisp>, <mailto:lisp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lisp/>
List-Post: <mailto:lisp@ietf.org>
List-Help: <mailto:lisp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lisp>, <mailto:lisp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 May 2023 11:49:19 -0000


> On 23 May 2023, at 23:05, Dino Farinacci <farinacci@gmail.com> wrote:
> 
>> Personally, I find this to be an inappropriate overlaoding of the Priority.  While overloading is not uncommon, it often causes problems with protocols and I would prefer that we not do so.
> 
> We all do. But the implementation has been deployed for nearly 10 years. The draft is just reporting/documenting how it is used. 

Dino,

<chair hat on>

The fact that you use that specific value in a particular way does mean that the WG should agree to use priority values to indicate other things.
The LISP WG is free to decide to deprecate such usage.

<chair hat off>

What follows is my personal opinion.

About overloading priority with other meanings:

Having 256 values to define priority is quite large and (according to my experience) we can live with a lot less. So from that perspective it is not a big deal.

YET 

there are a few things to ponder:

- Looking at lispers.net <http://lispers.net/> the 254 value choice, it looks like a quick hack. 

- What about backward compatibility? If we allow overloading, there is no way to understand whether a value indicates a “true” priority or something else, different implementations may interpret the value in different ways with unpredictable results.

- What about weight? In the lispers.net <http://lispers.net/> NAT traversal it is used as defined in the main specs, but this means that all RTR have the same priority all the time. And what if a future value will indicate not to use weight? Or use it in a different way?  

- With the above we end up having RLOCs priorities that can be priority or something else. In this latter case weight can or cannot be meaningful (or even be something else altogether). Architecturally speaking it looks to me less clean. 

Now, let’s take one step back: the real question seems to be how to signal in the mapping system that an RLOC belongs to a RTR? 
Or in a more general way: How to deliver RLOC-related informations that go beyond priority and weight?

The answer to me is RFC 8060. Just use LCAF! The LCAF format has 16 reserved bits. One can be allocated to indicate whether the RLOC address belongs to an RTR.
A side benefit of this choice would be that older implementations will just ignore the bit, hence taking no action, rather than interpreting the bit in a different way. Looks like a safer situation to me. You can even use a whole new type, so that an implementation either knows how to handle it or does nothing at all.

Thoughts from the WG folks?

Ciao

L.


> 
> Note this is only how the map-server operates. So existing xTRs will get back whatever the map-server decides. So if you are not an RTR (that must be configured in the said map-server) you will get back an RTR RLOC that an xTR will happily encapsulate to. That is, it works with existing xTRs that don't know anything about NAT-traversal.
> 
> This implementation has interoperated with other implementations, but we don't claim anything in the draft. And existing xTRs can *receive* packets without following the control-plane procedures from the draft. We demostrated this with OOR by doing gleaning on the RTR.
> 
> I have videos demostrating this for unicast and multicast and can send pointers if people are interested.
> 
> Dino
> _______________________________________________
> lisp mailing list
> lisp@ietf.org
> https://www.ietf.org/mailman/listinfo/lisp