JPH11289345A - Router device and set method for transmission route - Google Patents

Router device and set method for transmission route

Info

Publication number
JPH11289345A
JPH11289345A JP9188098A JP9188098A JPH11289345A JP H11289345 A JPH11289345 A JP H11289345A JP 9188098 A JP9188098 A JP 9188098A JP 9188098 A JP9188098 A JP 9188098A JP H11289345 A JPH11289345 A JP H11289345A
Authority
JP
Japan
Prior art keywords
cache
entry
address
routing
destination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP9188098A
Other languages
Japanese (ja)
Other versions
JP3239836B2 (en
Inventor
Youjiro Ara
庸二郎 荒
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP9188098A priority Critical patent/JP3239836B2/en
Publication of JPH11289345A publication Critical patent/JPH11289345A/en
Application granted granted Critical
Publication of JP3239836B2 publication Critical patent/JP3239836B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a router device and a transmission route, which is able to reduce a load of cache table deletion accompanying changes, including deletion of a routing table, and to provide a set method for a transmission route. SOLUTION: Accompanying a routing entry number, a network address and the like as an IP address for indicating the destination network is stored in a routing table 101, a host address is stored in a cache table 201 by accompanying a cache entry number and data, which indicate a coordinate relation between the routing entry number and the cache entry number are stored in a cache management table 301, and on the basis of the data for indicating a corresponding relation stored in this cache management table 301, an entry stored in the cache table is deleted at high speed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ルータ装置及び伝
達ルートの設定方法に関し、特に、高速にキャッシュテ
ーブルのエントリを削除することが可能なルータ装置及
び伝達ルートの設定方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a router device and a transmission route setting method, and more particularly to a router device and a transmission route setting method capable of deleting entries in a cache table at high speed.

【0002】[0002]

【従来の技術】現在、データ通信の需要の増大に伴い、
様々な通信技術が開発されているが、コンピュータ用の
通信を中心とした、局地的な通信ネットワークであるLo
cal Area Network (以下、単に、LANという。)が提
供され、多用されている。
2. Description of the Related Art At present, as the demand for data communication increases,
Although various communication technologies have been developed, Lo is a local communication network centered on communication for computers.
A cal Area Network (hereinafter simply referred to as LAN) is provided and frequently used.

【0003】また、LANの普及に伴って、複数のLA
Nを相互接続してネットワークの規模や効用を拡大する
ことが盛んになってきている。そして、これら、LAN
間を接続するものとして、リピータ、ブリッジ、ルー
タ、ゲートウェイといったインタフェース装置が開発さ
れている。
In addition, with the spread of LAN, a plurality of LA
It is becoming increasingly popular to interconnect networks N to expand the scale and utility of the network. And these, LAN
Interface devices such as repeaters, bridges, routers, and gateways have been developed to connect between them.

【0004】上記インタフェース装置の中でも、ルータ
は、異なる種類のLANを経由して接続することができ
ること、及びその構造がシンプルであることなどの理由
から、LAN間のインタフェース装置として主流を占め
るようになっている。
[0004] Among the above interface devices, routers have become mainstream interface devices between LANs because they can be connected via different types of LANs and their structures are simple. Has become.

【0005】ここで、従来のルータ装置について、図5
を参照して説明する。図5に、従来のルータ装置の構成
のブロック図を示す。
FIG. 5 shows a conventional router device.
This will be described with reference to FIG. FIG. 5 shows a block diagram of a configuration of a conventional router device.

【0006】図5に示される従来のルータ装置501
は、データを伝送する単位となるパケットの伝送を制御
するものである。
A conventional router device 501 shown in FIG.
Controls transmission of a packet which is a unit for transmitting data.

【0007】このルータ装置501は、主制御部502
と、3つのインタフェース部531、532、及び53
3と、スイッチ部504とから構成されている。
The router device 501 includes a main control unit 502
And three interface units 531, 532, and 53
3 and a switch unit 504.

【0008】主制御部502は、プロトコル処理部50
5と、ルーティングテーブル101と、フォワーディン
グ処理部506と、キャッシュ管理部507とから構成
されている。
The main control unit 502 includes a protocol processing unit 50
5, a routing table 101, a forwarding processing unit 506, and a cache management unit 507.

【0009】各インタフェース部は、キャッシュテーブ
ル201と、物理終端部508と、キャッシュ検索処理
部509とから構成されている。
Each interface unit includes a cache table 201, a physical termination unit 508, and a cache search processing unit 509.

【0010】ルータ装置501は、データを伝送する単
位となるパケットの伝送を制御するため、受信したパケ
ットの宛先アドレスに対する送信先インタフェースを決
定するが、この決定を、ルータ装置501の一か所で集
中的に行うと、その部分へのアクセスが集中するために
高いスループットを得ることができなくなってしまう。
The router 501 determines a destination interface for a destination address of a received packet in order to control the transmission of a packet as a unit for transmitting data. This determination is made in one place of the router 501. If the processing is performed intensively, a high throughput cannot be obtained because access to that part is concentrated.

【0011】従って、高スループットを必要とするバッ
クボーンネットワーク向けのルータ装置では、ルートの
検索処理、及びルーティングプロトコルの処理を分離す
るアーキテクチャをとる。
Therefore, a router device for a backbone network that requires high throughput employs an architecture that separates route search processing and routing protocol processing.

【0012】具体的には、送信インタフェースの決定
や、フォワーディングに伴うパケットのヘッダ処理は、
各インタフェース部に分散配置されたルート検索部で行
い、ルーティングプロトコルの処理、ルーティングテー
ブルの作成、各インタフェース部へのルーティング情報
の配布は、装置で一か所のプロトコル処理部で行われ
る。
More specifically, the determination of the transmission interface and the header processing of the packet accompanying the forwarding are as follows:
A route search unit distributed in each interface unit performs processing of a routing protocol, creation of a routing table, and distribution of routing information to each interface unit.

【0013】従って、このようなアーキテクチャの実現
例のひとつとして、図5に示されるように、宛先ホスト
アドレスと送信インタフェースとの対応を、各インタフ
ェース部に配置したキャッシュテーブル201として保
持する技術がある。
Therefore, as one example of realizing such an architecture, as shown in FIG. 5, there is a technique for holding the correspondence between the destination host address and the transmission interface as a cache table 201 arranged in each interface unit. .

【0014】ただし、図5に示されるようなルータ装置
501の場合、ある宛先アドレスあてのパケットが初め
てルータ装置501で受信された段階では、キャッシュ
テーブル201上にこのパケットの宛先アドレスに対す
る送信インタフェースの情報が無いため、主制御部50
2のフォワーディング処理部506において、ルーティ
ングテーブル101に格納されている情報の検索に基づ
いて、パケットの転送処理が行われる。
However, in the case of the router 501 as shown in FIG. 5, when a packet addressed to a certain destination address is received by the router 501 for the first time, the transmission table of the transmission interface corresponding to the destination address of this packet is stored in the cache table 201. Because there is no information, the main control unit 50
In the second forwarding processing unit 506, a packet transfer process is performed based on a search for information stored in the routing table 101.

【0015】この場合のパケットの転送処理動作につい
て説明する。フォワーディング処理部506では、イン
タフェース部から転送された受信パケットについて、ル
ーティングテーブル101の検索を行い、宛先IPアド
レスに対する、送信先インタフェース番号を決定する。
The packet transfer processing operation in this case will be described. The forwarding processing unit 506 searches the routing table 101 for the received packet transferred from the interface unit, and determines the destination interface number for the destination IP address.

【0016】そして、IPヘッダの更新処理を行った後
に、パケットを送信インタフェース部に転送する。ま
た、これと並行して、キャッシュ管理部507に対し
て、キャッシュテーブル201へのエントリ登録を要求
する。
After the IP header is updated, the packet is transferred to the transmission interface unit. At the same time, the cache management unit 507 is requested to register an entry in the cache table 201.

【0017】一旦、ある宛先アドレスについてのエント
リ情報がキャッシュテーブル201に登録されると、そ
れ以降の、そのアドレスのパケットについては、キャッ
シュテーブル201にヒットするため、インタフェース
部内のキャッシュ検索処理部509によりパケットが転
送される。
Once the entry information for a certain destination address is registered in the cache table 201, the subsequent packets of that address hit the cache table 201, so that the cache search processing unit 509 in the interface unit The packet is forwarded.

【0018】従って、図5に示されるような従来のルー
タ装置501においては、受信したパケットを効率的に
転送することが可能であるとしている。
Therefore, in the conventional router device 501 as shown in FIG. 5, it is assumed that the received packet can be efficiently transferred.

【0019】[0019]

【発明が解決しようとする課題】ルーティングテーブル
101に格納されている情報に変更があった場合の動作
について説明する。ルーティングテーブル101のエン
トリが削除された場合や、そのエントリの内容が変更さ
れた場合、そのエントリを参照して生成された、キャッ
シュテーブル201に格納されているキャッシュエント
リは削除しなければならない。
The operation when the information stored in the routing table 101 is changed will be described. When an entry in the routing table 101 is deleted or when the content of the entry is changed, the cache entry generated by referring to the entry and stored in the cache table 201 must be deleted.

【0020】従来、図5に示されるようなルータ装置5
01では、キャッシュの削除をルーティングテーブル1
01のエントリの、ネットワークアドレスとネットマス
クの情報に基づいて行っていた。
Conventionally, a router device 5 as shown in FIG.
01, delete the cache in the routing table 1
This is performed based on the information of the network address and the net mask of the entry No. 01.

【0021】このため、キャッシュ管理部507では、
キャッシュテーブル201のすべてのエントリについ
て、そのエントリの宛先ホストアドレスが、削除された
ルーティングテーブル101のエントリのネットワーク
アドレス、ネットマスクの範囲に適合するかを調べ、適
合したキャッシュエントリのみを選択して削除する必要
があり、その削除の負荷が大きいという問題点がある。
For this reason, in the cache management unit 507,
For all entries in the cache table 201, it is checked whether the destination host address of the entry matches the range of the network address and the netmask of the entry of the deleted routing table 101, and only the cache entry that matches is selected and deleted. And there is a problem that the load of the deletion is large.

【0022】この場合の削除動作に付いて、図5、図
6、及び図7を参照して説明する。図6に、図5に示さ
れるルーティングテーブル101に格納されるルーティ
ングテーブルの一例を示し、図7に、図5に示されるキ
ャッシュテーブル201に格納されるキャッシュテーブ
ルの一例を示す。
The deletion operation in this case will be described with reference to FIGS. 5, 6, and 7. FIG. FIG. 6 shows an example of a routing table stored in the routing table 101 shown in FIG. 5, and FIG. 7 shows an example of a cache table stored in the cache table 201 shown in FIG.

【0023】例えば、図6に示されるように、ルーティ
ングテーブル101に格納されている、ネットワークア
ドレスa.a.a.0 、ネットマスク 255.255.255.0のエント
リが削除される場合を考える。
For example, as shown in FIG. 6, consider the case where the entry of the network address aaa0 and the netmask 255.255.255.0 stored in the routing table 101 is deleted.

【0024】この場合、キャッシュ管理部507は、キ
ャッシュテーブル201のすべてのエントリに対して、
ネットマスク 255.255.255.0と宛先ホストアドレスとの
ANDを求め、これがネットワークアドレスa.a.a.0 と一
致するものを削除する。
In this case, the cache management unit 507 performs, for all entries in the cache table 201,
Between the netmask 255.255.255.0 and the destination host address
Find the AND and delete the one that matches the network address aaa0.

【0025】この場合、図7に示されるように、ネット
ワークアドレスa.a.a.1 、ネットワークアドレスa.a.a.
2 、及びネットワークアドレスa.a.a.3 が一致するもの
とされる。
In this case, as shown in FIG. 7, the network address aaa1 and the network address aaa
2 and the network address aaa3 match.

【0026】一般に、図5に示されるようなルータ装置
501では、スループットを向上させるために、キャッ
シュテーブル201のエントリ数を多くし、より多くの
宛先ホストに対して、キャッシュにヒットするようにす
る。その結果、従来のルータ装置では、キャッシュテー
ブル201のエントリ数が多い程、前述のような削除処
理の負荷が大きくなるという問題点を有している。
In general, in the router device 501 as shown in FIG. 5, in order to improve the throughput, the number of entries in the cache table 201 is increased so that more destination hosts hit the cache. . As a result, the conventional router device has a problem that the load of the above-described deletion processing increases as the number of entries in the cache table 201 increases.

【0027】本発明は、上記事情に鑑みなされたもの
で、ルーティングテーブルの削除を含む変更に伴う、キ
ャッシュテーブル削除の負荷を軽減することが可能なル
ータ装置及び伝達ルートの設定方法を提供することを目
的とする。
The present invention has been made in view of the above circumstances, and provides a router apparatus and a transmission route setting method capable of reducing the load of cache table deletion accompanying a change including deletion of a routing table. With the goal.

【0028】[0028]

【課題を解決するための手段】請求項1記載の発明は、
ネットワークを相互接続する場合に、データの伝達ルー
トを決めるルータ装置において、宛て先ネットワークを
表すIPアドレスとしてのネットワークアドレス、ネッ
トマスクに対する次の転送先ルータ装置のIPアドレス
としてのネクストホップアドレス、及び送信インタフェ
ース番号が格納されるルーティングテーブル手段と、宛
て先のホストのIPアドレスとしてのリンク層(MAC
ヘッダ)の情報、及び送信インタフェース番号が格納さ
れるキャッシュテーブル手段とを有し、前記ルーティン
グテーブル手段の各エントリにルーティングエントリ番
号が付与され、前記キャッシュテーブル手段の各エント
リにキャッシュエントリ番号が付与されると共に、前記
ルーティングエントリ番号と、前記キャッシュエントリ
番号との対応関係を表すデータを格納するキャッシュ管
理テーブル手段を有することを特徴とする。
According to the first aspect of the present invention,
When interconnecting networks, a router device that determines a data transmission route has a network address as an IP address representing a destination network, a next hop address as an IP address of a next transfer destination router device with respect to a netmask, and transmission. A routing table storing interface numbers, and a link layer (MAC) as an IP address of a destination host.
Header information and a transmission interface number are stored therein, and a routing entry number is assigned to each entry of the routing table means, and a cache entry number is assigned to each entry of the cache table means. And cache management table means for storing data indicating the correspondence between the routing entry number and the cache entry number.

【0029】請求項2記載の発明は、請求項1記載の発
明において、前記キャッシュテーブル手段へのキャッシ
ュ登録要求の受信により、前記キャッシュテーブル手段
にエントリを登録し、該キャッシュテーブル手段に登録
されたエントリの前記キャッシュエントリ番号と、前記
ルーティングテーブル手段上でヒットしたエントリの前
記ルーティングエントリ番号との対応関係を表すデータ
を生成して前記キャッシュ管理テーブル手段に出力する
キャッシュ管理手段を有することを特徴とする。
According to a second aspect of the present invention, in the first aspect of the present invention, an entry is registered in the cache table means upon receipt of a cache registration request to the cache table means, and the entry is registered in the cache table means. A cache management unit that generates data representing a correspondence relationship between the cache entry number of the entry and the routing entry number of the entry hit on the routing table unit and outputs the data to the cache management table unit. I do.

【0030】請求項3記載の発明は、請求項2記載の発
明において、前記ルーティングテーブル手段のエントリ
が削除された場合、及び前記ルーティングテーブル手段
のエントリの内容が変更される場合その他のルーティン
グプロトコルの処理を行う場合に、前記キャッシュ管理
手段にルーティングエントリ番号を含んだ削除要求を出
力するプロトコル処理手段を有することを特徴とする。
According to a third aspect of the present invention, in the second aspect of the present invention, when the entry of the routing table is deleted, and when the contents of the entry of the routing table are changed, other routing protocols are used. When performing the process, the cache management unit includes a protocol processing unit that outputs a deletion request including a routing entry number to the cache management unit.

【0031】請求項4記載の発明は、請求項3記載の発
明において、前記キャッシュ管理手段が、前記ルーティ
ングエントリ番号を含んだ削除要求が出力された場合
に、前記キャッシュ管理テーブル手段に格納されたデー
タを参照して、該削除要求に含まれるルーティングエン
トリ番号に対応するキャッシュエントリ番号を求め、該
求めたキャッシュエントリ番号に基づき、前記キャッシ
ュテーブル手段に格納されたエントリを削除することを
特徴とする。
According to a fourth aspect of the present invention, in the third aspect of the present invention, when the cache management means outputs a deletion request including the routing entry number, the cache management means stores the deletion request in the cache management table means. A cache entry number corresponding to the routing entry number included in the deletion request is obtained by referring to the data, and the entry stored in the cache table means is deleted based on the obtained cache entry number. .

【0032】請求項5記載の発明は、請求項1から4の
いずれかに記載の発明において、前記ホストのアドレス
宛の受信したパケットに対してフォワーディング処理を
行うフォワーディング処理手段を有することを特徴とす
る。
According to a fifth aspect of the present invention, in any one of the first to fourth aspects of the present invention, there is provided forwarding processing means for performing forwarding processing on a received packet addressed to the host address. I do.

【0033】請求項6記載の発明は、請求項5記載の発
明において、前記フォワーディング処理手段が、前記キ
ャッシュテーブル手段に格納されたホストのアドレスを
参照して、送信先のインタフェース手段が決定できなか
った場合に前記フォワーディング処理を行うことを特徴
とする。
According to a sixth aspect of the present invention, in the fifth aspect of the present invention, the forwarding processing means cannot determine a destination interface means by referring to a host address stored in the cache table means. The forwarding process is performed in the case where the error occurs.

【0034】請求項7記載の発明は、請求項5又は6に
記載の発明において、前記フォワーディング処理手段
が、受信したパケットについて、前記ルーティングテー
ブル手段の検索を行い、IPパケットの宛て先IPアド
レスに対するネクストホップアドレス、及び送信先イン
タフェース番号を決定することを特徴とする。
According to a seventh aspect of the present invention, in the invention of the fifth or sixth aspect, the forwarding processing means searches the received packet for the routing table means, and searches for the destination IP address of the IP packet. A next hop address and a destination interface number are determined.

【0035】請求項8記載の発明は、請求項7記載の発
明において、前記フォワーディング処理手段による前記
ルーティングテーブル手段の検索が、受信したパケット
の宛て先IPアドレスを、前記ルーティングテーブル手
段に格納された全てのエントリのネットマスクによりマ
スクし、マスク後の値をネットワークアドレスと比較
し、一致したものの中から、最もマスクのビット長さが
大きいものをヒットしたものとみなすことにより行われ
ることを特徴とする。
According to an eighth aspect of the present invention, in the invention of the seventh aspect, when the forwarding processing means searches the routing table means, the destination IP address of the received packet is stored in the routing table means. The method is characterized in that masking is performed by the net mask of all entries, the masked value is compared with the network address, and among the matched ones, the one having the largest bit length of the mask is regarded as a hit. I do.

【0036】請求項9記載の発明は、請求項5から8の
いずれかに記載の発明において、前記フォワーディング
処理手段が、IPヘッダの中の、TTL(Time T
oLive)フィールド、及びチェックサムの更新その
他のIPパケットのフォワーディングに伴うヘッダ処
理、及びEthernetのMACヘッダの付加を含む
リンクレイヤの処理を行うことを特徴とする。
According to a ninth aspect of the present invention, in the invention according to any one of the fifth to eighth aspects, the forwarding processing means includes a TTL (Time T
oLive) field and checksum update and other header processing associated with the forwarding of IP packets, and link layer processing including addition of an Ethernet MAC header.

【0037】請求項10記載の発明は、請求項5から9
のいずれかに記載の発明において、前記フォワーディン
グ処理手段が、受信したパケットについて、前記キャッ
シュテーブル手段に格納されたホストのアドレスを参照
して、送信先のインタフェース手段が決定できなかった
場合に、前記キャッシュ管理手段に対してエントリの登
録要求を出力することを特徴とする。
The invention according to claim 10 is the invention according to claims 5 to 9
In the invention according to any one of the above, the forwarding processing means refers to a host address stored in the cache table means for the received packet, and when the destination interface means cannot be determined, the forwarding processing means An entry registration request is output to the cache management means.

【0038】請求項11記載の発明は、請求項1から1
0のいずれかに記載の発明において、前記ルータ装置
が、前記ルーティングテーブル手段、及び前記キャッシ
ュ管理テーブル手段を具備する主制御手段と、前記キャ
ッシュテーブル手段を具備する、少なくとも1以上のイ
ンタフェース手段とを有することを特徴とする。
The eleventh aspect of the present invention is the first aspect of the present invention.
0, wherein the router device comprises: a main control unit including the routing table unit and the cache management table unit; and at least one or more interface units including the cache table unit. It is characterized by having.

【0039】請求項12記載の発明は、請求項11記載
の発明において、前記主制御手段と、前記少なくとも1
以上のインタフェース手段とのそれぞれを接続するスイ
ッチ手段を有することを特徴とする。
According to a twelfth aspect of the present invention, in accordance with the eleventh aspect, the main control means and the at least one
It is characterized by having switch means for connecting each of the above interface means.

【0040】請求項13記載の発明は、請求項11又は
12に記載の発明において、前記インタフェース手段
が、Ethernet、及び非同期転送モード(AT
M:Asynchronous Transfer M
ode)のうちの少なくともいずれか一方により構成さ
れることを特徴とする。
According to a thirteenth aspect of the present invention, in the first or the twelfth aspect of the present invention, the interface means includes an Ethernet and an asynchronous transfer mode (AT
M: Asynchronous Transfer M
mode).

【0041】請求項14記載の発明は、請求項1から1
3のいずれかに記載の発明において、受信したパケット
の宛て先ホストのIPアドレスを、前記キャッシュテー
ブル手段から検索して、送信するインタフェース手段を
決定するキャッシュ検索処理手段を有することを特徴と
する。
The invention according to claim 14 is the invention according to claims 1 to 1
3. The invention according to claim 3, further comprising cache search processing means for searching the cache table means for an IP address of a destination host of the received packet and determining an interface means to transmit.

【0042】請求項15記載の発明は、請求項14記載
の発明において、前記キャッシュ検索処理手段による、
前記キャッシュテーブル手段の検索が、受信したパケッ
トの宛て先ホストのIPアドレスを、前記キャッシュテ
ーブル手段のエントリと比較し、一致したものをヒット
したものとみなすことにより行われることを特徴とす
る。
According to a fifteenth aspect of the present invention, in accordance with the fourteenth aspect, the cache retrieval processing means
The search of the cache table means is performed by comparing the IP address of the destination host of the received packet with the entry of the cache table means, and considering a match as a hit.

【0043】請求項16記載の発明は、ルーティングエ
ントリ番号を伴って、宛て先ネットワークを表すIPア
ドレスとしてのネットワークアドレス、ネットマスクに
対する次の転送先ルータ装置のIPアドレスとしてのネ
クストホップアドレス、及び送信インタフェース番号が
格納されるルーティングテーブル手段と、キャッシュエ
ントリ番号を伴って、ホストのアドレスが格納されるキ
ャッシュテーブル手段と、前記ルーティングエントリ番
号と前記キャッシュエントリ番号との間の対応関係を表
すデータを格納するキャッシュ管理テーブル手段とを有
し、前記キャッシュ管理テーブル手段に格納された前記
対応関係を表すデータに基づいて、前記キャッシュテー
ブル手段に格納されたエントリを高速に削除することを
特徴とする。
According to a sixteenth aspect of the present invention, a network address as an IP address indicating a destination network, a next hop address as an IP address of a next transfer destination router device with respect to a netmask, and a transmission entry number are transmitted. Routing table means for storing an interface number, cache table means for storing a host address along with a cache entry number, and data representing a correspondence between the routing entry number and the cache entry number Cache management table means for deleting entries stored in the cache table means at a high speed based on data representing the correspondence stored in the cache management table means.

【0044】請求項17記載の発明は、ネットワークを
相互接続する場合のデータの伝達ルートの設定方法にお
いて、宛て先ネットワークを表すIPアドレスとしての
ネットワークアドレス、ネットマスクに対する次の転送
先ルータ装置のIPアドレスとしてのネクストホップア
ドレス、及び送信インタフェース番号をルーティングテ
ーブル手段に格納するルーティングテーブル格納工程
と、宛て先のホストのIPアドレスとしてのリンク層
(MACヘッダ)の情報、及び送信インタフェース番号
をキャッシュテーブル手段に格納するキャッシュテーブ
ル格納工程とを有し、前記ルーティングテーブル手段に
格納された各エントリにルーティングエントリ番号が付
与され、前記キャッシュテーブル手段に格納された各エ
ントリにキャッシュエントリ番号が付与されると共に、
前記ルーティングエントリ番号と、前記キャッシュエン
トリ番号との対応関係を表すデータをキャッシュ管理テ
ーブル手段に格納するキャッシュ管理テーブル格納工程
を有することを特徴とする。
According to a seventeenth aspect of the present invention, in the method for setting a data transmission route for interconnecting networks, a network address as an IP address representing a destination network and an IP address of a next transfer destination router device with respect to a netmask are provided. A routing table storing step of storing a next hop address and a transmission interface number as an address in a routing table means, and information of a link layer (MAC header) as an IP address of a destination host and a transmission table number in a cache table means A routing table number is assigned to each entry stored in the routing table means, and a cache entry is assigned to each entry stored in the cache table means. Along with the bird number is assigned,
A cache management table storing step of storing data representing the correspondence between the routing entry number and the cache entry number in a cache management table means.

【0045】請求項18記載の発明は、請求項17記載
の発明において、前記キャッシュテーブル手段へのキャ
ッシュ登録要求の受信により、前記キャッシュテーブル
手段にエントリを登録し、該キャッシュテーブル手段に
登録されたエントリの前記キャッシュエントリ番号と、
前記ルーティングテーブル手段上でヒットしたエントリ
の前記ルーティングエントリ番号との対応関係を表すデ
ータを生成して前記キャッシュ管理テーブル手段に出力
するキャッシュ管理工程を有することを特徴とする。
According to an eighteenth aspect of the present invention, in the invention according to the seventeenth aspect, upon receiving a cache registration request to the cache table means, an entry is registered in the cache table means, and the entry is registered in the cache table means. Said cache entry number of the entry;
A cache management step of generating data representing a correspondence relationship between an entry hit on the routing table means and the routing entry number and outputting the data to the cache management table means.

【0046】請求項19記載の発明は、請求項18記載
の発明において、前記ルーティングテーブル手段のエン
トリが削除された場合、及び前記ルーティングテーブル
手段のエントリの内容が変更される場合その他のルーテ
ィングプロトコルの処理を行う場合に、前記キャッシュ
管理工程にルーティングエントリ番号を含んだ削除要求
を出力するプロトコル処理工程を有することを特徴とす
る。
According to a nineteenth aspect of the present invention, in the invention according to the eighteenth aspect, when the entry of the routing table is deleted, and when the contents of the entry of the routing table are changed, other routing protocols are used. When performing the processing, the cache management step includes a protocol processing step of outputting a deletion request including a routing entry number.

【0047】請求項20記載の発明は、請求項19記載
の発明において、前記キャッシュ管理工程が、前記ルー
ティングエントリ番号を含んだ削除要求が出力された場
合に、前記キャッシュ管理テーブル手段に格納されたデ
ータを参照して、該削除要求に含まれるルーティングエ
ントリ番号に対応するキャッシュエントリ番号を求め、
該求めたキャッシュエントリ番号に基づき、前記キャッ
シュテーブル格納工程において格納されたエントリを削
除することを特徴とする。
According to a twentieth aspect of the present invention, in the invention according to the nineteenth aspect, when the cache management step outputs a deletion request including the routing entry number, the cache management table is stored in the cache management table means. With reference to the data, a cache entry number corresponding to the routing entry number included in the deletion request is obtained,
An entry stored in the cache table storing step is deleted based on the obtained cache entry number.

【0048】請求項21記載の発明は、請求項17から
20のいずれかに記載の発明において、前記ホストのア
ドレス宛の受信したパケットに対してフォワーディング
処理を行うフォワーディング処理工程を有することを特
徴とする。
According to a twenty-first aspect of the present invention, there is provided any one of the seventeenth to twentieth aspects of the present invention, further comprising a forwarding processing step of performing forwarding processing on a received packet addressed to the address of the host. I do.

【0049】請求項22記載の発明は、請求項21記載
の発明において、前記フォワーディング処理工程が、前
記キャッシュテーブル格納工程において格納されたホス
トのアドレスを参照して、送信先のインタフェース手段
が決定できなかった場合に前記フォワーディング処理を
行うことを特徴とする。
According to a twenty-second aspect of the present invention, in the invention according to the twenty-first aspect, the forwarding processing step can determine a destination interface means by referring to a host address stored in the cache table storing step. The forwarding process is performed when there is no forwarding process.

【0050】請求項23記載の発明は、請求項21又は
22に記載の発明において、前記フォワーディング処理
工程が、受信したパケットについて、前記ルーティング
テーブル格納工程においてルーティングテーブル手段に
格納された内容の検索を行い、IPパケットの宛て先I
Pアドレスに対するネクストホップアドレス、及び送信
先インタフェース番号を決定することを特徴とする。
According to a twenty-third aspect of the present invention, in the invention of the twenty-first or twenty-second aspect, the forwarding processing step searches the received packet for contents stored in the routing table means in the routing table storing step. To the destination I of the IP packet
A next hop address for the P address and a destination interface number are determined.

【0051】請求項24記載の発明は、請求項23記載
の発明において、前記フォワーディング処理工程におけ
る前記ルーティングテーブル手段の検索が、受信したパ
ケットの宛て先IPアドレスを、前記ルーティングテー
ブル手段に格納された全てのエントリのネットマスクに
よりマスクし、マスク後の値をネットワークアドレスと
比較し、一致したものの中から、最もマスクのビット長
さが大きいものをヒットしたものとみなすことにより行
われることを特徴とする。
According to a twenty-fourth aspect of the present invention, in the invention according to the twenty-third aspect, the routing table means in the forwarding processing step stores the destination IP address of the received packet in the routing table means. The method is characterized in that masking is performed by the net mask of all entries, the masked value is compared with the network address, and among the matched ones, the one having the largest bit length of the mask is regarded as a hit. I do.

【0052】請求項25記載の発明は、請求項21から
24のいずれかに記載の発明において、前記フォワーデ
ィング処理工程が、IPヘッダの中の、TTL(Tim
eTo Live)フィールド、及びチェックサムの更
新その他のIPパケットのフォワーディングに伴うヘッ
ダ処理、及びEthernetのMACヘッダの付加を
含むリンクレイヤの処理を行うことを特徴とする。
According to a twenty-fifth aspect of the present invention, in the invention according to any one of the twenty-first to twenty-fourth aspects, the forwarding processing step includes the steps of:
eTo Live) field and checksum update, and other header processing associated with the forwarding of IP packets, and link layer processing including addition of an Ethernet MAC header.

【0053】請求項26記載の発明は、請求項21から
25のいずれかに記載の発明において、前記フォワーデ
ィング処理工程が、受信したパケットについて、前記キ
ャッシュテーブル格納工程において格納されたホストの
アドレスを参照して、送信先のインタフェース手段が決
定できなかった場合に、前記キャッシュ管理工程に対し
てエントリの登録要求を出力することを特徴とする。
According to a twenty-sixth aspect of the present invention, in the invention according to any one of the twenty-first to twenty-fifth aspects, the forwarding processing step refers to a host address stored in the cache table storing step for the received packet. Then, when the interface means of the transmission destination cannot be determined, an entry registration request is output to the cache management step.

【0054】請求項27記載の発明は、請求項17から
26のいずれかに記載の発明において、前記伝達ルート
の設定方法が、前記ルーティングテーブル格納工程、及
び前記キャッシュ管理テーブル格納工程を具備する主制
御工程と、前記キャッシュテーブル格納工程を具備す
る、少なくとも1以上のインタフェース手段にデータを
送出するインタフェース工程とを有することを特徴とす
る。
The invention according to claim 27 is the invention according to any one of claims 17 to 26, wherein the transmission route setting method includes the routing table storing step and the cache management table storing step. It is characterized by comprising a control step and an interface step of sending data to at least one or more interface means, comprising the cache table storing step.

【0055】請求項28記載の発明は、請求項27記載
の発明において、前記主制御工程と前記少なくとも1以
上のインタフェース工程との間においてデータを入出力
するスイッチ工程を有することを特徴とする。
According to a twenty-eighth aspect of the present invention, in the twenty-seventh aspect, there is provided a switching step of inputting and outputting data between the main control step and the at least one or more interface steps.

【0056】請求項29記載の発明は、請求項27又は
28に記載の発明において、前記インタフェース工程に
おいてデータが送出される前記インタフェース手段が、
Ethernet、及び非同期転送モード(ATM:A
synchronous Transfer Mod
e)のうちの少なくともいずれか一方により構成される
ことを特徴とする。
According to a twenty-ninth aspect of the present invention, in the invention of the twenty-seventh or twenty-eighth aspect, the interface means for transmitting data in the interface step comprises:
Ethernet and asynchronous transfer mode (ATM: A
Synchronous Transfer Mod
e) at least one of the following.

【0057】請求項30記載の発明は、請求項17から
29のいずれかに記載の発明において、受信したパケッ
トの宛て先ホストのIPアドレスを、前記キャッシュテ
ーブル格納工程において格納された内容から検索して、
送信するインタフェース手段を決定するキャッシュ検索
処理工程を有することを特徴とする。
According to a thirtieth aspect of the present invention, in the invention according to any one of the seventeenth to twenty-ninth aspects, the IP address of the destination host of the received packet is searched from the contents stored in the cache table storing step. hand,
It is characterized by having a cache search processing step of determining an interface means to transmit.

【0058】請求項31記載の発明は、請求項30記載
の発明において、前記キャッシュ検索処理工程におけ
る、前記キャッシュテーブル手段の検索が、受信したパ
ケットの宛て先ホストのIPアドレスを、前記キャッシ
ュテーブル手段に格納されたエントリと比較し、一致し
たものをヒットしたものとみなすことにより行われるこ
とを特徴とする。
According to a thirty-first aspect of the present invention, in the thirty-third aspect of the present invention, in the cache search processing step, the search of the cache table means includes the step of: Is compared with the entry stored in the file, and a match is regarded as a hit.

【0059】請求項32記載の発明は、ルーティングエ
ントリ番号を伴って、宛て先ネットワークを表すIPア
ドレスとしてのネットワークアドレス、ネットマスクに
対する次の転送先ルータ装置のIPアドレスとしてのネ
クストホップアドレス、及び送信インタフェース番号を
格納するルーティングテーブル格納工程と、キャッシュ
エントリ番号を伴って、ホストのアドレスを格納するキ
ャッシュテーブル格納工程と、前記ルーティングエント
リ番号と前記キャッシュエントリ番号との間の対応関係
を表すデータを格納するキャッシュ管理テーブル格納工
程とを有し、前記キャッシュ管理テーブル格納工程にお
いて格納されたデータに基づいて、前記キャッシュテー
ブル格納工程において格納されたエントリを高速に削除
することを特徴とする。
According to a thirty-second aspect of the present invention, a network address as an IP address representing a destination network, a next hop address as an IP address of the next transfer destination router device with respect to a netmask, and a transmission entry number are transmitted. A routing table storing step of storing an interface number, a cache table storing step of storing a host address together with a cache entry number, and storing data representing a correspondence between the routing entry number and the cache entry number A cache management table storing step of deleting the entries stored in the cache table storing step at a high speed based on the data stored in the cache management table storing step. That.

【0060】次に、本発明の作用について、図1を参照
して説明する。図1に、本発明に係るルータ装置、及び
本発明に係る伝達ルートの設定方法の一実施形態が適用
されるルータ装置の一実施形態の構成のブロック図を示
す。ただし、図1において、前述の図5と同様の部材に
は、同じ番号を付す。
Next, the operation of the present invention will be described with reference to FIG. FIG. 1 is a block diagram showing a configuration of an embodiment of a router device according to the present invention and a router device to which an embodiment of a transmission route setting method according to the present invention is applied. However, in FIG. 1, the same members as those in FIG. 5 described above are denoted by the same reference numerals.

【0061】本発明では、主制御部2に具備されるルー
ティングテーブル101の各エントリに、ルーティング
エントリ番号(以下、ルーティングテーブルエントリ番
号とも言う。)を付与し、さらに、インタフェース部3
1、32、及び33に具備されるキャッシュテーブル2
01の各エントリに、キャッシュエントリ番号(以下、
キャッシュテーブルエントリ番号とも言う。)を付与し
ている。
In the present invention, a routing entry number (hereinafter, also referred to as a routing table entry number) is assigned to each entry of the routing table 101 provided in the main control unit 2, and furthermore, the interface unit 3.
Cache table 2 provided in 1, 32, and 33
01, each entry has a cache entry number (hereinafter referred to as a cache entry number).
Also called a cache table entry number. ).

【0062】また、主制御部2に、ルーティングエント
リ番号とキャッシュエントリ番号との対応関係を表すデ
ータを格納するためのキャッシュ管理テーブル301を
設けている。このキャッシュ管理テーブル301に格納
される、ルーティングエントリ番号とキャッシュエント
リ番号の対応関係の一例については図4に示す。
Further, the main control unit 2 is provided with a cache management table 301 for storing data indicating the correspondence between the routing entry number and the cache entry number. FIG. 4 shows an example of the correspondence between the routing entry number and the cache entry number stored in the cache management table 301.

【0063】従って、本発明によれば、従来のルータ装
置、及び伝達ルートの設定方法のように、ルーティング
テーブル101に格納されている内容の変更に対して、
キャッシュテーブル201のすべてのエントリについ
て、削除されたルーティングテーブルのエントリのマス
クとのANDを求め、ネットワークアドレスと比較する
というような検索処理をしなくても、キャッシュ管理テ
ーブル301に格納されている内容に基づいて、キャッ
シュテーブル201のエントリを高速に削除することが
できる。
Therefore, according to the present invention, when the contents stored in the routing table 101 are changed as in the conventional router and the method of setting the transmission route,
The contents stored in the cache management table 301 are obtained without performing an AND operation on all the entries of the cache table 201 with the mask of the entry of the deleted routing table and comparing with the network address. , The entry of the cache table 201 can be deleted at high speed.

【0064】[0064]

【発明の実施の形態】次に、本発明に係るルータ装置及
び伝達ルートの設定方法の実施形態について、図面を参
照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, an embodiment of a router device and a transmission route setting method according to the present invention will be described with reference to the drawings.

【0065】図1に、本発明に係るルータ装置の一実施
形態の構成のブロック図を示す。ただし以下の図1を用
いて行う、本発明に係るルータ装置の一実施形態の説明
は、本発明に係る伝達ルートの設定方法の一実施形態の
説明をも兼ねている。また、図1において、前述の図5
と同様な部材には、同じ番号を付す。
FIG. 1 is a block diagram showing the configuration of an embodiment of the router device according to the present invention. However, the description of one embodiment of the router device according to the present invention, which is made with reference to FIG. 1 below, also serves as the description of one embodiment of the transmission route setting method according to the present invention. Also, in FIG.
The same reference numerals are given to members similar to.

【0066】図1に示されるように、本発明に係るルー
タ装置1は、主制御部2と、3つのインタフェース部3
1、32、及び33と、スイッチ部4とから構成されて
いる。ここで、図1においては、インタフェース部とし
て、3つのインタフェース部が示されているが、本発明
に係るインタフェース部としては3つに限定されるもの
ではなく、少なくとも1以上のインタフェース部が具備
されていれば良い。
As shown in FIG. 1, a router device 1 according to the present invention comprises a main control unit 2 and three interface units 3
1, 32, and 33 and the switch unit 4. Here, in FIG. 1, three interface units are shown as the interface units, but the interface unit according to the present invention is not limited to three, and at least one interface unit is provided. I just want to.

【0067】図1に示されるように、主制御部2は、プ
ロトコル処理部5、ルーティングテーブル101、フォ
ワーディング処理部6、キャッシュ管理部7、及びキャ
ッシュ管理テーブル301とから構成されている。
As shown in FIG. 1, the main control unit 2 comprises a protocol processing unit 5, a routing table 101, a forwarding processing unit 6, a cache management unit 7, and a cache management table 301.

【0068】また、各インタフェース部31、32、及
び33はそれぞれ、物理終端部8、キャッシュ検索処理
部9、及びキャッシュテーブル201とから構成されて
いる。
Each of the interface units 31, 32, and 33 is composed of a physical termination unit 8, a cache search processing unit 9, and a cache table 201.

【0069】このように、図1に示されるルータ装置1
は、主制御部2、インタフェース部31、32、及び3
3、スイッチ部4より構成され、主制御部2と複数のイ
ンタフェース部31、32、及び33相互間は、スイッ
チ部4により接続される。
As described above, the router 1 shown in FIG.
Are the main control unit 2, the interface units 31, 32, and 3
3. The switch unit 4 is connected to the main control unit 2 and the plurality of interface units 31, 32, and 33.

【0070】また、主制御部2、インタフェース部3
1、32、及び33はそれぞれインタフェース番号を持
ち、スイッチ部4を通してパケットの転送が行われる。
外部インタフェースとしてのインタフェース部31、3
2、及び33は、物理層により、EthernetやATM 等各種
存在するが、以下の説明では、Ethernetを一例として用
いて説明する。
The main control unit 2 and the interface unit 3
Each of 1, 32, and 33 has an interface number, and packets are transferred through the switch unit 4.
Interface units 31 and 3 as external interfaces
There are various types 2 and 33 depending on the physical layer, such as Ethernet and ATM. In the following description, Ethernet will be described as an example.

【0071】次に、図1に示される各部材の動作につい
て説明する。プロトコル処理部5は、RIP やOSPFなどの
ルーティングプロトコルに基づき、他のルータ装置との
間でルーティング情報を交換することにより、ルーティ
ングテーブル101に格納されるべき情報(以下、この
情報のことをルーティングテーブルと記載する。)を作
成する。
Next, the operation of each member shown in FIG. 1 will be described. The protocol processing unit 5 exchanges routing information with another router device based on a routing protocol such as RIP or OSPF, thereby transmitting information to be stored in the routing table 101 (hereinafter, this information is referred to as routing information). Create a table.)

【0072】このルーティングテーブル101に格納さ
れるルーティングテーブルには、宛先ネットワークを表
すIPアドレス(ネットワークアドレス)、ネットマス
クに対する、次の転送先ルータのIPアドレス(ネクス
トホップアドレス)、送信インタフェース番号が記述さ
れる。また、各エントリ毎に、ルーティングテーブルエ
ントリ番号が付与される。
The routing table stored in the routing table 101 describes an IP address (network address) representing a destination network, an IP address (next hop address) of a next transfer destination router with respect to a netmask, and a transmission interface number. Is done. In addition, a routing table entry number is assigned to each entry.

【0073】ここで、上述のルーティングテーブル10
1に格納されるルーティングテーブルの一例について図
2を参照して説明する。図2に、図1に示されるルーテ
ィングテーブル101に格納されるルーティングテーブ
ルの一例を示す。
Here, the routing table 10 described above is used.
An example of the routing table stored in No. 1 will be described with reference to FIG. FIG. 2 shows an example of a routing table stored in the routing table 101 shown in FIG.

【0074】図2に示されるように、ルーティングテー
ブルとしては、宛先ネットワークアドレス、ネットマス
ク、ネクストホップアドレス、送信インタフェース番号
が格納され、これらにはそれぞれ、ルーティングテーブ
ルエントリ番号が付与されている。ただし、本発明にお
いては、図2に示されるように、4つのエントリのルー
ティングテーブルが格納される場合に限定されるもので
はなく、その他の任意の数のエントリのルーティングテ
ーブルが格納されていても良い。
As shown in FIG. 2, the routing table stores a destination network address, a netmask, a next hop address, and a transmission interface number, and each of them is assigned a routing table entry number. However, the present invention is not limited to the case where the routing table of four entries is stored as shown in FIG. 2, and the routing table of any other number of entries may be stored. good.

【0075】次に、図1に示されるフォワーディング処
理部6は、ある宛先IPアドレスあてのパケットを、こ
のルータ装置1 において最初に(初めて)フォワーディ
ングする際のフォワーディング処理を行う部分である。
Next, the forwarding processing section 6 shown in FIG. 1 is a section for performing a forwarding process when a packet addressed to a certain destination IP address is first (first-time) forwarded in the router 1.

【0076】このフォワーディング処理部6は、インタ
フェース部31、32、及び33のキャッシュテーブル
201を検索しても、送信先のインタフェースが決定で
きなかった場合にフォワーディング処理を行う。
The forwarding processing unit 6 performs a forwarding process when a destination interface cannot be determined even after searching the cache tables 201 of the interface units 31, 32, and 33.

【0077】フォワーディング処理部6は、インタフェ
ース部31、32、及び33から転送された受信パケッ
トについて、ルーティングテーブル101の検索を行
い、IPパケットの宛先IPアドレスに対するネクスト
ホップアドレス、送信先インタフェース番号を決定す
る。
The forwarding processing unit 6 searches the routing table 101 for the received packets transferred from the interface units 31, 32 and 33, and determines the next hop address and the destination interface number for the destination IP address of the IP packet. I do.

【0078】また、IPヘッダの中の、TTL(Time To Li
ve) フィールド、チェックサムの更新といったIPパケ
ットのフォワーディングに伴うヘッダ処理、及びEthern
etのMAC ヘッダの付加といった、リンクレイヤの処理を
行う。
Also, the TTL (Time To Li
ve) Header processing associated with the forwarding of IP packets, such as updating fields and checksums, and Ethernet
Perform link layer processing such as adding a MAC header to et.

【0079】さらに、スイッチ部4を介して、送信先の
インタフェース部31、32、及び33にパケットを転
送する。同時に、キャッシュ管理部7に対して、キャッ
シュエントリの登録要求を出力する。
Further, the packet is transferred to the interface units 31, 32 and 33 of the transmission destination via the switch unit 4. At the same time, it outputs a cache entry registration request to the cache management unit 7.

【0080】次に、インタフェース部31、32、及び
33は、図1に示されるように、物理終端部8、キャッ
シュ検索処理部9、キャッシュテーブル201から構成
される。
Next, as shown in FIG. 1, the interface units 31, 32, and 33 include a physical termination unit 8, a cache search processing unit 9, and a cache table 201.

【0081】キャッシュテーブル201は、宛先ホスト
のIPアドレスに対する、リンク層(MAC ヘッダ)の情
報、送信先インタフェース番号が記述されたキャッシュ
テーブルを格納する。
The cache table 201 stores a cache table in which link layer (MAC header) information and a destination interface number are described for the IP address of the destination host.

【0082】ここで、図1に示されるキャッシュテーブ
ル201に格納されるべき情報(以下、この情報のこと
をキャッシュテーブルという。)の一例について、図3
を参照して説明する。図3に、図1に示されるキャッシ
ュテーブル301に格納されるキャッシュテーブルの一
例を示す。
Here, FIG. 3 shows an example of information to be stored in the cache table 201 shown in FIG. 1 (hereinafter, this information is referred to as a cache table).
This will be described with reference to FIG. FIG. 3 shows an example of a cache table stored in the cache table 301 shown in FIG.

【0083】図3に示されるように、キャッシュテーブ
ルとしては、宛先ホストアドレス、MACヘッダ情報、
及び送信インタフェース番号が格納され、これらには、
キャッシュテーブルエントリ番号が付与されている。た
だし、本発明に係るルータ装置が格納するキャッシュテ
ーブルは、図3に示されるように、6つのエントリのキ
ャッシュテーブルに限定されるものではなく、そのエン
トリの数は任意に変更することが可能である。
As shown in FIG. 3, the cache table includes a destination host address, MAC header information,
And the transmission interface number are stored.
A cache table entry number is assigned. However, the cache table stored in the router device according to the present invention is not limited to the cache table of six entries as shown in FIG. 3, and the number of entries can be arbitrarily changed. is there.

【0084】このように、キャッシュテーブル201に
格納されるキャッシュテーブルも、前述のルーティング
テーブルと同様に、各エントリ毎にキャッシュテーブル
エントリ番号を持つ。
As described above, the cache table stored in the cache table 201 has a cache table entry number for each entry, similarly to the above-described routing table.

【0085】次に、キャッシュ検索処理部9は、パケッ
トの宛先IPアドレスを、キャッシュテーブル201に
格納されたキャッシュテーブルの中から検索し、送信先
インタフェースを決定する。
Next, the cache search processor 9 searches the cache table stored in the cache table 201 for the destination IP address of the packet, and determines the destination interface.

【0086】このとき、キャッシュテーブルのエントリ
に従って、MAC ヘッダの書き換えを行うほか、IPヘッ
ダの中の、TTL(Time To Live) フィールド、チェックサ
ムの更新といったIPパケットのフォワーディングに伴
う処理を行い、スイッチ部4により送信先インタフェー
スに転送する。
At this time, in addition to rewriting the MAC header in accordance with the entry of the cache table, processing associated with the forwarding of the IP packet, such as updating the TTL (Time To Live) field and checksum in the IP header, is performed. The data is transferred to the destination interface by the unit 4.

【0087】また、キャッシュ検索処理部9の検索の結
果、パケットの宛先IPアドレスが、キャッシュテーブ
ル201に存在しない場合、キャッシュ検索処理部9は
このパケットを主制御部2に転送する。
If the destination IP address of the packet does not exist in the cache table 201 as a result of the search by the cache search processing unit 9, the cache search processing unit 9 transfers this packet to the main control unit 2.

【0088】ここで、フォワーディング処理部5が行う
ルーティングテーブル101の検索方法と、キャッシュ
検索処理部9が行うキャッシュテーブル201の検索方
法との違いについて説明する。
Here, the difference between the method of searching the routing table 101 performed by the forwarding processing unit 5 and the method of searching the cache table 201 performed by the cache search processing unit 9 will be described.

【0089】ルーティングテーブル101に格納された
各エントリは、宛先IPアドレスとして、ネットワーク
のアドレスとネットマスクが記述されている。送信先イ
ンタフェースを決定する際は、受信パケットの宛先IP
アドレスを、各エントリのネットマスクによりマスク
し、マスク後の値をネットワークアドレスと比較し、一
致したものをヒットしたものとみなす。さらに、これを
すべてのエントリについて繰り返し、最もマスクのビッ
ト長が大きいものにヒットしたものとする。この検索方
法を、Longest Match という。
Each entry stored in the routing table 101 describes a network address and a net mask as a destination IP address. When determining the destination interface, the destination IP of the received packet
The address is masked by the netmask of each entry, the masked value is compared with the network address, and a match is regarded as a hit. Further, this is repeated for all entries, and it is assumed that a hit has been made to the one having the largest mask bit length. This search method is called Longest Match.

【0090】一方、キャッシュテーブル201の検索に
ついては、各エントリには、宛先IPアドレスとして、
ネットワークのアドレスでは無く、ホストのアドレスが
記述されている。
On the other hand, with respect to the search of the cache table 201, each entry has a destination IP address as
The address of the host is described instead of the address of the network.

【0091】従って、送信先インタフェースを決定する
際は、受信パケットの宛先IPアドレスを、エントリの
アドレスと比較し、一致したものをヒットしたものとみ
なす。この場合、ルーティングテーブル101では、同
じネットワークアドレス、ネットマスクのエントリに該
当するIPアドレスが、キャッシュテーブル201上で
は個々のエントリに別れるが、Longest Match を行う必
要が無いため、高速な検索が実現できる。
Therefore, when determining the destination interface, the destination IP address of the received packet is compared with the address of the entry, and a match is regarded as a hit. In this case, in the routing table 101, the IP address corresponding to the entry of the same network address and netmask is divided into individual entries in the cache table 201, but it is not necessary to perform Longest Match, so that a high-speed search can be realized. .

【0092】次に、キャッシュ管理部7は、フォワーデ
ィング処理部6からのキャッシュ登録要求を受信するこ
とにより、キャッシュテーブル201にエントリを登録
する。
Next, the cache management unit 7 registers the entry in the cache table 201 by receiving the cache registration request from the forwarding processing unit 6.

【0093】また、キャッシュ管理部7は、ルーティン
グテーブル101上でヒットしたエントリのルーティン
グテーブルエントリ番号と、そのときにキャッシュテー
ブル201に登録されたエントリのキャッシュエントリ
番号の対応関係を表すデータ(以下、キャッシュ管理テ
ーブルという。)を生成し、これをキャッシュ管理テー
ブル301に出力する。
The cache management unit 7 also stores data (hereinafter, referred to as a “relationship”) indicating the correspondence between the routing table entry number of the entry hit on the routing table 101 and the cache entry number of the entry registered in the cache table 201 at that time. A cache management table is generated and output to the cache management table 301.

【0094】ここで、図4に、図1に示されるキャッシ
ュ管理テーブル301に格納されるキャッシュエントリ
番号とルーティングエントリ番号との関係の一例を示
す。ただし、本発明は、図4に示されるような関係に限
定されるものではなく、その他の任意の関係をキャッシ
ュ管理テーブル301に格納することができる。
FIG. 4 shows an example of the relationship between the cache entry number stored in the cache management table 301 shown in FIG. 1 and the routing entry number. However, the present invention is not limited to the relationship shown in FIG. 4, and any other relationship can be stored in the cache management table 301.

【0095】前述のように、ルーティングテーブル10
1は、ネットワークアドレスとネットマスクに対するエ
ントリが格納され、キャッシュテーブル201は、ホス
トアドレスに対するエントリが格納されているため、1
つのルーティングテーブルエントリ番号に対して、複数
のキャッシュテーブルエントリ番号が対応する。
As described above, the routing table 10
1 stores an entry for a network address and a netmask, and the cache table 201 stores an entry for a host address.
A plurality of cache table entry numbers correspond to one routing table entry number.

【0096】次に、プロトコル処理部5のルーティング
プロトコルの処理により、ルーティングテーブル101
に格納されているエントリが削除された場合や、そのエ
ントリの内容が変更された場合の動作について説明す
る。
Next, the routing table 101 is processed by the processing of the routing protocol by the protocol processing unit 5.
The operation performed when the entry stored in the entry is deleted or the content of the entry is changed will be described.

【0097】プロトコル処理部5のルーティングプロト
コルの処理により、ルーティングテーブル101に格納
されているエントリが削除された場合や、そのエントリ
の内容が変更された場合、そのエントリを参照して生成
されたキャッシュテーブル201に格納されたキャッシ
ュエントリはすぐに削除しなければならない。
When an entry stored in the routing table 101 is deleted or the content of the entry is changed by the processing of the routing protocol of the protocol processing unit 5, a cache generated with reference to the entry is generated. The cache entry stored in the table 201 must be deleted immediately.

【0098】このため、プロトコル処理部5は、キャッ
シュ管理部7に、ルーティングテーブルエントリ番号を
含んだキャッシュ削除要求を送信する。
Therefore, the protocol processing unit 5 transmits a cache deletion request including the routing table entry number to the cache management unit 7.

【0099】この削除要求を入力したキャッシュ管理部
7は、キャッシュ管理テーブル301に格納されたデー
タに基づき、ルーティングテーブルエントリ番号に対す
るキャッシュテーブルエントリ番号を求める。そして、
この求めたキャッシュテーブルエントリ番号に基づい
て、キャッシュテーブル201のエントリの削除を行
う。
The cache management unit 7 that has received the deletion request obtains a cache table entry number for the routing table entry number based on the data stored in the cache management table 301. And
The entry of the cache table 201 is deleted based on the obtained cache table entry number.

【0100】次に、図1に示される本発明に係るルータ
装置の一実施形態の動作について、さらに詳細に説明す
る。また、以下の動作の説明は、本発明に係る伝達ルー
トの設定方法の一実施形態の説明も兼ねている。
Next, the operation of the embodiment of the router according to the present invention shown in FIG. 1 will be described in more detail. Further, the following description of the operation also serves as the description of an embodiment of the transmission route setting method according to the present invention.

【0101】まず、図1に示されるルータ装置1によ
り、インタフェース部32で受信したIPアドレス a.
a.a.1あてのパケットを転送する場合を考える。
First, the IP address received by the interface unit 32 by the router device 1 shown in FIG.
Consider the case where a packet destined for aa1 is transferred.

【0102】ここで、プロトコル処理部5の制御に基づ
き、ルーティングテーブル101上には、図2に示され
るように、ネットワークアドレスa.a.a.0 、ネットマス
ク 255.255.255.0のエントリが存在するものとする。
Here, based on the control of the protocol processing unit 5, it is assumed that an entry of the network address aaa0 and the netmask 255.255.255.0 exists on the routing table 101 as shown in FIG.

【0103】そして、このIPアドレス a.a.a.1あての
パケットが、初めてこのルータ装置1を経由する場合
は、キャッシュテーブル201には a.a.a.1のエントリ
は無い。
When the packet destined for the IP address aaa1 passes through the router 1 for the first time, there is no entry for aaa1 in the cache table 201.

【0104】そのため、このパケットは、スイッチ部4
を介してインタフェース部32から主制御部2に転送さ
れる。主制御部2のフォワーディング処理部6では、パ
ケットの宛先アドレスに対して、Longest Match によっ
て、ルーティングテーブル101の検索を行う。
Therefore, this packet is transmitted to the switch unit 4
Is transferred from the interface unit 32 to the main control unit 2 via The forwarding processing unit 6 of the main control unit 2 searches the routing table 101 for the destination address of the packet by Longest Match.

【0105】ルーティングテーブル101に格納されて
いるルーティングテーブルは、図2に示される通りであ
るため、ネットワークアドレスa.a.a.0 、ネットマスク
255.255.255.0のエントリにヒットすることとなる。
Since the routing table stored in the routing table 101 is as shown in FIG. 2, the network address aaa0, the netmask
It will hit the entry of 255.255.255.0.

【0106】そして、フォワーディング処理部6は、こ
のエントリに従って、MAC ヘッダの付加を行い、送信先
インタフェース番号を決定し、インタフェース部31に
転送する。同時に、フォワーディング処理部6は、キャ
ッシュエントリ登録要求をキャッシュ管理部7に送出す
る。
Then, the forwarding processing unit 6 adds a MAC header according to the entry, determines a transmission destination interface number, and transfers it to the interface unit 31. At the same time, the forwarding processing unit 6 sends a cache entry registration request to the cache management unit 7.

【0107】このキャッシュ管理部7に送出されるキャ
ッシュエントリ登録要求には、宛先ホストのIPアドレ
ス、MAC ヘッダの値、送信先インタフェース番号、およ
びルーティングテーブル番号が含まれている。
The cache entry registration request sent to the cache management unit 7 contains the IP address of the destination host, the value of the MAC header, the destination interface number, and the routing table number.

【0108】このキャッシュエントリ登録要求を入力し
たキャッシュ管理部7は、宛先IPアドレスに対する、
MAC ヘッダの値、送信先インタフェース番号を、図3に
示されるようにキャッシュテーブル201に登録する。
さらに、キャッシュ管理部7は、キャッシュ管理テーブ
ル301に対して、図4に示されるように、ヒットした
ルーティングテーブルエントリ番号と、生成したキャッ
シュエントリのキャッシュエントリ番号とを登録する。
The cache management unit 7 which has received the cache entry registration request inputs the cache entry registration request with respect to the destination IP address.
The value of the MAC header and the destination interface number are registered in the cache table 201 as shown in FIG.
Further, as shown in FIG. 4, the cache management unit 7 registers the hit routing table entry number and the cache entry number of the generated cache entry in the cache management table 301.

【0109】従って、図4に示されるように、ネットワ
ークアドレスa.a.a.0 、ネットマスク 255.255.255.0の
エントリにヒットするような、宛先IPアドレス a.a.
a.2、a.a.a.3 あてのパケットを転送することによっ
て、キャッシュ管理テーブル301には、ルーティング
テーブルエントリ番号に対して、複数のキャッシュエン
トリ番号が登録される。
Therefore, as shown in FIG. 4, the destination IP address aa which hits the entry of the network address aaa0 and the netmask 255.255.255.0
By forwarding the packets addressed to a.2 and aaa3, a plurality of cache entry numbers are registered in the cache management table 301 with respect to the routing table entry numbers.

【0110】次に、プロトコル処理部5によって、ルー
ティングテーブル上のエントリが削除される場合の動作
について説明する。ただし、削除されるエントリとし
て、ネットワークアドレスa.a.a.0 、ネットマスク 25
5.255.255.0が削除される場合を一例として挙げて説明
する。
Next, the operation when the entry on the routing table is deleted by the protocol processing unit 5 will be described. However, as entries to be deleted, network address aaa0, netmask 25
The case where 5.255.255.0 is deleted will be described as an example.

【0111】この場合、プロトコル処理部5はキャッシ
ュ管理部7にキャッシュエントリ削除要求を送信する。
キャッシュエントリ削除要求には、ルーティングテーブ
ルエントリ番号が含まれる。
In this case, the protocol processing unit 5 transmits a cache entry deletion request to the cache management unit 7.
The cache entry deletion request includes the routing table entry number.

【0112】キャッシュ管理部7は、キャッシュ管理テ
ーブル301から、図4に示されるルーティングテーブ
ルエントリ番号No.101を参照して、生成されたキャッシ
ュエントリの番号は、キャッシュエントリ番号No.201,2
04,205であることがわかるため、これらのエントリをキ
ャッシュテーブル201から削除する。
The cache management unit 7 refers to the routing table entry number No. 101 shown in FIG. 4 from the cache management table 301 and sets the generated cache entry number to the cache entry number No. 201,2.
Since these entries are found to be 04 and 205, these entries are deleted from the cache table 201.

【0113】従って、図1に示されるルータ装置1によ
れば、キャッシュテーブル201からキャッシュテーブ
ルのエントリを削除する場合であっても、キャッシュ管
理テーブル301に格納された、ルーティングエントリ
番号及びキャッシュエントリ番号との対応関係に基づい
てキャッシュテーブル201のエントリを削除すること
ができるので、その削除を高速、かつ、低い負荷で実現
することができる。
Therefore, according to the router device 1 shown in FIG. 1, even when an entry of the cache table is deleted from the cache table 201, the routing entry number and the cache entry number stored in the cache management table 301 are deleted. The entry in the cache table 201 can be deleted on the basis of the correspondence with the above, so that the deletion can be realized at high speed with a low load.

【0114】[0114]

【発明の効果】以上の説明から明らかなように、本発明
によれば、従来のルータ装置及び伝達ルートの設定方法
のように、ルーティングテーブルの削除を含む変更に対
して、キャッシュテーブルのすべてのエントリに対して
削除されたルーティングテーブルのエントリのマスクを
かけ、ネットワークアドレスと比較するというような検
索処理をしなくても、キャッシュ管理テーブル手段に格
納されたルーティングエントリ番号とキャッシュエント
リ番号との対応関係に基づいて、キャッシュテーブル手
段に格納されたエントリを高速に削除することが可能な
ルータ装置及び伝達ルートの設定方法を提供することが
できる。
As is apparent from the above description, according to the present invention, all the contents of the cache table are changed with respect to the change including the deletion of the routing table as in the conventional router and the method of setting the transmission route. Correspondence between the routing entry number stored in the cache management table means and the cache entry number without performing a search process such as applying the mask of the deleted routing table entry to the entry and comparing it with the network address. It is possible to provide a router device and a transmission route setting method capable of deleting entries stored in the cache table means at high speed based on the relationship.

【0115】さらに、キャッシュテーブル手段に格納さ
れたエントリの削除が、キャッシュ管理テーブル手段に
格納されたルーティングエントリ番号及びキャッシュエ
ントリ番号との対応関係に基づいて行うことができるた
め、ルーティングテーブルの削除を含む変更に伴う、キ
ャッシュテーブル削除の負荷を著るしく軽減することが
可能なルータ装置及び伝達ルートの設定方法を提供する
ことができる。
Further, the deletion of the entry stored in the cache table means can be performed based on the correspondence between the routing entry number stored in the cache management table means and the cache entry number. It is possible to provide a router device and a transmission route setting method capable of remarkably reducing the load of deleting a cache table due to a change including the above.

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

【図1】本発明に係るルータ装置の一実施形態のブロッ
ク図である。
FIG. 1 is a block diagram of an embodiment of a router device according to the present invention.

【図2】図1に示されるルータ装置が格納するルーティ
ングテーブルの一例を示す図である。
FIG. 2 is a diagram showing an example of a routing table stored in the router device shown in FIG.

【図3】図1に示されるルータ装置が格納するキャッシ
ュテーブルの一例を示す図である。
FIG. 3 is a diagram illustrating an example of a cache table stored in the router device illustrated in FIG. 1;

【図4】図1に示されるルータ装置が格納するルーティ
ングエントリ番号とキャッシュエントリ番号との対応関
係の一例を示す図である。
4 is a diagram illustrating an example of a correspondence relationship between a routing entry number and a cache entry number stored in the router device illustrated in FIG. 1;

【図5】従来のルータ装置の構成を示すブロック図であ
る。
FIG. 5 is a block diagram showing a configuration of a conventional router device.

【図6】図5に示されるルータ装置が格納するルーティ
ングテーブルの一例を示す図である。
6 is a diagram showing an example of a routing table stored in the router device shown in FIG.

【図7】図5に示されるルータ装置が格納するキャッシ
ュテーブルの一例を示す図である。
FIG. 7 is a diagram showing an example of a cache table stored by the router device shown in FIG.

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

1 ルータ装置 2 主制御部 4 スイッチ部 5 プロトコル処理部 6 フォワーディング処理部 7 キャッシュ管理部 8 物理終端部 9 キャッシュ検索処理部 31,32,33 インタフェース部 101 ルーティングテーブル 201 キャッシュテーブル 301 キャッシュ管理テーブル Reference Signs List 1 router device 2 main control unit 4 switch unit 5 protocol processing unit 6 forwarding processing unit 7 cache management unit 8 physical termination unit 9 cache search processing unit 31, 32, 33 interface unit 101 routing table 201 cache table 301 cache management table

Claims (32)

【特許請求の範囲】[Claims] 【請求項1】 ネットワークを相互接続する場合に、デ
ータの伝達ルートを決めるルータ装置において、 宛て先ネットワークを表すIPアドレスとしてのネット
ワークアドレス、ネットマスクに対する次の転送先ルー
タ装置のIPアドレスとしてのネクストホップアドレ
ス、及び送信インタフェース番号が格納されるルーティ
ングテーブル手段(101) と、 宛て先のホストのIPアドレスとしてのリンク層(MA
Cヘッダ)の情報、及び送信インタフェース番号が格納
されるキャッシュテーブル手段(201) とを有し、 前記ルーティングテーブル手段の各エントリにルーティ
ングエントリ番号が付与され、 前記キャッシュテーブル手段の各エントリにキャッシュ
エントリ番号が付与されると共に、 前記ルーティングエントリ番号と、前記キャッシュエン
トリ番号との対応関係を表すデータを格納するキャッシ
ュ管理テーブル手段(301) を有することを特徴とするル
ータ装置。
1. A router device for determining a data transmission route when interconnecting networks, a network address as an IP address representing a destination network, and a next as an IP address of a next transfer destination router device with respect to a netmask. A routing table means (101) for storing a hop address and a transmission interface number; and a link layer (MA) as an IP address of a destination host.
C header) information and a transmission interface number are stored therein. A routing entry number is assigned to each entry of the routing table means, and a cache entry is assigned to each entry of the cache table means. A router device comprising a cache management table means (301) for storing a number indicating the correspondence between the routing entry number and the cache entry number.
【請求項2】 前記キャッシュテーブル手段へのキャッ
シュ登録要求の受信により、前記キャッシュテーブル手
段にエントリを登録し、 該キャッシュテーブル手段に登録されたエントリの前記
キャッシュエントリ番号と、前記ルーティングテーブル
手段上でヒットしたエントリの前記ルーティングエント
リ番号との対応関係を表すデータを生成して前記キャッ
シュ管理テーブル手段に出力するキャッシュ管理手段
(7) を有することを特徴とする請求項1記載のルータ装
置。
2. Receiving a cache registration request to the cache table means, an entry is registered in the cache table means, the cache entry number of the entry registered in the cache table means, and Cache management means for generating data representing the correspondence between the hit entry and the routing entry number and outputting the data to the cache management table means
The router device according to claim 1, further comprising (7).
【請求項3】 前記ルーティングテーブル手段のエント
リが削除された場合、及び前記ルーティングテーブル手
段のエントリの内容が変更される場合その他のルーティ
ングプロトコルの処理を行う場合に、前記キャッシュ管
理手段にルーティングエントリ番号を含んだ削除要求を
出力するプロトコル処理手段(5) を有することを特徴と
する請求項2記載のルータ装置。
3. The cache management means has a routing entry number when an entry in the routing table means is deleted, when the contents of the entry in the routing table means are changed, or when another routing protocol is processed. 3. The router device according to claim 2, further comprising a protocol processing means (5) for outputting a deletion request including the following.
【請求項4】 前記キャッシュ管理手段が、 前記ルーティングエントリ番号を含んだ削除要求が出力
された場合に、 前記キャッシュ管理テーブル手段に格納されたデータを
参照して、該削除要求に含まれるルーティングエントリ
番号に対応するキャッシュエントリ番号を求め、 該求めたキャッシュエントリ番号に基づき、 前記キャッシュテーブル手段に格納されたエントリを削
除することを特徴とする請求項3記載のルータ装置。
4. When the cache management unit outputs a deletion request including the routing entry number, the cache management unit refers to data stored in the cache management table unit, and specifies a routing entry included in the deletion request. 4. The router device according to claim 3, wherein a cache entry number corresponding to the number is obtained, and the entry stored in the cache table means is deleted based on the obtained cache entry number.
【請求項5】 前記ホストのアドレス宛の受信したパケ
ットに対してフォワーディング処理を行うフォワーディ
ング処理手段(6) を有することを特徴とする請求項1か
ら4のいずれかに記載のルータ装置。
5. The router according to claim 1, further comprising forwarding processing means for performing forwarding processing on a received packet addressed to the address of the host.
【請求項6】 前記フォワーディング処理手段が、 前記キャッシュテーブル手段に格納されたホストのアド
レスを参照して、送信先のインタフェース手段が決定で
きなかった場合に前記フォワーディング処理を行うこと
を特徴とする請求項5記載のルータ装置。
6. The forwarding processing means, wherein the forwarding processing is performed by referring to a host address stored in the cache table means and when a destination interface means cannot be determined. Item 6. The router device according to item 5.
【請求項7】 前記フォワーディング処理手段が、 受信したパケットについて、前記ルーティングテーブル
手段の検索を行い、IPパケットの宛て先IPアドレス
に対するネクストホップアドレス、及び送信先インタフ
ェース番号を決定することを特徴とする請求項5又は6
に記載のルータ装置。
7. The forwarding processing means searches the received packet for the routing table means, and determines a next hop address for a destination IP address of an IP packet and a transmission destination interface number. Claim 5 or 6
2. The router device according to 1.
【請求項8】 前記フォワーディング処理手段による前
記ルーティングテーブル手段の検索が、 受信したパケットの宛て先IPアドレスを、前記ルーテ
ィングテーブル手段に格納された全てのエントリのネッ
トマスクによりマスクし、マスク後の値をネットワーク
アドレスと比較し、一致したものの中から、最もマスク
のビット長さが大きいものをヒットしたものとみなすこ
とにより行われることを特徴とする請求項7記載のルー
タ装置。
8. A search of said routing table means by said forwarding processing means, wherein a destination IP address of a received packet is masked by a netmask of all entries stored in said routing table means, and the value after masking is obtained. 8. The router device according to claim 7, wherein the comparison is performed with a network address, and among the matched addresses, the one having the largest mask bit length is regarded as a hit.
【請求項9】 前記フォワーディング処理手段が、 IPヘッダの中の、TTL(Time To Liv
e)フィールド、及びチェックサムの更新その他のIP
パケットのフォワーディングに伴うヘッダ処理、及びE
thernetのMACヘッダの付加を含むリンクレイ
ヤの処理を行うことを特徴とする請求項5から8のいず
れかに記載のルータ装置。
9. The TTL (Time To Live) in the IP header,
e) Field and checksum updates and other IP
Header processing associated with packet forwarding, and E
9. The router device according to claim 5, wherein a link layer process including addition of a MAC header of the Ethernet is performed.
【請求項10】 前記フォワーディング処理手段が、 受信したパケットについて、前記キャッシュテーブル手
段に格納されたホストのアドレスを参照して、送信先の
インタフェース手段が決定できなかった場合に、 前記キャッシュ管理手段に対してエントリの登録要求を
出力することを特徴とする請求項5から9のいずれかに
記載のルータ装置。
10. When the forwarding processing means cannot determine a destination interface means for the received packet by referring to a host address stored in the cache table means, the forwarding processing means 10. The router device according to claim 5, wherein the router device outputs an entry registration request.
【請求項11】 前記ルータ装置が、 前記ルーティングテーブル手段、及び前記キャッシュ管
理テーブル手段を具備する主制御手段(2) と、 前記キャッシュテーブル手段を具備する、少なくとも1
以上のインタフェース手段(31,32,33)とを有することを
特徴とする請求項1から10のいずれかに記載のルータ
装置。
11. The router device comprises: a main control means (2) comprising the routing table means and the cache management table means; and at least one comprising the cache table means.
The router device according to any one of claims 1 to 10, further comprising the above interface means (31, 32, 33).
【請求項12】 前記主制御手段と、前記少なくとも1
以上のインタフェース手段とのそれぞれを接続するスイ
ッチ手段(4) を有することを特徴とする請求項11記載
のルータ装置。
12. The main control means and the at least one
The router device according to claim 11, further comprising switch means (4) for connecting each of said interface means.
【請求項13】 前記インタフェース手段が、 Ethernet、及び非同期転送モード(ATM:A
synchronous Transfer Mod
e)のうちの少なくともいずれか一方により構成される
ことを特徴とする請求項11又は12に記載のルータ装
置。
13. The communication device according to claim 1, wherein the interface means includes an Ethernet and an asynchronous transfer mode (ATM: A
Synchronous Transfer Mod
13. The router device according to claim 11, wherein the router device is configured by at least one of e).
【請求項14】 受信したパケットの宛て先ホストのI
Pアドレスを、前記キャッシュテーブル手段から検索し
て、送信するインタフェース手段を決定するキャッシュ
検索処理手段(9) を有することを特徴とする請求項1か
ら13のいずれかに記載のルータ装置。
14. The I of the destination host of the received packet.
14. The router device according to claim 1, further comprising a cache search processing unit (9) for searching a P address from the cache table unit and determining an interface unit to transmit.
【請求項15】 前記キャッシュ検索処理手段による、
前記キャッシュテーブル手段の検索が、 受信したパケットの宛て先ホストのIPアドレスを、前
記キャッシュテーブル手段のエントリと比較し、一致し
たものをヒットしたものとみなすことにより行われるこ
とを特徴とする請求項14記載のルータ装置。
15. The cache search processing means,
The search of the cache table means is performed by comparing an IP address of a destination host of a received packet with an entry of the cache table means, and considering a match as a hit. 15. The router device according to 14.
【請求項16】 ルーティングエントリ番号を伴って、
宛て先ネットワークを表すIPアドレスとしてのネット
ワークアドレス、ネットマスクに対する次の転送先ルー
タ装置のIPアドレスとしてのネクストホップアドレ
ス、及び送信インタフェース番号が格納されるルーティ
ングテーブル手段と、 キャッシュエントリ番号を伴って、ホストのアドレスが
格納されるキャッシュテーブル手段と、 前記ルーティングエントリ番号と前記キャッシュエント
リ番号との間の対応関係を表すデータを格納するキャッ
シュ管理テーブル手段とを有し、 前記キャッシュ管理テーブル手段に格納された前記対応
関係を表すデータに基づいて、 前記キャッシュテーブル手段に格納されたエントリを高
速に削除することを特徴とするルータ装置。
16. With a routing entry number,
Routing table means for storing a network address as an IP address representing a destination network, a next hop address as an IP address of a next transfer destination router device with respect to a netmask, and a transmission interface number; A cache table storing the address of the host; and a cache management table storing data representing a correspondence between the routing entry number and the cache entry number. The cache table is stored in the cache management table. A router that deletes an entry stored in the cache table at a high speed based on the data representing the correspondence.
【請求項17】 ネットワークを相互接続する場合のデ
ータの伝達ルートの設定方法において、 宛て先ネットワークを表すIPアドレスとしてのネット
ワークアドレス、ネットマスクに対する次の転送先ルー
タ装置のIPアドレスとしてのネクストホップアドレ
ス、及び送信インタフェース番号をルーティングテーブ
ル手段に格納するルーティングテーブル格納工程と、 宛て先のホストのIPアドレスとしてのリンク層(MA
Cヘッダ)の情報、及び送信インタフェース番号をキャ
ッシュテーブル手段に格納するキャッシュテーブル格納
工程とを有し、 前記ルーティングテーブル手段に格納された各エントリ
にルーティングエントリ番号が付与され、 前記キャッシュテーブル手段に格納された各エントリに
キャッシュエントリ番号が付与されると共に、 前記ルーティングエントリ番号と、前記キャッシュエン
トリ番号との対応関係を表すデータをキャッシュ管理テ
ーブル手段に格納するキャッシュ管理テーブル格納工程
を有することを特徴とする伝達ルートの設定方法。
17. A method for setting a data transmission route when interconnecting networks, comprising: a network address as an IP address representing a destination network, and a next hop address as an IP address of a next transfer destination router device with respect to a netmask. And a routing table storing the transmission interface number in a routing table means, and a link layer (MA) as an IP address of a destination host.
A cache table storing information of the C header) and a transmission interface number in a cache table means, wherein a routing entry number is assigned to each entry stored in the routing table means, and stored in the cache table means. And a cache management table storing step of storing data representing the correspondence between the routing entry number and the cache entry number in a cache management table means, in addition to a cache entry number assigned to each of the entries. How to set the transmission route to be used.
【請求項18】 前記キャッシュテーブル手段へのキャ
ッシュ登録要求の受信により、前記キャッシュテーブル
手段にエントリを登録し、 該キャッシュテーブル手段に登録されたエントリの前記
キャッシュエントリ番号と、前記ルーティングテーブル
手段上でヒットしたエントリの前記ルーティングエント
リ番号との対応関係を表すデータを生成して前記キャッ
シュ管理テーブル手段に出力するキャッシュ管理工程を
有することを特徴とする請求項17記載の伝達ルートの
設定方法。
18. Receiving a cache registration request to the cache table means, an entry is registered in the cache table means, the cache entry number of the entry registered in the cache table means, and 18. The transmission route setting method according to claim 17, further comprising a cache management step of generating data representing a correspondence relationship between a hit entry and the routing entry number and outputting the data to the cache management table means.
【請求項19】 前記ルーティングテーブル手段のエン
トリが削除された場合、及び前記ルーティングテーブル
手段のエントリの内容が変更される場合その他のルーテ
ィングプロトコルの処理を行う場合に、前記キャッシュ
管理工程にルーティングエントリ番号を含んだ削除要求
を出力するプロトコル処理工程を有することを特徴とす
る請求項18記載の伝達ルートの設定方法。
19. When the entry of the routing table means is deleted, when the contents of the entry of the routing table means are changed, or when another routing protocol is processed, a routing entry number is added to the cache management step. 19. The transmission route setting method according to claim 18, further comprising a protocol processing step of outputting a deletion request including:
【請求項20】 前記キャッシュ管理工程が、 前記ルーティングエントリ番号を含んだ削除要求が出力
された場合に、 前記キャッシュ管理テーブル手段に格納されたデータを
参照して、該削除要求に含まれるルーティングエントリ
番号に対応するキャッシュエントリ番号を求め、 該求めたキャッシュエントリ番号に基づき、 前記キャッシュテーブル格納工程において格納されたエ
ントリを削除することを特徴とする請求項19記載の伝
達ルートの設定方法。
20. In the cache management step, when a deletion request including the routing entry number is output, a routing entry included in the deletion request is referred to by referring to data stored in the cache management table means. 20. The transmission route setting method according to claim 19, wherein a cache entry number corresponding to the number is obtained, and the entry stored in the cache table storing step is deleted based on the obtained cache entry number.
【請求項21】 前記ホストのアドレス宛の受信したパ
ケットに対してフォワーディング処理を行うフォワーデ
ィング処理工程を有することを特徴とする請求項17か
ら20のいずれかに記載の伝達ルートの設定方法。
21. The transmission route setting method according to claim 17, further comprising a forwarding process for performing a forwarding process on a received packet addressed to the host address.
【請求項22】 前記フォワーディング処理工程が、 前記キャッシュテーブル格納工程において格納されたホ
ストのアドレスを参照して、送信先のインタフェース手
段が決定できなかった場合に前記フォワーディング処理
を行うことを特徴とする請求項21記載の伝達ルートの
設定方法。
22. The forwarding process, wherein the forwarding process is performed by referring to the host address stored in the cache table storing process and determining the destination interface means. The method for setting a transmission route according to claim 21.
【請求項23】 前記フォワーディング処理工程が、 受信したパケットについて、前記ルーティングテーブル
格納工程においてルーティングテーブル手段に格納され
た内容の検索を行い、IPパケットの宛て先IPアドレ
スに対するネクストホップアドレス、及び送信先インタ
フェース番号を決定することを特徴とする請求項21又
は22に記載の伝達ルートの設定方法。
23. The forwarding processing step, for the received packet, searches the contents stored in the routing table means in the routing table storing step, a next hop address corresponding to a destination IP address of the IP packet, and a transmission destination 23. The method according to claim 21, wherein an interface number is determined.
【請求項24】 前記フォワーディング処理工程におけ
る前記ルーティングテーブル手段の検索が、 受信したパケットの宛て先IPアドレスを、前記ルーテ
ィングテーブル手段に格納された全てのエントリのネッ
トマスクによりマスクし、マスク後の値をネットワーク
アドレスと比較し、一致したものの中から、最もマスク
のビット長さが大きいものをヒットしたものとみなすこ
とにより行われることを特徴とする請求項23記載の伝
達ルートの設定方法。
24. The routing table search in the forwarding step, wherein a destination IP address of the received packet is masked by a netmask of all entries stored in the routing table, and a value after the masking is performed. 24. The transmission route setting method according to claim 23, wherein the transmission route setting is performed by comparing the address with a network address, and assuming that the bit having the largest mask bit length among the matched addresses is a hit.
【請求項25】 前記フォワーディング処理工程が、 IPヘッダの中の、TTL(Time To Liv
e)フィールド、及びチェックサムの更新その他のIP
パケットのフォワーディングに伴うヘッダ処理、及びE
thernetのMACヘッダの付加を含むリンクレイ
ヤの処理を行うことを特徴とする請求項21から24の
いずれかに記載の伝達ルートの設定方法。
25. The forwarding process, comprising: TTL (Time To Live) in an IP header.
e) Field and checksum updates and other IP
Header processing associated with packet forwarding, and E
25. The transmission route setting method according to claim 21, wherein a link layer process including addition of a MAC header of the Ethernet is performed.
【請求項26】 前記フォワーディング処理工程が、 受信したパケットについて、前記キャッシュテーブル格
納工程において格納されたホストのアドレスを参照し
て、送信先のインタフェース手段が決定できなかった場
合に、 前記キャッシュ管理工程に対してエントリの登録要求を
出力することを特徴とする請求項21から25のいずれ
かに記載の伝達ルートの設定方法。
26. If the forwarding processing step fails to determine the destination interface means for the received packet with reference to the host address stored in the cache table storing step, the cache managing step 26. The transmission route setting method according to claim 21, wherein an entry registration request is output to the communication route.
【請求項27】 前記伝達ルートの設定方法が、 前記ルーティングテーブル格納工程、及び前記キャッシ
ュ管理テーブル格納工程を具備する主制御工程と、 前記キャッシュテーブル格納工程を具備する、少なくと
も1以上のインタフェース手段にデータを送出するイン
タフェース工程とを有することを特徴とする請求項17
から26のいずれかに記載の伝達ルートの設定方法。
27. A method of setting a transmission route, comprising: a main control step including the routing table storing step and the cache management table storing step; and at least one interface means including the cache table storing step. 18. An interface step for transmitting data.
27. The method for setting a transmission route according to any one of claims to 26.
【請求項28】 前記主制御工程と前記少なくとも1以
上のインタフェース工程との間においてデータを入出力
するスイッチ工程を有することを特徴とする請求項27
記載の伝達ルートの設定方法。
28. The apparatus according to claim 27, further comprising a switch step of inputting / outputting data between said main control step and said at least one interface step.
How to set the described transmission route.
【請求項29】 前記インタフェース工程においてデー
タが送出される前記インタフェース手段が、 Ethernet(登録商標)、及び非同期転送モード
(ATM:Asynchronous Transfe
r Mode)のうちの少なくともいずれか一方により
構成されることを特徴とする請求項27又は28に記載
の伝達ルートの設定方法。
29. The interface means through which data is transmitted in the interface step includes an Ethernet (registered trademark) and an asynchronous transfer mode (ATM: Asynchronous Transfer).
29. The method of setting a transmission route according to claim 27, wherein the method is configured by at least one of (r Mode).
【請求項30】 受信したパケットの宛て先ホストのI
Pアドレスを、前記キャッシュテーブル格納工程におい
て格納された内容から検索して、送信するインタフェー
ス手段を決定するキャッシュ検索処理工程を有すること
を特徴とする請求項17から29のいずれかに記載の伝
達ルートの設定方法。
30. The I of the destination host of the received packet.
30. The transmission route according to claim 17, further comprising a cache search processing step of searching for a P address from contents stored in the cache table storage step and determining an interface unit to transmit. How to set.
【請求項31】 前記キャッシュ検索処理工程におけ
る、前記キャッシュテーブル手段の検索が、 受信したパケットの宛て先ホストのIPアドレスを、前
記キャッシュテーブル手段に格納されたエントリと比較
し、一致したものをヒットしたものとみなすことにより
行われることを特徴とする請求項30記載の伝達ルート
の設定方法。
31. In the cache search process, the search of the cache table means compares an IP address of a destination host of a received packet with an entry stored in the cache table means, and hits a match if the IP address is matched. 31. The method for setting a transmission route according to claim 30, wherein the setting is performed by assuming that the transmission route has been performed.
【請求項32】 ルーティングエントリ番号を伴って、
宛て先ネットワークを表すIPアドレスとしてのネット
ワークアドレス、ネットマスクに対する次の転送先ルー
タ装置のIPアドレスとしてのネクストホップアドレ
ス、及び送信インタフェース番号を格納するルーティン
グテーブル格納工程と、 キャッシュエントリ番号を伴って、ホストのアドレスを
格納するキャッシュテーブル格納工程と、 前記ルーティングエントリ番号と前記キャッシュエント
リ番号との間の対応関係を表すデータを格納するキャッ
シュ管理テーブル格納工程とを有し、 前記キャッシュ管理テーブル格納工程において格納され
たデータに基づいて、前記キャッシュテーブル格納工程
において格納されたエントリを高速に削除することを特
徴とする伝達ルートの設定方法。
32. With a routing entry number,
A routing table storing step of storing a network address as an IP address representing a destination network, a next hop address as an IP address of a next transfer destination router device with respect to a netmask, and a transmission interface number; A cache table storing step of storing a host address; and a cache management table storing step of storing data representing a correspondence between the routing entry number and the cache entry number. A method for setting a transmission route, wherein the entry stored in the cache table storing step is deleted at a high speed based on the stored data.
JP9188098A 1998-04-03 1998-04-03 Router device and transmission route setting method Expired - Fee Related JP3239836B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9188098A JP3239836B2 (en) 1998-04-03 1998-04-03 Router device and transmission route setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9188098A JP3239836B2 (en) 1998-04-03 1998-04-03 Router device and transmission route setting method

Publications (2)

Publication Number Publication Date
JPH11289345A true JPH11289345A (en) 1999-10-19
JP3239836B2 JP3239836B2 (en) 2001-12-17

Family

ID=14038886

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9188098A Expired - Fee Related JP3239836B2 (en) 1998-04-03 1998-04-03 Router device and transmission route setting method

Country Status (1)

Country Link
JP (1) JP3239836B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001290718A (en) * 2000-04-07 2001-10-19 Nec Corp Cache table managing device in router, and program recording medium
US6947423B2 (en) 2000-07-13 2005-09-20 Nec Corporation MAC address notification method in MPOA systems and MPOA server for the same
US6993036B2 (en) 2000-01-26 2006-01-31 Nec Corporation ATM exchange and method of operating the same
JP2007221514A (en) * 2006-02-17 2007-08-30 Sii Network Systems Kk Router device and route determination method for router device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993036B2 (en) 2000-01-26 2006-01-31 Nec Corporation ATM exchange and method of operating the same
JP2001290718A (en) * 2000-04-07 2001-10-19 Nec Corp Cache table managing device in router, and program recording medium
US6993031B2 (en) 2000-04-07 2006-01-31 Nec Corporation Cache table management device for router and program recording medium thereof
US6947423B2 (en) 2000-07-13 2005-09-20 Nec Corporation MAC address notification method in MPOA systems and MPOA server for the same
JP2007221514A (en) * 2006-02-17 2007-08-30 Sii Network Systems Kk Router device and route determination method for router device

Also Published As

Publication number Publication date
JP3239836B2 (en) 2001-12-17

Similar Documents

Publication Publication Date Title
US5487064A (en) Network layer packet structure
US6950434B1 (en) Arrangement for searching packet policies using multi-key hash searches in a network switch
US6798788B1 (en) Arrangement determining policies for layer 3 frame fragments in a network switch
US6650642B1 (en) Network relaying apparatus and network relaying method capable of high-speed routing and packet transfer
JP4057067B2 (en) Mechanism for replacing packet fields in multi-layer switching network elements
US6683885B1 (en) Network relaying apparatus and network relaying method
US6654701B2 (en) Method and apparatus for measuring protocol performance in a data communication network
JP2739023B2 (en) Packet transmission system
US7359394B2 (en) Method and apparatus for bridging between networks
US6842453B1 (en) Method and apparatus for implementing forwarding decision shortcuts at a network switch
US6157644A (en) Method and apparatus for accelerating OSI layer 3 routers
US6546391B1 (en) High-speed lookup method and high-speed lookup apparatus
US7346059B1 (en) Header range check hash circuit
US20050171937A1 (en) Memory efficient hashing algorithm
US6944130B1 (en) Method and apparatus for determining a layer 2 path in a switched network
US6658003B1 (en) Network relaying apparatus and network relaying method capable of high-speed flow detection
JP3371006B2 (en) Table search method and router device
JP2003209567A (en) System and method for switching packet, routing device, packet data, and method for generating the packet data
EP1297665B1 (en) Apparatus and method for efficient hashing in networks
US6807176B1 (en) Arrangement for switching data packets in a network switch based on subnet identifier
JP2845208B2 (en) Address resolution device
KR20040046424A (en) Internet Protocol address lookup system based on 3 layer table architecture and method thereof
JP3239836B2 (en) Router device and transmission route setting method
US6671277B1 (en) Network relaying apparatus and network relaying method capable of high quality transfer of packets under stable service quality control
JP3228249B2 (en) Router device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010911

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071012

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081012

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091012

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091012

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101012

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees