Re: [babel] Shepherd Review of draft-ietf-babel-source-specific-04

Toke Høiland-Jørgensen <toke@toke.dk> Wed, 10 April 2019 11:08 UTC

Return-Path: <toke@toke.dk>
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 C8823120131 for <babel@ietfa.amsl.com>; Wed, 10 Apr 2019 04:08:28 -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, 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=toke.dk
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 4Al2XxfYk1qc for <babel@ietfa.amsl.com>; Wed, 10 Apr 2019 04:08:26 -0700 (PDT)
Received: from mail.toke.dk (mail.toke.dk [52.28.52.200]) (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 4D455120112 for <babel@ietf.org>; Wed, 10 Apr 2019 04:08:26 -0700 (PDT)
From: Toke Høiland-Jørgensen <toke@toke.dk>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1554894503; bh=Y3S/VEE1m6/FvLrTR793ED++tUY5Y+Qwn/4Q9F13moc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=SnmdIB0I/Cb5DrNgmriHshh6dRwBzgg6XbDruYuKjmyHLym1SCGoU1KMzmOL7CGi3 BixvYMw7Jg5ka63U1MT8ly174eDcjN7VMlHtP+FdlldUpW2xlZ9CA39WbrvccwAdls AiK3nhXuhPFsBydPkjSvH899+mKqZNAlh/La3bpKwMvCA06pONgNs5lBKb5eO0Ly0w 6KCrhDlNdAzedShgiXdkOrzVOdwNKCuYJ6irGCpsn2Y7O+8+cSGXQsufZV1suQtEWN DlKrgFF+v87dL7znO/H1STEYyLjDZybakiemoHUbrm8Kybn2e1ZHBxdZN8ZRjGLLdA B9FYt/lJqwzhg==
To: Juliusz Chroboczek <jch@irif.fr>
Cc: Donald Eastlake <d3e3e3@gmail.com>, Babel at IETF <babel@ietf.org>
In-Reply-To: <874l76xhto.wl-jch@irif.fr>
References: <CAF4+nEEfEvg_ktoudURqvCPshrA8SzL+TMGjQm6vUOFX65q==A@mail.gmail.com> <874l76xhto.wl-jch@irif.fr>
Date: Wed, 10 Apr 2019 13:08:23 +0200
X-Clacks-Overhead: GNU Terry Pratchett
Message-ID: <874l76w21k.fsf@toke.dk>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/KhMW-siD4a7Fo-ml84AYNAt1T3U>
Subject: Re: [babel] Shepherd Review of draft-ietf-babel-source-specific-04
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 10 Apr 2019 11:08:29 -0000

Juliusz Chroboczek <jch@irif.fr> writes:

>> It seems to me that you need to unambiguously specify what is done if
>> there is a [...] TLV with multiple Source Prefix sub-TLVs. Such TLVs
>> could always be ignored or the first or the last Source Prefix sut-TLV
>> could be the effective sub-TLV with other Source Prefix sub-TLVs
>> ignored. But whatever is specified, it needs to be mandatory unambiguous
>> behavior.
>
> [...]
>
>> What do you do when you get a malformed Source Prefix sub-TLV with a zero
>> Source Plen?
>
> [...]
>
>> Continuing the theme of some of the comments above, what do you do with
>> a wildcard request that does contain a Source Prefix sub-TLV?
>
> Toke, I could use some advice here.  Please have a look at your code and
> let me know whether requiring (MUST) dropping the enclosing TLV in all of
> these cases complicates your implementation or not.  (I'll do the same on
> my side.)

Dropping the enclosing TLV is no problem, skipping the source TLV would
need patches... For reference, Bird currently does the following[0]:

- Malformed sub-TLV or Source prefix plen == 0: Parse error, drop the whole packet.

- Source sub-TLV on wildcard update or route request: Ignore enclosing TLV.

- Source sub-TLV on any other TLV: Parse error, drop the whole packet.

- Source-specific routing not configured: Ignore enclosing TLV.

- Duplicate source prefix sub-TLV: Ignore enclosing TLV.

-Toke

[0]: https://gitlab.labs.nic.cz/labs/bird/blob/master/proto/babel/packets.c#L998