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

Dino Farinacci <farinacci@gmail.com> Wed, 24 May 2023 17:45 UTC

Return-Path: <farinacci@gmail.com>
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 D26DEC151B26 for <lisp@ietfa.amsl.com>; Wed, 24 May 2023 10:45:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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=gmail.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 pk3rn1uy1bkR for <lisp@ietfa.amsl.com>; Wed, 24 May 2023 10:45:28 -0700 (PDT)
Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) (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 CA229C151B2B for <lisp@ietf.org>; Wed, 24 May 2023 10:45:28 -0700 (PDT)
Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-253e0f1e514so398579a91.1 for <lisp@ietf.org>; Wed, 24 May 2023 10:45:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684950328; x=1687542328; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=B520lZDBMYMxsvSUVFFE9e9lO4qKZyZUib3eX6sXLxg=; b=MguS/FWdQK7GukgFjgsHQh3FRkQa/HW4lWBEvRqpMDXDEMgM4QhTxOvSEEFS8jqUBB /LRVgSYhgY8PERrR373l6JHeybv5kGBLix6dhpNCRIB4QyqkJYQTTMsqxtZy+GqR28uN 5c6K6USYfTYZDmwjVod+hvI5OkgQjiz3/8xTI4xgJ875X0syyjdw+yJ/0ZagD3P/irBR v8aUuaPLG9JtM4gzii6gVDvNGQjNpebfBJ/Qv4rONhLgNq7FJk7K5Ijk7eGNhRgQ65H7 PKaRYN3ylOtmnMtXtY3rOYzByZ33JG7JuO+AxFQOPDihW//Ef0ewyMqBY9m+N9q1OslV m/8w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684950328; x=1687542328; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B520lZDBMYMxsvSUVFFE9e9lO4qKZyZUib3eX6sXLxg=; b=AIMw7LudT8lMfuZ5hf38Y/oFpF/lbqz1WZ4N4gGWSfLlCcoqLCMzP3FZRAOD6OcM+l OjZeN+DNyBnaGvCfhY93CTXvI2/qkc9HhZzT6VmndRdV7rRnzSlkIhh+2GDr8KZfOO34 PyScR0yOMODl5t2geItOkJjpR3HR33g8YlLZoe+aHy1QEH41KiB3rpHmE2VvkKGj7Snu 2g7f2YSFgIOqeCBYWYGSBVVIfTVBH0CK0iQlskawpxNYajgYZXEyfZEX9hFGIGnLmep5 8OwKsomKhSl3hUdH1FS8SkFAJLA9FlHeuKWxuezA3CR4J1CIcKyDe40SALXOfIKZgmY8 euDQ==
X-Gm-Message-State: AC+VfDwmzYLSgl5sLn/y5K5gsJGp6gdG+Lo69xFdGDWfygFYgeT0Q0u/ 0lCq6Bch+76VghyNsGIvkj8=
X-Google-Smtp-Source: ACHHUZ4YkvWupQ82DhN0A8VJ86wQSacu31y/n2naw1XgLvPRARtu88gvfLZeXn0oEuRBgZK7UMuxzw==
X-Received: by 2002:a17:90a:7101:b0:255:d628:c69b with SMTP id h1-20020a17090a710100b00255d628c69bmr2873537pjk.6.1684950327888; Wed, 24 May 2023 10:45:27 -0700 (PDT)
Received: from smtpclient.apple (c-69-181-209-248.hsd1.ca.comcast.net. [69.181.209.248]) by smtp.gmail.com with ESMTPSA id i2-20020a17090ac40200b0024de39e8746sm1633035pjt.11.2023.05.24.10.45.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 May 2023 10:45:27 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\))
From: Dino Farinacci <farinacci@gmail.com>
In-Reply-To: <202A023C-9DD7-4FCC-9D16-07404B72DDB2@gigix.net>
Date: Wed, 24 May 2023 10:45:16 -0700
Cc: Joel Halpern <jmh@joelhalpern.com>, "lisp@ietf.org list" <lisp@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <CAC79566-A7A6-49AD-8276-709654BBC47E@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>
To: Luigi Iannone <ggx@gigix.net>
X-Mailer: Apple Mail (2.3731.400.51.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/lisp/TK2_iN7bH9-7zxy7Nch2droKTsA>
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 17:45:32 -0000

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

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

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

I think you are overstating the problem.

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

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

> 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).

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
>