Re: [netmod] AD review of draft-ietf-netmod-system-mgmt

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Tue, 10 December 2013 19:58 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 738AF1ADFD6 for <netmod@ietfa.amsl.com>; Tue, 10 Dec 2013 11:58:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.251
X-Spam-Level:
X-Spam-Status: No, score=-2.251 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.001] autolearn=ham
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 SNbS5ad8rxVv for <netmod@ietfa.amsl.com>; Tue, 10 Dec 2013 11:57:57 -0800 (PST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) by ietfa.amsl.com (Postfix) with ESMTP id 21CC81ADEC8 for <netmod@ietf.org>; Tue, 10 Dec 2013 11:57:57 -0800 (PST)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id 6773820085; Tue, 10 Dec 2013 20:57:50 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius3.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id 6qCNGPikeMqA; Tue, 10 Dec 2013 20:57:50 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id C422F2006F; Tue, 10 Dec 2013 20:57:49 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 829EB29F90A0; Tue, 10 Dec 2013 20:57:45 +0100 (CET)
Date: Tue, 10 Dec 2013 20:57:45 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Randy Presuhn <randy_presuhn@mindspring.com>
Message-ID: <20131210195745.GA74616@elstar.local>
Mail-Followup-To: Randy Presuhn <randy_presuhn@mindspring.com>, Martin Bjorklund <mbj@tail-f.com>, netmod@ietf.org
References: <12817633.1386701728243.JavaMail.root@elwamui-hybrid.atl.sa.earthlink.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <12817633.1386701728243.JavaMail.root@elwamui-hybrid.atl.sa.earthlink.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: netmod@ietf.org
Subject: Re: [netmod] AD review of draft-ietf-netmod-system-mgmt
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Dec 2013 19:58:00 -0000

On Tue, Dec 10, 2013 at 10:55:28AM -0800, Randy Presuhn wrote:

> >Another option is to turn the logic around. That is, if there is a
> >non-ASCII character in the YANG object, the mapping to the
> >corresponding MIB object must take precautions to comply with the MIB
> >restrictions (e.g., representing the non-ASCII character using \u and
> >\U escape sequences). The mapping to the MIB object would also have to
> >do proper truncations. The details of the mapping I assume would be
> >implementation specific.
> >
> >This approach allows us to move to a unicode-based world rather than
> >carrying old ASCII restrictions forward endlessly (which is what I
> >think Randy is concerned about).
> 
> I really like this idea, though I'm not sure which of the various
> ways of doing escape sequences would be most helpful.  For example,
> the &#mumble; convention of HTML would also be a possibility.  But
> whatever the mechanism, I think something like this would be a huge
> win.  (Note that there are obnoxious corner cases, such as the SNMP
> interface being used to configure an sequence which would, if interpreted
> as an escape, result in a forbidden or impossible code point.)  Still,
> I really like this idea.
>
> To elaborate slightly: I like this idea as the basis for
> a standardized approach (*not* merely a "MAY") to be used
> whenever practical for migrating ASCII-only SNMP objects
> intended for human consumption.

I am sure we discussed this option back in a day and I am sure there
were people who said that an SNMP agent could store something that may
accidentally now might look like an escaped unicode sequence but it
was not intended to be one. And there might be interesting
interactions with the size (length) restriction. Such thinking will
force the conclusion that neither the HTML convention nor the \u
convention can be used. So the only alternative is to use one of the
25 ASCII code points as an escape character that per RFC 2579 have no
meaning in a DisplayString, e.g. ESC (ASCII code 0x1b). While this
approach avoids any conflicts, it leads to a very SNMP specific
solution, which is not commonly understood and needs special
processing by both machines and human brains. But then, SNMP would
only add a little bit more to the noise out there already:

http://billposer.org/Software/ListOfRepresentations.html

Anyway, for a standardized approach, someone would have to write a
document that defines how unicode code points are represented as
escaped charater sequences in DisplayStrings. I do not think that this
document is in charge of doing this. Hence, until such a standard is
written, I think things need to be implementation specific.

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1, 28759 Bremen, Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>