Re: [Seamoby] issue-#49: Length indicator for Router Certificate sub-option

"James Kempf" <kempf@docomolabs-usa.com> Tue, 11 May 2004 18:02 UTC

Received: from optimus.ietf.org (iesg.org [132.151.1.19]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA12747 for <seamoby-archive@odin.ietf.org>; Tue, 11 May 2004 14:02:30 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BNbTR-0001Wo-6t for seamoby-archive@odin.ietf.org; Tue, 11 May 2004 13:55:25 -0400
Received: (from exim@localhost) by www1.ietf.org (8.12.8/8.12.8/Submit) id i4BHtPNj005869 for seamoby-archive@odin.ietf.org; Tue, 11 May 2004 13:55:25 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BNbLY-0008Hs-KL for seamoby-web-archive@optimus.ietf.org; Tue, 11 May 2004 13:47:16 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11694 for <seamoby-web-archive@ietf.org>; Tue, 11 May 2004 13:47:13 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx) by ietf-mx with esmtp (Exim 4.32) id 1BNbLW-00043x-E4 for seamoby-web-archive@ietf.org; Tue, 11 May 2004 13:47:14 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12) id 1BNbKX-0003cP-00 for seamoby-web-archive@ietf.org; Tue, 11 May 2004 13:46:14 -0400
Received: from optimus.ietf.org ([132.151.1.19]) by ietf-mx with esmtp (Exim 4.12) id 1BNbJf-0003BE-00 for seamoby-web-archive@ietf.org; Tue, 11 May 2004 13:45:19 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BNb5s-00043H-M4; Tue, 11 May 2004 13:31:04 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BNavB-00018u-WC for seamoby@optimus.ietf.org; Tue, 11 May 2004 13:20:02 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA09800 for <seamoby@ietf.org>; Tue, 11 May 2004 13:19:59 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx) by ietf-mx with esmtp (Exim 4.32) id 1BNavA-0007kY-0k for seamoby@ietf.org; Tue, 11 May 2004 13:20:00 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12) id 1BNauE-0007L6-00 for seamoby@ietf.org; Tue, 11 May 2004 13:19:03 -0400
Received: from key1.docomolabs-usa.com ([216.98.102.225] helo=fridge.docomolabs-usa.com ident=fwuser) by ietf-mx with esmtp (Exim 4.12) id 1BNatJ-0006vP-00 for seamoby@ietf.org; Tue, 11 May 2004 13:18:05 -0400
Message-ID: <00cf01c4377c$03c82fe0$366115ac@dcml.docomolabsusa.com>
From: James Kempf <kempf@docomolabs-usa.com>
To: Marco Liebsch <marco.liebsch@ccrle.nec.de>
Cc: seamoby@ietf.org
References: <01e101c432f0$ceaf6ec0$366115ac@dcml.docomolabsusa.com> <40A10272.8010701@ccrle.nec.de>
Subject: Re: [Seamoby] issue-#49: Length indicator for Router Certificate sub-option
Date: Tue, 11 May 2004 10:18:43 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: seamoby-admin@ietf.org
Errors-To: seamoby-admin@ietf.org
X-BeenThere: seamoby@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/seamoby>, <mailto:seamoby-request@ietf.org?subject=unsubscribe>
List-Id: Context Transfer, Handoff Candidate Discovery, and Dormant Mode Host Alerting <seamoby.ietf.org>
List-Post: <mailto:seamoby@ietf.org>
List-Help: <mailto:seamoby-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/seamoby>, <mailto:seamoby-request@ietf.org?subject=subscribe>
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on ietf-mx.ietf.org
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

> James Kempf wrote:
>
> >All the length fields in CARD are 8 bits, which means restricts the size
of
> >messages to 254 bytes. This length is insufficient for certificates.
> >
> >An additional concern is that if the length field of the entire
> >Request/Reply mesage is the same as the sub-option length field, the
> >sub-option generator may want generate an option longer than would fit
into
> >the message, since this would be allowed by the field length. The
solution
> >for this in any case is for the sub-option generator code to respect the
> >overall limits on the message length, in addition to the sub-option
length.
> >
> >Proposal 1: Keep the length field size at 8 bits and make the units of
> >length be 8 octets, for a maximum 1634 bits  or 2048 bytes.
> >
> >Proposal 2: Change the length field size to 16 bits, for a total of 65535
> >bits or 8192 bytes.
> >
> >Suggested resolution: Proposal 2
> >
> >Reason: Proposal 1 could result in a maximum of up to 7 padding bytes of
> >null data in an option or sub-option which is an extra overhead that is
> >unnecessary and unwanted over the air.
> >
> >
> >
> Well, this is only my opinion, but if we transmit certs of size > 1kbyte
> over the air with
> a CARD Reply, who cares about 7 bytes padding... What bothers me with
> the 16-bit proposal is
> that potentially the length of this sub-option can be much larger than
> the length of the option it
> is encapsulated with, which is max 256 x 8bytes long. And even when
> having resolution of
> 1 byte with 16-bit length identifier, requirement for all sub-options is
> to take care about 32-bit
> boundary alignment.
> Hence, max overhead with proposal 1 is 4 bytes, right?
>
> What do others think?
>

So how about changing the size of the option to 16 bits as well?

BTW, if we do change the size to 16 bits, then I think the units should be
bytes and not bits. So the max size would be 65536 bytes.

            jak



_______________________________________________
Seamoby mailing list
Seamoby@ietf.org
https://www1.ietf.org/mailman/listinfo/seamoby