JP3059639B2 - Route selection information search device - Google Patents

Route selection information search device

Info

Publication number
JP3059639B2
JP3059639B2 JP6162387A JP16238794A JP3059639B2 JP 3059639 B2 JP3059639 B2 JP 3059639B2 JP 6162387 A JP6162387 A JP 6162387A JP 16238794 A JP16238794 A JP 16238794A JP 3059639 B2 JP3059639 B2 JP 3059639B2
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.)
Expired - Fee Related
Application number
JP6162387A
Other languages
Japanese (ja)
Other versions
JPH0832613A (en
Inventor
美香子 難波
洋一 樋口
滋子 志村
秀一 斉藤
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.)
THE FURUKAW ELECTRIC CO., LTD.
Original Assignee
THE FURUKAW ELECTRIC CO., LTD.
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 THE FURUKAW ELECTRIC CO., LTD. filed Critical THE FURUKAW ELECTRIC CO., LTD.
Priority to JP6162387A priority Critical patent/JP3059639B2/en
Publication of JPH0832613A publication Critical patent/JPH0832613A/en
Application granted granted Critical
Publication of JP3059639B2 publication Critical patent/JP3059639B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、接続された複数のネッ
トワーク間でデータ転送を行うための経路選択情報を検
索する検索装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a search device for searching for route selection information for performing data transfer between a plurality of connected networks.

【0002】[0002]

【従来の技術】従来、この種の検索装置は、複数のネッ
トワークを接続するルータ内に設けられていた。上記検
索装置は、ルーティング可能な個々のネットワーク毎
に、次に転送するルータのアドレスやホップ数等を含ん
だ経路選択情報を有しており、この全ての経路選択情報
の中からデータの宛先ネットワークに対する経路情報を
探し出して、データを適切なネットワークに送信してい
た。この際、検索装置では、ハッシュ方式を使用して、
個々の経路選択情報を、ネットワークのネットワーク番
号をキーとしたハッシュテーブルのハッシュ値のところ
にリンクしておく。そして、あるネットワークに対する
経路選択情報を探し出す時には、ハッシュ値が同じであ
る情報のみを検索するので、全ての情報の中から検索す
る必要がなく、短時間での検索が可能となっていた。上
記検索装置では、一つのネットワークに対して一つのネ
ットワーク番号が割り当てられている場合は、上述の方
法によって経路選択情報の管理・検索が容易に行える。
2. Description of the Related Art Heretofore, this type of search device has been provided in a router connecting a plurality of networks. The search device has, for each routable network, route selection information including the address of the router to be transferred next, the number of hops, and the like. Was finding routing information for and sending the data to the appropriate network. At this time, the search device uses a hash method,
Each piece of route selection information is linked to a hash value of a hash table using the network number of the network as a key. When searching for 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 search device, when one network number is assigned to one network, the management and search of the route selection information can be easily performed by the above-described 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 defined. In such a case, the connection to one network is possible. When connecting more nodes than the required number of nodes, a plurality of network numbers may be assigned to one network to increase the number of connectable nodes.

【0004】ところが、このような場合に、上記検索装
置を用いて、個々のネットワーク番号毎に経路選択情報
を持つように設定すると、割り当てられたネットワーク
番号の範囲が広ければ、それに対応した多くの経路選択
情報を持たなければならず、記憶容量が大きくなるとい
う問題点があった。また、あるネットワーク対する情報
の追加・削除も、そのネットワークに割り当てられてい
るネットワーク番号の分だけ、行わなければならないの
で、効率が劣化するという問題点があった。さらに、ネ
ットワーク毎に経路選択情報を持つようにすると、ハッ
シュのキーとして使用できるネットワーク番号は、一つ
だけなので、上述のようなハッシュ方式では、キーとな
っていない、その他のネットワーク番号から対応する経
路選択情報を探し出すことができないという問題点があ
った。
However, in such a case, if the search device is used to set the route selection information for each network number, if the range of the assigned network numbers is wide, many There is a problem in that it is necessary to have the route selection information and the storage capacity becomes large. In addition, information has to be added to or deleted from a certain network by the number of the network assigned to the network, so that efficiency is degraded. Furthermore, if route selection information is provided for each network, only one network number can be used as a hash key. Therefore, in the above-described hashing method, 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 corresponding path selection information is obtained from all the network numbers using a hash method. It is an object of the present invention to provide a search device that can search for a search. Another object of the present invention is to provide a search device that can easily add and delete information to and from a network.

【0006】さらに、本発明の他の目的は、経路選択情
報の作成を容易に行うことができる検索装置を提供する
ことを目的とする。
A further object of the present invention is to provide a search device which can easily create route selection information.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明では、ハッシュ方式によって、経路選択情報
テーブル内に記憶された経路選択情報の中から所定の経
路選択情報を検索する経路選択情報の検索装置におい
て、一つのネットワークに対して複数のネットワーク番
号が割り当てられている場合に、選択キー情報として前
記割り当てられたネットワーク番号のうちの一つのネッ
トワーク番号を含む経路選択情報テーブルと、検索キー
情報として前記選択キー情報となっていないネットワー
ク番号と、該選択キー情報となっているネットワーク番
号とを含む経路選択情報検索テーブルと、経路選択を行
うネットワーク番号を、前記選択キー情報として、経路
選択情報テーブルを検索し、該当する経路選択情報がな
い場合には、前記ネットワーク番号を、検索キー情報と
して経路選択情報検索テーブル内の前記選択キー情報と
なっているネットワーク番号を探し出す検索手段とを備
えた検索装置が提供される。
In order to achieve the above object, according to the present invention, there is provided a route selection information for retrieving predetermined route selection information from route selection information stored in a route selection information table by a hash method. A plurality of network numbers assigned to one network, a route selection information table including one of the assigned network numbers as selection key information; A route selection information search table including a network number that is not the selection key information as information and a network number that is the selection key information, and a network number for performing a route selection, as the selection key information, Search the information table, and if 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では、検索手段は、前記経路選択
を行うネットワーク番号に対応する経路選択情報を検索
できない場合には、前記経路選択情報テーブルを全て検
索し、該当する経路選択情報を検索できた場合には、当
該ネットワーク番号に対応する経路選択情報検索テーブ
ルを作成し、対応するハッシュ値に該作成した経路選択
情報検索テーブルをリンクさせる。
According to a third aspect of the present invention, when the search means cannot search the route selection information corresponding to the network number for performing the route selection, the search means can search the entire route selection information table and search the corresponding route selection information. In this case, a 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 retrieval apparatus has a route selection information table and a route selection information search table. 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, it is possible to easily add / delete the route selection information.

【0010】請求項3では、経路選択情報の検索ができ
ない場合には、経路選択情報テーブルを全て検索し、検
索できた場合には、経路選択情報検索テーブルを作成
し、対応するハッシュ値にリンクさせるので、一度検索
を行ったネットワーク番号に対しては、次から経路選択
情報テーブル及び経路選択情報検索テーブルを検索して
選択キーとなっているネットワーク番号を取得すること
ができる。
According to a third aspect of the present invention, when the route selection information cannot be searched, the entire route selection information table is searched, and when the search is successful, a route selection information search table is created and linked to the corresponding hash value. Therefore, for the network number once searched, the route selection information table and the route selection information search table can be searched from the next to obtain the network number serving as the selection key.

【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 FIGS. FIG. 1 is a configuration diagram showing a schematic configuration of a search device according to the present invention. In the figure, a search device is provided in each router connecting a plurality of networks, as in the conventional example. The search device has a route selection information table 11 having a hash structure and having route selection information; a route selection information search table 12 having a hash structure and having search information; On the other hand, it comprises a search means 13 for searching for route selection information and 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 comprising a plurality of arbitrarily set hash values, and route selection information provided corresponding to the hash values. . In this embodiment, the hash value of the route selection information hash table 11a has an arbitrary number from [0], and a plurality of pieces of route selection information are provided corresponding to the hash value. Here, for convenience of explanation, the route selection information A1, A2 corresponding to the hash value [a] and the route selection information A3, A4 corresponding to the hash value [b] are shown.

【0013】すなわち、本実施例では、一つのネットワ
ークに複数のネットワーク番号が割り当てられている場
合、上記ネットワークに割り当てられているネットワー
ク番号の割り当て範囲の先頭のネットワーク番号X1〜
X4と、最終のネットワーク番号Y1〜Y4及びルーティ
ング可能な個々のネットワーク毎に、次に転送するルー
タのアドレスやホップ数等(図示せず)を含んだ経路選
択情報A1〜A4を、ネットワーク毎に一つ持っている。
That is, in the present embodiment, when a plurality of network numbers are assigned to one network, the first network numbers X1 to X1 of the allocation range of the network numbers assigned to the network are assigned.
X4, the final network numbers Y1 to Y4, and the routing information A1 to A4 including the address of the router to be transferred next, the number of hops, etc. (not shown) for each routable network. I have one.

【0014】なお、本実施例では、各経路選択情報A1
〜A4は、先頭のネットワーク番号X1〜X4を選択キー
情報として、ハッシュ計算された値の一致するものが、
上記ハッシュ値のところにリンクされているが、本発明
はこれに限らず、例えばネットワークに割り当てられて
いるネットワーク番号のうちで使用頻度がもっとも多い
ネットワーク番号を選択キー情報としたハッシュ値のと
ころにリンクさせることも可能である。
In this embodiment, each route selection information A1
A4 to A4 have matching hash-calculated values using the first network numbers X1 to X4 as selection key information.
Although it is linked to the above hash value, the present invention is not limited to this. For example, the hash value with the most frequently used network number among the network numbers assigned to the network as the selection key information It is also possible to link.

【0015】経路選択情報検索テーブル12は、任意に
設定された複数個のハッシュ値からなる経路選択情報検
索ハッシュテーブル12aと、上記ハッシュ値にそれぞ
れ対応して設けられた検索情報とから構成されている。
なお、本実施例では、上記経路選択情報検索ハッシュテ
ーブル12aのハッシュ値は、[0]から任意の個数あ
り、また、検索情報は、上記ハッシュ値に対応して複数
個設けられているが、ここでは、説明の都合上、ハッシ
ュ値[aa]に対応した検索情報B1,B2と、ハッシュ
値[bb]に対応した検索情報B3,B4とを示す。
The route selection information search table 12 comprises a route selection information search hash table 12a comprising a plurality of arbitrarily set hash values, and search information provided corresponding to the hash values. I have.
In the present embodiment, the hash value of the route selection information search hash table 12a has an arbitrary number from [0], and a plurality of search information are provided corresponding to the hash value. Here, for convenience of explanation, search information B1, B2 corresponding to the hash value [aa] and search information B3, 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, the search information B1 to B4 including the network numbers Z1 to Z4 other than the first network numbers X1 to X4 in the range of the network numbers and the first network numbers X1 to X4, respectively. To
It has one for each network number that is not the top.
In the present embodiment, each of the search information B1 to B4 is linked to the above-mentioned hash value by using the network number Z1 to Z4 which is not the top as the search key information and matching the hash value. However, the present invention is not limited to this. For example, when a frequently used network number is used as selection key information, a network number other than the frequently used network number is linked to a hash value as search key information. It is also possible.

【0017】検索手段13は、ハッシュ検索のアルゴリ
ズムを用いて、ネットワーク番号をキーとしてハッシュ
計算された経路選択情報ハッシュテーブル11aのハッ
シュ値でリンクされている経路選択情報を検索する。検
索手段13は、このリンクされた経路選択情報の中から
データの宛先ネットワークに対する経路情報を探し出し
ており、これにより、ルータは、データを適切なネット
ワークに送信することができる。
The retrieval means 13 retrieves, using the hash retrieval algorithm, the path selection information linked by the hash value of the path selection information hash table 11a which has been hashed using the network number as a key. The search means 13 finds the route information for the destination network of the data from the linked route selection information, whereby the router can transmit the data to an appropriate network.

【0018】また、上記検索手段13は、該当する経路
選択情報がない場合には、経路選択情報検索ハッシュテ
ーブル12aの上記ハッシュ値でリンクされている検索
情報を検索する。ここで、検索手段13は、このリンク
された検索情報の中から、該当するネットワーク番号に
対応する先頭のネットワーク番号を検索する。そして、
上記検索した先頭のネットワーク番号を選択キー情報と
して、ハッシュ計算を行う。そして、検索手段13は、
計算された経路選択情報ハッシュテーブル11aのハッ
シュ値でリンクされている経路選択情報を検索する。
If there is no corresponding route selection information, the search means 13 searches for search information linked by the hash value in the route selection information search hash table 12a. Here, the search means 13 searches the linked search information for the first network number corresponding to the corresponding network number. And
A hash calculation is performed using the searched top network number as selection key information. Then, the search means 13
The route selection information linked by the calculated hash value of the route selection information hash table 11a is searched.

【0019】また、検索手段13は、該当する検索情報
がない場合には、経路選択情報テーブルを検索して、該
当する検索情報がある場合には、経路選択情報を検索す
る際に対象となっているネットワーク番号の経路選択情
報検索テーブルを生成する。なお、この経路選択情報検
索テーブルの生成は、検索手段13によって行われ、一
度検索を行った同一のネットワーク番号の検索に際して
は、次からは、上記経路選択情報検索テーブル及び経路
選択情報検索テーブルを検索して、経路選択キーとなっ
ている先頭のネットワーク番号を、取得することがで
き、経路選択情報テーブルを全て検索する手順がなくな
る。
If there is no corresponding search information, the search means 13 searches the route selection information table, and if there is such search information, the search means 13 becomes a target when searching for the route selection information. A route selection information search table of the network number is generated. The generation of the route selection information search table is performed by the search means 13, and when searching for the same network number once searched, the above-mentioned route selection information search table and the route selection information search table will be described below. By searching, the first network number serving as the route selection key can be obtained, and the procedure for searching the entire route selection information table is eliminated.

【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, a search operation for searching for route selection information for a certain network number will be described with reference to FIGS. FIG. 2 is a diagram illustrating an example of a system in which a plurality of networks are connected using a router in which the search device according to the embodiment is provided. In the figure, a router 20 is connected to networks 1, 2, 5 respectively. The router 21 is connected to the networks 3 and 5, respectively. The router 22 is connected to the networks 2 and 6, respectively. The router 23 is connected to the networks 4, 6, and 7, respectively. The router 24 is connected to the networks 1 and 8, respectively. The router 25 is connected to the networks 6 and 9, respectively. Further, the router 26 is connected to the networks 7, 1
0.

【0021】ここで、例えばネットワーク1は、「10
01」〜「2000」の範囲のネットワーク番号を、ネ
ットワーク2は、「101」〜「180」の範囲のネッ
トワーク番号を、ネットワーク3は、「11」〜「5
0」の範囲のネットワーク番号を、また、ネットワーク
4は、「10001」〜「10005」の範囲のネット
ワーク番号を有しているものとする。
Here, for example, the network 1
01 "to" 2000 ", network 2 is a network number in the range of" 101 "to" 180 ", and network 3 is a network number in the range of" 11 "to" 5 ".
It is assumed that the network number has a network number in a range of “0” and the network 4 has a network number in a 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 routing information table 11 having a hash structure as shown in FIG. 3 and a routing 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 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 value calculated route selection information hash table 11a using the head 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
The first network number “1000” of the network 4
1 "and the final network number" 10005 ". The route selection information A3 and A4 are linked to the hash value [b] of the hash value calculated route selection information hash table 11a using the head 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 a network number "156" in the number range of the network 2 and a head network number "101". Is
For example, the network number “10005” in the number range of the network 1 and the first network number “100”
1 "is included. The search information B1 and B2 include a network number “15” other than the head network number.
6 ”and“ 10005 ”as search key information, which are linked to the hash value [aa] of the hash value calculated route selection information search hash table 12a.

【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, the network number “160” in the number range of the network 4 and the first network number “1”.
01 ”is included. The search information B3, B4 includes a network number "3" other than the head network number.
Using “0” and “160” as search key information, the hash value is linked to the hash value [bb] of the hash value calculated route selection information search hash table 12a.

【0026】このような状態において、例えばネットワ
ーク番号「1001」を経路選択情報を検索する場合に
は、上記「1001」は、ネットワーク番号の範囲の先
頭であるので、検索手段13は、経路選択情報ハッシュ
テーブル11aのハッシュ値[a]のリンクをたどって
いけば、対応する経路選択情報A1を探し出すことがで
きる。
In such a state, for example, when the route selection information is searched for the network number "1001", since the above "1001" is the head of the range of the network number, the search means 13 determines 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を探し出すことができ
る。
For example, the network number "160"
When searching for the route selection information, first, the link of the hash value of the route selection information hash table 11a hashed by the network number is followed. But,
Since the network number is not the head of the range of the network number, the search unit 13 cannot find the corresponding route selection information. Then, next, the search means 1
3 is a hash value [b of the route selection information search hash table 12a hash-calculated with the network number.
b], the corresponding search information B4
Can be found. Then, "10" which is the head network number stored in the search information B4
From "1", by following the link of the hash value [a] in the hash value calculated route selection information hash table 11a, the corresponding route selection information A2 can be found.

【0028】また、新たなネットワーク番号に対応する
経路選択情報を検索する場合、すなわち上記経路選択情
報テーブル11及び経路選択情報検索テーブル12の検
索でも、経路選択情報及び経路選択情報の取得ができな
い場合には、検索手段13で、経路選択情報テーブル1
1に格納されている全ての経路選択情報を順に検索し
て、該当するものを探し出す。次に、検索したネットワ
ーク番号でハッシュ計算された経路選択情報検索ハッシ
ュテーブル12aのハッシュ値に検索情報をリンクさせ
て、経路選択情報検索テーブルを作成する。
Further, 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 cannot be obtained even if the route selection information and the route selection information cannot be obtained. In the search means 13, the route selection information table 1
All the route selection information stored in No. 1 is searched in order to find a corresponding one. Next, the search information is linked to the hash value of the route selection information search hash table 12a hash-calculated with the searched network number to create a route selection information search table.

【0029】上述したごとく、各ルータでは、最初は、
どのネットワーク番号に対する経路選択情報検索テーブ
ルも持っていないが、一度経路選択情報の検索を行う
と、そのネットワーク番号に対して経路選択情報検索テ
ーブルが存在することになる。従って、本実施例では、
一つのネットワークに複数の連続したネットワーク番号
が割り当てられている場合も、経路選択情報テーブルの
他に、経路選択情報検索テーブルを使用して、2段階の
ハッシュ検索を行うので、ルーティング可能な全てのネ
ットワークのネットワーク番号に対する経路選択情報を
管理することなく、該当するハッシュ値にリンクされた
一部の検索情報と経路選択情報を検索するだけでよく、
短時間で対応する経路選択情報を探し出すことができ
る。
As described above, at each router, at first,
Although there is no routing information search table for any network number, once the routing information is searched, there is a routing information search table for that network number. Therefore, in this embodiment,
Even when a plurality of consecutive network numbers are assigned to one network, a two-stage hash search is performed using a route selection information search table in addition to the route selection information table, so that all routable routes are available. Instead of managing the routing information for the network number of the network, it is only necessary to search some of the search information and the routing information linked to the corresponding hash value,
The corresponding route selection information can be found in a short time.

【0030】また、本実施例では、経路選択情報テーブ
ルが、一つのネットワークに対して一つなので、ネット
ワーク対する情報の追加・削除を容易に行うことができ
る。さらに、本実施例では、検索手段によって、ネット
ワーク番号に対応する経路選択情報検索テーブルを作成
し、対応するハッシュ値に該作成した経路選択情報検索
テーブルをリンクさせるので、経路選択情報の作成を容
易に行うことができる。
Further, in this embodiment, since there is one route selection information table for one network, it is possible to easily add / delete information for the network. Furthermore, in this 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, so that the route selection information can be easily created. Can be done.

【0031】これにより、本実施例では、上記経路選択
情報の中からデータの宛先ネットワークに対する経路選
択情報を正確、かつ、容易に探し出して、上記データを
適切なネットワークに送信することが可能となり、転送
の信頼性を向上させることができる。
Thus, in the present embodiment, it is possible to accurately and easily find the routing information for the destination network of the data from the routing information and transmit the data to an appropriate network. Transfer reliability can be improved.

【0032】[0032]

【発明の効果】以上説明したように、本発明では、ハッ
シュ方式によって、経路選択情報テーブル内に記憶され
た経路選択情報の中から所定の経路選択情報を検索する
経路選択情報の検索装置において、一つのネットワーク
に対して複数のネットワーク番号が割り当てられている
場合に、選択キー情報として前記割り当てられたネット
ワーク番号のうちの一つのネットワーク番号を含む経路
選択情報テーブルと、検索キー情報として前記選択キー
情報となっていないネットワーク番号と、該選択キー情
報となっているネットワーク番号とを含む経路選択情報
検索テーブルと、経路選択を行うネットワーク番号を、
前記選択キー情報として、経路選択情報テーブルを検索
し、該当する経路選択情報がない場合には、前記ネット
ワーク番号を、検索キー情報として経路選択情報検索テ
ーブル内の前記選択キー情報となっているネットワーク
番号を探し出す検索手段とを備えたので、一つのネット
ワークに対して複数のネットワーク番号が割り当てられ
ている場合でも、ハッシュ方式を用いて全てのネットワ
ーク番号から対応する経路選択情報を探し出すことがで
きるとともに、経路選択情報テーブルが、一つのネット
ワークに対して一つなので、ネットワーク対する情報の
追加・削除を容易に行うことができる。
As described above, according to the present invention, in a route selection information search device for searching for predetermined route selection information from route selection information stored in a route selection information table by a hash method, When a plurality of network numbers are assigned to one network, a path selection information table including one 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,
As the selection key information, a route selection information table is searched. If there is no corresponding route selection information, the network number is used as the search key information in the route selection information search table. Since search means for searching for numbers are provided, even when a plurality of network numbers are assigned to one network, it is possible to search for the corresponding route selection information from all the network numbers using the hash method, and 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 the third aspect, when the route selection information corresponding to the network number for performing the route selection cannot be searched, the search means can search all the route selection information tables and search the corresponding route selection information. In this case, a 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 easily created. .

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

【図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 illustrating an example of a system in which a plurality of networks are connected by using a router in which a search device according to the embodiment is provided.

【図3】図1に示した経路選択情報テーブルの具体例を
示す図である。
FIG. 3 is a diagram showing a specific example of a route selection information table shown in FIG. 1;

【図4】図1に示した経路選択情報検索テーブルの具体
例を示す図である。
FIG. 4 is a diagram showing a specific example of a route selection information search table shown in FIG. 1;

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

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 Last Network number Z1 to Z4 Network numbers other than the first network number

───────────────────────────────────────────────────── フロントページの続き (72)発明者 斉藤 秀一 東京都千代田区丸の内2丁目6番1号 古河電気工業株式会社内 (56)参考文献 特開 平6−244840(JP,A) 特開 平6−162095(JP,A) 特開 平6−69927(JP,A) 特開 平5−81102(JP,A) 特開 平3−54937(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 17/30 H04L 12/28 JICSTファイル(JOIS)──────────────────────────────────────────────────続 き Continuation of the front page (72) Inventor Shuichi Saito 2-6-1 Marunouchi, Chiyoda-ku, Tokyo Furukawa Electric Co., Ltd. (56) References JP-A-6-244840 (JP, A) JP-A-Hei 6-162095 (JP, A) JP-A-6-69927 (JP, A) JP-A-5-81102 (JP, A) JP-A-3-54937 (JP, A) (58) Fields investigated (Int. Cl. 7, DB name) G06F 17/30 H04L 12/28 JICST file (JOIS)

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ハッシュ方式によって、記憶された経路
選択情報の中から所定の経路選択情報を検索する経路選
択情報の検索装置において、 一つのネットワークに対して複数のネットワーク番号が
割り当てられている場合に、選択キー情報として前記割
り当てられたネットワーク番号のうちの一つのネットワ
ーク番号を含む経路選択情報テーブルと、 検索キー情報として前記選択キー情報となっていないネ
ットワーク番号と、該選択キー情報となっているネット
ワーク番号とを含む経路選択情報検索テーブルと、 前記経路選択情報テーブル及び経路選択情報検索テーブ
ルから、当該ネットワークに対する経路選択情報を検索
する検索手段とを備えたことを特徴とする検索装置。
1. A route selection information search device that searches for predetermined route selection information from stored route selection information by a hash method, wherein 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, a network number that is not the selection key information as search key information, and the selection key information. A search device comprising: a route selection information search table that includes a network number that is located; and search means that searches the route selection information table and the route selection information search table for route selection information for the network.
【請求項2】 前記検索手段は、経路選択を行うネット
ワーク番号を、前記選択キー情報として、経路選択情報
テーブルを検索し、該当する経路選択情報がない場合に
は、前記ネットワーク番号を、検索キー情報として経路
選択情報検索テーブルを検索して、該経路選択情報検索
テーブル内の前記選択キー情報となっているネットワー
ク番号を探し出すことを特徴とする請求項1記載の検索
装置。
2. The search means searches a route selection information table using a network number for which a route is to be selected as the selection key information. If there is no corresponding route selection information, the network number is searched by a search key. 2. The search device according to claim 1, wherein a search is performed on a route selection information search table as information, and a network number serving as the selection key information is searched for in the route selection information search table.
【請求項3】 前記検索手段は、前記経路選択を行うネ
ットワーク番号に対応する経路選択情報を検索できない
場合には、前記経路選択情報テーブルを全て検索し、該
当する経路選択情報を検索できた場合には、当該ネット
ワーク番号に対応する経路選択情報検索テーブルを作成
し、対応するハッシュ値に該作成した経路選択情報検索
テーブルをリンクさせることを特徴とする請求項2記載
の検索装置。
3. When the search means cannot search the route selection information corresponding to the network number for performing the route selection, it searches all of the route selection information tables and searches the corresponding route selection information. 3. The search device according to claim 2, wherein a route selection information search table corresponding to the network number is created, and the created route selection information search table is linked to a corresponding hash value.
JP6162387A 1994-07-14 1994-07-14 Route selection information search device Expired - Fee Related JP3059639B2 (en)

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 JPH0832613A (en) 1996-02-02
JP3059639B2 true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8848960B2 (en) 2008-05-21 2014-09-30 Genus Audio Corp. Speaker

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6493347B2 (en) * 1996-12-16 2002-12-10 Juniper Networks, Inc. Memory organization in a switching device
JP3250544B2 (en) * 1999-04-16 2002-01-28 日本電気株式会社 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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8848960B2 (en) 2008-05-21 2014-09-30 Genus Audio Corp. Speaker

Also Published As

Publication number Publication date
JPH0832613A (en) 1996-02-02

Similar Documents

Publication Publication Date Title
US7418505B2 (en) IP address lookup using either a hashing table or multiple hash functions
US7349382B2 (en) Reverse path forwarding protection of packets using automated population of access control lists based on a forwarding information base
US5909440A (en) High speed variable length best match look-up in a switching device
US7443841B2 (en) Longest prefix matching (LPM) using a fixed comparison hash table
US20060083247A1 (en) Prefix lookup using address-directed hash tables
US6792423B1 (en) Hybrid longest prefix match and fixed match searches
WO1998027662A2 (en) High speed variable length best match look-up in a switching device
JPH1188428A (en) Effective cashing for route designation information for unicast and multicast-connection
US6570866B1 (en) High-speed flexible longest match retrieval
JP3881663B2 (en) Packet classification apparatus and method using field level tree
JP2006287932A (en) Method and apparatus for providing network connection table
JP2001036583A (en) Method for transferring multi-cast packet, entrance node and router to realize such method and internet network including such entrance node and such router
WO2005091577A1 (en) Method, article of manufacture and network device to support a large internet protocol forwarding information base
CN101110778A (en) Method for compressing path transmitting table by router
CN101562574A (en) Method for updating routing list and device thereof
JP3059639B2 (en) Route selection information search device
KR100541846B1 (en) Internet Protocol address lookup system based on 3 layer table architecture and method thereof
US6925503B2 (en) Method and system for performing a longest prefix match search
JP2008167464A (en) Method and apparatus for processing tlv-based link-state packet
US20070025346A1 (en) System and method for creating a routing table
KR20050066903A (en) Packet forwarding apparatus and method for address lookup algorithm with three routing step tables in high speed router system
EP1657859B1 (en) Protocol speed increasing device
JPH09107377A (en) Routing table retrieval method
CN113453262A (en) Bidirectional Forwarding Detection (BFD) method and device
CN113343034A (en) IP searching method, system and storage medium

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees