JPH11220483A - Path information retrieval system - Google Patents

Path information retrieval system

Info

Publication number
JPH11220483A
JPH11220483A JP2077798A JP2077798A JPH11220483A JP H11220483 A JPH11220483 A JP H11220483A JP 2077798 A JP2077798 A JP 2077798A JP 2077798 A JP2077798 A JP 2077798A JP H11220483 A JPH11220483 A JP H11220483A
Authority
JP
Japan
Prior art keywords
search
information
pointer value
memory
tree
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
JP2077798A
Other languages
Japanese (ja)
Inventor
Kenichi Abiru
健一 阿比留
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.)
Ultra High Speed Network and Computer Technology Laboratories
Original Assignee
Ultra High Speed Network and Computer Technology Laboratories
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 Ultra High Speed Network and Computer Technology Laboratories filed Critical Ultra High Speed Network and Computer Technology Laboratories
Priority to JP2077798A priority Critical patent/JPH11220483A/en
Publication of JPH11220483A publication Critical patent/JPH11220483A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To apply the path information retrieval system to an ultra-high speed network where higher retrieval processing is a requirement to suppress increase in a retrieval required time due to increase in the network configuration. SOLUTION: Contents addressable retrieval processing using a contents addressable memory CAM is started based on an entered destination address and in the case that the retrieval is failed, tree retrieval processing using a tree node information memory 12 is executed to obtain desired path information. Then 'pointer to path information' obtained by the tree retrieval processing is registered in the CAM 14 in relation to the destination address.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、経路情報検索方式
に関し、特に所定の宛先アドレスに基づいて経路情報を
検索する経路情報検索方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a route information search system, and more particularly to a route information search system for searching for route information based on a predetermined destination address.

【0002】[0002]

【従来の技術】一般に、複数のネットワーク間を接続す
るIPルータ等の通信装置では、ネットワークレイヤ
(IPレイヤ:OSI第3層)において、受信したフレ
ームデータから、IP(Internet Protocol)アドレス
等の宛先アドレスを取得し、これに対応するポート番号
あるいはMAC(Media Access Control)アドレス等の
経路情報を検索し、得られた経路情報に基づいてフレー
ムデータを転送するものとなっている。
2. Description of the Related Art Generally, in a communication device such as an IP router for connecting a plurality of networks, a network layer (IP layer: OSI third layer) converts a received frame data into a destination such as an IP (Internet Protocol) address. An address is obtained, path information such as a port number or a MAC (Media Access Control) address corresponding to the address is searched, and frame data is transferred based on the obtained path information.

【0003】図5は、一般的な通信装置の構成を示すブ
ロック図である。ネットワークインターフェース部4に
は、収容する各ネットワークごとにネットワークインタ
ーフェース41〜4nが設けられている。各ネットワー
クインターフェース41〜4nでは、対応するネットワ
ークから受信したフレームデータからデータリンクレイ
ヤ(OSI第2層)のMACフレームデータ(任意長)
を抽出しバッファメモリ部3に書き込む受信処理と、バ
ッファメモリ部3から所定のMACフレームデータ(任
意長)を読み出し対応するネットワークへ送信する送信
処理とが行われる。
FIG. 5 is a block diagram showing a configuration of a general communication device. The network interface unit 4 is provided with network interfaces 41 to 4n for each network to be accommodated. In each of the network interfaces 41 to 4n, MAC frame data (arbitrary length) of a data link layer (OSI second layer) is obtained from frame data received from a corresponding network.
, And a transmission process of reading predetermined MAC frame data (arbitrary length) from the buffer memory unit 3 and transmitting the data to a corresponding network.

【0004】一方、プロトコル処理部2では、ネットワ
ークインターフェース部4により、バッファメモリ部3
に格納されたMACフレームデータから、ネットワーク
レイヤにおける宛先アドレス(IPアドレス)が抽出さ
れる。そして、そのMACフレームデータを送信すべき
ネットワークインターフェース41〜4nを示す経路情
報が検索されるとともに、フレームデータのチェックや
ヘッダの更新が行われる。
On the other hand, in the protocol processing unit 2, the buffer memory unit 3 is operated by the network interface unit 4.
The destination address (IP address) in the network layer is extracted from the MAC frame data stored in. Then, route information indicating the network interfaces 41 to 4n to which the MAC frame data is to be transmitted is searched, and the frame data is checked and the header is updated.

【0005】このようにして、プロトコル処理部2にお
いて、バッファメモリ部3に格納されたMACフレーム
データに対する経路情報が得られ、この経路情報に基づ
きデータ転送制御部1から各ネットワークインターフェ
ース41〜4nのうちのいずれかに送信指示が出力され
る。これにより、送信指示を受けたネットワークインタ
ーフェース41〜1nにおいて送信処理が実行され、宛
先アドレスに対応するネットワークにフレームデータと
して送信される。
[0005] In this way, in the protocol processing unit 2, the path information for the MAC frame data stored in the buffer memory unit 3 is obtained, and based on this path information, the data transfer control unit 1 sends the network interfaces 41 to 4 n of A transmission instruction is output to one of them. As a result, the transmission processing is executed in the network interfaces 41 to 1n that have received the transmission instruction, and transmitted as frame data to the network corresponding to the destination address.

【0006】従来、プロトコル処理部2では、図6に示
すような経路情報検索方式により、得られた宛先アドレ
ス(IPアドレス)から経路情報を検索するものとなっ
ていた。図6は従来の経路情報検索方式を示すブロック
図である。この場合、所定の検索ツリーを構成するツリ
ーノード情報と経路情報とを格納する検索メモリ15が
設けられている。
Conventionally, the protocol processing unit 2 searches for route information from the obtained destination address (IP address) by a route information search method as shown in FIG. FIG. 6 is a block diagram showing a conventional route information search method. In this case, there is provided a search memory 15 for storing tree node information and path information constituting a predetermined search tree.

【0007】例えば、ツリーノード情報として、検索ツ
リーを構成する各ノードごとに、ツリー判定条件情報と
その判定結果対応する次ノードへのポインタ値、および
経路情報へのポインタ値をそれぞれ格納しておく。そし
て、制御部11により、ツリーノード情報の各ノード
を、それぞれのツリー判定条件情報と宛先アドレスとに
基づいて辿って行く。
For example, tree decision condition information, a pointer value to the next node corresponding to the decision result, and a pointer value to the route information are stored as tree node information for each node constituting the search tree. . Then, the control unit 11 traces each node of the tree node information based on the respective tree determination condition information and the destination address.

【0008】ここで、任意のノードに有効な経路情報へ
のポインタ値が格納されていた場合、そのポインタ値で
示される位置に格納されている経路情報が読み出され、
制御部11に出力される。このようにして、ハードウェ
ア構成により、宛先アドレスに対応する経路情報が検索
されるものとなっていた。
Here, when a pointer value to valid path information is stored in an arbitrary node, the path information stored at the position indicated by the pointer value is read out,
Output to the control unit 11. In this way, the route information corresponding to the destination address is searched by the hardware configuration.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の経路情報検索方式では、メモリ上に検索テー
ブルが構成されているため、テーブルエントリ数を増加
させることによりネットワーク構成の増大に対応可能で
あるものの、検索アルゴリズムの性質上、検索時間が一
定ではなく、ネットワーク構成の増大に応じて平均的な
検索所要時間が増大するため、より高速な検索処理が要
求される超高速ネットワークに適用できないという問題
点があった。本発明はこのような課題を解決するための
ものであり、ネットワーク構成の増大による検索所要時
間の増大を抑制でき、より高速な検索処理が要求される
超高速ネットワークに適用できる経路情報検索方式を提
供することを目的としている。
However, in such a conventional route information search system, since a search table is formed on a memory, it is possible to cope with an increase in the network configuration by increasing the number of table entries. However, due to the nature of the search algorithm, the search time is not constant, and the average search time increases as the network configuration increases, so it cannot be applied to ultra-high-speed networks that require faster search processing. There was a problem. SUMMARY OF THE INVENTION The present invention has been made to solve such a problem, and a route information search method that can suppress an increase in search time due to an increase in network configuration and can be applied to an ultra-high-speed network that requires faster search processing. It is intended to provide.

【0010】[0010]

【課題を解決するための手段】このような目的を達成す
るために、本発明による経路検索方式は、所定のポイン
タ値で参照される記憶領域ごとにそれぞれ経路情報を記
憶する経路情報メモリと、ツリー構造で接続された複数
のノードから構成され、宛先アドレスに基づいて各ノー
ドを順に探索することにより、所望の経路情報を参照す
るためのポインタ値を出力するツリーノード情報メモリ
と、宛先アドレスと経路情報を参照するためのポインタ
値とを関連付けて記憶し、入力された宛先アドレスに対
応するポインタ値を出力する連想記憶メモリとを備える
ものである。
In order to achieve the above object, a route search method according to the present invention comprises a route information memory for storing route information for each storage area referenced by a predetermined pointer value; A tree node information memory that is composed of a plurality of nodes connected in a tree structure and outputs a pointer value for referring to desired route information by sequentially searching each node based on the destination address; A content addressable memory for storing a pointer value for referring to the path information in association with the pointer value and outputting a pointer value corresponding to the input destination address.

【0011】そして、経路検索時には、連想記憶メモリ
を用いて宛先アドレスに対応するポインタ値を検索する
連想検索処理を実行し、連想検索処理による検索が成功
した場合には、連想記憶メモリから出力されたポインタ
値に基づいて経路情報メモリを参照することにより所望
の経路情報を取得し、連想検索処理による検索が失敗し
た場合には、ツリーノード情報メモリを用いて宛先アド
レスに対応するポインタ値を検索するツリー検索処理を
実行し、ツリーノード情報メモリから出力されたポイン
タ値に基づいて経路情報メモリを参照することにより所
望の経路情報を取得するとともに、取得したポインタ値
と宛先アドレスとを関連付けて連想記憶メモリに登録す
るようにしたものである。また、経路検索時には、連想
検索処理とツリー検索処理とを並列して開始するように
したものである。
At the time of the path search, an associative search process for searching for a pointer value corresponding to the destination address is executed using the associative memory, and when the search by the associative search is successful, the associative search memory is output. The desired route information is obtained by referring to the route information memory based on the pointer value obtained, and if the search by the associative search processing fails, the pointer value corresponding to the destination address is searched using the tree node information memory. Executing a tree search process to obtain desired route information by referring to the route information memory based on the pointer value output from the tree node information memory, and associating the obtained pointer value with the destination address in association with the destination address. This is registered in the storage memory. Also, at the time of route search, the associative search process and the tree search process are started in parallel.

【0012】[0012]

【発明の実施の形態】次に、本発明について図面を参照
して説明する。図1は本発明の一実施の形態である経路
情報検索方式のブロック図であり、同図において、前述
の説明と同じまたは同等部分には同一符号を付してあ
る。本発明では、ツリーノード情報メモリ12および経
路情報メモリ13からなる従来の経路情報検索方式に、
CAM(Content Addressable Memory:連想記憶メモ
リ)14を設けて、初回以降の検索処理を高速で実行す
るようにしたものである。
Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a route information search method according to an embodiment of the present invention. In FIG. 1, the same or equivalent parts as those described above are denoted by the same reference numerals. In the present invention, the conventional route information search method including the tree node information memory 12 and the route information memory 13 includes:
A CAM (Content Addressable Memory: associative storage memory) 14 is provided to execute the search processing after the first time at high speed.

【0013】なお、CAMとは、内容検索型の連想記憶
メモリのことであり、一般的なメモリのように予め固定
的なメモリ空間が用意されているものではなく、アドレ
スに相当する検索ワードとデータに相当する情報ワード
とが対として記憶される。本発明は、初回検索時にツリ
ーノード情報メモリ12で検索された経路情報メモリ1
3へのポインタ値を情報ワードとし、そのときの宛先ア
ドレスを検索ワードとしてCAM14に書き込んでお
き、次回検索時にはMAC14を用いて高速に検索する
ものである。
The CAM is an associative memory of a content search type, and does not have a fixed memory space prepared in advance like a general memory, but includes a search word corresponding to an address. Information words corresponding to data are stored as pairs. According to the present invention, the path information memory 1 searched in the tree node information
The value of the pointer to 3 is used as an information word, and the destination address at that time is written in the CAM 14 as a search word, and the MAC 14 is used for a high-speed search at the next search.

【0014】以下、図1を参照して、本発明による検索
動作について説明する。まず、制御部11は、経路情報
の検索入力である宛先アドレス21を検索ワード22と
してCAM14に出力することにより、CAM14を用
いた連想検索処理を開始する。図2は、CAMの構成例
を示す説明図であり、「宛先アドレス(ネットワークレ
イヤ・アドレス)」と「経路情報へのポインタ値」と
が、1対1に対応付けて記憶されている。
The search operation according to the present invention will be described below with reference to FIG. First, the control unit 11 starts an associative search process using the CAM 14 by outputting the destination address 21 as a search input of the route information to the CAM 14 as a search word 22. FIG. 2 is an explanatory diagram showing a configuration example of the CAM, in which a “destination address (network layer address)” and a “pointer value to route information” are stored in a one-to-one correspondence.

【0015】CAM14では、検索ワード22として入
力された宛先アドレス21に基づいて対応する情報ワー
ドすなわち「経路情報へのポインタ値」が検索され、そ
の検索結果23が制御部11に出力される。制御部11
は、この検索結果23が「検索失敗」を示す場合には、
CAM14に対して未登録であると判断して、ツリーノ
ード情報メモリ12を用いた以下のようなツリー検索処
理を開始する。
The CAM 14 searches for a corresponding information word, that is, a “pointer value to route information”, based on the destination address 21 input as the search word 22, and outputs a search result 23 to the control unit 11. Control unit 11
If this search result 23 indicates "search failure",
It is determined that the CAM 14 has not been registered, and the following tree search process using the tree node information memory 12 is started.

【0016】図3はツリーノード情報メモリの構成例を
示す説明図であり、(a)は検索アルゴリズムの概念、
(b)はノード情報をそれぞれ示している。図3(a)
に示すように、検索ツリーは各ノード31〜37がツリ
ー状にそれぞれ接続され、下方向に向かって分岐参照関
係を有している。実際、各ノード31〜37は、ツリー
情報メモリ12内のそれぞれ固有のポインタ値で示され
る記憶エリアに配置されたノード情報から構成されてい
る。
FIG. 3 is an explanatory diagram showing an example of the configuration of a tree node information memory. FIG.
(B) shows node information. FIG. 3 (a)
As shown in (1), in the search tree, each of the nodes 31 to 37 is connected in a tree shape, and has a branch reference relationship in a downward direction. Actually, each of the nodes 31 to 37 is configured from node information arranged in a storage area indicated by a unique pointer value in the tree information memory 12.

【0017】この場合、各ノード31〜37のノード情
報は、図3(b)に示すように、「チェック対象ビット
の位置情報」、「対象ビット=「0」の場合の次ノード
へのポインタ値」、「対象ビット=「1」の場合の次ノ
ードへのポインタ値」、「経路情報へのポインタ値」か
ら構成されている。なお、ツリーノード情報メモリ12
は、ネットワーク構成の変更に応じて、随時、保守更新
されているものとする。
In this case, as shown in FIG. 3B, the node information of each of the nodes 31 to 37 is "position information of the check target bit" and "pointer to the next node when the target bit =" 0 ". Value "," pointer value to next node when target bit = "1"",and" pointer value to route information ". The tree node information memory 12
Is maintained and updated at any time in response to a change in the network configuration.

【0018】ツリー検索処理開始時、制御部11から先
頭に位置するノード、ここではノード31を示すポイン
タ値25がツリーノード情報メモリ12に出力される。
これに応じて、ノード31に対応するノード情報26が
読み出され、制御部11に入力される。制御部11は、
このノード情報26の「チェック対象ビットの位置情
報」に基づき、入力された宛先アドレス21のうちの所
定ビットをチェックする。
At the start of the tree search process, the control unit 11 outputs a pointer value 25 indicating the head node, here the node 31, to the tree node information memory 12.
In response, the node information 26 corresponding to the node 31 is read and input to the control unit 11. The control unit 11
A predetermined bit of the input destination address 21 is checked based on the “position information of the check target bit” of the node information 26.

【0019】ここで、所定ビットが「0」の場合には、
ノード情報26の「対象ビット=「0」の場合の次ノー
ドへのポインタ値」を参照する。一方、所定ビットが
「1」の場合には、ノード情報26の「対象ビット=
「1」の場合の次ノードへのポインタ値」を参照する。
そして、いずれの場合も、得られたポインタ値を新たな
ポインタ値25としてツリーノード情報メモリ12に出
力し、ツリー検索処理を繰り返し実行する。
Here, when the predetermined bit is "0",
Reference is made to “pointer value to next node when target bit =“ 0 ”” in node information 26. On the other hand, when the predetermined bit is “1”, the “target bit =
Pointer value to next node in case of “1” ”.
In any case, the obtained pointer value is output to the tree node information memory 12 as a new pointer value 25, and the tree search process is repeatedly executed.

【0020】したがって、例えばノード31のノード情
報により指示されたチェック対象ビットが「1」の場合
には、次ノードポインタ値としてノード32を示すポイ
ンタ値が得られる。また、ノード32のノード情報によ
り指示されたチェック対象ビットが「0」の場合には、
次ノードポインタ値としてノード33を示すポインタ値
が得られる。
Therefore, for example, when the check target bit indicated by the node information of the node 31 is “1”, a pointer value indicating the node 32 is obtained as a next node pointer value. When the check target bit indicated by the node information of the node 32 is “0”,
A pointer value indicating the node 33 is obtained as the next node pointer value.

【0021】また、制御部11からのポインタ値25に
より任意のノードが参照された場合に、そのノード情報
26に有効な値の「経路情報へのポインタ値」が格納さ
れていた場合には、このポインタ値に基づいて経路情報
メモリ13から、宛先アドレス21に対応する所望の経
路情報27が読み出される。図4は、経路情報メモリの
構成例を示す説明図であり、(a)は対応関係、(b)
は経路情報をそれぞれ示している。
When an arbitrary node is referred to by the pointer value 25 from the control unit 11 and a valid value “pointer value to route information” is stored in the node information 26, The desired route information 27 corresponding to the destination address 21 is read from the route information memory 13 based on the pointer value. 4A and 4B are explanatory diagrams showing a configuration example of the path information memory, where FIG.
Indicates path information.

【0022】例えば、前述の図3(a)のノード33の
ノード情報のうち、「経路情報へのポインタ値」として
「B」が格納されていた場合、ノード33への参照に応
じてポインタ値「B」が経路情報メモリ13へ出力され
る。これにより、経路情報メモリ13では、図4(a)
に示すように、経路情報27として「ROUTE−0
2」が読み出される。
For example, if “B” is stored as the “pointer value to the route information” in the node information of the node 33 in FIG. “B” is output to the route information memory 13. As a result, in the path information memory 13, FIG.
As shown in FIG.
2 "is read out.

【0023】なお、図4(b)に示すように、経路情報
27は、ネットワークインターフェース部4(図5参
照)内のネットワークインターフェース41〜4nのう
ち、処理対象のフレームデータを転送出力するのに用い
るネットワークインターフェースを示す「出力側のネッ
トワーク・インターフェース番号」と、転送出力するフ
レームデータの新たにヘッダに格納される「データリン
クレイヤ・アドレス」とから構成されている。
As shown in FIG. 4B, the route information 27 is used to transfer and output frame data to be processed among the network interfaces 41 to 4n in the network interface unit 4 (see FIG. 5). It consists of a “network interface number on the output side” indicating a network interface to be used, and a “data link layer address” newly stored in a header of frame data to be transferred and output.

【0024】このようにして、入力された宛先アドレス
21に対応する経路情報27が読み出されて制御部11
から出力され、ツリーノード情報メモリ12を用いた一
連のツリー検索処理が終了する。したがって、入力され
た宛先アドレス21に対応する「経路情報へのポインタ
値」がCAM14に登録されていない場合には、ツリー
ノード情報メモリ12を用いて「経路情報へのポインタ
値」が検索される。
In this way, the path information 27 corresponding to the input destination address 21 is read and the control unit 11
And a series of tree search processing using the tree node information memory 12 ends. Therefore, if the “pointer value to route information” corresponding to the input destination address 21 is not registered in the CAM 14, the “pointer value to route information” is searched using the tree node information memory 12. .

【0025】本発明では、ツリー検索処理時の終了時、
ツリーノード情報メモリ12から得られた宛先アドレス
21に対応する「経路情報へのポインタ値」をCAM1
4にも出力し、制御部11からの検索ワード22すなわ
ち宛先アドレス21に対応して、CAM14に登録する
ようにしたものである。これにより、次回、同一の宛先
アドレス21が入力された場合には、CAM14を用い
て、経路情報を高速に検索できる。
In the present invention, at the end of the tree search processing,
The “pointer value to the route information” corresponding to the destination address 21 obtained from the tree node information memory 12 is stored in CAM1.
4 and is registered in the CAM 14 in accordance with the search word 22 from the control unit 11, that is, the destination address 21. Thus, when the same destination address 21 is input next time, the CAM 14 can be used to search the route information at high speed.

【0026】この場合、CAM14から読み出されたポ
インタ値24に基づいて、経路情報メモリ13から、入
力された宛先アドレス21に対応する経路情報27が読
み出されて制御部11から出力され、CAM14を用い
た一連の連想検索処理が終了する。なお、CAM14か
らの検索結果23が「検索成功」を示すものとなり、制
御部11ではツリー検索処理が開始されない。
In this case, based on the pointer value 24 read from the CAM 14, the path information 27 corresponding to the input destination address 21 is read from the path information memory 13 and output from the control unit 11. Ends a series of associative search processes using. The search result 23 from the CAM 14 indicates "successful search", and the control unit 11 does not start the tree search process.

【0027】このように、本発明は、入力された宛先ア
ドレス21によりCAM14を用いた連想検索処理を開
始し、その検索が失敗した場合にはツリーノード情報メ
モリ12を用いたツリー検索処理を実行して所望の経路
情報27を得るとともに、ツリー検索処理により得られ
た「経路情報へのポインタ値」を、宛先アドレス21に
関連付けてCAM14に登録するようにしたものであ
る。
As described above, according to the present invention, the associative search processing using the CAM 14 is started by the input destination address 21, and if the search fails, the tree search processing using the tree node information memory 12 is executed. Thus, the desired route information 27 is obtained, and the "pointer value to the route information" obtained by the tree search process is registered in the CAM 14 in association with the destination address 21.

【0028】したがって、次回には連想検索処理のみに
より所望の経路情報が得られるため、従来のように、毎
回、ツリー検索処理を行う場合と比較して、経路情報検
索処理の所要時間を短縮できる。これにより、ネットワ
ーク構成の増大による検索所要時間の増大を抑制でき、
より高速な検索処理が要求される超高速ネットワークに
適用できる。
Therefore, the desired route information can be obtained only by the associative search process next time, so that the time required for the route information search process can be reduced as compared with the conventional case where the tree search process is performed every time. . As a result, it is possible to suppress an increase in the required search time due to an increase in the network configuration,
It can be applied to ultra-high-speed networks that require higher-speed search processing.

【0029】また、実際に通信が行われる宛先アドレス
と経路情報との関係のみがCAM14に登録されるた
め、ネットワーク構成の増大、例えば端末の増設などを
見込んで、CAM14内に各ネットワークごとに予め所
定量の記憶領域を確保しておく必要がなく、CAM14
の容量を有効利用できる。また、将来のネットワーク構
成の増大が予想とは異なって増大した場合でも、各ネッ
トワークごとに予め所定量の記憶領域を確保した場合に
比較して、柔軟に対応できる。
Further, since only the relationship between the destination address and the route information at which the actual communication is performed is registered in the CAM 14, the CAM 14 is preliminarily stored in the CAM 14 for each network in anticipation of an increase in the network configuration, for example, the addition of terminals. There is no need to secure a predetermined amount of storage area.
Capacity can be used effectively. Further, even if the future increase in the network configuration is different from the expected one, it is possible to flexibly cope with the case where a predetermined amount of storage area is previously secured for each network.

【0030】なお、以上の説明において、まず連想検索
処理を行い、その検索結果に応じてツリー検索処理を開
始するようにした場合を例に説明した。しかし、通常、
ツリー検索処理より連想検索処理の処理時間が短いこと
から、連想検索処理とツリー検索処理とを並列して実行
しておき、連想検索処理による検索が成功した場合には
ツリー検索処理を中止し、連想検索処理による検索が失
敗した場合にはツリー検索処理を継続するようにしても
よい。
In the above description, an example has been described in which the associative search processing is performed first, and the tree search processing is started according to the search result. But usually
Since the processing time of the associative search processing is shorter than that of the tree search processing, the associative search processing and the tree search processing are executed in parallel, and if the search by the associative search processing is successful, the tree search processing is stopped. If the search by the associative search process fails, the tree search process may be continued.

【0031】これにより、連想検索処理の検索結果に応
じてツリー検索処理を開始する場合と比較して、CAM
14に未登録の場合すなわち初回検索時に、ツリー検索
処理の所要時間を、連想検索処理分だけ短縮できる。な
お、以上の説明において、ツリー検索処理として、図2
に示すような構成のツリーノード情報メモリを用いた場
合を例に説明したが、これに限定されるものではなく、
他の構成を用いたツリー検索処理であってもよい。
Thus, the CAM is compared with the case where the tree search process is started according to the search result of the associative search process.
14, that is, at the time of the first search, the time required for the tree search process can be reduced by the associative search process. In the above description, the tree search process is performed as shown in FIG.
Has been described as an example using a tree node information memory having a configuration as shown in FIG. 1, but the present invention is not limited to this.
Tree search processing using another configuration may be used.

【0032】[0032]

【発明の効果】以上説明したように、本発明は、宛先ア
ドレスと経路情報を参照するためのポインタ値とを関連
付けて記憶し、入力された宛先アドレスに対応するポイ
ンタ値を出力する連想記憶メモリとを設けて、経路検索
時には、連想記憶メモリを用いて宛先アドレスに対応す
るポインタ値を検索する連想検索処理を実行し、連想検
索処理による検索が成功した場合には、連想記憶メモリ
から出力されたポインタ値に基づいて経路情報メモリを
参照することにより所望の経路情報を取得し、連想検索
処理による検索が失敗した場合には、ツリーノード情報
メモリを用いて宛先アドレスに対応するポインタ値を検
索するツリー検索処理を実行し、ツリーノード情報メモ
リから出力されたポインタ値に基づいて経路情報メモリ
を参照することにより所望の経路情報を取得するととも
に、取得したポインタ値と宛先アドレスとを関連付けて
連想記憶メモリに登録するようにしたものである。
As described above, the present invention relates to an associative memory for storing a destination address and a pointer value for referring to route information in association with each other and outputting a pointer value corresponding to the input destination address. At the time of a route search, an associative search process for searching for a pointer value corresponding to a destination address is performed using the associative memory, and if the search by the associative search is successful, the associative search memory is output. The desired route information is obtained by referring to the route information memory based on the pointer value obtained, and if the search by the associative search processing fails, the pointer value corresponding to the destination address is searched using the tree node information memory. Executing a tree search process to refer to the path information memory based on the pointer value output from the tree node information memory. Obtains the desired route information Ri, is obtained so as to register the content-addressable memory in association with the pointer value acquired and the destination address.

【0033】したがって、次回には連想検索処理のみに
より所望の経路情報が得られるため、従来のように、毎
回、ツリー検索処理を行う場合と比較して、経路情報検
索処理の所要時間を短縮できる。これにより、ネットワ
ーク構成の増大による検索所要時間の増大を抑制でき、
より高速な検索処理が要求される超高速ネットワークに
適用できる。
Therefore, the desired route information can be obtained only by the associative search process next time, so that the time required for the route information search process can be reduced as compared with the conventional case where the tree search process is performed every time. . As a result, it is possible to suppress an increase in the required search time due to an increase in the network configuration,
It can be applied to ultra-high-speed networks that require higher-speed search processing.

【0034】また、実際に通信が行われる宛先アドレス
と経路情報との関係のみが連想記憶メモリに登録される
ため、ネットワーク構成の増大、例えば端末の増設など
を見込んで、連想記憶メモリ内に各ネットワークごとに
予め所定量の記憶領域を確保しておく必要がなく、連想
記憶メモリの容量を有効利用できる。さらに、将来のネ
ットワーク構成の増大が予想とは異なって増大した場合
でも、各ネットワークごとに予め所定量の記憶領域を確
保した場合に比較して、柔軟に対応できる。
Also, since only the relationship between the destination address at which communication is actually performed and the route information is registered in the associative memory, each of the associative memories is stored in anticipation of an increase in the network configuration, for example, the addition of terminals. There is no need to secure a predetermined amount of storage area in advance for each network, and the capacity of the associative storage memory can be used effectively. Further, even when the future increase in the network configuration is different from the expected one, it is possible to flexibly cope with the case where a predetermined amount of storage area is previously secured for each network.

【0035】また、経路検索時には、連想検索処理とツ
リー検索処理とを並列して開始するようにしたので、連
想検索処理の検索結果に応じてツリー検索処理を開始す
る場合と比較して、連想記憶メモリに未登録の場合すな
わち初回検索時に、ツリー検索処理の所要時間を、連想
検索処理分だけ短縮できる。
Also, at the time of the route search, the associative search process and the tree search process are started in parallel, so that the associative search process is started in accordance with the search result of the associative search process. When not registered in the storage memory, that is, at the time of the first search, the time required for the tree search process can be reduced by the associative search process.

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

【図1】 本発明の一実施の形態による経路情報検索方
式のブロック図である。
FIG. 1 is a block diagram of a route information search method according to an embodiment of the present invention.

【図2】 CAMの構成例を示す説明図である。FIG. 2 is an explanatory diagram showing a configuration example of a CAM.

【図3】 ツリーノード情報メモリの構成例を示す説明
図である。
FIG. 3 is an explanatory diagram showing a configuration example of a tree node information memory.

【図4】 経路情報メモリの構成例を示す説明図であ
る。
FIG. 4 is an explanatory diagram showing a configuration example of a path information memory.

【図5】 一般的な通信装置の構成を示すブロック図で
ある。
FIG. 5 is a block diagram illustrating a configuration of a general communication device.

【図6】 従来の経路情報検索方式を示すブロック図で
ある。
FIG. 6 is a block diagram showing a conventional route information search method.

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

1…データ転送制御部、2…プロトコル処理部、3…バ
ッファメモリ部、4…ネットワークインターフェース
部、41〜4n…ネットワークインターフェース、5…
ネットワーク、11…制御部、12…ツリーノード情報
メモリ、13…経路情報メモリ、14…CAM(連想記
憶メモリ)。
DESCRIPTION OF SYMBOLS 1 ... Data transfer control part, 2 ... Protocol processing part, 3 ... Buffer memory part, 4 ... Network interface part, 41-4n ... Network interface, 5 ...
Network, 11 control unit, 12 tree node information memory, 13 path information memory, 14 CAM (associative memory).

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 所定のフレームデータから抽出した宛先
アドレスに基づいてそのフレームデータの転送処理に要
する経路情報を検索する経路情報検索方式において、 所定のポインタ値で参照される記憶領域ごとにそれぞれ
経路情報を記憶する経路情報メモリと、 ツリー構造で接続された複数のノードから構成され、宛
先アドレスに基づいて各ノードを順に探索することによ
り、所望の経路情報を参照するためのポインタ値を出力
するツリーノード情報メモリと、 宛先アドレスと経路情報を参照するためのポインタ値と
を関連付けて記憶し、入力された宛先アドレスに対応す
るポインタ値を出力する連想記憶メモリとを備え、 経路検索時には、 連想記憶メモリを用いて宛先アドレスに対応するポイン
タ値を検索する連想検索処理を実行し、 連想検索処理による検索が成功した場合には、連想記憶
メモリから出力されたポインタ値に基づいて経路情報メ
モリを参照することにより所望の経路情報を取得し、 連想検索処理による検索が失敗した場合には、ツリーノ
ード情報メモリを用いて宛先アドレスに対応するポイン
タ値を検索するツリー検索処理を実行し、ツリーノード
情報メモリから出力されたポインタ値に基づいて経路情
報メモリを参照することにより所望の経路情報を取得す
るとともに、取得したポインタ値と宛先アドレスとを関
連付けて連想記憶メモリに登録することを特徴とする経
路情報検索方式。
In a path information search method for searching for path information required for transfer processing of frame data based on a destination address extracted from predetermined frame data, a path is determined for each storage area referenced by a predetermined pointer value. A path information memory for storing information, and a plurality of nodes connected in a tree structure. By sequentially searching each node based on the destination address, a pointer value for referring to desired path information is output. A tree node information memory, and an associative memory for storing a destination address and a pointer value for referring to path information in association with each other and outputting a pointer value corresponding to the input destination address; Executing an associative search process for searching for a pointer value corresponding to the destination address using the storage memory; If the search by the associative search process succeeds, the desired route information is obtained by referring to the route information memory based on the pointer value output from the associative memory, and if the search by the associative search process fails, Performs a tree search process for searching for a pointer value corresponding to the destination address using the tree node information memory, and refers to the route information memory based on the pointer value output from the tree node information memory to thereby obtain a desired route. A path information search method for acquiring information and associating the acquired pointer value with a destination address and registering the information in an associative memory.
【請求項2】 請求項1記載の経路情報検索方式におい
て、 経路検索時には、 連想検索処理とツリー検索処理とを並列して開始するこ
とを特徴とする経路情報検索方式。
2. The route information search method according to claim 1, wherein at the time of the route search, an associative search process and a tree search process are started in parallel.
JP2077798A 1998-02-02 1998-02-02 Path information retrieval system Pending JPH11220483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2077798A JPH11220483A (en) 1998-02-02 1998-02-02 Path information retrieval system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2077798A JPH11220483A (en) 1998-02-02 1998-02-02 Path information retrieval system

Publications (1)

Publication Number Publication Date
JPH11220483A true JPH11220483A (en) 1999-08-10

Family

ID=12036587

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2077798A Pending JPH11220483A (en) 1998-02-02 1998-02-02 Path information retrieval system

Country Status (1)

Country Link
JP (1) JPH11220483A (en)

Cited By (2)

* 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

Cited By (2)

* 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

Similar Documents

Publication Publication Date Title
US7167471B2 (en) Network processor with single interface supporting tree search engine and CAM
US7058642B2 (en) Method and data structure for a low memory overhead database
US5027350A (en) Method and apparatus for providing a local area network bridge
JP4336625B2 (en) Packet transfer device
US7286534B2 (en) SRAM based cache for DRAM routing table lookups
US6526055B1 (en) Method and apparatus for longest prefix address lookup
TW200301429A (en) A method of improving the lookup performance of tree-type knowledge base searches
CA2311078A1 (en) Multithreaded address resolution system
JP2001251351A (en) Input packet processing system for packet switch
WO2005074555A2 (en) Memory efficient hashing algorithm
EP1010304A2 (en) Apparatus and method for routing data packets through a communications network
CN111937360B (en) Longest prefix matching
JPH09307581A (en) Bridge
JP2000196672A (en) Inter-network repeater
EP1777889B1 (en) Method of processing information packets and telecommunication apparatus using the same
US6201755B1 (en) Method and system for storing and retrieving information in a communications node
US6421660B1 (en) Enhanced searching method and apparatus for variable bit chains
US20020009056A1 (en) Route retrieving system, method therefor and a router device to be used in the same
US7249216B2 (en) Data relay apparatus, content addressable/associative memory device, and content addressable/associative memory device use information search method
US6343289B1 (en) Efficient search and organization of a forwarding database or the like
JP3569802B2 (en) Routing table search device and search method
US11683039B1 (en) TCAM-based not logic
JPH11220483A (en) Path information retrieval system
JPH07118719B2 (en) Pattern search method and apparatus
JP3558151B2 (en) Data search circuit