JP2002016638A - Routing information retrieving device and computer readable recording medium having routing information retrieval control data recorded thereon - Google Patents

Routing information retrieving device and computer readable recording medium having routing information retrieval control data recorded thereon

Info

Publication number
JP2002016638A
JP2002016638A JP2000197136A JP2000197136A JP2002016638A JP 2002016638 A JP2002016638 A JP 2002016638A JP 2000197136 A JP2000197136 A JP 2000197136A JP 2000197136 A JP2000197136 A JP 2000197136A JP 2002016638 A JP2002016638 A JP 2002016638A
Authority
JP
Japan
Prior art keywords
information
address
search
address information
routing
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
JP2000197136A
Other languages
Japanese (ja)
Inventor
Hiroshi Nakamura
浩 中村
Yoshimasa Baba
義昌 馬場
Naonobu Okazaki
直宣 岡崎
Teruko Fujii
照子 藤井
Tetsuo Sadakane
哲男 貞包
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2000197136A priority Critical patent/JP2002016638A/en
Publication of JP2002016638A publication Critical patent/JP2002016638A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a routing information retrieving device capable of shortening the time taken to perform setting and setting changing and reducing the loads on setting, setting changing and cost. SOLUTION: Each address control table includes the pointers of lower order address control tables when all combined pieces of address information obtained by combining pieces of divided address information from its own divided address information up to the highest order divided address information coincide with the higher order part of any of pieces of higher order divided address information in each piece of divided address information of its own hierarchy, and includes routing information table pointers that correspond to higher order divided address information when information obtained by abandoning part of the divided address information from all of the combined pieces of address information or from the lowest order part of the combined pieces of address information coincides with all of any higher order divided address information.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、通信ネットワー
クに接続された中継装置や端末装置などの通信ネットワ
ーク装置におけるルーチング情報(パケットの送信ポー
トを指示する情報等)の検索に用いるルーチング情報検
索装置およびルーチング情報検索制御データを記録した
コンピュータ読み取り可能な記録媒体に関し、特に、ア
ドレスマスクのロンゲストマッチに対応したルーチング
情報の検索(アドレス検索)を高速に行うルーチング情
報検索装置およびルーチング情報検索制御データを記録
したコンピュータ読み取り可能な記録媒体に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a routing information search apparatus used for searching routing information (information indicating a packet transmission port) in a communication network device such as a relay device or a terminal device connected to a communication network. The present invention relates to a computer-readable recording medium on which routing information search control data is recorded, and more particularly, to a routing information search device and a routing information search control data for quickly searching for a routing information (address search) corresponding to a longest match of an address mask. The present invention relates to a recorded computer-readable recording medium.

【0002】[0002]

【従来の技術】通信ネットワークにおける端末装置間の
通信においては、通信相手の端末装置を識別するアドレ
スが用いられる。通信ネットワークに接続された中継装
置や端末装置などの通信ネットワーク装置は、処理する
パケットの送信先アドレスに基づいて、そのパケットを
送信する送信インターフェースの決定等の処理を行う。
具体的には、通信ネットワーク装置が、送信インターフ
ェースの決定等を行うためのルーチング情報を保持して
おり、処理するパケットの送信先アドレス情報に基づい
てルーチング情報を検索し、検索結果として得られたル
ーチング情報に示された送信インターフェースによって
パケットの送信を行う。
2. Description of the Related Art In communication between terminal devices in a communication network, an address for identifying a communication partner terminal device is used. A communication network device such as a relay device or a terminal device connected to the communication network performs processing such as determination of a transmission interface for transmitting the packet based on a destination address of the packet to be processed.
Specifically, the communication network device holds routing information for determining a transmission interface, searches for routing information based on destination address information of a packet to be processed, and obtains the routing information. The packet is transmitted by the transmission interface indicated in the routing information.

【0003】ルーチング情報は、アドレスの情報(アド
レス情報)にアドレスマスクを掛けた情報(以下、上位
アドレス情報と呼ぶ)に関連づけられている。ここで、
アドレスマスクとは、アドレス情報の所定数の下位ビッ
トをマスクする(隠す)ものである。アドレス情報にア
ドレスマスクを掛けることによって、アドレス情報の所
定数の上位ビットのみが有効となる。
The routing information is associated with information obtained by multiplying address information (address information) by an address mask (hereinafter referred to as upper address information). here,
The address mask masks (hides) a predetermined number of lower bits of the address information. By multiplying the address information by the address mask, only a predetermined number of upper bits of the address information become valid.

【0004】すなわち、上位アドレス情報は、アドレス
情報の所定数の上位ビットの情報であって、所定数の上
位ビットが一致するアドレス群を示す。この上位アドレ
ス情報に対応させてルーチング情報を保持することによ
り、各アドレス情報に対応させてルーチング情報を保持
する場合に比べ、保持する情報量を低減することができ
る。なお、マスクするビット数を「0」とすることもで
き、この場合は、アドレス情報と上位アドレス情報とが
1対1に対応する。
That is, the upper address information is information of a predetermined number of upper bits of the address information, and indicates an address group in which the predetermined number of upper bits match. By holding the routing information in association with the upper address information, the amount of information to be held can be reduced as compared with the case where the routing information is held in association with each address information. Note that the number of bits to be masked can be set to “0”. In this case, the address information and the upper address information correspond one-to-one.

【0005】ここで、アドレスマスクおよび上位アドレ
ス情報のビット長が複数ある場合がある。このような場
合、あるアドレス情報に、あるアドレスマスクを掛けた
結果が、ある上位アドレス情報に一致しても、そのアド
レス情報に、他のアドレスマスクを掛けた結果が、他の
アドレスマスクに一致することがある。すなわち、ビッ
ト長の異なる複数のアドレスマスクを一つのアドレス情
報に掛けた結果が、ビット長の異なる複数の上位アドレ
ス情報と一致する場合がある。
Here, there are cases where the address mask and the upper address information have a plurality of bit lengths. In such a case, even if the result of multiplying certain address information by a certain address mask matches certain upper address information, the result of multiplying that address information by another address mask matches the other address mask May be. That is, the result of multiplying one piece of address information by a plurality of address masks having different bit lengths may coincide with a plurality of upper address information having different bit lengths.

【0006】このような場合の上位アドレス情報の決定
方法として「アドレスマスクのロンゲストマッチ」が知
られている。このアドレスマスクのロンゲストマッチで
は、ビット長の異なる複数のアドレスマスクを一つのア
ドレス情報に掛けた結果が、ビット長の異なる複数の上
位アドレス情報と一致する場合、それらの上位アドレス
情報のうちで、マスクしていないビット長が最も長い上
位アドレス情報を、そのアドレス情報に対応する上位ア
ドレス情報とする。通信ネットワーク装置においては、
このアドレスマスクのロンゲストマッチに対応したルー
チング情報の検索処理を高速に行い、この処理による遅
延時間を低減し、スループットを向上させることが求め
られている。
As a method of determining higher-level address information in such a case, "longest match of address mask" is known. In the longest match of the address mask, when a result obtained by multiplying one address information by a plurality of address masks having different bit lengths matches a plurality of upper address information having different bit lengths, among the upper address information, The upper address information having the longest unmasked bit length is set as upper address information corresponding to the address information. In a communication network device,
There is a demand for a process of searching for routing information corresponding to the longest match of the address mask at a high speed, to reduce a delay time due to this process, and to improve a throughput.

【0007】ところで、アドレスマスクのロンゲストマ
ッチに対応した従来のルーチング情報検索方法として、
たとえば、特開平10−257066号公報に開示され
た「ネットワークアドレス検索方式」が知られている。
このネットワークアドレス検索方式では、アドレス情報
を所定数のビットごとに階層的に分割した分割アドレス
情報に対応させて階層的に構成した複数のアドレス制御
テーブルを用いてルーチング情報を検索する。ここで、
アドレス情報の分割は、上位アドレス情報のビット長に
応じて行われる。また、分割アドレス情報は、索引とし
て用いられる。
By the way, as a conventional routing information search method corresponding to the longest match of the address mask,
For example, a "network address search method" disclosed in Japanese Patent Application Laid-Open No. Hei 10-257066 is known.
In this network address search method, routing information is searched by using a plurality of hierarchically configured address control tables corresponding to divided address information obtained by hierarchically dividing address information by a predetermined number of bits. here,
The division of the address information is performed according to the bit length of the upper address information. The division address information is used as an index.

【0008】図19は、このネットワークアドレス検索
方式で使用されるアドレス制御テーブルの構成を示す図
である。ここでは、アドレスとして32ビットのIPア
ドレスを用い、このアドレス情報を8ビットごと4つに
分割した分割アドレス情報に対応させて4階層のアドレ
ス制御テーブルを構成した例を示す。このアドレス制御
テーブルは、最上位の分割アドレス情報に対応する第1
アドレス制御テーブル91と、2番目の分割アドレス情
報に対応する第2アドレス制御テーブル92と、3番目
の分割アドレス情報に対応する第3アドレス制御テーブ
ル93と、4番目の分割アドレス情報に対応する第4ア
ドレス制御テーブル94とを含んでいる。
FIG. 19 is a diagram showing a configuration of an address control table used in the network address search method. Here, an example is shown in which a 32-bit IP address is used as an address, and a 4-layer address control table is configured to correspond to the divided address information obtained by dividing this address information into four every eight bits. This address control table stores the first divided address information corresponding to the uppermost divided address information.
An address control table 91, a second address control table 92 corresponding to the second divided address information, a third address control table 93 corresponding to the third divided address information, and a third address control table 93 corresponding to the fourth divided address information. 4 address control table 94.

【0009】第1アドレス制御テーブル91は、パケッ
トの送信先アドレスの最上位の分割アドレス情報(最上
位8ビット)による検索処理に用いるものであり、0〜
255(10進数)の最上位の分割アドレス情報に対応
するポインタA000〜A255で示される位置に、そ
れぞれ、検索を継続するか終了するかを示す情報912
と、検索を継続する場合、つぎに参照すべき下位のアド
レス制御テーブル(下位の分割アドレス情報による検索
処理に用いるアドレス制御テーブル)を示す次テーブル
ポインタ913と、検索を終了する場合、パケットを送
信する送信インターフェースを示す情報914とが記録
されている。
The first address control table 91 is used for search processing based on the highest division address information (highest 8 bits) of the destination address of a packet.
Information 912 indicating whether to continue or end the search, at the positions indicated by pointers A000 to A255 corresponding to the most significant division address information of 255 (decimal number).
When the search is continued, a next table pointer 913 indicating a lower address control table to be referred to next (address control table used for search processing based on lower divided address information), and a packet is transmitted when the search ends. And information 914 indicating the transmission interface to be used.

【0010】同様に、第2アドレス制御テーブル92
は、パケットの送信先アドレスの2番目の分割アドレス
情報(9ビット目〜16ビット目)による検索処理に用
いるものであり、0〜255(10進数)までの2番目
の分割アドレス情報に対応するポインタB000〜B2
55で示される位置に、それぞれ、検索を継続するか終
了するかを示す情報922と、検索を継続する場合、つ
ぎに参照すべき下位のアドレス制御テーブルを示す次テ
ーブルポインタ923と、検索を終了する場合、パケッ
トを送信する送信インターフェースを示す情報924と
が記録されている。
Similarly, the second address control table 92
Is used for a search process based on the second divided address information (9th to 16th bits) of the destination address of the packet, and corresponds to the second divided address information from 0 to 255 (decimal number). Pointers B000 to B2
At the position indicated by 55, information 922 indicating whether to continue or end the search, a next table pointer 923 indicating the lower address control table to be referred next when the search is continued, and an end of the search In this case, information 924 indicating the transmission interface for transmitting the packet is recorded.

【0011】同様に、第3アドレス制御テーブル93
は、パケットの送信先アドレスの3番目の分割アドレス
情報(17ビット目〜24ビット目)による検索処理に
用いるものであり、0〜255(10進数)までの3番
目の分割アドレス情報に対応するポインタC000〜C
255で示される位置に、それぞれ、検索を継続するか
終了するかを示す情報932と、検索を継続する場合、
つぎに参照すべき下位のアドレス制御テーブルを示す次
テーブルポインタ933と、検索を終了する場合、パケ
ットを送信する送信インターフェースを示す情報934
とが記録されている。
Similarly, the third address control table 93
Is used for a search process using the third divided address information (17th to 24th bits) of the destination address of the packet, and corresponds to the third divided address information from 0 to 255 (decimal number). Pointers C000-C
At the position indicated by 255, information 932 indicating whether to continue or end the search, and when the search is to be continued,
Next table pointer 933 indicating the lower address control table to be referred to next, and information 934 indicating the transmission interface for transmitting the packet when the search is completed.
Is recorded.

【0012】同様に、第4アドレス制御テーブル94
は、パケットの送信先アドレスの4番目の分割アドレス
情報(25ビット目〜32ビット目)による検索処理に
用いるものであり、0〜255(10進数)までの4番
目の分割アドレス情報に対応するポインタ領域D000
〜D255で示される位置に、それぞれ、検索を継続す
るか終了するかを示す情報942と、検索を継続する場
合、つぎに参照すべき下位のアドレス制御テーブルを示
す次テーブルポインタ943と、検索を終了する場合、
パケットを送信する送信インターフェースを示す情報9
44とが記録されている。
Similarly, the fourth address control table 94
Is used for a search process based on the fourth divided address information (25th to 32nd bits) of the destination address of the packet, and corresponds to the fourth divided address information from 0 to 255 (decimal number). Pointer area D000
To the position indicated by D255, the information 942 indicating whether to continue or end the search, the next table pointer 943 indicating the lower address control table to be referred next when the search is continued, and the search To end,
Information 9 indicating a transmission interface for transmitting a packet
44 are recorded.

【0013】各アドレス制御テーブルの検索を継続する
か終了するかを示す情報(以下、検索終了/継続フラグ
と呼ぶ)912,922,932,942は、検索終了
を示す場合は「0」、検索継続を示す場合は「1」とな
る。検索終了/継続フラグが「0」である場合、その検
索終了/継続フラグに対応する送信インターフェースを
示す情報として、パケットを送信する送信インターフェ
ース名が設定される。一方、検索終了/継続フラグが
「1」である場合、検索終了/継続フラグに対応する次
テーブルポインタとして、つぎに参照すべき下位のアド
レス検索テーブルを示すポインタが設定される。一つの
分割アドレス情報に対しては、送信インターフェースを
示す情報または次テーブルポインタのいずれか一方が設
定され、これらの両方が設定されることはない。
Information indicating whether the search of each address control table is continued or terminated (hereinafter, referred to as a search end / continuation flag) 912, 922, 923, 942 is "0" when indicating the end of the search; When indicating continuation, the value is “1”. When the search end / continuation flag is “0”, a transmission interface name for transmitting a packet is set as information indicating the transmission interface corresponding to the search end / continuation flag. On the other hand, when the search end / continuation flag is “1”, a pointer indicating the next lower address search table to be referred to next is set as the next table pointer corresponding to the search end / continuation flag. Either the information indicating the transmission interface or the next table pointer is set for one piece of divided address information, and neither of them is set.

【0014】最上位の第1アドレス制御テーブル91
は、A000〜A255までの1ブロックのみである
が、下位のアドレス制御テーブルは、異なる上位の分割
アドレス情報に対応して複数ブロック存在し得る。たと
えば、最上位の分割アドレス情報が「133」および
「134」である場合に検索を継続するとすると、2番
目の第2アドレス制御テーブル92は、最上位の分割ア
ドレス情報「133」,「134」に対応して2ブロッ
ク設けられる。また、第4アドレス制御テーブル94
は、最下位のアドレス制御テーブルであるので、全ての
検索終了/継続フラグ942は、検索終了を示す「0」
となり、全ての次テーブルポインタ943は、未設定状
態となる。
Uppermost first address control table 91
Is only one block from A000 to A255, but there may be a plurality of blocks in the lower address control table corresponding to different upper division address information. For example, if the search is continued when the highest-order division address information is “133” and “134”, the second second address control table 92 stores the highest-order division address information “133”, “134”. Are provided in two blocks. Also, the fourth address control table 94
Is the lowest address control table, all the search end / continuation flags 942 indicate “0” indicating the search end.
And all the next table pointers 943 are in an unset state.

【0015】以下、上位アドレス情報およびアドレスマ
スクを8ビットごとに分割し、それらの数字をドットで
区切って10進数で表して説明する。アドレスマスク
は、アドレス情報と同じ長さを持ち、2進数で「1」の
立っているビットに対応するアドレス情報を有効にする
ものである。たとえば、アドレスマスク「255.0.
0.0」は、2進数で表すと「11111111.00
000000.00000000.00000000」
となり、アドレス情報の上位8ビットを有効にする。
In the following description, the upper address information and the address mask are divided for every 8 bits, and the numbers are separated by dots and represented by decimal numbers. The address mask has the same length as the address information, and validates the address information corresponding to the bit where a binary "1" stands. For example, the address mask “255.0.
0.0 "is represented as" 11111111.00 "in binary.
0000000000000000000000000 "
And the upper 8 bits of the address information are made valid.

【0016】図19の例では、アドレスがアドレスマス
ク「255.0.0.0」,上位アドレス情報「13
3」に対応する場合は、送信インターフェースBを選択
し、アドレスがアドレスマスク「255.255.25
5.255」,上位アドレス情報「133.141.7
7.59」に対応する場合は、送信インターフェースC
を選択し、これら以外のアドレスについては、送信イン
ターフェースAを選択するように各アドレス制御テーブ
ルが設定されている。
In the example of FIG. 19, the address is an address mask "255.0.0.0" and the upper address information "13
In the case of "3.", the transmission interface B is selected, and the address is set to the address mask "255.255.25".
5.255 ", upper address information" 133.141.7 "
7.59 ”, the transmission interface C
, And the address control tables are set so that the transmission interface A is selected for addresses other than these.

【0017】上位アドレス情報「133」と上位アドレ
ス情報「133.141.77.59」のように、一方
の上位アドレス情報の全部と他方の上位アドレス情報の
一部とが一致する関係(以下、このような関係を包含関
係と呼ぶ)にある場合、一致する部分の直後の分割アド
レスに対応するアドレス制御テーブルでは、長い方の上
位アドレス情報の分割アドレス情報以外の全ての分割ア
ドレス情報に対応させて、短い方の上位アドレス情報に
対応する送信インターフェース名を設定する。図19の
例では、第2アドレス制御テーブル92において、分割
アドレス情報「141」以外の分割アドレス情報「0」
〜「140」,「142」〜「255」に対応させて、
送信インターフェース名Bが設定されている。
As shown in the upper address information "133" and the upper address information "133.141.77.59", a relationship where all of one upper address information and a part of the other upper address information match (hereinafter, referred to as "higher address information"). When such a relationship is called an inclusive relationship), the address control table corresponding to the divided address immediately after the matching portion is made to correspond to all the divided address information other than the divided address information of the longer upper address information. Then, a transmission interface name corresponding to the shorter upper address information is set. In the example of FIG. 19, in the second address control table 92, the divided address information “0” other than the divided address information “141”
~ "140", "142" ~ "255"
The transmission interface name B is set.

【0018】つぎに、このネットワークアドレス検索方
式の処理の流れについて説明する。たとえば、IPアド
レス「133.141.77.59」を宛先とするパケ
ットを送信する場合、まず、そのIPアドレスの最上位
の分割アドレス情報「133」を使用し、第1アドレス
制御テーブル91中の分割アドレス情報「133」に対
応する情報(ポインタA133で示される位置に格納さ
れた情報)を参照する。ここで、検索終了/継続フラグ
912が「1」であるので、次テーブルポインタ913
として設定されているポインタB000を取得する。
Next, the processing flow of the network address search method will be described. For example, when transmitting a packet destined for the IP address “133.141.77.59”, first, the uppermost divided address information “133” of the IP address is used, and the first address control table 91 in the first address control table 91 is used. Reference is made to information corresponding to the division address information "133" (information stored at the position indicated by the pointer A133). Here, since the search end / continuation flag 912 is “1”, the next table pointer 913
To obtain the pointer B000 set as.

【0019】つぎに、取得したポインタB000が示す
第2アドレス制御テーブル92の所定のブロックを参照
する。そして、2番目の分割アドレス情報「141」を
使用し、第2アドレス制御テーブル92の所定のブロッ
ク中の分割アドレス情報「141」に対応する情報(ポ
インタB141で示される位置に格納された情報)を参
照する。ここで、検索終了/継続フラグ922が「1」
であるので、次テーブルポインタ923として設定され
ているポインタC000を取得する。
Next, a predetermined block of the second address control table 92 indicated by the acquired pointer B000 is referred to. Then, using the second divided address information “141”, information corresponding to the divided address information “141” in a predetermined block of the second address control table 92 (information stored at the position indicated by the pointer B141) See Here, the search end / continuation flag 922 is “1”.
Therefore, the pointer C000 set as the next table pointer 923 is obtained.

【0020】つぎに、取得したポインタC000が示す
第3アドレス制御テーブル93の所定のブロックを参照
する。そして、3番目の分割アドレス情報「77」を使
用し、第3アドレス制御テーブル93の所定のブロック
中の分割アドレス情報「77」に対応する情報(ポイン
タC077で示される位置に格納された情報)を参照す
る。ここで、検索終了/継続フラグ932が「1」であ
るので、次テーブルポインタ933として設定されてい
るポインタ領域D000を取得する。
Next, a predetermined block of the third address control table 93 indicated by the acquired pointer C000 is referred to. Then, using the third divided address information “77”, information corresponding to the divided address information “77” in a predetermined block of the third address control table 93 (information stored at the position indicated by the pointer C077) See Here, since the search end / continuation flag 932 is “1”, the pointer area D000 set as the next table pointer 933 is acquired.

【0021】つぎに、取得したポインタ領域D000が
示す第4アドレス制御テーブル94の所定のブロックを
参照する。そして、最下位の分割アドレス情報「59」
を使用し、第4アドレス制御テーブル94の所定のブロ
ック中の分割アドレス情報「59」に対応する情報(ポ
インタ領域D059で示される位置に格納された情報)
を参照する。ここで、検索終了/継続フラグ942が
「0」であるので、送信インターフェースを示す情報9
44を参照し、送信インターフェースCを選択する。こ
のように、IPアドレス「133.141.77.5
9」に対しては、「パケットを送信インターフェースC
から送信する」というルーチング情報が検索結果として
得られる。
Next, a predetermined block of the fourth address control table 94 indicated by the acquired pointer area D000 is referred to. Then, the lowest divided address information “59”
And information corresponding to the divided address information "59" in a predetermined block of the fourth address control table 94 (information stored at the position indicated by the pointer area D059).
See Here, since the search end / continuation flag 942 is “0”, the information 9 indicating the transmission interface
With reference to 44, the transmission interface C is selected. Thus, the IP address “133.141.77.5.
9 ”,“ Send packet to interface C
Is sent as a search result.

【0022】つぎに、IPアドレス「133.141.
78.244」を宛先とするパケットを送信する場合に
ついて説明する。この場合、まず、そのIPアドレスの
最上位の分割アドレス情報「133」を使用し、第1ア
ドレス制御テーブル91中の分割アドレス情報「13
3」に対応する情報(ポインタA133で示される位置
に格納された情報)を参照する。ここで、検索終了/継
続フラグ912が「1」であるので、次テーブルポイン
タ913として設定されているポインタB000を取得
する。
Next, the IP address "133.141.
A case of transmitting a packet addressed to “78.244” will be described. In this case, first, the uppermost division address information “133” of the IP address is used, and the division address information “13” in the first address control table 91 is used.
3 (information stored at the position indicated by the pointer A133). Here, since the search end / continuation flag 912 is “1”, the pointer B000 set as the next table pointer 913 is obtained.

【0023】つぎに、取得したポインタB000が示す
第2アドレス制御テーブル92の所定のブロックを参照
する。そして、2番目の分割アドレス情報「141」を
使用し、第2アドレス制御テーブル92の所定のブロッ
ク中の分割アドレス情報「141」に対応する情報(ポ
インタB141で示される位置に格納された情報)を参
照する。ここで、検索終了/継続フラグ922が「1」
であるので、次テーブルポインタ923として設定され
ているポインタC000を取得する。
Next, a predetermined block of the second address control table 92 indicated by the acquired pointer B000 is referred to. Then, using the second divided address information “141”, information corresponding to the divided address information “141” in a predetermined block of the second address control table 92 (information stored at the position indicated by the pointer B141) See Here, the search end / continuation flag 922 is “1”.
Therefore, the pointer C000 set as the next table pointer 923 is obtained.

【0024】つぎに、取得したポインタC000が示す
第3アドレス制御テーブル93の所定のブロックを参照
する。そして、3番目の分割アドレス情報「78」を使
用し、第3アドレス制御テーブル93の所定のブロック
中の分割アドレス情報「78」に対応する情報(ポイン
タC078で示される位置に格納された情報)を参照す
る。ここで、検索終了/継続フラグ932が「0」であ
るので、送信インターフェースを示す情報934を参照
し、送信インターフェースBを選択する。このように、
IPアドレス「133.141.78.244」に対し
ては、「パケットを送信インターフェースBから送信す
る」というルーチング情報が検索結果として得られる。
3番目の分割アドレス情報および3番目のアドレス制御
テーブルによってルーチング情報が得られるので、4番
目の分割アドレス情報および4番目のアドレス制御テー
ブルは使用されない。
Next, a predetermined block of the third address control table 93 indicated by the acquired pointer C000 is referred to. Then, using the third divided address information “78”, information corresponding to the divided address information “78” in a predetermined block of the third address control table 93 (information stored at the position indicated by the pointer C078) See Here, since the search end / continuation flag 932 is “0”, the transmission interface B is selected with reference to the information 934 indicating the transmission interface. in this way,
For the IP address “133.141.78.244”, routing information “transmit packet from transmission interface B” is obtained as a search result.
Since the routing information is obtained from the third divided address information and the third address control table, the fourth divided address information and the fourth address control table are not used.

【0025】[0025]

【発明が解決しようとする課題】しかしながら、上記従
来の技術によれば、上位アドレス情報が包含関係にある
場合、短い方の上位アドレス情報に対応するルーチング
情報を多数設定しなければならないため、設定処理や設
定変更処理に時間がかかり、また負荷が増大してコスト
が上昇するという問題点があった。また、全ての上位ア
ドレス情報について、アドレス制御テーブルのみによっ
てルーチング情報を取得するため、上位アドレス情報が
多い場合、下位のアドレス制御テーブルのデータ量が増
大し、メモリ消費が増大し、コストが上昇するという不
具合があった。
However, according to the above-mentioned prior art, when upper address information has an inclusion relation, a large number of routing information corresponding to the shorter upper address information must be set. There is a problem that it takes time for the processing and the setting change processing, and the load increases and the cost increases. In addition, since routing information is acquired only for the address control table for all the upper address information, when the upper address information is large, the data amount of the lower address control table increases, the memory consumption increases, and the cost increases. There was a problem.

【0026】さらに、従来のネットワークアドレス検索
方式では、設定できる上位アドレス情報と対のアドレス
マスクが多大になると、第2アドレス制御テーブルと、
第3アドレス制御テーブルと、第4アドレス制御テーブ
ルを多大に所持する必要があった。例として上位アドレ
ス情報と対のアドレスマスク(上位アドレス情報と対の
アドレスマスクの組を以降エントリと記す)をどのよう
な組み合わせにおいても1000エントリ設定できるよ
うにするためには、第2アドレス制御テーブルにおいて
はB000〜B255を1ブロックとすると、256ブ
ロック所持する必要があり、同様に第3アドレス制御テ
ーブルにおいてはC000〜C255を1ブロックとす
ると、1000ブロック所持する必要があり、第4アド
レス制御テーブルにおいてはD000〜D255を1ブ
ロックとすると、1000ブロック所持する必要があ
る。すなわちどのような組み合わせにおいても設定でき
るようにするエントリ数、または分岐する最大数の小さ
い方の数分のブロック数を第2アドレス制御テーブルと
第3アドレス制御テーブルと第4アドレス制御テーブル
でそれぞれ所持する必要があり、アドレス制御テーブル
をメモリで構成する場合には多大なメモリを必要として
しまうという不具合があった。
Further, according to the conventional network address search method, when the address mask which can be set with the upper address information becomes large, the second address control table,
It was necessary to have a large amount of the third address control table and the fourth address control table. As an example, in order to be able to set 1000 entries in any combination of the upper address information and the paired address mask (the set of the upper address information and the paired address mask is hereinafter referred to as an entry), the second address control table In the above, if B000 to B255 is one block, it is necessary to have 256 blocks. Similarly, if C000 to C255 is one block, in the third address control table, it is necessary to have 1000 blocks. In this case, if D000 to D255 are one block, it is necessary to possess 1000 blocks. In other words, the second address control table, the third address control table, and the fourth address control table respectively hold the number of entries that can be set in any combination or the number of blocks corresponding to the smaller of the maximum number of branches. In the case where the address control table is configured by a memory, a large amount of memory is required.

【0027】この発明は、上記に鑑みてなされたもので
あって、設定処理や設定変更処理にかかる時間を短縮
し、設定処理や設定変更処理の負荷を軽減し、コストを
低減することを可能とするルーチング情報検索装置およ
びルーチング情報検索制御データを記録したコンピュー
タ読み取り可能な記録媒体を得ることを目的とする。
The present invention has been made in view of the above, and it is possible to shorten the time required for the setting process and the setting change process, reduce the load of the setting process and the setting change process, and reduce the cost. It is an object of the present invention to obtain a routing information search device and a computer-readable recording medium that stores routing information search control data.

【0028】[0028]

【課題を解決するための手段】上述した課題を解決し、
目的を達成するために、この発明にかかるルーチング情
報検索装置にあっては、通信ネットワーク装置が処理す
る処理データに含まれる第1のアドレス情報を複数のネ
ットワークマスクに応じて切り出した第2のアドレス情
報に応じて、前記処理データの送信方路または処理内容
を指示するルーチング情報を検索するルーチング情報検
索装置であって、前記第1のアドレス情報を所定数のビ
ットごとに階層的に分割した分割アドレス情報の各階層
に対応させてツリー状に設けた第1の検索制御情報を記
憶した第1の記憶手段と、前記第1の記憶手段に記憶さ
れた第1の検索制御情報に基づいて前記ルーチング情報
を検索する検索手段と、を具備し、前記各第1の検索制
御情報は、自らの階層の各分割アドレス情報ごとに、当
該分割アドレス情報から最上位の分割アドレス情報まで
を組み合わせた組合せアドレス情報の全部がいずれかの
第2のアドレス情報の最上位から一部を切り出したもの
と一致する場合、下位の第1の検索制御情報の参照に用
いる情報を含み、前記組合せアドレス情報の全部または
前記組合せアドレス情報の最下位から当該分割アドレス
情報の一部を切り捨てたものがいずれかの第2のアドレ
ス情報の全部と一致する場合、前記下位の第1の検索制
御情報の参照に用いる情報を含むか否かにかかわらず、
当該第2のアドレス情報に対応するルーチング情報また
は当該ルーチング情報の参照に用いる情報を含み、前記
検索手段は、最上位から順に、検索中の第1のアドレス
情報の分割アドレス情報および前記第1の検索制御情報
を参照し、当該第1の検索制御情報が当該分割アドレス
情報に対応して前記下位の第1の検索制御情報の参照に
用いる情報を含む場合は、当該下位の第1の検索制御情
報を参照し、当該第1の検索制御情報が当該分割アドレ
ス情報に対応して前記下位の第1の検索制御情報の参照
に用いる情報を含まず、前記ルーチング情報または当該
ルーチング情報の参照に用いる情報を含む場合は、当該
ルーチング情報を取得し、当該第1の検索制御情報が当
該分割アドレス情報に対応して前記下位の第1の検索制
御情報の参照に用いる情報ならびに前記ルーチング情報
もしくは当該ルーチング情報の参照に用いる情報を含ま
ず、上位の第1の検索制御情報が上位の分割アドレス情
報に対応して前記ルーチング情報または当該ルーチング
情報の参照に用いる情報を含む場合は、当該ルーチング
情報を取得することを特徴とする。
Means for Solving the Problems The above-mentioned problems are solved,
In order to achieve the object, in a routing information search device according to the present invention, a second address obtained by cutting out first address information included in processing data processed by a communication network device according to a plurality of network masks. A routing information search device for searching for routing information indicating a transmission route or processing content of the processing data according to information, wherein the first address information is divided hierarchically every predetermined number of bits. First storage means for storing first search control information provided in a tree shape corresponding to each layer of the address information; and the first search control information stored in the first storage means. Searching means for searching for routing information, wherein each of the first search control information is provided for each of the divided address information of its own hierarchy. If all of the combined address information obtained by combining the first to the uppermost divided address information coincides with a part of the second address information cut out from the uppermost part, the lower-level first search control information is referred to. In the case where a part of the combination address information or a part of the divided address information truncated from the lowest order of the combination address information matches all of the second address information, Irrespective of whether or not it includes information used for referring to the first search control information of
Routing information corresponding to the second address information or information used for referring to the routing information, wherein the search unit sequentially searches, from the highest order, divided address information of the first address information being searched and the first address information. Referring to the search control information, if the first search control information includes information used for referring to the lower first search control information corresponding to the divided address information, the lower first search control Information, the first search control information does not include information used for referring to the lower-order first search control information corresponding to the divided address information, and is used for referencing the routing information or the routing information. In the case where the first search control information is included, the first search control information is used for referring to the lower first search control information corresponding to the divided address information. And the routing information or the information used for referring to the routing information is not included, and the upper first search control information corresponds to the routing information or the information used for referring to the routing information in accordance with the upper division address information. In the case where the routing information is included, the routing information is obtained.

【0029】この発明によれば、第1のアドレス情報を
所定数のビットごとに階層的に分割した分割アドレス情
報の各階層に対応させてツリー状に設けた第1の検索制
御情報を記憶し、各第1の検索制御情報が、自らの階層
の各分割アドレス情報ごとに、当該分割アドレス情報か
ら最上位の分割アドレス情報までを組み合わせた組合せ
アドレス情報の全部がいずれかの第2のアドレス情報の
最上位から一部を切り出したものと一致する場合、下位
の第1の検索制御情報の参照に用いる情報を含み、組合
せアドレス情報の全部または組合せアドレス情報の最下
位から当該分割アドレス情報の一部を切り捨てたものが
いずれかの第2のアドレス情報の全部と一致する場合、
下位の第1の検索制御情報の参照に用いる情報を含むか
否かにかかわらず、当該第2のアドレス情報に対応する
ルーチング情報または当該ルーチング情報の参照に用い
る情報を含む。これにより、ある第2のアドレス情報の
全部が他の第2のアドレス情報の最上位から一部を切り
出したものと一致する、すなわち包含関係にある場合で
も、短い方の第2のアドレス情報に対応するルーチング
情報を多数設定する必要がなくなる。
According to the present invention, the first search control information provided in the form of a tree is stored so as to correspond to each layer of the divided address information obtained by hierarchically dividing the first address information by a predetermined number of bits. Each of the first search control information is, for each of the divided address information of its own hierarchy, the combination of all of the combined address information from the divided address information to the uppermost divided address information is any of the second address information. When the partial address information matches a part of the divided address information that is obtained by cutting out a part of the divided address information from the least significant part of the combined address information or the least significant part of the combined address information. If the truncated part matches all of the second address information,
Regardless of whether or not it includes information used for referring to lower first search control information, it includes routing information corresponding to the second address information or information used for referring to the routing information. As a result, even if all of the certain second address information coincides with a part of the other second address information cut out from the highest level, that is, even if the second address information has an inclusive relation, it is added to the shorter second address information. There is no need to set a lot of corresponding routing information.

【0030】つぎの発明にかかるルーチング情報検索装
置にあっては、さらに、前記各ルーチング情報が有効で
あるか無効であるかを示す有効情報を記憶する第2の記
憶手段を具備し、前記検索手段は、前記第2の記憶手段
に記憶された有効情報に基づいてルーチング情報を検索
することを特徴とする。
The routing information retrieval apparatus according to the next invention further comprises a second storage means for storing valid information indicating whether each of the routing information is valid or invalid. The means retrieves the routing information based on the valid information stored in the second storage means.

【0031】この発明によれば、各ルーチング情報が有
効であるか無効であるかを示す有効情報を記憶する。こ
れにより、ルーチング情報を容易に無効とすることがで
き、また、無効にしたルーチング情報を容易に有効とす
ることができる。
According to the present invention, valid information indicating whether each piece of routing information is valid or invalid is stored. Thus, the routing information can be easily invalidated, and the invalidated routing information can be easily validated.

【0032】つぎの発明にかかるルーチング情報検索装
置にあっては、さらに、前記第2のアドレス情報と、当
該第2のアドレス情報に対応するネットワークマスク
と、当該第2のアドレス情報に対応するルーチング情報
または当該ルーチング情報の参照に用いる情報と、を含
む第2の検索制御情報を記憶する第3の記憶手段を具備
し、前記第1の検索制御情報は、自らの階層の各分割ア
ドレス情報ごとに、当該分割アドレス情報から最上位の
分割アドレス情報までを組み合わせた組合せアドレス情
報の全部がいずれかの第2のアドレス情報の最上位から
一部を切り出したものと一致する場合、前記第2の検索
制御情報の参照に用いる情報または下位の第1の検索制
御情報の参照に用いる情報を含み、前記検索手段は、参
照中の第1の検索制御情報が参照中の分割アドレス情報
に対応して前記第2の検索制御情報の参照に用いる情報
を含む場合、当該第2の検索制御情報を参照し、当該第
2の検索制御情報に含まれるネットワークマスクを検索
中の第1のアドレス情報に掛けたものが、当該第2の検
索制御情報に含まれる第2のアドレス情報に対応すると
き、当該第2のアドレス情報に対応するルーチング情報
を取得することを特徴とする。
In the routing information search device according to the next invention, the second address information, a network mask corresponding to the second address information, and a routing corresponding to the second address information are further provided. And a third storage means for storing second search control information including information or information used for referring to the routing information, wherein the first search control information is provided for each divided address information of its own hierarchy. In the case where all of the combined address information obtained by combining the divided address information and the uppermost divided address information coincides with a part of the second address information cut out from the uppermost part, the second The search means includes information used for referring to search control information or information used for referring to lower first search control information. When the information includes information used for referring to the second search control information corresponding to the divided address information being referred to, the second search control information is referred to, and the network included in the second search control information is referred to. When the mask multiplied by the first address information being searched corresponds to the second address information included in the second search control information, the routing information corresponding to the second address information is obtained. It is characterized by the following.

【0033】この発明によれば、第2のアドレス情報
と、当該第2のアドレス情報に対応するネットワークマ
スクと、当該第2のアドレス情報に対応するルーチング
情報または当該ルーチング情報の参照に用いる情報と、
を含む第2の検索制御情報を記憶し、第1の検索制御情
報は、自らの階層の各分割アドレス情報ごとに、当該分
割アドレス情報から最上位の分割アドレス情報までを組
み合わせた組合せアドレス情報の全部がいずれかの第2
のアドレス情報の最上位から一部を切り出したものと一
致する場合、第2の検索制御情報の参照に用いる情報ま
たは下位の第1の検索制御情報の参照に用いる情報を含
む。これにより、第1の検索制御情報のデータ量を削減
することができる。
According to the present invention, the second address information, the network mask corresponding to the second address information, the routing information corresponding to the second address information, or the information used for referring to the routing information, ,
Is stored, and the first search control information includes, for each of the divided address information of its own hierarchy, the combined address information obtained by combining from the divided address information to the highest divided address information. Everything is any second
If the address information matches a part of the address information extracted from the top, the information includes information used for referring to the second search control information or information used for referring to the lower first search control information. Thereby, the data amount of the first search control information can be reduced.

【0034】つぎの発明にかかるルーチング情報検索装
置にあっては、前記第1の検索制御情報が、自らの階層
の各分割アドレス情報が第1のアドレス情報のどの部分
を分割したものであるかを示す情報を含むことを特徴と
する。
In the routing information search apparatus according to the next invention, the first search control information indicates which part of the first address information is divided by each divided address information of its own hierarchy. Is included.

【0035】この発明によれば、第1の検索制御情報
が、自らの階層の各分割アドレス情報が第1のアドレス
情報のどの部分を分割したものであるかを示す情報を含
む。これにより、複数種類のプロトコルのアドレスに対
応することができ、各プロトコルに対応する第1の検索
制御情報を用意することにより、複数種類のプロトコル
のアドレスを一つのルーチング情報検索装置で処理する
ことができる。
According to the present invention, the first search control information includes information indicating which part of the first address information each divided address information of its own hierarchy is divided. Accordingly, addresses of a plurality of types of protocols can be handled, and by preparing first search control information corresponding to each protocol, addresses of a plurality of types of protocols can be processed by one routing information search device. Can be.

【0036】つぎの発明にかかるルーチング情報検索装
置にあっては、前記処理データが、一つの当該処理デー
タに対して複数の前記第1のアドレス情報を含み、前記
検索手段が、前記複数の第1のアドレス情報に対応して
複数設け、前記複数の検索手段が、対応するルーチング
情報をそれぞれ検索することを特徴とする。
In the routing information search device according to the next invention, the processing data includes a plurality of pieces of the first address information for one piece of the processing data, and the search means includes the plurality of pieces of the first address information. A plurality of search means are provided corresponding to one piece of address information, and the plurality of search means respectively search for corresponding routing information.

【0037】この発明によれば、一つの処理データに含
まれる複数の第1のアドレス情報のそれぞれに対応する
ルーチング情報を検索する。これにより、一つの処理デ
ータに複数の第1のアドレス情報が含まれる場合に、各
第1のアドレス情報に対応するルーチング情報を検索す
ることができる。
According to the present invention, the routing information corresponding to each of the plurality of first address information included in one piece of processing data is searched. Accordingly, when one piece of processing data includes a plurality of pieces of first address information, it is possible to search for routing information corresponding to each piece of first address information.

【0038】つぎの発明にかかるルーチング情報検索装
置にあっては、前記複数の検索手段が、直列接続され、
下位の検索手段が、上位の検索手段からの検索結果に関
する情報を取得し、当該検索結果に関する情報に基づい
てルーチング情報を検索することを特徴とする。
In a routing information search device according to the next invention, the plurality of search means are connected in series,
It is characterized in that a lower search means obtains information on a search result from a higher search means and searches for routing information based on the information on the search result.

【0039】この発明によれば、下位検索手段が、上位
の検索手段からの検索結果に関する情報を取得し、当該
検索結果に関する情報に基づいてルーチング情報を検索
する。これにより、一つの処理データに含まれる複数の
第1のアドレス情報を関連付けた検索結果を得ることが
できる。
According to the present invention, the lower-order search means acquires information on the search result from the higher-order search means, and searches for routing information based on the information on the search result. Thus, a search result in which a plurality of pieces of first address information included in one piece of processing data are associated can be obtained.

【0040】つぎの発明にかかるルーチング情報検索装
置にあっては、前記検索手段が、前記分割アドレス情報
の各階層ごとに設けられた複数の階層検索手段からな
り、前記複数の階層検索手段が、パイプライン処理によ
って各階層における前記ルーチング情報の検索処理を行
うことを特徴とする。
In the routing information search device according to the next invention, the search means comprises a plurality of hierarchy search means provided for each hierarchy of the divided address information, and the plurality of hierarchy search means comprises: A search process of the routing information in each layer is performed by pipeline processing.

【0041】この発明によれば、複数の階層検索手段
が、パイプライン処理によって各階層におけるルーチン
グ情報の検索処理を行う。これにより、検索処理を高速
化することができる。
According to the present invention, a plurality of hierarchical search means perform a search for routing information in each hierarchy by pipeline processing. This makes it possible to speed up the search process.

【0042】つぎの発明にかかるルーチング情報検索制
御データを記録したコンピュータ読み取り可能な記録媒
体にあっては、通信ネットワーク装置が処理する処理デ
ータに含まれる第1のアドレス情報を複数のネットワー
クマスクに応じて切り出した第2のアドレス情報に応じ
て、前記処理データの送信方路または処理内容を指示す
るルーチング情報を検索するルーチング情報検索に用い
るルーチング情報検索制御データを記録したコンピュー
タ読み取り可能な記録媒体であって、ルーチング情報検
索制御データが、前記第1のアドレス情報を所定数のビ
ットごとに階層的に分割した分割アドレス情報の各階層
に対応させてツリー状に設けた第1の検索制御情報を含
み、前記第1の検索制御情報が、自らの階層の各分割ア
ドレス情報ごとに、当該分割アドレス情報から最上位の
分割アドレス情報までを組み合わせた組合せアドレス情
報の全部がいずれかの第2のアドレス情報の最上位から
一部を切り出したものと一致する場合、下位の第1の検
索制御情報の参照に用いる情報を含み、前記組合せアド
レス情報の全部または前記組合せアドレス情報の最下位
から当該分割アドレス情報の一部を切り捨てたものがい
ずれかの第2のアドレス情報の全部と一致する場合、前
記下位の第1の検索制御情報の参照に用いる情報を含む
か否かにかかわらず、当該第2のアドレス情報に対応す
るルーチング情報または当該ルーチング情報の参照に用
いる情報を含むことを特徴とする。
In a computer-readable recording medium recording the routing information search control data according to the next invention, the first address information included in the processing data processed by the communication network device is determined according to a plurality of network masks. A computer-readable recording medium recording routing information search control data used for routing information search for searching routing information indicating the transmission route or processing content of the processing data in accordance with the second address information cut out. The routing information search control data includes first search control information provided in a tree shape corresponding to each layer of divided address information obtained by hierarchically dividing the first address information by a predetermined number of bits. Wherein the first search control information is provided for each divided address information of its own hierarchy. If all of the combined address information obtained by combining the divided address information and the uppermost divided address information matches a part of the second address information cut out from the uppermost part, the lower first search is performed. Including the information used for referring to the control information, the whole of the combination address information or the part obtained by truncating the part of the division address information from the lowest order of the combination address information coincides with the whole of any of the second address information. In this case, the information includes routing information corresponding to the second address information or information used for referring to the routing information, regardless of whether or not the information includes information used for referring to the lower first search control information. And

【0043】この発明によれば、ルーチング情報検索制
御データが、第1のアドレス情報を所定数のビットごと
に階層的に分割した分割アドレス情報の各階層に対応さ
せてツリー状に設けた第1の検索制御情報を含み、第1
の検索制御情報が、自らの階層の各分割アドレス情報ご
とに、当該分割アドレス情報から最上位の分割アドレス
情報までを組み合わせた組合せアドレス情報の全部がい
ずれかの第2のアドレス情報の最上位から一部を切り出
したものと一致する場合、下位の第1の検索制御情報の
参照に用いる情報を含み、組合せアドレス情報の全部ま
たは組合せアドレス情報の最下位から当該分割アドレス
情報の一部を切り捨てたものがいずれかの第2のアドレ
ス情報の全部と一致する場合、下位の第1の検索制御情
報の参照に用いる情報を含むか否かにかかわらず、当該
第2のアドレス情報に対応するルーチング情報または当
該ルーチング情報の参照に用いる情報を含む。これによ
り、ある第2のアドレス情報の全部が他の第2のアドレ
ス情報の最上位から一部を切り出したものと一致する、
すなわち包含関係にある場合でも、短い方の第2のアド
レス情報に対応するルーチング情報を多数設定する必要
がなくなる。
According to the present invention, the routing information retrieval control data is provided in the form of a first tree which is provided in a tree shape in such a manner that the first address information is hierarchically divided by a predetermined number of bits and corresponds to each layer of the divided address information. Including the search control information of the first
Is the search control information for each of the divided address information of its own hierarchy, all of the combined address information from the divided address information to the highest divided address information are combined from the top of any of the second address information. In the case where a part of the divided address information coincides with a part of the divided address information, the part includes information used for referring to the lower first search control information, and a part of the divided address information is truncated from the entire combined address information or the lowest part of the combined address information. If the information matches all of the second address information, the routing information corresponding to the second address information regardless of whether the information includes information used for referring to the lower first search control information or not. Alternatively, the information includes information used for referring to the routing information. As a result, all of the certain second address information coincides with a part of the other second address information cut out from the top.
That is, even in the case of the inclusion relation, it is not necessary to set a large number of routing information corresponding to the shorter second address information.

【0044】つぎの発明にかかるルーチング情報検索制
御データを記録したコンピュータ読み取り可能な記録媒
体にあっては、ルーチング情報検索制御データが、さら
に、前記各ルーチング情報が有効であるか無効であるか
を示す有効情報を含むルーチング情報検索制御データを
含むことを特徴とする。
In a computer-readable recording medium on which the routing information search control data according to the next invention is recorded, the routing information search control data further determines whether each of the routing information is valid or invalid. It is characterized by including routing information search control data including valid information shown.

【0045】この発明によれば、ルーチング情報検索制
御データが、さらに、各ルーチング情報が有効であるか
無効であるかを示す有効情報を含むルーチング情報検索
制御データを含む。これにより、ルーチング情報を容易
に無効とすることができ、また、無効にしたルーチング
情報を容易に有効とすることができる。
According to the present invention, the routing information search control data further includes routing information search control data including valid information indicating whether each routing information is valid or invalid. Thus, the routing information can be easily invalidated, and the invalidated routing information can be easily validated.

【0046】つぎの発明にかかるルーチング情報検索制
御データを記録したコンピュータ読み取り可能な記録媒
体にあっては、ルーチング情報検索制御データが、さら
に、前記第2のアドレス情報と、当該第2のアドレス情
報に対応するネットワークマスクと、当該第2のアドレ
ス情報に対応するルーチング情報または当該ルーチング
情報の参照に用いる情報と、を含む第2の検索制御情報
を含むことを特徴とする。
In a computer-readable recording medium storing the routing information search control data according to the next invention, the routing information search control data further includes the second address information and the second address information. And second search control information including a network mask corresponding to the second address information and routing information corresponding to the second address information or information used for referring to the routing information.

【0047】この発明によれば、ルーチング情報検索制
御データが、さらに、第2のアドレス情報と、当該第2
のアドレス情報に対応するネットワークマスクと、当該
第2のアドレス情報に対応するルーチング情報または当
該ルーチング情報の参照に用いる情報と、を含む第2の
検索制御情報を含む。これにより、第1の検索制御情報
のデータ量を削減することができる。
According to this invention, the routing information search control data further includes the second address information and the second address information.
The second search control information includes a network mask corresponding to the second address information, and routing information corresponding to the second address information or information used for referring to the routing information. Thereby, the data amount of the first search control information can be reduced.

【0048】つぎの発明にかかるルーチング情報検索制
御データを記録したコンピュータ読み取り可能な記録媒
体にあっては、前記第1の検索制御情報が、自らの階層
の各分割アドレス情報が第1のアドレス情報のどの部分
を分割したものであるかを示す情報を含むことを特徴と
する。
In a computer-readable recording medium having recorded therein routing information search control data according to the next invention, the first search control information is such that each divided address information of its own hierarchy is the first address information. The information includes information indicating which part is divided.

【0049】この発明によれば、第1の検索制御情報
が、自らの階層の各分割アドレス情報が第1のアドレス
情報のどの部分を分割したものであるかを示す情報を含
む。これにより、複数種類のプロトコルのアドレスに対
応させることができ、各プロトコルに対応する第1の検
索制御情報を用意することにより、複数種類のプロトコ
ルのアドレスを一つのルーチング情報検索装置で処理す
ることができる。
According to the present invention, the first search control information includes information indicating which part of the first address information each divided address information of its own hierarchy is divided. This makes it possible to correspond to the addresses of a plurality of types of protocols. By preparing the first search control information corresponding to each protocol, it is possible to process the addresses of the plurality of types of protocols with one routing information search device. Can be.

【0050】ここで、「コンピュータ読み取り可能な記
録媒体」とは、フロッピー(登録商標)ディスク等の磁
気ディスク、ROM,EPROM,EEPROM,フラ
ッシュROM等の半導体メモリ(カートリッジ,PCカ
ード等に内蔵されているものを含む)、CD−ROM,
DVD等の光ディスク、MO等の光磁気ディスク、等の
「可搬の物理媒体」や、各種コンピュータシステムに内
蔵されるROM,RAM,ハードディスク等の「固定用
の物理媒体」を含むものである。さらに、「コンピュー
タ読み取り可能な記録媒体」には、LAN,WAN,イ
ンターネット等のネットワークを介してデータやプログ
ラムを送信する場合の通信回線のように、データやプロ
グラムを短期間保持する通信媒体を含めてもよい。な
お、「データ」は必ずしも単一に構成されるものに限ら
れず、複数のコンピュータ読み取り可能な記録媒体に分
散して記録されているものを含む。
Here, the “computer-readable recording medium” is a magnetic disk such as a floppy (registered trademark) disk, or a semiconductor memory (a cartridge, a PC card, or the like) such as a ROM, an EPROM, an EEPROM, or a flash ROM. CD-ROM,
It includes a "portable physical medium" such as an optical disk such as a DVD and a magneto-optical disk such as an MO, and a "fixed physical medium" such as a ROM, a RAM, and a hard disk incorporated in various computer systems. Further, the “computer-readable recording medium” includes a communication medium for holding data and programs for a short period of time, such as a communication line for transmitting data and programs via a network such as a LAN, a WAN, or the Internet. You may. Note that the “data” is not necessarily limited to a single data, and includes data recorded in a distributed manner on a plurality of computer-readable recording media.

【0051】[0051]

【発明の実施の形態】以下、この発明の実施の形態を、
図面を参照して詳細に説明する。なお、この実施の形態
により、この発明が限定されるものではない。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the present invention will be described.
This will be described in detail with reference to the drawings. The present invention is not limited by the embodiment.

【0052】実施の形態1.この発明の実施の形態1に
かかるルーチング情報検索装置として、通信ネットワー
クに接続された中継装置や端末装置などの通信ネットワ
ーク装置と一体に設けられ、アドレスマスクのロンゲス
トマッチに対応したルーチング情報(通信ネットワーク
装置が処理する処理データの送信方路や処理内容を示す
情報)の検索を行うルーチング情報検索装置を例に挙げ
て説明する。また、この通信ネットワーク装置が処理す
る処理データはどのようなものであってもよいが、ここ
では、32ビットのIPアドレスのアドレス情報を含む
パケットを処理する場合を例に挙げる。
Embodiment 1 The routing information search device according to the first embodiment of the present invention is provided integrally with a communication network device such as a relay device or a terminal device connected to a communication network, and has routing information (communication) corresponding to the longest match of the address mask. A description will be given of an example of a routing information search device that searches for information indicating a transmission route of process data processed by a network device and information of the process. The processing data processed by the communication network device may be any data. Here, a case will be described as an example where a packet including address information of a 32-bit IP address is processed.

【0053】図1は、この発明の実施の形態1にかかる
通信ネットワーク装置1の概略構成を示す図である。通
信ネットワーク装置1は、アドレス情報を取得し、後述
するアドレス制御テーブルおよびルーチング情報テーブ
ルに基づいて、そのアドレス情報に対応するルーチング
情報を検索する検索制御部10と、通信ネットワーク装
置1が処理するパケットに含まれるアドレス情報(たと
えば、送信先アドレスの情報)を検索制御部10に送
り、検索制御部10が検索結果として出力するルーチン
グ情報を取得するアドレス検索依頼部16とを備えてい
る。
FIG. 1 is a diagram showing a schematic configuration of a communication network device 1 according to the first embodiment of the present invention. The communication network device 1 acquires address information, and searches for routing information corresponding to the address information based on an address control table and a routing information table, which will be described later, and a packet processed by the communication network device 1. And an address search requesting unit 16 that sends address information (for example, information of a transmission destination address) included in the search control unit 10 to the search control unit 10 and obtains routing information output by the search control unit 10 as a search result.

【0054】検索制御部10は、アドレス検索依頼部1
6からのアドレス情報を取得すると、そのアドレス情報
を最上位ビットから順に所定ビットごとに階層的に分割
した分割アドレス情報を生成する。分割アドレス情報の
階層は何階層であってもよい。ここでは、8ビット,1
6ビット,24ビットおよび32ビットの上位アドレス
情報を用い、アドレス情報を8ビットずつ4つに分割し
た場合、すなわち、分割アドレス情報の階層が4階層の
場合を例に挙げる。
The search control unit 10 includes the address search request unit 1
When the address information is acquired from the address information No. 6, the divided address information is generated by hierarchically dividing the address information by predetermined bits in order from the most significant bit. The number of layers of the divided address information may be any number. Here, 8 bits, 1
A case where address information is divided into four by eight bits using upper address information of 6 bits, 24 bits and 32 bits, that is, a case where the layer of the divided address information is four layers will be described as an example.

【0055】検索制御部10は、分割アドレス情報の各
階層に対応する第1アドレス制御部11,第2アドレス
制御部12,第3アドレス制御部13および第4アドレ
ス制御部14と、第1アドレス制御部11〜第4アドレ
ス制御部14に対して一つ設けられたルーチング情報部
15とを備えている。第1アドレス制御部11は、後述
する最上位のアドレス制御テーブルを記憶し、最上位の
分割アドレス情報および後述する最上位のアドレス制御
テーブルを参照してルーチング情報の検索処理(アドレ
ス検索処理)を行う。同様に、第2アドレス制御部12
は、後述する最上位から2番目のアドレス制御テーブル
を記憶し、最上位から2番目の分割アドレス情報および
後述する最上位から2番目のアドレス制御テーブルを参
照してルーチング情報の検索処理を行う。
The search control unit 10 includes a first address control unit 11, a second address control unit 12, a third address control unit 13, and a fourth address control unit 14 corresponding to each layer of the divided address information. A routing information unit 15 is provided for each of the control units 11 to the fourth address control unit 14. The first address control unit 11 stores a highest-order address control table to be described later, and performs a routing information search process (address search process) with reference to the highest-order divided address information and a highest-order address control table to be described later. Do. Similarly, the second address control unit 12
Stores a second highest-order address control table, which will be described later, and performs a search process for routing information with reference to the second highest-order address information and a second highest-order address control table, which will be described later.

【0056】同様に、第3アドレス制御部13は、後述
する最上位から3番目のアドレス制御テーブルを記憶
し、最上位から3番目の分割アドレス情報および後述す
る最上位から3番目のアドレス制御テーブルを参照して
ルーチング情報の検索処理を行う。同様に、第4アドレ
ス制御部14は、後述する最上位から4番目のアドレス
制御テーブルを記憶し、最上位から4番目の分割アドレ
ス情報および後述する最上位から4番目のアドレス制御
テーブルを参照してルーチング情報の検索処理を行う。
検索制御部10は、後述するルーチング情報テーブルを
記憶し、検索結果のルーチング情報として送信インター
フェース名を出力する。
Similarly, the third address control unit 13 stores the third highest address control table described later, and stores the third highest address control information and the third highest address control table described later. To perform routing information search processing. Similarly, the fourth address control unit 14 stores the fourth highest address control table described later, and refers to the fourth highest address control table described later and the fourth highest address control table described later. To search for routing information.
The search control unit 10 stores a routing information table described later, and outputs a transmission interface name as routing information of a search result.

【0057】図2は、実施の形態1にかかるアドレス制
御テーブルの構成を示す図である。このアドレス制御テ
ーブルは、各階層に対応してツリー状に構成されてお
り、最上位の第1アドレス制御テーブルD11と、最上
位から2番目の第2アドレス制御テーブルD12と、最
上位から3番目の第3アドレス制御テーブルD13と、
最上位から4番目の第4アドレス制御テーブルD14と
からなる。
FIG. 2 is a diagram showing a configuration of the address control table according to the first embodiment. This address control table is formed in a tree shape corresponding to each hierarchy, and includes a first address control table D11 at the highest level, a second address control table D12 at the second level from the highest level, and a third address control table D12 at the highest level. A third address control table D13,
And a fourth address control table D14, which is the fourth from the highest.

【0058】第1アドレス制御テーブルD11は、アド
レス情報の最上位の分割アドレス情報(最上位8ビッ
ト)による検索処理に用いるものであり、0〜255
(10進数)の最上位の分割アドレス情報に対応するポ
インタAa000〜Aa255で示される位置に、それ
ぞれ、「無効」,「検索終了」または「検索継続」のい
ずれかの検索フラグが設定される検索フラグ領域D11
2と、「廃棄」,「ルートなし」,「デフォルト」また
は「ブロック」のいずれかのルートフラグが設定される
ルートフラグ領域D113と、参照すべき下位の第2ア
ドレス制御テーブルD12のブロックの位置を示すポイ
ンタを格納する次テーブルポインタ領域D114と、参
照すべきルーチング情報テーブル内の位置を示すルーチ
ング情報テーブルポインタを格納するルーチングポイン
タ領域D115とを含んでいる。
The first address control table D11 is used for a search process based on the highest division address information (highest 8 bits) of the address information.
A search in which any of the search flags “invalid”, “search completed”, or “search continued” is set at the positions indicated by the pointers Aa000 to Aa255 corresponding to the uppermost division address information (decimal number). Flag area D11
2, a root flag area D113 in which a root flag of any of "discard", "no root", "default", and "block" is set, and a position of a block of the lower second address control table D12 to be referred to And a routing pointer area D115 for storing a routing information table pointer indicating a position in the routing information table to be referred to.

【0059】同様に、第2アドレス制御テーブルD12
は、アドレス情報の2番目の分割アドレス情報(9ビッ
ト目〜16ビット目)による検索処理に用いるものであ
り、0〜255までの2番目の分割アドレス情報に対応
するブロックを第1アドレス制御テーブルD11からの
分岐の数だけ含んでいる。すなわち、第1アドレス制御
テーブルD11の検索フラグ領域D112に、下位のア
ドレス制御テーブル(第1アドレス制御テーブルD11
に対する第2アドレス制御テーブルD12)を用いた検
索処理を継続することを示す「検索継続」が設定されて
いる数だけブロックを含む。
Similarly, the second address control table D12
Is used for a search process based on the second divided address information (the 9th to 16th bits) of the address information. It includes the number of branches from D11. That is, in the search flag area D112 of the first address control table D11, a lower-order address control table (first address control table D11
The block includes the number of blocks for which “continue search” indicating that the search process using the second address control table D12) is to be continued is set.

【0060】そして、0〜255までの2番目の分割ア
ドレス情報に対応するポインタBa000〜Ba255
等で示される位置に、それぞれ、「無効」,「検索終
了」または「検索継続」のいずれかの検索フラグが設定
される検索フラグ領域D122と、「廃棄」,「ルート
なし」,「デフォルト」または「ブロック」のいずれか
のルートフラグが設定されるルートフラグ領域D123
と、参照すべき下位の第3アドレス制御テーブルD13
のブロックの位置を示すポインタを格納する次テーブル
ポインタ領域D124と、参照すべきルーチング情報テ
ーブル内の位置を示すルーチング情報テーブルポインタ
を格納するルーチングポインタ領域D125とを含んで
いる。
The pointers Ba000 to Ba255 corresponding to the second divided address information from 0 to 255
And the like, a search flag area D122 in which a search flag of “invalid”, “end of search” or “continuation of search” is set, and “discard”, “no route”, and “default”, respectively. Or a route flag area D123 in which any of the route flags of “block” is set
And the lower third address control table D13 to be referred to
A next table pointer area D124 for storing a pointer indicating the position of the block of interest, and a routing pointer area D125 for storing a routing information table pointer indicating the position in the routing information table to be referred to.

【0061】同様に、第3アドレス制御テーブルD13
は、アドレス情報の3番目の分割アドレス情報(17ビ
ット目〜24ビット目)による検索処理に用いるもので
あり、0〜255までの3番目の分割アドレス情報に対
応するブロックを第2アドレス制御テーブルD12から
の分岐の数だけ含んでいる。すなわち、第2アドレス制
御テーブルD12の検索フラグ領域D122に、下位の
アドレス制御テーブル(第2アドレス制御テーブルD1
2に対する第3アドレス制御テーブルD13)を用いた
検索処理を継続することを示す「検索継続」が設定され
ている数だけブロックを含む。
Similarly, the third address control table D13
Is used for a search process based on the third divided address information (17th to 24th bits) of the address information, and blocks corresponding to the third divided address information from 0 to 255 are stored in the second address control table It includes the number of branches from D12. That is, in the search flag area D122 of the second address control table D12, a lower address control table (the second address control table D1) is stored.
No. 2 includes the number of blocks for which “search continuation” indicating that the search process using the third address control table D13) for continuation 2 is continued is set.

【0062】そして、0〜255までの3番目の分割ア
ドレス情報に対応するポインタCa000〜Ca255
等で示される位置に、それぞれ、「無効」,「検索終
了」または「検索継続」のいずれかの検索フラグが設定
される検索フラグ領域D132と、「廃棄」,「ルート
なし」,「デフォルト」または「ブロック」のいずれか
のルートフラグが設定されるルートフラグ領域D133
と、参照すべき下位の第4アドレス制御テーブルD14
のブロックの位置を示すポインタを格納する次テーブル
ポインタ領域D134と、参照すべきルーチング情報テ
ーブル内の位置を示すルーチング情報テーブルポインタ
を格納するルーチングポインタ領域D135とを含んで
いる。
The pointers Ca000 to Ca255 corresponding to the third divided address information from 0 to 255
, A search flag area D132 in which a search flag of “invalid”, “end of search”, or “continuation of search” is set, and “discard”, “no route”, and “default”, respectively. Or a route flag area D133 in which any of the route flags of “block” is set
And the lower fourth address control table D14 to be referred to
And a routing pointer area D135 for storing a routing information table pointer indicating a position in the routing information table to be referred to.

【0063】同様に、第4アドレス制御テーブルD14
は、アドレス情報の4番目の分割アドレス情報(25ビ
ット目〜32ビット目)による検索処理に用いるもので
あり、0〜255までの4番目の分割アドレス情報に対
応するブロックを第3アドレス制御テーブルD13から
の分岐の数だけ含んでいる。すなわち、第3アドレス制
御テーブルD13の検索フラグ領域D132に、下位の
アドレス制御テーブル(第3アドレス制御テーブルD1
3に対する第4アドレス制御テーブルD14)を用いた
検索処理を継続することを示す「検索継続」が設定され
ている数だけブロックを含む。
Similarly, the fourth address control table D14
Is used for search processing based on the fourth divided address information (25th to 32nd bits) of the address information, and blocks corresponding to the fourth divided address information from 0 to 255 are stored in the third address control table. It includes the number of branches from D13. That is, in the search flag area D132 of the third address control table D13, a lower address control table (third address control table D1) is stored.
No. 3 includes the number of blocks in which “continue search” indicating that the search process using the fourth address control table D14) is continued is set.

【0064】そして、0〜255までの4番目の分割ア
ドレス情報に対応するポインタCa000〜Ca255
等で示される位置に、それぞれ、「無効」または「検索
終了」のいずれかの検索フラグが設定される検索フラグ
領域D142と、「廃棄」,「ルートなし」,「デフォ
ルト」または「ブロック」のいずれかのルートフラグが
設定されるルートフラグ領域D143と、次テーブルポ
インタ領域D144と、参照すべきルーチング情報テー
ブル内の位置を示すルーチング情報テーブルポインタを
格納するルーチングポインタ領域D145とを含んでい
る。
Then, pointers Ca000 to Ca255 corresponding to the fourth divided address information from 0 to 255
, A search flag area D142 in which a search flag of "invalid" or "end of search" is set, and a search flag area D142 of "discard", "no route", "default" or "block". It includes a route flag area D143 in which one of the route flags is set, a next table pointer area D144, and a routing pointer area D145 for storing a routing information table pointer indicating a position in the routing information table to be referred to.

【0065】ポインタAa000〜Aa255,Ba0
00〜Ba255,Ca000〜Ca255,Da00
0〜Da255は、それぞれ分割アドレス情報の値0〜
255に対応しており、各分割アドレス情報に対応する
データが格納される位置(図2に示したアドレス制御テ
ーブルの一つの行)や各ブロックの位置を示す。ここで
は、説明の簡単のため、対応する分割アドレス情報の値
にそれぞれAa,Ba,Ca,Da等を付して表してい
る。また、小文字の部分はブロックを示す。たとえば、
Baではじまるポインタは一つのブロックを示し、Bb
ではじまるポインタは他のブロックを示す。
Pointers Aa000 to Aa255, Ba0
00 to Ba255, Ca000 to Ca255, Da00
0 to Da255 are the values of the divided address information 0 to 0, respectively.
255, which indicates the position (one row of the address control table shown in FIG. 2) where data corresponding to each piece of divided address information is stored, and the position of each block. Here, for the sake of simplicity, the values of the corresponding divided address information are indicated by adding Aa, Ba, Ca, Da, etc., respectively. The lowercase letters indicate blocks. For example,
The pointer starting with Ba indicates one block, and Bb
A pointer that starts with indicates another block.

【0066】検索フラグ領域D112,D122,D1
32,D142に設定される「無効」は、上位のアドレ
ス制御テーブルの情報によってルーチング情報を取得す
べきことを示し、「検索終了」は、下位のアドレス制御
テーブルを用いた検索処理を継続せず、そのアドレス制
御テーブルを用いてルーチング情報を取得することを示
し、「検索継続」は、下位のアドレス制御テーブルを用
いた検索処理を継続することを示す。
Search flag areas D112, D122, D1
“Invalid” set in 32 and D142 indicates that the routing information should be obtained based on the information of the upper address control table, and “End of search” indicates that the search processing using the lower address control table is not continued. Indicates that the routing information is to be obtained using the address control table, and “continue search” indicates that the search process using the lower address control table is continued.

【0067】ルートフラグ領域D113,D123,D
133,D143に設定される「廃棄」は、「パケット
を廃棄する」という処理内容を示すルーチング情報であ
り、「ルートなし」は、パケットを送信するルートがな
いことを示し、「デフォルト」は、後述するルーチング
情報テーブルにデフォルトとして設定されている送信イ
ンターフェースの情報を参照することを示し、「ブロッ
ク」は、ルーチングポインタ領域D115,D125,
D135,D145にルーチング情報テーブルポインタ
が格納されていることを示す。
Route flag areas D113, D123, D
“Discard” set in 133 and D143 is routing information indicating the processing content of “discard the packet”, “no route” indicates that there is no route for transmitting the packet, and “default” indicates This indicates that the information of the transmission interface set as a default in a routing information table to be described later is referred to.
D135 and D145 indicate that the routing information table pointer is stored.

【0068】次テーブルポインタ領域D114,D12
4,D134,D144に格納されるポインタは、参照
すべき下位のアドレス制御テーブルのブロックの位置を
示す。たとえば、最上位の分割アドレス「133」に対
応して第2アドレス制御テーブルD12の最初のブロッ
クの位置を示すポインタBa000が格納される。ま
た、2番目のブロックであればポインタBb000が格
納される。この次テーブルポインタ領域に格納されるポ
インタにより、最上位の第1アドレス制御テーブルD1
1から順に下位のアドレス制御テーブルの所定のブロッ
クを参照することができる。
Next table pointer area D114, D12
The pointers stored in D4, D134 and D144 indicate the position of the block of the lower address control table to be referred to. For example, a pointer Ba000 indicating the position of the first block of the second address control table D12 is stored corresponding to the highest division address “133”. In the case of the second block, the pointer Bb000 is stored. By using the pointer stored in the next table pointer area, the highest-order first address control table D1
A predetermined block of the lower address control table can be referred to in order from 1.

【0069】ルーチングポインタ領域D115,D12
5,D135,D145に格納されるルーチング情報テ
ーブルポインタは、参照すべきルーチング情報テーブル
内の位置を示す。図3は、実施の形態1にかかるルーチ
ング情報テーブルD15の構成を示す図である。ルーチ
ング情報テーブルD15は、各アドレス制御テーブルの
ルーチングポインタ領域D115,D125,D13
5,D145に格納されたルーチング情報テーブルポイ
ンタが示す位置および「デフォルト」用の位置に、パケ
ットを送信するインターフェース名が設定される送信イ
ンターフェース領域D153と、送信インターフェース
領域D153の情報が有効か否かを示す有効フラグを設
定する有効フラグ領域D152とを含んでいる。
Routing pointer areas D115, D12
The routing information table pointer stored in D5, D135, or D145 indicates a position in the routing information table to be referred to. FIG. 3 is a diagram illustrating a configuration of the routing information table D15 according to the first embodiment. The routing information table D15 includes routing pointer areas D115, D125, and D13 of each address control table.
5, a transmission interface area D153 in which an interface name for transmitting a packet is set at a position indicated by the routing information table pointer stored in D145 and a position for “default”, and whether information in the transmission interface area D153 is valid or not. And an effective flag area D152 for setting an effective flag indicating the following.

【0070】さらに、参照した有効フラグが「無効」を
示すものであった場合に実行すべきの処理(パケット廃
棄,アラーム等)を記述した情報をルーチング情報テー
ブルD15に含ませてもよい。これにより、参照した送
信インターフェース領域D153の情報が無効であった
場合の処理を容易に設定,変更することができる。
Further, the routing information table D15 may include information describing the processing to be executed when the referenced valid flag indicates "invalid" (packet discard, alarm, etc.). This makes it possible to easily set and change the processing when the information of the referred transmission interface area D153 is invalid.

【0071】以下、上位分割アドレス情報(アドレス情
報をアドレスマスクに応じて切り出した情報)とアドレ
スマスクを8ビットごとに分割し、その4つの数字をド
ットで区切り、それぞれ10進数で表して説明する。ア
ドレスマスクは、アドレス情報と同じ長さを持ち、2進
数で「1」の立っているビットに対応するアドレス情報
を有効にするものである。たとえば、アドレスマスク
「255.0.0.0」は、2進数で表すと「1111
1111.00000000.00000000.00
000000」となり、アドレス情報の上位8ビットを
有効にする。
Hereinafter, the upper division address information (information obtained by cutting out the address information in accordance with the address mask) and the address mask are divided into 8 bits, and the four numbers are separated by dots, each of which is represented by a decimal number. . The address mask has the same length as the address information, and validates the address information corresponding to the bit where a binary "1" stands. For example, the address mask “255.0.0.0” can be represented by “1111” in binary.
1111.000000000000000000000
000000 ”, and the upper 8 bits of the address information are validated.

【0072】図2の例では、上位分割アドレス情報13
3.141.77.59と対のアドレスマスク255.
255.255.255と、上位分割アドレス情報13
3.141.77.60と対のアドレスマスク255.
255.255.255と、上位分割アドレス情報13
3.141.77と対のアドレスマスク255.25
5.255.0と、上位分割アドレス情報133.14
1.76と対のアドレスマスク255.255.25
4.0と、上位分割アドレス情報133.141と対の
アドレスマスク255.255.0.0と、上位分割ア
ドレス情報133と対のアドレスマスク255.0.
0.0とが設定されている。
In the example shown in FIG.
3.141.77.59 and a pair of address mask 255.
255.255.255 and upper division address information 13
3.141.77.60 and a pair of address mask 255.
255.255.255 and upper division address information 13
3.141.77 and paired address mask 255.25
5.255.0 and upper division address information 133.14
Address mask 255.255.25 paired with 1.76
4.0, an address mask 255.255.0.0 paired with the upper division address information 133.141, and an address mask 255.0.
0.0 is set.

【0073】そして、第1アドレス制御テーブルD11
では、最上位の分割アドレス情報「133」に対応する
ポインタAa133で示される位置以外の全ての位置に
おいて、検索フラグ領域D112には「検索終了」が、
ルートフラグ領域D113には「廃棄」が、次テーブル
ポインタ領域D114には「無効」が、ルーチングポイ
ンタ領域D115には「無効」が設定される。また、第
2アドレス制御テーブルD12では、2番目の分割アド
レス情報「141」に対応するポインタBa141で示
される位置以外の全ての位置において、検索フラグ領域
D122,ルートフラグ領域D123,次テーブルポイ
ンタ領域D124,ルーチングポインタ領域D125に
それぞれ「無効」が設定される。
Then, the first address control table D11
In all of the positions other than the position indicated by the pointer Aa 133 corresponding to the uppermost division address information “133”, “search end” is displayed in the search flag area D112.
"Discard" is set in the root flag area D113, "invalid" is set in the next table pointer area D114, and "invalid" is set in the routing pointer area D115. In the second address control table D12, the search flag area D122, the root flag area D123, and the next table pointer area D124 are located at all positions other than the position indicated by the pointer Ba141 corresponding to the second divided address information "141". , "Invalid" is set in the routing pointer area D125.

【0074】また、第3アドレス制御テーブルD13で
は、3番目の分割アドレス情報「76」および「77」
に対応するポインタCa076,ポインタCa077で
示される位置以外の全ての位置において、検索フラグ領
域D132,ルートフラグ領域D133,次テーブルポ
インタ領域D134,ルーチングポインタ領域D135
にそれぞれ「無効」が設定される。また、第4アドレス
制御テーブルD14では、4番目の分割アドレス情報
「59」および「60」に対応するポインタDa05
9,ポインタDa060で示される位置以外の全ての位
置において、検索フラグ領域D142,ルートフラグ領
域D143,次テーブルポインタ領域D144,ルーチ
ングポインタ領域D145にそれぞれ「無効」に設定さ
れる。
In the third address control table D13, the third divided address information "76" and "77"
In all positions other than the positions indicated by the pointers Ca076 and Ca077, the search flag area D132, the root flag area D133, the next table pointer area D134, and the routing pointer area D135
Is set to “invalid”. In the fourth address control table D14, the pointer Da05 corresponding to the fourth divided address information "59" and "60"
9, the search flag area D142, the root flag area D143, the next table pointer area D144, and the routing pointer area D145 are set to "invalid" at all positions other than the position indicated by the pointer Da060.

【0075】分割アドレス情報が上位分割アドレス情報
の長さに合わせて分割されていない場合は、上位分割ア
ドレス情報に(分割アドレス情報よりも短い)下位のビ
ットを加えて分割アドレス情報の区切りに合わせたもの
それぞれについて、その上位分割アドレス情報に対応す
る設定を行う。たとえば、上位分割アドレス情報が「2
52」でアドレスマスクが「252.0.0.0」(2
進数で「11111100.00000000.000
00000.00000000」)である場合、第1ア
ドレス制御テーブルD11において、分割アドレス情報
「252」,「253」,「254」,「255」につ
いて、上位分割アドレス情報「252」に対応する設定
を行う。
If the divided address information is not divided according to the length of the upper divided address information, lower bits (shorter than the divided address information) are added to the upper divided address information to match the division of the divided address information. For each of them, the setting corresponding to the upper division address information is performed. For example, if the upper division address information is "2
52 ”and the address mask is“ 252.0.0.0 ”(2
"11111100.000000000000 in base number
0000.000000000 "), in the first address control table D11, the setting corresponding to the upper-level divided address information" 252 "is performed for the divided address information" 252 "," 253 "," 254 ", and" 255 ". .

【0076】ここで、これらの分割アドレス情報の一部
が他の上位分割アドレス情報に対応する場合は、当該一
部の分割アドレス情報については当該他の上位分割アド
レス情報に対応する設定を行う。たとえば、分割アドレ
ス「253」が上位分割アドレス情報「253」に対応
する場合、分割アドレス「253」については、上位分
割アドレス情報「252」に対応する設定ではなく、上
位分割アドレス情報「253」に対応する設定を行う。
Here, when a part of the divided address information corresponds to another upper divided address information, the setting corresponding to the other upper divided address information is performed for the part of the divided address information. For example, when the division address “253” corresponds to the upper division address information “253”, the division address “253” is not set to correspond to the upper division address information “252”, but is set to the higher division address information “253”. Make the corresponding settings.

【0077】さて、これまで、通信ネットワーク装置1
の構成について説明したが、通信ネットワーク装置1の
各構成要素は機能概念的なものであり、必ずしも物理的
に図示したように構成されていなくてもよい。たとえ
ば、通信ネットワーク装置1が備える処理機能のうち全
部または一部を、図示しないCPU(Central Processi
ng Unit)およびこのCPUにて解釈実行されるプログ
ラムにより実現することができる。すなわち、図示しな
いROMには、OS(Operating System)等と協働して
CPUに命令を与え、CPUに各種処理を行わせるコン
ピュータプログラムが格納されている。そして、CPU
は、このプログラムに従って各種処理を行う。
Now, the communication network device 1
Has been described, but each component of the communication network device 1 is conceptually functional and does not necessarily have to be physically configured as illustrated. For example, all or a part of the processing functions of the communication network device 1 may be replaced by a CPU (Central Process
ng Unit) and a program interpreted and executed by the CPU. That is, the ROM (not shown) stores a computer program that gives instructions to the CPU in cooperation with an OS (Operating System) or the like and causes the CPU to perform various processes. And CPU
Performs various processes according to this program.

【0078】また、通信ネットワーク装置1が備える処
理機能のうち全部または一部を、ワイヤードロジックに
よるハードウェアとして実現することも可能である。さ
らに、後述する実施の形態2〜実施の形態6の通信ネッ
トワーク装置の各構成要素,処理機能についても同様
に、CPUやワイヤードロジックによって構成すること
ができる。
Further, all or a part of the processing functions of the communication network device 1 can be realized as hardware by wired logic. Further, each component and processing function of the communication network device according to the second to sixth embodiments described later can be similarly configured by a CPU or a wired logic.

【0079】以上の構成において、実施の形態1の動作
について図4のフローチャートを参照して説明する。図
4は、実施の形態1にかかる検索制御部10の動作の流
れを示すフローチャートである。検索制御部10は、ア
ドレス検索依頼部16からのアドレス情報を分割して分
割アドレス情報を生成する(S1)。そして、n(nは
1〜4の整数であって初期値1)番目のアドレス制御部
が、そのn番目の分割アドレス情報およびn番目のアド
レス制御テーブルを参照する。そして、その分割アドレ
ス情報に対応する位置に格納された検索フラグが「継
続」であるか否かを判定する(S2)。
In the above configuration, the operation of the first embodiment will be described with reference to the flowchart of FIG. FIG. 4 is a flowchart illustrating the flow of the operation of the search control unit 10 according to the first embodiment. The search control unit 10 divides the address information from the address search request unit 16 and generates divided address information (S1). Then, the n-th (n is an integer of 1 to 4 and an initial value of 1) address control unit refers to the n-th divided address information and the n-th address control table. Then, it is determined whether or not the search flag stored at the position corresponding to the divided address information is “continuation” (S2).

【0080】その検索フラグが「継続」である場合は、
その分割アドレス情報に対応する位置に格納されたルー
トフラグが「無効」であるか否かを判定する(S9)。
そのルートフラグが「無効」であれば、nに1を加算し
てステップS1に戻り、そのルートフラグが「無効」で
なければ、そのルートフラグおよびその分割アドレス情
報に対応する位置に格納されたルーチング情報テーブル
ポインタを記憶し(S10)、nに1を加算してステッ
プS1に戻る。なお、ステップS10を行わず、(n+
1)番目の検索フラグが「無効」となった場合に、再び
n番目のアドレス制御テーブルを参照してルートフラグ
およびルーチング情報テーブルポインタを取得するよう
にしてもよい。
If the search flag is “continue”,
It is determined whether or not the route flag stored at the position corresponding to the divided address information is "invalid" (S9).
If the route flag is "invalid", 1 is added to n, and the process returns to step S1. The routing information table pointer is stored (S10), 1 is added to n, and the process returns to step S1. Note that (n +
1) When the first search flag becomes “invalid”, the route flag and the routing information table pointer may be acquired by referring to the n-th address control table again.

【0081】一方、その検索フラグが「継続」でない場
合は、その検索フラグが「無効」であるか否かを判定す
る(S3)。その検索フラグが「無効」でない場合は、
その分割アドレス情報に対応する位置に格納されたルー
トフラグおよびルーチング情報テーブルポインタを参照
してステップS4に進む。一方、その検索フラグが「無
効」である場合は、ステップS10で記憶しておいた
(n−1)番目のルートフラグおよびルーチング情報テ
ーブルポインタを参照して(S11)ステップS4に進
む。ステップS4においては、参照しているルートフラ
グが「廃棄」であるか否かを判定する。参照しているル
ートフラグが「廃棄」であれば、アドレス検索依頼部1
6に「パケットを廃棄する」というルーチング情報を回
答し(S12)、処理を終了する。
On the other hand, if the search flag is not "continue", it is determined whether the search flag is "invalid" (S3). If the search flag is not "disabled,
The process proceeds to step S4 with reference to the route flag and the routing information table pointer stored at the position corresponding to the divided address information. On the other hand, if the search flag is "invalid", the process proceeds to step S4 with reference to the (n-1) th route flag and the routing information table pointer stored in step S10 (S11). In step S4, it is determined whether or not the referenced route flag is "discard". If the referred route flag is “discard”, the address search request unit 1
6 is returned with routing information of "discard the packet" (S12), and the process is terminated.

【0082】一方、参照しているルートフラグが「廃
棄」でない場合は、そのルートフラグが「ルートなし」
であるか否かを判定する(S5)。そのルートフラグが
「ルートなし」であれば、アドレス検索依頼部16に
「パケットのルートがない」ということを回答し(S1
3)、処理を終了する。一方、そのルートフラグが「ル
ートなし」でない場合は、ルーチング情報テーブルD1
5において、参照しているルーチング情報テーブルポイ
ンタが示す位置に格納された有効フラグを参照し(S
6)、その有効フラグが「無効」であるか否かを判定す
る(S7)。
On the other hand, if the referenced route flag is not "discard", the route flag is set to "no route".
Is determined (S5). If the route flag is "no route", the address search request unit 16 is replied that "there is no packet route" (S1).
3), end the process. On the other hand, if the route flag is not “no route”, the routing information table D1
In S5, the validity flag stored at the position indicated by the referencing routing information table pointer is referred to (S5).
6) It is determined whether the valid flag is "invalid" (S7).

【0083】その有効フラグが「無効」である場合は、
ステップS13に進み、その有効フラグが「無効」でな
い場合、すなわち「有効」である場合は、ルーチング情
報テーブルD15において、参照しているルーチング情
報テーブルポインタが示す位置の送信インターフェース
領域D153に格納された送信インターフェース名をア
ドレス検索依頼部16に回答し(S8)、処理を終了す
る。
If the valid flag is "invalid",
Proceeding to step S13, if the validity flag is not "invalid", that is, if it is "valid", the validity flag is stored in the transmission interface area D153 at the position indicated by the referencing routing information table pointer in the routing information table D15. The transmission interface name is answered to the address search request unit 16 (S8), and the process ends.

【0084】つぎに、具体的なIPアドレスを例に挙げ
て説明する。たとえば、送信先のIPアドレスが「0.
128.128.128」であるパケットについてルー
チング情報を検索する場合、アドレス検索依頼部16
は、検索制御部10にアドレス情報を送信してアドレス
検索(ルーチング情報の検索)を要求する。この要求を
受けた検索制御部10では、まず、第1アドレス制御部
11が、最上位の分割アドレス情報「0」を使用し、第
1アドレス制御テーブルD11のポインタAa000で
示される位置に格納されたデータ(検索フラグ等)を参
照する。
Next, a specific IP address will be described as an example. For example, if the destination IP address is "0.
When searching for routing information for a packet that is “128.128.128”, the address search request unit 16
Sends address information to the search control unit 10 and requests address search (search for routing information). In the search control unit 10 receiving this request, first, the first address control unit 11 uses the uppermost divided address information “0” and stores the divided address information at the position indicated by the pointer Aa000 in the first address control table D11. Data (search flag, etc.).

【0085】そして、検索フラグ領域D112に「検索
終了」が設定され、ルーチングポインタ領域D115に
「無効」が設定されているので、ルートフラグ領域D1
13を参照し、ルーチング情報として「廃棄」を得る。
そして、アドレス検索依頼部16に対して「廃棄」を出
力する。すなわち、IPアドレスが「0.128.12
8.128」の場合は、「そのパケットを廃棄する」と
いう処理内容を示すルーチング情報「廃棄」が、検索制
御部10からアドレス検索依頼部16に通知される。こ
の通知を受けたアドレス検索依頼部16は、送信先のI
Pアドレスが「0.128.128.128」であるパ
ケットの廃棄処理を行う。
Since "search end" is set in the search flag area D112 and "invalid" is set in the routing pointer area D115, the root flag area D1 is set.
13, "discard" is obtained as routing information.
Then, “discard” is output to the address search request unit 16. That is, if the IP address is “0.128.12
In the case of "8.128", the search control unit 10 notifies the address search request unit 16 of the routing information "discard" indicating the processing content of "discard the packet". Upon receiving this notification, the address search request unit 16 sends the I
The packet whose P address is “0.128.128.128” is discarded.

【0086】このように、送信先のIPアドレスが
「0.128.128.128」であるパケットにおい
ては、最上位の分割アドレス情報「0」のみを使用して
ルーチング情報の検索処理が行われる。最上位の分割ア
ドレス情報が「0」である他のIPアドレス、すなわ
ち、アドレスマスク「255.0.0.0」,上位分割
アドレス情報「0」に対応するIPアドレス宛のパケッ
トについても同様に、ルーチング情報の検索結果が「廃
棄」となる。そして、それらのパケットは廃棄される。
As described above, in the packet whose transmission destination IP address is "0.128.128.128", the search processing of the routing information is performed using only the uppermost division address information "0". . The same applies to other IP addresses having the highest-order divided address information “0”, that is, packets addressed to the IP address corresponding to the address mask “255.0.0.0” and the upper-order divided address information “0”. , The search result of the routing information is “discarded”. Then, those packets are discarded.

【0087】つぎに、アドレスマスクのロンゲストマッ
チに対応した動作について、ケース1〜ケース4の順で
説明する。なお、以下の説明において、「x1」,「x
2」「x3」は、0〜255の任意の値を示すものとす
る。上位分割アドレス情報「133.141.77.5
9」,アドレスマスク「255.255.255.25
5」に対応するIPアドレス「133.141.77.
59」のルーチング情報検索結果(ルーチング情報の検
索処理の結果)は「送信インターフェースD」となり、
これをケース1とする。同様に、上位分割アドレス情報
「133.141.77.60」,アドレスマスク「2
55.255.255.255」に対応するIPアドレ
ス「133.141.77.60」のルーチング情報検
索結果は「ルートなし」となり、これをケース2とす
る。
Next, the operation corresponding to the longest match of the address mask will be described in the order of case 1 to case 4. In the following description, “x1”, “x
2 ”and“ x3 ”indicate an arbitrary value from 0 to 255. Upper division address information "133.141.77.5"
9 ", address mask" 255.255.255.25 "
5 corresponding to the IP address “133.141.77.
The routing information search result of “59” (result of the routing information search process) is “transmission interface D”,
This is referred to as Case 1. Similarly, the upper division address information “133.141.77.60” and the address mask “2”
The routing information search result of the IP address “133.141.77.60” corresponding to “55.255.255.255” is “no route”.

【0088】上位分割アドレス情報「133.141.
76」,アドレスマスク「255.255.254.
0」に対応するIPアドレス「133.141.76.
x1」、および、ケース1,ケース2以外の(IPアド
レス「133.141.77.59」,「133.14
1.77.60」を除く)IPアドレス「133.14
1.77.x1」のルーチング情報検索結果は「送信イ
ンターフェースC」となり、これをケース3とする。
The upper division address information "133.141.
76 "and the address mask" 255.255.254.
0 "corresponding to the IP address" 133.141.76.
x1 ”and IP addresses other than case 1 and case 2 (IP addresses“ 133.141.77.59 ”,“ 133.14
1.77.60 ") IP address" 133.14 "
1.77. The routing information search result of “x1” is “transmission interface C”.

【0089】上位分割アドレス情報「133.14
1」,アドレスマスク「255.255.0.0」に対
応するIPアドレス「133.141.x2.x1」
(ただし、ケース1〜ケース3のIPアドレス「13
3.141.77.59」,「133.141.77.
60」,「133.141.76.x1」,「133.
141.77.x1」を除く)のルーチング情報検索結
果は「送信インターフェースB」となり、これをケース
4とする。
The upper division address information “133.14”
1 "and an IP address" 133.141.x2.x1 "corresponding to the address mask" 255.255.0.0 "
(However, the IP address "13
3.141.77.59 "," 133.141.77.
60 "," 133.141.76.x1 "," 133.
141.77. The routing information search result (excluding “x1”) is “transmission interface B”, which is referred to as case 4.

【0090】上位分割アドレス情報「133」,アドレ
スマスク「255.0.0.0」に対応する「IPアド
レス133.x3.x2.x1」(ただし、ケース1〜
ケース4のIPアドレス「133.141.77.5
9」,「133.141.77.60」,「133.1
41.76.x1」,「133.141.77.x
1」,「133.141.x1.x2」を除く)のルー
チング情報検索結果は「送信インターフェースA」とな
り、これをケース4とする。
"IP address 133.x3.x2.x1" corresponding to upper division address information "133" and address mask "255.0.0.0" (cases 1 to 3).
In case 4, the IP address “133.141.77.5.
9 "," 133.141.77.60 "," 133.1
41.76. x1 "," 133.141.77.x
1) and “133.141.x1.x2”), the routing information search result is “transmission interface A”.

【0091】(ケース1)IPアドレス「133.14
1.77.59」を宛先とするパケットを処理するケー
ス1においては、まず、アドレス検索依頼部16が、検
索制御部10にアドレス情報を送信してアドレス検索を
要求する。この要求を受けた検索制御部10では、第1
アドレス制御部11が、最上位の分割アドレス情報「1
33」を使用し、第1アドレス制御テーブルD11のポ
インタAa133で示される位置に格納されたデータ
(検索フラグ等)を参照する。そして、検索フラグ領域
D112に「検索継続」が設定されているので、次テー
ブルポインタ領域D114に示されたポインタBa00
0を取得し、ポインタBa000を第2アドレス制御部
12に送る。
(Case 1) IP address “133.14”
In case 1 of processing a packet addressed to "1.7.59.59", first, the address search request unit 16 transmits address information to the search control unit 10 to request an address search. Upon receiving this request, the search control unit 10
The address control unit 11 determines that the uppermost division address information “1”
33, and refers to the data (search flag and the like) stored in the first address control table D11 at the position indicated by the pointer Aa133. Then, since “search continuation” is set in the search flag area D112, the pointer Ba00 indicated in the next table pointer area D114
0, and sends the pointer Ba000 to the second address control unit 12.

【0092】ポインタBa000を受け取った第2アド
レス制御部12は、2番目の分割アドレス情報「14
1」を使用し、第2アドレス制御テーブルD12におい
て、ポインタBa000で示されるブロック内のポイン
タBa141で示される位置に格納されたデータ(検索
フラグ等)を参照する。そして、検索フラグ領域D12
2に「検索継続」が設定されているので、次テーブルポ
インタ領域D124に示されたポインタCa000を取
得し、ポインタCa000を第3アドレス制御部13に
送る。
The second address control unit 12, which has received the pointer Ba000, sets the second divided address information “14”.
Using "1", the second address control table D12 refers to the data (search flag and the like) stored at the position indicated by the pointer Ba141 in the block indicated by the pointer Ba000. Then, the search flag area D12
Since “continuation of search” is set in 2, the pointer Ca000 indicated in the next table pointer area D124 is obtained, and the pointer Ca000 is sent to the third address control unit 13.

【0093】ポインタCa000を受け取った第3アド
レス制御部13は、3番目の分割アドレス情報「77」
を使用し、第3アドレス制御テーブルD13において、
ポインタCa000で示されるブロック内のポインタC
a077で示される位置に格納されたデータ(検索フラ
グ等)を参照する。そして、検索フラグ領域D132に
「検索継続」が設定されているので、次テーブルポイン
タ領域D134に示されたポインタDa000を取得
し、ポインタDa000を第4アドレス制御部14に送
る。
Upon receiving the pointer Ca000, the third address control unit 13 sets the third divided address information "77"
And in the third address control table D13,
Pointer C in the block indicated by pointer Ca000
Reference is made to data (search flag, etc.) stored at the position indicated by a077. Since “search continuation” is set in the search flag area D132, the pointer Da000 indicated in the next table pointer area D134 is obtained, and the pointer Da000 is sent to the fourth address control unit 14.

【0094】ポインタDa000を受け取った第4アド
レス制御部14は、4番目の分割アドレス情報「59」
を使用し、第4アドレス制御テーブルD14において、
ポインタDa000で示されるブロック内のポインタD
a059で示される位置に格納されたデータ(検索フラ
グ等)を参照する。そして、検索フラグ領域D142に
「検索終了」が設定され、ルートフラグ領域D143に
「ブロック」が設定されているので、ルーチングポイン
タ領域D145に示されたルーチング情報テーブルポイ
ンタDを得る。そしてルーチング情報テーブルポインタ
Dをルーチング情報部15に送る。
When the fourth address control unit 14 receives the pointer Da000, the fourth address control unit 14 outputs the fourth divided address information “59”.
And in the fourth address control table D14,
Pointer D in the block indicated by pointer Da000
Reference is made to data (search flag, etc.) stored at the position indicated by a059. Since "search end" is set in the search flag area D142 and "block" is set in the root flag area D143, the routing information table pointer D indicated in the routing pointer area D145 is obtained. Then, the routing information table pointer D is sent to the routing information section 15.

【0095】ルーチング情報テーブルポインタDを受け
取ったルーチング情報部15は、ルーチング情報テーブ
ルD15のルーチング情報テーブルポインタDで示され
る位置に格納されたデータ(有効フラグ等)を参照す
る。そして、有効フラグ領域D152に、送信インター
フェース領域D153が有効であることを示す「有効」
が設定されているので、送信インターフェース領域D1
53に示された送信インターフェース名「D」を得る。
そして送信インターフェース名「D」をアドレス検索依
頼部16に送る。送信インターフェース名「D」を受け
取ったアドレス検索依頼部16は、送信インターフェー
スDからパケットを送信する。
The routing information section 15, which has received the routing information table pointer D, refers to the data (valid flag, etc.) stored in the routing information table D15 at the position indicated by the routing information table pointer D. Then, “valid” indicating that the transmission interface area D153 is valid is set in the valid flag area D152.
Is set, the transmission interface area D1
The transmission interface name “D” shown in 53 is obtained.
Then, the transmission interface name “D” is sent to the address search request unit 16. The address search request unit 16 that has received the transmission interface name “D” transmits a packet from the transmission interface D.

【0096】(ケース2)つぎに、IPアドレス13
3.141.77.60を宛先とするパケットを処理す
るケース2について説明する。ケース2においては、ま
ず、アドレス検索依頼部16が、検索制御部10にアド
レス情報を送信してアドレス検索を要求する。この要求
を受けた検索制御部10では、第1アドレス制御部11
が、最上位の分割アドレス情報「133」を使用し、第
1アドレス制御テーブルD11のポインタAa133で
示される位置に格納されたデータ(検索フラグ等)を参
照する。そして、検索フラグ領域D112に「検索継
続」が設定されているので、次テーブルポインタ領域D
114に示されたポインタBa000を取得し、ポイン
タBa000を第2アドレス制御部12に送る。
(Case 2) Next, the IP address 13
A case 2 for processing a packet addressed to 3.141.77.60 will be described. In Case 2, first, the address search request unit 16 transmits address information to the search control unit 10 and requests an address search. Upon receiving this request, the search control unit 10 sends the first address control unit 11
Uses the highest-order divided address information “133” and refers to data (search flag and the like) stored in the first address control table D11 at the position indicated by the pointer Aa133. Then, since “search continuation” is set in the search flag area D112, the next table pointer area D
The pointer Ba000 indicated by 114 is acquired, and the pointer Ba000 is sent to the second address control unit 12.

【0097】ポインタBa000を受け取った第2アド
レス制御部12は、2番目の分割アドレス情報「14
1」を使用し、第2アドレス制御テーブルD12におい
て、ポインタBa000で示されるブロック内のポイン
タBa141で示される位置に格納されたデータ(検索
フラグ等)を参照する。そして、検索フラグ領域D12
2に「検索継続」が設定されているので、次テーブルポ
インタ領域D124に示されたポインタCa000を取
得し、ポインタCa000を第3アドレス制御部13に
送る。
The second address control unit 12, which has received the pointer Ba000, sets the second divided address information “14”.
Using "1", the second address control table D12 refers to the data (search flag and the like) stored at the position indicated by the pointer Ba141 in the block indicated by the pointer Ba000. Then, the search flag area D12
Since “continuation of search” is set in 2, the pointer Ca000 indicated in the next table pointer area D124 is obtained, and the pointer Ca000 is sent to the third address control unit 13.

【0098】ポインタCa000を受け取った第3アド
レス制御部13は、3番目の分割アドレス情報「77」
を使用し、第3アドレス制御テーブルD13において、
ポインタCa000で示されるブロック内のポインタC
a077で示される位置に格納されたデータ(検索フラ
グ等)を参照する。そして、検索フラグ領域D132に
「検索継続」が設定されているので、次テーブルポイン
タ領域D134に示されたポインタDa000を取得
し、ポインタDa000を第4アドレス制御部14に送
る。
Upon receiving the pointer Ca000, the third address control unit 13 sets the third divided address information "77"
And in the third address control table D13,
Pointer C in the block indicated by pointer Ca000
Reference is made to data (search flag, etc.) stored at the position indicated by a077. Since “search continuation” is set in the search flag area D132, the pointer Da000 indicated in the next table pointer area D134 is obtained, and the pointer Da000 is sent to the fourth address control unit 14.

【0099】ポインタDa000を受け取った第4アド
レス制御部14は、4番目の分割アドレス情報「60」
を使用し、第4アドレス制御テーブルD14において、
ポインタDa000で示されるブロック内のポインタD
a060で示される位置に格納されたデータ(検索フラ
グ等)を参照する。そして、検索フラグ領域D142に
「検索終了」が設定され、ルーチングポインタ領域D1
45に「無効」が設定されているので、ルートフラグ領
域D143の「ルートなし」を取得する。すなわち、I
Pアドレスが「133.141.77.60」の場合
は、送信ルートがないことが検索制御部10からアドレ
ス検索依頼部16に通知される。この通知を受けたアド
レス検索依頼部16は、パケットの送信ルートが存在し
ない場合の処理を行う。
The fourth address control unit 14, which has received the pointer Da000, sets the fourth divided address information "60"
And in the fourth address control table D14,
Pointer D in the block indicated by pointer Da000
Reference is made to data (search flag and the like) stored at the position indicated by a060. Then, "search end" is set in the search flag area D142, and the routing pointer area D1 is set.
Since “invalid” is set in 45, “no route” in the route flag area D143 is acquired. That is, I
When the P address is “133.141.77.60”, the search control unit 10 notifies the address search request unit 16 that there is no transmission route. The address search request unit 16 that has received the notification performs a process when there is no packet transmission route.

【0100】(ケース3)つぎに、IPアドレス「13
3.141.76.x1」を宛先とするパケットを処理
するケース3について説明する。ケース3においては、
まず、アドレス検索依頼部16が、検索制御部10にア
ドレス情報を送信してアドレス検索を要求する。この要
求を受けた検索制御部10では、第1アドレス制御部1
1が、最上位の分割アドレス情報「133」を使用し、
第1アドレス制御テーブルD11のポインタAa133
で示される位置に格納されたデータ(検索フラグ等)を
参照する。そして、検索フラグ領域D112に「検索継
続」が設定されているので、次テーブルポインタ領域D
114に示されたポインタBa000を取得し、ポイン
タBa000を第2アドレス制御部12に送る。
(Case 3) Next, the IP address "13
3.141.76. Case 3 for processing a packet addressed to “x1” will be described. In case 3,
First, the address search request unit 16 transmits address information to the search control unit 10 and requests an address search. Upon receiving this request, the search control unit 10 sets the first address control unit 1
1 uses the highest division address information “133”,
Pointer Aa133 of first address control table D11
Refer to the data (search flag etc.) stored at the position indicated by. Then, since “search continuation” is set in the search flag area D112, the next table pointer area D
The pointer Ba000 indicated by 114 is acquired, and the pointer Ba000 is sent to the second address control unit 12.

【0101】ポインタBa000を受け取った第2アド
レス制御部12は、2番目の分割アドレス情報「14
1」を使用し、第2アドレス制御テーブルD12におい
て、ポインタBa000で示されるブロック内のポイン
タBa141で示される位置に格納されたデータ(検索
フラグ等)を参照する。そして、検索フラグ領域D12
2に「検索継続」が設定されているので、次テーブルポ
インタ領域D124に示されたポインタCa000を取
得し、ポインタCa000を第3アドレス制御部13に
送る。
Upon receiving the pointer Ba000, the second address control unit 12 sets the second divided address information “14”.
Using "1", the second address control table D12 refers to the data (search flag and the like) stored at the position indicated by the pointer Ba141 in the block indicated by the pointer Ba000. Then, the search flag area D12
Since “continuation of search” is set in 2, the pointer Ca000 indicated in the next table pointer area D124 is obtained, and the pointer Ca000 is sent to the third address control unit 13.

【0102】ポインタCa000を受け取った第3アド
レス制御部13は、3番目の分割アドレス情報「76」
を使用し、第3アドレス制御テーブルD13において、
ポインタCa000で示されるブロック内のポインタC
a076で示される位置に格納されたデータ(検索フラ
グ等)を参照する。そして、検索フラグ領域D132に
「検索終了」が設定され、ルートフラグ領域D133に
「ブロック」が設定されているので、ルーチングポイン
タ領域D135に示されたルーチング情報テーブルポイ
ンタCを得る。そしてルーチング情報テーブルポインタ
Cをルーチング情報部15に送る。
Upon receiving the pointer Ca000, the third address control unit 13 sets the third divided address information "76"
And in the third address control table D13,
Pointer C in the block indicated by pointer Ca000
Reference is made to data (search flag and the like) stored at the position indicated by a076. Then, since "search end" is set in the search flag area D132 and "block" is set in the root flag area D133, the routing information table pointer C indicated in the routing pointer area D135 is obtained. Then, the routing information table pointer C is sent to the routing information section 15.

【0103】ルーチング情報テーブルポインタCを受け
取ったルーチング情報部15は、ルーチング情報テーブ
ルD15のルーチング情報テーブルポインタCで示され
る位置に格納されたデータ(有効フラグ等)を参照す
る。そして、有効フラグ領域D152に「有効」が設定
されているので、送信インターフェース領域D153に
示された送信インターフェース名「C」を得る。そして
送信インターフェース名「C」をアドレス検索依頼部1
6に送る。送信インターフェース名「C」を受け取った
アドレス検索依頼部16は、送信インターフェースCか
らパケットを送信する。
The routing information section 15, which has received the routing information table pointer C, refers to the data (valid flag, etc.) stored in the routing information table D15 at the position indicated by the routing information table pointer C. Then, since “valid” is set in the valid flag area D152, the transmission interface name “C” indicated in the transmission interface area D153 is obtained. Then, the transmission interface name “C” is entered in the address search request unit 1.
Send to 6. The address search request unit 16 that has received the transmission interface name “C” transmits a packet from the transmission interface C.

【0104】また、IPアドレス「133.141.7
7.x1」(ただし、IPアドレス「133.141.
77.59」,「133.141.77.60」を除
く)を宛先とするパケットを処理する場合は、まず、ア
ドレス検索依頼部16が、検索制御部10にアドレス情
報を送信してアドレス検索を要求する。この要求を受け
た検索制御部10では、第1アドレス制御部11が、最
上位の分割アドレス情報「133」を使用し、第1アド
レス制御テーブルD11のポインタAa133で示され
る位置に格納されたデータ(検索フラグ等)を参照す
る。そして、検索フラグ領域D112に「検索継続」が
設定されているので、次テーブルポインタ領域D114
に示されたポインタBa000を取得し、ポインタBa
000を第2アドレス制御部12に送る。
The IP address “133.141.7”
7. x1 ”(however, the IP address“ 133.141.
77.59 "and" 133.141.77.60 "), the address search request unit 16 first sends the address information to the search control unit 10 to perform the address search. Request. In the search control unit 10 receiving this request, the first address control unit 11 uses the highest-order divided address information “133” and stores the data stored at the position indicated by the pointer Aa 133 in the first address control table D11. (Search flag, etc.). Since “continue search” is set in the search flag area D112, the next table pointer area D114
And obtains the pointer Ba000 indicated by
000 to the second address control unit 12.

【0105】ポインタBa000を受け取った第2アド
レス制御部12は、2番目の分割アドレス情報「14
1」を使用し、第2アドレス制御テーブルD12におい
て、ポインタBa000で示されるブロック内のポイン
タBa141で示される位置に格納されたデータ(検索
フラグ等)を参照する。そして、検索フラグ領域D12
2に「検索継続」が設定されているので、次テーブルポ
インタ領域D124に示されたポインタCa000を取
得し、ポインタCa000を第3アドレス制御部13に
送る。
The second address control unit 12, which has received the pointer Ba000, sets the second divided address information “14”.
Using "1", the second address control table D12 refers to the data (search flag and the like) stored at the position indicated by the pointer Ba141 in the block indicated by the pointer Ba000. Then, the search flag area D12
Since “continuation of search” is set in 2, the pointer Ca000 indicated in the next table pointer area D124 is obtained, and the pointer Ca000 is sent to the third address control unit 13.

【0106】ポインタCa000を受け取った第3アド
レス制御部13は、3番目の分割アドレス情報「77」
を使用し、第3アドレス制御テーブルD13において、
ポインタCa000で示されるブロック内のポインタC
a077で示される位置に格納されたデータ(検索フラ
グ等)を参照する。そして、検索フラグ領域D132に
「検索継続」が設定されているので、次テーブルポイン
タ領域D134に示されたポインタDa000を取得
し、ポインタDa000を第4アドレス制御部14に送
る。
Upon receiving the pointer Ca000, the third address control unit 13 sets the third divided address information “77”
And in the third address control table D13,
Pointer C in the block indicated by pointer Ca000
Reference is made to data (search flag, etc.) stored at the position indicated by a077. Since “search continuation” is set in the search flag area D132, the pointer Da000 indicated in the next table pointer area D134 is obtained, and the pointer Da000 is sent to the fourth address control unit 14.

【0107】ポインタDa000を受け取った第4アド
レス制御部14は、4番目の分割アドレス情報「x1」
(ただし、分割アドレス情報「59」,「60」を除
く)を使用し、第4アドレス制御テーブルD14におい
て、ポインタDa000で示されるブロック内の分割ア
ドレス情報「x1」に対応する位置に格納されたデータ
(検索フラグ等)を参照する。
When the fourth address control unit 14 receives the pointer Da000, the fourth address control unit 14 sets the fourth divided address information “x1”
(However, except for the divided address information “59” and “60”), and stored in the fourth address control table D14 at a position corresponding to the divided address information “x1” in the block indicated by the pointer Da000. Refer to data (search flag etc.).

【0108】そして、検索フラグ領域D142に「無
効」が設定されているので、上位の第3アドレス制御テ
ーブルD13のポインタCa077で示される位置のル
ートフラグ領域D133およびルーチングポインタ領域
D135を参照する。そして、ルートフラグ領域D13
3に「ブロック」が設定されているので、ルーチングポ
インタ領域D135に示されたルーチング情報テーブル
ポインタCを得る。そしてルーチング情報テーブルポイ
ンタCをルーチング情報部15に送る。
Since "invalid" is set in the search flag area D142, the root flag area D133 and the routing pointer area D135 at the position indicated by the pointer Ca077 in the upper third address control table D13 are referred to. Then, the route flag area D13
Since “block” is set in 3, the routing information table pointer C indicated in the routing pointer area D 135 is obtained. Then, the routing information table pointer C is sent to the routing information section 15.

【0109】ルーチング情報テーブルポインタCを受け
取ったルーチング情報部15は、ルーチング情報テーブ
ルD15のルーチング情報テーブルポインタCで示され
る位置に格納されたデータ(有効フラグ等)を参照す
る。そして、有効フラグ領域D152に「有効」が設定
されているので、送信インターフェース領域D153に
示された送信インターフェース名「C」を得る。そして
送信インターフェース名「C」をアドレス検索依頼部1
6に送る。送信インターフェース名「C」を受け取った
アドレス検索依頼部16は、送信インターフェースCか
らパケットを送信する。
Upon receiving the routing information table pointer C, the routing information section 15 refers to the data (valid flag, etc.) stored in the routing information table D15 at the position indicated by the routing information table pointer C. Then, since “valid” is set in the valid flag area D152, the transmission interface name “C” indicated in the transmission interface area D153 is obtained. Then, the transmission interface name “C” is entered in the address search request unit 1.
Send to 6. The address search request unit 16 that has received the transmission interface name “C” transmits a packet from the transmission interface C.

【0110】このように、第3アドレス制御テーブルD
13のポインタCa077のルートフラグ領域D133
に「ブロック」を設定するので、上位分割アドレス情報
「133.141.77」を包含する他の上位分割アド
レス情報(上位分割アドレス情報に下位のビットを加え
て生成される他の上位分割アドレス情報、たとえば、
「133.141.77.10」)を追加して設定する
場合にも、追加するビット(たとえば「10」)に対応
する部分のみを変更するだけでよく、既に設定されてい
る上位分割アドレス情報に対応する部分に影響を与える
ことがない。他のアドレス制御テーブルについても「ブ
ロック」を設定することにより、同様の効果が得られ
る。
As described above, the third address control table D
Route flag area D133 for thirteen pointer Ca077
Is set to “block”, other upper division address information including upper division address information “133.141.77” (other upper division address information generated by adding lower bits to the upper division address information) For example,
When "133.141.77.10" is additionally set, only the portion corresponding to the bit to be added (for example, "10") needs to be changed, and the already set upper division address information is set. There is no effect on the part corresponding to. Similar effects can be obtained by setting "blocks" for other address control tables.

【0111】(ケース4)つぎに、IPアドレス「13
3.141.x2.x1」(ただし、IPアドレス「1
33.141.77.x1」,「133.141.7
6.x1」を除く)を宛先とするパケットを処理するケ
ース4について説明する。ケース4においては、まず、
アドレス検索依頼部16が、検索制御部10にアドレス
情報を送信してアドレス検索を要求する。この要求を受
けた検索制御部10では、第1アドレス制御部11が、
最上位の分割アドレス情報「133」を使用し、第1ア
ドレス制御テーブルD11のポインタAa133で示さ
れる位置に格納されたデータ(検索フラグ等)を参照す
る。そして、検索フラグ領域D112に「検索継続」が
設定されているので、次テーブルポインタ領域D114
に示されたポインタBa000を取得し、ポインタBa
000を第2アドレス制御部12に送る。
(Case 4) Next, the IP address "13
3.141. x2. x1 ”(however, the IP address“ 1
33.141.77. x1 "," 133.141.7 "
6. A case 4 for processing a packet addressed to the destination (excluding “x1”) will be described. In case 4, first,
The address search request unit 16 transmits address information to the search control unit 10 and requests an address search. In the search control unit 10 receiving this request, the first address control unit 11
Using the uppermost division address information “133”, the data (search flag and the like) stored at the position indicated by the pointer Aa133 in the first address control table D11 is referred to. Since “continue search” is set in the search flag area D112, the next table pointer area D114
And obtains the pointer Ba000 indicated by
000 to the second address control unit 12.

【0112】ポインタBa000を受け取った第2アド
レス制御部12は、2番目の分割アドレス情報「14
1」を使用し、第2アドレス制御テーブルD12におい
て、ポインタBa000で示されるブロック内のポイン
タBa141で示される位置に格納されたデータ(検索
フラグ等)を参照する。そして、検索フラグ領域D12
2に「検索継続」が設定されているので、次テーブルポ
インタ領域D124に示されたポインタCa000を取
得し、ポインタCa000を第3アドレス制御部13に
送る。
The second address control unit 12, which has received the pointer Ba000, sets the second divided address information “14”.
Using "1", the second address control table D12 refers to the data (search flag and the like) stored at the position indicated by the pointer Ba141 in the block indicated by the pointer Ba000. Then, the search flag area D12
Since “continuation of search” is set in 2, the pointer Ca000 indicated in the next table pointer area D124 is obtained, and the pointer Ca000 is sent to the third address control unit 13.

【0113】ポインタCa000を受け取った第3アド
レス制御部13は、3番目の分割アドレス情報「x2」
(ただし、分割アドレス情報「76」,「77」を除
く)を使用し、第3アドレス制御テーブルD13におい
て、ポインタCa000で示されるブロック内の分割ア
ドレス情報「x2」に対応する位置に格納されたデータ
(検索フラグ等)を参照する。
Upon receiving the pointer Ca000, the third address control unit 13 sets the third divided address information “x2”
(However, except for the divided address information “76” and “77”), and stored in the third address control table D13 at a position corresponding to the divided address information “x2” in the block indicated by the pointer Ca000. Refer to data (search flag etc.).

【0114】そして、検索フラグ領域D132に「無
効」が設定されているので、上位の第2アドレス制御テ
ーブルD12のポインタBa141で示される位置のル
ートフラグ領域D123およびルーチングポインタ領域
D125を参照する。そして、ルートフラグ領域D12
3に「ブロック」が設定されているので、ルーチングポ
インタ領域D125に示されたルーチング情報テーブル
ポインタBを得る。そしてルーチング情報テーブルポイ
ンタBをルーチング情報部15に送る。
Since "invalid" is set in the search flag area D132, the root flag area D123 and the routing pointer area D125 at the position indicated by the pointer Ba141 in the upper second address control table D12 are referred to. Then, the route flag area D12
Since "block" is set in 3, the routing information table pointer B shown in the routing pointer area D125 is obtained. Then, the routing information table pointer B is sent to the routing information section 15.

【0115】ルーチング情報テーブルポインタBを受け
取ったルーチング情報部15は、ルーチング情報テーブ
ルD15のルーチング情報テーブルポインタBで示され
る位置に格納されたデータ(有効フラグ等)を参照す
る。そして、有効フラグ領域D152に「有効」が設定
されているので、送信インターフェース領域D153に
示された送信インターフェース名「B」を得る。そして
送信インターフェース名「B」をアドレス検索依頼部1
6に送る。送信インターフェース名「B」を受け取った
アドレス検索依頼部16は、送信インターフェースBか
らパケットを送信する。
Upon receiving the routing information table pointer B, the routing information section 15 refers to the data (valid flag, etc.) stored in the routing information table D15 at the position indicated by the routing information table pointer B. Then, since “valid” is set in the valid flag area D152, the transmission interface name “B” indicated in the transmission interface area D153 is obtained. Then, the transmission interface name “B” is entered in the address search request unit 1.
Send to 6. The address search request unit 16 that has received the transmission interface name “B” transmits a packet from the transmission interface B.

【0116】(ケース5)つぎに、IPアドレス「13
3.x3.x2.x1」(ただし、IPアドレス「13
3.141.x2.x1」を除く)を宛先とするパケッ
トを処理するケース5について説明する。ケース5にお
いては、まず、アドレス検索依頼部16が、検索制御部
10にアドレス情報を送信してアドレス検索を要求す
る。この要求を受けた検索制御部10では、第1アドレ
ス制御部11が、最上位の分割アドレス情報「133」
を使用し、第1アドレス制御テーブルD11のポインタ
Aa133で示される位置に格納されたデータ(検索フ
ラグ等)を参照する。そして、検索フラグ領域D112
に「検索継続」が設定されているので、次テーブルポイ
ンタ領域D114に示されたポインタBa000を取得
し、ポインタBa000を第2アドレス制御部12に送
る。
(Case 5) Next, the IP address "13
3. x3. x2. x1 ”(however, the IP address“ 13
3.141. x2. A case 5 for processing a packet addressed to the destination (excluding “x1”) will be described. In Case 5, first, the address search request unit 16 transmits address information to the search control unit 10 and requests an address search. In the search control unit 10 receiving this request, the first address control unit 11 sets the highest-order division address information “133”.
And refers to data (search flag and the like) stored in the first address control table D11 at the position indicated by the pointer Aa133. Then, the search flag area D112
Is set to “search continuation”, the pointer Ba000 indicated in the next table pointer area D114 is obtained, and the pointer Ba000 is sent to the second address control unit 12.

【0117】ポインタBa000を受け取った第2アド
レス制御部12は、2番目の分割アドレス情報「x3」
(ただし、分割アドレス情報「141」を除く)を使用
し、第3アドレス制御テーブルD13において、ポイン
タBa000で示されるブロック内の分割アドレス情報
「x3」に対応する位置に格納されたデータ(検索フラ
グ等)を参照する。
Upon receiving the pointer Ba000, the second address control unit 12 sets the second divided address information “x3”
(Except for the division address information “141”), and the data (search flag Etc.).

【0118】そして、検索フラグ領域D122に「無
効」が設定されているので、上位の第1アドレス制御テ
ーブルD11のポインタAa133で示される位置のル
ートフラグ領域D113およびルーチングポインタ領域
D115を参照する。そして、ルートフラグ領域D11
3に「デフォルト」が設定されているので、デフォルト
の検索処理の実行をルーチング情報部15に要求する。
Since "invalid" is set in the search flag area D122, the root flag area D113 and the routing pointer area D115 at the position indicated by the pointer Aa133 in the upper first address control table D11 are referred to. Then, the route flag area D11
Since “default” has been set to No. 3, the routing information unit 15 is requested to execute a default search process.

【0119】この要求を受け取ったルーチング情報部1
5は、デフォルトの位置に格納されたデータ(有効フラ
グ等)を参照する。そして、有効フラグ領域D152に
「有効」が設定されているので、送信インターフェース
領域D153に示された送信インターフェース名「A」
を得る。そして送信インターフェース名「A」をアドレ
ス検索依頼部16に送る。送信インターフェース名
「A」を受け取ったアドレス検索依頼部16は、送信イ
ンターフェースAからパケットを送信する。
Routing information part 1 receiving this request
Reference numeral 5 refers to data (valid flag, etc.) stored in a default position. Since “valid” is set in the valid flag area D152, the transmission interface name “A” indicated in the transmission interface area D153 is set.
Get. Then, the transmission interface name “A” is sent to the address search request unit 16. The address search request unit 16 that has received the transmission interface name “A” transmits a packet from the transmission interface A.

【0120】前述したように、実施の形態1によれば、
アドレス制御テーブルの検索フラグおよびルートフラグ
により、アドレス検索におけるアドレスマスクのロンゲ
ストマッチ処理を制御しているので、分割アドレス情報
に値が等しい場合、すなわち包含関係にある上位分割ア
ドレス情報と対のアドレスマスクを複数設定する必要が
ある場合においても、アドレスマスクに対応したアドレ
ス制御テーブルだけの設定を行えばよく、ルート情報の
追加設定や削除、または変更された場合においても、ア
ドレス制御テーブルの更新負荷を低く抑えるとともに、
処理時間を短縮する効果がある。
As described above, according to the first embodiment,
Since the longest match processing of the address mask in the address search is controlled by the search flag and the route flag of the address control table, when the value is equal to the divided address information, that is, the address of the pair with the upper divided address information having an inclusive relation. Even when it is necessary to set a plurality of masks, only the address control table corresponding to the address mask needs to be set. Even if the route information is additionally set, deleted, or changed, the update load of the address control table is changed. While keeping
This has the effect of reducing the processing time.

【0121】また、前述した実施の形態1では、アドレ
ス制御部内に、アドレス制御テーブルを格納するが、ア
ドレス制御テーブルの格納方法としては様々な形態をと
ることができ、たとえば、通常のダイナミックRAMを
使用すれば多くのアドレス制御テーブルを高速に参照で
きるため、多くのエントリ(上位分割アドレス情報と対
のアドレスマスクの組)を登録でき、かつ高速な検索を
行うことができる効果がある。また、前述した実施の形
態1では、IPアドレスを用いたルーチング情報検索を
例に挙げたが、アドレス長が異なる他のアドレスであっ
てもよく、アドレス制御部の個数もアドレスの分割数に
合わせて変更してもよく、このような場合も、同様な構
成において同様な処理を行うことができ、同様な効果を
得ることができる。
In the first embodiment described above, the address control table is stored in the address control unit. However, the address control table can be stored in various forms. If used, many address control tables can be referred to at high speed, so that many entries (a set of upper division address information and a pair of address masks) can be registered, and a high-speed search can be performed. In the first embodiment described above, the routing information search using the IP address is described as an example. However, other addresses having different address lengths may be used. In such a case, similar processing can be performed with a similar configuration, and similar effects can be obtained.

【0122】さらに、アドレス以外の他の情報をルーチ
ング情報検索に用いてもよく、アドレスと他の情報とを
組み合わせてルーチング情報検索に用いてもよい。たと
えば、IPアドレスとトラヒック制御用の1バイトの情
報とを合わせた5バイトの情報をアドレス情報として使
用し、このアドレス情報を1バイトごとに5つの分割ア
ドレス情報に分割してルーチング情報検索を行ってもよ
い。このような場合も、同様な構成において同様な処理
を行うことができ、同様な効果を得ることができる。
Further, information other than the address may be used for the routing information search, or the address and other information may be combined and used for the routing information search. For example, 5-byte information, which is a combination of an IP address and 1-byte information for traffic control, is used as address information, and this address information is divided into five pieces of divided address information for each byte to perform routing information search. You may. Also in such a case, similar processing can be performed in a similar configuration, and similar effects can be obtained.

【0123】実施の形態2.この発明の実施の形態2
は、前述した実施の形態1において、アドレス制御部を
一つにまとめ、各階層のアドレス制御テーブルを格納す
るアドレス制御テーブル格納部を、アドレス制御部と独
立に設けたものである。図5は、この発明の実施の形態
2にかかる通信ネットワーク装置2の概略構成を示す図
である。なお、基本的な構成は実施の形態1と同様につ
き、同一の部分については図1と同一の符号を付してそ
の説明を省略し、ここでは異なる部分についてのみ説明
する。
Embodiment 2 Embodiment 2 of the present invention
In the first embodiment described above, the address control units are combined into one, and an address control table storage unit for storing the address control tables of the respective layers is provided independently of the address control unit. FIG. 5 is a diagram illustrating a schematic configuration of the communication network device 2 according to the second embodiment of the present invention. The basic configuration is the same as that of the first embodiment, and the same portions are denoted by the same reference numerals as in FIG. 1 and the description thereof is omitted, and only different portions will be described here.

【0124】通信ネットワーク装置2は、実施の形態1
の第1アドレス制御部11〜第4アドレス制御部14に
代えて、第1アドレス制御部11〜第4アドレス制御部
14の機能をまとめたアドレス制御部25と、第1アド
レス制御テーブルD11を格納する第1アドレス制御テ
ーブル格納部21と、第2アドレス制御テーブルD12
を格納する第2アドレス制御テーブル格納部22と、第
3アドレス制御テーブルD13を格納する第3アドレス
制御テーブル格納部23と、第4アドレス制御テーブル
D14を格納する第4アドレス制御テーブル格納部24
と有する検索制御部20を備えている。
The communication network apparatus 2 according to the first embodiment
Instead of the first address control unit 11 to the fourth address control unit 14, an address control unit 25 in which the functions of the first address control unit 11 to the fourth address control unit 14 are combined and a first address control table D11 are stored. A first address control table storage unit 21 for storing
, A third address control table storage 23 for storing the third address control table D13, and a fourth address control table storage 24 for storing the fourth address control table D14.
Is provided.

【0125】第1アドレス制御テーブル格納部21〜第
4アドレス制御テーブル格納部24は、アドレス制御部
25とは独立に設けられている。アドレス制御部25
は、第1アドレス制御テーブル格納部21〜第4アドレ
ス制御テーブル格納部24に格納された第1アドレス制
御テーブルD11〜第4アドレス制御テーブルD14を
参照し、実施の形態1の第1アドレス制御部11〜第4
アドレス制御部14と同様の機能を実現する。実施の形
態2の動作については、実施の形態1と同様につき、そ
の説明を省略する。
The first to fourth address control table storage units 21 to 24 are provided independently of the address control unit 25. Address control unit 25
Refers to the first to fourth address control tables D11 to D14 stored in the first to fourth address control table storage units 21 to 24, and refers to the first address control unit of the first embodiment. 11th to 4th
A function similar to that of the address control unit 14 is realized. The operation of the second embodiment is the same as that of the first embodiment, and the description is omitted.

【0126】前述したように、実施の形態2によれば、
一つのアドレス制御部25が、各階層の分割アドレス情
報に対応したアドレス制御テーブル格納部からそれぞれ
のアドレス制御テーブルを読み出して、全階層の分割ア
ドレス情報の処理を集中的に行うので、アドレス制御部
の回路を削減でき、ルーチング情報の検索処理のための
回路規模を縮小することができる。また、前述した実施
の形態2では、各階層の分割アドレス情報に対応してそ
れぞれアドレス制御テーブル格納部を設けたが、アドレ
ス制御テーブル格納部を一つとし、アドレス制御部25
が、参照中の分割アドレス情報に対応したアドレス制御
テーブルを読み出すようにしてもよい。
As described above, according to the second embodiment,
One address control unit 25 reads out each address control table from the address control table storage unit corresponding to the divided address information of each layer, and intensively processes the divided address information of all layers. Can be reduced, and the circuit scale for the routing information search processing can be reduced. In the above-described second embodiment, the address control table storage units are provided corresponding to the divided address information of each hierarchy.
However, the address control table corresponding to the divided address information being referred to may be read.

【0127】実施の形態3.この発明の実施の形態3
は、前述した実施の形態1または実施の形態2におい
て、上位分割アドレス情報,アドレスマスクならびにル
ーチング情報もしくはルーチング情報へのポインタを含
む限定アドレス制御テーブルを用いてルーチング情報検
索を行う限定アドレス制御部を設けたものである。図6
は、この発明の実施の形態3にかかる通信ネットワーク
装置3の概略構成を示す図である。なお、基本的な構成
は実施の形態1,実施の形態2と同様につき、図1と同
一の部分については同一の符号を付してその説明を省略
し、ここでは異なる部分についてのみ説明する。
Embodiment 3 Embodiment 3 of the present invention
In the first or second embodiment described above, the limited address control unit that performs the routing information search using the limited address control table including the upper division address information, the address mask, and the routing information or the pointer to the routing information is described. It is provided. FIG.
FIG. 4 is a diagram showing a schematic configuration of a communication network device 3 according to a third embodiment of the present invention. The basic configuration is the same as in the first and second embodiments. The same parts as those in FIG. 1 are denoted by the same reference numerals, and the description thereof will be omitted. Only different parts will be described here.

【0128】通信ネットワーク装置3は、分割アドレス
情報の各階層に対して共通に設けられた限定アドレス制
御部36を備えている。また、実施の形態1の第1アド
レス制御部11〜第3アドレス制御部13およびルーチ
ング情報部15に代えて、第1アドレス制御部11と同
様の機能を有するとともに、限定アドレス制御部36の
限定アドレス制御テーブルへのポインタを設定すること
ができる最上位のアドレス制御テーブルを有する第1ア
ドレス制御部31と、第2アドレス制御部12と同様の
機能を有するとともに、限定アドレス制御部36の限定
アドレス制御テーブルへのポインタを設定することがで
きる2番目のアドレス制御テーブルを有する第2アドレ
ス制御部32と、第3アドレス制御部13と同様の機能
を有するとともに、限定アドレス制御部36の限定アド
レス制御テーブルへのポインタを設定することができる
3番目のアドレス制御テーブルを有する第3アドレス制
御部33と、これらのアドレス制御テーブルから参照さ
れるルーチング情報テーブルを有するルーチング情報部
35とを備えた検索制御部30を備えている。
The communication network device 3 includes a limited address control unit 36 provided commonly to each layer of the divided address information. Further, instead of the first address control unit 11 to the third address control unit 13 and the routing information unit 15 of the first embodiment, the first address control unit 11 has the same function as the first address control unit 11, and the limited address control unit 36 The first address control unit 31 having the highest-order address control table capable of setting a pointer to the address control table, and the same functions as the second address control unit 12 and the limited address of the limited address control unit 36 A second address control unit 32 having a second address control table capable of setting a pointer to a control table, and having the same function as the third address control unit 13 and a limited address control unit 36 A third address control table that can set a pointer to the table It includes an address control unit 33, a retrieval control unit 30 that includes a routing information portion 35 having a routing information table is referred to by these address control table.

【0129】第1アドレス制御部31〜第3アドレス制
御部33は、アドレス制御テーブルに設定された限定ア
ドレス制御テーブルへのポインタを限定アドレス制御部
36に出力する。このポインタを受信した限定アドレス
制御部36は、限定アドレス制御テーブルを用いたルー
チング情報検索処理を行う。図7は、実施の形態3にか
かる第1アドレス制御テーブルD31〜第3アドレス制
御テーブルD33の構成を示す図である。第1アドレス
制御テーブルD31は、最上位のアドレス制御テーブル
であって、実施の形態1の第1アドレス制御テーブルD
11の検索フラグ領域D112に代えて、「無効」,
「検索終了」,「検索継続」または「限定」のいずれか
の検索フラグが設定される検索フラグ領域D312を含
んでいる。ここで、検索フラグが「限定」である場合
は、限定アドレス制御テーブルを参照することを示す。
The first to third address control units 31 to 33 output a pointer to the limited address control table set in the address control table to the limited address control unit 36. The limited address control unit 36 receiving the pointer performs a routing information search process using the limited address control table. FIG. 7 is a diagram illustrating a configuration of the first to third address control tables D31 to D33 according to the third embodiment. The first address control table D31 is an uppermost address control table, and is the first address control table D of the first embodiment.
11 instead of the 11 search flag area D112,
It includes a search flag area D312 in which any one of the search flags “search end”, “continue search”, and “limit” is set. Here, when the search flag is “limited”, it indicates that the limited address control table is to be referred to.

【0130】また、第1アドレス制御テーブルD31
は、実施の形態1の第1アドレス制御テーブルD11の
ルートフラグ領域D113,次テーブルポインタ領域D
114,ルーチングポインタ領域D115に代えて、こ
れらと同様のルートフラグ領域D313,次テーブルポ
インタ領域D314,ルーチングポインタ領域D315
を含んでいる。ルートフラグ領域D313,次テーブル
ポインタ領域D314,ルーチングポインタ領域D31
5には、実施の形態1の第1アドレス制御テーブルD1
1のルートフラグ領域D113,次テーブルポインタ領
域D114,ルーチングポインタ領域D115とそれぞ
れ同様の設定がなされる。ただし、検索フラグ領域D3
12に「限定」が設定されている場合、この検索フラグ
領域D312に対応する次テーブルポインタ領域D31
4には、限定アドレス制御テーブルの所定のブロックの
位置を示すポインタが設定される。
The first address control table D31
Are the root flag area D113 and the next table pointer area D in the first address control table D11 of the first embodiment.
Instead of the routing pointer area D114, the root flag area D313, the next table pointer area D314, the routing pointer area D315,
Contains. Root flag area D313, next table pointer area D314, routing pointer area D31
5 includes the first address control table D1 of the first embodiment.
The same settings are made for the root flag area D113, the next table pointer area D114, and the routing pointer area D115 of No. 1. However, the search flag area D3
12 is set to “limit”, the next table pointer area D31 corresponding to the search flag area D312
4, a pointer indicating the position of a predetermined block in the limited address control table is set.

【0131】第2アドレス制御テーブルD32,第3ア
ドレス制御テーブルD33も同様に、実施の形態1の第
2アドレス制御テーブルD12,第3制御テーブルD1
3と同様の構成であり、ルートフラグ領域D123,次
テーブルポインタ領域D124,ルーチングポインタ領
域D125,ルートフラグ領域D133,次テーブルポ
インタ領域D134,ルーチングポインタ領域D135
に代えて、これらと同様のルートフラグ領域D323,
次テーブルポインタ領域D324,ルーチングポインタ
領域D325,ルートフラグ領域D333,次テーブル
ポインタ領域D334,ルーチングポインタ領域D33
5を含んでいる。
Similarly, the second address control table D32 and the third address control table D33 of the first embodiment are also used for the second address control table D32 and the third address control table D33.
3 has the same configuration as that of the route flag region D123, the next table pointer region D124, the routing pointer region D125, the route flag region D133, the next table pointer region D134, and the routing pointer region D135.
In place of these, the same route flag area D323,
Next table pointer area D324, routing pointer area D325, root flag area D333, next table pointer area D334, routing pointer area D33
5 is included.

【0132】また、検索フラグ領域D122,D132
に代えて、「無効」,「検索終了」,「検索継続」また
は「限定」のいずれかの検索フラグが設定される検索フ
ラグ領域D322,D332を含んでいる。検索フラグ
領域D322,D332に「限定」が設定されている場
合、これらの検索フラグ領域D322,D332に対応
する次テーブルポインタ領域D324,D334には、
限定アドレス制御テーブルの所定のブロックの位置を示
すポインタが設定される。
The search flag areas D122 and D132
, A search flag area D322 or D332 in which any one of the search flags of “invalid”, “end of search”, “continuation of search”, and “limitation” is set. When “limit” is set in the search flag areas D322 and D332, the next table pointer areas D324 and D334 corresponding to the search flag areas D322 and D332 include:
A pointer indicating the position of a predetermined block in the limited address control table is set.

【0133】図8は、実施の形態3にかかる限定アドレ
ス制御テーブルD34の構成を示す図である。限定アド
レス制御テーブルD34はブロックごとに構成され、1
ブロックには最大4つの上位分割アドレス情報に対応す
るデータが格納される。これらのブロックは、アドレス
制御テーブルに設定される「限定」の数だけ設けられ
る。すなわち、限定アドレス制御部36は、1アドレス
の1回の検索処理で最大4つのエントリについての検索
を行う。なお、1ブロックの上位分割アドレス情報の数
は特に限定されず、いくつであってもよい。
FIG. 8 is a diagram showing the configuration of the limited address control table D34 according to the third embodiment. The limited address control table D34 is configured for each block,
Data corresponding to up to four upper division address information is stored in the block. These blocks are provided by the number of “limits” set in the address control table. That is, the limited address control unit 36 searches up to four entries in one search process for one address. The number of upper division address information of one block is not particularly limited, and may be any number.

【0134】限定アドレス制御テーブルD34は、各上
位分割アドレス情報を格納する上位分割アドレス情報領
域D343と、アドレスマスクを格納するアドレスマス
ク領域D344と、ルーチング情報テーブルポインタを
格納するルーチングポインタ領域D345と、アドレス
制御テーブルと同様のルートフラグが設定されるルート
フラグ領域D346と、有効な情報か否かを示すエント
リフラグを格納するエントリフラグ領域D342とを含
んでいる。各領域のデータは、各上位分割アドレス情報
に対応して設定される。
The limited address control table D34 includes an upper division address information area D343 for storing each upper division address information, an address mask area D344 for storing an address mask, and a routing pointer area D345 for storing a routing information table pointer. It includes a route flag area D346 in which a route flag similar to that in the address control table is set, and an entry flag area D342 storing an entry flag indicating whether the information is valid information. The data of each area is set in accordance with each upper division address information.

【0135】図9は、実施の形態3にかかるルーチング
情報テーブルD35の構成を示す図である。ルーチング
情報テーブルD35は、実施の形態1のルーチング情報
テーブルD15と同様の構成であって、実施の形態1の
有効フラグ領域D152,送信インターフェース領域D
153に代えて、同様の有効フラグ領域D352,送信
インターフェース領域D353を含んでいる。有効フラ
グ領域D352,送信インターフェース領域D353
は、実施の形態1の有効フラグ領域D152,送信イン
ターフェース領域D153と同様のものであり、各アド
レス制御テーブルおよび限定アドレス制御テーブルD3
4に設定されるルーチング情報テーブルポインタを用い
て参照される。
FIG. 9 is a diagram showing a configuration of the routing information table D35 according to the third embodiment. The routing information table D35 has the same configuration as the routing information table D15 of the first embodiment, and has a valid flag area D152 and a transmission interface area D of the first embodiment.
In place of 153, a similar valid flag area D352 and a transmission interface area D353 are included. Valid flag area D352, transmission interface area D353
Are the same as the valid flag area D152 and the transmission interface area D153 of the first embodiment, and each address control table and limited address control table D3
It is referenced using the routing information table pointer set to "4".

【0136】以上の構成において、実施の形態3の動作
について図10のフローチャートを参照して説明する。
図10は、実施の形態3にかかる検索制御部30の動作
の流れを示すフローチャートである。なお、基本的な動
作は実施の形態1,実施の形態2と同様につき、図4と
同一の部分については同一の符号を付してその説明を省
略し、ここでは異なる部分についてのみ説明する。
In the above configuration, the operation of the third embodiment will be described with reference to the flowchart of FIG.
FIG. 10 is a flowchart illustrating the flow of the operation of the search control unit 30 according to the third embodiment. The basic operation is the same as in the first and second embodiments, and the same parts as those in FIG. 4 are denoted by the same reference numerals and the description thereof will be omitted, and only different parts will be described here.

【0137】検索制御部30の動作においては、ステッ
プS1の処理のあと、参照している分割アドレス情報に
対応する位置に格納された検索フラグが「継続」である
か否かを判定する(S31)。その検索フラグが「継
続」でない場合はステップS2に進み、その検索フラグ
が「継続」である場合は、その分割アドレス情報に対応
する位置に格納されたポインタで示される限定アドレス
制御テーブルD34の所定のブロックを参照する(S3
2)。そして、参照しているアドレス情報に対応する上
位分割アドレス情報がそのブロックに設定されているか
否かを判定する(S33)。具体的には、アドレスマス
クとアドレス情報との論理積を算出し、算出したものと
上位分割アドレス情報(上位分割アドレス情報がアドレ
ス情報よりも短い場合は、下位に0を付加して同じ長さ
にしたもの)との比較を行う。
In the operation of the search control section 30, after the processing of step S1, it is determined whether or not the search flag stored at the position corresponding to the divided address information referred to is "continue" (S31). ). If the search flag is not “continue”, the process proceeds to step S2, and if the search flag is “continue”, the predetermined address of the limited address control table D34 indicated by the pointer stored at the position corresponding to the divided address information (S3)
2). Then, it is determined whether or not the upper division address information corresponding to the referenced address information is set in the block (S33). Specifically, the logical product of the address mask and the address information is calculated, and the calculated product is added to the upper division address information (if the upper division address information is shorter than the address information, 0 is added to the lower part and the same length is added) The comparison is made with the above.

【0138】参照しているアドレス情報に対応する上位
分割アドレス情報がそのブロックに設定されている場合
は、その上位分割アドレス情報に対応するルートフラグ
を参照し、ステップS4に進む。ここで、参照している
アドレス情報に対応する上位分割アドレス情報は、アド
レスマスクのロンゲストマッチによって決定される。す
なわち、参照しているアドレス情報にアドレスマスクを
掛けたものが複数の上位分割アドレス情報に対応する場
合は、最も長い上位分割アドレス情報を選択する。一
方、参照しているアドレス情報に対応する上位分割アド
レス情報がそのブロックに設定されていない場合は、n
番目のアドレス制御テーブルに戻り、参照している分割
アドレス情報に対応する位置に格納されたルートフラグ
を参照し(S34)、ステップS4に進む。
If upper block address information corresponding to the referenced address information is set in the block, the process proceeds to step S4 by referring to the route flag corresponding to the upper block address information. Here, the upper division address information corresponding to the referred address information is determined by the longest match of the address mask. That is, if the address information multiplied by the address mask corresponds to a plurality of upper division address information, the longest upper division address information is selected. On the other hand, if the upper division address information corresponding to the address information being referred to is not set in the block, n
Returning to the address control table, referring to the route flag stored at the position corresponding to the divided address information being referred to (S34), and proceeding to step S4.

【0139】つぎに、具体的なIPアドレスを例に挙げ
て説明する。ここでは、実施の形態1で説明したケース
1〜ケース5に加えて、ケース6〜ケース9の例を示
す。上位分割アドレス情報「134.200.128.
80」,アドレスマスク「255.255.255.2
55」に対応するIPアドレス「134.200.12
8.80」のルーチング情報検索結果は「送信インター
フェースE」となり、これをケース6とする。上位分割
アドレス情報「134.200.128.81」,アド
レスマスク「255.255.255.255」に対応
するIPアドレス「134.200.128.81」の
ルーチング情報検索結果は「送信インターフェースF」
となり、これをケース7とする。
Next, a specific IP address will be described as an example. Here, examples of Cases 6 to 9 are shown in addition to Cases 1 to 5 described in Embodiment 1. Upper division address information "134.200.128.
80 "and the address mask" 255.255.255.2 "
IP address “134.200.12” corresponding to “55”
The routing information search result of “8.80” is “transmission interface E”. The routing information search result of the IP address “134.200.128.81” corresponding to the upper division address information “134.200.128.81” and the address mask “255.255.255.255” is “transmission interface F”.
This is referred to as Case 7.

【0140】上位分割アドレス情報「134.200.
100.82」,アドレスマスク「255.255.2
55.255」に対応するIPアドレス「134.20
0.128.82」のルーチング情報検索結果は「送信
インターフェースG」となり、これをケース8とする。
上位分割アドレス情報「134.200」,アドレスマ
スク「255.255.0.0」に対応するIPアドレ
ス「134.200.x2.x1」(ただし、IPアド
レス「134.200.128.80」,「134.2
00.128.81」,「134.200.128.8
2」を除く)のルーチング情報検索結果は「送信インタ
ーフェースH」となり、これをケース9とする。
The upper division address information "134.200.
100.82 "and address mask" 255.255.2 "
IP address “134.20” corresponding to “55.255”
The routing information search result of “0.128.82” is “transmission interface G”.
The IP address “134.200.x2.x1” corresponding to the upper division address information “134.200” and the address mask “255.255.0.0” (however, the IP address “134.200.128.80”, "134.2
00.128.81 "," 134.200.128.8 "
The routing information search result (except for “2”) is “transmission interface H”.

【0141】また、第1アドレス制御テーブルD31で
は、ポインタAa133,Aa134で示される位置以
外の全ての位置において、検索フラグ領域D312に
「検索終了」が設定され、ルートフラグD313に「廃
棄」が設定され、次テーブルポインタ領域D314に
「無効」が設定され、ルーチングポインタ領域D315
に「無効」が設定されていることとする。また、第2ア
ドレス制御テーブルD32では、ポインタBa141で
示される位置以外の全ての位置において、検索フラグ領
域D322,ルートフラグ領域D323,次テーブルポ
インタ領域D324,ルーチングポインタ領域D325
にそれぞれ「無効」が設定されていることとする。
In the first address control table D31, "search end" is set in the search flag area D312 and "discard" is set in the root flag D313 at all positions other than the positions indicated by the pointers Aa133 and Aa134. Then, "invalid" is set in the next table pointer area D314, and the routing pointer area D315 is set.
Is set to “invalid”. In the second address control table D32, the search flag area D322, the root flag area D323, the next table pointer area D324, and the routing pointer area D325 are located at all positions other than the position indicated by the pointer Ba141.
Is set to “invalid”.

【0142】また、第3アドレス制御テーブルD33で
は、ポインタCa076,Ca077で示される位置以
外の全ての位置において、検索フラグ領域D332,ル
ートフラグ領域D333,次テーブルポインタ領域D3
34,ルーチングポインタ領域D335にそれぞれ「無
効」が設定されていることとする。また、図示しない4
番目の第4アドレス制御テーブルでは、全ての領域にお
いて「無効」が設定されていることとする。
In the third address control table D33, the search flag area D332, the root flag area D333, and the next table pointer area D3 are set at all positions other than the positions indicated by the pointers Ca076 and Ca077.
34, it is assumed that "invalid" is set in the routing pointer area D335. 4 (not shown)
In the fourth address control table, “invalid” is set in all areas.

【0143】(ケース1,ケース2)IPアドレス「1
33.141.77.59」,IPアドレス「133.
141.77.60」を宛先とするパケットの処理を行
うケース1,ケース2においては、まず、アドレス検索
依頼部16が、検索制御部30にアドレス情報を送信し
てアドレス検索を要求する。この要求を受けた検索制御
部30では、第1アドレス制御部31が、最上位の分割
アドレス情報「133」を使用し、第1アドレス制御テ
ーブルD31のポインタAa133で示される位置に格
納されたデータ(検索フラグ等)を参照する。そして、
検索フラグ領域D312に「検索継続」が設定されてい
るので、次テーブルポインタ領域D314に示されたポ
インタBa000を取得し、ポインタBa000を第2
アドレス制御部32に送る。
(Case 1, Case 2) IP address “1
33.141.77.59 "and the IP address" 133.
In the case 1 and the case 2 in which the processing of the packet having the destination of “141.77.60” is performed, first, the address search request unit 16 transmits the address information to the search control unit 30 to request the address search. In the search control unit 30 receiving this request, the first address control unit 31 uses the uppermost divided address information “133” and stores the data stored at the position indicated by the pointer Aa 133 in the first address control table D31. (Search flag, etc.). And
Since “search continuation” is set in the search flag area D312, the pointer Ba000 indicated in the next table pointer area D314 is acquired, and the pointer Ba000 is set to the second
The address is sent to the address control unit 32.

【0144】ポインタBa000を受け取った第2アド
レス制御部32は、2番目の分割アドレス情報「14
1」を使用し、第2アドレス制御テーブルD32におい
て、ポインタBa000で示されるブロック内のポイン
タBa141で示される位置に位置に格納されたデータ
(検索フラグ等)を参照する。そして、検索フラグ領域
D322に「検索継続」が設定されているので、その位
置の次テーブルポインタ領域D324に示されたポイン
タCa000を取得し、ポインタCa000を第3アド
レス制御部33に送る。
The second address control unit 32, having received the pointer Ba000, sets the second divided address information “14”.
Using "1", the second address control table D32 refers to the data (search flag and the like) stored at the position indicated by the pointer Ba141 in the block indicated by the pointer Ba000. Since “search continuation” is set in the search flag area D322, the pointer Ca000 indicated in the next table pointer area D324 at that position is acquired, and the pointer Ca000 is sent to the third address control unit 33.

【0145】ポインタCa000を受け取った第3アド
レス制御部33は、3番目の分割アドレス情報「77」
を使用し、第3アドレス制御テーブルD33において、
ポインタCa000で示されるブロック内のポインタC
a077で示される位置に位置に格納されたデータ(検
索フラグ等)を参照する。そして、検索フラグ領域D3
32に「限定」が設定されているので、次テーブルポイ
ンタ領域D334に示されたポインタKa0を取得し、
ポインタKa0を限定アドレス制御部36に送る。
The third address control unit 33, having received the pointer Ca000, sets the third divided address information "77"
And in the third address control table D33,
Pointer C in the block indicated by pointer Ca000
Reference is made to data (search flag, etc.) stored at the position indicated by a077. Then, the search flag area D3
Since “limitation” is set to 32, the pointer Ka0 indicated in the next table pointer area D334 is obtained,
The pointer Ka0 is sent to the limited address control unit 36.

【0146】ポインタKa0を受け取った限定アドレス
制御部36は、ポインタKa0で示されるブロック(ポ
インタKa0〜ポインタKa3で示される位置)を参照
する。そして、エントリフラグが「有効」であるポイン
タKa0およびポインタKa1で示される位置の上位分
割アドレス情報領域D343に格納された上位分割アド
レス情報およびアドレスマスク領域D344に格納され
たアドレスマスクを使用し、アドレス情報にこれらのア
ドレスマスクを掛けてこれらの上位分割アドレス情報と
一致するか否かを判定する。
The limited address control unit 36 having received the pointer Ka0 refers to the block indicated by the pointer Ka0 (the position indicated by the pointers Ka0 to Ka3). Then, using the upper division address information stored in the upper division address information area D343 and the address mask stored in the address mask area D344 at the positions indicated by the pointers Ka0 and Ka1 whose entry flags are "valid", The information is multiplied by these address masks, and it is determined whether or not the information matches the upper division address information.

【0147】IPアドレスが「133.141.77.
59」の場合、このアドレス情報にポインタKa0で示
される位置のアドレスマスク領域D344のアドレスマ
スク「255.255.255.255」を掛けた結果
が、その位置の上位分割アドレス情報領域D343の上
位分割アドレス情報「133.141.77.59」と
一致するので、その位置のルートフラグ領域D346の
ルートフラグを参照する。そして、そのルートフラグが
「ブロック」であるので、ルーチングポインタ領域D3
45に示されたルーチング情報テーブルポインタDを取
得し、ルーチング情報テーブルポインタDをルーチング
情報部35に送る。
When the IP address is "133.141.77.
In the case of "59", the result of multiplying this address information by the address mask "255.255.255.255" of the address mask area D344 at the position indicated by the pointer Ka0 is the upper division of the upper division address information area D343 at that position. Since the address information matches the address information "133.141.77.59", the route flag in the route flag area D346 at that position is referred to. Since the root flag is "block", the routing pointer area D3
The routing information table pointer D indicated by 45 is obtained, and the routing information table pointer D is sent to the routing information section 35.

【0148】ルーチング情報テーブルポインタDを受け
取ったルーチング情報部35は、ルーチング情報テーブ
ルD35のルーチング情報テーブルポインタDで示され
る位置に格納されたデータ(有効フラグ等)を参照す
る。そして、有効フラグ領域D352に、送信インター
フェース領域D353が有効であることを示す「有効」
が設定されているので、送信インターフェース領域D3
53に示された送信インターフェース名「D」を取得
し、送信インターフェース名「D」をアドレス検索依頼
部16に送る。送信インターフェース名「D」を受け取
ったアドレス検索依頼部16は、送信インターフェース
Dからパケットを送信する。
The routing information section 35 having received the routing information table pointer D refers to the data (valid flag, etc.) stored in the routing information table D35 at the position indicated by the routing information table pointer D. Then, “valid” indicating that the transmission interface area D353 is valid is set in the valid flag area D352.
Is set, the transmission interface area D3
The transmission interface name “D” indicated by 53 is acquired, and the transmission interface name “D” is sent to the address search request unit 16. The address search request unit 16 that has received the transmission interface name “D” transmits a packet from the transmission interface D.

【0149】一方、IPアドレスが「133.141.
77.60」の場合、このアドレス情報にポインタKa
1で示される位置のアドレスマスク領域D344のアド
レスマスク「255.255.255.255」を掛け
た結果が、その位置の上位分割アドレス情報領域D34
3の上位分割アドレス情報「133.141.77.6
0」と一致するので、その位置のルートフラグ領域D3
46のルートフラグを参照する。そして、そのルートフ
ラグが「ルートなし」であるので、アドレス検索依頼部
16にルートがないことを通知する。この通知を受けた
アドレス検索依頼部16は、パケットの送信ルートが存
在しない場合の処理を行う。
On the other hand, if the IP address is "133.141.
77.60 ", the pointer Ka is added to this address information.
1 is multiplied by the address mask “255.255.255.255” of the address mask area D344 at the position indicated by “1”.
3 upper division address information “133.141.77.6”
0 ”, the root flag area D3 at that position
Reference is made to 46 route flags. Since the route flag is "no route", the address search request unit 16 is notified that there is no route. The address search request unit 16 that has received the notification performs a process when there is no packet transmission route.

【0150】(ケース3)つぎに、IPアドレス「13
3.141.76.x1」を宛先とするパケットを処理
するケース3について説明する。ケース3においては、
まず、アドレス検索依頼部16が、検索制御部30にア
ドレス情報を送信してアドレス検索を要求する。この要
求を受けた検索制御部30では、第1アドレス制御部3
1が、最上位の分割アドレス情報「133」を使用し、
第1アドレス制御テーブルD31のポインタAa133
で示される位置に格納されたデータ(検索フラグ等)を
参照する。そして、検索フラグ領域D312に「検索継
続」が設定されているので、次テーブルポインタ領域D
314に示されたポインタBa000を取得し、ポイン
タBa000を第2アドレス制御部32に送る。
(Case 3) Next, the IP address “13”
3.141.76. Case 3 for processing a packet addressed to “x1” will be described. In case 3,
First, the address search request unit 16 transmits address information to the search control unit 30 and requests an address search. Upon receiving the request, the search control unit 30 sets the first address control unit 3
1 uses the highest division address information “133”,
Pointer Aa133 of first address control table D31
Refer to the data (search flag etc.) stored at the position indicated by. Then, since “search continuation” is set in the search flag area D312, the next table pointer area D
The pointer Ba000 indicated by 314 is acquired, and the pointer Ba000 is sent to the second address control unit 32.

【0151】ポインタBa000を受け取った第2アド
レス制御部32は、2番目の分割アドレス情報「14
1」を使用し、第2アドレス制御テーブルD32におい
て、ポインタBa000で示されるブロック内のポイン
タBa141で示される位置に格納されたデータ(検索
フラグ等)を参照する。そして、検索フラグ領域D32
2に「検索継続」が設定されているので、次テーブルポ
インタ領域D324に示されたポインタCa000を取
得し、ポインタCa000を第3アドレス制御部33に
送る。
The second address control unit 32, having received the pointer Ba000, sets the second divided address information “14”.
Using "1", the data (search flag or the like) stored at the position indicated by the pointer Ba141 in the block indicated by the pointer Ba000 is referred to in the second address control table D32. Then, the search flag area D32
Since “continuation of search” is set to 2, the pointer Ca000 indicated in the next table pointer area D324 is obtained, and the pointer Ca000 is sent to the third address control unit 33.

【0152】ポインタCa000を受け取った第3アド
レス制御部33は、3番目の分割アドレス情報「76」
を使用し、第3アドレス制御テーブルD33において、
ポインタCa000で示されるブロック内のポインタC
a076で示される位置に格納されたデータ(検索フラ
グ等)を参照する。そして、検索フラグ領域D332に
「検索終了」が設定され、ルートフラグ領域D333に
「ブロック」が設定されているので、ルーチングポイン
タ領域D335に示されたルーチング情報テーブルポイ
ンタCを取得し、ルーチング情報テーブルポインタCを
ルーチング情報部35に送る。
The third address control unit 33, having received the pointer Ca000, sets the third divided address information “76”.
And in the third address control table D33,
Pointer C in the block indicated by pointer Ca000
Reference is made to data (search flag and the like) stored at the position indicated by a076. Since "search end" is set in the search flag area D332 and "block" is set in the root flag area D333, the routing information table pointer C indicated in the routing pointer area D335 is acquired, and the routing information table is obtained. The pointer C is sent to the routing information section 35.

【0153】ルーチング情報テーブルポインタCを受け
取ったルーチング情報部35は、ルーチング情報テーブ
ルD35のルーチング情報テーブルポインタCで示され
る位置に格納されたデータ(有効フラグ等)を参照す
る。そして、有効フラグ領域D352に「有効」が設定
されているので、送信インターフェース領域D353に
示された送信インターフェース名「C」を取得し、送信
インターフェース名「C」をアドレス検索依頼部16に
送る。送信インターフェース名「C」を受け取ったアド
レス検索依頼部16は、送信インターフェースCからパ
ケットを送信する。
Upon receiving the routing information table pointer C, the routing information section 35 refers to the data (valid flag, etc.) stored in the routing information table D35 at the position indicated by the routing information table pointer C. Since “valid” is set in the valid flag area D352, the transmission interface name “C” indicated in the transmission interface area D353 is acquired, and the transmission interface name “C” is sent to the address search request unit 16. The address search request unit 16 that has received the transmission interface name “C” transmits a packet from the transmission interface C.

【0154】また、IPアドレス「133.141.7
7.x1」(ただし、IPアドレス「133.141.
77.59」,「133.141.77.60」を除
く)を宛先とするパケットを処理する場合は、まず、ア
ドレス検索依頼部16が、検索制御部30にアドレス情
報を送信してアドレス検索を要求する。この要求を受け
た検索制御部30では、第1アドレス制御部31が、最
上位の分割アドレス情報「133」を使用し、第1アド
レス制御テーブルD31のポインタAa133で示され
る位置に格納されたデータ(検索フラグ等)を参照す
る。そして、検索フラグ領域D112に「検索継続」が
設定されているので、次テーブルポインタ領域D314
に示されたポインタBa000を取得し、ポインタBa
000を第2アドレス制御部32に送る。
The IP address "133.141.7"
7. x1 ”(however, the IP address“ 133.141.
77.59 "and" 133.141.77.60 "), the address search request unit 16 first sends the address information to the search control unit 30 to perform the address search. Request. In the search control unit 30 receiving this request, the first address control unit 31 uses the uppermost divided address information “133” and stores the data stored at the position indicated by the pointer Aa 133 in the first address control table D31. (Search flag, etc.). Since “continue search” is set in the search flag area D112, the next table pointer area D314
And obtains the pointer Ba000 indicated by
000 to the second address control unit 32.

【0155】ポインタBa000を受け取った第2アド
レス制御部32は、2番目の分割アドレス情報「14
1」を使用し、第2アドレス制御テーブルD32におい
て、ポインタBa000で示されるブロック内のポイン
タBa141で示される位置に格納されたデータ(検索
フラグ等)を参照する。そして、検索フラグ領域D32
2に「検索継続」が設定されているので、次テーブルポ
インタ領域D324に示されたポインタCa000を取
得し、ポインタCa000を第3アドレス制御部33に
送る。
Upon receiving the pointer Ba000, the second address control unit 32 sets the second divided address information “14”.
Using "1", the data (search flag or the like) stored at the position indicated by the pointer Ba141 in the block indicated by the pointer Ba000 is referred to in the second address control table D32. Then, the search flag area D32
Since “continuation of search” is set to 2, the pointer Ca000 indicated in the next table pointer area D324 is obtained, and the pointer Ca000 is sent to the third address control unit 33.

【0156】ポインタCa000を受け取った第3アド
レス制御部33は、3番目の分割アドレス情報「77」
を使用し、第3アドレス制御テーブルD33において、
ポインタCa000で示されるブロック内のポインタC
a077で示される位置に格納されたデータ(検索フラ
グ等)を参照する。そして、検索フラグ領域D332に
「限定」が設定されているので、次テーブルポインタ領
域D334に示されたポインタKa0を取得し、ポイン
タKa0を限定アドレス制御部36に送る。
The third address control unit 33, having received the pointer Ca000, sets the third divided address information “77”.
And in the third address control table D33,
Pointer C in the block indicated by pointer Ca000
Reference is made to data (search flag, etc.) stored at the position indicated by a077. Since “limit” is set in the search flag area D332, the pointer Ka0 indicated in the next table pointer area D334 is obtained, and the pointer Ka0 is sent to the limited address control unit 36.

【0157】ポインタKa0を受け取った限定アドレス
制御部36は、ポインタKa0で示されるブロック(ポ
インタKa0〜ポインタKa3で示される位置)を参照
する。そして、エントリフラグが「有効」であるポイン
タKa0およびポインタKa1で示される位置の上位分
割アドレス情報領域D343に格納された上位分割アド
レス情報およびアドレスマスク領域D344に格納され
たアドレスマスクを使用し、アドレス情報にこれらのア
ドレスマスクを掛けてこれらの上位分割アドレス情報と
一致するか否かを判定する。
The limited address control unit 36 having received the pointer Ka0 refers to the block indicated by the pointer Ka0 (the position indicated by the pointers Ka0 to Ka3). Then, using the upper division address information stored in the upper division address information area D343 and the address mask stored in the address mask area D344 at the positions indicated by the pointers Ka0 and Ka1 whose entry flags are "valid", The information is multiplied by these address masks, and it is determined whether or not the information matches the upper division address information.

【0158】IPアドレス「133.141.77.x
1」(ただし、IPアドレス「133.141.77.
59」,「133.141.77.60」を除く)の場
合、対応する限定アドレス情報が設定されていないの
で、第3アドレス制御テーブルD33に戻り、ポインタ
Ca077で示される位置のルートフラグ領域D333
およびルーチングポインタ領域D335を参照する。そ
して、ルートフラグ領域D333に「ブロック」が設定
されているので、ルーチングポインタ領域D335に示
されたルーチング情報テーブルポインタCを取得し、ル
ーチング情報テーブルポインタCをルーチング情報部3
5に送る。
The IP address “133.141.77.x”
1 "(however, the IP address" 133.141.77.
59 "and" 133.141.77.60 "), since the corresponding limited address information is not set, the process returns to the third address control table D33, and the root flag area D333 at the position indicated by the pointer Ca077.
And the routing pointer area D335. Since "block" is set in the root flag area D333, the routing information table pointer C indicated in the routing pointer area D335 is obtained, and the routing information table pointer C is stored in the routing information section 3.
Send to 5.

【0159】ルーチング情報テーブルポインタCを受け
取ったルーチング情報部35は、ルーチング情報テーブ
ルD35のルーチング情報テーブルポインタCで示され
る位置に格納されたデータ(有効フラグ等)を参照す
る。そして、有効フラグ領域D352に「有効」が設定
されているので、送信インターフェース領域D353に
示された送信インターフェース名「C」を取得し、送信
インターフェース名「C」をアドレス検索依頼部16に
送る。送信インターフェース名「C」を受け取ったアド
レス検索依頼部16は、送信インターフェースCからパ
ケットを送信する。
Upon receiving the routing information table pointer C, the routing information section 35 refers to the data (valid flag, etc.) stored in the routing information table D35 at the position indicated by the routing information table pointer C. Since “valid” is set in the valid flag area D352, the transmission interface name “C” indicated in the transmission interface area D353 is acquired, and the transmission interface name “C” is sent to the address search request unit 16. The address search request unit 16 that has received the transmission interface name “C” transmits a packet from the transmission interface C.

【0160】このように、実施の形態1,実施の形態2
と同様に、第3アドレス制御テーブルD33のポインタ
Ca077のルートフラグ領域D333に「ブロック」
を設定するので、上位分割アドレス情報「133.14
1.77」を包含する他の上位分割アドレス情報(一の
上位分割アドレス情報に下位のビットを加えて生成され
る他の上位分割アドレス情報、たとえば、「133.1
41.77.10」)を追加して設定する場合にも、追
加するビット(たとえば「10」)に対応する部分のみ
を変更するだけでよく、既に設定されている上位分割ア
ドレス情報に対応する部分に影響を与えることがない。
他のアドレス制御テーブルについても「ブロック」を設
定することにより、同様の効果が得られる。
As described above, Embodiments 1 and 2
Similarly, the “block” is stored in the root flag area D333 of the pointer Ca077 of the third address control table D33.
Is set, the upper division address information “133.14” is set.
1.77 other upper division address information (other upper division address information generated by adding lower bits to one upper division address information, for example, "133.1"
41.77.10 "), only the portion corresponding to the bit to be added (for example," 10 ") needs to be changed, and it corresponds to the already set upper division address information. Does not affect parts.
Similar effects can be obtained by setting "blocks" for other address control tables.

【0161】(ケース6〜ケース9)ケース4,ケース
5については実施の形態1,実施の形態2と同様である
のでその説明を省略し、つぎにケース6〜ケース9につ
いて説明する。IPアドレス「134.200.12
8.80」,「134.200.128.81」,「1
34.200.128.82」,「134.200.x
2.x1」を宛先とするパケットの処理においては、ま
ず、アドレス検索依頼部16が、検索制御部30にアド
レス情報を送信してアドレス検索を要求する。
(Cases 6 to 9) Cases 4 and 5 are the same as those in the first and second embodiments, and a description thereof will be omitted. Next, cases 6 to 9 will be described. IP address "134.200.12
8.80 "," 134.200.128.81 "," 1
34.200.128.82 "," 134.200.x
2. In the processing of a packet addressed to “x1”, first, the address search request unit 16 transmits address information to the search control unit 30 and requests an address search.

【0162】この要求を受けた検索制御部30では、第
1アドレス制御部31が、最上位の分割アドレス情報
「134」を使用し、第1アドレス制御テーブルD31
のポインタAa134で示される位置に格納されたデー
タ(検索フラグ等)を参照する。そして、検索フラグ領
域D312に「限定」が設定されているので、次テーブ
ルポインタ領域D314に示されたポインタKb0を取
得し、ポインタKb0を限定アドレス制御テーブル34
に送る。
In the search control unit 30 receiving this request, the first address control unit 31 uses the uppermost divided address information "134" and uses the first address control table D31.
(A search flag or the like) stored at the position indicated by the pointer Aa134 of FIG. Since "limit" is set in the search flag area D312, the pointer Kb0 indicated in the next table pointer area D314 is acquired, and the pointer Kb0 is set to the limited address control table 34.
Send to

【0163】ポインタKb0を受け取った限定アドレス
制御部36は、ポインタKb0で示されるブロック(ポ
インタKb0〜ポインタKb3で示される位置)を参照
する。そして、エントリフラグが「有効」であるポイン
タKb0〜ポインタKb3で示される位置の上位分割ア
ドレス情報領域D343に格納された上位分割アドレス
情報およびアドレスマスク領域D344に格納されたア
ドレスマスクを使用し、アドレス情報にこれらのアドレ
スマスクを掛けてこれらの上位分割アドレス情報と一致
するか否かを判定する。
The limited address control unit 36 which has received the pointer Kb0 refers to the block indicated by the pointer Kb0 (the position indicated by the pointers Kb0 to Kb3). Then, using the upper division address information stored in the upper division address information area D343 and the address mask stored in the address mask area D344 at the position indicated by the pointers Kb0 to Kb3 whose entry flags are “valid”, The information is multiplied by these address masks, and it is determined whether or not the information matches the upper division address information.

【0164】IPアドレスが「134.200.12
8.80」の場合、このアドレス情報にポインタKb0
で示される位置のアドレスマスク領域D344のアドレ
スマスク「255.255.255.255」を掛けた
結果が、その位置の上位分割アドレス情報領域D343
の上位分割アドレス情報「134.200.128.8
0」と一致する。また、ポインタKb3で示される位置
のアドレスマスク領域D344のアドレスマスク「25
5.255.0.0」を掛けた結果が、その位置の上位
分割アドレス情報領域D343の上位分割アドレス情報
「134.200」と一致する。
When the IP address is "134.200.12"
In the case of “8.80”, the pointer Kb0 is added to this address information.
The result obtained by multiplying the address mask area D344 at the position indicated by マ ス ク by the address mask “255.255.255.255” is the upper division address information area D343 at that position.
Upper division address information “134.200.128.8”
0 ". Further, the address mask “25” of the address mask area D344 at the position indicated by the pointer Kb3
The result obtained by multiplying “5.255.0.0” matches the higher-order address information “134.200” in the upper-order address information area D343 at that position.

【0165】このように、アドレス情報にアドレスマス
クを掛けた結果が複数の上位分割アドレス情報に一致す
る場合、限定アドレス制御部36は、アドレスマスクの
ロンゲストマッチに従って、マスクされていない部分が
長い方を選択する。この場合は、上位分割アドレス情報
「134.200.128.80」を選択する。そし
て、上位分割アドレス情報「134.200.128.
80」に対応するルートフラグを参照し、そのルートフ
ラグが「ブロック」であるので、ルーチングポインタ領
域D345に示されたルーチング情報テーブルポインタ
Eを取得し、ルーチング情報テーブルポインタEをルー
チング情報部35に送る。
As described above, when the result of multiplying the address information by the address mask matches a plurality of upper division address information, the limited address control unit 36 makes the unmasked portion longer according to the longest match of the address mask. Choose one. In this case, the upper division address information “134.200.128.80” is selected. Then, the upper division address information “134.200.128.
80, and the root flag is “block”. Therefore, the routing information table pointer E indicated in the routing pointer area D345 is obtained, and the routing information table pointer E is stored in the routing information section 35. send.

【0166】ルーチング情報テーブルポインタEを受け
取ったルーチング情報部35は、ルーチング情報テーブ
ルD35のルーチング情報テーブルポインタEで示され
る位置に格納されたデータ(有効フラグ等)を参照す
る。そして、有効フラグ領域D352に、送信インター
フェース領域D353が有効であることを示す「有効」
が設定されているので、送信インターフェース領域D3
53に示された送信インターフェース名「E」を取得
し、送信インターフェース名「E」をアドレス検索依頼
部16に送る。送信インターフェース名「E」を受け取
ったアドレス検索依頼部16は、送信インターフェース
Eからパケットを送信する。
Upon receiving the routing information table pointer E, the routing information section 35 refers to the data (valid flag, etc.) stored in the routing information table D35 at the position indicated by the routing information table pointer E. Then, “valid” indicating that the transmission interface area D353 is valid is set in the valid flag area D352.
Is set, the transmission interface area D3
The transmission interface name “E” indicated by 53 is acquired, and the transmission interface name “E” is sent to the address search request unit 16. The address search request unit 16 that has received the transmission interface name “E” transmits a packet from the transmission interface E.

【0167】また、IPアドレスが「134.200.
128.81」の場合も同様の処理が行われ、送信イン
ターフェースFからパケットが送信される。また、IP
アドレスが「134.200.128.82」の場合も
同様の処理が行われるが、ルーチング情報部35が参照
する(ルーチング情報テーブルポインタGで示される位
置の)ルーチング情報テーブルD35の有効フラグが
「無効」であるので、ルーチング情報部35は、アドレ
ス検索依頼部16に対してルートがないことを回答す
る。
When the IP address is "134.200.
128.81 ", the same processing is performed, and the packet is transmitted from the transmission interface F. Also, IP
The same processing is performed when the address is “134.200.128.82”, but the validity flag of the routing information table D35 (at the position indicated by the routing information table pointer G) referred to by the routing information unit 35 is set to “ Since it is “invalid”, the routing information unit 35 replies to the address search request unit 16 that there is no route.

【0168】また、IPアドレス「134.200.x
2.x1」(IPアドレス「134.200.128.
80」,「134.200.128.81」,「13
4.200.128.82」を除く)の場合も同様の処
理が行われるが、対応する上位分割アドレス情報が「1
34.200」一つであるので、アドレスマスクのロン
ゲストマッチの処理は行われず、送信インターフェース
Hからパケットが送信される。
The IP address “134.200.x”
2. x1 ”(IP address“ 134.200.128.
80 "," 134.200.128.81 "," 13
4.200.128.82 ”), the same processing is performed, but the corresponding upper-level divided address information is“ 1 ”.
34.200 ", the longest match processing of the address mask is not performed, and the packet is transmitted from the transmission interface H.

【0169】前述したように、実施の形態3によれば、
限定アドレス制御部36で限定アドレス制御テーブルD
34により、アドレス検索におけるアドレスマスクのロ
ンゲストマッチ処理を制御しているので、多数のエント
リを登録する必要があり、該登録するエントリの上位分
割アドレス情報とアドレスマスクが多様な組み合わせを
とる場合であっても、各アドレス制御テーブルのための
記憶容量をそれぞれ小さく抑えるという効果がある。
As described above, according to the third embodiment,
Limited address control table D in limited address control unit 36
Since the longest match processing of the address mask in the address search is controlled by the N.34, it is necessary to register a large number of entries, and when the upper division address information and the address mask of the entry to be registered take various combinations. Even if there is, there is an effect that the storage capacity for each address control table is kept small.

【0170】また、ルーチング情報テーブルD35にお
いて、格納している情報の有効、または無効が示される
ので、一時的に検索結果として得られる送信インターフ
ェースD353に示される情報が使用不能になった場合
においても、各アドレス制御テーブルおよび限定アドレ
ス制御テーブルD34を更新することなく、ルーチング
情報テーブルD35の有効フラグ領域D352を更新す
るのみで、ルートなしの処理が実施でき、テーブル更新
の負荷を小さく抑えるという効果がある。
Further, since the routing information table D35 indicates the validity or invalidity of the stored information, even if the information indicated by the transmission interface D353 obtained as a retrieval result becomes unavailable temporarily. Therefore, without updating each address control table and the limited address control table D34, only by updating the valid flag area D352 of the routing information table D35, it is possible to perform a process without a route and to reduce the load of updating the table. is there.

【0171】また、前述した実施の形態3では、限定ア
ドレス制御部36内に、限定アドレス制御テーブルD3
4を格納するが、限定アドレス制御テーブルD34の格
納方法としては様々な形態をとることができる。たとえ
ば、通常のダイナミックRAMを使用すれば、限定アド
レス制御テーブルD34を高速に参照できるため、限定
アドレス制御部36の1回の検索するエントリ数を多く
することが可能であり、多くのエントリを少ない記憶容
量で、かつ高速な検索を行うことができるという効果が
ある。
In the above-described third embodiment, the limited address control table D3 is provided in the limited address control unit 36.
4, but various methods can be used to store the limited address control table D34. For example, if a normal dynamic RAM is used, the limited address control table D34 can be referred to at a high speed, so that the limited address control unit 36 can increase the number of entries searched at one time, and can reduce many entries. There is an effect that a high-speed search can be performed with a storage capacity.

【0172】また、前述した実施の形態3では、IPア
ドレスを用いた検索を例に挙げたが、アドレス長が異な
る他のアドレスであってもよく、アドレス制御部の個数
もアドレスの分割数に合わせて変更してよく、同様な効
果が得られる。また、IPアドレスを用いた検索を例に
挙げたが、他の情報を用いて検索を行ってもよく、ま
た、アドレスと他の情報を合わせて検索対象としてもよ
く、同様な効果が得られる。たとえば、IPアドレスと
トラヒック制御用の1バイトの情報とを合わせた5バイ
トの情報をアドレス情報とし、このアドレス情報を1バ
イトごとに5つの分割アドレス情報に分割して検索させ
る場合においても、同様な構成で処理でき、同様な効果
が得られる。
In the third embodiment, the search using the IP address has been described as an example. However, another address having a different address length may be used. It may be changed in accordance with the above, and a similar effect can be obtained. Although the search using the IP address has been described as an example, the search may be performed using other information, or the search may be performed by combining the address and other information, and the same effect is obtained. . For example, the same applies to a case where 5-byte information, which is a combination of an IP address and 1-byte information for traffic control, is used as address information, and this address information is divided into five pieces of divided address information for each byte and searched. And the same effect can be obtained.

【0173】また、限定したアドレス範囲においては、
アドレスマスクのロンゲストマッチ処理を少ない量の登
録エントリごとに制御しているので、多数のエントリを
登録する必要があり、該登録するエントリの上位分割ア
ドレス情報とアドレスマスクが多様な組み合わせをとる
場合であっても、アドレス検索のため情報の記憶容量を
小さく抑えるという効果がある。
In the limited address range,
Since the longest match processing of the address mask is controlled for each of a small number of registered entries, it is necessary to register a large number of entries, and when the upper division address information and the address mask of the entry to be registered take various combinations. However, there is an effect that the storage capacity of information is reduced for address search.

【0174】実施の形態4.この発明の実施の形態4
は、前述した実施の形態1〜実施の形態3において、分
割アドレス情報の長さを複数設定できるようにし、それ
ぞれのアドレス情報に応じてこれらのアドレス情報を異
なる長さに分割できるようにしたものである。図11
は、この発明の実施の形態4にかかる通信ネットワーク
装置4の概略構成を示す図である。なお、基本的な構成
は実施の形態1〜実施の形態3と同様につき、図6と同
一の部分については同一の符号を付してその説明を省略
し、ここでは異なる部分についてのみ説明する。
Embodiment 4 Embodiment 4 of the present invention
In the first to third embodiments described above, a plurality of lengths of divided address information can be set, and these address information can be divided into different lengths according to each address information. It is. FIG.
FIG. 4 is a diagram showing a schematic configuration of a communication network device 4 according to a fourth embodiment of the present invention. Note that the basic configuration is the same as in the first to third embodiments, and the same parts as those in FIG. 6 are denoted by the same reference numerals and description thereof will be omitted, and only different parts will be described here.

【0175】通信ネットワーク装置4は、実施の形態3
の第1アドレス制御部31,第2アドレス制御部32に
代えて、これらと同様の機能を有し、アドレス情報にお
ける分割アドレス情報の位置(何ビット目から何ビット
目までを分割したものであるか)を示す情報を含むアド
レス制御テーブルを有する第1アドレス制御部41,第
2アドレス制御部42を備えた検索制御部40を備えて
いる。図12は、第1アドレス制御部41に格納される
第1アドレス制御テーブルD41および第2アドレス制
御部42に格納される第2アドレス制御テーブルD42
の構成を示す図である。
The communication network device 4 according to the third embodiment
The first address control unit 31 and the second address control unit 32 have the same functions as those described above, and the position of the divided address information in the address information (from what bit to what bit is divided). A) a search control unit 40 including a first address control unit 41 and an second address control unit 42 having an address control table including information indicating the above. FIG. 12 shows a first address control table D41 stored in the first address control unit 41 and a second address control table D42 stored in the second address control unit 42.
FIG. 3 is a diagram showing the configuration of FIG.

【0176】第1アドレス制御テーブルD41は、0〜
255の最上段の各分割アドレス情報ごとに、検索フラ
グ領域D412と、ルートフラグ領域D413と、次テ
ーブルポインタ領域D414と、ルーチングポインタ領
域D415と、開始ビット位置領域D416と、ビット
長領域D417とを含んでいる。同様に、第2アドレス
制御テーブルD42は、0〜255の2番目の各分割ア
ドレス情報ごとに、検索フラグ領域D422と、ルート
フラグ領域D423と、次テーブルポインタ領域D42
4と、ルーチングポインタ領域D425と、開始ビット
位置領域D426と、ビット長領域D427とを含んで
いる。
The first address control table D41 contains 0 to
The search flag area D412, the root flag area D413, the next table pointer area D414, the routing pointer area D415, the start bit position area D416, and the bit length area D417 are provided for each of the uppermost 255 pieces of divided address information. Contains. Similarly, the second address control table D42 includes a search flag area D422, a root flag area D423, and a next table pointer area D42 for each of the second divided address information from 0 to 255.
4, a routing pointer area D425, a start bit position area D426, and a bit length area D427.

【0177】検索フラグ領域D412,ルートフラグ領
域D413,次テーブルポインタ領域D414,ルーチ
ングポインタ領域D415,検索フラグ領域D422,
ルートフラグ領域D423,次テーブルポインタ領域D
424,ルーチングポインタ領域D425は、それぞ
れ、実施の形態3の検索フラグ領域D312,ルートフ
ラグ領域D313,次テーブルポインタ領域D314,
ルーチングポインタ領域D315,検索フラグ領域D3
22,ルートフラグ領域D323,次テーブルポインタ
領域D324,ルーチングポインタ領域D325と同様
のものである。
Search flag area D412, root flag area D413, next table pointer area D414, routing pointer area D415, search flag area D422,
Root flag area D423, next table pointer area D
424, the routing pointer area D425 are the search flag area D312, the root flag area D313, and the next table pointer area D314, respectively, of the third embodiment.
Routing pointer area D315, search flag area D3
22, the root flag area D323, the next table pointer area D324, and the routing pointer area D325.

【0178】開始ビット位置領域D416,D426
は、下位のアドレス制御部で使用する分割アドレス情報
の開始ビット位置(アドレス情報の何ビット目から分割
したかを示す情報)を格納する。ビット長領域D41
7,D427は、下位のアドレス制御部で使用する分割
アドレス情報のビット長(開始ビット位置から何ビット
を分割したかを示す情報)を格納する。
Start bit position area D416, D426
Stores the start bit position of divided address information used by the lower address control unit (information indicating from which bit of the address information the bit is divided). Bit length area D41
7, D427 stores the bit length (information indicating how many bits are divided from the start bit position) of the divided address information used in the lower address control unit.

【0179】以上の構成において、実施の形態4の動作
について説明する。実施の形態4の動作においては、ア
ドレス検索依頼部16が、検索制御部40にアドレス情
報を送信してアドレス検索を要求する。この要求を受け
た検索制御部40では、第1アドレス制御部41が、最
上位の分割アドレス情報を使用し、実施の形態1〜実施
の形態3と同様に検索を行う。たとえば、最上位の分割
アドレス情報が「133」であるとすると、第1アドレ
ス制御部41はポインタAa133で示される位置を参
照する。そして、検索フラグ領域D412に「検索継
続」が設定されているので、次テーブルポインタ領域D
414に示されたポインタBa0と、開始ビット位置領
域D416に示された「9」と、ビット長領域D417
に示された「2」を取得する。
In the above configuration, the operation of the fourth embodiment will be described. In the operation of the fourth embodiment, the address search request unit 16 transmits address information to the search control unit 40 and requests an address search. In the search control unit 40 receiving this request, the first address control unit 41 performs a search using the highest-order divided address information in the same manner as in the first to third embodiments. For example, if the highest division address information is “133”, the first address control unit 41 refers to the position indicated by the pointer Aa133. Then, since “search continuation” is set in the search flag area D412, the next table pointer area D
The pointer Ba0 indicated at 414, “9” indicated at the start bit position area D416, and the bit length area D417
Is acquired.

【0180】たとえば、アドレス情報の9ビット目から
2ビットを分割した分割アドレス情報の値が「2」(1
0進数)であるとすると、第2アドレス制御部42は、
その「2」の値を使用して、第2アドレス制御テーブル
D42のポインタBa2で示される位置を参照する。そ
して、検索フラグ領域D422に「検索継続」が設定さ
れているので、次テーブルポインタD424に示された
ポインタCa0と、開始ビット位置領域D426に示さ
れた「11」と、ビット長領域D427に示された「1
0」を取得する。このように、順次、開始ビット位置お
よびビット長を取得して下位のアドレス制御テーブルを
参照する。
For example, the value of the divided address information obtained by dividing 2 bits from the ninth bit of the address information is “2” (1
(0-base number), the second address control unit 42
The position indicated by the pointer Ba2 in the second address control table D42 is referred to using the value of “2”. Since “search continuation” is set in the search flag area D422, the pointer Ca0 indicated in the next table pointer D424, “11” indicated in the start bit position area D426, and the pointer Ca0 indicated in the bit length area D427 are indicated. "1
0 ”is obtained. As described above, the start bit position and the bit length are sequentially obtained, and the lower address control table is referred to.

【0181】また、たとえば、最上位の分割アドレス情
報が「134」である場合、第1アドレス制御部41
は、ポインタAa134で示される位置を参照する。そ
して、検索フラグ領域D412に「検索継続」が設定さ
れているので、次テーブルポインタ領域D414に示さ
れたポインタBb0と、開始ビット位置領域D416に
示された「9」と、ビット長領域D417に示された
「3」とを取得する。たとえば、アドレス情報の9ビッ
ト目から3ビットを分割した分割アドレス情報の値が
「7」(10進数)であるとすると、第2アドレス制御
部42は、その「7」の値を使用して、第2アドレス制
御テーブルD42のポインタBb7で示される位置を参
照する。そして、検索フラグ領域D422に「検索継
続」が設定されているので、次テーブルポインタD42
4に示されたポインタCb0と、開始ビット位置領域D
426に示された「12」と、ビット長領域D427に
示された「12」とを取得する。このように、順次、開
始ビット位置およびビット長を取得して下位のアドレス
制御テーブルを参照する。
For example, when the highest division address information is “134”, the first address control unit 41
Refers to the position indicated by the pointer Aa134. Since “search continuation” is set in the search flag area D412, the pointer Bb0 indicated in the next table pointer area D414, “9” indicated in the start bit position area D416, and the bit length area D417 The indicated "3" is obtained. For example, if the value of the divided address information obtained by dividing 3 bits from the ninth bit of the address information is “7” (decimal number), the second address control unit 42 uses the value of “7” , The position indicated by the pointer Bb7 in the second address control table D42. Then, since “continuation of search” is set in the search flag area D422, the next table pointer D42
4 and a start bit position area D
“12” indicated in 426 and “12” indicated in the bit length area D427 are acquired. As described above, the start bit position and the bit length are sequentially obtained, and the lower address control table is referred to.

【0182】なお、この例では、分割アドレス情報のビ
ット長が異なるものも一つのアドレス制御テーブルに対
応させていたが、各ビット長ごとにアドレス制御テーブ
ルを設けてもよい。その他の動作は実施の形態1〜実施
の形態3と同様である。
In this example, the divided address information having different bit lengths is associated with one address control table. However, an address control table may be provided for each bit length. Other operations are the same as those of the first to third embodiments.

【0183】前述したように、実施の形態4によれば、
検索に必要なビット数に合わせて検索を行うようにして
いるので、異なるプロトコルのアドレス検索を行う場合
において検索対象の内容が異なっていても、テーブルの
設定をプロトコルに合わせて設定するのみであり、異な
るプロトコルのアドレス検索を一つの検索制御部に共通
的に行わせられるため、検索回路が小さくできるという
効果が得られる。
As described above, according to the fourth embodiment,
Since the search is performed according to the number of bits required for the search, even if the content of the search target is different when performing an address search of a different protocol, only the table settings should be set according to the protocol. Since the address search of different protocols is commonly performed by one search control unit, the effect that the search circuit can be reduced can be obtained.

【0184】実施の形態5.この発明の実施の形態5
は、前述した実施の形態1〜実施の形態4において、各
アドレス制御部,限定アドレス制御部およびルーチング
情報部がパイプライン処理を実行するようにしたもので
ある。図13は、この発明の実施の形態5にかかる通信
ネットワーク装置5の概略構成を示す図である。通信ネ
ットワーク装置5は、実施の形態4の通信ネットワーク
装置4と同様の構成であるが、第1アドレス制御部4
1,第2アドレス制御部42,第3アドレス制御部3
3,第4アドレス制御部14,ルーチング情報部15,
限定アドレス制御部36に代えて、パイプライン処理を
実行する第1アドレス制御部51,第2アドレス制御部
52,第3アドレス制御部53,第4アドレス制御部5
4,ルーチング情報部55,限定アドレス制御部56を
有する検索制御部50を備えている。
Embodiment 5 FIG. Embodiment 5 of the present invention
In the first to fourth embodiments, each address control unit, limited address control unit, and routing information unit execute pipeline processing. FIG. 13 is a diagram illustrating a schematic configuration of the communication network device 5 according to the fifth embodiment of the present invention. The communication network device 5 has the same configuration as the communication network device 4 of the fourth embodiment, but the first address control unit 4
1, second address control unit 42, third address control unit 3
3, a fourth address control unit 14, a routing information unit 15,
Instead of the limited address control unit 36, a first address control unit 51, a second address control unit 52, a third address control unit 53, and a fourth address control unit 5 that execute pipeline processing
4, a search control unit 50 having a routing information unit 55 and a limited address control unit 56.

【0185】第1アドレス制御部51,第2アドレス制
御部52,第3アドレス制御部53,第4アドレス制御
部54,ルーチング情報部55,限定アドレス制御部5
6は、それぞれ独立に構成され、実施の形態4の第1ア
ドレス制御部41,第2アドレス制御部42,第3アド
レス制御部33,第4アドレス制御部14,ルーチング
情報部15,限定アドレス制御部36と同様の処理をパ
イプライン処理によって行う。すなわち、これら各部に
おいて、それぞれ異なるパケットのアドレス情報を用い
たルーチング情報検索処理を同時に実行する。
First address control unit 51, second address control unit 52, third address control unit 53, fourth address control unit 54, routing information unit 55, limited address control unit 5
6, the first address control unit 41, the second address control unit 42, the third address control unit 33, the fourth address control unit 14, the routing information unit 15, the limited address control of the fourth embodiment. Processing similar to that of the unit 36 is performed by pipeline processing. That is, in each of these units, the routing information search processing using the address information of the different packet is simultaneously executed.

【0186】以上の構成において、実施の形態5の動作
について図14のフローチャートを参照して説明する。
図14は、実施の形態5にかかる通信ネットワーク装置
5の動作の流れを示すフローチャートである。通信ネッ
トワーク装置5においては、検索要求受信(S51)、
パイプライン1段目処理(S52)、パイプライン2段
目処理(S53)、パイプライン3段目処理(S5
4)、パイプライン4段目処理(S55)、パイプライ
ン5段目処理(S56)、検索結果の通知(S57)の
各処理を順次行う。ステップS55のパイプライン5段
目処理は、パイプライン4段目で第4アドレス制御部5
4が行う検索処理(S552)と、パイプライン4段目
で限定アドレス制御部56が行う検索処理(S553)
と、パイプライン4段目で第4アドレス制御部54が検
索処理を行うか限定アドレス制御部56が検索処理を行
うかを判定する処理(S551)とを含んでいる。
In the above configuration, the operation of the fifth embodiment will be described with reference to the flowchart of FIG.
FIG. 14 is a flowchart illustrating the flow of the operation of the communication network device 5 according to the fifth embodiment. The communication network device 5 receives the search request (S51),
Pipeline first stage processing (S52), pipeline second stage processing (S53), pipeline third stage processing (S5)
4), the fourth stage of the pipeline processing (S55), the fifth stage of the pipeline processing (S56), and the notification of the search result (S57) are sequentially performed. The fifth stage processing of the pipeline in step S55 is performed by the fourth address control unit 5 in the fourth stage of the pipeline.
4 and the search process performed by the limited address control unit 56 at the fourth stage of the pipeline (S553).
And a process (S551) of determining whether the fourth address control unit 54 performs the search process or the limited address control unit 56 performs the search process in the fourth stage of the pipeline.

【0187】ステップS52のパイプライン1段目処理
は、第1アドレス制御部51が行う処理であり、ステッ
プS53のパイプライン2段目処理は、第2アドレス制
御部52が行う処理であり、ステップS54のパイプラ
イン3段目処理は、第3アドレス制御部53が行う処理
であり、ステップS55のパイプライン4段目処理は、
第4アドレス制御部54または限定アドレス制御部56
のいずれか一方が行う処理であり、ステップS56のパ
イプライン5段目処理はルーチング情報部55が行う処
理である。
The first-stage pipeline processing in step S52 is processing performed by the first address control unit 51, and the second-stage pipeline processing in step S53 is processing performed by the second address control unit 52. The pipeline third stage processing of S54 is processing performed by the third address control unit 53, and the pipeline fourth stage processing of step S55 is
Fourth address control unit 54 or limited address control unit 56
, And the fifth-stage pipeline processing in step S56 is processing performed by the routing information unit 55.

【0188】以下、処理すべきIPパケットが5つある
とし、処理すべき順に優先度が高いものからIPA、I
PB、IPC、IPD、IPEとして、これらのIPパ
ケットの処理について具体的に説明する。IPパケット
IPA,IPB,IPC,IPD,IPEは、パイプラ
イン1段目処理(S52)で処理されたあと、パイプラ
イン2段目処理(S53)で処理され、その後、パイプ
ライン3段目処理(S54)で処理され、その後、パイ
プライン4段目処理(S55)で処理され、その後、パ
イプライン5段目処理(S56)で処理される。
In the following, it is assumed that there are five IP packets to be processed.
Processing of these IP packets will be specifically described as PB, IPC, IPD, and IPE. The IP packets IPA, IPB, IPC, IPD, and IPE are processed in the first-stage pipeline processing (S52), are then processed in the second-stage pipeline processing (S53), and then are processed in the third-stage pipeline (S52). The processing is performed in S54), then the processing is performed in the fourth stage processing of the pipeline (S55), and then the processing is performed in the fifth processing of the pipeline (S56).

【0189】検索制御部50が、パケットIPAをパイ
プライン1段目処理(S52)で処理するとき、パケッ
トIPBの検索要求を受信し、パケットIPBをパイプ
ライン1段目処理(S52)で処理するとき、パケット
IPCの検索要求を受信し、パケットIPCをパイプラ
イン1段目処理(S52)で処理するとき、パケットI
PDの検索要求を受信し、パケットIPDをパイプライ
ン1段目処理(S52)で処理するとき、パケットIP
Eの検索要求を受信するとすると、パケットIPAをパ
イプライン5段目処理(S56)で処理するとき、パケ
ットIPBをパイプライン4段目処理(S55)で処理
し、パケットIPCをパイプライン3段目処理(S5
4)で処理し、パケットIPDをパイプライン2段目処
理(S53)で処理し、パケットIPEをパイプライン
1段目処理(S52)で処理する。
When the search control unit 50 processes the packet IPA in the first-stage pipeline processing (S52), it receives a request to search for the packet IPB and processes the packet IPB in the first-stage pipeline processing (S52). When a packet IPC search request is received and the packet IPC is processed in the first stage of the pipeline processing (S52), the packet IC
When the PD search request is received and the packet IPD is processed in the first-stage pipeline processing (S52), the packet IPD
When the search request of E is received, when processing the packet IPA in the fifth stage of pipeline (S56), the packet IPB is processed in the fourth stage of pipeline (S55), and the packet IPC is processed in the third stage of pipeline. Processing (S5
4), the packet IPD is processed by the second-stage pipeline processing (S53), and the packet IPE is processed by the first-stage pipeline processing (S52).

【0190】すなわち、図15に示すように、アドレス
制御部51〜54,ルーチング情報部55および限定ア
ドレス制御部56は、一のパケットについての自らのル
ーチング情報検索処理が終わると、全体のルーチング情
報検索処理が終了するのを待たずに、つぎのパケットに
ついての自らのルーチング情報検索処理を行う。これに
より、異なるパケットについてのルーチング情報検索処
理が同時に行われる。
That is, as shown in FIG. 15, when the address control units 51 to 54, the routing information unit 55, and the limited address control unit 56 complete their own routing information search processing for one packet, the entire routing information Without waiting for the search process to end, the device performs its own routing information search process for the next packet. As a result, routing information search processing for different packets is performed simultaneously.

【0191】たとえば、前述したケース6では、パイプ
ライン1段目処理(S52)において、「つぎに限定ア
ドレス制御部56がポインタKb0を使用して検索処理
を行う」という検索結果を得る。この場合、パイプライ
ン2段目処理(S53)およびパイプライン3段目処理
(S54)では、この検索結果を伝達するだけであり、
パイプライン4段目処理(S55)では、限定アドレス
制御部56が検索処理(S553)を行う。
For example, in case 6 described above, in the first stage of the pipeline processing (S52), a search result is obtained that "the limited address control unit 56 performs a search process using the pointer Kb0." In this case, the second stage processing of the pipeline (S53) and the third stage processing of the pipeline (S54) only transmit the search result.
In the pipeline fourth stage process (S55), the limited address control unit 56 performs a search process (S553).

【0192】前述したように、実施の形態5によれば、
各アドレス制御部が分割アドレス情報ごとに独立してお
り、限定アドレス制御部55もアドレス制御部51〜5
4から独立しており、それぞれの分割アドレス情報の処
理を行うアドレス制御部51〜54および限定アドレス
制御部55が、それぞれ異なるパケットのアドレス検索
をパイプライン処理によって行うので、一定時間内にア
ドレス検索処理を行うことができるIPパケット数、す
なわちアドレス検索処理のスピードを向上させることが
できる。
As described above, according to the fifth embodiment,
Each address control unit is independent for each divided address information, and the limited address control unit 55 also includes the address control units 51 to 5.
4, the address control units 51 to 54 and the limited address control unit 55 for processing the respective divided address information perform the address search of the different packets by pipeline processing. The number of IP packets that can be processed, that is, the speed of address search processing can be improved.

【0193】実施の形態6.この発明の実施の形態6
は、実施の形態1〜実施の形態5において、検索制御部
を複数設け、それぞれにおいてルーチング情報を検索す
るようにしたものである。図16は、この発明の実施の
形態6にかかる通信ネットワーク装置6の概略構成を示
す図である。通信ネットワーク装置6は、実施の形態5
と同様の検索制御部を複数備えた複合検索制御部60
と、複合検索制御部60にパケットのアドレス情報を送
信し、ルーチング情報の検索を要求するアドレス検索依
頼部63とを備えている。
Embodiment 6 FIG. Embodiment 6 of the present invention
In the first to fifth embodiments, a plurality of search control units are provided, and each of them searches for routing information. FIG. 16 is a diagram illustrating a schematic configuration of the communication network device 6 according to the sixth embodiment of the present invention. The communication network device 6 according to the fifth embodiment
Search control unit 60 including a plurality of search control units similar to
And an address search requesting unit 63 that transmits address information of the packet to the complex search control unit 60 and requests a search for routing information.

【0194】アドレス検索依頼部63は、パケットに含
まれる複数のアドレス情報を複合検索制御部60に送信
する。この複数のアドレス情報は、たとえば、送信先ア
ドレス,送信元アドレスのように複数種類の情報であっ
てもよいし、1種類の情報(IPアドレス等)を複数
(上位,下位等)に分割したものであってもよい。複合
検索制御部60は、これらの複数のアドレス情報ごとに
対応させて検索制御部を有している。検索制御部の数は
特に限定されず、いくつであってもよいが、ここでは、
複合検索制御部60が、第1検索制御部61および第2
検索制御部62の2つの検索制御部を備えているものと
する。
The address search request section 63 transmits a plurality of pieces of address information included in the packet to the composite search control section 60. The plurality of pieces of address information may be, for example, a plurality of types of information such as a transmission destination address and a transmission source address, or one type of information (such as an IP address) may be divided into a plurality (upper, lower, etc.). It may be something. The composite search control unit 60 has a search control unit corresponding to each of the plurality of pieces of address information. The number of search control units is not particularly limited, and may be any number.
The compound search control unit 60 includes the first search control unit 61 and the second search control unit 61.
It is assumed that two search control units of the search control unit 62 are provided.

【0195】第1検索制御部61,第2検索制御部62
は、実施の形態5の検索制御部50と同様の機能を有
し、それぞれ異なるアドレス情報を用いてルーチング情
報を検索する。第1検索制御部61,第2検索制御部6
2は、それぞれの検索処理を独立して行い、それぞれの
検索結果をアドレス検索依頼部63に回答する。また、
検索制御部を直列接続して、複数のアドレスを関連付け
たルーチング情報の検索処理を行うようにしてもよい。
すなわち、第1検索制御部61,第2検索制御部62を
直列接続し、第1検索制御部61の検索結果を第2検索
制御部62に出力し、第2検索制御部62において、第
1検索制御部61の検索結果に応じた検索処理を行うよ
うにしてもよい。
First search control section 61, second search control section 62
Has the same function as the search control unit 50 of the fifth embodiment, and searches for routing information using different address information. First search control unit 61, second search control unit 6
2 independently performs each search process and returns each search result to the address search request unit 63. Also,
A search control unit may be connected in series to search for routing information in which a plurality of addresses are associated.
That is, the first search control unit 61 and the second search control unit 62 are connected in series, and the search result of the first search control unit 61 is output to the second search control unit 62. A search process according to the search result of the search control unit 61 may be performed.

【0196】図17は、実施の形態6にかかる第1検索
制御部61のルーチング情報テーブルD6の構成を示す
図である。ルーチング情報テーブルD6は、実施の形態
5のルーチング情報テーブルD35と同様の構成である
が、さらに、つぎの検索制御部(第2検索制御部62)
で検索処理に用いるためのポインタを指定する次テーブ
ルポインタ領域D61を含んでいる。第1検索制御部6
1は、検索結果としてこのポインタおよび送信インター
フェース名を第2検索制御部62に送り、第2検索制御
部62は、第1検索制御部61からのポインタに応じた
アドレス制御テーブルを参照して検索処理を行う。
FIG. 17 is a diagram showing a configuration of the routing information table D6 of the first search control unit 61 according to the sixth embodiment. The routing information table D6 has the same configuration as the routing information table D35 of the fifth embodiment, but further includes a next search control unit (second search control unit 62).
And includes a next table pointer area D61 for designating a pointer to be used for the search processing. First search control unit 6
1 sends the pointer and the transmission interface name as a search result to the second search control unit 62, and the second search control unit 62 searches by referring to the address control table corresponding to the pointer from the first search control unit 61. Perform processing.

【0197】以上の構成において、実施の形態6の動作
について、図18のフローチャートを参照して説明す
る。図18は、実施の形態6にかかる複合検索制御部6
0の動作を説明するための図である。実施の形態6の動
作においては、まず、アドレス検索依頼部63が、複合
検索制御部60にアドレス情報を送信し、アドレス検索
を要求する。この要求を受けた複合検索制御部60で
は、第1検索制御部61が、複合検索制御部60からの
アドレス情報のうちの、たとえば、送信元アドレスのア
ドレス情報を参照し、実施の形態5と同様のルーチング
情報の検索処理を行う。そして、検索結果を第2検索制
御部62に送信する(S61)。
In the above configuration, the operation of the sixth embodiment will be described with reference to the flowchart of FIG. FIG. 18 shows a composite search control unit 6 according to the sixth embodiment.
FIG. 9 is a diagram for explaining an operation of a zero. In the operation of the sixth embodiment, first, the address search request unit 63 transmits address information to the complex search control unit 60, and requests an address search. In the combined search control unit 60 that has received this request, the first search control unit 61 refers to, for example, the address information of the source address of the address information from the combined search control unit 60, and performs the processing according to the fifth embodiment. A similar routing information search process is performed. Then, the search result is transmitted to the second search control unit 62 (S61).

【0198】第1検索制御部61からの検索結果を受信
した第2検索制御部62は、複合検索制御部60からの
アドレス情報のうちの、たとえば、送信先アドレスのア
ドレス情報を参照し、第1検索制御部61からの検索結
果に基づいて実施の形態5と同様のルーチング情報の検
索処理を行う。そして、検索結果をアドレス検索依頼部
63に送信する(S61)。その他の動作については実
施の形態1〜実施の形態5と同様である。
The second search control unit 62 that has received the search result from the first search control unit 61 refers to, for example, the address information of the transmission destination address in the address information from the compound search control unit 60, and (1) Based on the search result from the search control unit 61, the same search processing of the routing information as in the fifth embodiment is performed. Then, the search result is transmitted to the address search request unit 63 (S61). Other operations are the same as those in the first to fifth embodiments.

【0199】前述したように、実施の形態6によれば、
複数の検索制御部によって複合検索制御部60を構成
し、各検索制御部が取得するルーチング情報には、つぎ
の検索制御部で使用するアドレス制御テーブルのポイン
タを含むようにしているので、それぞれの検索制御部で
検索するアドレスが異なるものであっても、それぞれの
検索制御部では、処理すべきアドレス部分についてアド
レスマスクのロンゲストマッチ処理ができ、検索対象の
アドレス全てを関連付けた検索結果が得られるという効
果がある。また、アドレスに代えて他の情報を用いても
よく、さらに、アドレスと他の情報とを組み合わせてア
ドレス情報として用いてもよい。この場合も同様の効果
を得ることができる。
As described above, according to the sixth embodiment,
A plurality of search control units constitute the complex search control unit 60, and the routing information acquired by each search control unit includes a pointer of the address control table used by the next search control unit. Even if the addresses searched by the sections are different, each search control section can perform a longest match process of the address mask for the address portion to be processed, and obtain a search result in which all the search target addresses are associated with each other. effective. Further, other information may be used in place of the address, and further, the address and other information may be combined and used as the address information. In this case, the same effect can be obtained.

【0200】なお、前述した実施の形態1〜実施の形態
6にかかるルーチング情報検索方法を実現するコンピュ
ータプログラムを、フロッピーディスク等の磁気ディス
ク、ROM,EPROM,EEPROM,フラッシュR
OM等の半導体メモリ(カートリッジ,PCカード等に
内蔵されているものを含む)、CD−ROM,DVD等
の光ディスク、MO等の光磁気ディスク、等の可搬の記
録媒体に格納し、この記録媒体に記録されたプログラム
を、ルーチング情報検索装置に内蔵されるROM,RA
M,ハードディスク等の固定用の記録媒体にインストー
ルすることにより、そのルーチング情報検索装置に前述
したルーチング情報検索方法を実行する機能を具備させ
ることもできる。
A computer program for realizing the routing information search method according to the first to sixth embodiments is stored on a magnetic disk such as a floppy disk, ROM, EPROM, EEPROM, flash ROM, or the like.
It is stored in a portable recording medium such as a semiconductor memory such as an OM (including a built-in cartridge or a PC card), an optical disk such as a CD-ROM and a DVD, and a magneto-optical disk such as an MO. The program recorded on the medium is stored in a ROM, RA
By installing it on a fixed recording medium such as a hard disk or a hard disk, the routing information search device can be provided with a function of executing the above-described routing information search method.

【0201】また、このプログラムを、LAN,WA
N,インターネット等のネットワークを介して伝送し、
伝送されたプログラムをルーチング情報検索装置の固定
用の記録媒体にインストールするようにしてもよい。ま
た、このプログラムは、必ずしも単一に構成されるもの
に限られず、複数のモジュールやライブラリとして分散
構成されていてもよいし、OS等の別個のプログラムと
協働してその機能を達成するものであってもよい。
Also, this program is used for LAN, WA
N, via a network such as the Internet,
The transmitted program may be installed on a fixed recording medium of the routing information search device. Further, this program is not necessarily limited to a single program, and may be distributed as a plurality of modules or libraries, or may achieve its function in cooperation with a separate program such as an OS. It may be.

【0202】[0202]

【発明の効果】以上説明したとおり、この発明によれ
ば、第1のアドレス情報を所定数のビットごとに階層的
に分割した分割アドレス情報の各階層に対応させてツリ
ー状に設けた第1の検索制御情報を記憶し、各第1の検
索制御情報が、自らの階層の各分割アドレス情報ごと
に、当該分割アドレス情報から最上位の分割アドレス情
報までを組み合わせた組合せアドレス情報の全部がいず
れかの第2のアドレス情報の最上位から一部を切り出し
たものと一致する場合、下位の第1の検索制御情報の参
照に用いる情報を含み、組合せアドレス情報の全部また
は組合せアドレス情報の最下位から当該分割アドレス情
報の一部を切り捨てたものがいずれかの第2のアドレス
情報の全部と一致する場合、下位の第1の検索制御情報
の参照に用いる情報を含むか否かにかかわらず、当該第
2のアドレス情報に対応するルーチング情報または当該
ルーチング情報の参照に用いる情報を含む。これによ
り、ある第2のアドレス情報の全部が他の第2のアドレ
ス情報の最上位から一部を切り出したものと一致する、
すなわち包含関係にある場合でも、短い方の第2のアド
レス情報に対応するルーチング情報を多数設定する必要
がなくなるため、設定処理や設定変更処理にかかる時間
を短縮し、設定処理や設定変更処理の負荷を軽減し、コ
ストを低減することができる、という効果を奏する。
As described above, according to the present invention, the first address information is provided in the form of a tree in which the first address information is provided in a tree shape corresponding to each layer of the divided address information obtained by hierarchically dividing the predetermined number of bits. , And each of the first search control information indicates, for each of the divided address information of its own hierarchy, which of the combined address information obtained by combining the divided address information to the highest-order divided address information If the second address information matches a part of the second address information cut out from the top, the information includes information used for referring to the lower first search control information, and includes all of the combination address information or the lowest of the combination address information. If a part of the divided address information is truncated from the above and matches any one of the second address information, the information used for referring to the lower first search control information is changed. Regardless suck whether, including information used to refer to the routing information or the routing information corresponding to the second address information. As a result, all of the certain second address information coincides with a part of the other second address information cut out from the top.
That is, even in the case of the inclusion relationship, it is not necessary to set a large amount of routing information corresponding to the shorter second address information, so that the time required for the setting process and the setting change process is reduced, and The effect is that the load can be reduced and the cost can be reduced.

【0203】つぎの発明によれば、各ルーチング情報が
有効であるか無効であるかを示す有効情報を記憶する。
これにより、ルーチング情報を容易に無効とすることが
でき、また、無効にしたルーチング情報を容易に有効と
することができるため、設定処理や設定変更処理にかか
る時間をさらに短縮し、設定処理や設定変更処理の負荷
をさらに軽減し、コストをさらに低減することができ
る、という効果を奏する。
According to the next invention, valid information indicating whether each piece of routing information is valid or invalid is stored.
As a result, the routing information can be easily invalidated, and the invalidated routing information can be easily validated. Therefore, the time required for the setting process and the setting change process can be further reduced, and the setting process and the There is an effect that the load of the setting change processing can be further reduced, and the cost can be further reduced.

【0204】つぎの発明によれば、第2のアドレス情報
と、当該第2のアドレス情報に対応するネットワークマ
スクと、当該第2のアドレス情報に対応するルーチング
情報または当該ルーチング情報の参照に用いる情報と、
を含む第2の検索制御情報を記憶し、第1の検索制御情
報は、自らの階層の各分割アドレス情報ごとに、当該分
割アドレス情報から最上位の分割アドレス情報までを組
み合わせた組合せアドレス情報の全部がいずれかの第2
のアドレス情報の最上位から一部を切り出したものと一
致する場合、第2の検索制御情報の参照に用いる情報ま
たは下位の第1の検索制御情報の参照に用いる情報を含
む。これにより、第1の検索制御情報のデータ量を削減
することができるため、全体のデータ量を低減し、コス
トをさらに低減することができる、という効果を奏す
る。
According to the next invention, the second address information, the network mask corresponding to the second address information, the routing information corresponding to the second address information, or the information used for referring to the routing information When,
Is stored, and the first search control information includes, for each of the divided address information of its own hierarchy, the combined address information obtained by combining from the divided address information to the highest divided address information. Everything is any second
If the address information matches a part of the address information extracted from the top, the information includes information used for referring to the second search control information or information used for referring to the lower first search control information. Thereby, since the data amount of the first search control information can be reduced, there is an effect that the total data amount can be reduced and the cost can be further reduced.

【0205】つぎの発明によれば、第1の検索制御情報
が、自らの階層の各分割アドレス情報が第1のアドレス
情報のどの部分を分割したものであるかを示す情報を含
む。これにより、複数種類のプロトコルのアドレスに対
応することができ、各プロトコルに対応する第1の検索
制御情報を用意することにより、複数種類のプロトコル
のアドレスを一つのルーチング情報検索装置で処理する
ことができるため、回路規模を縮小し、コストをさらに
低減することができる、という効果を奏する。
According to the next invention, the first search control information includes information indicating which part of the first address information each divided address information of its own hierarchy is divided. This makes it possible to deal with addresses of a plurality of types of protocols. By preparing first search control information corresponding to each protocol, it is possible to process addresses of a plurality of types of protocols with one routing information search device. Therefore, there is an effect that the circuit scale can be reduced and the cost can be further reduced.

【0206】つぎの発明によれば、一つの処理データに
含まれる複数の第1のアドレス情報のそれぞれに対応す
るルーチング情報を検索するため、一つの処理データに
複数の第1のアドレス情報が含まれる場合に、各第1の
アドレス情報に対応するルーチング情報を検索すること
ができる、という効果を奏する。
According to the next invention, in order to search for routing information corresponding to each of a plurality of first address information included in one piece of processing data, a plurality of pieces of first address information are included in one piece of processing data. In this case, it is possible to search for routing information corresponding to each first address information.

【0207】つぎの発明によれば、下位検索手段が、上
位の検索手段からの検索結果に関する情報を取得し、当
該検索結果に関する情報に基づいてルーチング情報を検
索するため、一つの処理データに含まれる複数の第1の
アドレス情報を関連付けた検索結果を得ることができ
る、という効果を奏する。
[0207] According to the next invention, the lower search means acquires the information on the search result from the upper search means and searches for the routing information based on the information on the search result. Thus, it is possible to obtain a search result in which a plurality of pieces of first address information are associated with each other.

【0208】つぎの発明によれば、複数の階層検索手段
が、パイプライン処理によって各階層におけるルーチン
グ情報の検索処理を行うため、検索処理を高速化するこ
とができる、という効果を奏する。
According to the next invention, since a plurality of hierarchical search means search for routing information in each hierarchy by pipeline processing, the search processing can be speeded up.

【0209】つぎの発明によれば、ルーチング情報検索
制御データが、第1のアドレス情報を所定数のビットご
とに階層的に分割した分割アドレス情報の各階層に対応
させてツリー状に設けた第1の検索制御情報を含み、第
1の検索制御情報が、自らの階層の各分割アドレス情報
ごとに、当該分割アドレス情報から最上位の分割アドレ
ス情報までを組み合わせた組合せアドレス情報の全部が
いずれかの第2のアドレス情報の最上位から一部を切り
出したものと一致する場合、下位の第1の検索制御情報
の参照に用いる情報を含み、組合せアドレス情報の全部
または組合せアドレス情報の最下位から当該分割アドレ
ス情報の一部を切り捨てたものがいずれかの第2のアド
レス情報の全部と一致する場合、下位の第1の検索制御
情報の参照に用いる情報を含むか否かにかかわらず、当
該第2のアドレス情報に対応するルーチング情報または
当該ルーチング情報の参照に用いる情報を含む。これに
より、ある第2のアドレス情報の全部が他の第2のアド
レス情報の最上位から一部を切り出したものと一致す
る、すなわち包含関係にある場合でも、短い方の第2の
アドレス情報に対応するルーチング情報を多数設定する
必要がなくなるため、設定処理や設定変更処理にかかる
時間を短縮し、設定処理や設定変更処理の負荷を軽減
し、コストを低減することができる、という効果を奏す
る。
[0209] According to the next invention, the routing information retrieval control data is provided in a tree-like manner in which the first address information is provided in a tree-like manner in correspondence with each layer of the divided address information obtained by hierarchically dividing the first address information by a predetermined number of bits. 1 search control information, and the first search control information is, for each divided address information of its own hierarchy, any one of the combined address information obtained by combining from the divided address information to the uppermost divided address information. Contains the information used to refer to the lower first search control information when the second address information is partially cut out from the top of the second address information. When a part of the divided address information is truncated and matches any of the second address information, the divided address information is used for referring to the lower first search control information. Regardless of whether it contains information, including the information used to refer to the routing information or the routing information corresponding to the second address information. As a result, even if all of the certain second address information matches a part of the other second address information cut out from the top, that is, even if the second address information has an inclusive relation, it is added to the shorter second address information. Since it is not necessary to set a lot of corresponding routing information, it is possible to shorten the time required for the setting process and the setting change process, to reduce the load of the setting process and the setting change process, and to reduce the cost. .

【0210】つぎの発明によれば、ルーチング情報検索
制御データが、さらに、各ルーチング情報が有効である
か無効であるかを示す有効情報を含むルーチング情報検
索制御データを含む。これにより、ルーチング情報を容
易に無効とすることができ、また、無効にしたルーチン
グ情報を容易に有効とすることができるため、設定処理
や設定変更処理にかかる時間をさらに短縮し、設定処理
や設定変更処理の負荷をさらに軽減し、コストをさらに
低減することができる、という効果を奏する。
According to the next invention, the routing information search control data further includes routing information search control data including valid information indicating whether each routing information is valid or invalid. As a result, the routing information can be easily invalidated, and the invalidated routing information can be easily validated. Therefore, the time required for the setting process and the setting change process can be further reduced, and the setting process and the There is an effect that the load of the setting change processing can be further reduced, and the cost can be further reduced.

【0211】つぎの発明によれば、ルーチング情報検索
制御データが、さらに、第2のアドレス情報と、当該第
2のアドレス情報に対応するネットワークマスクと、当
該第2のアドレス情報に対応するルーチング情報または
当該ルーチング情報の参照に用いる情報と、を含む第2
の検索制御情報を含む。これにより、第1の検索制御情
報のデータ量を削減することができるため、全体のデー
タ量を低減し、コストをさらに低減することができる、
という効果を奏する。
According to the next invention, the routing information search control data further includes second address information, a network mask corresponding to the second address information, and routing information corresponding to the second address information. Or information used for referring to the routing information.
Including search control information. Thereby, since the data amount of the first search control information can be reduced, the total data amount can be reduced, and the cost can be further reduced.
This has the effect.

【0212】つぎの発明によれば、第1の検索制御情報
が、自らの階層の各分割アドレス情報が第1のアドレス
情報のどの部分を分割したものであるかを示す情報を含
む。これにより、複数種類のプロトコルのアドレスに対
応させることができ、各プロトコルに対応する第1の検
索制御情報を用意することにより、複数種類のプロトコ
ルのアドレスを一つのルーチング情報検索装置で処理す
ることができるため、回路規模を縮小し、コストをさら
に低減することができる、という効果を奏する。
According to the next invention, the first search control information includes information indicating which part of the first address information each divided address information of its own hierarchy is divided. Thereby, it is possible to correspond to the addresses of a plurality of types of protocols, and by preparing the first search control information corresponding to each protocol, it is possible to process the addresses of the plurality of types of protocols with one routing information search device. Therefore, there is an effect that the circuit scale can be reduced and the cost can be further reduced.

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

【図1】 この発明の実施の形態1にかかる通信ネット
ワーク装置の概略構成を示す図である。
FIG. 1 is a diagram illustrating a schematic configuration of a communication network device according to a first embodiment of the present invention;

【図2】 実施の形態1にかかるアドレス制御テーブル
の構成を示す図である。
FIG. 2 is a diagram illustrating a configuration of an address control table according to the first embodiment;

【図3】 実施の形態1にかかるルーチング情報テーブ
ルの構成を示す図である。
FIG. 3 is a diagram showing a configuration of a routing information table according to the first exemplary embodiment;

【図4】 実施の形態1にかかる検索制御部の動作の流
れを示すフローチャートである。
FIG. 4 is a flowchart illustrating a flow of an operation of a search control unit according to the first exemplary embodiment;

【図5】 この発明の実施の形態2にかかる通信ネット
ワーク装置の概略構成を示す図である。
FIG. 5 is a diagram illustrating a schematic configuration of a communication network device according to a second embodiment of the present invention;

【図6】 この発明の実施の形態3にかかる通信ネット
ワーク装置の概略構成を示す図である。
FIG. 6 is a diagram illustrating a schematic configuration of a communication network device according to a third embodiment of the present invention;

【図7】 実施の形態3にかかるアドレス制御テーブル
の構成を示す図である。
FIG. 7 is a diagram illustrating a configuration of an address control table according to a third embodiment;

【図8】 実施の形態3にかかる限定アドレス制御テー
ブルの構成を示す図である。
FIG. 8 is a diagram illustrating a configuration of a limited address control table according to a third embodiment;

【図9】 実施の形態3にかかるルーチング情報テーブ
ルの構成を示す図である。
FIG. 9 is a diagram illustrating a configuration of a routing information table according to the third embodiment;

【図10】 実施の形態3にかかる検索制御部の動作の
流れを示すフローチャートである。
FIG. 10 is a flowchart illustrating an operation flow of a search control unit according to the third embodiment;

【図11】 この発明の実施の形態4にかかる通信ネッ
トワーク装置の概略構成を示す図である。
FIG. 11 is a diagram illustrating a schematic configuration of a communication network device according to a fourth embodiment of the present invention;

【図12】 実施の形態4にかかるアドレス制御テーブ
ルの構成を示す図である。
FIG. 12 is a diagram illustrating a configuration of an address control table according to a fourth embodiment;

【図13】 この発明の実施の形態5にかかる通信ネッ
トワーク装置の概略構成を示す図である。
FIG. 13 is a diagram showing a schematic configuration of a communication network device according to a fifth embodiment of the present invention.

【図14】 実施の形態5にかかる通信ネットワーク装
置の動作の流れを示すフローチャートである。
FIG. 14 is a flowchart illustrating a flow of an operation of the communication network device according to the fifth embodiment;

【図15】 実施の形態5にかかる検索制御部の動作を
説明するための図である。
FIG. 15 is a diagram for explaining an operation of a search control unit according to the fifth embodiment;

【図16】 この発明の実施の形態6にかかる通信ネッ
トワーク装置の概略構成を示す図である。
FIG. 16 is a diagram illustrating a schematic configuration of a communication network device according to a sixth embodiment of the present invention.

【図17】 実施の形態6にかかるルーチング情報テー
ブルの構成を示す図である。
FIG. 17 is a diagram illustrating a configuration of a routing information table according to the sixth embodiment;

【図18】 実施の形態6にかかる複合検索制御部の動
作を説明するための図である。
FIG. 18 is a diagram for explaining an operation of the compound search control unit according to the sixth embodiment;

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

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

1,2,3,4,5,6 通信ネットワーク装置、1
0,20,30,40,50 検索制御部、11,3
1,41,51 第1アドレス制御部、12,32,4
2,52 第2アドレス制御部、13,33,43,5
3 第3アドレス制御部、14,54 第4アドレス制
御部、15,55 ルーチング情報部、16,63 ア
ドレス検索依頼部、21 第1アドレス制御テーブル格
納部、22第2アドレス制御テーブル格納部、23 第
3アドレス制御テーブル格納部、24 第4アドレス制
御テーブル格納部、25 アドレス制御部、36,56
限定アドレス制御部,60 複合検索制御部、61
第1検索制御部、62 第2検索制御部。
1, 2, 3, 4, 5, 6 communication network device, 1
0, 20, 30, 40, 50 Search control unit, 11, 3
1,41,51 First address control unit, 12,32,4
2,52 second address control unit, 13,33,43,5
3 Third address control unit, 14, 54 Fourth address control unit, 15, 55 Routing information unit, 16, 63 Address search request unit, 21 First address control table storage unit, 22 Second address control table storage unit, 23 Third address control table storage unit, 24 Fourth address control table storage unit, 25 Address control units, 36, 56
Limited address control unit, 60 Compound search control unit, 61
First search control unit, 62 Second search control unit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 岡崎 直宣 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 (72)発明者 藤井 照子 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 (72)発明者 貞包 哲男 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 Fターム(参考) 5B075 ND02 ND20 NK54 QM02 5K030 GA01 GA06 HA08 HD03 HD06 HD09 JA11 KA05 LD17 LE02 LE14 5K033 AA02 AA03 AA04 CB06 CB09 CB11 DA05 DB12 DB16 DB18 EC04  ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Naoyoshi Okazaki 2-3-2 Marunouchi, Chiyoda-ku, Tokyo Mitsui Electric Co., Ltd. (72) Teruko Fujii 2-3-2 Marunouchi, Chiyoda-ku, Tokyo Within Mitsui Electric Co., Ltd. (72) Inventor Tetsuo Sadahaku 2-3-2 Marunouchi, Chiyoda-ku, Tokyo F-term (reference) 5B075 ND02 ND20 NK54 QM02 5K030 GA01 GA06 HA08 HD03 HD06 HD09 JA11 KA05 LD17 LE02 LE14 5K033 AA02 AA03 AA04 CB06 CB09 CB11 DA05 DB12 DB16 DB18 EC04

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 通信ネットワーク装置が処理する処理デ
ータに含まれる第1のアドレス情報を複数のネットワー
クマスクに応じて切り出した第2のアドレス情報に応じ
て、前記処理データの送信方路または処理内容を指示す
るルーチング情報を検索するルーチング情報検索装置で
あって、 前記第1のアドレス情報を所定数のビットごとに階層的
に分割した分割アドレス情報の各階層に対応させてツリ
ー状に設けた第1の検索制御情報を記憶した第1の記憶
手段と、 前記第1の記憶手段に記憶された第1の検索制御情報に
基づいて前記ルーチング情報を検索する検索手段と、 を具備し、 前記各第1の検索制御情報は、 自らの階層の各分割アドレス情報ごとに、当該分割アド
レス情報から最上位の分割アドレス情報までを組み合わ
せた組合せアドレス情報の全部がいずれかの第2のアド
レス情報の最上位から一部を切り出したものと一致する
場合、下位の第1の検索制御情報の参照に用いる情報を
含み、 前記組合せアドレス情報の全部または前記組合せアドレ
ス情報の最下位から当該分割アドレス情報の一部を切り
捨てたものがいずれかの第2のアドレス情報の全部と一
致する場合、前記下位の第1の検索制御情報の参照に用
いる情報を含むか否かにかかわらず、当該第2のアドレ
ス情報に対応するルーチング情報または当該ルーチング
情報の参照に用いる情報を含み、 前記検索手段は、 最上位から順に、検索中の第1のアドレス情報の分割ア
ドレス情報および前記第1の検索制御情報を参照し、 当該第1の検索制御情報が当該分割アドレス情報に対応
して前記下位の第1の検索制御情報の参照に用いる情報
を含む場合は、当該下位の第1の検索制御情報を参照
し、 当該第1の検索制御情報が当該分割アドレス情報に対応
して前記下位の第1の検索制御情報の参照に用いる情報
を含まず、前記ルーチング情報または当該ルーチング情
報の参照に用いる情報を含む場合は、当該ルーチング情
報を取得し、 当該第1の検索制御情報が当該分割アドレス情報に対応
して前記下位の第1の検索制御情報の参照に用いる情報
ならびに前記ルーチング情報もしくは当該ルーチング情
報の参照に用いる情報を含まず、上位の第1の検索制御
情報が上位の分割アドレス情報に対応して前記ルーチン
グ情報または当該ルーチング情報の参照に用いる情報を
含む場合は、当該ルーチング情報を取得することを特徴
とするルーチング情報検索装置。
1. A transmission route or processing content of the processing data according to second address information obtained by cutting out first address information included in processing data processed by a communication network device according to a plurality of network masks. A routing information search device that searches for routing information that indicates the first address information, wherein the first address information is provided in a tree shape corresponding to each layer of divided address information obtained by hierarchically dividing the first address information by a predetermined number of bits. A first storage unit storing the first search control information; and a search unit searching the routing information based on the first search control information stored in the first storage unit. The first search control information is, for each piece of divided address information of its own hierarchy, a combination address combining the divided address information and the highest-order divided address information. If all of the address information coincides with a part of any of the second address information cut out from the top, the information includes information used for referring to lower first search control information, and Alternatively, in the case where a part of the divided address information truncated from the lowest of the combination address information matches all of any of the second address information, information used for referring to the lower first search control information. Irrespective of whether or not the first address information is included, the information includes routing information corresponding to the second address information or information used for referring to the routing information. With reference to the divided address information and the first search control information, and the first search control information corresponds to the divided address information and the lower first search control information When the information used for information reference is included, the lower-level first search control information is referred to, and the lower-level first search control information corresponds to the division address information. If the routing information or the information used for referencing the routing information is not included in the information used for reference, the routing information is acquired, and the first search control information corresponds to the divided address information. The first search control information does not include the information used for referring to the first search control information and the routing information or the information used for referencing the routing information, and the first search control information of the higher order corresponds to the upper divided address information. Or a routing information search device for acquiring the routing information when the routing information includes information used for referring to the routing information. .
【請求項2】 さらに、前記各ルーチング情報が有効で
あるか無効であるかを示す有効情報を記憶する第2の記
憶手段を具備し、 前記検索手段は、前記第2の記憶手段に記憶された有効
情報に基づいてルーチング情報を検索することを特徴と
する請求項1に記載のルーチング情報検索装置。
And a second storage unit for storing valid information indicating whether each of the routing information is valid or invalid. The search unit is stored in the second storage unit. 2. The routing information search device according to claim 1, wherein the routing information is searched based on the valid information.
【請求項3】 さらに、前記第2のアドレス情報と、当
該第2のアドレス情報に対応するネットワークマスク
と、当該第2のアドレス情報に対応するルーチング情報
または当該ルーチング情報の参照に用いる情報と、を含
む第2の検索制御情報を記憶する第3の記憶手段を具備
し、 前記第1の検索制御情報は、 自らの階層の各分割アドレス情報ごとに、当該分割アド
レス情報から最上位の分割アドレス情報までを組み合わ
せた組合せアドレス情報の全部がいずれかの第2のアド
レス情報の最上位から一部を切り出したものと一致する
場合、前記第2の検索制御情報の参照に用いる情報また
は前記下位の第1の検索制御情報の参照に用いる情報を
含み、 前記検索手段は、 参照中の第1の検索制御情報が参照中の分割アドレス情
報に対応して前記第2の検索制御情報の参照に用いる情
報を含む場合、当該第2の検索制御情報を参照し、 当該第2の検索制御情報に含まれるネットワークマスク
を検索中の第1のアドレス情報に掛けたものが、当該第
2の検索制御情報に含まれる第2のアドレス情報に対応
するとき、当該第2のアドレス情報に対応するルーチン
グ情報を取得することを特徴とする請求項1または2に
記載のルーチング情報検索装置。
3. The second address information, a network mask corresponding to the second address information, routing information corresponding to the second address information, or information used for referring to the routing information, And third storage means for storing second search control information including the following. The first search control information is, for each divided address information of its own hierarchy, the highest divided address from the divided address information. If all of the combined address information obtained by combining up to the information matches a part of the second address information cut out from the top, the information used for referring to the second search control information or the lower order The search means includes information used for referring to first search control information, wherein the search means is configured such that the first search control information being referred to corresponds to the divided address information being referred to. When the information used for referring to the second search control information is included, the second search control information is referenced, and the network mask included in the second search control information is multiplied by the first address information being searched. 3. The device according to claim 1, wherein when the object corresponds to the second address information included in the second search control information, routing information corresponding to the second address information is obtained. 4. Routing information retrieval device.
【請求項4】 前記第1の検索制御情報は、自らの階層
の各分割アドレス情報が第1のアドレス情報のどの部分
を分割したものであるかを示す情報を含むことを特徴と
する請求項1,2または3に記載のルーチング情報検索
装置。
4. The apparatus according to claim 1, wherein the first search control information includes information indicating which part of the first address information each divided address information of its own hierarchy is divided. The routing information search device according to 1, 2, or 3.
【請求項5】 前記処理データは、一つの当該処理デー
タに対して複数の前記第1のアドレス情報を含み、 前記検索手段は、前記複数の第1のアドレス情報に対応
して複数設け、 前記複数の検索手段は、対応するルーチング情報をそれ
ぞれ検索することを特徴とする請求項1〜4のいずれか
一つに記載のルーチング情報検索装置。
5. The processing data includes a plurality of pieces of the first address information for one piece of the processing data, and the search unit is provided in a plurality corresponding to the plurality of pieces of the first address information. The routing information search device according to claim 1, wherein the plurality of search units respectively search for corresponding routing information.
【請求項6】 前記複数の検索手段は、直列接続され、 下位の検索手段は、上位の検索手段からの検索結果に関
する情報を取得し、当該検索結果に関する情報に基づい
てルーチング情報を検索することを特徴とする請求項5
に記載のルーチング情報検索装置。
6. The plurality of search means are connected in series, and the lower search means obtains information on search results from an upper search means, and searches for routing information based on the information on the search results. 6. The method according to claim 5, wherein
A routing information search device according to claim 1.
【請求項7】 前記検索手段は、前記分割アドレス情報
の各階層ごとに設けられた複数の階層検索手段からな
り、 前記複数の階層検索手段は、パイプライン処理によって
各階層における前記ルーチング情報の検索処理を行うこ
とを特徴とする請求項1〜6のいずれか一つに記載のル
ーチング情報検索装置。
7. The search means comprises a plurality of hierarchy search means provided for each hierarchy of the divided address information, wherein the plurality of hierarchy search means search for the routing information in each hierarchy by pipeline processing. The routing information search device according to claim 1, wherein the routing information search device performs a process.
【請求項8】 通信ネットワーク装置が処理する処理デ
ータに含まれる第1のアドレス情報を複数のネットワー
クマスクに応じて切り出した第2のアドレス情報に応じ
て、前記処理データの送信方路または処理内容を指示す
るルーチング情報を検索するルーチング情報検索に用い
るルーチング情報検索制御データを記録したコンピュー
タ読み取り可能な記録媒体であって、 前記第1のアドレス情報を所定数のビットごとに階層的
に分割した分割アドレス情報の各階層に対応させてツリ
ー状に設けた第1の検索制御情報を含み、 前記第1の検索制御情報は、 自らの階層の各分割アドレス情報ごとに、当該分割アド
レス情報から最上位の分割アドレス情報までを組み合わ
せた組合せアドレス情報の全部がいずれかの第2のアド
レス情報の最上位から一部を切り出したものと一致する
場合、下位の第1の検索制御情報の参照に用いる情報を
含み、 前記組合せアドレス情報の全部または前記組合せアドレ
ス情報の最下位から当該分割アドレス情報の一部を切り
捨てたものがいずれかの第2のアドレス情報の全部と一
致する場合、前記下位の第1の検索制御情報の参照に用
いる情報を含むか否かにかかわらず、当該第2のアドレ
ス情報に対応するルーチング情報または当該ルーチング
情報の参照に用いる情報を含むことを特徴とするルーチ
ング情報検索制御データを記録したコンピュータ読み取
り可能な記録媒体。
8. A transmission route or processing content of the processing data according to second address information obtained by cutting out first address information included in processing data processed by a communication network device according to a plurality of network masks. A computer-readable recording medium storing routing information search control data used for routing information search for searching for routing information indicating the first address information, wherein the first address information is divided hierarchically by a predetermined number of bits. The first search control information includes first search control information provided in a tree shape corresponding to each layer of the address information, and the first search control information is, for each divided address information of its own layer, the highest order from the divided address information. Whether all of the combined address information obtained by combining up to the divided address information is the highest order of any of the second address information If it matches a part obtained by cutting out part of the divided address information, the information includes information used for referring to lower first search control information, and the entirety of the combined address information or the lowest part of the combined address information. If the truncated one matches all of the second address information, regardless of whether or not the second address information includes information used for referring to the lower first search control information, A computer-readable recording medium on which routing information search control data is recorded, including corresponding routing information or information used for referring to the routing information.
【請求項9】 さらに、前記各ルーチング情報が有効で
あるか無効であるかを示す有効情報を含むルーチング情
報検索制御データを含むことを特徴とする請求項8に記
載のルーチング情報検索制御データを記録したコンピュ
ータ読み取り可能な記録媒体。
9. The routing information search control data according to claim 8, further comprising routing information search control data including valid information indicating whether each of the routing information is valid or invalid. A computer-readable recording medium that has been recorded.
【請求項10】 さらに、前記第2のアドレス情報と、
当該第2のアドレス情報に対応するネットワークマスク
と、当該第2のアドレス情報に対応するルーチング情報
または当該ルーチング情報の参照に用いる情報と、を含
む第2の検索制御情報を含むことを特徴とする請求項8
または9に記載のルーチング情報検索制御データを記録
したコンピュータ読み取り可能な記録媒体。
10. The system according to claim 10, further comprising: the second address information;
It includes second search control information including a network mask corresponding to the second address information and routing information corresponding to the second address information or information used for referring to the routing information. Claim 8
Or a computer-readable recording medium recording the routing information search control data according to 9.
【請求項11】 前記第1の検索制御情報は、自らの階
層の各分割アドレス情報が第1のアドレス情報のどの部
分を分割したものであるかを示す情報を含むことを特徴
とする請求項8,9または10に記載のルーチング情報
検索制御データを記録したコンピュータ読み取り可能な
記録媒体。
11. The apparatus according to claim 11, wherein the first search control information includes information indicating which part of the first address information each divided address information of its own hierarchy is divided. A computer-readable recording medium recording the routing information search control data described in 8, 9, or 10.
JP2000197136A 2000-06-29 2000-06-29 Routing information retrieving device and computer readable recording medium having routing information retrieval control data recorded thereon Pending JP2002016638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000197136A JP2002016638A (en) 2000-06-29 2000-06-29 Routing information retrieving device and computer readable recording medium having routing information retrieval control data recorded thereon

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000197136A JP2002016638A (en) 2000-06-29 2000-06-29 Routing information retrieving device and computer readable recording medium having routing information retrieval control data recorded thereon

Publications (1)

Publication Number Publication Date
JP2002016638A true JP2002016638A (en) 2002-01-18

Family

ID=18695510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000197136A Pending JP2002016638A (en) 2000-06-29 2000-06-29 Routing information retrieving device and computer readable recording medium having routing information retrieval control data recorded thereon

Country Status (1)

Country Link
JP (1) JP2002016638A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2378623A (en) * 2001-05-30 2003-02-12 Nec Corp Bridge with reduced forwarding table using hierarchical addresses
JP2003273918A (en) * 2002-03-12 2003-09-26 Nippon Telegr & Teleph Corp <Ntt> Method for filtering packet
JP2004015592A (en) * 2002-06-10 2004-01-15 Internatl Business Mach Corp <Ibm> Mac address pointer structure and method for rearranging mac address
WO2004032435A1 (en) * 2002-10-03 2004-04-15 In4S Inc. Bit string check method and device
JP2005513895A (en) * 2001-12-11 2005-05-12 インターナショナル・ビジネス・マシーンズ・コーポレーション Hybrid search memory for network processors and computer systems
JP2006527526A (en) * 2003-03-28 2006-11-30 サイプレス・セミコンダクタ・コーポレーション System and method for efficiently searching a forwarding database divided into a limited number of sub-databases having a limited size
US7197039B2 (en) 2001-05-30 2007-03-27 Nec Corporation Bridge apparatus with entries reduced in filtering database and network using the same
US7272140B2 (en) 2002-07-23 2007-09-18 Nec Corporation Address retrieval apparatus
JP2007537626A (en) * 2004-04-19 2007-12-20 ザ・リージェンツ・オブ・ザ・ユニバーシティ・オブ・カリフォルニア Programmable hardware for deep packet filtering
JP2009260880A (en) * 2008-04-21 2009-11-05 Fujitsu Ltd Packet transfer controlling apparatus and packet transfer controlling method
WO2011027842A1 (en) 2009-09-04 2011-03-10 富士フイルム株式会社 Ink set, recording method, recorded material, and printed material
JP2020156058A (en) * 2019-03-22 2020-09-24 エヌ・ティ・ティ・コミュニケーションズ株式会社 Communication device, communication method and program

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7197039B2 (en) 2001-05-30 2007-03-27 Nec Corporation Bridge apparatus with entries reduced in filtering database and network using the same
GB2378623A (en) * 2001-05-30 2003-02-12 Nec Corp Bridge with reduced forwarding table using hierarchical addresses
JP2005513895A (en) * 2001-12-11 2005-05-12 インターナショナル・ビジネス・マシーンズ・コーポレーション Hybrid search memory for network processors and computer systems
JP2003273918A (en) * 2002-03-12 2003-09-26 Nippon Telegr & Teleph Corp <Ntt> Method for filtering packet
JP2004015592A (en) * 2002-06-10 2004-01-15 Internatl Business Mach Corp <Ibm> Mac address pointer structure and method for rearranging mac address
US7272140B2 (en) 2002-07-23 2007-09-18 Nec Corporation Address retrieval apparatus
WO2004032435A1 (en) * 2002-10-03 2004-04-15 In4S Inc. Bit string check method and device
CN1324861C (en) * 2002-10-03 2007-07-04 In4S公司 Bit string check method and device
JP2006527526A (en) * 2003-03-28 2006-11-30 サイプレス・セミコンダクタ・コーポレーション System and method for efficiently searching a forwarding database divided into a limited number of sub-databases having a limited size
JP2007537626A (en) * 2004-04-19 2007-12-20 ザ・リージェンツ・オブ・ザ・ユニバーシティ・オブ・カリフォルニア Programmable hardware for deep packet filtering
JP4755175B2 (en) * 2004-04-19 2011-08-24 ザ・リージェンツ・オブ・ザ・ユニバーシティ・オブ・カリフォルニア Programmable hardware for deep packet filtering
JP2009260880A (en) * 2008-04-21 2009-11-05 Fujitsu Ltd Packet transfer controlling apparatus and packet transfer controlling method
WO2011027842A1 (en) 2009-09-04 2011-03-10 富士フイルム株式会社 Ink set, recording method, recorded material, and printed material
JP2020156058A (en) * 2019-03-22 2020-09-24 エヌ・ティ・ティ・コミュニケーションズ株式会社 Communication device, communication method and program
JP7088868B2 (en) 2019-03-22 2022-06-21 エヌ・ティ・ティ・コミュニケーションズ株式会社 Communication equipment, communication methods and programs

Similar Documents

Publication Publication Date Title
CN1270487C (en) Method and apparatus for ternary content addressable meomry (TCAM) table management
JP4742167B2 (en) Method for performing a table lookup operation using a table index that exceeds the CAM key size
US7415472B2 (en) Comparison tree data structures of particular use in performing lookup operations
CA2400343C (en) Apparatus and method for performing high-speed ip route lookup and managing routing/forwarding tables
US7852850B2 (en) Double-hash lookup mechanism for searching addresses in a network device
US7443841B2 (en) Longest prefix matching (LPM) using a fixed comparison hash table
US20050171937A1 (en) Memory efficient hashing algorithm
JP2002016638A (en) Routing information retrieving device and computer readable recording medium having routing information retrieval control data recorded thereon
EP1335538B1 (en) Method and system for address lookup in data communication
JP2000232479A (en) Route deciding device for router having cache and machine readable recording medium with program
US6574701B2 (en) Technique for updating a content addressable memory
EP1547306B1 (en) Method and network device for hierachical prefix based routing
US6532516B1 (en) Technique for updating a content addressable memory
US7633886B2 (en) System and methods for packet filtering
US6337862B1 (en) Network switch with truncated trie look-up facility
EP1642428B1 (en) Method for generating a trie having a reduced number of trie blocks
TWI239476B (en) Address search
CN109754021B (en) Online packet classification method based on range tuple search
US6615311B2 (en) Method and system for updating a content addressable memory (CAM) that prioritizes CAM entries according to prefix length
CN115086221B (en) Message processing method, device, forwarding equipment and storage medium
US20030031179A1 (en) Self-updateable longest prefix matching method and apparatus
CN107204926B (en) Rapid route searching method for preprocessing cache
KR100420957B1 (en) Routing table using class segmentation algorithm, searching method and apparatus thereby.
JP2003500901A (en) Longest match prefix lookup
US9444731B2 (en) Methods and systems for data packet routing