Re: [Anima] GRASP M_FLOOD captured from Reggie.py -- could it be wrong?

Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 14 December 2020 00:47 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: anima@ietfa.amsl.com
Delivered-To: anima@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2DE263A097E for <anima@ietfa.amsl.com>; Sun, 13 Dec 2020 16:47:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.199
X-Spam-Level:
X-Spam-Status: No, score=-0.199 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, 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=pass (2048-bit key) header.d=gmail.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 mDeJci9Wz1Kw for <anima@ietfa.amsl.com>; Sun, 13 Dec 2020 16:47:10 -0800 (PST)
Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) (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 7F3243A0978 for <anima@ietf.org>; Sun, 13 Dec 2020 16:47:10 -0800 (PST)
Received: by mail-pg1-x529.google.com with SMTP id c12so10871148pgm.4 for <anima@ietf.org>; Sun, 13 Dec 2020 16:47:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VP+fid8Hdb+GCmiDqxsehOeksORH5+w/n4RDssmusJs=; b=L1mrZXDA04oQnGV0Cs+EQfzGIqQ1/Mgfw8/Swu2NQ9xS9f4TK9rGBNyGUW9prHia79 xGc+1hHfemJCZ5GsEX0STjUpJTlDu6ez3tm2qBA1jlh2F2OuG2FoXbmEGrHIhfJLlDyz puR0yqSDB+M7MQjHUcNDbw45IAOJyCwKBUc5YBUXGIpMHGb7pLg8huzF668x8FLFYqJa Z5Wcts8hMaC3+DTEGx8ozcivAVFzRXCA13SGffZeUQEM6Xy5KsE+X3bFFBPo/ezA+Aai 3NPn9PWMUMlHYCPNEUVEqcPwVyQd7LwYm/Ko0kUwrlya3Yd3km2NaA36U2UepcAGFcg4 wK+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VP+fid8Hdb+GCmiDqxsehOeksORH5+w/n4RDssmusJs=; b=trChZ/MGQEzUkwIVCRwnCTi4+xcyBkmHpJb++uPOIk9TuZQNtINlSdwzJO6MxqF+xv mVp77jJDq6ndiCo4JZqjTUbNQDe9NmCrfPt+GCg53CFb7s0+1b+KHBDnpBBmx8+ara95 6vftmyqM4lIUY2j2CXwmm5D3sjua6G8mA9sz6AvpLDQQyrwgMmKSmG2/I4TxBbPAOkMJ MFHl9aCAgz3eZpg3WlPwSBt4wd2UCAO0o2vOnX7Aml/j7LJkVOFuf9/DGdE94wERGE/8 WnoPWFcFiLkBacQNqOKHLzlhfKWxKCNRLsoyLXSN59KoJ8MeaWZkeXOxjDWCbJt7xbNB 4tAw==
X-Gm-Message-State: AOAM533YBMPGyiNBbdzugME2t0ORVI0nlABikl/jioaomhXMPNUs9Ruh NPX1tN4bYO3diFHPFecVP05pc0BEgJNF8g==
X-Google-Smtp-Source: ABdhPJyVAT2uqT0Lgu7eZESqO+8vBvt8XZxQ2WnO68XwT6zdxreVxhv5qluGeaOOL2Y1z2Gq7n1y6w==
X-Received: by 2002:a62:524a:0:b029:19e:a3c8:80f5 with SMTP id g71-20020a62524a0000b029019ea3c880f5mr20259466pfb.52.1607906829460; Sun, 13 Dec 2020 16:47:09 -0800 (PST)
Received: from [172.20.15.112] ([202.134.35.146]) by smtp.gmail.com with ESMTPSA id z126sm17131641pfz.120.2020.12.13.16.47.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Dec 2020 16:47:08 -0800 (PST)
To: Carsten Bormann <cabo@tzi.org>, Michael Richardson <mcr+ietf@sandelman.ca>
Cc: anima@ietf.org
References: <28780.1607888637@localhost> <CDE3D418-2B5C-4AA0-98C9-E2C42B7F3DB7@tzi.org>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <095f150f-3168-6cc2-1366-1b3a4105faf5@gmail.com>
Date: Mon, 14 Dec 2020 13:47:03 +1300
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
In-Reply-To: <CDE3D418-2B5C-4AA0-98C9-E2C42B7F3DB7@tzi.org>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/7z18PGj1fKeItmnH7WXvxWdExvg>
Subject: Re: [Anima] GRASP M_FLOOD captured from Reggie.py -- could it be wrong?
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima>, <mailto:anima-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima/>
List-Post: <mailto:anima@ietf.org>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima>, <mailto:anima-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Dec 2020 00:47:12 -0000

This isn't yet definitive because I don't have everything I need on vacation
with me, but

> So the packet decode you captured is right

I think I agree with Carsten. In CDDL, +[something] generates
[something1],[something2],[something3], and not
[[something1],[something2],[something3]].

Nesting is hard. That's why a CDDL-driven parser would be a great
thing to have.

Regards
   Brian

On 14-Dec-20 10:08, Carsten Bormann wrote:
> You forced me to get a bigger screen...
> 
> I don’t know what you are trying to say here:
> 
>> On 13. Dec 2020, at 20:43, Michael Richardson <mcr+ietf@sandelman.ca <mailto:mcr+ietf@sandelman.ca>> wrote:
>>
>> I guess I'm still confused by why this is:
>>  [ [objective1],[locator2-option], [objective2],[locator2-option],...]
>>
>> and not:
>>  [ [objective1, locator2-option], [objective2, locator2-option],...]
>>
>> or maybe:
>>  [ [[objective1], [locator2-option]], [[objective2], [locator2-option]],…]
> 
> An objective already is an array, so there is little point in putting array brackets around one.
> 
> [foo, bar, baz, bat, [obj1, loc1]]
> 
> Is a valid instance as is
> 
> [foo, bar, baz, bat, [obj1, loc1], [obj2, loc2]]
> 
> So the packet decode you captured is right, and the version with the added one-element array (0x81) does not match the CDDL.
> 
> (Both obj1 and loc1 are four-element arrays in your example.)
> 
> Grüße, Carsten
>