Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Apr 2004 11:10:58 +0100
From:      Tony Finch <dot@dotat.at>
To:        anders.lowinger@packetfront.com
Cc:        freebsd-net@freebsd.org
Subject:   Re: do we support non contiguous netmasks ?
Message-ID:  <E1BBA1K-0003TK-00@chiark.greenend.org.uk>
In-Reply-To: <40712A8F.9000704@packetfront.com>
References:  <20040331005914.A6934@xorpc.icir.org> <20040331005914.A6934@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Anders Lowinger <anders.lowinger@packetfront.com> wrote:
>Luigi Rizzo wrote:
>>
>> i was wondering if anyone knows what kind of support we have
>> in FreeBSD networking code, for non contiguous netmasks.
>> While it is trivial to support them for interface addresses,
>> managing them in the routing table is probably far from trivial
>> and I believe also mostly useless... and anyways, i have no
>> idea how our kernel code deals with them
>
>Not sure why you wonder? Do you need it?

I played around with non-contiguous netmasks when working on Demon's
NETALIAS patch (see http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/12071).
I didn't actually put it into production that way, though -- I stuck
with standard netmasks to reduce confusion.

At that time we had IIRC two /18s and a /16 assigned to a web vhosting
service (because it dated from before widespread support for HTTP Host:
headers). These addresses were allocated sequentially, so the simple
approach of splitting the /16s into /18s and routing them to the various
servers gave an uneven distribution of load. Splitting the /16s by the
mask 0xFFFF0003 did a better job. (Each server could serve any site,
but was more efficient if it served a subset of the sites, and it was
easiest to configure this distribution on the (NetBSD) last hop router.)

Tony.
-- 
f.a.n.finch  <dot@dotat.at>  http://dotat.at/
LYME REGIS TO LANDS END INCLUDING THE ISLES OF SCILLY: NORTHWEST 4 OR 5
GRADUALLY VEERING NORTH 4 OR 5. SOME SHOWERS. MAINLY GOOD. SLIGHT IN EAST,
MODERATE IN WEST.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1BBA1K-0003TK-00>