From owner-freebsd-net Thu Sep 26 1: 1:14 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E49237B401 for ; Thu, 26 Sep 2002 01:01:13 -0700 (PDT) Received: from out5.mx.nwbl.wi.voyager.net (out5.mx.nwbl.wi.voyager.net [169.207.3.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCE9343E42 for ; Thu, 26 Sep 2002 01:01:12 -0700 (PDT) (envelope-from silby@silby.com) Received: from pop5.nwbl.wi.voyager.net (pop5.nwbl.wi.voyager.net [169.207.3.83]) by out5.mx.nwbl.wi.voyager.net (Postfix) with ESMTP id 18BECC6B5D; Thu, 26 Sep 2002 03:00:29 -0500 (CDT) Received: from [10.1.1.6] (d34.as6.nwbl0.wi.voyager.net [169.207.128.34]) by pop5.nwbl.wi.voyager.net (8.10.2/8.10.2) with ESMTP id g8Q80Ru87369; Thu, 26 Sep 2002 03:00:27 -0500 (CDT) Date: Thu, 26 Sep 2002 03:04:37 -0500 (CDT) From: Mike Silbersack To: Giorgos Keramidas Cc: freebsd-net@freebsd.org Subject: Re: mbuf chain In-Reply-To: <20020925090309.GC597@hades.hell.gr> Message-ID: <20020926025730.J6503-100000@patrocles.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 25 Sep 2002, Giorgos Keramidas wrote: > On 2002-09-24 13:57, Prafulla Deuskar wrote: > > All, > > > > Is there a pre-set limit on maximum number of fragments in a > > mbuf chain ? > > Not as a limit of the mbuf chain code, but as a limit of the IP packet > input code. Look at the description of the ip_maxfragpackets sysctl > value in src/sys/netinet/ip_input.c > > It is initialized by default to (nmbclusters / 4) in ip_init(). > > The relevant code, that enforces the limit, is near the beginning of > the ip_reass() function in the same file. > > Giorgos. I don't believe that mbuf fragments have any relationship to IP fragmentation. And while you mention it, the IP fragmentation handling code is another place where we need to add mbuf merging/chaining. I've been thinking about this, actually. How many IP fragments will a packet ever truly have? If you assume a 1500 byte ethernet packet broken into 200 byte chunks, that's < 8. If you break a jumbo frame into 1500 byte packets, that's < 7. Can there be any normal use of fragmentation that would produce more than 10 or so fragments? Also, will overlapping fragments really ever be seen, or can we just assume that's a sign of abuse? Sorry for the sudden change of direction for this thread, I've been pondering how to improve our resistance to mbuf exhaustion through ip frags. Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message