[Manet-dt] Generalised OLSR packet/message format comments

Brian Adamson <adamson@itd.nrl.navy.mil> Fri, 17 February 2006 18:11 UTC

Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1FAA4h-0003kc-EH; Fri, 17 Feb 2006 13:11:23 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1FAA4g-0003kB-Rm for manet-dt@megatron.ietf.org; Fri, 17 Feb 2006 13:11:22 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA18235 for <manet-dt@ietf.org>; Fri, 17 Feb 2006 13:09:35 -0500 (EST)
Received: from s2.itd.nrl.navy.mil ([132.250.83.3]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1FAAJ8-0008Qf-CV for manet-dt@ietf.org; Fri, 17 Feb 2006 13:26:20 -0500
Received: from smtp.itd.nrl.navy.mil (smtp.itd.nrl.navy.mil [132.250.86.3]) by s2.itd.nrl.navy.mil (8.12.10+Sun/8.12.8) with SMTP id k1HIB7OF016793 for <manet-dt@ietf.org>; Fri, 17 Feb 2006 13:11:11 -0500 (EST)
Received: from [132.250.92.151] ([132.250.92.151]) by smtp.itd.nrl.navy.mil (SMSSMTP 4.1.11.41) with SMTP id M2006021713111019564 for <manet-dt@ietf.org>; Fri, 17 Feb 2006 13:11:10 -0500
Mime-Version: 1.0
Message-Id: <p0623090ec01bc1e83a63@[132.250.92.151]>
Date: Fri, 17 Feb 2006 13:11:09 -0500
To: manet-dt@ietf.org
From: Brian Adamson <adamson@itd.nrl.navy.mil>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Spam-Score: 0.0 (/)
X-Scan-Signature: e1e48a527f609d1be2bc8d8a70eb76cb
Subject: [Manet-dt] Generalised OLSR packet/message format comments
X-BeenThere: manet-dt@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: MANET Design Team <manet-dt.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/manet-dt>, <mailto:manet-dt-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/manet-dt>
List-Post: <mailto:manet-dt@ietf.org>
List-Help: <mailto:manet-dt-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/manet-dt>, <mailto:manet-dt-request@ietf.org?subject=subscribe>
Sender: manet-dt-bounces@ietf.org
Errors-To: manet-dt-bounces@ietf.org

Justin, Thomas, Chris, et al

I am wrestling with the fact that certain <msg-semantics> settings 
(e.g. bit 0 not set, but bit 1 set) results in non-32-bit aligned 
<msg-header-info> content ...

This by itself wouldn't be an issue, if there were some option to pad 
the <msg-header-info> to 32-bit alignment ...

Perhaps another unused <msg-semantic> bit could be set to indicate 
whether the <msg-header-info> is padded out to 32-bit alignment, 
regardless of the semantics? (i.e. a "tail" indicator?)


Perhaps I am too hung up on having 32-bit aligned message parsing 
code (i.e. so that TLV's and address blocks end up on 32-bit 
boundaries), but perhaps it would be useful for the <msg-header-info> 
to have a "tail" option like the address blocks do if that is desired 
for a protocol using this message construction?

I am creating a generalized set of C++ classes that implement message 
building and parsing that I will be using for an SMF "hello protocol" 
implementation.  I will be posting this code as part of the open 
source "nrlsmf" code distribution as it is more complete for anyone 
interested.  My current approach with the building/parsing code is to 
provide for 32-bit aligned packet/message construction.  In the 
longer term, I may provide an alternative implementation that doesn't 
require 32-bit alignment of significant packet/message structures 
(e.g. headers, address blocks, tlv blocks, etc), but I thought I 
would go for the "pretty" approach and thus the issue above came to 
light ...

Any comments?

cheers,

-- 
Brian
__________________________________
Brian Adamson
<mailto:adamson@itd.nrl.navy.mil>

_______________________________________________
Manet-dt mailing list
Manet-dt@ietf.org
https://www1.ietf.org/mailman/listinfo/manet-dt