Re: [Idr] RFC-compliant use of Extended Length for new BGP attributes

Jeffrey Haas <jhaas@pfrc.org> Thu, 13 March 2008 17:59 UTC

Return-Path: <idr-bounces@ietf.org>
X-Original-To: ietfarch-idr-archive@core3.amsl.com
Delivered-To: ietfarch-idr-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 08C3F3A6C4C; Thu, 13 Mar 2008 10:59:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.575
X-Spam-Level:
X-Spam-Status: No, score=-100.575 tagged_above=-999 required=5 tests=[AWL=-0.138, BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_ORG=0.611, RDNS_NONE=0.1, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZB9uYeOxZW-U; Thu, 13 Mar 2008 10:59:08 -0700 (PDT)
Received: from core3.amsl.com (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 83B2A3A68DB; Thu, 13 Mar 2008 10:59:08 -0700 (PDT)
X-Original-To: idr@core3.amsl.com
Delivered-To: idr@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3F6AF3A63CB for <idr@core3.amsl.com>; Thu, 13 Mar 2008 10:59:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V+T7bhdkDF1F for <idr@core3.amsl.com>; Thu, 13 Mar 2008 10:59:03 -0700 (PDT)
Received: from manos.scc.mi.org (manos.scc.mi.org [204.11.140.250]) by core3.amsl.com (Postfix) with ESMTP id 6E9223A68DB for <idr@ietf.org>; Thu, 13 Mar 2008 10:59:03 -0700 (PDT)
Received: by manos.scc.mi.org (Postfix, from userid 1025) id 63A8F4E510; Thu, 13 Mar 2008 13:56:45 -0400 (EDT)
Date: Thu, 13 Mar 2008 13:56:45 -0400
From: Jeffrey Haas <jhaas@pfrc.org>
To: Marcelo Schmidt <mschmidt@equinix.com>
Message-ID: <20080313175645.GA23909@scc.mi.org>
References: <20080313154849.GL18190@equinix.com> <77ead0ec0803131008i6915cf91g8801970eb444a63e@mail.gmail.com> <20080313173705.GN18190@equinix.com>
Mime-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20080313173705.GN18190@equinix.com>
User-Agent: Mutt/1.5.9i
Cc: idr@ietf.org
Subject: Re: [Idr] RFC-compliant use of Extended Length for new BGP attributes
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Inter-Domain Routing <idr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/pipermail/idr>
List-Post: <mailto:idr@ietf.org>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: idr-bounces@ietf.org
Errors-To: idr-bounces@ietf.org

Marcelo,

On Thu, Mar 13, 2008 at 10:37:05AM -0700, Marcelo Schmidt wrote:
> If the restriction defined in RFC1771 is not longer valid, that means we
> can expect to receive an update with Extended Length bit set, but e.g. length 
> of only 6?  This is one case where I see this needs a clarification: 
> 
> what should outgoing updates do when the Extended Length bit is set but
> but length <= 255 oct?

Expect the attribute length to be 2 octets and calculate the total path
attribute length accordingly.

> Ignore it, accept updates with Extended Length even when <= 255 octets anyways?

I'd certainly hope so.

> This could cause a packet malformed if the implementaion uses RFC1771 where
> Extended Length bit is being checked before sending the update.

The packet is well formed.  As you say, by 1771 rules, it is
semantically incorrect.  The only implementation I would expect to do
anything about this would be the ones run by conformance validation tools.

One reason why implementors may wish to just use the extended length
value always is that it reduces the possible code paths for packet
construction.  Length errors when constructing TLVs are a class of bugs
that crop up all too often in networking.

Of course, even an implementation that always sent using the extended
length bit must be able to receive without it.

-- Jeff
_______________________________________________
Idr mailing list
Idr@ietf.org
https://www.ietf.org/mailman/listinfo/idr