Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4604258
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:16:10+00:00 2026-05-22T00:16:10+00:00

How does a router organize its routing table in order to service the incomming

  • 0

How does a router organize its routing table in order to service the incomming packets fast? This is more of a programming question, and I am looking for:

  • algorithm and data structure to store the routing table entries for fast look up (hash? trie?)
  • optimization of the algorithm (e.g. using caches )
  • bonus: historical evolution of these algorithms (based on the fact that memory got cheaper etc.)

Note: the actual creation of the routing table (via routing protocols such as RIP, OSPF or manual entries) is irrelevant.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:16:10+00:00Added an answer on May 22, 2026 at 12:16 am

    You can have a trie and cache the lookups on a hash. See for example Linux’s ip_route_input() (which tries to find the entry on a hash) and ip_route_input_slow() (which tries to find the entry in the Forwarding Information Base, a trie).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does in Backbone.Router exists the events both before and after performing routing? My app
Does anyone know what's wrong with this code? Cipher cipher = Cipher.getInstance(AES/ECB128/PKCS5Padding, SunJCE); Algorithm:
Does a class have to allocate memory for its non-static member functions every time
Can ip packets be lost between two hosts on the same subnet, or does
I have a router that does the site navigation nicely and also works when
We are using the Zend Router and it seems that its overwriting the parameters
I have a question which asks the following: Suppose a router has the following
The question is about the router's setDispatched() method of Zend Framework... I have a
I have a constructor function, for example webapp.core.cf1 or Backbone.Router. But I get this
How does a router know which is the best line on which to send

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.