Re: [Anima] I-D Action: draft-ietf-anima-network-service-auto-deployment-03.txt

Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 31 October 2022 01:28 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 750D5C14F6EB for <anima@ietfa.amsl.com>; Sun, 30 Oct 2022 18:28:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yjEmzUNNWdsZ for <anima@ietfa.amsl.com>; Sun, 30 Oct 2022 18:28:54 -0700 (PDT)
Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 C9A0AC14F693 for <anima@ietf.org>; Sun, 30 Oct 2022 18:28:54 -0700 (PDT)
Received: by mail-pl1-x636.google.com with SMTP id 4so9522684pli.0 for <anima@ietf.org>; Sun, 30 Oct 2022 18:28:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rvF3Boz2KZc39VJY4tXR5HUFFv8tGcCK2+3EDA4CvIk=; b=RI6+Adho0d7MA6/d4HZLDIg1rk/MwqcVwhQeWgPKK3g6imNVNfQklNAbMhIVnZ50GM FMXzd0V/MtYq7+bC6kHagtSVw1alAK8JlMvPnZ0vYg7/kw4n58Q6AMaWJbGiquOb3/gc +JRsWuNG2LH/o14llLcXPQOJLqO//TOeuRTYLv7DYV3C4U6y0a8/nUy3vjpUJ/o3/+sn hxJpVu12zM+WXLebSODr+UJmAT+AHFKi1wR5g+5diJ/1RrWxtVV3pKK6bc8UIXuvASOE GXyP9nZTHPO2i5f2uKmfo5XFKSNEpO1SiE0IfKuPCVCYLj6a+0lA/iYJQ64TRkzg8//a 9JUA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rvF3Boz2KZc39VJY4tXR5HUFFv8tGcCK2+3EDA4CvIk=; b=f7TSM4OMAN8ZnQ+izS1qHka/rQYo7Zc8vT+rgwLCbKIxnxc+bZ2ge+MjIdO27HelL+ abkThcu6qc9OGOMOfl6W48oklDQ1qd+VFdCJmJLqVZZtrajhgJXlv9R90Bo77AmcQlFE Tqg9xELryGW9R9osExprCkXR1DNgFJgo2+jb4aOOBp/6iEkbSA2PpkU98LLkVcob1Mc0 dF+hQSyHsAwvz7BNjYPf1IwPmdjItcQ9nJnT1OuWGfLRABTsJe0Po7r/8K9nSJtwvzoO q7ciCr0kRsyTDLAF08jKk9+OMJODXE93TAcqqvjN91DVIUPIQznpRwMg/zT5vzmlYyJ1 AQ1A==
X-Gm-Message-State: ACrzQf0tPix7ZUIiSVIo7cI1rEKFULTl7uQXBIaMxG/+Kv10HOeBCjRB biirly9mhBgoqf3VMiLum2RWCFToh0FGEQ==
X-Google-Smtp-Source: AMsMyM7Wk8gRyBzQ8/D/ihJi4cjio+/g1uhyfosflrXi2KjxBCjsuYT+IoIx065fx/AKfXloq+EhlQ==
X-Received: by 2002:a17:902:e5c6:b0:185:4bbd:17ce with SMTP id u6-20020a170902e5c600b001854bbd17cemr11930340plf.132.1667179733927; Sun, 30 Oct 2022 18:28:53 -0700 (PDT)
Received: from ?IPV6:2406:e003:1124:9301:80b2:5c79:2266:e431? ([2406:e003:1124:9301:80b2:5c79:2266:e431]) by smtp.gmail.com with ESMTPSA id m12-20020a170902db0c00b0018725c2fc46sm232774plx.303.2022.10.30.18.28.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 Oct 2022 18:28:52 -0700 (PDT)
Message-ID: <2ce9f50c-c56c-545e-80f8-ceaed6235d27@gmail.com>
Date: Mon, 31 Oct 2022 14:28:49 +1300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0
Content-Language: en-US
To: "zhouyujing (A)" <zhouyujing3@huawei.com>, "anima@ietf.org" <anima@ietf.org>
Cc: "Liguangpeng (Roc, Network Technology Laboratory)" <liguangpeng@huawei.com>
References: <166662225775.12531.16869408523692630673@ietfa.amsl.com> <572ed587-3fbe-f25b-bfdd-2ca0f740e34b@gmail.com> <95ff528807c1433596e04f5f6f0dbfae@huawei.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
In-Reply-To: <95ff528807c1433596e04f5f6f0dbfae@huawei.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/jDt7y8jWASiPd06WcrQVaLoxD1s>
Subject: Re: [Anima] I-D Action: draft-ietf-anima-network-service-auto-deployment-03.txt
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.39
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, 31 Oct 2022 01:28:55 -0000

Hi Yujing,

Thanks, it is clear now what you intend. Do you have the 'cddl' tool installed? It is quite simple, but it allows you to validate CDDL syntax and generate random examples. See Appendix F of RFC8610.

I did find a few nits.

1) CDDL does not accept tab characters. So all the tabs must be changed to spaces.
2) If you define an element as xxx : uint, a second definition such as xxx = 0..7 is ignored.
3) service-tag-info = str should be service-tag-info = text
4) Did you mean resource-requirement-pair to be a group with () or an array with []? I think probably you meant an array. (See section 3.4 of RFC8610.)

So my version that works with the CDDL tool is:

autonomic-network-service-value =
     [
      [
       service-type,
       service-id,
       service-lifetime,
       service-tag
       ],[
       *resource-requirement-pair
      ]
     ]

service-type = 0..7
service-id = uint
service-lifetime = 0..4294967295 ; in milliseconds
service-tag = [ *service-tag-info]
service-tag-info = text

resource-requirement-pair =
     [
      resource-type,
      resource-value
     ]

resource-type = 0..7
resource-value = uint

Is that OK?

Regards
    Brian Carpenter

On 27-Oct-22 15:56, zhouyujing (A) wrote:
> Hi Brian,
> 	
> 	Thanks for your reply, allowing me to modify the draft better.
> 	Because of my lack of understanding of the CDDL format, some definitions are misunderstood. I update Figure 2 according to RFC8610, and hope this version is clearer. If there are lack of standardization, please let me know.
> 
>      	-----------------------------------------------------------
> 	UPDATE : Format of autonomic-network-service-value-value
> 
> 	autonomic-network-service-value = [
> 	[
> 		service-type : uint,
> 		service-id : uint,
> 		service-lifetime : uint,
> 		service-tag
> 	],[
> 		*resource-requirement-pair
> 		]
> 	]
> 
> 	service-type = 0..7
> 	service-id = uint
> 	service-lifetime = 0..4294967295 ; in milliseconds
> 	service-tag = [ *service-tag-info]
> 	service-tag-info = str
> 
> 	resource-requirement-pair = (
> 		resource-type: uint,
> 		resource-value: uint
> 	)
> 
> 	resource-type = 0..7
> 	resource-value = uint
> 	-----------------------------------------------------------
> 
> Best Regards
> 
> Yujing Zhou
> 
> -----Original Message-----
> From: Brian E Carpenter <brian.e.carpenter@gmail.com>
> Sent: 2022年10月25日 8:46
> To: anima@ietf.org
> Subject: Re: [Anima] I-D Action: draft-ietf-anima-network-service-auto-deployment-03.txt
> 
> Hi,
> 
> I'm still not fully understanding the notation used in Figure 2 at:
> https://www.ietf.org/archive/id/draft-ietf-anima-network-service-auto-deployment-03.html#section-5-8
> 
> There is an expansion of service-information in CDDL just below the figure, but if you want conforming implementations, I think you need to fully expand autonomic-network-service-value in CDDL, or define carefully how Figure 2 is to be understood.
> 
> Regards
>      Brian
> 
> On 25-Oct-22 03:37, internet-drafts@ietf.org wrote:
>>
>> A New Internet-Draft is available from the on-line Internet-Drafts directories.
>> This draft is a work item of the Autonomic Networking Integrated Model and Approach WG of the IETF.
>>
>>           Title           : A Generic Autonomic Deployment and Management Mechanism for Resource-based Network Services
>>           Authors         : Yujing Zhou
>>                             Joanna Dang
>>                             Sheng Jiang
>>                             Zongpeng Du
>>     Filename        : draft-ietf-anima-network-service-auto-deployment-03.txt
>>     Pages           : 16
>>     Date            : 2022-10-24
>>
>> Abstract:
>>      This document specifies an autonomic mechanism for resource-based
>>      network services deployment and management, using the GeneRic
>>      Autonomic Signaling Protocol (GRASP) defined in [RFC8990] to
>>      dynamically exchange the information among the autonomic nodes.  It
>>      supports the coordination and consistently operations within an
>>      autonomic network domain.  This mechanism is generic for most, if not
>>      all, of kinds of network resources, although this document only
>>      defines the process of quality transmission service deployment and
>>      management.  It can be easily extended to support network services
>>      deployment and management that is based on other types ofnetwork
>>      resources.
>>
>>
>> The IETF datatracker status page for this draft is:
>> https://datatracker.ietf.org/doc/draft-ietf-anima-network-service-auto
>> -deployment/
>>
>> There is also an htmlized version available at:
>> https://datatracker.ietf.org/doc/html/draft-ietf-anima-network-service
>> -auto-deployment-03
>>
>> A diff from the previous version is available at:
>> https://www.ietf.org/rfcdiff?url2=draft-ietf-anima-network-service-aut
>> o-deployment-03
>>
>>
>> Internet-Drafts are also available by rsync at
>> rsync.ietf.org::internet-drafts
>>
>>
>> _______________________________________________
>> I-D-Announce mailing list
>> I-D-Announce@ietf.org
>> https://www.ietf.org/mailman/listinfo/i-d-announce
>> Internet-Draft directories: http://www.ietf.org/shadow.html or
>> ftp://ftp.ietf.org/ietf/1shadow-sites.txt
> 
>