JP3795881B2 - テーブル検索方法および装置 - Google Patents
テーブル検索方法および装置 Download PDFInfo
- Publication number
- JP3795881B2 JP3795881B2 JP2003346521A JP2003346521A JP3795881B2 JP 3795881 B2 JP3795881 B2 JP 3795881B2 JP 2003346521 A JP2003346521 A JP 2003346521A JP 2003346521 A JP2003346521 A JP 2003346521A JP 3795881 B2 JP3795881 B2 JP 3795881B2
- Authority
- JP
- Japan
- Prior art keywords
- node
- stored
- search
- tree
- boundary value
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Description
1.2.3.20<1.2.3.26
なので次ノードとして左下のノードへ移る。このノードでも境界値と比較する。
1.2.3.20>1.2.3.0
なので、今度は右下のノードへ移る。ここでも同様に比較を行うと
1.2.3.20<1.2.3.25
であり、ここで検索を終了する。
1.2.3.0(NH=B)<1.2.3.20<1.2.3.25(NH=C)
となることがわかり、1.2.3.20の次ホップルータはBとなる。
1.2.3.0(NH=B)<X<1.2.3.25(NH=C)
の場合、Xの次ホップルータはCではなくBである。したがって、「以上」で前ノードから1.2.3.25(NH=C)のノードに到着した場合、1.2.3.25以外の値が宛先IPアドレスであれば前ノード(ここでは1.2.3.0(NH=B))に格納されている次ホップルータを表す値が解となる。
1.2.3.26(NH=B)<1.2.3.30<1.2.4.0(NH=A)
となることが分かり、パケットの宛先アドレス1.2.30の次ホップルータはBとなる。宛先アドレスが含まれる範囲を見つけるので、「未満」で前ノードから到着した場合には、1.2.4.0以外の値が宛先IPアドレスであれば、前々ノードに格納されている次ホップルータを表す値が解となる(例えば、非特許文献1参照)。
Information Base))]をとる(非特許文献2参照)。
2 内部メモリ
3 外部メモリ
Claims (4)
- アドレスの境界値がそれぞれ格納されたノードからなるツリーをルーティングテーブルとして用い、入力回線から入力されたパケットの宛先アドレスと各ノードに格納された境界値とを比較してツリーをたどることにより、そのパケットを転送すべき次ホップルータを検索するテーブル検索方法において、
ツリーのN+1段目(Nは正数)以降の各ノードに、前記宛先アドレスとの比較を行うための境界値に加え、そのノードに到着して検索が終了した場合にパケットを転送すべき次ホップルータを表す値として、そのノードに到着するまでの条件によって、そのノードの前段または前々段のノードの境界値に関連する値を格納しておき、
N+1段目以降のノードで検索が終了した時点で、前記宛先アドレスがそのノードに格納されているそのノードの境界値に等しい場合には、その境界値により表されるルータを、そうでない場合には、そのノードに格納されているそのノードの前段または前々段のノードの境界値に関連する値により表されるルータを次ホップルータとして決定する
ことを特徴とするテーブル検索方法。 - アドレスの境界値がそれぞれ格納されたノードからなるツリーがルーティングテーブルとして格納されたメモリ部と、
入力回線から入力されたパケットの宛先アドレスと各ノードに格納された境界値とを比較してツリーをたどって、そのパケットを転送すべき次ホップルータを検索する処理手段と
を備え、
前記メモリ部は、前記ツリーをその頂点に相当するノードから下流に向かってN段目(Nは正数)までの上段部分を格納する第一のメモリと、この第一のメモリより大きい容量で前記ツリーのN+1段目以降の下段部分を格納する第二のメモリとを含む
テーブル検索装置において、
前記第二のメモリには、各ノードに対して、前記宛先アドレスとの比較を行うための境界値に加え、そのノードに到着して検索が終了した場合にパケットを転送すべき次ホップルータを表す値として、そのノードに到着するまでの条件によって、そのノードの前段または前々段のノードの境界値に関連する値が格納され、
前記処理手段は、N+1段目以降のノードで検索が終了した時点で、前記宛先アドレスがそのノードに格納されているそのノードの境界値に等しい場合には、その境界値により表されるルータを、そうでない場合には、そのノードに格納されているそのノードの前段または前々段のノードの境界値に関連する値により表されるルータを次ホップルータとして決定する
ことを特徴とするテーブル検索装置。 - 情報処理装置にインストールすることにより、その情報処理装置に、請求項1記載のテーブル検索方法の各ステップを実行させることを特徴とするプログラム。
- 請求項3記載のプログラムが記録された前記情報処理装置読み取り可能な記録媒体。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003346521A JP3795881B2 (ja) | 2003-10-06 | 2003-10-06 | テーブル検索方法および装置 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003346521A JP3795881B2 (ja) | 2003-10-06 | 2003-10-06 | テーブル検索方法および装置 |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005117208A JP2005117208A (ja) | 2005-04-28 |
JP3795881B2 true JP3795881B2 (ja) | 2006-07-12 |
Family
ID=34539414
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003346521A Expired - Fee Related JP3795881B2 (ja) | 2003-10-06 | 2003-10-06 | テーブル検索方法および装置 |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3795881B2 (ja) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007028561A (ja) * | 2005-07-12 | 2007-02-01 | Skipper Wireless Kk | アクティブルーティングアンテナを提供するための方法及びシステム |
US9049157B1 (en) * | 2009-08-16 | 2015-06-02 | Compass Electro-Optical Systems Ltd | Method and device for improving scalability of longest prefix match |
JP5016657B2 (ja) * | 2009-11-12 | 2012-09-05 | 日本電信電話株式会社 | ネクストホップ検索装置、ネクストホップ検索方法およびプログラム |
JP5519257B2 (ja) * | 2009-12-10 | 2014-06-11 | Necエンジニアリング株式会社 | データ転送装置 |
-
2003
- 2003-10-06 JP JP2003346521A patent/JP3795881B2/ja not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2005117208A (ja) | 2005-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7286534B2 (en) | SRAM based cache for DRAM routing table lookups | |
Huang et al. | A novel IP-routing lookup scheme and hardware architecture for multigigabit switching routers | |
US7433871B2 (en) | Efficient ipv4/ipv6 best matching prefix method and apparatus | |
US6985483B2 (en) | Methods and systems for fast packet forwarding | |
US6633548B2 (en) | Method and apparatus for ternary content addressable memory (TCAM) table management | |
US6778984B1 (en) | Flexible and high-performance packet classification algorithm | |
US7260096B2 (en) | Method and router for forwarding internet data packets | |
US20040255045A1 (en) | IP address lookup method and hardware architecture using hashing | |
Bando et al. | FlashTrie: beyond 100-Gb/s IP route lookup using hash-based prefix-compressed trie | |
US8848707B2 (en) | Method for IP longest prefix match using prefix length sorting | |
US6804230B1 (en) | Communication device with forwarding database having a trie search facility | |
US7624226B1 (en) | Network search engine (NSE) and method for performing interval location using prefix matching | |
JP3795881B2 (ja) | テーブル検索方法および装置 | |
JP3569802B2 (ja) | ルーティングテーブル検索装置および検索法 | |
Lim et al. | Binary searches on multiple small trees for IP address lookup | |
Lim et al. | NXG06-1: An efficient IP address lookup algorithm using a priority trie | |
EP1657859B1 (en) | Protocol speed increasing device | |
US7570644B2 (en) | Routing method for a telecommunications network and router for implementing said method | |
JP3660311B2 (ja) | テーブル検索装置および方法およびプログラムおよび記録媒体 | |
JP2005051650A (ja) | テーブル検索装置 | |
EP3319279B1 (en) | Ip routing lookup | |
Erdem et al. | Value-coded trie structure for high-performance IPv6 lookup | |
KR100378599B1 (ko) | 주소 메모리 블록의 간섭 인덱싱에 기반한 라우팅 테이블검색 방법 | |
SE9902175D0 (sv) | Arrangement, system and method relating to datacommunication | |
US6788695B1 (en) | System and method capable of carrying out high-speed IP routing by the use of a binary tree comprising a reduced number of nodes |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20051222 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060110 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060310 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20060411 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20060413 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090421 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100421 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110421 Year of fee payment: 5 |
|
LAPS | Cancellation because of no payment of annual fees |