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

Nick Harper <nharper@nharper.org> Thu, 16 February 2023 00:34 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 DDF1EC14CEE5 for <ham-ag@ietfa.amsl.com>; Wed, 15 Feb 2023 16:34:08 -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=unavailable 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 I5p632-qaOSA for <ham-ag@ietfa.amsl.com>; Wed, 15 Feb 2023 16:34:05 -0800 (PST)
Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (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 480BBC14CE46 for <ham-ag@ietf.org>; Wed, 15 Feb 2023 16:34:05 -0800 (PST)
Received: by mail-ej1-x62f.google.com with SMTP id lf10so1307532ejc.5 for <ham-ag@ietf.org>; Wed, 15 Feb 2023 16:34:05 -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=z3wsS4QW7zpoccch0KBovIUTEhlsryOKXDYhOZv57zA=; b=2sg6wnk15rrgxlqEPc3we4a/NOaq3e1L04M3Y7OX+V7EqmSN98tiE+8t5rjspu/9iQ Fy56m7/h9oc5KxgKdjsmaTnngQwbVsY8gikiDNPs3wsg8SlEb8SpQmq6u9Eg6vtXyuuR WOaUr39XwTfJ0LnwmZn07XLDu4Tae28xN72aUtFrkHpPm6PgRDJH99nNCfyaBHb+7pfG cjZvcS7TfLRYetp12TGOOmdFXw8ioPzd/TJtHYLw5CrFbzRznuETs6Xu8wA9iv9jyCmr wcHOE7GKrV5PM1jiD+s9Tvq58S/44SI/QD4+zvIOLd2qgm3j44mRRSmf0B/+WrHWZnEZ 5NlQ==
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=z3wsS4QW7zpoccch0KBovIUTEhlsryOKXDYhOZv57zA=; b=jtZUtvPb4XBn21Lo2jX0aCHsTXgofXRtuiVaRpcuXlvOKf3m/GFywjZpQ885Dbnivk GZm+cMLO42OnFfmM08JvU+1oImJ+71vj3GHtU1JOD7PKgLku5mE4jQGO/VjAfig1l98I gTpuUIEvcTHU9SldGpOF4PaT+OV7Go9aXCM6hVF/bd4mDrykj2PCloa4lWlG1tjU6te3 wD3sO36LgZqoteXkmd7vf2ZZ5CdvtKAANLzUjxjWPsg837i8kgqaX71udITriCS5wFoB 9ug+xHbjJ7dKWoUr1iU3LPrYvJMHD0u33ywG5T4zlqIIF10u5Ppej/aeA4aumMARbBe2 Owgg==
X-Gm-Message-State: AO0yUKW0Znyl/1QyemEHX+P3KU6Rnvufgbu8SYbl6OUc1DIbNkN7aF+V XHAsvLqvd8uooDyG6UdP8ZBgWvEzktDqpm4vg0G8MQ==
X-Google-Smtp-Source: AK7set8GvmJ3O9YfeLlzBL4swXcvUSADE0gZJXNkpCNsJ6HVR5Jvzi8sOQEYO4oUQLoTRT+YqL+a4c9GmtPhDaXkiM8=
X-Received: by 2002:a17:906:4ed1:b0:883:2c50:5401 with SMTP id i17-20020a1709064ed100b008832c505401mr1931695ejv.12.1676507643040; Wed, 15 Feb 2023 16:34:03 -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> <CACcvr=kc6kqPpdve8VWX5RWydtvjJkmEk+ykBvM6=SrUSVXWYQ@mail.gmail.com> <CAD=s3w4Oa9NKK-6h-YEr9OSHy_=C6JBsauWSxkrw-=oS1O=EMA@mail.gmail.com>
In-Reply-To: <CAD=s3w4Oa9NKK-6h-YEr9OSHy_=C6JBsauWSxkrw-=oS1O=EMA@mail.gmail.com>
From: Nick Harper <nharper@nharper.org>
Date: Wed, 15 Feb 2023 16:33:52 -0800
Message-ID: <CACcvr=nvTmhH2=a1hs4_Mp99HH01_fXFDSNsZHJ=sD-hit7FGQ@mail.gmail.com>
To: Evan Pratten <ewpratten@gmail.com>
Cc: Donald Eastlake <d3e3e3@gmail.com>, Alexandre Petrescu <alexandre.petrescu@gmail.com>, IPv6 <ipv6@ietf.org>, ham-ag@ietf.org
Content-Type: multipart/alternative; boundary="00000000000086eecd05f4c65a3e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ham-ag/39dnFTEhUrt4uS_hb8THOZIxgJA>
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:34:09 -0000

I had to look up that ITU regulation, so I don't know if there's a max
length on temporary callsigns.

If you treat the callsign as a base-36 number, you could squeeze up to 11
characters into 60 bits.

If you really want to handle callsigns of arbitrary length, you could use
some of the 60-bit space for direct encodings of short (e.g. <=7
characters) callsigns and the rest of the space for the hash of longer
callsigns.

On Wed, Feb 15, 2023 at 4:13 PM Evan Pratten <ewpratten@gmail.com> wrote:

> I have personally held temporary callsigns longer than 7 characters,
> which is why I wanted to handle that.
>
> Using a more space efficient encoding scheme is an interesting idea.
> Do you know if there is a maximum length on temporary callsigns by
> chance?
>
> I'll think about doing away with the hash in favor of space-efficient
> encoding.
>
> On Wed, Feb 15, 2023 at 7:10 PM Nick Harper <nharper@nharper.org> wrote:
> >
> > 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
>