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

Luigi Iannone <ggx@gigix.net> Thu, 25 May 2023 12:06 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 CB303C14CF1E for <lisp@ietfa.amsl.com>; Thu, 25 May 2023 05:06:37 -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_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 zVLBubs-EQk3 for <lisp@ietfa.amsl.com>; Thu, 25 May 2023 05:06:32 -0700 (PDT)
Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (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 8E005C14CE4A for <lisp@ietf.org>; Thu, 25 May 2023 05:06:29 -0700 (PDT)
Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3090d3e9c92so1982750f8f.2 for <lisp@ietf.org>; Thu, 25 May 2023 05:06:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gigix-net.20221208.gappssmtp.com; s=20221208; t=1685016387; x=1687608387; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=FqfVFDrjHaAgyA4ulmnfZoCXf3+VhDff0nERlDO1d8M=; b=09uAABDBsD4A/9f/htwKu7UQNGQ6MH6tYH7IdXrshDKD+1dh9Pf2SF0/pMQVsKJBTY WpuBXJhVxBhtGGqdS2CzMulxkmHzS4QpNsjNqs2XFOgbQMjTlaFpdpWrLl+DsS0i6eq/ gSO+TWn5hQ+Q3FvHVF7vmtnrKo6XC7WfFFrMHUNYeDZxac9s/59pwrKvovt6ZIFLlGIj 7kiP7sVna1Xufs+xq6tZl7MPK8EJweUi1x2cF8vwmLhzydVvNHCZe6QCO5EYmExnUDXJ H89HXETzDqSu0cvMiSGvcqiBji1zpB8jlEcM6GPWx3+yzeqpoRUn5IZJD03iyFHoRDxZ HGaQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685016387; x=1687608387; 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=FqfVFDrjHaAgyA4ulmnfZoCXf3+VhDff0nERlDO1d8M=; b=dNK9esN/wNt4KEDj1BlzhQTSoy+LdxS2BD7M6YO0d9dKDm/ainJKRC5o0+biW35LOF eoSAS8z3hUfa6h8iog4MNgQ8wXdif8Vg7bSC8s3owa6KeK9VmF00zfz1gnK3ovfNw048 iHgz48YOBPad0ZfqP6+/6wf+rGpCa2x3NloCQievzl2rrqe1wBEFi4S6kz27I0V28Hqa pL+gf9s7+CcnxS8viStjpsbUhBOQvkakGNVaaQ81Qz0GIeqq7IAgrTfcYbKEMzTWqKMt QcHE5n5JsOasplMqJGISArOjn2Z5S8zyBvP+9PRs/50xZBPSuPiNZ3lH1Jba7OyLKZaL g8yw==
X-Gm-Message-State: AC+VfDxoWP7wGE4BKrS33Jzph32qfXkyZDz0XyWWd53xJHnaHZjhvPvE e8wJB/NYs3YKy5cU8z4Dk4K9lw==
X-Google-Smtp-Source: ACHHUZ6gEUk9Dk9Rd486SCJqwvFLRy41me/nBbnl7lA3G1/avSKD9/akyj5aJBD3uiQMYPBM39ecBg==
X-Received: by 2002:adf:db4c:0:b0:304:7eaa:b196 with SMTP id f12-20020adfdb4c000000b003047eaab196mr2452155wrj.24.1685016386769; Thu, 25 May 2023 05:06:26 -0700 (PDT)
Received: from smtpclient.apple ([37.170.180.155]) by smtp.gmail.com with ESMTPSA id e7-20020a056000194700b00307bc4e39e5sm1567912wry.117.2023.05.25.05.06.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 May 2023 05:06:26 -0700 (PDT)
From: Luigi Iannone <ggx@gigix.net>
Message-Id: <33D0F75D-851E-4E95-A833-C84E5C4C0204@gigix.net>
Content-Type: multipart/alternative; boundary="Apple-Mail=_A5EEFB2F-6A5A-452F-A033-3D1BBB8F5A9A"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\))
Date: Thu, 25 May 2023 14:06:12 +0200
In-Reply-To: <CAC79566-A7A6-49AD-8276-709654BBC47E@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> <202A023C-9DD7-4FCC-9D16-07404B72DDB2@gigix.net> <CAC79566-A7A6-49AD-8276-709654BBC47E@gmail.com>
X-Mailer: Apple Mail (2.3731.600.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/lisp/2zpcabXTjwv_tP_PTGekEbh6n-s>
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: Thu, 25 May 2023 12:06:37 -0000

Hi Dino,

> On 24 May 2023, at 19:45, Dino Farinacci <farinacci@gmail.com> wrote:
> 
>> there are a few things to ponder:
>> 
>> - Looking at lispers.net the 254 value choice, it looks like a quick hack. 
> 
> I would refer to it as a convienent solution that doesn't violate the spec.
> 
>> - 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.
> 
> It always means a true value from an xTR point of view.

Understood. So the most accurate statement is that it "indicates the priority AND additional information, i.e. it is a RTR”.  


> 
>> - What about weight? In the 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?  
> 
> This solution does not violate the LISP spec on how ITRs/RTRs use priorities and weights.

You are adding protocol actions not related to priority upon a specific priority value…. Without calling it a violation of the specs this is a not following the specs as they are for now. Hence the question what should be done. 


> 
>> - 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. 
> 
> This is simply not true.

Yes, this is not true in the lispers.net <http://lispers.net/> case.
> 
> I think you are overstating the problem.

If we open the door to the use of priority value that are different from just priority values the question is quite relevant IMO.

> 
>> 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? 
> 
> You could do it with a distinguished-name AFI that is encoded with the RLOC address.

Excellent. So we have another possibility beside LCAF.

> 
>> 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.
> 
> That could be too specific to this use-case. What an ETR needs to know is if it should tag RLOCs it gets back from the map-server in Info-Reply messages with this bit.
> 
> It actually could not tag it at all since the map-servers know the addresses of RTR RLOCs when they advertise them. But that means all map-servers need to have the same info and there is configuration coordination required.

Don’t see this. The bit (or tag) is associate to the RLOC, the same way the 254 value is.


> 
>> 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.
> 
> No that won't be the case. The way it works is that the RTR will give an RLOC-set to the ITR. So the ITR doesn't know if an RLOC is an ETR RTR pETR, etc. But the ETR side registeres the RTR RLOCs with 254. That is what is implemented today. If the ETR DOES NOT do this the map-server could figure it out on its own (as I mention above).

I was not referring to you implementation. I was referring to possible interoperability issues.

Ciao

L.
> 
> Dino
> 
>> 
>> 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
>> 
>