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

Nick Harper <nharper@nharper.org> Thu, 16 February 2023 00:10 UTC

Return-Path: <nharper@nharper.org>
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 19112C169523 for <ham-ag@ietfa.amsl.com>; Wed, 15 Feb 2023 16:10:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.893
X-Spam-Level:
X-Spam-Status: No, score=-1.893 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_NONE=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=nharper-org.20210112.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 n9X5OTuz6ajh for <ham-ag@ietfa.amsl.com>; Wed, 15 Feb 2023 16:10:25 -0800 (PST)
Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (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 6BE52C136133 for <ham-ag@ietf.org>; Wed, 15 Feb 2023 16:10:25 -0800 (PST)
Received: by mail-ej1-x62c.google.com with SMTP id a3so1219484ejb.3 for <ham-ag@ietf.org>; Wed, 15 Feb 2023 16:10:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nharper-org.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nc/5m7t+LLs9G1fcOO55mbdYlrXKzdifBIBtTdgOgJk=; b=yghNZPb7QAYSxSAv5yujtDHjhLGprC3M79AaWr0cfcFTgFdRd8v41Bfu2+c1eVptem zpzvYfhL8r6jZ/tUrJeeuJga3JxwkAALi2EHKGmAmHOgs+9R8Ze9nnkRi7qbsiCAsxu0 2J8JLe1FPxYVABGv9mOYw8C+iLv3H/e94VfCzDrlqm/JSI2yww3p5fnpyJ7nsoL2KzQB OZyJMIKFRJQH4HYpVio8C7dhlw/coK7jKfrfIaWL4+2O+kaMLLCP363kWdPRUl4tX9kB iKwOIoj4vgRtGXlyUSgnEp5wLiJgIFxZ0l/rZmLRmEkn2BsjPxB9FccM8vrSBq/zHlv9 hfZQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nc/5m7t+LLs9G1fcOO55mbdYlrXKzdifBIBtTdgOgJk=; b=5rm3KaWFMOkhHc2I9EWYt+ufV7ZSeOsIcNL/G4Hj5A37vB+07g4aGBJz12C7X/2puE tSogt8k3mZmD57LdaVNp2OuCQLn9Y3OFULTwPXepG7VNYJPi5UsYZpHdBZMlMyCqtUmK /d0o5khmah1F4nsP0oAOXugEj5/hxML5KO6zuHB6R1LJgYsgWaY1TusisvkuuZ3+1mtt gp3wUCOdndfM0q/HEn3a2hxOVZ1pQyPQApibMqsIEnf2Wc205Jp11UwMj1IK8bBfRqMM lowGz6dzBwahbRtyFaHpTT0sc0i5NRGRrb6sWBhf3wded96fkAHSzz40DXFqO579OGfw gLTw==
X-Gm-Message-State: AO0yUKVqvwrtg643+ZiN2lVCziMeUZrQvlvZdG0pyDKFHfhxhSWWdzT7 7uHga8l7R8/9oH2TMi4OuPMmsXAZkWDdLeey4QS47Q==
X-Google-Smtp-Source: AK7set9hEai4cCk2LD211rh8qhqSmQGF66h73AK7h6HrklfF3+Md1ufZiq3zzex1XlgDXa0kEYkJxQCWliNxFGfFfKA=
X-Received: by 2002:a17:906:5a6d:b0:878:72e3:d7ad with SMTP id my45-20020a1709065a6d00b0087872e3d7admr1943915ejc.12.1676506222980; Wed, 15 Feb 2023 16:10:22 -0800 (PST)
MIME-Version: 1.0
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>
In-Reply-To: <CAF4+nEGGtRh20503VpCPjT2VdsaoDEbcfqSTumExHZEef2Jvvg@mail.gmail.com>
From: Nick Harper <nharper@nharper.org>
Date: Wed, 15 Feb 2023 16:10:11 -0800
Message-ID: <CACcvr=kc6kqPpdve8VWX5RWydtvjJkmEk+ykBvM6=SrUSVXWYQ@mail.gmail.com>
To: Donald Eastlake <d3e3e3@gmail.com>
Cc: Evan Pratten <ewpratten@gmail.com>, Alexandre Petrescu <alexandre.petrescu@gmail.com>, IPv6 <ipv6@ietf.org>, ham-ag@ietf.org
Content-Type: multipart/alternative; boundary="000000000000e284a005f4c60596"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ham-ag/WTmffjYFfshsB4sic2Fyp2RhYlA>
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: Thu, 16 Feb 2023 00:10:29 -0000

Why hash the callsign at all?

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 could be used to generate 7 bytes (56 bits) to use in the address
without needing any hashing. 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.

On Wed, Feb 15, 2023 at 3:28 PM Donald Eastlake <d3e3e3@gmail.com> wrote:

> Hi,
>
> On Wed, Feb 15, 2023 at 3:03 PM Evan Pratten <ewpratten@gmail.com> wrote:
> >
> > On Wed, Feb 15, 2023 at 2:58 PM Donald Eastlake <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/
>
> Here is an article on using FNV-32 for IPv6 flow label
>
> 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
>
> --
> HAM-AG mailing list
> HAM-AG@ietf.org
> https://www.ietf.org/mailman/listinfo/ham-ag
>