Re: New Version Notification for draft-troan-6man-universal-ra-option-03.txt

Ted Lemon <mellon@fugue.com> Thu, 08 October 2020 16:32 UTC

Return-Path: <mellon@fugue.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4CB553A0E46 for <ipv6@ietfa.amsl.com>; Thu, 8 Oct 2020 09:32:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fugue-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KigA2_bFal7l for <ipv6@ietfa.amsl.com>; Thu, 8 Oct 2020 09:32:06 -0700 (PDT)
Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AD1D13A0DBE for <ipv6@ietf.org>; Thu, 8 Oct 2020 09:32:06 -0700 (PDT)
Received: by mail-qt1-x834.google.com with SMTP id g3so5574389qtq.10 for <ipv6@ietf.org>; Thu, 08 Oct 2020 09:32:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fugue-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=92530kQ6SD1Lq47FJy66RE+UTMT7X/6h/1PgtQPxNXw=; b=KQTe263vIOjQ2caPVBOE4Ce1AEZyhjzic7FmvH/p2Aa8CWICH1QoZ9ojWRlGVxCqgl YTz9lNJAkY17qoJP9Vr3rLMoTH4bHCffVFFrJydK4BKpI2+N8YRNHpu749HHx/fGZK9R +MklJ2dV6vQhpvUjEFxl6vzPO13XXtFcUyogxYZ0m703an0ujdJPBWJdLIZLzt53FojH S43uw4w/nJB0PeWCUQVPLZkGjHhtfhhyvMbFsc5D6FUMGq9VwzaAYuNJvBoySM6zE1Dc 5jXZa9ihWpjI4jzZZXbMnQ6nDdf7cZZAqK9ibgGGbk2seEzZxNR7aMqpwHLw3sZGaKtW 7eFA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=92530kQ6SD1Lq47FJy66RE+UTMT7X/6h/1PgtQPxNXw=; b=KCrxbHu31sJwRnJQB/R4OARZFn+3YTBDxeKImp3GrkU1A9j3Vu0nG6sBJWNwu83Iph v1VoldqOZL72iFqunMghIpjhkor0zlb/IJPm0I60H1N1dIFW6NGz1jPoMrTSpItIEP1o jZM+odx8E8b58+mKeUHVzsUyiVvFFsr4wfaBvheG//YYT8dfU1CLqsit/9MhWIdYOYNj yfvAxzy3x3amcgCm/PyyeMNnsX7CRiodkN5EM51RK87KiPBb+sZY1txl0a/PhSn0dhYM 1gGZ/lNVok/I2NMJDYFTEKPofg88L9SMmqnz2JfgYkqFdgxi/z8AQn2qevefixzF9XI7 C8qA==
X-Gm-Message-State: AOAM533OTpJSfohpA4EabCwrIIroBfFz4vOvUG3+o+y1Hf4ixnT0S5bR gLkS/2vGLE/+GIecBpYi/AdvZw==
X-Google-Smtp-Source: ABdhPJzvUAQ3/fncYgDTuCvvNJzsw+45FiPj6vMTp6H5hL0J8hm3lPT3VSAsKVfmAPmrf+OZPzE38A==
X-Received: by 2002:ac8:5913:: with SMTP id 19mr9687450qty.359.1602174725479; Thu, 08 Oct 2020 09:32:05 -0700 (PDT)
Received: from mithrandir.lan (c-24-91-177-160.hsd1.nh.comcast.net. [24.91.177.160]) by smtp.gmail.com with ESMTPSA id p69sm4029337qka.5.2020.10.08.09.32.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Oct 2020 09:32:04 -0700 (PDT)
From: Ted Lemon <mellon@fugue.com>
Message-Id: <ACF262A8-82BC-43DB-8B07-449D829E70FC@fugue.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_657D9E5D-6B1B-4303-9CD3-17D0E6A598F7"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.0.3.2.61\))
Subject: Re: New Version Notification for draft-troan-6man-universal-ra-option-03.txt
Date: Thu, 08 Oct 2020 12:32:03 -0400
In-Reply-To: <818fb13b-5ddd-be02-40f4-e7f395c0bcca@gmail.com>
Cc: ipv6@ietf.org
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
References: <160201571921.22183.2288394613501535041@ietfa.amsl.com> <FAA42031-FAF9-4F1E-A702-3B4F27375F4F@employees.org> <m1kQ8qM-0000FiC@stereo.hq.phicoh.net> <066A5931-E009-4610-B679-86A8F495A131@employees.org> <m1kQ9tr-0000KEC@stereo.hq.phicoh.net> <9FB26236-5D9F-433C-8B79-B17F6D337664@employees.org> <818fb13b-5ddd-be02-40f4-e7f395c0bcca@gmail.com>
X-Mailer: Apple Mail (2.3654.0.3.2.61)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/f2MYllq6hYUCZCQ_bQlN1EGy4KE>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 08 Oct 2020 16:32:08 -0000

On Oct 7, 2020, at 4:01 PM, Brian E Carpenter <brian.e.carpenter@gmail.com> wrote:
>   The Concise Binary Object Representation (CBOR) is a data format
>   whose design goals include the possibility of extremely small code
>   size, fairly small message size, and extensibility without the need
>   for version negotiation.
> 
> That's why future embedded systems are highly likely to include a CBOR
> encoder/decoder anyway, and as anyone who has used them knows, cbor
> loads() and dumps() make life very easy for the programmer.

This is great marketing copy. That said, having recently re-implemented a protocol that previously used a JSON-like data structure for transport as a TLV protocol, my experience has been that the TLV protocol is definitely less work. The bulk of the work is not encapsulation/decapsulation, but validation. It’s really easy to validate a TLV-based encapsulation because any spurious data is a syntax error. Validating a JSON dictionary that contains the same data requires you to make sure that all the keys are there, that there are no extra keys, that each data element is the right type, and so on. It winds up being quite a lot of code, more like an XML validator than a wire format parser.

The reason you want a JSON-like encapsulation for data is that you want to be able to send arbitrary data. If your protocol does not need the ability to send arbitrary data, a JSON-like encapsulation is always going to be more work, and more prone to security issues when the validator isn’t quite right.