Re: [HAM-AG] [IPv6] Request for feedback: draft-evan-amateur-radio-ipv6

Alexandre Petrescu <alexandre.petrescu@gmail.com> Fri, 17 February 2023 20:05 UTC

Return-Path: <alexandre.petrescu@gmail.com>
X-Original-To: ham-ag@ietfa.amsl.com
Delivered-To: ham-ag@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AAF6AC1522CB; Fri, 17 Feb 2023 12:05:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.329
X-Spam-Level:
X-Spam-Status: No, score=-3.329 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
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 w-rnbUyoDmUo; Fri, 17 Feb 2023 12:05:01 -0800 (PST)
Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [IPv6:2a01:e0c:1:1599::13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 DDCA8C15171E; Fri, 17 Feb 2023 12:05:00 -0800 (PST)
Received: from [IPV6:2a01:e0a:b8e:b850::c242:5479] (unknown [IPv6:2a01:e0a:b8e:b850::c242:5479]) by smtp4-g21.free.fr (Postfix) with ESMTP id B0DE219F57B; Fri, 17 Feb 2023 21:04:51 +0100 (CET)
Message-ID: <aaefbe19-ae80-fbef-5317-c17a7e18340d@gmail.com>
Date: Fri, 17 Feb 2023 21:04:51 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2
From: Alexandre Petrescu <alexandre.petrescu@gmail.com>
To: Nick Harper <nharper@nharper.org>, Donald Eastlake <d3e3e3@gmail.com>
Cc: Evan Pratten <ewpratten@gmail.com>, IPv6 <ipv6@ietf.org>, ham-ag@ietf.org
References: <CAD=s3w5UUgiNC=SJxigAj7TS_QHDfk+KBiWq846rVcqmRxxtLQ@mail.gmail.com> <5420a784-0c57-e40f-3e45-dd3bd9c393ea@gmail.com> <CAF4+nEGh3J0wO7+9jcHoQErcW8=hXD+sh9DLJ7QWYUoBsmLAQg@mail.gmail.com> <CAD=s3w6NFz4BA9_sdPukZQFQnS2h9yjP0ncYifX0HedOn_ZVPA@mail.gmail.com> <CAF4+nEGGtRh20503VpCPjT2VdsaoDEbcfqSTumExHZEef2Jvvg@mail.gmail.com> <CACcvr=kc6kqPpdve8VWX5RWydtvjJkmEk+ykBvM6=SrUSVXWYQ@mail.gmail.com>
Content-Language: fr
In-Reply-To: <CACcvr=kc6kqPpdve8VWX5RWydtvjJkmEk+ykBvM6=SrUSVXWYQ@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ham-ag/_lptHIC-21CRDL8cdoUXOAdDSbY>
Subject: Re: [HAM-AG] [IPv6] Request for feedback: draft-evan-amateur-radio-ipv6
X-BeenThere: ham-ag@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: HAM Radio Operators Affiliate Group <ham-ag.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ham-ag>, <mailto:ham-ag-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ham-ag/>
List-Post: <mailto:ham-ag@ietf.org>
List-Help: <mailto:ham-ag-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ham-ag>, <mailto:ham-ag-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 17 Feb 2023 20:05:04 -0000


Le 16/02/2023 à 01:10, Nick Harper a écrit :
> Why hash the callsign at all?

I think it is a good question.

There appears to be a need of having the callsign in IID.  Maybe one can
understand better the need - the use-case?  Maybe I need to read better
the draft to guess better the details of the use-case.

The technique of converting by using hashing and security functions is
often a great temptation, due to many of their advantages.  It is
tempting also because it is a mechanism, software is available,
algorithmics are attractive.  It can be made work soon and declare great
satisfaction.  That can bring great deployment success, some times.

Sometimes one wants to convert and make sure there is uniqueness
guarantee, other times one wants to sign, to prove ownership, and so on.
  For example, in today's context one would query a balloon - call a sign
- to whom might it belong, and the answer would need to be
authoritatively proven right.

On another hand, many of the requirements might be contradictory.

For example, a question can be made as to why should one use a hashing
function that provides only uniqueness (no ownership) if the callsign is
unique in the first place, being allocated centrally; and the entire IP
address has a unique prefix too, allocated centrally.

So, why using a hashing function if there is already uniqueness?

> Article 19 of ITU's Radio Regulations specifies the format of 
> callsigns, and they are at most 7 characters long. The ASCII 
> representation of the callsign

8bit ASCII?  Unicode?  Should ITU upgrade?

> could be used to generate 7 bytes (56 bits) to use in the address 
> without needing any hashing.

That might make sense, but again, what kind of ASCII?

> For the exception in 19.68A (on special occasions, for temporary use,
> callsigns could be longer than 7 characters), a 6-bit encoding scheme
> could be devised so that alphanumeric callsigns up to 10 characters
> long could be encoded in 60 bits.

10 characters in 60 bits sounds as if there is compression.  It should
be 80 bits for easy readability (each char on 8bit).

This kind of compression can exist ok for computers, but for humans it
might be more difficult to read.  For example, ASN.1 representation in
CAM message in vehicles represent a nightmare for many developpers,
because of a similar compression. What goes well there is xml
representation that many more can read.

But I agree with the possibility of a 6bit encoding scheme.

For me, if I were to devise it, I would like a result like this:

VA3ZZA -> 2001:db8::8A:322A (remark VA3ZZA is 8A:322A, which seems
relatively a same, visually)

In order to be almost a same, verbally on the spelling alphabet, one
would need a 37-decimal representation of an IP address (and not just
the current 16-decimal - hexadecimal - representation).  Such a
37-decimal representation of an IPv6 address would be needed to be
developped independently.  With it, it would allow a conversion of the form:

VA3ZZA -> 2001:db8::VA3ZZA

That would be an ideal conversion, from a readability standpoint.

Finally, I wanted to say that the proposed method in the draft also
proposes to use a 'Node ID', like this: "Use the final 4 bits of the
address' Interface Identifier to store the nodes's ID number."

Not sure whether it is a good idea, probably yes.

Probably this 'node ID' is like the interface number concept: an address
is given to a computer, but that computer might have several interfaces,
and they are numbered.  On a regular PC they could be max 16, but on
large switches it could be 100 or even more.

Alex

> 
> On Wed, Feb 15, 2023 at 3:28 PM Donald Eastlake <d3e3e3@gmail.com 
> <mailto:d3e3e3@gmail.com>> wrote:
> 
> Hi,
> 
> On Wed, Feb 15, 2023 at 3:03 PM Evan Pratten <ewpratten@gmail.com 
> <mailto:ewpratten@gmail.com>> wrote:
>> 
>> On Wed, Feb 15, 2023 at 2:58 PM Donald Eastlake <d3e3e3@gmail.com
> <mailto:d3e3e3@gmail.com>> wrote:
>>> I'm not sure the hash even needs to be cryptographic.
>> 
>> Agreed. I would call a cryptographic hash *undesierable*. Why
>> waste processing power hiding the callsign when you have to ID
>> yourself anyways?
>> 
>> I am admittedly far from an expert on hashing algorithms. Donald, 
>> do you have any suggestions that fit the properties you outlined
>> by chance?
> 
> Indeed, I would suggest using FNV-64 truncated to the top 60 bits, 
> See https://datatracker.ietf.org/doc/draft-eastlake-fnv/ 
> <https://datatracker.ietf.org/doc/draft-eastlake-fnv/>
> 
> Here is an article on using FNV-32 for IPv6 flow label 
> https://researchspace.auckland.ac.nz/bitstream/handle/2292/13240/flowhashRep.pdf
>
>
> 
<https://researchspace.auckland.ac.nz/bitstream/handle/2292/13240/flowhashRep.pdf>
> 
> Thanks, Donald ============================= Donald E. Eastlake 3rd 
> +1-508-333-2270 (cell) 2386 Panoramic Circle, Apopka, FL 32703 USA 
> d3e3e3@gmail.com <mailto:d3e3e3@gmail.com>
> 
> -- HAM-AG mailing list HAM-AG@ietf.org <mailto:HAM-AG@ietf.org> 
> https://www.ietf.org/mailman/listinfo/ham-ag 
> <https://www.ietf.org/mailman/listinfo/ham-ag>
>