Networking Forums

Networking Forums > Computer Networking > Linux Networking > IP address lookup table

Reply
Thread Tools Display Modes

IP address lookup table

 
 
seossenk
Guest
Posts: n/a

 
      11-29-2005, 02:37 PM
I need to implement a software lookup table for a specialized router
and I am wondering what the best approach is? Should I utilize a hash
table, or a binary search tree, or are there other solutions that would
be better? One thing to note is that the routes are static and can not
change therefore updates to the routing table will not happen
dynamically.

 
Reply With Quote
 
 
 
 
Jacob Bunk Nielsen
Guest
Posts: n/a

 
      12-05-2005, 07:27 AM
"seossenk" <(E-Mail Removed)> writes:

> I need to implement a software lookup table for a specialized router
> and I am wondering what the best approach is? Should I utilize a hash
> table, or a binary search tree, or are there other solutions that would
> be better? One thing to note is that the routes are static and can not
> change therefore updates to the routing table will not happen
> dynamically.


If you Google for something like "IP address lookup algorithm" you'll
get lots of good hits. But most of them will probably mention
algorithms used for tables that are also easy to update.

What the optimal solution is depends on a lot of things, including how
much memory you have available. Also remember to use longest prefix
matching, which might complicate things a little bit.

--
Jacob
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting outbound URL requests to LAN address before DNS lookup??? Shannon Network Routers 3 01-12-2008 02:54 AM
strange DNS lookup Jacob Kristensen Linux Networking 4 02-02-2006 11:19 PM
MAC address does not show up on the telco's ARP table caches dennishartman Linux Networking 1 10-04-2005 08:33 PM
"Could Not Lookup IP Address" and Other Startup Mysteries W. Watson Linux Networking 1 12-10-2004 07:35 AM
Address table conflicts Tony Birnseth Windows Networking 5 08-23-2004 02:08 PM



1 2 3 4 5 6 7 8 9 10 11