JP2000332786A - Method for retrieval from routing table - Google Patents

Method for retrieval from routing table

Info

Publication number
JP2000332786A
JP2000332786A JP14090899A JP14090899A JP2000332786A JP 2000332786 A JP2000332786 A JP 2000332786A JP 14090899 A JP14090899 A JP 14090899A JP 14090899 A JP14090899 A JP 14090899A JP 2000332786 A JP2000332786 A JP 2000332786A
Authority
JP
Japan
Prior art keywords
routing table
address
bits
node
difference information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP14090899A
Other languages
Japanese (ja)
Inventor
Masanori Uga
雅則 宇賀
Kohei Shiomoto
公平 塩本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP14090899A priority Critical patent/JP2000332786A/en
Publication of JP2000332786A publication Critical patent/JP2000332786A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To decrease the number of bits needed for one entry of the routing table by storing information on the difference between the IP address of a master node and the IP address of a slave node in a Patricia tree in the routing table and retrieving routing information on the destination IP address that an IP packet has. SOLUTION: A deformed tree is constituted, by converting an 8-bit length Patricia tree into 4-bit length difference information. In the routing table corresponding to the deformed tree, the difference 01** between an entry B and an entry A as its parent node is stored as difference information of a table of, for example, the entry B and the number 2 of effective bits of the difference is stored. Furthermore, the difference 11111111 between the entries A and E cannot be represented with four bits, so that a repeating node F is inserted between the entries A and E. Consequently, the deformed tree obtained by converting the Patricia tree and the routing table can be generated to reduce the memory quantity.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はIP通信網のノード
がルーティングを行う際のルーティングテーブルの検索
方法に関するものであり、特に経済的な検索方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for searching a routing table when a node in an IP communication network performs routing, and more particularly to an economical search method.

【0002】[0002]

【従来の技術】IP通信網のノードには、それぞれIP
アドレスそのもの及びそのノードのIPアドレスのプリ
フィクスの長さが定められている。図1は従来の例を示
す図であり、図1(a)はパトリシアツリーの例を、図
1(b)は図1(a)のパトリシアツリーに対応する従
来のルーティングテーブルの例を示す。この例では、I
Pアドレスのビット長N=8であり、エントリーX(X
=A,B,...)はノードを一意的に区別する名前であ
り、*はIPアドレスのうちプリフィクスに属さない部
分を表すもので、それらの値は0又は1である。
2. Description of the Related Art Each node of an IP communication network has an IP address.
The length of the address itself and the prefix of the IP address of the node are defined. FIG. 1 is a diagram showing a conventional example. FIG. 1A shows an example of a Patricia tree, and FIG. 1B shows an example of a conventional routing table corresponding to the Patricia tree of FIG. In this example, I
The bit length of the P address N = 8, and the entry X (X
= A, B,...) Are names for uniquely distinguishing nodes, and * represents a portion of an IP address that does not belong to a prefix, and their values are 0 or 1.

【0003】パトリシアツリーを用いるルーティングテ
ーブル検索方法は以下のとおりである。或るノード(例
えば図のエントリーAのノード)が示すIPアドレスと
宛先アドレスとの上位プリフィクスの長さに相当するビ
ット(ここでは2)を比較する。一致しない場合は、直
前に一致したノードに対応するテーブルが持つネクスト
ホップ等の情報を求める情報として検索を終了し、一致
した場合は、そのノード(エントリーAのノード)に対
応するテーブルが持つネクストホップ等の情報を読込ん
で記録する。
A routing table search method using a Patricia tree is as follows. A bit (here, 2) corresponding to the length of the upper prefix between the IP address indicated by a certain node (for example, the node of the entry A in the figure) and the destination address is compared. If they do not match, the search ends as information for obtaining information such as the next hop of the table corresponding to the immediately preceding node, and if they do match, the next that the table corresponding to that node (the node of entry A) has Read and record information such as hops.

【0004】次に、宛先IPアドレスの上位プリフィク
スの長さ+1番目のビット(ここでは3番目のビット)
を参照し、その値によって、子ノードが存在する場合は
その子ノード(図ではエントリーB又はエントリーE)
へ移って検索を続け、子ノードが存在しない場合は検索
を終了し、記録したネクストホップ等の情報を求める情
報とする。
Next, the length of the upper prefix of the destination IP address plus the first bit (here, the third bit)
, And if there is a child node according to the value, the child node (entry B or entry E in the figure)
The search is continued by moving to, and if there is no child node, the search is terminated and the information such as the recorded next hop or the like is obtained.

【0005】従来のルーティングテーブルは、図1
(b)に示すように、1エントリーについて、パトリシ
アツリー上のノードのIPアドレスそのもの、そのノー
ドのIPアドレスのプリフィクスの長さを示す情報及び
その他の情報(例えば、次エントリーへのインデック
ス、ネクストホップ等)を格納していた。このような従
来のルーティングテーブルにおいては、1エントリーに
ついて、IPアドレスを表すNビット(例えばIPv4
では32ビット、IPv6では128 ビット)、プリフィク
スの長さを表すlog2Nビット及びネクストホップ等の情
報を表すRビットを必要としていた。IPv6では128
ビットであるため、従来のルーティングテーブルを作成
すると、これをメモリーに格納する場合、1エントリー
当たり135+Rビットが必要であり、全体としては多大な
メモリー量を要するという問題があった。
A conventional routing table is shown in FIG.
As shown in (b), for one entry, the IP address of the node on the Patricia tree itself, information indicating the prefix length of the IP address of the node, and other information (for example, an index to the next entry, next hop, etc.) Etc.). In such a conventional routing table, N bits representing an IP address (for example, IPv4
32 bits, 128 bits for IPv6), log 2 N bits indicating the length of the prefix, and R bits indicating information such as the next hop. 128 for IPv6
If the conventional routing table is created because it is a bit, when it is stored in a memory, 135 + R bits are required for each entry, and there is a problem that a large amount of memory is required as a whole.

【0006】[0006]

【発明が解決しようとする課題】本発明の目的は、上述
のような問題点に鑑み、ルーティングテーブルの1エン
トリー当たりに必要なビット数を減らし、経済的なルー
ティングテーブル検索方法を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an economical routing table search method which reduces the number of bits required for each entry in a routing table in view of the above-mentioned problems. is there.

【0007】[0007]

【課題を解決するための手段】本発明のルーティングテ
ーブル検索方法は、上記の目的を達成するため、ルーテ
ィングテーブルに、パトリシアツリー上の親ノードのI
Pアドレスとそれの子ノードのIPアドレスとの差分情
報を記憶し、この差分情報に基づいてIPパケットが持
つ宛先IPアドレスのルーティング情報を検索すること
を特徴とする。
According to the routing table search method of the present invention, in order to achieve the above-mentioned object, the routing table includes a parent node on the Patricia tree.
Difference information between a P address and an IP address of a child node thereof is stored, and routing information of a destination IP address of an IP packet is searched based on the difference information.

【0008】本発明のルーティングテーブル検索方法に
おいては、 前記差分情報が、IPパケットが持つ宛先
IPアドレスの上位jビットから上位j+kビットまで
である場合に、j及びkを記憶することが望ましい。ま
た、前記差分情報がIPアドレスのビット長より短いM
ビット以下のビット長である場合は差分情報を子ノード
のルーティングテーブルに記憶し、前記差分情報がMビ
ットを超える場合は親ノードと子ノードとの間にMビッ
ト毎に中継ノードを設け、差分情報をそれぞれの中継ノ
ードのルーティングテーブル及び子ノードのルーティン
グテーブルに記憶することが望ましい。
In the routing table search method of the present invention, it is preferable that j and k are stored when the difference information is from upper j bits to upper j + k bits of the destination IP address of the IP packet. Also, the difference information may be M shorter than the bit length of the IP address.
If the bit length is less than or equal to the bit, the difference information is stored in the routing table of the child node. If the difference information exceeds M bits, a relay node is provided between the parent node and the child node for each M bits. It is desirable to store the information in the routing tables of each relay node and the child nodes.

【0009】このような本発明のルーティングテーブル
検索方法によれば、ルーティングテーブルは、IPアド
レスに代えて、パトリシアツリー上にある親ノードが持
つIPアドレスとその親ノードの子ノードが持つIPア
ドレスとの差分情報のみを記憶する。この差分情報とし
て、IPパケットが持つNビット長の宛先IPアドレス
の上位jビットから上位j+kビットまでを表す場合に
は、テーブルに、jについてlog2Nビット、kについて
log2Mビットのスペースを設けて、j及びkを記憶す
る。この場合、jはレジスタに格納してもよい。
According to the routing table search method of the present invention, instead of the IP address, the routing table contains the IP address of the parent node on the Patricia tree and the IP address of the child node of the parent node. Only the difference information is stored. When the difference information indicates the upper j bits to the upper j + k bits of the N-bit destination IP address of the IP packet, log 2 N bits for j and k for k
A space of log 2 M bits is provided, and j and k are stored. In this case, j may be stored in a register.

【0010】この差分情報がルーティングテーブルに設
けられたスペースより大きい場合は、ルーティングテー
ブルの親ノードと子ノードとの間に中継ノードを追加す
る。この中継ノードは、差分情報の上位Mビットのみを
持つ。差分情報がMビット、2Mビット、..a個、..で
表すことができない場合は、中継ノードを2個、3
個、..a+1個、..というように、連続して追加する。
即ち、差分情報がMビットで表すことができない場合
は、親ノードと子ノードとの間の差分情報の上位Mビッ
トを第1の中継ノードに格納し、次に第1の中継ノード
と子ノードとの間の差分情報の上位Mビットを第2の中
継ノードに格納する。以下同様に中継ノードを追加する
ことにより、親ノードと子ノードとの間の差分情報を複
数の中継ノード及び子ノードに格納する。
When the difference information is larger than the space provided in the routing table, a relay node is added between the parent node and the child node of the routing table. This relay node has only the upper M bits of the difference information. If the difference information cannot be represented by M bits, 2 M bits,... A,.
, .. a + 1,...
That is, if the difference information cannot be represented by M bits, the upper M bits of the difference information between the parent node and the child node are stored in the first relay node, and then the first relay node and the child node Are stored in the second relay node. Hereinafter, similarly, by adding a relay node, difference information between a parent node and a child node is stored in a plurality of relay nodes and child nodes.

【0011】ルーティングテーブルを用いてIPパケッ
トが持つ宛先IPアドレスを検索する方法は、パトリシ
アツリーを変形したツリーを利用して最長一致プリフィ
クスを検索し、パトリシアツリーの親ノードから子ノー
ドへ移る際に、ルーティングテーブルが持つ子ノードと
親ノードとの差分情報、及びその差分情報がIPアドレ
スの上位jビットから上位j+kビットまでであること
を表すレジスタ及びルーティングテーブル情報を読出
し、宛先IPアドレスの上位jビットから上位j+kビ
ットまでを差分情報と照合する。
A method for searching for a destination IP address of an IP packet using a routing table is to search for a longest matching prefix using a tree obtained by transforming a Patricia tree, and to perform a search when moving from a parent node to a child node of the Patricia tree. , The difference information between the child node and the parent node in the routing table, and the register and the routing table information indicating that the difference information is from the upper j bits to the upper j + k bits of the IP address, and reads the upper j of the destination IP address. The bits up to j + k bits are compared with the difference information.

【0012】これにより、1エントリーについてテーブ
ルが持つべき情報は、差分情報を表すMビット、差分情
報がIPアドレスの上位何ビット目から何ビット目まで
かを表すためのlog2N+log2Mビット、及び他の情報R
ビットだけであり、ルーティングテーブルの幅を著しく
削減することができる。
Thus, the information that the table should have for one entry is M bits representing difference information, log 2 N + log 2 M bits for representing the uppermost bit to the uppermost bit of the IP address, And other information R
With only bits, the width of the routing table can be significantly reduced.

【0013】[0013]

【発明の実施の形態】次に本発明の実施例を説明する。
図2は本発明の検索方法による変形ツリーを示す図であ
り、図3は図2の変形ツリーに対応するルーティングテ
ーブルの例を示す図である。図2は、詳しくは、図1
(a)に示したビット長N=8のパトリシアツリーを、
本発明により4ビット長の差分情報に変換した変形ツリ
ーを示している。
Next, embodiments of the present invention will be described.
FIG. 2 is a diagram showing a modified tree according to the search method of the present invention, and FIG. 3 is a diagram showing an example of a routing table corresponding to the modified tree in FIG. FIG. 2 shows in detail FIG.
The Patricia tree having a bit length N = 8 shown in FIG.
7 shows a modified tree converted into 4-bit length difference information according to the present invention.

【0014】子ノードにはその子ノードと親ノードとの
差分情報を格納するので、例えばエントリーBのテーブ
ルの差分情報にはエントリーBとその親ノードであるエ
ントリーAとの差分、即ち01**を記憶し、差分の有
効ビット数は2を記憶する。また、エントリーAとエン
トリーEとの差分は111111であり、この例のルー
ティングテーブルに設けられた差分情報を記憶するため
のスペースである4ビットではこの差分情報を表せない
ため、エントリーAとエントリーEとの間に中継ノード
Fを挿入する。中継ノードFはエントリーAとエントリ
ーEとの差分情報のうちルーティングテーブルに設けら
れた差分情報を記憶するためのスペースである4ビット
分の1111のみを差分情報として記憶し、その有効ビ
ット数4を記憶する。更に、中継ノードFとエントリー
Eとの差分は11**であり、その差分情報は、ルーテ
ィングテーブルに設けられた差分情報を記憶するための
スペースである4ビットで表現できるので、ルーティン
グテーブルのエントリーEの差分情報には11**を記
憶し、有効ビット数2を記憶する。以下同様の処理を行
うことにより、パトリシアツリーから変換した変形ツリ
ー及びルーティングテーブルを作成することができる。
Since the difference information between the child node and the parent node is stored in the child node, for example, the difference information between the entry B and the parent node, ie, entry A, is 01 ** in the difference information of the entry B table. The number of effective bits of the difference is stored as 2. The difference between the entry A and the entry E is 111111, and the 4-bit space provided in the routing table of this example for storing the difference information cannot represent the difference information. Is inserted between the relay nodes F. The relay node F stores, as difference information, only 4111 bits, which is a space for storing difference information provided in the routing table, among the difference information between the entry A and the entry E, and sets the number of effective bits 4 Remember. Further, the difference between the relay node F and the entry E is 11 **, and the difference information can be expressed by 4 bits which is a space for storing the difference information provided in the routing table. 11 ** is stored as the difference information of E, and the effective bit number 2 is stored. Thereafter, by performing the same processing, a transformed tree and a routing table converted from the Patricia tree can be created.

【0015】図3のルーティングテーブルの他情報の各
項は以下の意味を有する。0Eは、検索ビットが0であ
る子ノードの存在の有無を示す値であり、例えば、存在
する場合は1、存在しない場合は0の値を持つ。0アド
レスは、検索ビットが0である子ノードが存在する場合
にその子ノードのエントリーが存在するアドレスを示
す。この項が必要とするビット数はテーブルのエントリ
ーの数によって決まる。1Eは、検索ビットが1である
子ノードの存在の有無を示す値であり、例えば、存在す
る場合は1、存在しない場合は0の値を持つ。1アドレ
スは、検索ビットが1である子ノードが存在する場合に
その子ノードのエントリーが存在するアドレスを示す。
この項が必要とするビット数はテーブルのエントリーの
数によって決まる。ここで、検索ビットとは、そのノー
ドに到着したIPパケットの宛先IPアドレスのうち、
そのノードで参照した最後のビットの次のビットを意味
し、これにより子ノードへの分岐が決まる。
Each item of the other information in the routing table of FIG. 3 has the following meaning. 0E is a value indicating the presence / absence of a child node whose search bit is 0. For example, it has a value of 1 if it exists and a value of 0 if it does not exist. The 0 address indicates the address where the entry of the child node exists when the child node whose search bit is 0 exists. The number of bits required by this term depends on the number of entries in the table. 1E is a value indicating the presence or absence of a child node whose search bit is 1, and has, for example, a value of 1 if it exists and a value of 0 if it does not exist. 1 address indicates the address where the entry of the child node exists when the child node whose search bit is 1 exists.
The number of bits required by this term depends on the number of entries in the table. Here, the search bit is the destination IP address of the IP packet arriving at the node.
It means the bit next to the last bit referenced by that node, which determines the branch to the child node.

【0016】図4は図2及び3に示したルーティングテ
ーブルの例を用いる本発明のルーティングテーブル検索
方法の実施例を示す図である。jは宛先IPアドレスの
上位jビット目を表し、テーブルの差分情報と比較する
宛先IPアドレスの最初のビット位置を示す。先ず初期
化として、j=1とし、ルーティングテーブルのアドレ
スを示すAにツリーのルートエントリーのアドレスを代
入し、ネクストホップ等を示すNHに既定のルートを代
入する(ステップ1)。
FIG. 4 is a diagram showing an embodiment of the routing table search method of the present invention using the example of the routing table shown in FIGS. j represents the upper j-th bit of the destination IP address, and indicates the first bit position of the destination IP address to be compared with the difference information in the table. First, as initialization, j = 1, the address of the root entry of the tree is substituted for A indicating the address of the routing table, and the predetermined route is substituted for NH indicating the next hop or the like (step 1).

【0017】次に、テーブルのアドレスAの中身を読込
み、差分情報、有効ビット数、0Eの値、0アドレスの
値、1Eの値及び1アドレスの値を、変数sabun 、yuuk
ou、0en 、1en 、0ad 及び1ad に代入する(ステップ
2)。次に、宛先IPアドレスの上位jビット目から上
位j+yuukouビット目までとsabun とを比較する(ステ
ップ3)。この比較の結果一致しない場合は検索を終了
し、NHに格納されている情報をこの検索によって取得
した情報とする(ステップ4)。ステップ3の比較の結
果一致する場合はアドレスAのネクストホップ情報をN
Hに代入し、jにj+yuukou+1を代入し(ステップ
5)、宛先IPアドレスの上位jビット目を読出して0
か1かを調べ(ステップ6)、その値に該当する0en 又
は1en によって子ノードの存在を確認する(ステップ7
又は8)。子ノードが存在する場合はA=0ad 又はA=
1ad として子ノードへ行く(ステップ9又は10)。以下
ステップ2へ戻って同様に検索を行う。ステップ7又は
8で子ノードが存在しない場合は検索を終了し、NHに
格納されている情報をこの検索によって取得した情報と
する(ステップ4)。
Next, the contents of address A of the table are read, and the difference information, the number of effective bits, the value of 0E, the value of 0 address, the value of 1E and the value of 1 address are stored in variables sabun, yuuk.
Substitute ou, 0en, 1en, 0ad and 1ad (step 2). Next, sabun is compared with the upper jth bit to the upper j + yuukou bit of the destination IP address (step 3). If the result of this comparison is that they do not match, the search is terminated and the information stored in the NH is taken as the information obtained by this search (step 4). If the result of the comparison in step 3 is a match, the next hop information of address A is set to N
Substitute H into j, substitute j + yuukou + 1 into j (step 5), read the upper jth bit of the destination IP address,
Is checked (step 6), and the existence of the child node is confirmed by 0en or 1en corresponding to the value (step 7).
Or 8). If child node exists, A = 0ad or A =
Go to the child node as 1ad (step 9 or 10). Thereafter, the flow returns to step 2 to perform the same search. If there is no child node in step 7 or 8, the search is terminated, and the information stored in the NH is set as information obtained by this search (step 4).

【0018】上記の実施例においてはjをルーティング
テーブルに記憶しない方法を示したが、jをルーティン
グテーブル中に記憶し、他のノードに移った時にテーブ
ルからjを読込み、宛先IPアドレスの上位jビット目
から上位j+kビット目と差分情報とを比較するように
してもよい。
In the above embodiment, the method of not storing j in the routing table has been described. However, j is stored in the routing table, j is read from the table when moving to another node, and the upper j of the destination IP address is read. The difference information may be compared with the j + kth bits from the bit number.

【0019】また、ノードから子ノードへ移る場合に宛
先IPアドレスのjビット目を調べて移るので、必ずし
も差分情報として上位jビット目を持つ必要はない。そ
のため、差分情報として子ノードが示すIPアドレスの
上位j+1ビット目を最初のビットとして持つようにし
てもよい。例えば、図5に示すように、ノードUは差分
情報として01**/2を持ち、ノードUと親ノードと
の差分は参照ビット0を加えた001*/3とする。
Further, when moving from a node to a child node, the j-th bit of the destination IP address is checked and the transfer is performed, so that it is not always necessary to have the upper j-th bit as the difference information. Therefore, the uppermost (j + 1) th bit of the IP address indicated by the child node may be provided as the first bit as the difference information. For example, as shown in FIG. 5, the node U has 01 ** / 2 as difference information, and the difference between the node U and the parent node is 001 * / 3 obtained by adding the reference bit 0.

【0020】[0020]

【発明の効果】上述のように、本発明のルーティングテ
ーブル検索方法によれば、ルーティングテーブルの1エ
ントリーに必要なビット数は、従来の方法では、IPア
ドレスのビット長N及びその他情報のビット長Rを用い
て、N+log2N+Rと表されるが、これに対して本発明
の方法では、IPアドレスのビット長Nより短い差分情
報のビット長Mを用いて、N+log2N+Rとなる。例え
ば、IPv6ではルーティングテーブルのエントリー数
が32,000、ネクストホップ等の情報が15ビットであるル
ーティングテーブルは、1エントリー当たり、従来の方
法では182ビット必要であったが、本発明の方法では
58ビットで済む。16ビット幅を持つメモリーを用い
る場合、1エントリー当たり、従来の方法では12個必
要であったのに対して、本発明の方法では4個で済むこ
とになり、本発明によりメモリー量を1/3に減らすこ
とができる。
As described above, according to the routing table search method of the present invention, the number of bits required for one entry of the routing table is determined by the bit length N of the IP address and the bit length of other information in the conventional method. R is used to represent N + log 2 N + R. In contrast, in the method of the present invention, N + log 2 N + R is obtained using the bit length M of the difference information shorter than the bit length N of the IP address. For example, a routing table in which the number of entries in the routing table is 32,000 in IPv6 and the information such as the next hop is 15 bits requires 182 bits per entry in the conventional method, but 58 bits in the method of the present invention per entry. I'm done. In the case of using a memory having a 16-bit width, the conventional method requires 12 per entry, whereas the method of the present invention requires only 4 per entry. 3 can be reduced.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 従来のパトリシアツリー及びルーティングテ
ーブルの例を示す図である。
FIG. 1 is a diagram showing an example of a conventional Patricia tree and a routing table.

【図2】 本発明の検索方法による変形ツリーの例を示
す図である。
FIG. 2 is a diagram showing an example of a deformation tree according to the search method of the present invention.

【図3】 図2の変形ツリーに対応するルーティングテ
ーブルの例を示す図である。
FIG. 3 is a diagram illustrating an example of a routing table corresponding to the modified tree in FIG. 2;

【図4】 図2及び3に示したルーティングテーブルの
例を用いる本発明のルーティングテーブル検索方法の実
施例を示す図である。
FIG. 4 is a diagram showing an embodiment of a routing table search method according to the present invention using the example of the routing table shown in FIGS. 2 and 3;

【図5】 本発明の検索方法による変形ツリーの他の例
を示す図である。
FIG. 5 is a diagram showing another example of a deformation tree according to the search method of the present invention.

【符号の説明】[Explanation of symbols]

A、B、C、D、E、F IPアドレス 0E 検索ビットが0である子ノードの存在の有無を示
す値 1E 検索ビットが1である子ノードの存在の有無を示
す値
A, B, C, D, E, F IP address 0E Value indicating presence / absence of child node whose search bit is 0 1E Value indicating presence / absence of child node whose search bit is 1

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 IPパケットが持つ宛先IPアドレスか
らルーティング情報を検索するために用いるルーティン
グテーブルを検索する方法において、ルーティングテー
ブルに、パトリシアツリー上の親ノードのIPアドレス
とそれの子ノードのIPアドレスとの差分情報を記憶
し、この差分情報に基づいてIPパケットが持つ宛先I
Pアドレスのルーティング情報を検索することを特徴と
するルーティングテーブル検索方法。
1. A method for searching a routing table used for searching routing information from a destination IP address of an IP packet, wherein the routing table includes an IP address of a parent node on a Patricia tree and an IP address of a child node thereof. Is stored, and based on the difference information, the destination I
A routing table search method characterized by searching for routing information of a P address.
【請求項2】 前記差分情報が、IPパケットが持つ宛
先IPアドレスの上位jビットから上位j+kビットま
でである場合に、j及びkを記憶することを特徴とする
請求項1に記載のルーティングテーブル検索方法。
2. The routing table according to claim 1, wherein if the difference information is from upper j bits to upper j + k bits of the destination IP address of the IP packet, j and k are stored. retrieval method.
【請求項3】 前記差分情報がIPアドレスのビット長
より短いMビット以下のビット長である場合は差分情報
を子ノードのルーティングテーブルに記憶し、前記差分
情報がMビットを超える場合は親ノードと子ノードとの
間にMビット毎に中継ノードを設け、差分情報をそれぞ
れの中継ノードのルーティングテーブル及び子ノードの
ルーティングテーブルに記憶することを特徴とする請求
項1に記載のルーティングテーブル検索方法。
3. If the difference information has a bit length of M bits or less, which is shorter than the bit length of the IP address, the difference information is stored in a routing table of a child node, and if the difference information exceeds M bits, the parent node 2. A routing table search method according to claim 1, wherein a relay node is provided for each M bits between the relay node and the child node, and difference information is stored in a routing table of each relay node and a routing table of the child node. .
JP14090899A 1999-05-21 1999-05-21 Method for retrieval from routing table Pending JP2000332786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14090899A JP2000332786A (en) 1999-05-21 1999-05-21 Method for retrieval from routing table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14090899A JP2000332786A (en) 1999-05-21 1999-05-21 Method for retrieval from routing table

Publications (1)

Publication Number Publication Date
JP2000332786A true JP2000332786A (en) 2000-11-30

Family

ID=15279621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14090899A Pending JP2000332786A (en) 1999-05-21 1999-05-21 Method for retrieval from routing table

Country Status (1)

Country Link
JP (1) JP2000332786A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003224581A (en) * 2002-01-31 2003-08-08 Nippon Telegr & Teleph Corp <Ntt> Longest match retrieval circuit, its method, its program, and recording medium
JP2003234762A (en) * 2002-02-07 2003-08-22 Nippon Telegr & Teleph Corp <Ntt> Device, method and program for table retrieving, and recording medium
US6925503B2 (en) * 2001-07-27 2005-08-02 International Business Machines Corporation Method and system for performing a longest prefix match search
JP2009049944A (en) * 2007-08-23 2009-03-05 Auto Network Gijutsu Kenkyusho:Kk Trunk connecting unit
CN112235401A (en) * 2020-10-14 2021-01-15 北京理工大学 Routing table information searching method and system based on chord algorithm

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10162013A (en) * 1996-11-28 1998-06-19 Nippon Telegr & Teleph Corp <Ntt> Digital searching device
JPH10257066A (en) * 1997-03-13 1998-09-25 Mitsubishi Electric Corp Network address retrieval system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10162013A (en) * 1996-11-28 1998-06-19 Nippon Telegr & Teleph Corp <Ntt> Digital searching device
JPH10257066A (en) * 1997-03-13 1998-09-25 Mitsubishi Electric Corp Network address retrieval system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6925503B2 (en) * 2001-07-27 2005-08-02 International Business Machines Corporation Method and system for performing a longest prefix match search
JP2003224581A (en) * 2002-01-31 2003-08-08 Nippon Telegr & Teleph Corp <Ntt> Longest match retrieval circuit, its method, its program, and recording medium
JP2003234762A (en) * 2002-02-07 2003-08-22 Nippon Telegr & Teleph Corp <Ntt> Device, method and program for table retrieving, and recording medium
JP2009049944A (en) * 2007-08-23 2009-03-05 Auto Network Gijutsu Kenkyusho:Kk Trunk connecting unit
CN112235401A (en) * 2020-10-14 2021-01-15 北京理工大学 Routing table information searching method and system based on chord algorithm
CN112235401B (en) * 2020-10-14 2021-09-24 北京理工大学 Routing table information searching method and system based on chord algorithm

Similar Documents

Publication Publication Date Title
EP1358739B1 (en) Method and apparatus for routing table management
US9672234B2 (en) Database and database processing methods
US20050171959A1 (en) Efficient ipv4/ipv6 best matching prefix method and apparatus
US6728732B1 (en) Data structure using a tree bitmap and method for rapid classification of data in a database
US20020147721A1 (en) Compact data structures for pipelined message forwarding lookups
US6792423B1 (en) Hybrid longest prefix match and fixed match searches
US7415463B2 (en) Programming tree data structures and handling collisions while performing lookup operations
US8018944B1 (en) Apparatus and method for efficient longest prefix match lookup
US6985483B2 (en) Methods and systems for fast packet forwarding
US7415472B2 (en) Comparison tree data structures of particular use in performing lookup operations
US6490592B1 (en) Method of and apparatus for generating a tree data structure supporting longest match lookup
US5983223A (en) Method and apparatus for determining a longest matching prefix from a dictionary of prefixes
CA2305475C (en) Forwarding information retrieval technique
KR100586461B1 (en) Method, Hardware Architecture and Recording Medium for Searching IP Address by Using Pipeline Binary Tree
JP2000115243A5 (en)
US20040044868A1 (en) Method and apparatus for high-speed longest prefix match of keys in a memory
JP2000332786A (en) Method for retrieval from routing table
JP3569802B2 (en) Routing table search device and search method
KR100378599B1 (en) Routing Table Lookup Using Indirected RAM Indexing
JP4048861B2 (en) Address search device
US7570644B2 (en) Routing method for a telecommunications network and router for implementing said method
JP3795881B2 (en) Table search method and apparatus
JP3660311B2 (en) Table search apparatus and method, program, and recording medium
US20030041169A1 (en) Method for forming a database to route a data packet and method for routing and a router using the method thereof
KR100560420B1 (en) Internet protocol address lookup method using a trie

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20031216