netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* patricia tries vs. hash for routing?
@ 2003-09-18 17:29 Kristen Carlson
  2003-09-19  3:17 ` David S. Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Kristen Carlson @ 2003-09-18 17:29 UTC (permalink / raw)
  To: netdev

Hi,
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?
thanks,
Kristen
 
-- 
WWXD (What Would Xena Do?) 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: patricia tries vs. hash for routing?
  2003-09-18 17:29 Kristen Carlson
@ 2003-09-19  3:17 ` David S. Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David S. Miller @ 2003-09-19  3:17 UTC (permalink / raw)
  To: Kristen Carlson; +Cc: netdev

On Thu, 18 Sep 2003 10:29:10 -0700
Kristen Carlson <kristenc@cs.pdx.edu> 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
optimal.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: patricia tries vs. hash for routing?
@ 2003-09-19 21:48 Kristen Carlson
  2003-09-20  6:37 ` David S. Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Kristen Carlson @ 2003-09-19 21:48 UTC (permalink / raw)
  To: davem; +Cc: netdev

I was looking through some very old mail list discussions (1996!) on this 
topic, and the feeling then was that the code was optimal for < 60,000 routes.
Given that much has happened since then, is it still a fair assumption to say
that the linux routing algorithm is optimized for < 60,000 routes, but a
more BSD-like algorithm works better for > 60,000 routes?
Thanks,
Kristen

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: patricia tries vs. hash for routing?
  2003-09-19 21:48 patricia tries vs. hash for routing? Kristen Carlson
@ 2003-09-20  6:37 ` David S. Miller
  2003-10-28 13:29   ` bill davidsen
  0 siblings, 1 reply; 5+ messages in thread
From: David S. Miller @ 2003-09-20  6:37 UTC (permalink / raw)
  To: Kristen Carlson; +Cc: netdev

On Fri, 19 Sep 2003 14:48:37 -0700
Kristen Carlson <kristenc@cs.pdx.edu> wrote:

> I was looking through some very old mail list discussions (1996!) on this 
> topic, and the feeling then was that the code was optimal for < 60,000 routes.
> Given that much has happened since then, is it still a fair assumption to say
> that the linux routing algorithm is optimized for < 60,000 routes, but a
> more BSD-like algorithm works better for > 60,000 routes?

That's not true at all, the current code can handle many more than
60,000 routes.

Don't speak with abstract claims that bear no content, do your own
experiments with a properly configured system and report them in
detail here.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: patricia tries vs. hash for routing?
  2003-09-20  6:37 ` David S. Miller
@ 2003-10-28 13:29   ` bill davidsen
  0 siblings, 0 replies; 5+ messages in thread
From: bill davidsen @ 2003-10-28 13:29 UTC (permalink / raw)
  To: netdev

In article <20030919233730.75969de6.davem@redhat.com>,
David S. Miller <davem@redhat.com> wrote:
| On Fri, 19 Sep 2003 14:48:37 -0700
| Kristen Carlson <kristenc@cs.pdx.edu> wrote:
| 
| > I was looking through some very old mail list discussions (1996!) on this 
| > topic, and the feeling then was that the code was optimal for < 60,000 routes.
| > Given that much has happened since then, is it still a fair assumption to say
| > that the linux routing algorithm is optimized for < 60,000 routes, but a
| > more BSD-like algorithm works better for > 60,000 routes?
| 
| That's not true at all, the current code can handle many more than
| 60,000 routes.

I don't think "optimized for" meant it wouldn't handle more, just that
performance would degrade.
-- 
bill davidsen <davidsen@tmr.com>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-10-28 13:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-19 21:48 patricia tries vs. hash for routing? Kristen Carlson
2003-09-20  6:37 ` David S. Miller
2003-10-28 13:29   ` bill davidsen
  -- strict thread matches above, loose matches on Subject: below --
2003-09-18 17:29 Kristen Carlson
2003-09-19  3:17 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).