Re: [Roll] DAO Projection - identifying storing, non-storing P-DAO

Rahul Jadhav <rahul.ietf@gmail.com> Wed, 13 June 2018 11:58 UTC

Return-Path: <rahul.ietf@gmail.com>
X-Original-To: roll@ietfa.amsl.com
Delivered-To: roll@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6A1BE130DCB for <roll@ietfa.amsl.com>; Wed, 13 Jun 2018 04:58:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 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_PASS=-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 kcSg-iiisKz2 for <roll@ietfa.amsl.com>; Wed, 13 Jun 2018 04:58:27 -0700 (PDT)
Received: from mail-ua0-x230.google.com (mail-ua0-x230.google.com [IPv6:2607:f8b0:400c:c08::230]) (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 2354412F1A5 for <roll@ietf.org>; Wed, 13 Jun 2018 04:58:27 -0700 (PDT)
Received: by mail-ua0-x230.google.com with SMTP id f30-v6so1504908uab.11 for <roll@ietf.org>; Wed, 13 Jun 2018 04:58:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RGTIr1s+8M0uWoJSvIovohponorWezvemf4pvJLsdmk=; b=h0MyfFRfNbtVXnTvP3xwDg+E/QGQinHZd8RX2AFEHJExBuFr7EYrRaV0kZX6ECWc+J SC3Lk8RsQqVN7ZsWeoo1rnIao4aH3/BTQRKefORZNrDz5sAd6iIRdKB6v0MgEcNtho5P dmYMhmA/XivXACUyWMpXRJ8TEzGq28aF42DIRa+z6hLtLwF0XGJsqwZF7WznP8gKykyZ 7sSgUSZXYNby9VE0QXaSW2FxOkN7DA32gqTy0ezxk+2+imxAI8PxHDMhti13PNwc2wGo EGCiuN3bAT7GF52VZ/GUOsa0VrBXK1F4Nk74nTr7g2kj/lUIkh1EPNNfiJvcbkGqCSTV xe5w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RGTIr1s+8M0uWoJSvIovohponorWezvemf4pvJLsdmk=; b=o8uAMrGzksmEMeG2u3xt8xyoQQcPN/oauyzGCKQftrfHD7LoX8UwAz+4sExDnvWsEu SdBIvwueZUCzlffjDBvJ/zsgb/TZ+6cHy/GB8+n7DajkXgI1/AikkVqbHM5KkybRu0qW AwpSVqA7X0j3GkM2ALu+YsG7Ud8R6O5HtItZvl7Ed3opXvr07OQlUltKQWEo2jjU7Pjk bP2iNpaGOuiLFkB80vdEwyTx46jdRi6OWLLE6eCWq0NMAOiprOw3YMLntiE3xKC3UTuM aKNHf3pSo8T/8iNP2kZUsuPFSq3gGW9zqXvn1IzMe8gsO0nimcYyQCWmOd3cl7DWqIXp sMjA==
X-Gm-Message-State: APt69E0Y641cnb8HE/ttChHuDt1elrGHC9hTpVvq1VHIYIYs17dxGE+4 CJ9LeWEafwU0+hP4XNN4Auht1l8kecDYlJdi6CU=
X-Google-Smtp-Source: ADUXVKIAA+9x0x01djzx4l0/lrfhjcGVi6mrJGXyIz59Q/gzaPwqazmV6/rw1RXySSX1lLY/t9LS0hCG5FO6LpS6XcA=
X-Received: by 2002:ab0:5061:: with SMTP id z30-v6mr3066746uaz.82.1528891106074; Wed, 13 Jun 2018 04:58:26 -0700 (PDT)
MIME-Version: 1.0
References: <CAO0Djp1n9oQ3wDD0TFJZqKD70ZBHP5rXac+Hz7xzS88aQGnYsA@mail.gmail.com> <6b16c897762d4f979b8302022c79bf79@XCH-RCD-001.cisco.com>
In-Reply-To: <6b16c897762d4f979b8302022c79bf79@XCH-RCD-001.cisco.com>
From: Rahul Jadhav <rahul.ietf@gmail.com>
Date: Wed, 13 Jun 2018 17:28:14 +0530
Message-ID: <CAO0Djp0_1w=-kajs12Cg-yApDqpy1YqLjbPbrxe8uyUxoUoC3Q@mail.gmail.com>
To: "Pascal Thubert (pthubert)" <pthubert@cisco.com>
Cc: Routing Over Low power and Lossy networks <roll@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/roll/cALAWfuZUcHmoL_zm2KN0V9ZLwg>
Subject: Re: [Roll] DAO Projection - identifying storing, non-storing P-DAO
X-BeenThere: roll@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Routing Over Low power and Lossy networks <roll.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/roll>, <mailto:roll-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/roll/>
List-Post: <mailto:roll@ietf.org>
List-Help: <mailto:roll-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/roll>, <mailto:roll-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Jun 2018 11:58:30 -0000

One thing that comes to my mind is using DAO base object bits... But i
m not sure if they can/should be expended for such purpose.
Another option is to use TIO bits and make TIO mandatory preceding the
VIOs ... Other fields such as path-seq/lifetime can also be removed
from VIO and can be kept only in TIO. Anyways having a different
Path-Sequence in individual VIOs does not help (not sure if having a
different path lifetime in individual VIO is needed?).
For current implementation, i m planning to go ahead with an extra
pass/traversal over the options to check for multiple VIOs.
 On Wed, 13 Jun 2018 at 14:54, Pascal Thubert (pthubert)
<pthubert@cisco.com> wrote:
>
> I agree Rahul,
>
> I picked that method as a starting point but as I presented at the IETF meeting I do not like it either, and it would be great that the group come up with something better.
>
> Would you have a particular preference based on your experience here?
>
> Pascal
>
>
> > -----Original Message-----
> > From: Rahul Jadhav <rahul.ietf@gmail.com>
> > Sent: mercredi 13 juin 2018 03:55
> > To: Routing Over Low power and Lossy networks <roll@ietf.org>; Pascal
> > Thubert (pthubert) <pthubert@cisco.com>
> > Subject: DAO Projection - identifying storing, non-storing P-DAO
> >
> > Hello Pascal, WG,
> >
> > When i started implementing storing mode P-DAO, i faced one problem, ... as
> > per the draft the only way to identify storing P-DAO from non-storing P-DAO
> > is that storing P-DAO has at-least 2 VIOs whereas non-storing P-DAO has only
> > one VIO.
> > The problem with implementation is that i need to traverse the whole P-DAO
> > before i know whether it is storing or non-storing P-DAO and populate the
> > route table accordingly. This way either i have to buffer VIO/via temporarily
> > and then act. Otherwise i have to have a 2-pass traversal through the P-DAO
> > to check whether it is storing or non-storing first and then act on the fields in
> > later pass.
> >
> > If we can have a flag somewhere in the P-DAO header to signal storing or non-
> > storing then it would make implementation much simpler.
> >
> > For interested ones, part implementation of DAO projection code is at:
> > https://github.com/whitefield-framework/contiki/tree/dao_projection
> > It currently supports registration/unregistration of projected routes using
> > non-storing P-DAO with +/- ACKing.
> >
> > Regards,
> > Rahul