Re: [Anima] I-D Action: draft-liu-anima-grasp-distribution-13.txt

Brian E Carpenter <brian.e.carpenter@gmail.com> Tue, 21 January 2020 01:06 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 16998120801; Mon, 20 Jan 2020 17:06:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 XPZ-hsyR2W_k; Mon, 20 Jan 2020 17:06:25 -0800 (PST)
Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (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 1A3B1120835; Mon, 20 Jan 2020 17:06:25 -0800 (PST)
Received: by mail-pg1-x544.google.com with SMTP id s64so530691pgb.9; Mon, 20 Jan 2020 17:06:25 -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=fjykc7Po0zk1UZw5SQUmEMzjvLjbe8SW74HB1yffHnk=; b=olpBF0ZkR3opdW6fiY+xtbodCMdJlpA/JPjk37Lxb0J8ohywYIJx+5dQMjukHPzR+z jw5kbWhcXvyUc8nJspW1YNrnAmWj1G3KfGbiZG3Gg9Bf+JXZj0Bg7ywiBf4VBytpYukQ DhKAMuZiEaVvKTbrYz2vyWdxJpRbkgkHJKCp6b4/Ux1g+r84aMu7E9HWgOuZqYxiXbv4 oRlRxv/6gCDYVID+vHWCQ9vnQkg/Iu+xjvczTLNhQ763tcHjWLMedYgjxIWvBL3uMTmy TOH/+ZVp8JEq6/rv/PNVdrPh1q1bp5LFsuQ6u5TyeJId+suTVsngb9yXPZWqPLDR3vqd wo2g==
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=fjykc7Po0zk1UZw5SQUmEMzjvLjbe8SW74HB1yffHnk=; b=GjSV1MM7f8cz+q+D4ryE701dyNzYNF0gGc3y1gdAl6hMKHyoldeFv9py9FuFugUWzn HfHFvm6dVMoO2+NoJPy1KcwH5vKmaSpqIW5AcOL5jGKv4GfaPL2f8BmkaRy+gz6O6LEZ z9XP4yaS9nebN3pH54aVqUTNG8NotpdsmPFRhRoDSxT3GfZKiRLO7cl9+LAp7j61a5yU dbSspzxPL48jAqhGLcqbqrGaG2zauWsv3MosJkVcU6RspqSiBGHQhyJqQGGdQ7fN8vHv UcMY7fbNgEJXD/cIlkEQuUChWhhXL+m0axrBOcWEVD3jetVhMkGdcWHid4d/gyeCj1UG jVJw==
X-Gm-Message-State: APjAAAVGFceMNG6tLTsnA9pBySISS1UuhJNwnGZbqSxMGZG3pxV4N0RE gww/IZJ5aLp2Po1I7dj7X9TJqjCo
X-Google-Smtp-Source: APXvYqxWnV5IFn09iESDNr6+xEgS4ZXbCMWjvqLEFJ05hfs1IgIhwWmeLtuWT+Xl92NKEO9jJnGb/A==
X-Received: by 2002:a65:4242:: with SMTP id d2mr2651402pgq.166.1579568784221; Mon, 20 Jan 2020 17:06:24 -0800 (PST)
Received: from [130.216.38.176] (sc-cs-567-laptop.uoa.auckland.ac.nz. [130.216.38.176]) by smtp.gmail.com with ESMTPSA id n14sm40616382pff.188.2020.01.20.17.06.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jan 2020 17:06:23 -0800 (PST)
To: "Liubing (Leo)" <leo.liubing@huawei.com>, Anima WG <anima@ietf.org>
Cc: "draft-liu-anima-grasp-distribution@ietf.org" <draft-liu-anima-grasp-distribution@ietf.org>
References: <157616770411.20852.10953979041894273077@ietfa.amsl.com> <a8b837fd-df05-a454-a599-06b2b22bc56e@gmail.com> <8AE0F17B87264D4CAC7DE0AA6C406F45DE692DCC@DGGEML532-MBX.china.huawei.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <2d90fe30-0a72-5041-5160-7004272e8a66@gmail.com>
Date: Tue, 21 Jan 2020 14:06:18 +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: <8AE0F17B87264D4CAC7DE0AA6C406F45DE692DCC@DGGEML532-MBX.china.huawei.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/29O85peZoJehk_9s25zZdVcYVUI>
Subject: Re: [Anima] I-D Action: draft-liu-anima-grasp-distribution-13.txt
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: Tue, 21 Jan 2020 01:06:28 -0000

Hi,

Sorry about the delayed response, coming just between summer holidays where I live and New Year holidays where Bing lives ;-). Some comments in line.

On 18-Dec-19 23:54, Liubing (Leo) wrote:
> Hi Brian,
> 
> Thanks for the detailed review. Please see my replies inline.
> 
>> -----Original Message-----
>> From: Anima [mailto:anima-bounces@ietf.org] On Behalf Of Brian E Carpenter
>> Sent: Monday, December 16, 2019 12:21 PM
>> To: Anima WG <anima@ietf.org>
>> Subject: Re: [Anima] I-D Action: draft-liu-anima-grasp-distribution-13.txt
>>
>> Hi,
>>
>> I think this is a useful extension of the basic autonomic infrastructure. Here are
>> some comments and questions on the GRASP part of the draft. I'd be interested
>> in the authors' comments.
>>
>>> 5.1 Realizing Instant P2P Transmission
>>>
>>>    This could be a new message in GRASP. In fragmentary CDDL, an Un-
>>>    solicited Synchronization message follows the pattern:
>>>
>>>       unsolicited_synch-message = [M_UNSOLIDSYNCH, session-id,
>>>       objective]
>>
>> I suggest simply calling this M_PUSH (but see later comments).
> 
> [Bing] Personally I'm ok with it. "PUSH" sounds more intuitive.

[Brian] OK. But I still have some questions, see later.

> 
>>>    A node MAY actively send a unicast Un-solicited Synchronization
>>>    message with the Synchronization data, to another node. This MAY be
>>>    sent to port GRASP_LISTEN_PORT at the destination address,
>>
>> That port is normally tied up with multicast reception. But since we have a
>> SUBSCRIBE mechanism below, the question of the port can be resolved at
>> SUBSCRIBE time. There must be a listener process for this port, of course.
> 
> [Bing] The M_PUSH is not bind with SUBSCRIBE. It could be sent standalone. Is it possible we could specify that GRASP_LISTEN_PORT MUST monitor M_PUSH as well?

[Brian] Theoretically, yes, but in that case why don't we simply use M_FLOOD as already defined but sent to a unicast UDP destination? Obviously in this case there will be no flood relaying but otherwise the existing mechanisms for receiving a flood message can be reused. That has the advantage that M_FLOOD can carry more than one objective if required.

(By the way, because M_FLOOD is unacknowledged it's easy to do with UDP. M_REQ_SYNCH and M_SYNCH are easy to do with TCP, but UDP is more complicated because the messages have to be matched to the right session, which is automatic with TCP.)

>  
>>>    which
>>>    might be obtained by GRASP Discovery or other possible ways. The
>>>    synchronization data are in the form of GRASP Option(s) for specific
>>>    synchronization objective(s).
>>
>> One objective per message is much simpler to implement. If not, this becomes
>> more like a "unicast Flood". If you want that, we could define the syntax
>> precisely like M_FLOOD.
> 
> [Bing] I tend to agree from practical perspective. However, I'm not very sure whether it's necessary to close the little flexibility of multiple objective in one message?

[Brian] As noted above, when I think about coding this, it actually seems simpler to copy M_FLOOD.

>>> 5.2 Realizing Instant Selective Flooding
>>>
>>>    Since normal flooding is already supported by GRASP, this section
>>>    only defines the selective flooding extension.
>> ....
>>>    The action means, when the match rule applies, the current device
>>>    just continues flood or discontinues.
>>
>> Please remember that a normal M_FLOOD has two aspects for a node that
>> receives it. First, the node stores the objectives delivered in its own flood cache.
>> Second, *if* it is a relay node (with interfaces to more than one link within the
>> AN, such as a router) it relays a copy of the M_FLOOD to its AN neighbors,
>> subject to anti-looping rules.
>>
>> 1) If the result of the match is "continue" I assume that the node does exactly
>> what it does with a normal flood, i.e. caches the received objectives and if it is a
>> relay, it relays the flood to its neighbors.
> 
> [Bing] Exactly.
> 
>> 2) If result of the match is "discontinue" I assume the node does not cache the
>> flooded objectives.
> 
> [Bing] The text doesn't explicitly specify the cache behavior. But I share the same opinion that the node does not cache when the match is "discontinue".
> 
>> 2) If result of the match is "discontinue" and the node is also a GRASP relay,
>> what does the node do? Discard or relay? It cannot know the result of the match
>> in its neighbors.
> 
> [Bing] If there is matching condition in the packet, then the matching rules behavior automatically be superior. So, even it is a GRASP relay, it would discard the packet when match condition is "discontinue".

[Brian] OK. That needs to be stated carefully in the draft. It's a little complicated for the implementation, because it delays the decision to relay a flood until after the O_SELECTIVE_FLOOD option has been processed. (My existing code makes that decision much sooner, so some restructuring would be needed.)

By the way, I think you need to define where the O_SELECTIVE_FLOOD option is placed. For example

flood-message = [M_FLOOD, session-id, initiator, ttl,
                ?selective-flood-option,
                +[objective, (locator-option / [])]]

> The match rules don't consider whether how the neighbors would react on the same rule. This might be "rude" for some scenarios, but could be efficient in some specific scenarios, e.g., highly-herachycal networks.
> 
>> I really don't understand the meaning of the matching rules, especially "match-
>> object = NEIGHBOR / SELF". I think this needs a lot more explanation and some
>> more detailed examples.
> 
> [Bing] Normally, the match object is the node itself. 

[Brian] OK. However, Anima doesn't really have a formal node identity, so I think you need to define what you mean very precisely. At the moment I don't know what I would write in my program for this.

> But we wanted to keep a bit programmability to allow the node to judge whether to continue or discontinue the flooding based on its neighbors' information.
> It assumes that the node has already learned the neighbors' info previously. Let me try to make some detailed examples in the next version.
>  
>>> 5.3 Realizing Subscription as An Event
>>>
>>>    In fragmentary CDDL, a Subscription Objective Option follows the
>>>    pattern:
>>>
>>>          subscription-objection-option = [SUBSCRIPTION, 2, 2, subobj]
>>>          objective-name = SUBSCRIPTION
>>>
>>>          objective-flags = 2
>>>
>>>          loop-count = 2
>>>
>>>          subobj = text
>>>
>>>
>>>    This option MAY be included in GRASP M_Synchronization, when
>>>    included, it means this message is for a subscription to a specific
>>>    object.
>>
>> The M_SYNCH message is the reply from a data source to a data destination, so
>> I think that's wrong. I think that SUBSCRIPTION should  be used in M_REQ_SYN,
>> when a node first wants to get the value of a given objective but also wants to
>> subscribe to future push updates. So the reply to a M_REQ_SYN with a
>> SUBSCRIPTION option would be M_SYNCH with an initial value for the objective,
> 
> [Bing] You are right, we made the mistake. Thanks for pointing it out.
> 
>> but the session could stay open with M_PUSH to follow at any time. (So that
>> solves the question of the port: whatever port is used for sending the
>> M_REQ_SYN listens for the M_PUSH messages.)
> 
> [Bing] As replied above, I believe this is a valid use case. But we wanted to decouple M_PUSH and SUBSCRIBE. 
> 
>> A new M_REQ_SYN would also be used to carry UNSUBSCRIBE. Alternatively,
>> the node could simply close the port and the next M_PUSH would fail. If we did
>> that, UNSUBSCRIBE would not be needed.
> 
> [Bing] If M_PUSH is standalone, then UNSUB is needed.

[Brian] Agreed.

>  
>> Finally do we actually need M_PUSH, rather than just sending M_SYNCH again
>> whenever needed?
> 
> [Bing] Even if we don't need M_PUSH standalone. I think current GRASP doesn't support multiple M_SYNCH for a single M_REQ_SYNCH? 
> Quoted as below from GRASP, I interpret it as "Per Sync Per Req":
> " It then sends a synchronization request (using M_REQ_SYN)
>    to the counterpart, including a specific synchronization objective.
>    The counterpart responds with a Synchronization message (M_SYNCH,
>    Section 2.8.10) containing the current value of the requested
>    synchronization objective.  No further messages are needed and the
>    transport connection SHOULD be closed. "

[Brian] Yes, that would have to change. But if we make PUSH the same as unicast FLOOD, this issue goes away.

>  
>>> 5.5 Publishing Objective Option
>>>
>>>    In fragmentary CDDL, a Publish Objective Option follows the pattern:
>>>
>>>       publish-objection-option = [PUBLISH, 2, 2, pubobj] objective-name
>>>       = PUBLISH
>>>       objective-flags = 2
>>>       loop-count = 2
>>>       pubobj = text
>>>
>>>    This option MAY be included in GRASP M_Synchronization, when
>>>    included, it means this message is for a publish of a specific object
>>>    data.
>>
>> I don't understand this. An M_SYNCH by definition delivers the current value of
>> an objective. Why do we need to say that we're publishing it?
> 
> [Bing] I think it's another mistake. The PUB option should be in the M_PUSH message. Since it is per Sync per Req (if I understand it correctly).

[Brian] OK.

If you make a new version  with the changes we've discussed, I will think about a test implementation. 

Regards
   Brian
> 
> Many thanks again!
> 
> B.R.
> Bing
>  
>> Regards
>>    Brian Carpenter
>>
>> _______________________________________________
>> Anima mailing list
>> Anima@ietf.org
>> https://www.ietf.org/mailman/listinfo/anima
>