Re: [icnrg] adopting ccnx-timetlv

Cenk Gündoğan <mail+ietf@gundogan.net> Wed, 27 April 2022 11:12 UTC

Return-Path: <mail+ietf@gundogan.net>
X-Original-To: icnrg@ietfa.amsl.com
Delivered-To: icnrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A8DEC1854A9 for <icnrg@ietfa.amsl.com>; Wed, 27 Apr 2022 04:12:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.699
X-Spam-Level:
X-Spam-Status: No, score=-6.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (2048-bit key) reason="fail (bad RSA signature)" header.d=gundogan.net
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 Vodrz3j75hrQ for <icnrg@ietfa.amsl.com>; Wed, 27 Apr 2022 04:12:29 -0700 (PDT)
Received: from mail.localdomain (trantor.gundogan.net [37.120.167.193]) (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 88573C1854A3 for <icnrg@irtf.org>; Wed, 27 Apr 2022 04:12:29 -0700 (PDT)
Received: from localhost (unknown [141.22.28.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mail.localdomain (Postfix) with ESMTPSA id CD783499B6; Wed, 27 Apr 2022 13:12:26 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gundogan.net; s=201712; t=1651057946; bh=4PaxU1kXoV0wNRFmB/aL7WIKaZ65soQ2DXn85Y5wOiI=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=pP/LHPkao4xgkxOEVgTRliROH4AbWNnqYLIX54YFPI5PDETVlJYkaQ+pWcg5HUib4 1eYzy6b84etv2+NVKiuZw4a0NeuGQ0d/PCaM4EwLxy+RAAh86z0VAuFunYrndiA9jx SBB2fV5oGKGq795WvxAzJ+GOVNuHO/JnXuqezE3+xuZsIXvFQGPOJowOqL2f+AqiEC KmLyDjkc4L6HZDRl80fpSuhgWh6Pvg3FEXmay7HPE/rgtKQX9SIE+Z++759Lz+ngvR qbuxMcgUHHhCmnJBZ9aeMcEGgglhYnAE3IRLflxPs9valrnAbPpX/US1iW07iyKhMq hjl2GJCgffwmw==
References: <D28FCC3D-C184-40AC-A0C2-20050A41FBE5@dkutscher.net> <F387D10D-DE71-4A33-8DE9-411CDAE77031@dkutscher.net> <BY3PR15MB4977B57DF56BA01886FD4611ADEA9@BY3PR15MB4977.namprd15.prod.outlook.com>
User-agent: mu4e 1.6.10; emacs 29.0.50
From: Cenk Gündoğan <mail+ietf@gundogan.net>
To: Marc Mosko <mmosko@parc.com>
Cc: icnrg@irtf.org
Date: Wed, 27 Apr 2022 13:00:43 +0200
In-reply-to: <BY3PR15MB4977B57DF56BA01886FD4611ADEA9@BY3PR15MB4977.namprd15.prod.outlook.com>
Message-ID: <87pml24w6e.fsf@gundogan.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/icnrg/PHc2B1QNot4pqg5kM6iJjRbjNKs>
Subject: Re: [icnrg] adopting ccnx-timetlv
X-BeenThere: icnrg@irtf.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: Information-Centric Networking research group discussion list <icnrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/icnrg>, <mailto:icnrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/icnrg/>
List-Post: <mailto:icnrg@irtf.org>
List-Help: <mailto:icnrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/icnrg>, <mailto:icnrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 27 Apr 2022 11:12:34 -0000

Hello Marc,

the new version of the document includes a section in the appendix on
efficiently converting the compact time [1].

We mostly followed the comments from your mail below.  However, we did a
couple of changes and I'd appreciate your feedback on these:

1. Since CCNx is working with milliseconds and not microseconds, we did
   adjust the exponent for conversion from 2^20 to 2^10.

2. Converting to milliseconds, the error is only ~2.4%

3. Because of the smaller error, we did not include the correction terms
   in the current text.  One problem with the correction terms was that
   (due to the small range of the mantissa, 3 bits), shifting it by more
   than 3 bits would result in loss of information.

Cheers,
Cenk

[1] https://www.ietf.org/archive/id/draft-irtf-icnrg-ccnx-timetlv-00.html#appendix-B

On Mon, Apr 11 2022 at 17:23 +0000, Marc Mosko wrote:

> A late reply, but I support adopting this update.  I also favor updating 8609, because one needs to update routers anyway, either for the new
> TLV or for the new LEN=1 semantics.
>
>  
>
> Has there been consideration of also allowing 2 or 4 bytes representations?  Do those offer any advantages to counter added complexity?  I only
> mention this because if you’re going to update the spec, maybe make it more comprehensive.
>
>  
>
> The common operation is to convert the compact representation into microseconds, so a forwarder can make a comparison.  I would
> recommend adding (in an appendix?) equations to convert (a,b) into microseconds using all integer operations (shifts, plus, minus), or at least a
> good approximation to binary microseconds (2^-20).  It should not be required for a forwarder to do floating point operations on a packet.  We
> should make it easy for an implementor to do the right thing.
>
> I believe these are the approximate equations for the time in microseconds:
>
> (b = 0): a << 17
>
> (b > 0): (2^20 + a << 17) << b >> 5
>
>  
>
> Except for the (0,0) case, these estimates will always be 4.86% over the actual value.  One can reduce that to a -1.7% error by subtracting E>>4
> from the estimate E
>
>  
>
> (b=0): (a << 17) – (a << 13)
>
> (b>0): (2^20 + a << 17) << b >> 5 – ((2^20 + a << 17) << b >> 9)
>
>  
>
> Of course, one could keep adding more correction terms, but I doubt it’s worth the effort.
>
>  
>
> Marc
>
>  
>
>  
>
> From: icnrg <icnrg-bounces@irtf.org> on behalf of Dirk Kutscher <ietf@dkutscher.net>
> Date: Monday, April 11, 2022 at 3:25 AM
> To: ICNRG <icnrg@irtf.org>
> Subject: Re: [icnrg] adopting ccnx-timetlv
>
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and
> know the content is safe.
>
>  
>
> Hello ICNRG,
>
> we have not heard of any concerns, so let's adopt this document.
>
> Cenk and co-authors, please submit your next revision as draft-irtf-icnrg-ccnx-timetlv-00.
>
> Thanks,
> Dirk
>
> On 29 Mar 2022, at 14:36, Dirk Kutscher wrote:
>
>  Hello ICNRG,
>
>  as discussed at last week's ICNRG meeting, we are considering to adopt draft-gundogan-icnrg-ccnx-timetlv as a RG work item.
>
>  Title: Alternative Delta Time Encoding for CCNx Using Compact Floating-Point Arithmetic
>
>  Abstract:
>  CCNx utilizes delta time for a number of functions. When using CCNx
>  in environments with constrained nodes and/or bandwidth constrained
>  networks, it is valuable to have a compressed representation of delta
>  time. In order to do so, either accuracy or dynamic range has to be
>  sacrificed. Since the current uses of delta time do not require both
>  simultaneously, one can consider a logarithmic encoding such as that
>  specified in [IEEE.754.2019]. This document updates CCNx messages
>  in TLV Format (RFC8609) to specify this alternative encoding.
>
>  ·         Cenk's presentation from last week
>
>  ·         draft-gundogan-icnrg-ccnx-timetlv
>
>  Please let us have any feedback (support, doubts etc.) until end of next week, i.e., Friday, 2022-04-08.
>
>  Thanks,
>  Dirk and Dave
>
> -------------------------------------------------------------------------------------------------------------------------
>
>  icnrg mailing list
>  icnrg@irtf.org
>  https://www.irtf.org/mailman/listinfo/icnrg
>
> _______________________________________________
> icnrg mailing list
> icnrg@irtf.org
> https://www.irtf.org/mailman/listinfo/icnrg