Re: [manet] On Forwarding-and-regeneration (was: Re: draft-ietf-manet-aodvv2-13 review - a couple of big ticket Items)

Henning Rogge <hrogge@gmail.com> Fri, 22 April 2016 09:31 UTC

Return-Path: <hrogge@gmail.com>
X-Original-To: manet@ietfa.amsl.com
Delivered-To: manet@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F388C12EB2A for <manet@ietfa.amsl.com>; Fri, 22 Apr 2016 02:31:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 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_LOW=-0.7, 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 YnPaH5p5ybBs for <manet@ietfa.amsl.com>; Fri, 22 Apr 2016 02:31:49 -0700 (PDT)
Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (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 992D012EAD6 for <manet@ietf.org>; Fri, 22 Apr 2016 02:31:48 -0700 (PDT)
Received: by mail-lf0-x229.google.com with SMTP id j11so75870330lfb.1 for <manet@ietf.org>; Fri, 22 Apr 2016 02:31:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=58typhwhX3bUu6w847j/Q4whkq+acPQeb/I3Q4mwEgg=; b=Biukat5FBhoJ4jed2ZW2FU5r3SLPwpCRYbNavhttRH2X0SpxFvTi6v3xpxYfntntbE F0HR3fAFbuWKRoJq/8OYLHhV8ELSFQbBRggGZbUI13pbdzssbDdi6FURHykwKwiAXsbm iusDsBfTQRnBT3QTPInlhj3Xzl42cRtvV/16zYapH1rcvuuO+DN1pG/SWmUmPAmOnf3T 65Ti4bG1V3/cavNomCe+v4/X4VuJpPZYlcEQpcGdBXSjTlT6tGE21dbBiPc+9AV69itN 4JoaNc7nH8IwaZM4pcWV+BhsxUxgtnjALqLF0WhovKx1IpUxOQQhJ/OayfX60Yas+Z75 F0zA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=58typhwhX3bUu6w847j/Q4whkq+acPQeb/I3Q4mwEgg=; b=dYy4N6qB5Pb2x5imDReYhMQE0ZD6NUgaIV4DxGwh1sZNaLpbNBSNgd3Q2N32n3bPkN WTM9BgeMsHBiImaXlyXyupO+GNzXmmiZ2F4oP23GOX9cod21ZGB1O8AsitOTorl4i3u8 J0MLf+lJh9KZaiIJ9ln2Tec+YgTMp+ymQKotsEPYEmnIW7e7zKv0S+NzQCHBQ+tLNe35 yjRG8O53Ae7cA4aE5/azySZZNcpinoe+rdbxEXaF+De2lODIm2ozGkCKExKiEBhQcY1Y Su9TXyhrQMf2EajKKnx0/C9quxqc9ydpxYkEQ23DQvTTforYYCoxGSc5IWtEB/WW6jn3 h0rQ==
X-Gm-Message-State: AOPr4FU/P7HsNyrSrAdx5rwSdB2MrysPGyrSKEfOSlqGz4a266mtHeps19Gf3t8z7weqL02iHKFC/PSaBVX9mQ==
X-Received: by 10.25.131.147 with SMTP id f141mr8465969lfd.12.1461317506727; Fri, 22 Apr 2016 02:31:46 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.24.42 with HTTP; Fri, 22 Apr 2016 02:31:17 -0700 (PDT)
In-Reply-To: <57CBEE37-3779-4C8A-BA85-78C24F05CB00@fu-berlin.de>
References: <8C311D85-5C5A-4155-9705-6B09D0AA588B@thomasclausen.org> <DE42008F-25E3-492E-8499-2DC13BDB0E8E@fu-berlin.de> <3A79C619-5DEC-4356-9285-7A209AA100E1@thomasclausen.org> <6DFEF66A-2B48-45B9-A08D-6042B20AF386@fu-berlin.de> <CAGnRvuo6uE8SW5HXAhTvT5hxk2h9ZgkHVfzcg7bxCTvZYZ3iDw@mail.gmail.com> <57CBEE37-3779-4C8A-BA85-78C24F05CB00@fu-berlin.de>
From: Henning Rogge <hrogge@gmail.com>
Date: Fri, 22 Apr 2016 11:31:17 +0200
Message-ID: <CAGnRvurB8f72Op3F9LqP1D_F9ALTmyvtxEEVx+fbEKq4rcY6pg@mail.gmail.com>
To: Lotte Steenbrink <lotte.steenbrink@fu-berlin.de>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/manet/qzXFl0mEoIVpEv5qAtgzjEQgGR8>
Cc: Mobile Ad Hoc Networks mailing list <manet@ietf.org>
Subject: Re: [manet] On Forwarding-and-regeneration (was: Re: draft-ietf-manet-aodvv2-13 review - a couple of big ticket Items)
X-BeenThere: manet@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Mobile Ad-hoc Networks <manet.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/manet>, <mailto:manet-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/manet/>
List-Post: <mailto:manet@ietf.org>
List-Help: <mailto:manet-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/manet>, <mailto:manet-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 22 Apr 2016 09:31:51 -0000

On Fri, Apr 22, 2016 at 11:28 AM, Lotte Steenbrink
<lotte.steenbrink@fu-berlin.de> wrote:
> Hi Henning,
>
> D’oh, right. Yeah, if I remember it correctly, that’s what you explained to me when I got confused about the topic last spring… But– even if a message contains TLVs that the AODVv2 implementation handling it doesn’t understand, it will still be able to recognize the Metric TLV, right? Isn’t that the nifty thing about RFC5444? So, while we really shouldn’t write “before calculating the ICV, set the n-th 4 octets to 0”, we might say “identify the octets that make up the metric value and set those to 0”?

Of course... you can build a "binary modifier" for RFC5444...

in fact I have done something like this on the way to implement
signatures (RFC7182) because you need the message layout before you
can calculate the hash.

And I can tell you it can be a pain in the *** for a generic
parser/generator system. It is worse for signatures (you need to
add/remove TLVs), but it is still not trivial for your usecase.

Henning Rogge