Re: [manet] packetbb update idea

Justin Dean <bebemaster@gmail.com> Mon, 03 July 2017 18:37 UTC

Return-Path: <bebemaster@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 38F3A13169F for <manet@ietfa.amsl.com>; Mon, 3 Jul 2017 11:37:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 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, HTML_MESSAGE=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 tDFnlX92H9_d for <manet@ietfa.amsl.com>; Mon, 3 Jul 2017 11:37:10 -0700 (PDT)
Received: from mail-it0-x232.google.com (mail-it0-x232.google.com [IPv6:2607:f8b0:4001:c0b::232]) (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 CC53513171A for <manet@ietf.org>; Mon, 3 Jul 2017 11:36:47 -0700 (PDT)
Received: by mail-it0-x232.google.com with SMTP id m68so91661821ith.1 for <manet@ietf.org>; Mon, 03 Jul 2017 11:36:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=H5TcuOcI7OIfnuzUgEnsuJHEwF0FcPEySEFgQglDDvE=; b=lVsRggISUwHruuK9w8J9vgmzscJDodfxn89BZynP4oFXntvVefImDVW2/nSl00dZrN c/mOZsIdly++a6okg9Cg8Bs/eF4RKiTR5tZoXbeZpEidP9ixfbj0Bu3U/fNUyzbAjzuV BKB0PbhRRcradpFyFVsrPVqWJ0TQ50fiodZRHR3S6odRL6urdnTiZPf25ReZstrlOzK8 n3RYetPHsuwCq8duCO7KQP27SFSsJfXWrv86FFtZ+eWg7E8FG+qY9LiL+xHTPQG29BMC BaXaa7XeaF/lUU4lxbBqnaSJuqbyNaeTDpvg5nr3xIQHSmrn+8S9SJn8AedFOasyXcAu gPLA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=H5TcuOcI7OIfnuzUgEnsuJHEwF0FcPEySEFgQglDDvE=; b=YVsOgLVN28+8HO/Xh9R8mK0rTT9R3Ey5zXRXP1Njz9yd9YAxj94FVsrolliPOzq34P Nvh90OqGBqxHIdTrS+yjoHCmBIOni/eNScFiipxoRxnMIuUdEu/tvMm0xGKQV61zaQ4Z z73sh0kV9uNXMNhBqLt/nbOt9vaIdUMnLEneWKDiUQio+6sSmJ7HIpbiDY0KTCASNEUs BFSfL+sgYp+z9gIXstTv6LzoDFdbD93Hyq8yS95SVhNao6ndlFfv1Ett7sFOztwMo12k u6jUXaGR88IcqZjaAGtZ4APUpR+sVLYdijVgjSrek9EFUY3luYFdzDLD9LPzAL0kREzt qGqQ==
X-Gm-Message-State: AIVw113HdGWi30i5LMTn1XzQubaz9t0C7+WLw9HmCfXiEQLgZI02wEHb 3M4/ESqKsNORIpSYXbxA2BFSjFkF5A==
X-Received: by 10.36.88.196 with SMTP id f187mr9830254itb.86.1499107007089; Mon, 03 Jul 2017 11:36:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.38.72 with HTTP; Mon, 3 Jul 2017 11:36:46 -0700 (PDT)
In-Reply-To: <CAGnRvupo2wOLcb+zfM7B43y3UYCYJE8c=2Xmdj6pEoZv52zeQQ@mail.gmail.com>
References: <CA+-pDCcfXm-Vf11FZ+KmAk-ZMYBdTZ-+kPebNkd4KtEa8eEX4A@mail.gmail.com> <CAGnRvupo2wOLcb+zfM7B43y3UYCYJE8c=2Xmdj6pEoZv52zeQQ@mail.gmail.com>
From: Justin Dean <bebemaster@gmail.com>
Date: Mon, 03 Jul 2017 14:36:46 -0400
Message-ID: <CA+-pDCcnYTW=7JS6HPv1CdM9Va5XNL6BT+UHCrQODg5kB8Sa8g@mail.gmail.com>
To: Henning Rogge <hrogge@gmail.com>
Cc: "manet@ietf.org" <manet@ietf.org>
Content-Type: multipart/alternative; boundary="001a11449daea3541705536e0c87"
Archived-At: <https://mailarchive.ietf.org/arch/msg/manet/OJFnhxH1SzLQWdzsM2UOY7qrCMc>
Subject: Re: [manet] packetbb update idea
X-BeenThere: manet@ietf.org
X-Mailman-Version: 2.1.22
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: Mon, 03 Jul 2017 18:37:12 -0000

On Mon, Jul 3, 2017 at 1:41 PM, Henning Rogge <hrogge@gmail.com> wrote:

> On Mon, Jul 3, 2017 at 7:29 PM, Justin Dean <bebemaster@gmail.com> wrote:
> > So while trying to encode some information using packetbb for the elastic
> > multicast stuff we have been working on I've run into a short coming.
> > RFC5444 allows one to efficiently encode information about addresses and
> > even pairs of addresses (as long as one of those addresses is the Oaddr)
> > with the TLV structure and the address block.  It does not allow for easy
> > encoding about pairs of addresses of which neither is the Oaddr.  After
> some
> > thinking on it I think most of what I'd like to be able to do could be
> > solved by using the RESERVED tlv flag bit number 6 to indicate inclusion
> of
> > a single index field <index-opt> which would specify a single address in
> the
> > address block.
>
> You mean for things like source-specific routing (having a source- and
> destination prefix for an attached network)?
>
> I remember I did a rough sketch for this (I have implemented in my
> Olsrd2-Implementation) and I was forced to put one of the addresses
> uncompressed into a data TLV.
>
> Yes it could work for that.  I did the same thing when I started to sketch
out a layout that worked with RFC5444.  Having the extra index instead of
including the full address saves a bunch of space when transmitting a lot
of pairwise information. 1 byte instead of 16 when working with ipv6.


> > So the tlv definition would change from
> > <tlv> := <tlv-type>
> >
> >                 <tlv-flags>
> >                 <tlv-type-ext>?
> >                 (<index-start><index-stop>?)?
> >                 (<length><value>?)?
> >
> > to
> >
> > <tlv> := <tlv-type>
> >                 <tlv-flags>
> >                 <tlv-type-ext>?
> >
> >                 <index-opt>?
> >                 (<index-start><index-stop>?)?
> >                 (<length><value>?)?
> >
> >
> > This would allow one to specify information about pairs of addresses in a
> > compact way.  In the case of elastic multicast source/destination flow
> > pairs. Thoughts welcome.
>
> IF (not sure it is worth) we add something to RFC5444, I would also
> like to suggest an option in the address block TLVs to refer to the
> originator address as the prefix/postfix part.
>

Hmm.  I could see how that might reduce some overhead although the
originator being optional may make that a little bit tricky.  I'm open to
the idea.

One other thing I think might be nice is an address block block.  It would
be a simple container (or an implied container but I think that could get
ugly) for address blocks so different similar addresses could be compressed
but share an indexing scheme.

>
> Henning
>