[babel] source sub-tlv

Matthieu Boutier <boutier@irif.fr> Fri, 26 May 2017 14:26 UTC

Return-Path: <boutier@irif.fr>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ABA221294E9 for <babel@ietfa.amsl.com>; Fri, 26 May 2017 07:26:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.5
X-Spam-Level:
X-Spam-Status: No, score=-0.5 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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 8D3ojl2EX12N for <babel@ietfa.amsl.com>; Fri, 26 May 2017 07:26:05 -0700 (PDT)
Received: from korolev.univ-paris7.fr (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 655A0126D74 for <babel@ietf.org>; Fri, 26 May 2017 07:26:05 -0700 (PDT)
Received: from potemkin.univ-paris7.fr (potemkin.univ-paris7.fr [IPv6:2001:660:3301:8000::1:1]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/56228) with ESMTP id v4QEQ3qP015328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 26 May 2017 16:26:03 +0200
Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by potemkin.univ-paris7.fr (8.14.4/8.14.4/relay2/56228) with ESMTP id v4QEQ3rP005633; Fri, 26 May 2017 16:26:03 +0200
Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id 28D7EEB205; Fri, 26 May 2017 16:26:03 +0200 (CEST)
X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr
Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id goVUOPFMSLPX; Fri, 26 May 2017 16:26:01 +0200 (CEST)
Received: from [192.168.1.30] (chl77-1-88-181-65-42.fbx.proxad.net [88.181.65.42]) (Authenticated sender: boutier) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id 0BFDCEB201; Fri, 26 May 2017 16:26:01 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Matthieu Boutier <boutier@irif.fr>
In-Reply-To: <87h90a9nlz.wl-jch@irif.fr>
Date: Fri, 26 May 2017 16:26:00 +0200
Cc: babel@ietf.org, babel-users@lists.alioth.debian.org
Content-Transfer-Encoding: 7bit
Message-Id: <70ED4D66-B6BF-4D29-B24F-32A2C6779789@irif.fr>
References: <87h90a9nlz.wl-jch@irif.fr>
To: Juliusz Chroboczek <jch@irif.fr>
X-Mailer: Apple Mail (2.3124)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]); Fri, 26 May 2017 16:26:03 +0200 (CEST)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (potemkin.univ-paris7.fr [194.254.61.141]); Fri, 26 May 2017 16:26:03 +0200 (CEST)
X-Miltered: at korolev with ID 59283AFB.001 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-Miltered: at potemkin with ID 59283AFB.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-j-chkmail-Enveloppe: 59283AFB.001 from potemkin.univ-paris7.fr/potemkin.univ-paris7.fr/null/potemkin.univ-paris7.fr/<boutier@irif.fr>
X-j-chkmail-Enveloppe: 59283AFB.000 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/<boutier@irif.fr>
X-j-chkmail-Score: MSGID : 59283AFB.001 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000
X-j-chkmail-Score: MSGID : 59283AFB.000 on potemkin.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000
X-j-chkmail-Status: Ham
X-j-chkmail-Status: Ham
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/alSjytHBK3iRMkS6z5AfkUofBto>
Subject: [babel] source sub-tlv
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 May 2017 14:26:08 -0000

Hello,

Here is my code for source-specific extension of Babel using sub-TLV.

    https://github.com/boutier/babeld/tree/dev

* Packet format

The sub-TLV format is [ type | length | src-plen | src-prefix].  For now,
I use the value 250 for the sub-tlv source prefix.

* Source-specific wildcard requests

At this point, wildcard requests were treated separately.  Legacy
wildcard requests send classical routes only, and source-specific
wildcard requests send specific routes only.  The objective was to
let unchanged the behaviour "send routes specified by 6126 on a 6126's
request".  To have all routes, you had to send one wildcard request and
one wildcard source-specific request.

The current implementation does not change this behaviour.  To have all
routes, you must send one wildcard request (wildcard request without
source sub-TLV) and one source-specific wildcard request (request with
source sub-TLV).

If we keep this behaviour and mix tos-specific routes, we will have
to send 4 wildcard requests to have all routes.  I see two reasonable
options:

  - only keep (legacy) wildcard requests, and reply with a full dump.

  - send one request with all sub-TLVs you know but without mandatory
    bit, and reply to all options you know about.

The second is slightly more complex to implement, but may reduce
overhead when a legacy implementation requests a dump to an extended
one.  It also implies that mandatory and non-mandatory extension shares
the same space.

You may also want to give guidelines for futures extensions in 6126bis
about this kind of problems.

Any thoughts?

Matthieu