JPH0832613A - Route selection information retrieval device - Google Patents
Route selection information retrieval deviceInfo
- Publication number
- JPH0832613A JPH0832613A JP6162387A JP16238794A JPH0832613A JP H0832613 A JPH0832613 A JP H0832613A JP 6162387 A JP6162387 A JP 6162387A JP 16238794 A JP16238794 A JP 16238794A JP H0832613 A JPH0832613 A JP H0832613A
- Authority
- JP
- Japan
- Prior art keywords
- route selection
- selection information
- search
- network
- 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.)
- Granted
Links
Landscapes
- Computer And Data Communications (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Small-Scale Networks (AREA)
Abstract
(57)【要約】
【目的】 一つのネットワークに対して複数のネットワ
ーク番号が割り当てられている場合でも、ハッシュ方式
を用いて全てのネットワーク番号から対応する経路選択
情報を探し出す。
【構成】 ハッシュ方式によって、経路選択情報テーブ
ル11内に記憶された経路選択情報の中から所定の経路
選択情報を検索する経路選択情報の検索装置において、
選択キー情報として、割り当てられたネットワーク番号
のうちの先頭のネットワーク番号を含む経路選択情報テ
ーブル11の他に、検索キー情報として先頭のネットワ
ーク番号以外のネットワーク番号と、先頭のネットワー
ク番号とを含む経路選択情報検索テーブル12を使用し
て、検索手段13が2段階のハッシュ検索を行う。
(57) [Summary] [Purpose] Even when a plurality of network numbers are assigned to one network, the corresponding route selection information is searched from all the network numbers by using the hash method. In a route selection information search device that searches for predetermined route selection information from the route selection information stored in the route selection information table 11 by a hash method,
In addition to the route selection information table 11 including the first network number of the assigned network numbers as the selection key information, the route including the network number other than the first network number and the first network number as the search key information. The search means 13 uses the selection information search table 12 to perform a two-step hash search.
Description
【0001】[0001]
【産業上の利用分野】本発明は、接続された複数のネッ
トワーク間でデータ転送を行うための経路選択情報を検
索する検索装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a retrieval device for retrieving route selection information for data transfer between a plurality of connected networks.
【0002】[0002]
【従来の技術】従来、この種の検索装置は、複数のネッ
トワークを接続するルータ内に設けられていた。上記検
索装置は、ルーティング可能な個々のネットワーク毎
に、次に転送するルータのアドレスやホップ数等を含ん
だ経路選択情報を有しており、この全ての経路選択情報
の中からデータの宛先ネットワークに対する経路情報を
探し出して、データを適切なネットワークに送信してい
た。この際、検索装置では、ハッシュ方式を使用して、
個々の経路選択情報を、ネットワークのネットワーク番
号をキーとしたハッシュテーブルのハッシュ値のところ
にリンクしておく。そして、あるネットワークに対する
経路選択情報を探し出す時には、ハッシュ値が同じであ
る情報のみを検索するので、全ての情報の中から検索す
る必要がなく、短時間での検索が可能となっていた。上
記検索装置では、一つのネットワークに対して一つのネ
ットワーク番号が割り当てられている場合は、上述の方
法によって経路選択情報の管理・検索が容易に行える。2. Description of the Related Art Conventionally, this type of search device has been provided in a router that connects a plurality of networks. The search device has route selection information including the address of the router to be transferred next, the number of hops, etc. for each routable network, and the destination network of the data is selected from all of this route selection information. Was looking for route information to and sending the data to the appropriate network. At this time, the search device uses the hash method,
The individual route selection information is linked to the hash value of the hash table using the network number of the network as a key. Then, when searching the route selection information for a certain network, only the information having the same hash value is searched, so that it is not necessary to search all the information, and the search can be performed in a short time. In the above search device, when one network number is assigned to one network, the route selection information can be easily managed and searched by the above method.
【0003】[0003]
【発明が解決しようとする課題】上記ルータでは、一つ
のネットワーク番号に対して接続できるノード数の範囲
が規定されているものがあり、このような場合に、一つ
のネットワークに対してその接続可能なノード数以上の
ノードを接続させる時には、一つのネットワークに対し
てネットワーク番号を複数割り当てて、接続できるノー
ド数を増やすことがあった。In some of the above routers, the range of the number of nodes that can be connected to one network number is specified. In such a case, the connection to one network is possible. When connecting more than a certain number of nodes, it may be possible to allocate a plurality of network numbers to one network to increase the number of connectable nodes.
【0004】ところが、このような場合に、上記検索装
置を用いて、個々のネットワーク番号毎に経路選択情報
を持つように設定すると、割り当てられたネットワーク
番号の範囲が広ければ、それに対応した多くの経路選択
情報を持たなければならず、記憶容量が大きくなるとい
う問題点があった。また、あるネットワーク対する情報
の追加・削除も、そのネットワークに割り当てられてい
るネットワーク番号の分だけ、行わなければならないの
で、効率が劣化するという問題点があった。さらに、ネ
ットワーク毎に経路選択情報を持つようにすると、ハッ
シュのキーとして使用できるネットワーク番号は、一つ
だけなので、上述のようなハッシュ方式では、キーとな
っていない、その他のネットワーク番号から対応する経
路選択情報を探し出すことができないという問題点があ
った。In such a case, however, if the search device is used to set the route selection information for each network number, if the range of assigned network numbers is wide, many corresponding numbers will be available. There is a problem that the storage capacity becomes large because it must have the route selection information. In addition, since the addition / deletion of information to / from a certain network must be performed for each network number assigned to that network, there is a problem in that efficiency is deteriorated. Furthermore, if each network has route selection information, only one network number can be used as a hash key. Therefore, in the hash method as described above, other network numbers that are not keys are used. There was a problem that the route selection information could not be found.
【0005】本発明は、上記問題点に鑑みなされたもの
で、一つのネットワークに対して複数のネットワーク番
号が割り当てられている場合でも、ハッシュ方式を用い
て全てのネットワーク番号から対応する経路選択情報を
探し出すことができる検索装置を提供することを目的と
する。また、本発明の他の目的は、ネットワーク対する
情報の追加・削除を容易に行うことができる検索装置を
提供することにある。The present invention has been made in view of the above problems, and even when a plurality of network numbers are assigned to one network, the route selection information corresponding to all the network numbers is calculated by using the hash method. It is an object of the present invention to provide a search device capable of searching for. Another object of the present invention is to provide a search device capable of easily adding / deleting information to / from a network.
【0006】さらに、本発明の他の目的は、経路選択情
報の作成を容易に行うことができる検索装置を提供する
ことを目的とする。Still another object of the present invention is to provide a search device capable of easily creating route selection information.
【0007】[0007]
【課題を解決するための手段】上記目的を達成するた
め、本発明では、ハッシュ方式によって、経路選択情報
テーブル内に記憶された経路選択情報の中から所定の経
路選択情報を検索する経路選択情報の検索装置におい
て、一つのネットワークに対して複数のネットワーク番
号が割り当てられている場合に、選択キー情報として前
記割り当てられたネットワーク番号のうちの一つのネッ
トワーク番号を含む経路選択情報テーブルと、検索キー
情報として前記選択キー情報となっていないネットワー
ク番号と、該選択キー情報となっているネットワーク番
号とを含む経路選択情報検索テーブルと、経路選択を行
うネットワーク番号を、前記選択キー情報として、経路
選択情報テーブルを検索し、該当する経路選択情報がな
い場合には、前記ネットワーク番号を、検索キー情報と
して経路選択情報検索テーブル内の前記選択キー情報と
なっているネットワーク番号を探し出す検索手段とを備
えた検索装置が提供される。In order to achieve the above object, in the present invention, route selection information for searching predetermined route selection information from the route selection information stored in the route selection information table by the hash method. When a plurality of network numbers are assigned to one network in the search device, the route selection information table including one network number of the assigned network numbers as the selection key information, and the search key. A route selection information search table including a network number that is not the selection key information and a network number that is the selection key information as information, and a network number to perform route selection as the selection key information. If you search the information table and there is no corresponding route selection information, The work number, routing information search locate the selected key information is in the network number is in table search means a search device equipped with is provided as search key information.
【0008】請求項3では、検索手段は、前記経路選択
を行うネットワーク番号に対応する経路選択情報を検索
できない場合には、前記経路選択情報テーブルを全て検
索し、該当する経路選択情報を検索できた場合には、当
該ネットワーク番号に対応する経路選択情報検索テーブ
ルを作成し、対応するハッシュ値に該作成した経路選択
情報検索テーブルをリンクさせる。In the third aspect, when the search means cannot search the route selection information corresponding to the network number for which the route is selected, all the route selection information tables can be searched for the corresponding route selection information. In that case, the route selection information search table corresponding to the network number is created, and the created route selection information search table is linked to the corresponding hash value.
【0009】[0009]
【作用】上記検索装置では、経路選択情報テーブル及び
経路選択情報検索テーブルを有し、経路選択情報テーブ
ル内に、経路選択を行うネットワーク番号に対応する経
路選択情報がない場合には、経路選択情報検索テーブル
からネットワーク番号に対応する選択キー情報としての
ネットワーク番号を探し出すので、対応する経路選択情
報を容易に検索できる。経路選択情報テーブルは、一つ
のネットワークに対して一つなので、経路選択情報の追
加・削除が容易に行える。The above-mentioned search device has a route selection information table and a route selection information retrieval table, and when there is no route selection information corresponding to the network number for route selection in the route selection information table, the route selection information is displayed. Since the network number as the selection key information corresponding to the network number is searched from the search table, the corresponding route selection information can be easily searched. Since there is one route selection information table for one network, addition / deletion of route selection information can be performed easily.
【0010】請求項3では、経路選択情報の検索ができ
ない場合には、経路選択情報テーブルを全て検索し、検
索できた場合には、経路選択情報検索テーブルを作成
し、対応するハッシュ値にリンクさせるので、一度検索
を行ったネットワーク番号に対しては、次から経路選択
情報テーブル及び経路選択情報検索テーブルを検索して
選択キーとなっているネットワーク番号を取得すること
ができる。In the third aspect, when the route selection information cannot be searched, the entire route selection information table is searched, and when the route selection information can be searched, the route selection information search table is created and linked to the corresponding hash value. Therefore, with respect to the network number that has been searched once, the network number serving as the selection key can be acquired by searching the route selection information table and the route selection information search table from the next time.
【0011】[0011]
【実施例】本発明の実施例を図1乃至図4の図面に基づ
いて説明する。図1は、本発明に係る検索装置の概略構
成を示す構成図である。図において、検索装置は、従来
例と同様に、複数のネットワークを接続する各ルータ内
に設けられている。上記検索装置は、ハッシュ構造から
なるとともに、経路選択情報を有する経路選択情報テー
ブル11と、ハッシュ構造からなるとともに、検索情報
を有する経路選択情報検索テーブル12と、ハッシュ方
式によって、入力するネットワーク番号に対して、経路
選択情報及び検索情報を検索する検索手段13とから構
成されている。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to the drawings of FIGS. FIG. 1 is a configuration diagram showing a schematic configuration of a search device according to the present invention. In the figure, the search device is provided in each router that connects a plurality of networks, as in the conventional example. The search device has a hash structure and also has a route selection information table 11 having route selection information, a hash structure and a route selection information search table 12 having search information, and a network number to be input by a hash method. On the other hand, the search means 13 for searching the route selection information and the search information.
【0012】経路選択情報テーブル11は、任意に設定
された複数個のハッシュ値からなる経路選択情報ハッシ
ュテーブル11aと、上記ハッシュ値にそれぞれ対応し
て設けられた経路選択情報とから構成されている。な
お、本実施例では、上記経路選択情報ハッシュテーブル
11aのハッシュ値は、[0]から任意の個数あり、ま
た、経路選択情報は、上記ハッシュ値に対応して複数個
設けられているが、ここでは、説明の都合上、ハッシュ
値[a]に対応した経路選択情報A1,A2と、ハッシュ
値[b]に対応した経路選択情報A3,A4とを示す。The route selection information table 11 is composed of a route selection information hash table 11a consisting of a plurality of arbitrarily set hash values, and route selection information provided corresponding to each of the hash values. . In this embodiment, the hash value of the route selection information hash table 11a is an arbitrary number from [0], and a plurality of route selection information is provided corresponding to the hash value. Here, for convenience of explanation, the route selection information A1 and A2 corresponding to the hash value [a] and the route selection information A3 and A4 corresponding to the hash value [b] are shown.
【0013】すなわち、本実施例では、一つのネットワ
ークに複数のネットワーク番号が割り当てられている場
合、上記ネットワークに割り当てられているネットワー
ク番号の割り当て範囲の先頭のネットワーク番号X1〜
X4と、最終のネットワーク番号Y1〜Y4及びルーティ
ング可能な個々のネットワーク毎に、次に転送するルー
タのアドレスやホップ数等(図示せず)を含んだ経路選
択情報A1〜A4を、ネットワーク毎に一つ持っている。That is, in this embodiment, when a plurality of network numbers are assigned to one network, the first network number X1 to
X4, the final network numbers Y1 to Y4, and the routeable information A1 to A4 including the address of the router to be transferred next and the number of hops (not shown) for each routable network, for each network. I have one.
【0014】なお、本実施例では、各経路選択情報A1
〜A4は、先頭のネットワーク番号X1〜X4を選択キー
情報として、ハッシュ計算された値の一致するものが、
上記ハッシュ値のところにリンクされているが、本発明
はこれに限らず、例えばネットワークに割り当てられて
いるネットワーク番号のうちで使用頻度がもっとも多い
ネットワーク番号を選択キー情報としたハッシュ値のと
ころにリンクさせることも可能である。In this embodiment, each route selection information A1
..- A4 are the same as the hash-calculated values with the leading network numbers X1 to X4 as selection key information.
Although linked to the above hash value, the present invention is not limited to this, and for example, the hash value with the most frequently used network number among the network numbers assigned to the network as selection key information is used. It is also possible to link.
【0015】経路選択情報検索テーブル12は、任意に
設定された複数個のハッシュ値からなる経路選択情報検
索ハッシュテーブル12aと、上記ハッシュ値にそれぞ
れ対応して設けられた検索情報とから構成されている。
なお、本実施例では、上記経路選択情報検索ハッシュテ
ーブル12aのハッシュ値は、[0]から任意の個数あ
り、また、検索情報は、上記ハッシュ値に対応して複数
個設けられているが、ここでは、説明の都合上、ハッシ
ュ値[aa]に対応した検索情報B1,B2と、ハッシュ
値[bb]に対応した検索情報B3,B4とを示す。The route selection information search table 12 is composed of a route selection information search hash table 12a consisting of a plurality of arbitrarily set hash values, and search information provided corresponding to the hash values. There is.
In this embodiment, the hash value of the route selection information search hash table 12a is an arbitrary number from [0], and a plurality of search information is provided corresponding to the hash value. Here, for convenience of explanation, search information B1 and B2 corresponding to the hash value [aa] and search information B3 and B4 corresponding to the hash value [bb] are shown.
【0016】すなわち、本実施例では、上記ネットワー
ク番号の範囲の先頭のネットワーク番号X1〜X4以外の
ネットワーク番号Z1〜Z4と、上記先頭のネットワーク
番号X1〜X4等をそれぞれ含んだ検索情報B1〜B4を、
上記先頭でないネットワーク番号毎に一つ持っている。
なお、本実施例では、各検索情報B1〜B4は、先頭でな
いネットワーク番号Z1〜Z4を検索キー情報として、ハ
ッシュ計算された値と一致するものが、上記ハッシュ値
のところにリンクされているが、本発明はこれに限ら
ず、例えば使用頻度が多いネットワーク番号を選択キー
情報とした場合には、上記使用頻度が多いネットワーク
番号以外のネットワーク番号を検索キー情報としたハッ
シュ値のところにリンクさせることも可能である。That is, in this embodiment, search information B1 to B4 respectively including network numbers Z1 to Z4 other than the head network numbers X1 to X4 in the range of the network numbers and the head network numbers X1 to X4. To
You have one for each network number that is not at the beginning.
In the present embodiment, the search information B1 to B4 are linked to the hash value that matches the hash-calculated value with the non-leading network numbers Z1 to Z4 as the search key information. The present invention is not limited to this. For example, when a frequently used network number is used as the selection key information, a network number other than the frequently used network number is linked to the hash value as the search key information. It is also possible.
【0017】検索手段13は、ハッシュ検索のアルゴリ
ズムを用いて、ネットワーク番号をキーとしてハッシュ
計算された経路選択情報ハッシュテーブル11aのハッ
シュ値でリンクされている経路選択情報を検索する。検
索手段13は、このリンクされた経路選択情報の中から
データの宛先ネットワークに対する経路情報を探し出し
ており、これにより、ルータは、データを適切なネット
ワークに送信することができる。The search means 13 searches for the route selection information linked by the hash value of the route selection information hash table 11a which is hash-calculated using the network number as a key, using the hash search algorithm. The search means 13 searches the route information for the destination network of the data out of the linked route selection information, whereby the router can transmit the data to the appropriate network.
【0018】また、上記検索手段13は、該当する経路
選択情報がない場合には、経路選択情報検索ハッシュテ
ーブル12aの上記ハッシュ値でリンクされている検索
情報を検索する。ここで、検索手段13は、このリンク
された検索情報の中から、該当するネットワーク番号に
対応する先頭のネットワーク番号を検索する。そして、
上記検索した先頭のネットワーク番号を選択キー情報と
して、ハッシュ計算を行う。そして、検索手段13は、
計算された経路選択情報ハッシュテーブル11aのハッ
シュ値でリンクされている経路選択情報を検索する。When there is no corresponding route selection information, the search means 13 searches the search information linked by the hash value in the route selection information search hash table 12a. Here, the search means 13 searches the headed network number corresponding to the corresponding network number from the linked search information. And
Hash calculation is performed using the retrieved first network number as selection key information. Then, the search means 13
The route selection information linked with the calculated hash value of the route selection information hash table 11a is searched.
【0019】また、検索手段13は、該当する検索情報
がない場合には、経路選択情報テーブルを検索して、該
当する検索情報がある場合には、経路選択情報を検索す
る際に対象となっているネットワーク番号の経路選択情
報検索テーブルを生成する。なお、この経路選択情報検
索テーブルの生成は、検索手段13によって行われ、一
度検索を行った同一のネットワーク番号の検索に際して
は、次からは、上記経路選択情報検索テーブル及び経路
選択情報検索テーブルを検索して、経路選択キーとなっ
ている先頭のネットワーク番号を、取得することがで
き、経路選択情報テーブルを全て検索する手順がなくな
る。Further, the search means 13 searches the route selection information table when there is no corresponding search information, and when there is the corresponding search information, it becomes a target when searching the route selection information. The routing information search table of the network number that is set is generated. It should be noted that the route selection information search table is generated by the search means 13, and when searching for the same network number once searched, the route selection information search table and the route selection information search table will be used from the next time. It is possible to retrieve and obtain the leading network number that is the route selection key, and there is no need to search the entire route selection information table.
【0020】次に、あるネットワーク番号に対する経路
選択情報を探し出すための検索動作を図2乃至図4の図
面に基づいて説明する。図2は、本実施例に係る検索装
置を内部に設けたルータを用いて、複数のネットワーク
を接続させたシステムの一例を示す図である。図におい
て、ルータ20は、ネットワーク1,2,5とそれぞれ
接続されている。ルータ21は、ネットワーク3,5と
それぞれ接続されている。ルータ22は、ネットワーク
2,6とそれぞれ接続されている。ルータ23は、ネッ
トワーク4,6,7とそれぞれ接続されている。ルータ
24は、ネットワーク1,8とそれぞれ接続されてい
る。ルータ25は、ネットワーク6,9とそれぞれ接続
されている。また、ルータ26は、ネットワーク7,1
0とそれぞれ接続されている。Next, the search operation for searching the route selection information for a certain network number will be described with reference to the drawings of FIGS. FIG. 2 is a diagram showing an example of a system in which a plurality of networks are connected using a router provided with the search device according to the present embodiment. In the figure, a router 20 is connected to each of the networks 1, 2 and 5. The router 21 is connected to the networks 3 and 5, respectively. The router 22 is connected to each of the networks 2 and 6. The router 23 is connected to each of the networks 4, 6 and 7. The router 24 is connected to each of the networks 1 and 8. The router 25 is connected to the networks 6 and 9, respectively. In addition, the router 26 is connected to the network 7, 1.
0 and 0 respectively.
【0021】ここで、例えばネットワーク1は、「10
01」〜「2000」の範囲のネットワーク番号を、ネ
ットワーク2は、「101」〜「180」の範囲のネッ
トワーク番号を、ネットワーク3は、「11」〜「5
0」の範囲のネットワーク番号を、また、ネットワーク
4は、「10001」〜「10005」の範囲のネット
ワーク番号を有しているものとする。Here, for example, the network 1 is "10".
Network numbers in the range of 01 to 2000, network 2 in the range of 101 to 180, network 3 in the range of 11 to 5.
It is assumed that the network number in the range of “0” and the network 4 in the range of “10001” to “10005”.
【0022】このような状態において、各ルータは、例
えばハッシュ構造の図3に示すような経路選択情報テー
ブル11と、図4に示すような経路選択情報検索テーブ
ル12とを有している。すなわち、経路選択情報テーブ
ル11において、経路選択情報A1には、ネットワーク
1の先頭のネットワーク番号「1001」と最終のネッ
トワーク番号「2000」が含まれており、経路選択情
報A2には、ネットワーク2の先頭のネットワーク番号
「101」と最終のネットワーク番号「180」が含ま
れている。上記経路選択情報A1,A2は、上記先頭のネ
ットワーク番号を選択キー情報として、ハッシュ計算さ
れた経路選択情報ハッシュテーブル11aのハッシュ値
[a]のところにリンクされている。In such a state, each router has, for example, a route selection information table 11 having a hash structure as shown in FIG. 3 and a route selection information search table 12 as shown in FIG. That is, in the route selection information table 11, the route selection information A1 includes the first network number “1001” and the last network number “2000” of the network 1, and the route selection information A2 includes the network number 2 of the network 2. The first network number "101" and the last network number "180" are included. The route selection information A1 and A2 are linked to the hash value [a] of the hash-calculated route selection information hash table 11a using the leading network number as the selection key information.
【0023】経路選択情報A3には、ネットワーク3の
先頭のネットワーク番号「11」と最終のネットワーク
番号「50」が含まれており、経路選択情報A4には、
ネットワーク4の先頭のネットワーク番号「1000
1」と最終のネットワーク番号「10005」が含まれ
ている。上記経路選択情報A3,A4は、上記先頭のネッ
トワーク番号を選択キー情報として、ハッシュ計算され
た経路選択情報ハッシュテーブル11aのハッシュ値
[b]のところにリンクされている。The route selection information A3 includes the first network number "11" and the last network number "50" of the network 3, and the route selection information A4 includes
Network number “1000 at the beginning of network 4
1 ”and the final network number“ 10005 ”are included. The route selection information A3, A4 is linked to the hash value [b] of the hash-calculated route selection information hash table 11a using the leading network number as the selection key information.
【0024】また、経路選択情報検索テーブル12にお
いて、検索情報B1には、上記ネットワーク2の番号範
囲のネットワーク番号「156」と、先頭のネットワー
ク番号「101」が含まれており、検索情報B2には、
上記ネットワーク1の番号範囲の例えばネットワーク番
号「10005」と、先頭のネットワーク番号「100
1」が含まれている。上記検索情報B1,B2は、上記先
頭のネットワーク番号以外のネットワーク番号「15
6」、「10005」を検索キー情報として、ハッシュ
計算された経路選択情報検索ハッシュテーブル12aの
ハッシュ値[aa]のところにリンクされている。In the route selection information search table 12, the search information B1 includes the network number "156" in the number range of the network 2 and the head network number "101", and the search information B2 is included in the search information B2. Is
For example, the network number “10005” in the number range of the network 1 and the leading network number “100”
1 ”is included. The search information B1 and B2 are network numbers "15" other than the network number at the beginning.
6 "and" 10005 "are used as search key information, and the hash value [aa] of the hash calculation route selection information search hash table 12a is linked.
【0025】検索情報B3には、上記ネットワーク3の
番号範囲の例えばネットワーク番号「30」と、先頭の
ネットワーク番号「11」が含まれており、検索情報B
4には、上記ネットワーク4の番号範囲の例えばネット
ワーク番号「160」と、先頭のネットワーク番号「1
01」が含まれている。上記検索情報B3,B4は、上記
先頭のネットワーク番号以外のネットワーク番号「3
0」、「160」を検索キー情報として、ハッシュ計算
された経路選択情報検索ハッシュテーブル12aのハッ
シュ値[bb]のところにリンクされている。The search information B3 includes, for example, the network number "30" in the number range of the network 3 and the head network number "11".
4 includes, for example, a network number “160” in the number range of the network 4 and a leading network number “1”.
01 ”is included. The search information B3 and B4 are network numbers “3
It is linked to the hash value [bb] of the route selection information search hash table 12a that has been hash-calculated with 0 "and" 160 "as search key information.
【0026】このような状態において、例えばネットワ
ーク番号「1001」を経路選択情報を検索する場合に
は、上記「1001」は、ネットワーク番号の範囲の先
頭であるので、検索手段13は、経路選択情報ハッシュ
テーブル11aのハッシュ値[a]のリンクをたどって
いけば、対応する経路選択情報A1を探し出すことがで
きる。In such a state, for example, when searching the route selection information for the network number "1001", since the above "1001" is the head of the range of network numbers, the search means 13 causes the route selection information. By following the link of the hash value [a] in the hash table 11a, the corresponding route selection information A1 can be found.
【0027】また、例えばネットワーク番号「160」
を経路選択情報を検索する場合には、まず上記ネットワ
ーク番号でハッシュ計算された経路選択情報ハッシュテ
ーブル11aのハッシュ値のリンクをたどる。しかし、
上記ネットワーク番号は、ネットワーク番号の範囲の先
頭でないので、検索手段13は、対応する経路選択情報
を探し出すことができない。そこで、次に、検索手段1
3は、上記ネットワーク番号でハッシュ計算された経路
選択情報検索ハッシュテーブル12aのハッシュ値[b
b]のリンクをたどっていけば、対応する検索情報B4
を探し出すことができる。そして、上記検索情報B4内
に格納されている先頭のネットワーク番号である「10
1」から、ハッシュ計算された経路選択情報ハッシュテ
ーブル11aのハッシュ値[a]のリンクをたどってい
けば、対応する経路選択情報A2を探し出すことができ
る。Also, for example, the network number "160"
When the route selection information is searched for, first, the links of the hash values of the route selection information hash table 11a which are hash-calculated by the network number are traced. But,
Since the network number is not at the beginning of the range of network numbers, the search means 13 cannot find the corresponding route selection information. Therefore, next, the search means 1
3 is the hash value [b of the route selection information search hash table 12a calculated by hashing with the network number.
b], the corresponding search information B4
You can find out. Then, the first network number “10” stored in the search information B4 is stored.
1 ”, the corresponding route selection information A2 can be found by following the link of the hash value [a] of the hash-calculated route selection information hash table 11a.
【0028】また、新たなネットワーク番号に対応する
経路選択情報を検索する場合、すなわち上記経路選択情
報テーブル11及び経路選択情報検索テーブル12の検
索でも、経路選択情報及び経路選択情報の取得ができな
い場合には、検索手段13で、経路選択情報テーブル1
1に格納されている全ての経路選択情報を順に検索し
て、該当するものを探し出す。次に、検索したネットワ
ーク番号でハッシュ計算された経路選択情報検索ハッシ
ュテーブル12aのハッシュ値に検索情報をリンクさせ
て、経路選択情報検索テーブルを作成する。When the route selection information corresponding to the new network number is searched, that is, when the route selection information table 11 and the route selection information search table 12 are not searched, the route selection information and the route selection information cannot be acquired. In the search means 13, the route selection information table 1
All route selection information stored in 1 is searched in order to find the corresponding one. Next, the search information is linked to the hash value of the route selection information search hash table 12a that is hash-calculated by the searched network number to create the route selection information search table.
【0029】上述したごとく、各ルータでは、最初は、
どのネットワーク番号に対する経路選択情報検索テーブ
ルも持っていないが、一度経路選択情報の検索を行う
と、そのネットワーク番号に対して経路選択情報検索テ
ーブルが存在することになる。従って、本実施例では、
一つのネットワークに複数の連続したネットワーク番号
が割り当てられている場合も、経路選択情報テーブルの
他に、経路選択情報検索テーブルを使用して、2段階の
ハッシュ検索を行うので、ルーティング可能な全てのネ
ットワークのネットワーク番号に対する経路選択情報を
管理することなく、該当するハッシュ値にリンクされた
一部の検索情報と経路選択情報を検索するだけでよく、
短時間で対応する経路選択情報を探し出すことができ
る。As described above, in each router, at first,
Although it does not have the route selection information search table for any network number, once the route selection information is searched, the route selection information search table exists for that network number. Therefore, in this embodiment,
Even when a plurality of consecutive network numbers are assigned to one network, a two-step hash search is performed using the route selection information search table in addition to the route selection information table, so all routable You do not have to manage the route selection information for the network number of the network, you only have to search a part of the search information and route selection information linked to the corresponding hash value,
It is possible to find the corresponding route selection information in a short time.
【0030】また、本実施例では、経路選択情報テーブ
ルが、一つのネットワークに対して一つなので、ネット
ワーク対する情報の追加・削除を容易に行うことができ
る。さらに、本実施例では、検索手段によって、ネット
ワーク番号に対応する経路選択情報検索テーブルを作成
し、対応するハッシュ値に該作成した経路選択情報検索
テーブルをリンクさせるので、経路選択情報の作成を容
易に行うことができる。Further, in this embodiment, since there is one route selection information table for one network, addition / deletion of information for the network can be easily performed. Further, in the present embodiment, the search means creates the route selection information search table corresponding to the network number and links the created route selection information search table to the corresponding hash value, which facilitates the creation of the route selection information. Can be done.
【0031】これにより、本実施例では、上記経路選択
情報の中からデータの宛先ネットワークに対する経路選
択情報を正確、かつ、容易に探し出して、上記データを
適切なネットワークに送信することが可能となり、転送
の信頼性を向上させることができる。As a result, in the present embodiment, it becomes possible to accurately and easily find the route selection information for the destination network of the data from the route selection information and transmit the data to the appropriate network. Transfer reliability can be improved.
【0032】[0032]
【発明の効果】以上説明したように、本発明では、ハッ
シュ方式によって、経路選択情報テーブル内に記憶され
た経路選択情報の中から所定の経路選択情報を検索する
経路選択情報の検索装置において、一つのネットワーク
に対して複数のネットワーク番号が割り当てられている
場合に、選択キー情報として前記割り当てられたネット
ワーク番号のうちの一つのネットワーク番号を含む経路
選択情報テーブルと、検索キー情報として前記選択キー
情報となっていないネットワーク番号と、該選択キー情
報となっているネットワーク番号とを含む経路選択情報
検索テーブルと、経路選択を行うネットワーク番号を、
前記選択キー情報として、経路選択情報テーブルを検索
し、該当する経路選択情報がない場合には、前記ネット
ワーク番号を、検索キー情報として経路選択情報検索テ
ーブル内の前記選択キー情報となっているネットワーク
番号を探し出す検索手段とを備えたので、一つのネット
ワークに対して複数のネットワーク番号が割り当てられ
ている場合でも、ハッシュ方式を用いて全てのネットワ
ーク番号から対応する経路選択情報を探し出すことがで
きるとともに、経路選択情報テーブルが、一つのネット
ワークに対して一つなので、ネットワーク対する情報の
追加・削除を容易に行うことができる。As described above, according to the present invention, in the route selection information retrieval device for retrieving predetermined route selection information from the route selection information stored in the route selection information table by the hash method, When a plurality of network numbers are assigned to one network, a route selection information table including one network number of the assigned network numbers as selection key information, and the selection key as search key information. A route selection information search table including a network number that is not information and a network number that is the selection key information, and a network number for performing route selection,
The route selection information table is searched as the selection key information, and if there is no corresponding route selection information, the network number is used as the search key information and the network is the selection key information in the route selection information search table. Since a search means for finding a number is provided, even if a plurality of network numbers are assigned to one network, it is possible to find the corresponding route selection information from all the network numbers by using the hash method. Since there is one route selection information table for one network, it is possible to easily add / delete information for the network.
【0033】請求項3では、検索手段は、前記経路選択
を行うネットワーク番号に対応する経路選択情報を検索
できない場合には、前記経路選択情報テーブルを全て検
索し、該当する経路選択情報を検索できた場合には、当
該ネットワーク番号に対応する経路選択情報検索テーブ
ルを作成し、対応するハッシュ値に該作成した経路選択
情報検索テーブルをリンクさせるので、経路選択情報の
作成を容易に行うことができる。According to a third aspect of the present invention, the search means, when the route selection information corresponding to the network number for which the route is selected cannot be searched, searches the entire route selection information table and searches for the corresponding route selection information. In this case, the route selection information search table corresponding to the network number is created, and the created route selection information search table is linked to the corresponding hash value, so that the route selection information can be created easily. .
【図1】本発明に係る検索装置の概略構成を示す構成図
である。FIG. 1 is a configuration diagram showing a schematic configuration of a search device according to the present invention.
【図2】本実施例に係る検索装置を内部に設けたルータ
を用いて、複数のネットワークを接続させたシステムの
一例を示す図である。FIG. 2 is a diagram showing an example of a system in which a plurality of networks are connected by using a router provided with the search device according to the present embodiment.
【図3】図1に示した経路選択情報テーブルの具体例を
示す図である。FIG. 3 is a diagram showing a specific example of the route selection information table shown in FIG.
【図4】図1に示した経路選択情報検索テーブルの具体
例を示す図である。FIG. 4 is a diagram showing a specific example of the route selection information search table shown in FIG.
11 経路選択情報テーブル 11a 経路選択情報ハッシュテーブル 12 経路選択情報検索テーブル 12a 経路選択情報検索ハッシュテーブル 13 検索手段 A1〜A4 経路選択情報 B1〜B4 検索情報 X1〜X4 先頭のネットワーク番号 Y1〜Y4 最終のネットワーク番号 Z1〜Z4 先頭のネットワーク番号以外のネットワーク
番号11 route selection information table 11a route selection information hash table 12 route selection information search table 12a route selection information search hash table 13 search means A1 to A4 route selection information B1 to B4 search information X1 to X4 first network number Y1 to Y4 final Network number Z1 to Z4 Network numbers other than the first network number
───────────────────────────────────────────────────── フロントページの続き (72)発明者 斉藤 秀一 東京都千代田区丸の内2丁目6番1号 古 河電気工業株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Shuichi Saito 2-6-1, Marunouchi, Chiyoda-ku, Tokyo Furukawa Electric Co., Ltd.
Claims (3)
選択情報の中から所定の経路選択情報を検索する経路選
択情報の検索装置において、 一つのネットワークに対して複数のネットワーク番号が
割り当てられている場合に、選択キー情報として前記割
り当てられたネットワーク番号のうちの一つのネットワ
ーク番号を含む経路選択情報テーブルと、 検索キー情報として前記選択キー情報となっていないネ
ットワーク番号と、該選択キー情報となっているネット
ワーク番号とを含む経路選択情報検索テーブルと、 前記経路選択情報テーブル及び経路選択情報検索テーブ
ルから、当該ネットワークに対する経路選択情報を検索
する検索手段とを備えたことを特徴とする検索装置。1. In a route selection information search device that searches for predetermined route selection information from stored route selection information by a hash method, a plurality of network numbers are assigned to one network. , A route selection information table including one of the assigned network numbers as the selection key information, a network number that is not the selection key information as the search key information, and the selection key information. A search device comprising: a route selection information search table including a network number that is present; and a search unit that searches route selection information for the network from the route selection information table and the route selection information search table.
ワーク番号を、前記選択キー情報として、経路選択情報
テーブルを検索し、該当する経路選択情報がない場合に
は、前記ネットワーク番号を、検索キー情報として経路
選択情報検索テーブルを検索して、該経路選択情報検索
テーブル内の前記選択キー情報となっているネットワー
ク番号を探し出すことを特徴とする請求項1記載の検索
装置。2. The search means searches the route selection information table by using the network number for route selection as the selection key information, and if there is no corresponding route selection information, searches the network number for the search key. 2. The search device according to claim 1, wherein a route selection information search table is searched as information, and a network number that is the selection key information in the route selection information search table is searched for.
ットワーク番号に対応する経路選択情報を検索できない
場合には、前記経路選択情報テーブルを全て検索し、該
当する経路選択情報を検索できた場合には、当該ネット
ワーク番号に対応する経路選択情報検索テーブルを作成
し、対応するハッシュ値に該作成した経路選択情報検索
テーブルをリンクさせることを特徴とする請求項2記載
の検索装置。3. If the search means cannot search the route selection information corresponding to the network number for which the route is selected, it searches all of the route selection information tables and can find the corresponding route selection information. 3. The search device according to claim 2, wherein the route selection information search table corresponding to the network number is created, and the created route selection information search table is linked to the corresponding hash value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6162387A JP3059639B2 (en) | 1994-07-14 | 1994-07-14 | Route selection information search device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6162387A JP3059639B2 (en) | 1994-07-14 | 1994-07-14 | Route selection information search device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0832613A true JPH0832613A (en) | 1996-02-02 |
| JP3059639B2 JP3059639B2 (en) | 2000-07-04 |
Family
ID=15753620
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6162387A Expired - Fee Related JP3059639B2 (en) | 1994-07-14 | 1994-07-14 | Route selection information search device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3059639B2 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000307641A (en) * | 1999-04-16 | 2000-11-02 | Nec Corp | Transfer destination search method, transfer destination search device, search table recording medium, and search program recording medium |
| JP2001509978A (en) * | 1996-12-16 | 2001-07-24 | ジュニパー ネットワークス | Fast Variable Length Best Match Lookup in Switching Devices |
| CN1319325C (en) * | 2003-04-16 | 2007-05-30 | 华为技术有限公司 | Method of finding route table item using ltsh chain table |
| US7412454B2 (en) | 2003-09-03 | 2008-08-12 | International Business Machines Corporation | Data structure supporting random delete and timer function |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009142091A1 (en) | 2008-05-21 | 2009-11-26 | ジーナスオーディオ株式会社 | Speaker |
-
1994
- 1994-07-14 JP JP6162387A patent/JP3059639B2/en not_active Expired - Fee Related
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001509978A (en) * | 1996-12-16 | 2001-07-24 | ジュニパー ネットワークス | Fast Variable Length Best Match Lookup in Switching Devices |
| JP2000307641A (en) * | 1999-04-16 | 2000-11-02 | Nec Corp | Transfer destination search method, transfer destination search device, search table recording medium, and search program recording medium |
| CN1319325C (en) * | 2003-04-16 | 2007-05-30 | 华为技术有限公司 | Method of finding route table item using ltsh chain table |
| US7412454B2 (en) | 2003-09-03 | 2008-08-12 | International Business Machines Corporation | Data structure supporting random delete and timer function |
| US7792873B2 (en) | 2003-09-03 | 2010-09-07 | International Business Machines Corporation | Data structure supporting random delete and timer function |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3059639B2 (en) | 2000-07-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100864888B1 (en) | Routing system and rule entry management method of routing system | |
| US6665297B1 (en) | Network routing table | |
| US5909440A (en) | High speed variable length best match look-up in a switching device | |
| US7219184B2 (en) | Method and apparatus for longest prefix matching in processing a forwarding information database | |
| JP3250544B2 (en) | Transfer destination search method, transfer destination search device, search table recording medium, and search program recording medium | |
| CA2412006C (en) | System for retrieving destination of a packet with plural headers | |
| JP2003510963A (en) | Method and apparatus for a four-way hash table | |
| EP0948849A2 (en) | High speed variable length best match look-up in a switching device | |
| US20080133494A1 (en) | Method and apparatus for searching forwarding table | |
| JP2001326679A (en) | Information device, table search device, table search method, and recording medium | |
| JP3881663B2 (en) | Packet classification apparatus and method using field level tree | |
| WO2009076854A1 (en) | Data cache system and method for realizing high capacity cache | |
| JP4014155B2 (en) | Information processing apparatus and method, program, data structure, and computer-readable recording medium | |
| US20040210588A1 (en) | Methods and apparatus for address lookup | |
| JPH0832613A (en) | Route selection information retrieval device | |
| US7590112B2 (en) | Packet forwarding apparatus of high speed routing system and routing lookup method using the same | |
| US7751346B2 (en) | Apparatus for searching TCP and UDP sockets | |
| JPH0581102A (en) | System for controlling table | |
| JP2006246489A (en) | Method for storing prefix set in database and program for causing computer to execute the method | |
| JP4726310B2 (en) | Information retrieval apparatus, information retrieval multiprocessor and router | |
| JP3092524B2 (en) | Routing system | |
| KR20020077686A (en) | Routing Table Lookup Using Indirected RAM Indexing | |
| CN100379230C (en) | Router, method for managing data transmission path and computer program thereof | |
| Tao et al. | Guided multiple hashing: Achieving near perfect balance for fast routing lookup | |
| JP3699374B2 (en) | Routing table update method, program, and recording medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |