Longest prefix match

Longest prefix match

Longest prefix match (also called Maximum prefix length match) refers to an algorithm used by routers in Internet Protocol (IP) networking to select an entry from a routing table.

Because each entry in a routing table may specify a network, one destination address may match more than one routing table entry. The most specific table entry — the one with the highest subnet mask — is called the longest prefix match. It is called this because it is also the entry where the largest number of leading address bits in the table entry match those of the destination address.

For example, consider this IPv4 routing table (CIDR notation is used):

192.168.20.16/28 192.168.0.0/16

When the address 192.168.20.19 needs to be looked up, both entries in the routing table "match". That is, both entries contain the looked up address. In this case, the longest prefix of the candidate routes is 192.168.20.16/28, since its subnet mask (/28) is higher than the other entry's mask (/16), making the route more specific.

Routing tables often contain a default route, which has the shortest possible prefix match, to fall back on, in case matches with all other entries fail.

ee also

Network Search Engine: hardware accelerator used in routers for LPM lookups.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Longest common subsequence problem — Not to be confused with longest common substring problem. The longest common subsequence (LCS) problem is to find the longest subsequence common to all sequences in a set of sequences (often just two). Note that subsequence is different from a… …   Wikipedia

  • Edge Label Switch Router — MPLS im TCP/IP Protokollstapel  Anwendung  HTTP BGP LDP  Transport  TCP UDP  Internet  …   Deutsch Wikipedia

  • MPLS — im TCP/IP Protokollstapel  Anwendung  HTTP BGP LDP  Transport  TCP UDP  Internet  …   Deutsch Wikipedia

  • Multi-Protocol Label Switching — MPLS im TCP/IP Protokollstapel  Anwendung  HTTP BGP LDP  Transport  TCP UDP  Internet  …   Deutsch Wikipedia

  • Multiprotocol Label Switching — MPLS im TCP/IP Protokollstapel  Anwendung  HTTP BGP LDP  Transport  TCP UDP  Internet   IP  …   Deutsch Wikipedia

  • Knowledge-based processor — Knowledge based processors are used for processing packets in computer networks. Knowledge based processors are essential for the long term success of the IPv6 [http://www.ipv6.org/ network] . The buildout of the IPv6 network is inevitable as it… …   Wikipedia

  • Multiprotocol Label Switching — MPLS redirects here. For other uses, see Mpls. MPLS Layer Multiprotocol Label Switching (MPLS) is a mechanism in high performance telecommunications networks that directs data from one network node to the next based on short path labels rather… …   Wikipedia

  • LPM — may refer to:* Litre per minute: a volumetric flow rate.* Longest prefix match: a technique used by routers to search subsequent portion of a path to be followed by data packets traveling on Internet from a list of known paths. See router for… …   Wikipedia

  • Routingtabelle — Eine Routingtabelle (auch Routing Information Base) ist eine elektronische Tabelle oder Datenbank in einem Netzwerkgerät, typischerweise einem Computer oder einem Router. Mit Hilfe dieser Einträge kann das Netzwerkgerät entscheiden, über welche… …   Deutsch Wikipedia

  • Luleå algorithm — The Luleå algorithm, designed by harvtxt|Degermark|Brodnik|Carlsson|Pink|1997, is a patented technique for storing and searching internet routing tables efficiently. It is named after the Luleå University of Technology, the home institute of the… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”