词条 | Luleå algorithm |
释义 |
The Luleå algorithm of computer science, designed by {{harvtxt|Degermark|Brodnik|Carlsson|Pink|1997}}, is a technique for storing and searching internet routing tables efficiently. It is named after the Luleå University of Technology, the home institute of the technique's authors. The name of the algorithm does not appear in the original paper describing it, but was used in a message from Craig Partridge to the Internet Engineering Task Force describing that paper prior to its publication.[1] The key task to be performed in internet routing is to match a given IPv4 address (viewed as a sequence of 32 bits) to the longest prefix of the address for which routing information is available. This prefix matching problem may be solved by a trie, but trie structures use a significant amount of space (a node for each bit of each address) and searching them requires traversing a sequence of nodes with length proportional to the number of bits in the address. The Luleå algorithm shortcuts this process by storing only the nodes at three levels of the trie structure, rather than storing the entire trie. The main advantage of the Luleå algorithm for the routing task is that it uses very little memory, averaging 4–5 bytes per entry for large routing tables. This small memory footprint often allows the entire data structure to fit into the routing processor's cache, speeding operations. However, it has the disadvantage that it cannot be modified easily: small changes to the routing table may require most or all of the data structure to be reconstructed. The Luleå algorithm is patented in the United States ({{harvnb|Degermark|Brodnik|Carlsson|Pink|2001}}). First levelThe first level of the data structure consists of
To look up the datum for a given address x in the first level of the data structure, the Luleå algorithm computes three values:
The sum of these three values provides the index to use for x in the array of items. Second and third levelsThe second and third levels of the data structure are structured similarly to each other; in each of these levels the Luleå algorithm must perform prefix matching on 8-bit quantities (bits 17–24 and 25–32 of the address, respectively). The data structure is structured in "chunks", each of which allows performing this prefix matching task on some subsequence of the address space; the data items from the first level data structure point to these chunks. If there are few enough different pieces of routing information associated with a chunk, the chunk just stores the list of these routes, and searches through them by a single step of binary search followed by a sequential search. Otherwise, an indexing technique analogous to that of the first level is applied. Notes1. ^"second Europe trip for IETFers...", Craig Partridge to IETF, May 1, 1997. References
| first1 = Mikael | last1 = Degermark | first2 = Andrej | last2 = Brodnik | first3 = Svante | last3 = Carlsson | first4 = Stephen | last4 = Pink | contribution = Small forwarding tables for fast routing lookups | title = Proceedings of the ACM SIGCOMM '97 conference on Applications, Technologies, Architectures, and Protocols for Computer Communication | pages = 3–14 | year = 1997 | doi = 10.1145/263105.263133}}.
| inventor1-first = Mikael | inventor1-last = Degermark | inventor2-first = Andrej | inventor2-last = Brodnik | inventor3-first = Svante | inventor3-last = Carlsson | inventor4-first = Stephen | inventor4-last = Pink | title = Fast routing lookup system using complete prefix tree, bit vector, and pointers in a routing table for determining where to route IP datagrams | issue-date = 2001 | patent-number = 6266706 | country-code = US}}.
| first1 = Deepankar | last1 = Medhi | first2 = Karthikeyan | last2 = Ramasamy | title = Network Routing: Algorithms, Protocols, and Architectures | publisher = Elsevier | year = 2007 | isbn = 0-12-088588-3 | pages = 510–513}}.{{DEFAULTSORT:Lulea Algorithm}} 4 : Internet architecture|Routing software|Networking algorithms|Routing algorithms |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。