JP2003198596A - Address table management method and address table management device - Google Patents

Address table management method and address table management device

Info

Publication number
JP2003198596A
JP2003198596A JP2001398155A JP2001398155A JP2003198596A JP 2003198596 A JP2003198596 A JP 2003198596A JP 2001398155 A JP2001398155 A JP 2001398155A JP 2001398155 A JP2001398155 A JP 2001398155A JP 2003198596 A JP2003198596 A JP 2003198596A
Authority
JP
Japan
Prior art keywords
address
entry
upper layer
unused
registered
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
JP2001398155A
Other languages
Japanese (ja)
Inventor
Takahiro Hara
孝宏 原
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.)
Furukawa Electric Co Ltd
Original Assignee
Furukawa 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 Furukawa Electric Co Ltd filed Critical Furukawa Electric Co Ltd
Priority to JP2001398155A priority Critical patent/JP2003198596A/en
Publication of JP2003198596A publication Critical patent/JP2003198596A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To suppress to a minimum the movement of an entry associated with the entry registration and deletion of an IP address. <P>SOLUTION: The head of a storage area for each block in an address table 13a registered with IP addresses is pointed by a pointer, all the index numbers of unused entries caused by the deletion of entries are registered in a stack memory 11b and when registering an IP address on the address table 13a, a processor 12 for device management detects the index numbers of the unused entries from the stack memory 11b. Then, a network processor 14 performs the entry registration of this IP address in the unused area of the address table 13a. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、アドレステーブ
ルへの上位層アドレスのエントリ登録およびアドレステ
ーブルからの上位層アドレスのエントリ削除を行うアド
レステーブル管理方法およびアドレステーブル管理装置
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an address table management method and an address table management device for registering an entry of an upper layer address in an address table and deleting an entry of an upper layer address from the address table.

【0002】[0002]

【従来の技術】従来、インターネット上を流れるデータ
は、例えばパケットと呼ばれる一塊のデジタルデータを
単位として構成されている。ネットワーク間に設けられ
たルータなどのネットワーク中継装置では、中継処理用
のネットワークプロセッサが一方のネットワークから受
信したこのパケットを認識して、データの中継処理を行
った後に、他方のネットワークに転送している。このネ
ットワーク中継装置における中継処理に対しては、近年
のデータ通信量の大容量化に伴って非常に高速な処理の
要求が高まっており、その解決のための様々な手法が案
出されている。
2. Description of the Related Art Conventionally, data flowing on the Internet is composed of, for example, a unit of digital data called a packet. In a network relay device such as a router provided between networks, the network processor for relay processing recognizes this packet received from one network, relays the data, and then transfers it to the other network. There is. With regard to the relay processing in this network relay device, the demand for very high-speed processing has been increasing with the increase in the capacity of data communication in recent years, and various methods have been devised for solving the problem. .

【0003】この中継処理の主な動作は、パケットのヘ
ッダに格納された宛先アドレスや発信元アドレスから転
送先ポートを求めることであり、例えばこのアドレスを
検索キーとして転送先ポートを求める目的でアドレスを
記憶したアドレステーブルを用いていた。このアドレス
テーブルは、中継処理用のネットワークプロセッサに接
続されたメモリ内に構成されており、このアドレステー
ブルの高速なアドレス検索や効率の良いメモリ利用を可
能とするためには、このアドレステーブルの管理方法が
重要な課題であった。
The main operation of this relay process is to obtain the transfer destination port from the destination address or the source address stored in the header of the packet. For example, the address is used to obtain the transfer destination port using this address as a search key. Was used to store the address table. This address table is configured in the memory connected to the network processor for relay processing. To enable high-speed address search and efficient memory use of this address table, management of this address table is required. Method was an important issue.

【0004】このようなアドレステーブルを、例えば高
速検索が可能な特殊なメモリであるCAM(Conte
nt Addressable Memory)に設け
ることで、ネットワーク中継装置の性能を大きく向上さ
せることが可能となった。
Such an address table is used, for example, in a CAM (Content) which is a special memory capable of high speed retrieval.
nt Addressable Memory), it has become possible to greatly improve the performance of the network relay device.

【0005】このアドレステーブルでは、登録されるエ
ントリの検索を容易に行うために、予めメモリを異なる
プレフィクス長の数だけブロックに分割する。そしてC
AMとは別の汎用メモリを設け、この汎用メモリは、装
置管理用のプロセッサによって制御される図14に示す
ような管理テーブルを備え、ブロックの順序が変わらな
いようにエントリの登録や削除を行う。すなわち、各ブ
ロック0,1,2,…,n(nは任意の整数)にフロア
ポインタ(FloorPTR)、ネクストフリーポイン
タ(NextFreePTR)を一組ずつ用意する。こ
のフロアポインタは、該当するブロックにエントリされ
る先頭のアドレスを示し、ネクストフリーポインタは、
該当するブロックの未使用領域の先頭を示すものであ
る。
In this address table, in order to easily search the entry to be registered, the memory is divided into blocks in advance by the number of different prefix lengths. And C
A general-purpose memory different from the AM is provided, and this general-purpose memory has a management table as shown in FIG. 14 which is controlled by a processor for device management, and registers and deletes entries so that the order of blocks does not change. . That is, a pair of floor pointer (FloorPTR) and next free pointer (NextFreePTR) is prepared for each block 0, 1, 2, ..., N (n is an arbitrary integer). This floor pointer indicates the top address entered in the corresponding block, and the next free pointer is
It shows the beginning of the unused area of the corresponding block.

【0006】CIDR(Classless Inte
r Domain Routing)によるアドレス管
理方法を使用したアドレステーブルは、例えば3つのブ
ロック0,1,2に分割されており、それぞれのブロッ
クに登録されるエントリは、プレフィクスの長さが異な
っている。このエントリは、インデックス(Inde
x)番号の若い方に、プレフィクスの長いものがグルー
プ化されて配置されるようにソートされている。
CIDR (Classless Inte)
An address table using an address management method based on r Domain Routing) is divided into, for example, three blocks 0, 1, and the entries registered in each block have different prefix lengths. This entry is indexed (Inde
x) Sorts are arranged such that long prefixes are grouped and arranged to the smaller number.

【0007】ネットワークプロセッサは、このようなア
ドレステーブルにおいて、プレフィクスの長さの等しい
ブロックに対応するネクストフリーPTRが示すエント
リに、アドレス情報を登録する場合およびブロックを再
構成する場合を、図15のフローチャートと図16〜図
19のアドレステーブルのテーブル構成図に基づいて説
明する。例えば、エントリ“164.99.42.X”
(Xは、0〜255の任意の十進数に一致)を図16に
示すアドレステーブルに登録する場合には、プレフィク
スの長さが等しいブロック0(インデックス番号(テー
ブルのアドレス)が“01000”〜“01FFF”)
へ登録しなければならない。すなわち、装置管理用のプ
ロセッサは、図15に示すように、管理テーブル(図1
4参照)から該当するブロック0の未使用領域の先頭を
示すエントリ(ネクストフリーPTR(0))を取得す
る(ステップ101)。そして、このブロック0の未使
用領域があるかどうか判断する(ステップ102)。
FIG. 15 shows a case where the network processor registers address information and reconfigures a block in the entry indicated by the next free PTR corresponding to a block having the same prefix length in such an address table. 16 and 19 and the table configuration diagram of the address table shown in FIGS. For example, the entry “164.99.42.X”
When X (matches any decimal number from 0 to 255) is registered in the address table shown in FIG. 16, block 0 having the same prefix length (index number (table address) is “01000”). ~ "01FFF")
You must register to. That is, the device management processor, as shown in FIG.
The entry (next-free PTR (0)) indicating the beginning of the unused area of the corresponding block 0 is acquired from (see step 4) (step 101). Then, it is determined whether or not there is an unused area in this block 0 (step 102).

【0008】ここで、この未使用領域がある場合には、
登録プログラムをネットワークプロセッサに転送する。
ネットワークプロセッサは、この登録プログラムに基づ
いて、ネクストフリーPTR(0)が示す位置に“16
4.99.42.X”をアドレステーブルに登録させる
(ステップ103)。また、装置管理用プロセッサは、
図17に示すように、ネクストフリーPTR(0)を+
1させてインデックス番号“01701”に対応させて
管理テーブルを更新する(ステップ104)。
If there is this unused area,
Transfer the registration program to the network processor.
Based on this registration program, the network processor sets "16" at the position indicated by the next free PTR (0).
4.99.42. X "is registered in the address table (step 103). Further, the device management processor
As shown in FIG. 17, the next free PTR (0) is +
The management table is updated in association with the index number "01701" (step 104).

【0009】しかし、ステップ102において、該当す
るブロックにエントリ登録のための未使用領域がない場
合には、ブロックの再構成の手順が必要となるので、ブ
ロック再構成のプログラムをネットワークプロセッサに
転送する(ステップ105)。ネットワークプロセッサ
は、このブロック再構成のプログラムに基づいて、例え
ばエントリ“134.68.X.X”を新規に登録する
場合には、ブロック1(インデックス番号が“0200
0”〜“02FFF”)に登録する必要がある。ところ
が、このブロックには、図16に示すように、すでにネ
クストフリーPTR(1)=フロアPTR(2)となっ
ており、新たなエントリが登録できない状態にある。
However, in step 102, if there is no unused area for entry registration in the corresponding block, a block reconfiguration procedure is required, so the block reconfiguration program is transferred to the network processor. (Step 105). When the network processor newly registers the entry “134.68.XX.X”, for example, based on this block reconfiguration program, the block 1 (index number “0200
0 ”to“ 02FFF ”). However, as shown in FIG. 16, next free PTR (1) = floor PTR (2) is already set in this block, and a new entry is added. You cannot register.

【0010】この状態で、ブロック1に上記エントリを
登録するためには、このブロック再構成のプログラムに
基づいて、次のようなブロック拡張のための手順を行う
必要がある。まず、ネットワークプロセッサは、図18
に示すように、フロアPTR(2)が示すエントリ“1
92.X.X.X”を、ネクストフリーPTR(2)が
示す未使用領域に移動する。
In this state, in order to register the above-mentioned entry in the block 1, it is necessary to carry out the following procedure for expanding the block based on the program for reconstructing the block. First, the network processor is shown in FIG.
, The entry "1" indicated by the floor PTR (2)
92. X. X. X ″ is moved to an unused area indicated by the next free PTR (2).

【0011】この移動には、このエントリのインデック
ス番号“03000”からの読み出し、エントリの無効
(図18参照)、インデックス番号“03101”への
エントリの追加(図19参照)の手順が必要となってく
る。そして、フロアPTR(2)を+1に修正すると、
ネクストフリーPTR(1)が指し示すインデックス番
号“03000”の位置に未使用領域が現れる。
This movement requires a procedure of reading this entry from the index number "03000", invalidating the entry (see FIG. 18), and adding an entry to the index number "03101" (see FIG. 19). Come on. Then, if the floor PTR (2) is modified to +1,
An unused area appears at the position of the index number “03000” indicated by the next free PTR (1).

【0012】そして、ネットワークプロセッサは、この
未使用領域となったネクストフリーPTR(1)が示す
領域に、新規エントリ“134.68.X.X”を登録
して(ステップ103)、ネクストフリーPTR(1)
を+1に変更してアドレステーブルを更新し(ステップ
104)、ブロック1へのエントリ登録を完了してい
た。
Then, the network processor registers a new entry "134.68.XX.X" in the area indicated by the next free PTR (1) which has become the unused area (step 103), and the next free PTR. (1)
Was changed to +1 and the address table was updated (step 104), and entry registration in block 1 was completed.

【0013】次に、エントリの削除の場合について、図
20のフローチャートと図21、図22のアドレステー
ブルの構成図に基づいて説明する。このエントリの削除
は、該当エントリを無効にするだけでなく、そのエント
リを再使用できるように、ブロックの再構成を行う必要
がある。例えば図21に示すように、ブロック2の中央
付近に位置するインデックス番号“03050”のエン
トリ“186.X.X.X”を削除したい場合を考え
る。
Next, the case of deleting an entry will be described based on the flowchart of FIG. 20 and the address table configuration diagrams of FIGS. Deleting this entry requires not only invalidating the entry, but also reconfiguring the block so that the entry can be reused. For example, as shown in FIG. 21, consider a case where it is desired to delete the entry "186.X.XX.X" of the index number "03050" located near the center of the block 2.

【0014】まず、ネットワークプロセッサは、装置管
理用プロセッサから転送された削除のプログラムに基づ
き、削除したいエントリ“186.X.X.X”を無効
にする(ステップ201)。次に、ネットワークプロセ
ッサは、ブロックの途中に空き領域を作らないようにす
るために、装置管理用のプロセッサから転送されるブロ
ック再構成のプログラムに基づいて、ブロック2の再構
成を行う(ステップ202)。このブロック2の再構成
では、ネクストフリーPTR(2)が示す直前のエント
リ“192.X.X.X”を、無効化したエントリ(イ
ンデックス番号“03050”)に書き込む。
First, the network processor invalidates the entry "186.XX.XX.X" to be deleted based on the deletion program transferred from the device management processor (step 201). Next, the network processor reconfigures the block 2 based on the block reconfiguration program transferred from the device management processor in order to prevent a free area from being created in the middle of the block (step 202). ). In the reconfiguration of the block 2, the previous entry "192.X.XX.X" indicated by the next free PTR (2) is written to the invalidated entry (index number "03050").

【0015】なお、この書き込み動作には、このエント
リのインデックス番号“03101”からの読み出し、
エントリの無効(図21参照)、インデックス番号“0
3050”へのエントリの書き込み(図22参照)の手
順が必要となる。
In this writing operation, reading from the index number "03101" of this entry,
Invalid entry (see Fig. 21), index number "0"
The procedure of writing an entry to the 3050 ″ (see FIG. 22) is required.

【0016】そして、装置管理用プロセッサは、ネクス
トフリーPTR(2)を−1に変更して管理テーブルを
更新し(ステップ203)、未使用領域を1つにまとめ
ることによって、ブロック2のエントリの削除が完了し
ていた。
Then, the device management processor updates the management table by changing the next free PTR (2) to -1 (step 203), and collects the unused areas into one, whereby the entry of the block 2 is deleted. The deletion was completed.

【0017】[0017]

【発明が解決しようとする課題】しかしながら、上記従
来例では、CAMへのエントリの追加や削除の動作に、
ブロックの再構成を頻繁に行う必要性が生じている。こ
の再構成に伴うCAMエントリの読み出しや書き込みの
動作は、検索に比べて非常に時間がかかりこの他の動作
に遅延をきたすこととなるので、装置全体の処理性能を
低下させるという問題点があった。
However, in the above conventional example, the operation of adding or deleting an entry to the CAM is
The need for frequent block restructuring has arisen. The read / write operation of the CAM entry accompanying this reconfiguration takes much longer than the search, and causes a delay in other operations. Therefore, there is a problem that the processing performance of the entire device is deteriorated. It was

【0018】この発明は、上記問題点に鑑みなされたも
ので、アドレスのエントリ登録および削除に伴うエント
リの移動を最小限に抑えることができるアドレステーブ
ル管理方法およびアドレステーブル管理装置を提供する
ことを目的とする。
The present invention has been made in view of the above problems, and it is an object of the present invention to provide an address table management method and an address table management apparatus capable of minimizing the movement of entries due to entry registration and deletion of addresses. To aim.

【0019】[0019]

【課題を解決するための手段】上記目的を達成するた
め、この発明では、複数の記憶領域に分割されたアドレ
ステーブルを有し、該アドレステーブルの管理を行うア
ドレステーブル管理方法において、入力する上位層アド
レスを前記アドレステーブルの記憶領域のうちの所定記
憶領域にエントリ登録または削除するエントリ工程と、
前記上位層アドレスが登録された記憶領域の先頭を指示
する第1の指示情報を前記各記憶領域に設定する第1の
設定工程と、前記アドレステーブルのうちの前記上位層
アドレスが登録されていない未使用エントリのインデッ
クス番号を登録テーブルに登録する登録工程と、前記未
使用エントリを指示する第2の指示情報を前記登録テー
ブルに設定する第2の設定工程とを含むことを特徴とす
るアドレステーブル管理方法が提供される。
In order to achieve the above object, according to the present invention, an address table management method is provided which has an address table divided into a plurality of storage areas and manages the address table. An entry step of registering or deleting a layer address in a predetermined storage area of the storage area of the address table;
A first setting step of setting first instruction information for instructing the beginning of a storage area in which the upper layer address is registered in each of the storage areas; and the upper layer address in the address table is not registered An address table including a registration step of registering an index number of an unused entry in a registration table, and a second setting step of setting second instruction information for instructing the unused entry in the registration table. A management method is provided.

【0020】この発明によれば、前記上位層アドレスが
登録された記憶領域を指示するとともに、上位層アドレ
スが登録されていない未使用エントリのインデックス番
号を登録テーブルに登録しておき、エントリの削除によ
って生じた未使用エントリが生じた場合には、この未使
用エントリのインデックス番号を登録テーブルに登録す
ることで、次に上位層アドレスを登録する際には、第2
の指示情報によって指示されたこの記憶領域の未使用領
域にエントリすればよいので、上位層アドレスのエント
リ登録および削除に伴うエントリの移動を最小限に抑え
る。
According to the present invention, the storage area in which the upper layer address is registered is designated, and the index number of an unused entry in which the upper layer address is not registered is registered in the registration table to delete the entry. When an unused entry caused by the above occurs, the index number of this unused entry is registered in the registration table so that when the next higher layer address is registered, the second entry
Since it suffices to make an entry in an unused area of this storage area designated by the instruction information of 1, the movement of the entry due to entry registration and deletion of the upper layer address is minimized.

【0021】この発明の請求項2では、上記発明におい
て、前記エントリ工程では、前記上位層アドレスが入力
されると、前記第2の指示情報に基づいて所定記憶領域
内の未使用エントリの先頭を検出し、該上位層アドレス
を該検出した未使用エントリに登録するとともに、前記
第1の設定工程によって前記上位層アドレスが登録され
た記憶領域の先頭を前記第1の指示情報によって指示さ
せ、前記登録工程では、前記上位層アドレスが登録され
た未使用エントリのインデックス番号を前記登録テーブ
ルから削除し、前記第2の設定工程では、前記登録テー
ブルに登録されている次の未使用エントリのアドレスを
前記第2の指示情報によって指示させることを特徴とす
る。
According to a second aspect of the present invention, in the above invention, when the upper layer address is input in the entry step, the head of an unused entry in a predetermined storage area is set based on the second instruction information. Detecting and registering the upper layer address in the detected unused entry, and instructing the head of the storage area in which the upper layer address is registered by the first setting step by the first instruction information, In the registration step, the index number of the unused entry in which the upper layer address is registered is deleted from the registration table, and in the second setting step, the address of the next unused entry registered in the registration table is deleted. It is characterized in that an instruction is given by the second instruction information.

【0022】この発明によれば、上位層アドレスが入力
されると、未使用エントリの先頭を検出してこの未使用
エントリに登録するとともに、登録テーブルからこの未
使用エントリのインデックス番号を削除して上位層アド
レスのエントリ登録および削除を迅速に行う。
According to the present invention, when the upper layer address is input, the head of an unused entry is detected and registered in this unused entry, and the index number of this unused entry is deleted from the registration table. Quickly register and delete upper layer address entries.

【0023】この発明の請求項3では、上記発明におい
て、前記エントリの削除があると、エントリ工程では、
前記所定記憶領域に登録されている該当上位層アドレス
のエントリ削除を行い、前記登録工程では、前記削除に
よって生じた未使用エントリのインデックス番号を前記
登録テーブルに登録させることを特徴とする。
According to claim 3 of the present invention, in the above invention, when the entry is deleted, in the entry step,
The entry of the corresponding upper layer address registered in the predetermined storage area is deleted, and the index number of the unused entry generated by the deletion is registered in the registration table in the registration step.

【0024】この発明によれば、エントリの削除がある
と、該当する記憶領域の上位層アドレスが登録されたエ
ントリを無効化するとともに、この無効によって生じた
未使用エントリのインデックス番号を登録テーブルに登
録することで、ステップ数を減らして上位層アドレスの
エントリ登録および削除に伴うエントリの移動を最小限
に抑える。
According to the present invention, when an entry is deleted, the entry in which the upper layer address of the corresponding storage area is registered is invalidated, and the index number of the unused entry caused by this invalidation is stored in the registration table. By registering, the number of steps is reduced to minimize the movement of entries due to entry registration and deletion of upper layer addresses.

【0025】この発明の請求項4では、上記発明におい
て、前記上位層アドレスは、IPアドレスからなること
を特徴とする。
According to a fourth aspect of the present invention, in the above invention, the upper layer address is an IP address.

【0026】この発明によれば、上位層アドレスをレイ
ヤ3レベルのIP(Internet Protoco
l)アドレスとすることで、インターネットにも対応可
能とした。
According to the present invention, the upper layer address is an IP (Internet Protocol) at the layer 3 level.
l) By using an address, it can be used on the Internet.

【0027】この発明の請求項5では、複数の記憶領域
に分割され、入力する上位層アドレスを該記憶領域のう
ちの所定記憶領域に記憶させるアドレステーブルを管理
するアドレステーブル管理装置において、前記アドレス
テーブルへの前記上位層アドレスのエントリ登録および
エントリ削除を行うアドレステーブル制御手段と、前記
アドレステーブルのうちの前記上位層アドレスが登録さ
れていない未使用エントリのインデックス番号を登録す
る登録テーブルと、前記登録テーブルへの未使用エント
リのインデックス番号の登録および削除を行う登録テー
ブル制御手段と、前記記憶領域の先頭を指示する第1の
指示情報および前記未使用エントリのインデックス番号
を指示する第2の指示情報を記憶する管理テーブルと、
前記記憶領域の先頭を、前記第1の指示情報によって指
示させる第1の指示手段と、前記登録テーブルに記憶さ
れて未使用エントリのインデックス番号を、前記第2の
指示情報によって指示させる第2の指示手段とを備えた
ことを特徴とするアドレステーブル管理装置が提供され
る。
According to a fifth aspect of the present invention, in the address table management device for managing an address table which is divided into a plurality of storage areas and stores an input upper layer address in a predetermined storage area of the storage areas, Address table control means for registering an entry of the upper layer address in the table and deleting the entry; a registration table for registering an index number of an unused entry in the address table in which the upper layer address is not registered; Registration table control means for registering and deleting the index number of an unused entry in the registration table, first instruction information for instructing the head of the storage area, and second instruction for instructing the index number of the unused entry. A management table that stores information,
A first instructing means for instructing the head of the storage area by the first instructing information and a second instructing means for instructing an index number of an unused entry stored in the registration table by the second instructing information. There is provided an address table management device characterized by comprising an instruction means.

【0028】この発明によれば、アドレステーブルとは
別に登録テーブルを備えて未使用エントリのインデック
ス番号を登録しておくことで、従来のようなブロックの
再構成を頻繁に行う必要性をなくし、装置全体の処理性
能を向上させる。
According to the present invention, a registration table is provided in addition to the address table to register the index numbers of unused entries, thereby eliminating the need for frequent block reconfiguration as in the prior art. Improve the processing performance of the entire device.

【0029】この発明の請求項6では、上記発明におい
て、前記上位層アドレスが入力されると、前記テーブル
制御手段は、該上位層アドレスの登録を行う前記所定記
憶領域内の未使用エントリの先頭を検出し、該上位層ア
ドレスを該未使用エントリに登録させ、かつ前記第1の
指示手段は、前記所定領域の先頭を前記第1の指示情報
によって指示させるとともに、前記登録テーブル制御手
段は、前記未使用エントリの先頭に上位層アドレスが登
録されると、当該未使用エントリのインデックス番号を
削除し、前記第2の指示手段は、前記登録テーブルに記
憶されている次の未使用エントリのアドレスを前記第2
の指示情報によって指示させることを特徴とする。
According to a sixth aspect of the present invention, in the above invention, when the upper layer address is input, the table control means starts the unused entry in the predetermined storage area in which the upper layer address is registered. Is detected, the upper layer address is registered in the unused entry, and the first instructing means causes the beginning of the predetermined area to be instructed by the first instructing information, and the registration table control means, When the upper layer address is registered at the head of the unused entry, the index number of the unused entry is deleted, and the second instruction means stores the address of the next unused entry stored in the registration table. The second
It is characterized in that the instruction is given by the instruction information.

【0030】この発明によれば、上位層アドレスが入力
されると、テーブル制御手段によって未使用エントリの
先頭を検出して、この未使用エントリに登録するととも
に、テーブル制御手段によって登録テーブルからこの未
使用エントリのインデックス番号を削除することで、上
位層アドレスのエントリ登録および削除を迅速に行う。
According to the present invention, when the upper layer address is input, the head of the unused entry is detected by the table control means and registered in the unused entry, and at the same time, the table control means records the unregistered entry from the registration table. By deleting the index number of the used entry, the entry registration and deletion of the upper layer address can be performed quickly.

【0031】この発明の請求項7では、上記発明におい
て、前記エントリの削除があると、前記テーブル制御手
段は、前記アドレステーブルの所定記憶領域に登録され
ている該当上位層アドレスのエントリ削除を行い、かつ
前記登録テーブル制御手段は、前記削除によって生じた
未使用エントリのインデックス番号を前記登録テーブル
に登録させることを特徴とする。
According to a seventh aspect of the present invention, in the above invention, when the entry is deleted, the table control means deletes the entry of the corresponding upper layer address registered in a predetermined storage area of the address table. The registration table control means registers the index number of an unused entry generated by the deletion in the registration table.

【0032】この発明によれば、エントリの削除がある
と、テーブル制御手段によって該当するアドレステーブ
ルの記憶領域の上位層アドレスが登録されたエントリを
無効化するとともに、登録テーブル制御手段によって未
使用エントリのアドレスを登録テーブルに登録すること
で、ステップ数を減らして上位層アドレスのエントリ登
録および削除に伴うエントリの移動を最小限に抑える。
According to the present invention, when an entry is deleted, the entry in which the upper layer address of the storage area of the corresponding address table is registered is invalidated by the table control means, and the unused entry is registered by the registration table control means. By registering these addresses in the registration table, the number of steps is reduced and the movement of entries due to entry registration and deletion of upper layer addresses is minimized.

【0033】[0033]

【発明の実施の形態】以下に添付図面を参照して、この
発明にかかるアドレステーブル管理方法およびアドレス
テーブル管理装置の好適な実施の形態を説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Preferred embodiments of an address table management method and an address table management device according to the present invention will be described below with reference to the accompanying drawings.

【0034】図1は、この発明にかかるアドレステーブ
ル管理装置の一実施例の構成を示す構成図である。図に
おいて、このアドレステーブル管理装置10は、管理テ
ーブル11aおよびスタックメモリ11bを含む汎用メ
モリ11と、汎用メモリ11の制御を行う装置管理用プ
ロセッサ12と、アドレステーブル13aを含むCAM
13と、CAM13を制御するネットワークプロセッサ
14と、装置管理用プロセッサ12とネットワークプロ
セッサ14を接続する内部バス15とから構成されてい
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the address table management device according to the present invention. In the figure, this address table management device 10 includes a general-purpose memory 11 including a management table 11a and a stack memory 11b, a device management processor 12 for controlling the general-purpose memory 11, and a CAM including an address table 13a.
13, a network processor 14 that controls the CAM 13, and an internal bus 15 that connects the device management processor 12 and the network processor 14.

【0035】管理テーブル11aは、図2に示すよう
に、各ブロック0,1,2,…,nにフロアポインタ
(FloorPTR)、エンプティスタックポインタ
(EmptyStackPTR)の2つのポインタを一
組として用意する。このフロアPTRは、該当するブロ
ックの先頭を示し、エンプティスタックPTRは、未使
用エントリのインデックス番号を登録する汎用メモリ1
1上にあるスタックメモリの先頭を示している。
As shown in FIG. 2, the management table 11a prepares two pointers of a floor pointer (FloorPTR) and an empty stack pointer (EmptyStackPTR) for each block 0, 1, 2, ... This floor PTR indicates the head of the corresponding block, and the empty stack PTR is a general-purpose memory 1 for registering the index number of an unused entry.
1 shows the top of the stack memory located above 1.

【0036】スタックメモリ11bは、図3に示すよう
に、例えば3つのブロック0,1,2に分割されてお
り、それぞれのブロック(Block)には、アドレス
テーブル13aの未使用エントリのインデックス番号が
登録されるインデックス(Index)と、各ブロック
の空き領域の先頭を指示するエンプティスタックPTR
とからなっている。なお、図3は、図16に示したアド
レステーブルの内容に対応させて作成された状態のスタ
ックメモリを示すものである。
As shown in FIG. 3, the stack memory 11b is divided into, for example, three blocks 0, 1 and 2, and each block (Block) has an index number of an unused entry in the address table 13a. An index (Index) to be registered and an empty stack PTR indicating the beginning of an empty area of each block
It consists of Note that FIG. 3 shows the stack memory in a state created in correspondence with the contents of the address table shown in FIG.

【0037】装置管理用プロセッサ12は、管理テーブ
ル11aとともに、スタックメモリ11bもデータ更新
の制御しており、ブロックの順序が変わらないようにイ
ンデックス番号の登録や削除を行う。また、装置管理用
プロセッサ12は、内部バス15を介して、ブロック再
構成や登録や削除のプログラムを状況に応じてネットワ
ークプロセッサ14に転送している。
The device management processor 12 controls not only the management table 11a but also the stack memory 11b for updating data, and registers or deletes index numbers so that the order of blocks does not change. Further, the device management processor 12 transfers a program for block reconfiguration, registration, or deletion to the network processor 14 via the internal bus 15 depending on the situation.

【0038】アドレステーブル13aは、図4に示すよ
うに、従来例の図16と同様に、例えば3つのブロック
0,1,2に分割されており、それぞれのブロックに登
録されるエントリは、プレフィクスの長さが異なってい
る。このエントリは、インデックス(Index)番号
の若い方に、プレフィクスの長いものがグループ化され
て配置されるように、例えばCIDR(Classle
ss Inter Domain Routing)に
よるアドレス管理方法を用いてソートされている。
As shown in FIG. 4, the address table 13a is divided into, for example, three blocks 0, 1 and 2, as in the conventional example shown in FIG. Fix lengths are different. This entry is, for example, CIDR (Classle) so that long prefixes are grouped and arranged in the smaller index (Index) number.
Sorting is performed by using an address management method according to ss Inter Domain Routing.

【0039】ネットワークプロセッサ14は、このアド
レステーブル13aに対してアドレスの登録、削除およ
びブロック再構成を行っている。なお、これらの動作
は、装置管理用プロセッサ12から転送される各プログ
ラムに基づいて行われている。また、ネットワークプロ
セッサ14は、このアドレスの登録や削除によって変わ
るアドレステーブル13aの未使用エントリに対応した
インデックス番号の情報を装置管理用プロセッサ12に
送出している。この装置管理用プロセッサ12は、入力
されるこのインデックス番号の情報に基づいて、スタッ
クメモリ11bへのインデックス番号の書き込みや削除
を行っている。
The network processor 14 performs address registration, deletion and block reconfiguration for this address table 13a. Note that these operations are performed based on each program transferred from the device management processor 12. Further, the network processor 14 sends the information of the index number corresponding to the unused entry of the address table 13a which is changed by the registration or deletion of the address to the device management processor 12. The device management processor 12 writes or deletes the index number in the stack memory 11b based on the input information of the index number.

【0040】次に、ネットワークプロセッサ14は、こ
のアドレステーブル13aにおいて、該当ブロックの未
使用領域のエントリに、アドレス情報を登録する場合お
よびブロックを再構成する場合を、図5〜図7のフロー
チャート、図8のスタックメモリ11bと図9〜図11
のアドレステーブル13aの構成図に基づいて説明す
る。例えば、エントリ“233.64.X.X”を図4
に示すアドレステーブル13aに登録する場合には、プ
レフィクスの長さが等しいブロック1(インデックス番
号が“02000”〜“02FFF”)へ登録しなけれ
ばならない。なお、スタックメモリ11bには、図8に
示すようにブロック1の未使用領域に、例えばインデッ
クス“02400”がエントリ登録されているものとす
る。
Next, in the address table 13a, the network processor 14 registers the address information in the entry of the unused area of the block and reconfigures the block. The stack memory 11b of FIG. 8 and FIGS.
The address table 13a will be described with reference to FIG. For example, the entry “233.64.XX.X” is shown in FIG.
When registering in the address table 13a shown in (1), it is necessary to register in block 1 (index numbers “02000” to “02FFF”) having the same prefix length. In the stack memory 11b, as shown in FIG. 8, for example, an index "02400" is registered as an entry in the unused area of the block 1.

【0041】装置管理用プロセッサ12は、入力するア
ドレスに対して、管理テーブル11aの該当ブロックの
エンプティスタックPTR(1)を取得し、図8のスタ
ックメモリ11bからその該当ブロックのエンプティス
タックPTR(1)に基づいて未使用領域を検索する
(ステップ201)。すなわち、装置管理用プロセッサ
12は、該当ブロック1において、エンプティスタック
PTR(1)が指示するインデックスを検索し、そこの
未使用領域のインデックス番号情報を検索する(ステッ
プ201)。そして、この登録すべき該当ブロックに未
使用領域があるかどうか判断する(ステップ202)。
The device management processor 12 acquires the empty stack PTR (1) of the corresponding block of the management table 11a for the input address, and the empty stack PTR (1 of the corresponding block from the stack memory 11b of FIG. ) To search for an unused area (step 201). That is, the device management processor 12 retrieves the index designated by the empty stack PTR (1) in the block 1 and retrieves the index number information of the unused area therein (step 201). Then, it is judged whether or not there is an unused area in the corresponding block to be registered (step 202).

【0042】ここで、該当ブロックに未使用領域がある
場合には、エンプティスタックPTRの領域からインデ
ックス番号“02400”を取り出し、登録プログラム
とともに、ネットワークプロセッサ14に転送し、ネッ
トワークプロセッサ14を登録の処理に移行させ(ステ
ップ203)、さらに装置管理用プロセッサは、図3に
示すように、エンプティスタックPTR(1)を−1さ
せて管理テーブル11aおよびスタックメモリ11bを
更新する(ステップ204)。
If there is an unused area in the block, the index number "02400" is fetched from the empty stack PTR area, transferred to the network processor 14 together with the registration program, and the network processor 14 is registered. (Step 203), and the device management processor further changes the empty stack PTR (1) by -1 to update the management table 11a and the stack memory 11b as shown in FIG. 3 (Step 204).

【0043】ネットワークプロセッサ14は、この登録
プログラムに基づいて、図6の登録動作を行い、図9に
示すように、アドレステーブル13aのインデックス番
号“02400”が示す位置にエントリ“233.6
4.X.X”を登録させる(ステップ301)。
The network processor 14 performs the registration operation of FIG. 6 based on this registration program, and as shown in FIG. 9, the entry "233.6" is located at the position indicated by the index number "02400" of the address table 13a.
4. X. X "is registered (step 301).

【0044】また、図5のステップ202において、該
当ブロック1に未使用領域がない場合には、ブロック再
構成の手順が必要となるので、装置管理用プロセッサ1
2は、ブロック再構成のプログラムをネットワークプロ
セッサ14に転送する(ステップ205)。
If there is no unused area in the block 1 in step 202 in FIG. 5, a block reconfiguration procedure is required. Therefore, the device management processor 1
2 transfers the block reconstruction program to the network processor 14 (step 205).

【0045】ネットワークプロセッサ14は、このブロ
ック再構成のプログラムに基づいて、例えばブロック1
にエントリ“65.128.X.X”を新規登録する場
合には、図3に示すように、ブロック1には未使用領域
がなく、かつブロック2の未使用領域も離れており、既
に使用されている領域が連続しているため、このままで
はインデックス番号の大きい方には、登録が不可能とな
っている。
The network processor 14 uses, for example, the block 1 based on this block reconstruction program.
In the case of newly registering the entry “65.128.XX.X” in the block 1, as shown in FIG. 3, there is no unused area in the block 1 and the unused area in the block 2 is also distant, and it is already used. Since the registered areas are continuous, it is impossible to register the larger index number as it is.

【0046】この状態で、ブロック1に上記エントリを
登録するためには、このブロックの再構成のプログラム
に基づいて、次のようなブロック拡張のための手順を行
う必要がある。まず、ネットワークプロセッサ14は、
図10に示すように、フロアPTR(2)が示すエント
リ“192.X.X.X”を読み出して(ステップ40
1)、エンプティスタックPTR(2)の示す未使用領
域の移動先(インデックス番号“03101”へのエン
トリ)に移動させて書き込む(ステップ402)。そし
て、ネットワークプロセッサ14は、図11に示すよう
に、移動元のエントリ(インデックス番号“0300
0”のエントリ“192.X.X.X”)を無効化する
(ステップ403)。そして、このフロアPTR(2)
を+1に修正すると、インデックス番号“03000”
の位置に未使用領域が現れる。これに伴い、装置管理用
プロセッサ12の制御によってスタックメモリ11bに
は、この未使用領域のインデックス番号“03000”
が書き込まれ、かつエンプティスタックPTR(1)が
この未使用領域を指し示すように移動される。
In this state, in order to register the above-mentioned entry in the block 1, it is necessary to perform the following procedure for expanding the block based on the program for reconfiguring the block. First, the network processor 14
As shown in FIG. 10, the entry “192.X.XX.X” indicated by the floor PTR (2) is read (step 40
1), the empty stack is moved to the destination of the unused area indicated by the empty stack PTR (2) (entry to the index number "03101") and written (step 402). Then, as shown in FIG. 11, the network processor 14 moves the entry (index number “0300”
0 ”entry“ 192. X. X. X ″) is invalidated (step 403), and this floor PTR (2)
Is corrected to +1, the index number "03000"
An unused area appears at the position. Accordingly, the index number “03000” of the unused area is stored in the stack memory 11b under the control of the device management processor 12.
Is written and the empty stack PTR (1) is moved to point to this unused area.

【0047】次に、ネットワークプロセッサ14は、登
録プログラムに基づいて、図6の登録動作を行い、アド
レステーブルのインデックス番号“03000”が示す
位置にエントリ“68.128.X.X”を登録させる
ことができる(ステップ301)。
Next, the network processor 14 performs the registration operation of FIG. 6 based on the registration program to register the entry “68.128.XX.X” at the position indicated by the index number “03000” in the address table. (Step 301).

【0048】なお、この発明は、これに限らず、図12
に示す方法によっても、このブロックの再構成を行うこ
とができる。すなわち、ネットワークプロセッサ14
は、このブロック再構成のプログラムに基づいて、例え
ばこのブロック1にエントリ“65.128.X.X”
を新規登録する場合には、図13に示すように、エンプ
ティスタックPTR(1)の1つ前には、未使用領域の
インデックス“01FFF”が存在するので、エンプテ
ィスタックPTR(1)を上(インデックス“01FF
F”)に移動してブロック1の未使用領域を拡張すれ
ば、新しいエントリ“65.128.X.X”を登録す
ることができる。
Note that the present invention is not limited to this, and FIG.
The block can be reconstructed by the method shown in FIG. That is, the network processor 14
On the basis of this block reconstruction program, for example, the entry “65.128.XX.X” is added to this block 1.
In the case of newly registering an empty stack PTR (1), an empty area index “01FFF” exists immediately before the empty stack PTR (1) as shown in FIG. Index "01FF
F ”) to expand the unused area of block 1, a new entry“ 65.128. X. X "can be registered.

【0049】そこで、装置管理用プロセッサ12は、エ
ンプティスタックPTR(1)を上(インデックス“0
1FFF”)に移動してブロック1の未使用領域を拡張
する。ネットワークプロセッサ14は、エンプティスタ
ックPTR(1)が指し示すインデックス“01FF
F”に基づいて、フロアPTR(1)を−1に修正す
る。これにより、フロアPTR(1)が指し示すインデ
ックス番号が“01FFF”に位置になり、未使用領域
が現れるので、新規のエントリ“65.128.X.
X”を、拡張先のインデックス番号“01FFF”の位
置に書き込むことが可能となる。
Therefore, the device management processor 12 moves the empty stack PTR (1) upward (index "0").
1FFF ″) to expand the unused area of block 1. The network processor 14 indexes “01FF” indicated by the empty stack PTR (1).
The floor PTR (1) is corrected to -1 based on F ". As a result, the index number pointed to by the floor PTR (1) is located at" 01FFF ", and an unused area appears. 65.128. X.
It becomes possible to write "X" in the position of the index number "01FFF" of the expansion destination.

【0050】このように、この実施例では、エンプティ
スタックPTRを上に移動してブロックの未使用領域を
拡張し、これに伴ってフロアPTRを上に移動してブロ
ックの記憶領域を拡張することができるので、従来例に
比べると、プログラムステップ数が削減され、IPアド
レスのエントリ登録に伴うエントリの移動を最小限に抑
えることができ、これにより装置全体の処理性能を低下
させることなく、効率的なCAM上のアドレステーブル
の管理が可能となる。
As described above, in this embodiment, the empty stack PTR is moved upward to expand the unused area of the block, and accordingly, the floor PTR is moved upward to expand the storage area of the block. Therefore, the number of program steps is reduced as compared with the conventional example, and the movement of the entry accompanying the entry registration of the IP address can be suppressed to the minimum, whereby the processing performance of the entire device is not deteriorated and the efficiency is improved. It becomes possible to manage the address table on the CAM.

【0051】また、この実施例では、スタックメモリに
登録されたCAMの未使用エントリのインデックスをエ
ンプティスタックPTRというポインタを用いて指示す
るようにしたので、CAMに複数の未使用エントリが存
在しても、それらを特定することが可能となる。
Further, in this embodiment, since the index of the unused entry of the CAM registered in the stack memory is designated by using the pointer of the empty stack PTR, a plurality of unused entries exist in the CAM. Also, it becomes possible to identify them.

【0052】この発明は、これら実施形態に限定される
ものではなく、この発明の要旨を逸脱しない範囲で種々
の変形実施が可能である。
The present invention is not limited to these embodiments, and various modifications can be made without departing from the gist of the present invention.

【0053】[0053]

【発明の効果】以上説明したように、この発明では、複
数の記憶領域に分割されたアドレステーブルを有し、入
力する上位層アドレスをこのアドレステーブルの記憶領
域のうちの所定記憶領域にエントリ登録または削除する
とともに、上位層アドレスが登録されていない未使用エ
ントリのインデックス番号を登録テーブルに登録してお
き、アドレステーブルからのエントリ削除によって生じ
た未使用エントリのインデックス番号を登録テーブルに
登録するので、上位層アドレスの登録または削除の際に
は、少ないステップ数でこのアドレステーブルの未使用
領域にエントリまたはエントリ削除でき、アドレスのエ
ントリ登録および削除に伴うエントリの移動を最小限に
抑えることができる。
As described above, according to the present invention, an address table divided into a plurality of storage areas is provided, and an input upper layer address is registered as an entry in a predetermined storage area of the storage areas of the address table. In addition to deleting, the index number of the unused entry whose upper layer address is not registered is registered in the registration table, and the index number of the unused entry generated by deleting the entry from the address table is registered in the registration table. When registering or deleting an upper layer address, an entry or an entry can be deleted in an unused area of this address table with a small number of steps, and the movement of the entry due to the registration or deletion of the address entry can be minimized. .

【0054】また、この発明では、上位層アドレスが入
力されると、登録テーブルから未使用エントリを検出
し、この未使用エントリに上位層アドレスを登録すると
ともに、登録テーブルからこの未使用エントリのインデ
ックス番号を削除するので、アドレステーブルの未使用
領域の特定が容易になるとともに、アドレスのエントリ
登録および削除を迅速に行うことができる。
Further, according to the present invention, when the upper layer address is input, an unused entry is detected from the registration table, the upper layer address is registered in this unused entry, and the index of this unused entry is registered from the registration table. Since the number is deleted, the unused area of the address table can be easily specified, and the address entry can be registered and deleted quickly.

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

【図1】この発明にかかるアドレステーブル管理装置の
一実施例の構成を示す構成図である。
FIG. 1 is a configuration diagram showing a configuration of an embodiment of an address table management device according to the present invention.

【図2】図1に示した管理テーブルの構成の一例を示す
テーブル構成図である。
FIG. 2 is a table configuration diagram showing an example of a configuration of a management table shown in FIG.

【図3】図1に示したスタックメモリの構成の第1例を
示す構成図である。
FIG. 3 is a configuration diagram showing a first example of a configuration of the stack memory shown in FIG.

【図4】図1に示したアドレステーブルの構成の第1例
を示すテーブル構成図である。
FIG. 4 is a table configuration diagram showing a first example of the configuration of the address table shown in FIG.

【図5】図1に示した装置管理用プロセッサのアドレス
の登録動作を説明するためのフローチャートである。
5 is a flowchart for explaining an address registration operation of the device management processor shown in FIG.

【図6】図1に示したネットワークプロセッサのブロッ
ク再構成動作を説明するためのフローチャートである。
6 is a flow chart for explaining a block reconfiguration operation of the network processor shown in FIG. 1. FIG.

【図7】同じく、ネットワークプロセッサのアドレスの
登録動作を説明するためのフローチャートである。
FIG. 7 is likewise a flowchart for explaining the address registration operation of the network processor.

【図8】図1に示したスタックメモリの構成の第2例を
示す構成図である。
8 is a configuration diagram showing a second example of the configuration of the stack memory shown in FIG. 1. FIG.

【図9】図1に示したアドレステーブルの第2例を示す
テーブル構成図である。
9 is a table configuration diagram showing a second example of the address table shown in FIG.

【図10】同じく、アドレステーブルの第3例を示すテ
ーブル構成図である。
FIG. 10 is also a table configuration diagram showing a third example of the address table.

【図11】同じく、アドレステーブルの第3例の変化を
示すテーブル構成図である。
FIG. 11 is also a table configuration diagram showing a change of the third example of the address table.

【図12】同じく、アドレステーブルの第4例を示すテ
ーブル構成図である。
FIG. 12 is also a table configuration diagram showing a fourth example of the address table.

【図13】図1に示したスタックメモリの構成の第3例
を示す構成図である。
13 is a configuration diagram showing a third example of the configuration of the stack memory shown in FIG.

【図14】従来の管理テーブルの構成を示す構成図であ
る。
FIG. 14 is a configuration diagram showing a configuration of a conventional management table.

【図15】従来のアドレスの登録、ブロック再構成動作
を説明するためのフローチャートである。
FIG. 15 is a flowchart for explaining conventional address registration and block reconfiguration operation.

【図16】従来のアドレステーブルの構成を示す構成図
である。
FIG. 16 is a configuration diagram showing a configuration of a conventional address table.

【図17】同じく、アドレステーブルの構成を示す構成
図である。
FIG. 17 is also a configuration diagram showing the configuration of an address table.

【図18】同じく、アドレステーブルの構成を示す構成
図である。
FIG. 18 is also a configuration diagram showing a configuration of an address table.

【図19】同じく、アドレステーブルの構成を示す構成
図である。
FIG. 19 is also a configuration diagram showing a configuration of an address table.

【図20】従来のアドレスの削除動作を説明するための
フローチャートである。
FIG. 20 is a flow chart for explaining a conventional address deleting operation.

【図21】同じく、アドレステーブルの構成を示す構成
図である。
FIG. 21 is a block diagram showing the structure of an address table.

【図22】同じく、アドレステーブルの構成を示す構成
図である。
FIG. 22 is a block diagram showing the structure of an address table.

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

0〜2 ブロック 10 アドレステーブル管理装置 11 汎用メモリ 11a 管理テーブル 11b スタックメモリ 12 装置管理用プロセッサ 13 CAM 13a アドレステーブル 14 ネットワークプロセッサ 15 内部バス PTR ポインタ 0-2 blocks 10 Address table management device 11 General-purpose memory 11a management table 11b Stack memory 12 Device management processor 13 CAM 13a address table 14 Network processor 15 Internal bus PTR pointer

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 複数の記憶領域に分割されたアドレステ
ーブルを有し、該アドレステーブルの管理を行うアドレ
ステーブル管理方法において、 入力する上位層アドレスを前記アドレステーブルの記憶
領域のうちの所定記憶領域にエントリ登録または削除す
るエントリ工程と、 前記上位層アドレスが登録された記憶領域の先頭を指示
する第1の指示情報を前記各記憶領域に設定する第1の
設定工程と、 前記アドレステーブルのうちの前記上位層アドレスが登
録されていない未使用エントリのインデックス番号を登
録テーブルに登録する登録工程と、 前記未使用エントリの先頭を指示する第2の指示情報を
前記登録テーブルに設定する第2の設定工程とを含むこ
とを特徴とするアドレステーブル管理方法。
1. An address table management method for managing an address table, comprising an address table divided into a plurality of storage areas, wherein an upper layer address to be input is a predetermined storage area of the storage areas of the address table. An entry step of registering or deleting an entry in, a first setting step of setting first instruction information for instructing the beginning of a storage area in which the upper layer address is registered in each of the storage areas; A registration step of registering an index number of an unused entry whose upper layer address is not registered in a registration table, and a second instruction information for instructing the head of the unused entry in the registration table. An address table management method including a setting step.
【請求項2】 前記エントリ工程では、前記上位層アド
レスが入力されると、前記第2の指示情報に基づいて所
定記憶領域内の未使用エントリを検出し、該上位層アド
レスを該検出した未使用エントリに登録するとともに、
前記第1の設定工程によって前記上位層アドレスが登録
された記憶領域の先頭を前記第1の指示情報によって指
示させ、前記登録工程では、前記上位層アドレスが登録
された未使用エントリのインデックス番号を前記登録テ
ーブルから削除し、前記第2の設定工程では、前記登録
テーブルに登録されている次の未使用エントリのアドレ
スを前記第2の指示情報によって指示させることを特徴
とする請求項1に記載のアドレステーブル管理方法。
2. In the entry step, when the upper layer address is input, an unused entry in a predetermined storage area is detected based on the second instruction information, and the upper layer address is not detected. While registering in the usage entry,
The head of the storage area in which the upper layer address is registered in the first setting step is designated by the first instruction information, and in the registration step, the index number of the unused entry in which the upper layer address is registered is set. 2. The method according to claim 1, wherein the address is deleted from the registration table, and in the second setting step, the address of the next unused entry registered in the registration table is instructed by the second instruction information. Address table management method.
【請求項3】 前記エントリの削除があると、エントリ
工程では、前記所定記憶領域に登録されている該当上位
層アドレスのエントリ削除を行い、前記登録工程では、
前記削除によって生じた未使用エントリのインデックス
番号を前記登録テーブルに登録させることを特徴とする
請求項1または2に記載のアドレステーブル管理方法。
3. When the entry is deleted, in the entry step, the entry of the corresponding upper layer address registered in the predetermined storage area is deleted, and in the registration step,
3. The address table management method according to claim 1, wherein the index number of an unused entry generated by the deletion is registered in the registration table.
【請求項4】 前記上位層アドレスは、IPアドレスか
らなることを特徴とする請求項1〜3のいずれか一つに
記載のアドレステーブル管理方法。
4. The address table management method according to claim 1, wherein the upper layer address is an IP address.
【請求項5】 複数の記憶領域に分割され、入力する上
位層アドレスを該記憶領域のうちの所定記憶領域に記憶
させるアドレステーブルを管理するアドレステーブル管
理装置において、 前記アドレステーブルへの前記上位層アドレスのエント
リ登録およびエントリ削除を行うアドレステーブル制御
手段と、 前記アドレステーブルのうちの前記上位層アドレスが登
録されていない未使用エントリのインデックス番号を登
録する登録テーブルと、 前記登録テーブルへの未使用エントリのインデックス番
号登録および削除を行う登録テーブル制御手段と、 前記記憶領域の先頭を指示する第1の指示情報および前
記未使用エントリのインデックス番号を指示する第2の
指示情報を記憶する管理テーブルと、 前記記憶領域の先頭を、前記第1の指示情報によって指
示させる第1の指示手段と、 前記登録テーブルに記憶されて未使用エントリのインデ
ックス番号を、前記第2の指示情報によって指示させる
第2の指示手段とを備えたことを特徴とするアドレステ
ーブル管理装置。
5. An address table management device for managing an address table which is divided into a plurality of storage areas and stores an input upper layer address in a predetermined storage area of the storage areas, wherein the upper layer to the address table is stored. Address table control means for registering an entry of an address and deleting an entry, a registration table for registering an index number of an unused entry in the address table where the upper layer address is not registered, and an unused table for the registration table Registration table control means for registering and deleting the index number of the entry, and a management table for storing first instruction information for instructing the head of the storage area and second instruction information for instructing the index number of the unused entry. , The beginning of the storage area is the first instruction information An address table, comprising: a first instructing means for instructing by means of the second instruction information; and a second instructing means for instructing the index number of an unused entry stored in the registration table by means of the second instruction information. Management device.
【請求項6】 前記上位層アドレスが入力されると、前
記テーブル制御手段は、該上位層アドレスの登録を行う
前記所定記憶領域内の未使用エントリを検出し、該上位
層アドレスを該未使用エントリに登録させ、かつ前記第
1の指示手段は、前記所定領域の先頭を前記第1の指示
情報によって指示させるとともに、前記登録テーブル制
御手段は、前記未使用エントリに上位層アドレスが登録
されると、当該未使用エントリのインデックス番号を削
除し、前記第2の指示手段は、前記登録テーブルに記憶
されている次の未使用エントリのアドレスを前記第2の
指示情報によって指示させることを特徴とする請求項5
に記載のアドレステーブル管理装置。
6. When the upper layer address is input, the table control means detects an unused entry in the predetermined storage area in which the upper layer address is registered, and the upper layer address is used as the unused entry. The first instruction means causes the top of the predetermined area to be instructed by the first instruction information, and the registration table control means registers an upper layer address in the unused entry. And deleting the index number of the unused entry, and causing the second instruction means to instruct the address of the next unused entry stored in the registration table by the second instruction information. Claim 5
Address table management device described in.
【請求項7】 前記エントリの削除があると、前記テー
ブル制御手段は、前記アドレステーブルの所定記憶領域
に登録されている該当上位層アドレスのエントリ削除を
行い、かつ前記登録テーブル制御手段は、前記削除によ
って生じた未使用エントリのインデックス番号を前記登
録テーブルに登録させることを特徴とする請求項5また
は6に記載のアドレステーブル管理装置。
7. When the entry is deleted, the table control means deletes the entry of the corresponding upper layer address registered in a predetermined storage area of the address table, and the registration table control means 7. The address table management device according to claim 5, wherein the index number of an unused entry generated by the deletion is registered in the registration table.
JP2001398155A 2001-12-27 2001-12-27 Address table management method and address table management device Pending JP2003198596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001398155A JP2003198596A (en) 2001-12-27 2001-12-27 Address table management method and address table management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001398155A JP2003198596A (en) 2001-12-27 2001-12-27 Address table management method and address table management device

Publications (1)

Publication Number Publication Date
JP2003198596A true JP2003198596A (en) 2003-07-11

Family

ID=27603703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001398155A Pending JP2003198596A (en) 2001-12-27 2001-12-27 Address table management method and address table management device

Country Status (1)

Country Link
JP (1) JP2003198596A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866127A (en) * 2018-08-27 2020-03-06 华为技术有限公司 Method for establishing index and related device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866127A (en) * 2018-08-27 2020-03-06 华为技术有限公司 Method for establishing index and related device

Similar Documents

Publication Publication Date Title
US6618760B1 (en) Forwarding information retrieval technique
US6842791B2 (en) Method and apparatus for memory efficient fast VLAN lookups and inserts in hardware-based packet switches
US7099324B2 (en) System and method for processing packets
US9871727B2 (en) Routing lookup method and device and method for constructing B-tree structure
US20100228914A1 (en) Data caching system and method for implementing large capacity cache
JP3570323B2 (en) How to store prefixes for addresses
WO2001005116A2 (en) Routing method and apparatus
CN105095371B (en) The diagram data management method and its device of sequence diagram
CN114844846A (en) Multi-level cache distributed key value storage system based on programmable switch
WO2016091027A1 (en) Rule aggregation method and device for network address translation and access control list
US7154892B2 (en) Method and apparatus for managing LPM-based CAM look-up table, and recording medium therefor
CN108804571B (en) Data storage method, device and equipment
JP2003198596A (en) Address table management method and address table management device
KR100429909B1 (en) Apparatus and method for controlling high speed IP forwarding engine based upon high speed IP lookup chip
JP2003198598A (en) Address table management method and address table management device
JP3570606B2 (en) Data retrieval apparatus and method
JP6266445B2 (en) Packet relay apparatus and packet relay method
KR20180019437A (en) Table lookup method for determining set membership and table lookup apparatus using the method
US8199756B2 (en) Forwarding apparatus, forwarding method, and computer product
CN114024885B (en) IP routing table management system and method based on subnet mask division
JP2003234762A (en) Device, method and program for table retrieving, and recording medium
CN109428822A (en) A kind of Name Lookup method and the network equipment
JP3005476B2 (en) Dynamic change system of hash table
JP2009123050A (en) Information retrieving device and registration method of entry information to the same
JP3699374B2 (en) Routing table update method, program, and recording medium