[Top] [All Lists]

Re: patricia tries vs. hash for routing?

To: Kristen Carlson <kristenc@xxxxxxxxxx>
Subject: Re: patricia tries vs. hash for routing?
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Thu, 18 Sep 2003 20:17:43 -0700
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20030918172910.GA22091@xxxxxxxxxxxxxxxxx>
References: <20030918172910.GA22091@xxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Thu, 18 Sep 2003 10:29:10 -0700
Kristen Carlson <kristenc@xxxxxxxxxx> wrote:

> I'm wondering if somebody has already written a patch that replaces the
> current routing algorithm (hash) with one that is based on a trie based
> algorithm?  I'm also wondering if anybody has done any performance 
> comparisons with very large route tables to see which one scales better?

Patricia trees aren't going to help, most of the overhead in
the routing lookup is in implementing the various fancy features
our routing code supports.  For example, equal cost multi-pathing
and other such things.

The front end routing cache is a straight hash and is thus the
fastest way to lookup a route.  In the presence of well behaved
traffic and routing tables that do not change too often, it is

<Prev in Thread] Current Thread [Next in Thread>