Re: [pim] AD Review of draft-ietf-pim-assert-packing-05

Stig Venaas <stig@venaas.com> Thu, 16 February 2023 16:19 UTC

Return-Path: <stig@venaas.com>
X-Original-To: pim@ietfa.amsl.com
Delivered-To: pim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 15052C18799E for <pim@ietfa.amsl.com>; Thu, 16 Feb 2023 08:19:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.897
X-Spam-Level:
X-Spam-Status: No, score=-6.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=venaas-com.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 eqxT3ZrAwZgJ for <pim@ietfa.amsl.com>; Thu, 16 Feb 2023 08:19:49 -0800 (PST)
Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (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 AAA72C1879BF for <pim@ietf.org>; Thu, 16 Feb 2023 08:18:56 -0800 (PST)
Received: by mail-ed1-x529.google.com with SMTP id eq11so4826536edb.6 for <pim@ietf.org>; Thu, 16 Feb 2023 08:18:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=venaas-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ILQjLrpHHHE2KHXwORbDh6FGRlB+4wUs0dcZiwGmeGQ=; b=XlBHFfnTp85DNmjpxVsdBJjdjBOH2ogZXczO7yGwMdYR35AY0sj9EefFD31m0dA7cT Xez9/e+pC//rdOA6vuL4jFrImizkkD6wSsEA2d3ui7RvIIysRpeM9q/eIdqNOCQ4E4yw Kubxy2qL++Md2s6q6K32lKDcwtnPg6HXO+g+uAC6sQ+F1xhv/1ysqftvCIjWatr/Mz1a cUAZTHxwuf3M7mif5IDO8zDkETpzc4ldIA4VO81EdqU+m0sz51J8L8BbanbPQ2i63vxt El0dvWIkE9IeRtLkdqq+HnVO6VVma5ELc99uf2lOotIX9UbdicCFVH0gjkulLnYropvO dDKg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding: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=ILQjLrpHHHE2KHXwORbDh6FGRlB+4wUs0dcZiwGmeGQ=; b=hECmUYQFGAaWvnqPT+pMT0eDoZePIWiMcH97oS/iknEVKFxQikLE1MC4kQoWLc15im NJYQ6g4lzoHiwrUJHXVz6brazaVZJILb3C+t+EGrcMIXyQclLI+E5iXV9g6lF4dOKxpL 4SuKoddtdaEhw6sKWWeTnoNdGsMREz+sb4/IwAvj0F0BzMfeCkySFEUHLh1acugtgxNY yFwp8j1rGEeOJw+2suXCG9AZDsclQCEv6NtnQMjjtZ1lMkrc/rhSOQsVsg7n7zi0Zevw 1SoNt4mQx1+VDLLfL88ZMYROW0zOv0Ed6Wp2ypvLjYmeTWd4pcvl8iJXJVhJ4g+K4CXv PljQ==
X-Gm-Message-State: AO0yUKXqJudVd6/wbuskBN66q+huNhOaRFcDAz8Kv2AJUF3RIv+D4bT6 YePjdIbV5/FsDZWdnrzr69wdiGohreD1JmoGbEAwTdOFMWUh2g==
X-Google-Smtp-Source: AK7set+QLiRsl8n9TfSXrb//u8H/FjddD/YS6gGFyGbRGJO4q8sYWMiN5MJZiEnSJ3F/F3G3dwsp42IhuCSw/43GLTg=
X-Received: by 2002:a50:874f:0:b0:4ad:6d57:4e16 with SMTP id 15-20020a50874f000000b004ad6d574e16mr837956edv.5.1676564334438; Thu, 16 Feb 2023 08:18:54 -0800 (PST)
MIME-Version: 1.0
References: <CAMMESszQRWK7YHH_UY9fRCVJSe5LFum0N9smBERn4Hb-AhQF2w@mail.gmail.com> <Y+Z4YknJgc6XwbwB@faui48e.informatik.uni-erlangen.de> <CAHANBtKhsC1==DFrby8PGgD_ERKbOUF6CY+obRAA3B9q=Ef0Ow@mail.gmail.com> <CAMMESswepW=T0n64sQMFKFFCWpPaeR3oqwVVwpLKZeAuDHAtuw@mail.gmail.com> <CAHANBtJ8Y+bSR2FO+TktYt7fONF1KPYm_Vbtf0z9mTFHOwEP-Q@mail.gmail.com> <Y+qHWtLBBbSw9K8S@faui48e.informatik.uni-erlangen.de> <CAMMESsx3vQ_E93u3ocp_B+iUsW9_Cjqeouqo_ORjQig+qhXBxQ@mail.gmail.com> <Y+5VMVWyuyzg6ftI@faui48e.informatik.uni-erlangen.de>
In-Reply-To: <Y+5VMVWyuyzg6ftI@faui48e.informatik.uni-erlangen.de>
From: Stig Venaas <stig@venaas.com>
Date: Thu, 16 Feb 2023 08:18:43 -0800
Message-ID: <CAHANBtKCAushABTRBmcAy+aY1yHgemnA3gV5Ax2uiz1Urqp+LQ@mail.gmail.com>
To: Toerless Eckert <tte@cs.fau.de>
Cc: Alvaro Retana <aretana.ietf@gmail.com>, pim@ietf.org, draft-ietf-pim-assert-packing@ietf.org, pim-chairs <pim-chairs@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/pim/YwCK4xlpjBQqSjCy14tbYpjs0Q8>
Subject: Re: [pim] AD Review of draft-ietf-pim-assert-packing-05
X-BeenThere: pim@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Protocol Independent Multicast <pim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pim>, <mailto:pim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pim/>
List-Post: <mailto:pim@ietf.org>
List-Help: <mailto:pim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pim>, <mailto:pim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Feb 2023 16:19:52 -0000

Hi Toerless

Agree. We do have cases where there are several assert messages per
second (which is why we need this), but maybe there will still be say
at least 1 message per second. So I think it's not unlikely that a new
router coming up might encounter the new assert format before its
hello is processed by other routers. So I think having a 0 first byte
would be good.

Regards,
Stig

On Thu, Feb 16, 2023 at 8:09 AM Toerless Eckert <tte@cs.fau.de> wrote:
>
> Ack. Happy to hear from any other WG members opinions.
>
> I do somewhat ponder that it would not be a bad idea to have the first byte of payload zero
> filled to be able to actually know that the new messages will not be misinterpreted
> in the case Stig mentioned. But i don't want to over-engineer either.
>
> Cheers
>     Toerless
>
> On Wed, Feb 15, 2023 at 07:52:53PM -0600, Alvaro Retana wrote:
> > FWIW — besides removing the count, I don’t think any of the other changes
> > are needed.
> >
> > Alvaro.
> >
> > On February 13, 2023 at 1:54:21 PM, Toerless Eckert (tte@cs.fau.de) wrote:
> >
> > Some quick thoughts:
> >
> > - It's fine to remove the count by me. I just did this rev with what i felt
> > was
> > necessary to solve Alvaros feedback. here is what i would suggest:
> >
> > - If we want to solve the small windows of inconsistency:
> > We can insert an 0-bit zero field as the first byte of the
> > PackedAsserts. This will ensure thart thhey always fail to
> > be valid Asserts because zero is reserved in the address types
> > used to encode the group address. And to keep the structures 16-bit
> > alignment (as ew have it now), we follow this up with 8 bit reserved.
> >
> > - For extensibility with future possible additional assert options,
> > we can add the notion to the PacketAssert option that a length
> > > 0 MAY be used, but will be ignored on receipt.
> > This means that we could avoid introducing a new IM Hello Option
> > codepoint if we would amend/revise the functionality in the
> > future with more/different assert message types. That would then
> > use some length > 0, and the spec would say to only use this
> > when all routers announce it.
> >
> > Cheers
> > Toerless
> >
> > On Fri, Feb 10, 2023 at 12:40:12PM -0800, Stig Venaas wrote:
> > > Hi Alvaro
> > >
> > > That's a great point. Sorry Toerless, I did not think about that when
> > > I emailed earlier.
> > >
> > > Only potential issue is that there might be some small window where an
> > > older implementation is coming up and is receiving such a message
> > > before the other routers parse its hellos. Not sure how likely that
> > > is. This is of course an issue with hello capabilities in general.
> > >
> > > Will have a closer look at the new version soon.
> > >
> > > Thanks,
> > > Stig
> > >
> > > On Fri, Feb 10, 2023 at 12:31 PM Alvaro Retana <aretana.ietf@gmail.com>
> > wrote:
> > > >
> > > > On February 10, 2023 at 12:17:30 PM, Stig Venaas wrote:
> > > >
> > > > Stig:
> > > >
> > > > Hi!
> > > >
> > > >
> > > > > I see you are reusing the assert message type in the latest draft.
> > > > > That won't work. Existing implementations would not check the
> > reserved
> > > > > bits, they would just assume it is a regular assert. It is ok to use
> > a
> > > > > new message type, but using one for each of the packet formats is
> > > > > unnecessary.
> > > >
> > > > Yes, but that shouldn't be an issue because the drafts says that
> > > > "PackedAssert messages (Section 3.2) MUST only be sent when all PIM
> > > > routers in the same subnet announce this option." So all the
> > > > implementations will have to be updated for this to be used.
> > > >
> > > > Alvaro.
> >
> > --
> > ---
> > tte@cs.fau.de
>
> --
> ---
> tte@cs.fau.de