Re: [manet] Mail regarding draft-dlep-lid

Rick Taylor <rick@tropicalstormsoftware.com> Mon, 05 June 2017 15:33 UTC

Return-Path: <rick@tropicalstormsoftware.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 37715129AF4 for <manet@ietfa.amsl.com>; Mon, 5 Jun 2017 08:33:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001, 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 IgnVGblg279o for <manet@ietfa.amsl.com>; Mon, 5 Jun 2017 08:33:14 -0700 (PDT)
Received: from mail.tropicalstormsoftware.com (mail.tropicalstormsoftware.com [188.94.42.120]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 99F2A129AB7 for <manet@ietf.org>; Mon, 5 Jun 2017 08:33:13 -0700 (PDT)
Received: from tss-server1.home.tropicalstormsoftware.com ([fe80::753b:fa82:5c0:af0d]) by tss-server1.home.tropicalstormsoftware.com ([fe80::753b:fa82:5c0:af0d%10]) with mapi; Mon, 5 Jun 2017 16:32:49 +0100
From: Rick Taylor <rick@tropicalstormsoftware.com>
To: "ratliffstan@gmail.com" <ratliffstan@gmail.com>
CC: "kmorga07@harris.com" <kmorga07@harris.com>, "manet@ietf.org" <manet@ietf.org>
Thread-Topic: [manet] Mail regarding draft-dlep-lid
Thread-Index: AQHS2h4n8gQUpl33xUaMr+5MGkcJ5KIRJv0AgAOvioCAAUtPgIAAIMqAgAAaWYA=
Date: Mon, 05 Jun 2017 15:32:49 +0000
Message-ID: <1496676769.3788.60.camel@tropicalstormsoftware.com>
References: <63448cdd41fa4c94a44a390dd10848a1@MLBXCH18.cs.myharris.net> <1496242619.3129.19.camel@tropicalstormsoftware.com> <61e159c5594246d8afa42b5ee5cda557@MLBXCH18.cs.myharris.net> <CALtoyonckmMUzLJtR=R5tw5TJNCi=2DXxXmvb+hugARmkOeQ9g@mail.gmail.com> <1496664069.3788.31.camel@tropicalstormsoftware.com> <CALtoyokHwgnoR19Zw_BKDbhaRpx2bzguwZawwngzro4Qf6=3=Q@mail.gmail.com>
In-Reply-To: <CALtoyokHwgnoR19Zw_BKDbhaRpx2bzguwZawwngzro4Qf6=3=Q@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Content-Type: text/plain; charset="utf-8"
Content-ID: <8d83e991-fff6-48e9-8d52-17345b354c94>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/manet/XLeCgDKgPUm8b6wZCNmzKBZ_0To>
Subject: Re: [manet] Mail regarding draft-dlep-lid
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, 05 Jun 2017 15:33:16 -0000

Stan,

Comments inline...

On Mon, 2017-06-05 at 09:58 -0400, Stan Ratliff wrote:
> 
> 
> On Mon, Jun 5, 2017 at 8:01 AM, Rick Taylor <rick@tropicalstormsoftwa
> re.com> wrote:
> > Stan,
> > 
> > I think you're over-complicating this.  Given a Data Item is a TLV,
> > then as long as the lengths are consistent on a per-session basis,
> > I'd
> > be happy letting the modem implementer decide on the length.  As
> > far as
> > the router is concerned, it really doesn't matter.  Zero-padding
> > fixed
> > length fields seems a bit unwieldy...
> I think some more is required. The consistent length is important,
> because I can see a router implementation wanting to use the LID as a
> search key in, for example, an AVL tree. Fixed-length keys are
> required there. 

Okay, I'll agree with you here - consistent LID lengths make sense.
 And, yes, I can see your argument that knowing the size beforehand
does help with hardcoded value fields in search data structures.
Although a malloc equivalent shouldn't hurt too much - hopefully no-one 
is writing routers in ADA.

> And let's consider a failing case - At Destination Up for the first
> "link", the modem builds a TLV with length 4 and hands the router an
> integer. At Destination Up for a second link, the modem builds a TLV
> with length 6, and hands the router a MAC address...

Again, I agree.  If a modem announces the first LID with length 4, then
all further LIDs (for that session) MUST be length 4.  Note however
that one can mix and match LIDs with MAC Address Data Items.

> 
> What then? If you "kill" the Destination, then which one? Or, in
> other words, which LID was "right" - the integer LID, or the MAC-
> based LID? Or, should the entire Peer Session be brought down (which,
> as we've already agreed, is an awfully big hammer)?

I think we are agreeing still: mismatched LIDs = Invalid Data status
code and Terminate.

> 
> My thinking was (and still is) - if you're going to call for
> "consistent" LIDs (length-wise), then you either have to explicitly
> state what that LID size is (and possibly be prepared to negotiate
> the LID size), or allocate sufficient "real-estate" to cover all the
> possibilities.

I'll try a counter-argument:  In core DLEP, a MAC address can be 6 or 8
octets - you don't know which until you get one, and I'm not sure if we
specify if you are allowed to mix and match.  I suggest that LIDs
should follow the same precedent.

I'm not immediately dismissing the suggestion of a "My LID length is X"
Data Item for use in Session Init, but it could be seen as 'clunky'.

Cheers,

Rick