Re: [Anima-signaling] Example messages for the GRASP draft

Carsten Bormann <cabo@tzi.org> Tue, 18 October 2016 04:03 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: anima-signaling@ietfa.amsl.com
Delivered-To: anima-signaling@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6DEC61294F6 for <anima-signaling@ietfa.amsl.com>; Mon, 17 Oct 2016 21:03:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.893
X-Spam-Level:
X-Spam-Status: No, score=-2.893 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, TRACKER_ID=1.306] autolearn=ham autolearn_force=no
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 eeEhMRpKfC1J for <anima-signaling@ietfa.amsl.com>; Mon, 17 Oct 2016 21:03:04 -0700 (PDT)
Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9A56C12943E for <anima-signaling@ietf.org>; Mon, 17 Oct 2016 21:03:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::b]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id u9I42xVu028928; Tue, 18 Oct 2016 06:02:59 +0200 (CEST)
Received: from nar-4.local.mail (p5DC7E34C.dip0.t-ipconnect.de [93.199.227.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 3syhHl36gbz7y92; Tue, 18 Oct 2016 06:02:59 +0200 (CEST)
Date: Tue, 18 Oct 2016 06:02:58 +0200
From: Carsten Bormann <cabo@tzi.org>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>, Anima signaling DT <anima-signaling@ietf.org>
Message-ID: <etPan.58059ef2.1d342237.2128@tzi.org>
In-Reply-To: <d414c56e-7085-a843-b4a4-0a9149fab605@gmail.com>
References: <d414c56e-7085-a843-b4a4-0a9149fab605@gmail.com>
X-Mailer: Airmail (390)
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="58059ef2_653907ca_2128"
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima-signaling/BHtU82_ouoqFp9otREw1bSuM9Eg>
Subject: Re: [Anima-signaling] Example messages for the GRASP draft
X-BeenThere: anima-signaling@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Mailing list for the signaling design team of the ANIMA WG <anima-signaling.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima-signaling>, <mailto:anima-signaling-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima-signaling/>
List-Post: <mailto:anima-signaling@ietf.org>
List-Help: <mailto:anima-signaling-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima-signaling>, <mailto:anima-signaling-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Oct 2016 04:03:06 -0000

Do we need that many examples?

cbor.me (or the cbor-diag tool) converts

84011a00fdef78502406e001380c000128ccdc4c970367818463455831020200

to

[1, 16641912, h'2406e001380c000128ccdc4c97036781', ["EX1", 2, 2, 0]]

and then back to

84                                     # array(4)
   01                                  # unsigned(1)
   1a 00fdef78                         # unsigned(16641912)
   50                                  # bytes(16)
      2406e001380c000128ccdc4c97036781 # "$\x06\xE0\x018\f\x00\x01(\xCC\xDCL\x97\x03g\x81"
   84                                  # array(4)
      63                               # text(3)
         455831                        # "EX1"
      02                               # unsigned(2)
      02                               # unsigned(2)
      00                               # unsigned(0)

I think the “pretty-printed” bytes are quite useful for understanding what’s going on.

Grüße, Carsten

On 18 October 2016 at 05:47:09, Brian E Carpenter (brian.e.carpenter@gmail.com) wrote:

Hi,  

Here is a first look at what some GRASP example messages might look like.  
In the attached, for each message, there are 3 lines:  

1. the relevant CDDL definition.  
2. the example message in Python format - essentially the same as CBOR  
diagnostic format, except for some syntactic sugar. In the document,  
I would convert fully to the CBOR notation.  
3. a hexadecimal dump of the CBOR message.  

The examples were generated by a tweaked version of my test suite with  
its disgnostics switched on. (It was talking to itself, so all the IP addresses  
are the same for now.)  

Is this the sort of thing we want?  

Brian  

_______________________________________________  
Anima-signaling mailing list  
Anima-signaling@ietf.org  
https://www.ietf.org/mailman/listinfo/anima-signaling