Re: [Idr] why has 4096 bytes limit on BGP messages size?

Pekka Savola <pekkas@netcore.fi> Thu, 14 June 2007 16:00 UTC

Return-path: <idr-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1Hyrk4-0004wG-FX; Thu, 14 Jun 2007 12:00:12 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1Hyrjv-0004tm-8N for idr@ietf.org; Thu, 14 Jun 2007 12:00:03 -0400
Received: from eunet-gw.ipv6.netcore.fi ([2001:670:86:3001::1] helo=netcore.fi) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Hyrjt-0004lo-L5 for idr@ietf.org; Thu, 14 Jun 2007 12:00:03 -0400
Received: from netcore.fi (localhost [127.0.0.1]) by netcore.fi (8.13.8/8.13.8) with ESMTP id l5EFxlfP028454; Thu, 14 Jun 2007 18:59:47 +0300
Received: from localhost (pekkas@localhost) by netcore.fi (8.13.8/8.13.8/Submit) with ESMTP id l5EFxlGj028451; Thu, 14 Jun 2007 18:59:47 +0300
Date: Thu, 14 Jun 2007 18:59:47 +0300
From: Pekka Savola <pekkas@netcore.fi>
To: Tony Li <tli@cisco.com>
Subject: Re: [Idr] why has 4096 bytes limit on BGP messages size?
In-Reply-To: <FAE6ACBD-9843-4C14-BFEC-EB692A521E6C@cisco.com>
Message-ID: <Pine.LNX.4.64.0706141854120.28323@netcore.fi>
References: <20070614045832.888D81140496@mail.zjgsu.edu.cn> <FAE6ACBD-9843-4C14-BFEC-EB692A521E6C@cisco.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"; format="flowed"
X-Virus-Scanned: ClamAV 0.90.3/3413/Wed Jun 13 17:37:22 2007 on otso.netcore.fi
X-Virus-Status: Clean
X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED, AWL, BAYES_00 autolearn=ham version=3.1.9
X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on otso.netcore.fi
X-Spam-Score: -2.8 (--)
X-Scan-Signature: 9182cfff02fae4f1b6e9349e01d62f32
Cc: idr <idr@ietf.org>
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Inter-Domain Routing <idr.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/idr>
List-Post: <mailto:idr@ietf.org>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=subscribe>
Errors-To: idr-bounces@ietf.org

On Wed, 13 Jun 2007, Tony Li wrote:
> On Jun 13, 2007, at 10:01 PM, Fenggen Jia wrote:
>> hi,all,
>>       I am wondering why BGP has 4096 bytes limit on all its
>>       messages,should we leave it to the implementator to decide,thanks!
>
>
> Well, the problem with that is that a sender could then create an arbitrarily 
> long message, which could be arbitrarily problematic for a receiver.

While this is an interesting historical perspective, I'm not sure how 
relevant it is anymore.  How does BGP differ from other TCP 
applications (almost none of which specify the maximum byte limit in 
the application)?  Are routers so low-end that they cannot allocate 
more than 4K memory per message, or that they cannot determine the 
amount of memory to allocate depending on the message length? :-)

(The header fields already tell the length of the message, so 
allocating 4K buffer for each BGP message (when most messages are much 
smaller than 4K) is probably a waste in many cases.)

-- 
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings

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