[icnrg] Q

<Marc.Mosko@parc.com> Mon, 01 August 2016 19:06 UTC

Return-Path: <Marc.Mosko@parc.com>
X-Original-To: icnrg@ietfa.amsl.com
Delivered-To: icnrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9D44E12D760 for <icnrg@ietfa.amsl.com>; Mon, 1 Aug 2016 12:06:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.9
X-Spam-Level:
X-Spam-Status: No, score=-6.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] 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 hkwhydUZaEPp for <icnrg@ietfa.amsl.com>; Mon, 1 Aug 2016 12:06:24 -0700 (PDT)
Received: from smtp.parc.xerox.com (alpha.Xerox.COM [13.1.64.93]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B97D112D56F for <icnrg@irtf.org>; Mon, 1 Aug 2016 12:06:24 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by smtp.parc.xerox.com (Postfix) with ESMTP id 5A62D6C0124; Mon, 1 Aug 2016 12:06:24 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at newalpha.parc.com
Received: from smtp.parc.xerox.com ([127.0.0.1]) by localhost (smtp.parc.xerox.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TYjavP8nlXrA; Mon, 1 Aug 2016 12:06:24 -0700 (PDT)
Received: from exchangehub.parc.xerox.com (vertigo.parc.xerox.com [13.2.13.102]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.parc.xerox.com (Postfix) with ESMTPS id 17D396C0110; Mon, 1 Aug 2016 12:06:24 -0700 (PDT)
Received: from E2010DAG5.corp.ad.parc.com ([fe80::3d0b:7158:aec4:e05e]) by vertigo.corp.ad.parc.com ([fe80::606e:47ce:f5e2:fe3a%14]) with mapi id 14.03.0301.000; Mon, 1 Aug 2016 12:06:24 -0700
From: Marc.Mosko@parc.com
To: jefft0@remap.ucla.edu
Thread-Topic: Q
Thread-Index: AQHR7CfLYRNiExosaUew8OhNZOrIlg==
Date: Mon, 01 Aug 2016 19:06:23 +0000
Message-ID: <AEDD64E5-7454-49B2-9EC6-95C87FA6E2AB@parc.com>
References: <D3C4D342.362DE%jefft0@remap.ucla.edu>
In-Reply-To: <D3C4D342.362DE%jefft0@remap.ucla.edu>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [13.2.116.104]
Content-Type: multipart/alternative; boundary="_000_AEDD64E5745449B29EC695C87FA6E2ABparccom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/icnrg/5amkLOwRklIQlBbUOagFdejRwVQ>
Cc: icnrg@irtf.org
Subject: [icnrg] Q
X-BeenThere: icnrg@irtf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Information-Centric Networking research group discussion list <icnrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/icnrg>, <mailto:icnrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/icnrg/>
List-Post: <mailto:icnrg@irtf.org>
List-Help: <mailto:icnrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/icnrg>, <mailto:icnrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Aug 2016 19:06:26 -0000

See below.  Thanks for reading!  marc


On Aug 1, 2016, at 10:50 AM, Thompson, Jeff <jefft0@remap.ucla.edu<mailto:jefft0@remap.ucla.edu>> wrote:

Hi Marc,

Some comments:

Section 3.3 says “The excludes must be sorted in ascending order, using the normal Name sorting rules.” What are the “normal” name sorting rules? I don’t see them in  draft-irtf-icnrg-ccnxmessages-03.

It’s the 3rd paragraph of that section.  I’ll clear up the wording.


Section 4 says “A non-participating content store MUST objey the outer cache control directives, as normal…. It is RECOMMENDED that a participating node creating the encapsulated response set a short RecommendedCacheTime.” But draft-irtf-icnrg-ccnxmessages-03 section 3.4.2 says “[a Recommended Cache Time] is a recommendation only and may be ignored by the cache.”  So, for a non-participating content store, behavior “as normal” is that it can ignore the Recommended Cache Time. No? This seems to conflict with “MUST” in draft-mosko-icnrg-selectors-00.

Thank you for pointing out that distinction.  It may be better to use the ExpiryTime than the RecommendedCacheTime.


[You know I was going to bring this up, so here we go.] I assume cache time is important because a name with a selector such as a “right” child selector can indicate a different Content Object from one second to the next. So you need non-participating content stores on the return path to not keep returning the same Content Object for a name with this selector, when the intention is to indicate a “newer” Content Object. But draft-irtf-icnrg-ccnxmessages-03 only recommends obeying RecommendedCacheTime, and downplays problems with changes to this unsigned field, saying "There is little ill effect from an attacker changing the RCT as the RCT serves as a guideline only.” But where selector behavior is concerned, it’s a little more important than “a guideline only” since an old cache hit means that the consumer won’t get what they’re asking for.

Maybe draft-mosko-icnrg-selectors-00 can say something more about this?

Doing right child traversal is actually not the problem,  because as you discover the current right child, you then modify the exclusions to find the next one.  That means the 2nd name is different, so you will not get a cached response.

The following is a bit of thinking out loud...

The problem is if you get back an invalid encapsulated object that does not actually satisfy the Selectors.  In this case, one cannot actually ask for exactly the same thing, as you may get the cached response from a non-participating node.  One must either (a) exclude the invalid return and thus issue a next Selector query that is different and will not hit a cache entry on a non-participating node, or (b) make sure the cache times are short so they do not keep “poisoning” discovery responses.

I think option (a) is the best one, which follows the normal behavior, but one cannot actually do it twice.  For example, Alice sends discovery request Q,  Mallory sends bogus encapsulated response and there are no participating nodes in between.  Alice excludes the bogus response hash which updates the Selector query to Q’.  Mallory is still on path and returns the same bogus answer.  Alice cannot double exclude the same thing, so there’s not a defined method to make query Q’’.

This is a persistent problem when there’s only single path routing to Mallory, who is on path.  It would probably be a problem for NDN too, except it would be caught sooner because all nodes are participating (which would be true here too if all nodes were participating).  It may be useful to include a re-try counter or some similar mechanism (a query nonce) to allow non-participating nodes to differentiate identical requests Q to give them a chance to try multi-path without hitting a cache result (and thus avoid needing to fiddle with cache times).


Thanks,
- Jeff T

On 2016/8/1, 9:07:31, "icnrg on behalf of Marc.Mosko@parc.com<mailto:Marc.Mosko@parc.com>" <icnrg-bounces@irtf.org<mailto:icnrg-bounces@irtf.org> on behalf of Marc.Mosko@parc.com<mailto:Marc.Mosko@parc.com>> wrote:

All,

Back in 2014, I believe we discussed how to use an equivalent of NDN/CCNx 0.x selector discovery in CCNx 1.0, but we never publicly published that spec.  It was tied up with some early drafts of CCNx 1.0.  Here is a writeup of how to do the equivalent of selector based discovery on top of CCNx 1.0.  I do not intend this to be the single, canonical way of doing discovery.  I think there are many ways one could do it, and CCNx 1.0 provides the flexibility to use different discovery protocols.

I had to update it a fair bit from the pre-public 1.0 spec it was written against at that time.  Therefore, there may still be a few issues with how it is written up and I would appreciate feedback.

Marc

https://www.ietf.org/id/draft-mosko-icnrg-selectors-00.txt


P.S.
Some other example discovery protocols are described here:

http://www.ccnx.org/pubs/hhg/4.8%20CCNx%201.0%20Simple%20Service%20Discovery%20for%20Content%20Centric%20Networks.pdf
http://www.ccnx.org/pubs/hhg/4.7%20CCNx%201.0%20Collection%20Synchronization.pdf

P.P.S
Also on the NDN-INTEREST mailing list, I gave another example that is more SQL-like in syntax and returns row sets (not data objects), and allows one to specifically exclude an entire Content Store.
http://www.lists.cs.ucla.edu/pipermail/ndn-interest/2016-March/001051.html

_______________________________________________
icnrg mailing list
icnrg@irtf.org<mailto:icnrg@irtf.org>
https://www.irtf.org/mailman/listinfo/icnrg