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

Marcelo Schmidt <mschmidt@equinix.com> Thu, 13 March 2008 15:51 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 E2B5B28C4CD; Thu, 13 Mar 2008 08:51:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -99.999
X-Spam-Level:
X-Spam-Status: No, score=-99.999 tagged_above=-999 required=5 tests=[AWL=-0.162, BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_ORG=0.611, J_CHICKENPOX_12=0.6, 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 ocQoDTL6Priz; Thu, 13 Mar 2008 08:51:10 -0700 (PDT)
Received: from core3.amsl.com (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9AA4728C0FB; Thu, 13 Mar 2008 08:51:10 -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 27E9828C1C5 for <idr@core3.amsl.com>; Thu, 13 Mar 2008 08:51:09 -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 le5zm-6xO+MJ for <idr@core3.amsl.com>; Thu, 13 Mar 2008 08:51:08 -0700 (PDT)
Received: from glaciar.corp.equinix.com (somehost-5.equinix.net [207.20.85.157]) by core3.amsl.com (Postfix) with ESMTP id 1975628C1BD for <idr@ietf.org>; Thu, 13 Mar 2008 08:51:08 -0700 (PDT)
Received: from glaciar.corp.equinix.com (localhost [127.0.0.1]) by glaciar.corp.equinix.com (8.12.11/8.12.11) with ESMTP id m2DFmnHf009945 for <idr@ietf.org>; Thu, 13 Mar 2008 08:48:49 -0700 (PDT)
Received: (from mschmidt@localhost) by glaciar.corp.equinix.com (8.12.11/8.12.11) id m2DFmn82012904 for idr@ietf.org; Thu, 13 Mar 2008 08:48:49 -0700 (PDT)
Date: Thu, 13 Mar 2008 08:48:49 -0700
From: Marcelo Schmidt <mschmidt@equinix.com>
To: idr@ietf.org
Message-ID: <20080313154849.GL18190@equinix.com>
Mime-Version: 1.0
User-Agent: Mutt/1.4.2.1i
Subject: [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: multipart/mixed; boundary="===============0398061582=="
Sender: idr-bounces@ietf.org
Errors-To: idr-bounces@ietf.org

I  am  interested  in input from the list on loose behavior we've seen
from various BGP specs.  The specific example in question is a case we
are seeing in the wild where a NEW_AS_PATH attribute has 8 data bytes,
but  sets the Extended Length bit and uses a 2-byte length field.  RFC
1771 explicitly states "Extended Length may be used only if the length
of  the  attribute value  is  greater  than 255 octets."  However, the
superceding  RFC  4271 does not have this explicit language, therefore
would  imply that  either  of the following cases would technically be
compliant:

A.  Ext-Len is set (1), 2-byte length field is used, regardless of
length of attribute

B.    Ext-Len   is   clear  (0),  1-byte  length  field  is  uses,
and attribute is <= 255 bytes

Furthermore, I've      seen      loose      language,      such     as
draft-kumaki-pce-bgp-disco-attribute-00.txt  that  seems  to  imply to
always set Ext-Len bit regardless.

Specifically,   is  anyone  aware  of  any  new  BGP  extensions  that
would REQUIRE  Ext-Len  to  be set, even if attribute is <= 255 bytes?
Our  thought  is  that if we receive a case A above with length <= 255
bytes,  we  are  free to propogate to downstream neighbors as a case B
(generically, for any attribute in BGP)."

-- 
-m

====================================================================
Key fingerprint = 8E48 6CD0 6D2B 538E 264B  D1D0 21E2 E7EE A40F 2A0B
gpg --keyserver wwwkeys.pgp.net --recv-keys 0xA40F2A0B
====================================================================

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