JPH04149676A - Data retriever - Google Patents

Data retriever

Info

Publication number
JPH04149676A
JPH04149676A JP2271127A JP27112790A JPH04149676A JP H04149676 A JPH04149676 A JP H04149676A JP 2271127 A JP2271127 A JP 2271127A JP 27112790 A JP27112790 A JP 27112790A JP H04149676 A JPH04149676 A JP H04149676A
Authority
JP
Japan
Prior art keywords
data
address
memory
key conversion
processing unit
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
JP2271127A
Other languages
Japanese (ja)
Inventor
Ichiro Takashima
一郎 高島
Masao Ikezaki
雅夫 池崎
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2271127A priority Critical patent/JPH04149676A/en
Publication of JPH04149676A publication Critical patent/JPH04149676A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To accelerate data retrieval by providing first and second auxiliary data areas in accordance with each address of data in memory, and adding a data storage address change processing part and a counter processing part which increments an internal counter at every access of memory. CONSTITUTION:Auxiliary data areas such as a collision counter in accordance with the address of stored data and an AGE counter are provided in the memory 11, and furthermore, a storage address change processing part 13 for the data in the memory 11, and the counter processing part 14 which increments the internal counter at every access of the memory are added. When the retrieval of the data in the memory is performed by using the key attached on retrieval data, the content of a p-th key conversion address is retrieved, and when a retrieval content shows no desired data, the content of the collision counter in accordance with the address is checked, and when the value of the collision counter shows (q), the next retrieval is applied to a (p+q)th key conversion address. Thereby, it is possible to accelerate the data retrieved by using auxiliary data generated when the data is registered.

Description

【発明の詳細な説明】 産業上の利用分野 本発明1i、メモリ内データベースへのデータの登緻 
削除機能を持板 データに関するキーを用いてデータの
検索を行うデータ検索装置に関するものであも 従来の技術 データに関するキーを用いてデータの検索を行う従来の
データ検索装置について第6FgJ〜第8図を用いて説
明すも 第6図(a)は本発明のデータ検索装置が適用されるシ
ステムの一例を示す。第6図(a)では複数のLANを
接続するブリッジ60内にデータ検索装置1が置かれて
いる。また第6図(b)は同図(a)のデータ検索装置
l内のメモリ11の構成を示すものである。メモリ11
には全LANに接続されたノードのアドレスとそのノー
ドが接続されているL A、 Nナンバー そして補助
情報が登録されている。ブリッジ60は各LANから受
信したパケットの送信先アドレスをメモリ11内から検
索k どのLANにルーティングすべきかを判断する。
DETAILED DESCRIPTION OF THE INVENTION Industrial Field of Application Invention 1i: Elaboration of data into an in-memory database
6FgJ to 8 about the conventional data search device that searches for data using keys related to data. FIG. 6(a) shows an example of a system to which the data retrieval device of the present invention is applied. In FIG. 6(a), the data retrieval device 1 is placed in a bridge 60 that connects a plurality of LANs. Further, FIG. 6(b) shows the configuration of the memory 11 in the data retrieval device 1 shown in FIG. 6(a). memory 11
Registers the addresses of all nodes connected to the LAN, the LA and N numbers to which the nodes are connected, and auxiliary information. The bridge 60 searches the memory 11 for the destination address of the packet received from each LAN and determines to which LAN the packet should be routed.

例えばノード65からノード66宛に送信されたパケッ
トはLAN 1を経由してノード66と共にブリッジ6
0にも到達する力t これを受信したブリッジ60はメ
モリ11から送信先ノードアドレスn2を検索し パケ
ットを受信したと同じL A N 1に接続されたノー
ドであることを知って他のLANにルーティングを行わ
なl、%しかしノード65からノード67宛に送信され
たパケットを受信したブリッジ60はメモリ11から送
信先ノードアドレスn3を検索L  LAN2に接続さ
れたノードであることを知りLANIからLAN2への
ルーティングを行う。
For example, a packet sent from node 65 to node 66 is transmitted via LAN 1 to node 66 and bridge 6.
The bridge 60 that received this searched for the destination node address n2 from the memory 11, learned that it was a node connected to the same LAN 1 that received the packet, and sent it to another LAN. However, upon receiving the packet sent from node 65 to node 67, the bridge 60 searches for the destination node address n3 from the memory 11. Knowing that the node is connected to LAN2, the bridge 60 sends the packet to LAN2 from LANI. Routing to.

第7図は従来のデータ検索装置の一構成例を示すブロッ
ク図である。図に示すようにデータ検索装置1(よ デ
ータを記憶するメモリ11と、メモリ11ヘデータの登
録を行うデータ登録処理部121、メモリ11内のデー
タの削除を行うデータ削除処理部122、メモリ1]内
データの検索を行うデータ検索処理部123から成るデ
ータ人ロ力処理部12より構成されも ここでは第8図により、データに関するキーを用いてデ
ータの検索を行う従来のデータ検索装置について説明を
行う。図に示すようにここではアドレスOから8を持つ
メモリに7つのデータを登録することを考える。そして
7つのデータにはそれぞれにキーか付けられており、こ
のキーをもとにそのデータを登録すべきアドレスを決定
ずムいま7つのデータに旬けられているキーは[IN。
FIG. 7 is a block diagram showing an example of the configuration of a conventional data search device. As shown in the figure, a data retrieval device 1 (a memory 11 for storing data, a data registration processing section 121 for registering data in the memory 11, a data deletion processing section 122 for deleting data in the memory 11, a memory 1) A conventional data search device that searches for data using keys related to data will be explained with reference to FIG. 8. As shown in the figure, let's consider registering seven pieces of data in the memory with addresses O to 8.A key is attached to each of the seven pieces of data, and based on this key, the data can be registered. I haven't decided which address to register, so the key currently used for the seven data is [IN].

QtlE、 RED、 CAN、 END、 HOW、
 HOT]とL 図にはこのキー集合をデータとみなし
てメモリ11に格納する様子を示している。ここでは−
例として各データの格納アドレス(キー変換アドレスと
呼ぶ)を次のルールで決定するものとする。
QtlE, RED, CAN, END, HOW,
HOT] and L The figure shows how this key set is regarded as data and stored in the memory 11. Here -
As an example, assume that the storage address of each data (referred to as a key conversion address) is determined according to the following rules.

h、(キー)−(キーの第1アルフアベツトの順番) 
mod 9h 1(キー)=[h+(キー)  +  
2(i−1)コ mod  9.  i=2.3.、、
、、ここでhl(キー)、 i−1,2,3,、、は第
1キー変換アドレスである。
h, (key) - (order of first alphabet of key)
mod 9h 1 (key) = [h+ (key) +
2(i-1) mod 9. i=2.3. ,,
,, where hl (key), i-1, 2, 3, , is the first key conversion address.

ここで各データのメモリ11への登録は次のアルゴリズ
ムで行う。
Here, each data is registered in the memory 11 using the following algorithm.

アルゴリズム 5tep1.  i ←l 5tep2.各データに付けられているキーをもとに第
1キー変換アドレスを計算する。
Algorithm 5 step 1. i ←l 5step2. A first key conversion address is calculated based on the key attached to each data.

5tep3.第1キー変換アドレスにまだデータが格納
されていなければ5tep5、へ そうでなければ5tep4.へ 5tep4.  i ←i + 1  として5tep
2. ヘ5tep5.第1キー変換アドレスにデータを
格納して登録完了。
5step3. If no data is stored in the first key conversion address yet, go to step 5, otherwise go to step 4. 5 step 4. 5tep as i ←i + 1
2. F5 step5. Store the data in the first key conversion address and complete registration.

第8図では7つのキー集合[IN、 QUE、 RED
、 CAN。
In Figure 8, there are seven key sets [IN, QUE, RED
, CAN.

END、 HOW、 HOT]をデータとみなLCAN
→IN→HOT−4END −RED→QtlE→HO
W  の順番でメモリ11に格納した例を示している。
END, HOW, HOT] as data and LCAN
→IN→HOT-4END -RED→QtlE→HO
An example is shown in which data are stored in the memory 11 in the order of W.

同様にしてメモリ11からのデータの検索は次のアルゴ
リズムで行う。
Similarly, data is retrieved from the memory 11 using the following algorithm.

アルゴリズム 5tepl、  i ←1 Step2.各データに付けられているキーをもとに第
1キー変換アドレスを計算すム 5tep3、第1キー変換アドレスのデータを検索し所
望のデータであれば検索完了。
Algorithm 5tepl, i ←1 Step2. Calculate the first key conversion address based on the key attached to each data. Step 3: Search for the data at the first key conversion address, and if it is the desired data, the search is completed.

そうでなければ5tep4、へ 5tep4.  i + i + 1  として5te
p2. ヘ次にデータ(−キー) HOWの検索の例を
示す。
Otherwise, go to 5step 4, to 5step 4. 5te as i + i + 1
p2. Next, an example of searching for data (-key) HOW is shown.

5tep1.アドレスhl (HOW)=8のデータは
HOTでHOWでな(℃ 5tep2.アドレスh 2 (HOW) −1のデー
タはQUEでHOWでな(兎 5tep3.アドレスha (HOW)=3のデータは
CANでHOWでなしt Step4.アドレスh4(HOW)=5のデータはE
NDでI」OWでなしも 5tep5.アドレスh6(HOW)=7のデータはH
OWで検索完了。
5step1. The data at address hl (HOW) = 8 is HOT and HOW (℃ 5tep2. Address h 2 (HOW) -1 is QUE and HOW. Step 4. Data at address h4 (HOW) = 5 is E
ND with I” OW with None 5 step 5. The data at address h6 (HOW) = 7 is H
Search completed with OW.

発明が解決しようとする課題 データに関するキーを用いてデータの検索を行う従来の
データ検索装置についてその課題を第6は 第8図〜第
9図を用いて説明すも 従来のデータ検索装置では一度メモリに登録きれたデー
タの格納アドレスを変更することはできなL%  従っ
て第8ス データ(=キー) HOWの朽索の例に示す
ようにこのデータを検索するためには毎回mlキー変換
アドレス〜第5キー変換アドレスまで順次検索を行わな
ければならな1,4  す九わち、第1キー変換アドレ
スで検索できないデータの検索には毎回多くの時間を費
やすことにな歴もし 登録データの検索頻度が既知の場
合であわば検索頻度の大きい順に より小さい番号のキ
ー変換アドレスに割り当てることによって従来の方法で
も最適な(平均検索時間が最小な)メモリ管理方法が実
現できる。しかしながら動的に登録データの検索頻度が
変化するようなシステな データの削除 登録が頻繁に
行われるようなシステムに利用される場合には従来のデ
ータ検索装置では検索時間よいう点において不利な状況
が発生ずる。
The problem to be solved by the invention Regarding the conventional data retrieval device that searches for data using a key related to the data, the problem is explained using Figs. 8 to 9. L% It is not possible to change the storage address of data that has been registered in memory. Therefore, as shown in the example of the 8th stage data (= key) HOW search, in order to search for this data, the ml key conversion address must be used every time. You have to search sequentially up to the 5th key conversion address1, 4.In other words, you may end up spending a lot of time searching for data that cannot be searched using the 1st key conversion address. When the search frequency is known, an optimal memory management method (minimum average search time) can be achieved even with the conventional method by assigning key conversion addresses with smaller numbers in descending order of search frequency. However, when used in a system where the search frequency of registered data changes dynamically, or where data deletion or registration is frequently performed, conventional data search devices are at a disadvantage in terms of search time. occurs.

本発明はまずこの課題に着目し 目的のデータ検索完了
まごに要するキー変換アドレスの検索回数を減らすこと
が可能なメモリ管理方法を採用したデータ検索装置を提
供することを目的とすもまた 第6図に示したブリッジ
内データベースの検索装置として使用された場合、例え
ばあるときにはノード65からノード67へのパケット
が連続して送信される可能性があム (長いメツセージ
がいくつかのセグメントパケットとしてフロー制御され
ながらノード65からノード67へ送信される場合など
。)この場合にもノードアドレスn3か第1キー変換ア
ドレスで検索されなければ非常に不利な状況が発生すム 本発明は次にこの課題に着目L 最近に検数参照された
データはど次回にはより少ない検索回数で検索か完了す
るようにメモリ内データの配置アドレスを変更すること
が可能なデータ検索装置を提供することを目的とする。
The present invention first focuses on this problem, and an object of the present invention is to provide a data retrieval device that employs a memory management method that can reduce the number of searches for a key conversion address required to complete a target data retrieval. When used as a search device for the database in the bridge shown in Figure 6, for example, there is a possibility that packets from node 65 to node 67 are sent in succession (a long message is sent as several segment packets). (For example, when the data is transmitted from the node 65 to the node 67 under flow control.) In this case as well, unless the node address n3 or the first key conversion address is searched, a very disadvantageous situation will occur. Focusing on the problem L The objective is to provide a data retrieval device that can change the location address of data in memory so that the data that has been recently referenced is retrieved with fewer times of retrieval the next time. shall be.

さらに従来のデータ検索装置ではメモリ内データの削除
を効率的に行う方法が提供できなuXo  この様子を
第9図に示t 第9図(a)はデータ削除前のメモリ1
1を示to  このときデータ(−キー)QIJEを削
除することを考えも 同図(b)は単にデータQUEを
メモリ11から削除しただけである。この場合アドレス
1のデータが空になるたぬ 以降データHOIi’の検
索が行えなくなってしまう。同図(C)はキーQLIE
の第3キー変換アドレス以降に格納されたデータを順次
1つ前の変換アドレスに格納場所の変更を行ったもので
あも この場合データHOWの検索は行える力t デー
タCAN、 ENDの検索が行えなくなることは明かで
あム 従来のデータ検索装置で上記問題を解決する唯一
の方法は 同図(d)に示すように削除したデータの格
納アドレスにデータ削除を示す予約語を書き込むことで
ある。このことによりデータの削除が可能となるが削除
したデータのアドレスにも予約語(有意なデータではな
い)が書き込まれていることによりメモリ11の利用効
率が低下する。また頻繁にデータの削除 登録を繰り返
した場合メモリ11が全て予約語で埋まってしまうこと
も考えられる。
Furthermore, conventional data retrieval devices cannot provide a method for efficiently deleting data in memory. This situation is shown in FIG. 9.
At this time, it was considered to delete the data (-key) QIJE, but in FIG. In this case, since the data at address 1 becomes empty, it is no longer possible to search for data HOIi'. The same figure (C) is the key QLIE
Even if the data stored after the 3rd key conversion address is sequentially changed to the previous conversion address, the data HOW can be searched, and the data CAN and END can be searched. The only way to solve the above problem with a conventional data retrieval device is to write a reserved word indicating data deletion to the storage address of the deleted data, as shown in FIG. 4(d). Although this makes it possible to delete data, the utilization efficiency of the memory 11 decreases because a reserved word (not significant data) is also written to the address of the deleted data. Furthermore, if data deletion and registration are repeated frequently, it is conceivable that the memory 11 will be completely filled with reserved words.

本発明はこの課題に着目し メモリの利用効率を低下さ
せることなく動的にデータの削除 登録によるデータベ
ースの再構成を可能とするデータ検索装置を提供するこ
とを目的とする。
The present invention has focused on this problem and aims to provide a data retrieval device that can dynamically reconfigure a database through data deletion and registration without reducing memory usage efficiency.

まf& 従来のデータ検索装置では登録データがメモリ
ー杯になったとき、あるいは一定数以上になったときに
登録データの中で最近の検索が最も古いデータ(すなわ
板 今後も検索される可能性が少ないデータ)を削除し
て新しいデータを登録することができな(℃ 本発明はこの課題に着目し メモリ内保持時間の最も長
いデータ(データの保持時間はそのデータが検索される
度にクリアされも 従って最近の検索か最も古いデータ
)を自動的に削除することが可能なデータ検索装置を提
供することを目的とする。
With conventional data search devices, when the registered data reaches memory capacity or exceeds a certain number, the most recently searched data among the registered data becomes the oldest data (in other words, there is a possibility that it will be searched in the future). It is not possible to delete data (with a small amount of data) and register new data (°C). The object of the present invention is to provide a data retrieval device capable of automatically deleting the most recent searches or the oldest data.

課題を解決するための手段 本発明は上記課題を解決するために 従来のデータ検索
装置メモリ内に 記憶したデータの各アドレスに対応す
る第1の補助デー久 第2の補助データ領域を設け、さ
らにメモリ内データの格納アドレスを変更するデータ格
納アドレス変更処理部と、データ入出力処理部によるメ
モリのアクセス毎に内部カウンタをインクリメントする
カウンタ処理部を従来のデータ検索装置に付加上 これ
らが以下のように働くように構成する。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention provides a first auxiliary data area and a second auxiliary data area corresponding to each address of data stored in the memory of a conventional data retrieval device. A data storage address change processing unit that changes the storage address of data in memory and a counter processing unit that increments an internal counter every time the data input/output processing unit accesses the memory are added to the conventional data search device.These are as follows. Configure it to work.

データ登録処理部がキー変換アドレスにデータを格納し
た場合、同時にそのアドレスに対応する第1の補助デー
タ領域に登録を示す予約語を書き込むという方法でデー
タベースを構築しいまデータ登録処理部方丈 第nのキ
ー変換アドレスに対応する第1の補助データにはじめて
前記予約語を検出し 第(n+i)のキー変換アドレス
にはじめて空アドレスを検出した場合、前記データ登録
処理を行った後、第nのキー変換アドレスに対応する第
1の補助データの内容を前記予約語からカウンタ値】に
書き換えることにより、データ検索処理部がデータを検
索する服 およびデータ登録処理部が空アドレスを検索
する阪いま第pのキー変換アドレスの内容が所望のデー
タでなかったとき、そのアドレスに対応する前記第1の
補助データの内容を調べその値がqであった場合、次回
(上 前記データ検索処理部および前記データ登録処理
部が第(p’−、q)のキー変換アドレスを検索するよ
うに構成すも 前記構成で、いまあるデータがデータ検索処理部により
第1のキー変換アドレス(1≠1)で検索されたとき、
次回にはそのデータが第1のキー変換アドレスで検索さ
れ 今回前記データの第1〜第(i−1)のキー変換ア
ドレスで検索されていたデータが次回には自身の第2〜
第1のキー変換アドレスで検索されるように データ格
納アドレス変更処理部かメモリ内データの格納アドレス
を変更するように構成する。
When the data registration processing section stores data in a key conversion address, the database is constructed by simultaneously writing a reserved word indicating registration into the first auxiliary data area corresponding to that address. If the reserved word is detected for the first time in the first auxiliary data corresponding to the key conversion address of By rewriting the content of the first auxiliary data corresponding to the converted address from the reserved word to the counter value, the data search processing section can search for data and the data registration processing section can search for an empty address. When the content of the key conversion address is not the desired data, the content of the first auxiliary data corresponding to that address is checked, and if the value is q, the data search processing unit and the data The registration processing section is configured to search for the (p'-, q)th key conversion address. With the above configuration, the data search processing section searches for the current data using the first key conversion address (1≠1). When it is done,
Next time, that data will be searched with the first key conversion address, and the data that was searched with the first to (i-1) key conversion addresses of the data this time will be searched with its second to (i-1)th key conversion address.
The data storage address change processing unit is configured to change the storage address of the data in the memory so that it is searched using the first key conversion address.

前記構成で、いま削除すべきデータが第1のキー変換ア
ドレスで検索されデータ削除処理部によって削除された
とき、前記データの第にのキー変換アドレスに対応する
第1の補助データにはじめて登録を示す予約語が書き込
まれていたとすると(i<k)、今回前記データの第(
i+1)〜第にのキー変換アドレスで検索されていたデ
ータが次回には自身の第1〜第(k−1)のキー変換ア
ドレスで検索されるように データ格納アドレス変更処
理部がメモリ内データの格納アドレスを変更するように
構成すも 前記構成で、データ登録処理部によるメモリへのデータ
の登板 データ検索処理部によるデータの検索が行われ
た際に1よ その登録および検索されたデータのアドレ
スに対応する前記第2の補助データの内容をカウンタ処
理部内の内部カウンタ値に書き換えることにより、メモ
リ内の登録データ数が一定値を越えた場合にはデータ削
除処理部が前記第2の補助データの値が最も小さいデー
タを自動的に削除するように構成すも 作用 本発明は上記の構成により以下のような作用を有すム 検索データに付けられているキーを用いてメモリ内デー
タの検索味 いま第pのキー変換アドレスの内容を検索
し検索内容が所望のデータでなかった場合には第pのキ
ー変換アドレスに対応する衝突カウンタの内容を調べ 
衝突カウンタの値がqであった場合、次回は第(p+q
)のキー変換アドレスを検索することにより、第(p+
1)〜M (p+q−1)のキー変換アドレスの無駄な
検索をする必要がなく、データ検索の高速化が可能とな
る。
In the above configuration, when the data to be deleted now is searched for using the first key conversion address and deleted by the data deletion processing unit, the first auxiliary data corresponding to the first key conversion address of the data is registered for the first time. Assuming that the reserved word indicated by
The data storage address change processing unit changes the data stored in the memory so that the data that was searched using the i+1) to (k-1)th key conversion addresses will be searched next time using the own first to (k-1)th key conversion addresses. With the above configuration, when the data registration processing unit registers data in the memory, and when the data search processing unit searches for data, the storage address of 1 is changed. By rewriting the contents of the second auxiliary data corresponding to the address to an internal counter value in the counter processing unit, when the number of registered data in the memory exceeds a certain value, the data deletion processing unit The present invention is configured to automatically delete data with the smallest data value.The present invention has the following functions and uses the key attached to search data to delete data in memory. Search flavor Now search the contents of the p-th key conversion address, and if the search contents are not the desired data, check the contents of the collision counter corresponding to the p-th key conversion address.
If the value of the collision counter is q, the next time the collision counter will be the (p+q
) by searching the key conversion address of (p+
1) There is no need to wastefully search for key conversion addresses of ~M (p+q-1), and data searches can be speeded up.

また いま検索されたデータが次回には第1キ変換アド
レスで検索されるようく そして最近に検索されたデー
タほどより小さな番号のキー変換アドレスで検索される
ようにメモリ内データの格納アドレスを変更することに
より、連続して同じデータが検索される確率が高いよう
なシステベ最近に検索されたデータはど今後検索される
確率が高いようなシステムのデータ検索装置に使用され
た場合、データ検索の高速化を可能とする。
Also, change the storage address of the data in memory so that the data currently searched will be searched with the first key conversion address next time, and the more recently searched data will be searched with the lower numbered key conversion address. By doing this, if the system has a high probability that the same data will be searched continuously, the data that was recently searched will be checked. Enables high speed.

また 削除したデータのアドレスに対応する衝突カウン
タの値をもとにメモリ内データの格納アドレスを変更す
ることにより、メモリの利用効率を低下させることなく
動的にデータの削除 登録によるデータベースの再構成
を可能とずムまf& 各データのメモリ内保持時間(前
回そどデータか検索されてからの経過時間)を記憶すシ
ことにより、最近の検索が最も古いデータを1虱的に削
除することが可能となも 実施例 本発明のデータ検索装置について、第1図〜16図を用
いて説明すも 第1図は本発明によるデータ検索装置の一構〆例のブロ
ック図である。第7図に示す従来のデータ検索装置に比
べると、記憶した各データのアルレスに対応する衝突力
ウシ久 AGEカウンタJいう補助データ領域がメモリ
11内に設けられマおり、さらにメモリ11内データの
格納アドレ2を変更するデータ格納アトし・ス変更処理
部13さデータ人出力処理部によるメモリのアクセス毎
村内部カウンタをインクリメントするカウンタ処刊部1
4を付加した構成となっている。
In addition, by changing the storage address of data in memory based on the value of the collision counter corresponding to the address of the deleted data, it is possible to dynamically delete data without reducing memory usage efficiency and reconfigure the database through registration. By memorizing the retention time of each data in memory (the elapsed time since the previous data search), it is possible to delete the oldest data in one row by the most recent search. Embodiment A data retrieval device according to the present invention will be described with reference to FIGS. 1 to 16. FIG. 1 is a block diagram of a complete example of the data retrieval device according to the present invention. Compared to the conventional data retrieval device shown in FIG. A data storage address change processing section 13 that changes the storage address 2; a counter processing section 1 that increments an internal counter every time the memory is accessed by the data output processing section;
4 has been added.

ここでは第2図に示すメモリへのデータ登録検索の第一
の実施例を用いで、本発明による衝深カウンタ112の
役割について説明する。
Here, the role of the impact depth counter 112 according to the present invention will be explained using the first embodiment of data registration search in the memory shown in FIG.

図に示すようにここではアドレスOから8を持つメモリ
11に7つのデータを登録することを考えも メモリ1
1はデータを格納するデータ領域111と各データ格納
アドレスに対応する補助データを記憶する衡突カウンタ
領域112がら構成される。登録すべき7つのデータに
はそれぞれにキーが付けられており、このキーをもとに
そのブタを格納すべきアト1ノスを決定すも いま7つ
ノキーハUIN、 QIJE、 RED、 CAN、 
END、 HOW、 HOT]とL 図にはこのキー集
合をデータとみなしてメモリ11に格納する様子を示す
。つまりここでは登録データが各データのキーと一致す
る例を示している方丈 もちろんデータとキーは独立に
選び得るものである。第2図では一例として各データの
格納アドレス(キー変換アドレスと呼ぶ)を次のルール
で決定するものとする。
As shown in the figure, here we are thinking of registering seven pieces of data in memory 11 with addresses O to 8.Memory 1
1 is composed of a data area 111 for storing data and an equity counter area 112 for storing auxiliary data corresponding to each data storage address. Each of the seven pieces of data to be registered has a key attached to it, and based on this key, the atonenos in which the pig should be stored is determined.
END, HOW, HOT] and L. The figure shows how this key set is regarded as data and stored in the memory 11. In other words, here is an example where the registered data matches the key of each data. Of course, the data and key can be selected independently. In FIG. 2, as an example, it is assumed that the storage address of each data (referred to as a key conversion address) is determined according to the following rule.

h、(キー)−(キーの第1アルフアベツトの順番) 
mod 9h、<キー)−・Eh+(キー)  ”、 
 2(i−1)r  mod  9.  i=2.3.
、、、。
h, (key) - (order of first alphabet of key)
mod 9h, <key)-・Eh+(key)”,
2(i-1)r mod 9. i=2.3.
,,,.

ここでl−+、(キー)、ニー1.2,3.、、は第1
キー変換アドレスである。
Here l-+, (key), knee 1.2, 3. ,, is the first
This is a key conversion address.

一トに7層シ、たキー変換アドレスの決定法はあくまで
も一例であり、第1キー変換アドレスをどのように定義
しても以下の議論がそのまま適用されるものであム いま、各データのメモリ11への登録は次のアルゴリズ
ムで行う。
The method for determining the key conversion address with seven layers at once is just an example, and the discussion below applies as is no matter how you define the first key conversion address. Registration into the memory 11 is performed using the following algorithm.

アルゴリズム 5tep1.第1キー変換アドレスにまだデータが格納
されていなければデータを格納し 衝突カウンタに予約語”E゛を豊き込んで登録完了。
Algorithm 5 step 1. If data is not yet stored in the first key conversion address, the data is stored, the collision counter is enriched with the reserved word "E", and registration is completed.

そうでなければ5tep2゜へ 5tep2.  j←l 5tep3. % 1キー変換アドレスの衝突カウンタ
に 予約語′E“が書き詰まれていれば5tep4゜へ そうでなければ5tep7.へ 5tep4. i = j +1 Step5.第1キー変換アドレスにまだデータが格納
されていなければ3tep9. Sそうでなければ5t
ep6.へ 5tep6.  i ←i + 1  として5tep
5. ヘ5tep7.  j 6−jモ(第1キー変換
アドレスの衝突カウンタ値) Step8.第1キー変換アドレスの衝突カウンタに 
予約語゛E′が書き込まれていれば5tep4.へ そうでなければ5tep7.へ 5tep9.第1キー変換アドレスにデータを路地衝突
カウンタに予約語°E′を書き込仁5teplO,第J
キー変換アドレスの衝突カウンタに値(i−j)を書き
込んで登録完了。
If not, go to 5tep2°.5tep2. j←l 5step3. % If the reserved word 'E'' is written in the collision counter of the 1st key conversion address, go to step 4゜ otherwise go to step 7. If not, 3tep9.S Otherwise, 5t
ep6. Go to 5 step 6. 5tep as i ←i + 1
5. F5 step7. j 6-j mo (collision counter value of first key conversion address) Step 8. Collision counter of first key conversion address
If the reserved word ``E'' is written, 5step 4. If not, 5 step 7. Go to step 59. Write the data to the first key conversion address and the reserved word °E' to the alley collision counter.
Write the value (i-j) to the collision counter of the key conversion address and complete the registration.

第2図(a)はデータ(この場合はキー)を上記方法に
より、CAN→IN→HOT−+ENDの順番でメモリ
11に登録した例を示していも 同図(b)はこの状態
でさらにデータをRED→QUEの順番で登録したとき
の様子、同図(c)はさらに引き続いてデータHOWを
登録したときの様子を示すものであム 次に衝突カウンタ112を用いたメモリ11からのデー
タの検索は次のアルゴリズムで行う。
Although FIG. 2(a) shows an example in which data (key in this case) is registered in the memory 11 in the order of CAN→IN→HOT-+END using the above method, FIG. 2(b) shows further data in this state. (c) shows the situation when data HOW is registered in the order of RED → QUE. Next, the data from memory 11 using collision counter 112 is The search is performed using the following algorithm.

アルゴリズム 5tep1.  i + 1 Step2.第1キー変換アドレスのデータを検索し所
望のデータであれば検索完了。
Algorithm 5 step 1. i + 1 Step 2. The data of the first key conversion address is searched, and if it is the desired data, the search is completed.

そうでなければ5tep3.へ 5tep3.第1キー変換アドレスの衝突カウンタζへ
 予約語”E′が書き込まれていれば該当データは存在
しなl、%  検索完了。
If not, 5 step 3. Go to 5 step 3. If the reserved word "E'" is written to the collision counter ζ of the first key conversion address, the corresponding data does not exist, % Search complete.

そうでなければ5tep4.へ 5tep4.  i −i ”、  (第1キー変換ア
ドレスの衝突カウンタ値)として5tep2、へ次にデ
ータHOWの検索の例を示す。
If not, 5 step 4. 5 step 4. i-i'', (collision counter value of first key conversion address), go to 5tep2 Next, an example of searching for data HOW will be shown.

5tep1.アドレスh1(HOW)= 8のデータは
HOTでHOWでない。
5step1. The data at address h1 (HOW)=8 is HOT and not HOW.

5tep2.アドレス!11 (J(OVv’)の衝突
カウンタは1であるから アドレスh2イ、I−フン()(OW)=1のデータを
調べるかQUEでHOWでなり 5tep3.アドレスh2(i(OW)の衝突カウンタ
は3であるか状 アドレスh6+・2◆11 (HOW)=7のデータを
調べHOWであるから検索完T。
5 step 2. address! 11 (J(OVv')'s collision counter is 1, so check the data of address h2i, I-Fun()(OW)=1 or use QUE to HOW) 5tep3. Collision of address h2(i(OW)) The counter is 3. Check the data at address h6+・2◆11 (HOW)=7 and it is HOW, so the search is completed.

第8図に示した従来例の場合には第1、2、3.4、5
変換キーの全てを検索しなければならなかったのに対し
 本発明による衝突カウンタ112を用いれば第1、2
、5変換キーの検索でデータHOWの検索を完了するこ
とができも つまり明らかに無駄に終わる検索を回避し
 データ検索の高速化を図ることができる。
In the case of the conventional example shown in Fig. 8, the first, second, third, fourth, and fifth
Whereas it was necessary to search all of the conversion keys, if the collision counter 112 according to the present invention is used, the first and second conversion keys can be searched.
, 5, it is possible to complete the data HOW search by searching for the conversion key. In other words, it is possible to avoid searches that obviously end in waste, and to speed up the data search.

次に第3図に示すメモリからのデータ検索の第二の実施
例を用いて、本発明による衝突カウンタ112、データ
格納アドレス変更処理部I3の役割について説明する。
Next, the roles of the collision counter 112 and the data storage address change processing section I3 according to the present invention will be explained using a second embodiment of data retrieval from the memory shown in FIG.

第3図(a)には第2図で示した方法により作成された
データベースを示す。いま第1キー変換アドレス(+≠
1)でデータが検索されたとすると、次回にはそのデー
タか第1キー変換アドト・スで検索され 今回そのデー
タの第1〜第(i−1)変換アドレスで検索さねていた
データが次回には自身の第2〜第1キー変換アドレスで
検索されるようにデータ格納アドレス変換処理部が各デ
ータの格納アドレス変更を行うことを考えも これは以
下のアルゴリズムにより実現される。
FIG. 3(a) shows a database created by the method shown in FIG. Now the first key conversion address (+≠
If data is retrieved in step 1), next time that data will be retrieved using the first key conversion address, and the next time the data that was being searched using the first to (i-1) conversion addresses of that data will be searched next time. In this case, it is considered that the data storage address conversion processing section changes the storage address of each data so that it is searched by its own second and first key conversion addresses.This is realized by the following algorithm.

アルゴリズム 5tepl  第1キー変換アドレスで所望データの検
索完了。データ格納アドレス変更の ため5tep2.へ 5tep2. (バッファ)・−(第1キー変換アドレ
スのデータ) Step3. (第1キー変換アドレスのデータ)・−
(第1キー変換アドレスのデータ)Step4.  j
 = 1 Step5.  j ”−j +(第1キー変換アドト
スの衝突カウンタ値) Step6.第1キー変換アドトスのデータとバッファ
内データの交換 5tep7、J−1であれ(瓜 データ格納アドレスの
変更完了。
Algorithm 5tepl Search for desired data is completed using the first key conversion address. 5step 2. to change the data storage address. 5 step 2. (buffer) - (data of first key conversion address) Step 3. (Data of 1st key conversion address)・-
(Data of first key conversion address) Step 4. j
= 1 Step 5. j ''-j + (first key conversion adtos collision counter value) Step 6. Exchange of first key conversion adtos data and data in the buffer 5tep 7, whether it is J-1 (melon) Data storage address change complete.

そうでなければ5tep5.へ 上に示1.た方法において、 ]っのデータを一時的に
蓄積するバッファはメモリ11内にあって舷デタ格納ア
ドレス変更処理部13にあってもよ賊軍3図(b)、 
(e)はそれぞれ データQUEおよびHOWを検索後
、上記方法によってデータの格納アドレスの変更を行っ
たものである。同図(b)、 (c)において引き続い
てデータQUEおよびHOWを検索することがあれば今
度は第1キー変換アドレスで直ちに検索を完了すること
ができへつまり、本発明による衝突カウンタ112とデ
ータ格納アドレス変更処理部13を用いて第3図のよう
にデータ格納アドレスを変更することにより、過去に検
索したデータよりも最近に検索したデータはど速く検索
を完了することができも次に第4図に示ス、メモリ内デ
ータ削除の第一の実施例を用いて、本発明による衝突カ
ウンタ112、データ格納アドレス変更処理部13の役
割について説明する。
If not, 5 step 5. Shown above 1. In this method, the buffer for temporarily accumulating the data in ] is located in the memory 11 and in the side data storage address change processing unit 13.
In (e), after searching the data QUE and HOW, the data storage address is changed using the above method. If the data QUE and HOW are subsequently searched in (b) and (c) of the same figure, the search can be completed immediately using the first key conversion address. By changing the data storage address using the storage address change processing unit 13 as shown in FIG. The roles of the collision counter 112 and the data storage address change processing section 13 according to the present invention will be explained using the first embodiment of data deletion in memory shown in FIG.

第4図(a)には第2図で示した方法により作成された
データベースを示す。いまこのデークベ−スから削除す
べきデータが第1キー変換アドレスで検索され そのデ
ータを削除したとする。そしてその削除したデータの第
にキー変換アドレスに対応する衝突カウンタに予約語″
E′が書き込まれていたとすると(i<k)、今回削除
したデータの第(i+1)から第にキー変換アドレスで
検索されていたデータが次回には自身の第1−1(k〜
1)キー変換アドレスで検索されるようにデータ格納ア
ドレス変換処理部が各データの格納アドレス変更を行う
ことを考えも これは以下のアルゴリズムにより実現さ
れも アルゴリズム 5tep1. XI、 iキー変換アドレスのデータを
削譜データ格納アドレス変更のため5tep2、へ 5tep2.  、i嬌−J→ (第1キー変換アドレ
スの衝突カウンタ値) Step3. (第1キー変換アドレスのデータ)・−
(第Jキー変換アドレスのデータ)Step4.第Jキ
ー変換アドレスの衝突カウンタに 予約語°E′が書き
込まれていれば5tep6.へ そうでなければ5tep5.へ 5tep5゜1←J として5tep2゜へ5tep6
.  (第1キー変換アドレスの衝突カウンタ)−予約
語″E″ 5tep7.  (第1キー変換アドレス)−空(第J
キー変換アドレスの衝突カウン タ)−空 として削除処理完了。
FIG. 4(a) shows a database created by the method shown in FIG. Suppose now that data to be deleted from this database is searched for using the first key conversion address and the data is deleted. And the collision counter corresponding to the first key conversion address of that deleted data is the reserved word ″
Assuming that E' has been written (i<k), the data that was searched by the key conversion address from the (i+1)th to the key conversion address of the data deleted this time will be its own 1-1st (k~) next time.
1) It is considered that the data storage address conversion processing unit changes the storage address of each data so that it can be searched by the key conversion address.This can be realized by the following algorithm.Algorithm 5tep1. XI, i-key conversion address data to 5tep2 to change the notation data storage address.5tep2. , i嬌−J→ (Collision counter value of first key conversion address) Step 3. (Data of 1st key conversion address)・-
(Data of J-th key conversion address) Step 4. If the reserved word °E' is written in the collision counter of the J-th key conversion address, 5step 6. If not, go to step 5. To 5tep5゜1←J As 5tep2゜5tep6
.. (Collision counter of first key conversion address) - Reserved word "E" 5step7. (1st key conversion address) - Empty (Jth
Key conversion address collision counter) - Deletion processing completed as empty.

第4図(b)はデータQUEの削除後、」二記方法によ
ってデータの格納アドレスの変更を行ったものである。
FIG. 4(b) shows that after the data QUE is deleted, the data storage address is changed by the method described in "2".

本発明による衝突カウンタ112とデータ格納アドレス
変更処理部13を用いて第4図のようにデータ格納アド
レスを変更すれ(′L 第8図に示した従来例の場合の
ように削除を示す予約語を書き込んでメモリの利用効率
を低下させることなくデータの削除を行うことができる
By using the collision counter 112 and the data storage address change processing unit 13 according to the present invention, the data storage address is changed as shown in FIG. Data can be deleted without writing and reducing memory usage efficiency.

次に第5図に示すメモリ内データ削除の第二の実施例を
用いて、本発明による衝突カウンタ112、AGEカウ
ンタ113、データ格納アドレス変更処理部13、カウ
ンタ処理部14の役割について説明ずも 第5図(a)には第2図で示した方法により作成された
データベースを示す。ただしこのデータベースにはAG
Eカウンタ113が追加されている方丈 これはそのデ
ータが登録あるいは検索されたときのカウンタ処理部1
4の内部カウンタ値を示している。カウンタ処理部14
は内部にカウンタを持板 データ入出力処理部12がメ
モリ11をアクセスする度にカウンタ値をインクリメン
トしており、従って、データが検索される毎にそのデー
タのAGEカウンタ値は書き換えられるものであム そ
してこのAGEカウンタを用いることによりメモリ内デ
ータのへ 最近の検索が最も古いデータを削除すること
を考えも これは以下のアルゴリズムにより実現される
Next, the roles of the collision counter 112, AGE counter 113, data storage address change processing section 13, and counter processing section 14 according to the present invention will not be explained using the second embodiment of data deletion in memory shown in FIG. FIG. 5(a) shows a database created by the method shown in FIG. However, in this database, AG
Hojo with E counter 113 added This is the counter processing unit 1 when the data is registered or searched.
The internal counter value of 4 is shown. Counter processing unit 14
has a counter inside. Each time the data input/output processing unit 12 accesses the memory 11, the counter value is incremented. Therefore, each time data is retrieved, the AGE counter value of that data is rewritten. By using this AGE counter, the most recent search of the data in memory is to delete the oldest data.This is realized by the following algorithm.

アルゴリズム 5tep1.まず最もAGEカウンタの値が小さいデー
タを検索する。
Algorithm 5 step 1. First, data with the smallest AGE counter value is searched.

5tep2.そのデータの第1キー変換アドレスの衝突
カウンタ値が予約語°E“であれば(第1キー変換アド
レス)−空 (第1キー変換アドレスの衝突カウン タ)−空 として削除完了。
5 step 2. If the collision counter value of the first key conversion address of the data is the reserved word °E, then (first key conversion address) - empty (collision counter of first key conversion address) - empty and deletion is completed.

そうでなければ5tep3.へ 5tep3.  i ←l 5tep4.  j = i + (第1キー変換アド
レスの衝突カウンタ値) Step5、第Jキー変換アドレスの衝突カウンタ値が
予約語”E′であれば5tep7.へそうてなければ5
tep6.へ 5tep6.  j 4− i  として5tep4.
 ヘ5tep7.  (第Jキー変換アドレス)−空(
第Jキー変換アドレスの衝突カウン タ)←空 (第1キー変換アドレスの衝突カウン タ)・−予約語”E″ として削除完了。
If not, 5 step 3. Go to 5 step 3. i ←l 5step4. j = i + (Collision counter value of the first key conversion address) Step 5. If the collision counter value of the Jth key conversion address is the reserved word "E', go to 5 step 7. Otherwise, go to 5.
step6. Go to 5 step 6. j 4- i as 5tep4.
F5 step7. (Jth key conversion address) - empty (
Collision counter of Jth key conversion address) ← Empty (Collision counter of first key conversion address) - Completed deletion as reserved word "E".

上に述へた方法(i 先の議論から”データ配置アドレ
ス変更処理部13がデータの検索毎にデータの配置アド
レスを変更している限り、最もAGEカウンタの値が小
さいデータの衝突カウンタには予約語′E′が書き込ま
れているはずであもという前提に基づくものである。
The above method (i) From the previous discussion, as long as the data location address change processing unit 13 changes the data location address every time data is retrieved, the collision counter of the data with the smallest AGE counter value will This is based on the premise that the reserved word 'E' should have been written.

第5図(b)は上記方法によりデータHOWを削除した
ものであり、同図(c)はその状態の後でデータLDN
Gを登録したものである。つまり第5図の例は 登録デ
ータがメモリー杯になった状態で新たなデータの登録要
求が発生したとき、メモリ内で最近の検索が最も古いデ
ータを自動的に削除し新たなデータを登録するというモ
デルになっていも 以−トのように本発明による衝突カ
ウンタ112、AGEカウンタ113、データ格納アド
レス変更処理部13、カウンタ処理部14を用イてメモ
リ内のデータのべ 最近の検索が最も8いデータを削除
することができる。
FIG. 5(b) shows data HOW deleted by the above method, and FIG. 5(c) shows data LDN deleted after that state.
G is registered. In other words, in the example shown in Figure 5, when a new data registration request occurs when the memory is full of registered data, the oldest data in the memory that has been recently searched is automatically deleted and new data is registered. Even if the model is as follows, the collision counter 112, the AGE counter 113, the data storage address change processing section 13, and the counter processing section 14 according to the present invention are used to search the most recent data in the memory. 8 data can be deleted.

最後に第6図を用いて、本発明のデータ検索装置が適用
される具体的な応用例を示す。第6図(a)には複数の
LANを接続するブリッジ6o内にデータ検索装置1か
置かれており、同図(b)はデータ検索装置1内のメモ
リ11の構成を示すものである。メモリ11には全LA
Nに接続されたノードのアドレスとそのノードが接続さ
れているLANナンバー そして補助情報が登録されて
いる。この補助データの一部に本発明で使用する衝突カ
ラン久 AGEカウンタ領域を取ることになる。ブリッ
ジ60は各L A Nから受信したパケットの送信先ア
ドレスをメモリ11内から検索しどのLANにルーティ
ングすべきかを判断する。
Finally, using FIG. 6, a specific application example to which the data retrieval device of the present invention is applied will be shown. In FIG. 6(a), the data retrieval device 1 is placed in a bridge 6o that connects a plurality of LANs, and FIG. 6(b) shows the configuration of the memory 11 in the data retrieval device 1. All LA in memory 11
The address of the node connected to N, the LAN number to which that node is connected, and auxiliary information are registered. A part of this auxiliary data is the collision counter area used in the present invention. The bridge 60 searches the memory 11 for the destination address of the packet received from each LAN and determines to which LAN the packet should be routed.

このとき−例として、 nビットから成る送信先ノード
アドレスの1%mビット (02m)をデータ検索のキ
ーとして利用することができもいま例えば ノード65
からノード67宛に長いメツセージがいくつかのセグメ
ントパケットとし、てフロー制御されながら送信される
場合を省える。本発明によるデータ検索装置を用いれば
 このときノード67のアドレスn3を第2のセグメン
トパケットからは第1のキー変換アドレスで直ちに検索
を行うことができるた数 パケットルーティング時に発
生するブリッジ60での遅延時間を最小限に抑えること
ができる。また 通信においてはノード65からノード
67宛にパケットを送信した場合、引き続いて直ちにノ
ード67からノード65宛に応答パケットが送信される
確率が非常に犬き1.%  従ってブリッジ60内デー
タ検索装置1はパケットを受信時、パケットの送信先ア
ドレスだけでなく送信元アドレスも次回の検索時には第
1キー変換アドレスで検索できるようにデータの格納ア
ドレスを変更しておくことも可能であム さらに本発明
によるデータ検索装置を用いれば各LANに新たな、ノ
ードが接続されたとき、あるいは逆にノードの接続が外
されたときにもメモリ内データベースの再構成が可能で
ある。特にノードの接続が外されたときにはそのノード
アドレスが検索されなくなるた八 前述のA、 G E
カウンタにより自動的にその登録を抹消することも可能
である。
In this case, for example, 1% m bits (02m) of the destination node address consisting of n bits can be used as a key for data retrieval.
This eliminates the need for a long message to be sent from node 67 as several segment packets under flow control. If the data search device according to the present invention is used, the address n3 of the node 67 can be immediately searched from the second segment packet using the first key conversion address.Delay at the bridge 60 that occurs during packet routing time can be minimized. In addition, in communication, when a packet is sent from node 65 to node 67, the probability that a response packet will be immediately sent from node 67 to node 65 is very low. % Therefore, when the data search device 1 in the bridge 60 receives a packet, it changes the data storage address so that not only the destination address but also the source address of the packet can be searched using the first key conversion address the next time. Furthermore, by using the data retrieval device according to the present invention, it is possible to reconfigure the in-memory database when a new node is connected to each LAN, or conversely when a node is disconnected. It is. In particular, when a node is disconnected, its node address will no longer be searched.
It is also possible to automatically delete the registration using a counter.

発明の効果 以上述べてきたように本発明によるデータ検索装置を用
いれ(瓜 データ登録時に作成した補助ブタを利用して
データ検索の際に明らかに無駄に終わる検索を回避し 
データ検索の高速化が図れるという効果を有する。
Effects of the Invention As described above, the data retrieval device according to the present invention can be used to avoid unnecessary searches during data retrieval by using the auxiliary tab created at the time of data registration.
This has the effect of speeding up data retrieval.

まf、−補助データを利用してメモリ内データの格納ア
ドレスを変更することにより、過去に検索したデータよ
りも最近に検索したデータはど速く(つまりより少ない
検索回数で)検索を完了することができるという効果を
有する。
- By changing the storage address of data in memory using auxiliary data, it is possible to complete a search for data searched more recently (in other words, with fewer searches) than for data searched in the past. It has the effect of being able to.

また 削除したデータの補助データを利用してメモリ内
データの格納アドレスを変更することにより、メモリの
利用効率を低下さゼることなく動的にデータの削除 登
録によるデータベースの再構成ができるという効果を有
する。
In addition, by changing the storage address of data in memory using auxiliary data of deleted data, it is possible to dynamically reconfigure the database by deleting and registering data without reducing memory usage efficiency. has.

また 補助データを利用してメモリ内データのへ 最近
の検索か最も6いデータを自動的に削除することかでき
るという効果を有す4 また 本発明によるデータ検索装置を、 リアルタイム
処理が要求される通信ネットワークの端末アドレス管理
装置として適用した場合、高速なパケットのルーティン
グ処理を可能とするという効果を有ず4
In addition, it has the effect of automatically deleting the most recent search or the most recent data in the memory data by using the auxiliary data. When applied as a terminal address management device in a communication network, it has the effect of enabling high-speed packet routing processing.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明によるデータ検索装置の一構成例のブロ
ックに 第2図は本発明によるメモリへのデータ登坂 
検索の第一の実施例を示す艮 第3図はデータ検索の第
二の実施例を示すに 第4図は本発明によるメモリ内デ
ータ削除の第一の実施例を示す艮 第5図はデータ削除
の第二の実施例を示す匁 第6図は本発明のデータ検索
装置が適用されるシステムの一例を示す皿 第7図は従
来のデータ検索装置のブロック@ 第8図は従来のデー
タ検索装置によるメモリへのデータ金縁検索の一例をf
ず@ 第9図は従来のデータ検索装置による、メモ1(
内データ削除の一例を示す図である。 1・・・データ検索装置 11・・・メモリ、12・・
・データ入出力処理能 121・・・データ登録処理想
 122・・・データ削除処理服123・・・データ検
索処理a  13・・・データ格納アドレス変更処理皿
 14・・・カウンタ処理皿 1]】・・・データ(記
憶領域)、 112・・・衝突カウンタ(記憶領域)、
 73・・AGEカウンタ(記憶領域)、 6o・・・
ブリッジ、 6l−−LANI、  62−・LAN2
、63−−・LAN3、64−−・LANn、 65.
66、67・・・ノード。 代理人の氏名 弁理士 小鍜治 明 ほか2名 第 図 ((IJ IIM院約収り (1) 削隙偉(K:旭 坏 図 (a) 子−夕惰lI―嘉内メモリ I 箪 図 肖りr蓼R〕丁ガ〜勢 ”QUE’ 1111すRCasel
Figure 1 shows a block diagram of a configuration example of a data retrieval device according to the present invention, and Figure 2 shows how data climbs into a memory according to the present invention.
Fig. 3 shows a second embodiment of data retrieval; Fig. 4 shows a first embodiment of data deletion in memory according to the present invention; Fig. 5 shows data Figure 6 shows an example of a system to which the data retrieval device of the present invention is applied. Figure 7 is a block diagram of a conventional data retrieval device. Figure 8 is a conventional data retrieval device. An example of a data frame search in memory by a device is f.
Figure 9 shows memo 1 (
FIG. 3 is a diagram illustrating an example of internal data deletion. 1...Data retrieval device 11...Memory, 12...
・Data input/output processing capacity 121...Data registration processing 122...Data deletion processing 123...Data search processing a 13...Data storage address change processing tray 14...Counter processing tray 1]] ...Data (storage area), 112...Collision counter (storage area),
73...AGE counter (storage area), 6o...
Bridge, 6l--LANI, 62-・LAN2
, 63--・LAN3, 64--・LANn, 65.
66, 67... Node. Name of agent: Patent attorney Akira Okaji and two others (IJ IIM Institute contract collection (1) Gakuwei (K: Akira Asahi (a) Child - Yuji I - Kanai Memory I Tanzu Portrait RIr蓼R〕Dinga~se “QUE” 1111suRCasel

Claims (1)

【特許請求の範囲】 (1)データ記憶領域とその各データの格納アドレスに
対応する第1の補助データ記憶領域とを持つメモリと、 前記メモリへデータの登録を行うデータ登録処理部、お
よび前記メモリ内データの検索を行うデータ検索処理部
を有するデータ入出力処理部とを備え、 前記データ登録処理部は、前記メモリへデータを登録す
る際、その登録すべきデータに付けられているキーを用
いて決定されるキー変換アドレスを第1番目のキー変換
アドレスから第2、第3番目のキー変換アドレスといっ
た具合いに順次検索し、はじめて他のデータ登録のない
空アドレスを検出したとき、そのアドレスに前記データ
を格納すると共にそのアドレスに対応する前記第1の補
助データ領域に登録を示す予約語を書き込むように構成
し、 前記データ検索処理部は、前記メモリからデータを検索
する際、検索データに付けられているキーを用いて第1
番目のキー変換アドレスから第2、第3番目のキー変換
アドレスといった具合いに所望のデータが見つかるまで
順次検索を行うように構成し、 前記データ登録処理部が前記方法でデータを登録する際
、いま第n番目のキー変換アドレスに対応する前記第1
の補助データ領域にはじめて前記予約語を検出し、第(
n+i)番目のキー変換アドレスにはじめて空アドレス
を検出した場合、第n番目のキー変換アドレスに対応す
る前記第1の補助データ領域の内容を前記予約語から値
iに書き換えることにより、 前記データ検索処理部が前記方法でデータを検索する際
、および前記データ登録処理部が前記方法で空アドレス
を検索する際、いま第p番目のキー変換アドレスの内容
が所望のデータでなかったとき、そのアドレスに対応す
る前記第1の補助データの内容を調べその値がqであっ
た場合、次回は、前記データ検索処理部および前記デー
タ登録処理部が第(p+q)番目のキー変換アドレスを
検索することを特徴とするデータ検索装置。 (2)請求項1記載のデータ検索装置において、前記デ
ータ入出力処理部が前記メモリ内データの格納アドレス
を変更するデータ格納アドレス変更処理部を備え、 前記データ格納アドレス変更処理部は前記データ検索処
理部によってデータが検索された際に、前記メモリ内デ
ータの格納アドレスを変更することを特徴とするデータ
検索装置。(3)請求項2記載のデータ検索装置におい
て、前記データ検索処理部が前記メモリ内データの検索
頻度を計算し、前記データ格納アドレス変更処理部が、
検索頻度の高いデータほどより小さな番号のキー変換ア
ドレスで検索されるように、前記メモリ内データの格納
アドレスを定期的に変更することを特徴とするデータ検
索装置。 (4)請求項2記載のデータ検索装置において、いまあ
るデータが前記データ検索処理部により第i番目のキー
変換アドレス(i≠1)で検索されたとき、次回にはそ
のデータが第1番目のキー変換アドレスで検索され、今
回前記データの第1〜第(i−1)番目のキー変換アド
レスで検索されていたデータが次回には自身の第2〜第
i番目のキー変換アドレスで検索されるように、前記デ
ータ格納アドレス変更処理部が前記メモリ内データの格
納アドレスを変更することを特徴とするデータ検索装置
。 (5)請求項1または請求項4記載のデータ検索装置に
おいて、前記データ入出力処理部が前記メモリからデー
タの削除を行うデータ削除処理部を備え いま削除すべきデータが第i番目のキー変換アドレスで
検索され前記データ削除処理部によって削除されたとき
、前記データの第k番目のキー変換アドレスに対応する
前記第1の補助データにはじめて前記予約語が書き込ま
れていたとすると(i<k)、今回前記データの第(i
+1)〜第k番目のキー変換アドレスで検索されていた
データが次回には自身の第i〜第(k−1)番目のキー
変換アドレスで検索されるように、前記データ格納アド
レス変更処理部が前記メモリ内データの格納アドレスを
変更することを特徴とするデータ検索装置。 (6)請求項5記載のデータ検索装置において、前記メ
モリ内に各データのメモリ内保持時間に関する第2の補
助データ記憶領域と、内部カウンタを持ち前記データ入
出力処理部による前記メモリのアクセス毎に内部カウン
タをインクリメントするカウンタ処理部を備え、 前記データ登録処理部による前記メモリへのデータの登
録、前記データ検索処理部によるデータの検索が行われ
た際には、その登録および検索されたデータのアドレス
に対応する前記第2の補助データの内容を前記カウンタ
処理部内の内部カウンタ値に書き換えることにより、 前記メモリ内の登録データ数が一定値を越えた場合には
前記データ削除処理部が前記第2の補助データの値が最
も小さいデータを自動的に削除することを特徴とするデ
ータ検索装置。
[Scope of Claims] (1) A memory having a data storage area and a first auxiliary data storage area corresponding to the storage address of each data, a data registration processing unit that registers data in the memory, and the a data input/output processing section having a data search processing section that searches for data in the memory, and the data registration processing section, when registering data in the memory, uses a key attached to the data to be registered. The key conversion address determined using the ``key conversion address'' is searched sequentially from the first key conversion address to the second, third key conversion address, etc., and when an empty address with no other data registered is detected for the first time, that address the data is stored in the memory, and a reserved word indicating registration is written in the first auxiliary data area corresponding to the address; Use the key attached to the first
The configuration is such that the search is performed sequentially from the second key conversion address to the second and third key conversion addresses until the desired data is found, and when the data registration processing section registers data using the method, the first corresponding to the nth key conversion address;
The reserved word is detected for the first time in the auxiliary data area of
When an empty address is detected for the first time at the n+i)th key conversion address, the data search is performed by rewriting the content of the first auxiliary data area corresponding to the nth key conversion address from the reserved word to the value i. When the processing unit searches for data using the method described above, and when the data registration processing unit searches for an empty address using the method, if the content of the current p-th key conversion address is not the desired data, the address When the content of the first auxiliary data corresponding to is checked and the value is q, next time, the data search processing section and the data registration processing section search for the (p+q)th key conversion address. A data retrieval device characterized by: (2) The data search device according to claim 1, wherein the data input/output processing unit includes a data storage address change processing unit that changes the storage address of the data in the memory, and the data storage address change processing unit is configured to perform the data search. A data search device characterized in that when data is searched by a processing unit, a storage address of the data in the memory is changed. (3) In the data search device according to claim 2, the data search processing unit calculates the search frequency of the data in the memory, and the data storage address change processing unit:
A data search device that periodically changes the storage address of the data in the memory so that data that is searched more frequently is searched using a key conversion address with a smaller number. (4) In the data search device according to claim 2, when existing data is searched by the data search processing unit using the i-th key conversion address (i≠1), next time the data will be searched at the first key conversion address (i≠1). The data that was currently searched for using the first to (i-1)th key conversion addresses of the data will be searched for using its second to ith key conversion addresses next time. The data retrieval device is characterized in that the data storage address change processing unit changes the storage address of the data in the memory. (5) The data retrieval device according to claim 1 or claim 4, wherein the data input/output processing unit includes a data deletion processing unit that deletes data from the memory, and the data to be deleted now is an i-th key conversion. Suppose that when the reserved word is searched by address and deleted by the data deletion processing unit, the reserved word is written for the first time in the first auxiliary data corresponding to the k-th key conversion address of the data (i<k). , this time the (i-th
+1) The data storage address change processing unit so that the data that has been searched by the k-th key conversion address will be searched by the i-th to (k-1)th key conversion address of itself next time. A data retrieval device, wherein the data retrieval device changes a storage address of the data in the memory. (6) The data retrieval device according to claim 5, further comprising, in the memory, a second auxiliary data storage area related to the in-memory retention time of each data, and an internal counter, each time the data input/output processing section accesses the memory. a counter processing unit that increments an internal counter, and when the data registration processing unit registers data in the memory and the data search processing unit searches for data, the registered and searched data By rewriting the contents of the second auxiliary data corresponding to the address of the counter into an internal counter value in the counter processing unit, when the number of registered data in the memory exceeds a certain value, the data deletion processing unit A data search device characterized by automatically deleting data having the smallest second auxiliary data value.
JP2271127A 1990-10-09 1990-10-09 Data retriever Pending JPH04149676A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2271127A JPH04149676A (en) 1990-10-09 1990-10-09 Data retriever

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2271127A JPH04149676A (en) 1990-10-09 1990-10-09 Data retriever

Publications (1)

Publication Number Publication Date
JPH04149676A true JPH04149676A (en) 1992-05-22

Family

ID=17495705

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2271127A Pending JPH04149676A (en) 1990-10-09 1990-10-09 Data retriever

Country Status (1)

Country Link
JP (1) JPH04149676A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9838381B2 (en) 2014-02-26 2017-12-05 Mitsubishi Electric Corporation Certificate management apparatus and certificate management method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9838381B2 (en) 2014-02-26 2017-12-05 Mitsubishi Electric Corporation Certificate management apparatus and certificate management method
DE112014006407B4 (en) 2014-02-26 2022-06-02 Mitsubishi Electric Corporation Certificate management device and certificate management method

Similar Documents

Publication Publication Date Title
US9798774B1 (en) Graph data search method and apparatus
CN101866357B (en) Method and device for updating items of three-state content addressing memory
CN1316390C (en) Performance and memory bandwidth utilization for tree searches using tree fragmentation
US6434144B1 (en) Multi-level table lookup
JP3199051B2 (en) Router deciding device having cache and machine-readable recording medium recording program
US7565343B2 (en) Search apparatus and search management method for fixed-length data
US20020138648A1 (en) Hash compensation architecture and method for network address lookup
WO1999013587B1 (en) A high speed cache management unit for use in a bridge/router
US20070171911A1 (en) Routing system and method for managing rule entry thereof
US7076630B2 (en) Method and apparatus for allocating and de-allocating consecutive blocks of memory in background memo management
CN103051543B (en) A kind of process of route prefix, search, increase and delet method
Lee et al. Name prefix matching using bloom filter pre-searching for content centric network
CN102736986A (en) Content-addressable memory and data retrieving method thereof
CN107276916A (en) Interchanger flow table management method based on agreement unaware retransmission technique
CN110096458B (en) Named data network content storage pool data retrieval method based on neural network
Han et al. A novel routing algorithm for IoT cloud based on hash offset tree
WO2015032214A1 (en) High-speed routing lookup method and device simultaneously supporting ipv4 and ipv6
JP3446704B2 (en) Shaper and scheduling method used therefor
JPH04149676A (en) Data retriever
CN110109616B (en) Named data network content storage pool data deletion method based on neural network
CN110851658B (en) Tree index data structure, content storage pool, router and tree index method
CN107896194A (en) A kind of method for searching route, device and storage medium
CN110138661A (en) Name data network content storage pool neural network based
CN104301227B (en) High-speed low-power-consumption IP route table lookup method based on TCAM
CN110196938B (en) Named data network content storage pool data insertion method based on neural network