Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3487342B2 - Transfer destination information search method - Google Patents
[go: Go Back, main page]

JP3487342B2 - Transfer destination information search method - Google Patents

Transfer destination information search method

Info

Publication number
JP3487342B2
JP3487342B2 JP36804899A JP36804899A JP3487342B2 JP 3487342 B2 JP3487342 B2 JP 3487342B2 JP 36804899 A JP36804899 A JP 36804899A JP 36804899 A JP36804899 A JP 36804899A JP 3487342 B2 JP3487342 B2 JP 3487342B2
Authority
JP
Japan
Prior art keywords
transfer destination
destination information
packet
address
entry
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP36804899A
Other languages
Japanese (ja)
Other versions
JP2001186184A (en
Inventor
雄一 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP36804899A priority Critical patent/JP3487342B2/en
Publication of JP2001186184A publication Critical patent/JP2001186184A/en
Application granted granted Critical
Publication of JP3487342B2 publication Critical patent/JP3487342B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、インターネットプ
ロトコル層のスイッチ機能を有するATMスイッチ、パ
ケット交換機、マルチプロトコルルータに関し、特にネ
ットワーク層のスイッチ機能を有するATMスイッチ、
パケット交換機、マルチプロトコルルータにおけるIP
アドレスより転送先情報を得るためのルーティング部に
おける転送先情報検索方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an ATM switch, a packet switch, and a multi-protocol router having an internet protocol layer switch function, and more particularly to an ATM switch having a network layer switch function,
IP in packet switches and multi-protocol routers
The present invention relates to a transfer destination information retrieval method in a routing unit for obtaining transfer destination information from an address.

【0002】[0002]

【従来の技術】IPv4パケットとIPv6が混在した
ネットワークに使用される、インターネットプロトコル
層のスイッチ機能を有するATMスイッチ、パケット交
換機、マルチプロトコルルータのルーティング部におい
ては、IPv4パケットから転送先情報を得る部分とI
Pv6パケットから転送先情報を得る部分は別個に備わ
っていた。
2. Description of the Related Art In a routing unit of an ATM switch, a packet switch, or a multi-protocol router having an Internet protocol layer switch function, which is used in a network in which IPv4 packets and IPv6 coexist, a portion for obtaining transfer destination information from an IPv4 packet. And I
A part for obtaining the transfer destination information from the Pv6 packet was provided separately.

【0003】図18を参照すると、従来のルーティング
部は、パケットヘッダ処理部901、アドレス検索テー
ブル902、転送先テーブル検索部903、転送先情報
テーブル904、転送先情報検索部905、アドレス検
索テーブル906、転送先テーブル検索情報生成部90
7、転送先情報テーブル908、転送先情報検索部90
9、スイッチ910及びパケット送信処理部911を備
える。
Referring to FIG. 18, the conventional routing unit includes a packet header processing unit 901, an address search table 902, a transfer destination table search unit 903, a transfer destination information table 904, a transfer destination information search unit 905, and an address search table 906. , Transfer destination table search information generation unit 90
7, transfer destination information table 908, transfer destination information search unit 90
9, a switch 910, and a packet transmission processing unit 911.

【0004】アドレス検索テーブル902、転送先テー
ブル検索部903、転送先情報テーブル904及び転送
先情報検索部905は、IPv4パケットを処理し、ア
ドレス検索テーブル906、転送先テーブル検索情報生
成部907、転送先情報テーブル908及び転送先情報
検索部909はIPv6パケットを処理する。
The address search table 902, the transfer destination table search unit 903, the transfer destination information table 904, and the transfer destination information search unit 905 process the IPv4 packet, and the address search table 906, the transfer destination table search information generation unit 907, and the transfer The destination information table 908 and the transfer destination information search unit 909 process the IPv6 packet.

【0005】パケットヘッダ処理部901は、スイッチ
2(図1)から或いは直接回線インタフェース1−n
(図1)から入力した図16、17に示される受信IP
v4パケット又は受信IPv6パケットをパケット送信
処理部911に出力し、受信IPパケットのヘッダを基
に、v4/v6識別ビットを生成してスイッチ910に
出力し、及びIPアドレス(IPv4アドレス又IPv
6アドレス)を転送先テーブル検索情報生成部903、
907に出力する。
The packet header processing unit 901 is connected to the switch 2 (FIG. 1) or the direct line interface 1-n.
Received IP shown in FIGS. 16 and 17 input from (FIG. 1)
The v4 packet or the received IPv6 packet is output to the packet transmission processing unit 911, the v4 / v6 identification bit is generated based on the header of the received IP packet and output to the switch 910, and the IP address (IPv4 address or IPv4 address
6 addresses), the transfer destination table search information generation unit 903,
Output to 907.

【0006】転送先テーブル検索情報生成部903は、
IPv4アドレスをキーにして、アドレス検索テーブル
902から転送先情報テーブルエントリ番号を得て、転
送先情報テーブルエントリ番号を転送先情報検索部90
5に出力する。この際、アドレス検索テーブル902の
同一エントリにIPv4アドレスと転送先情報テーブル
エントリ番号を一緒に記憶させておいてもよいし、アド
レス検索テーブル902をエントリ番号をそのエントリ
番号のエントリに記憶されているIPv4アドレスに対
応した転送先情報テーブルエントリ番号としたCAM(C
ontents Addressable Memory)としてもよい。
The transfer destination table search information generator 903
The transfer destination information table entry number is obtained from the address search table 902 using the IPv4 address as a key, and the transfer destination information table entry number is used as the transfer destination information search unit 90.
Output to 5. At this time, the IPv4 address and the transfer destination information table entry number may be stored together in the same entry of the address search table 902, or the entry number of the address search table 902 is stored in the entry of that entry number. CAM (C which is the transfer destination information table entry number corresponding to the IPv4 address
ontents Addressable Memory).

【0007】転送先情報検索部905は入力した転送先
情報テーブルエントリ番号に記憶されている転送先情報
を転送先情報テーブル904より検索して、その転送先
情報をスイッチ910に出力する。転送先情報は、転送
先のルータ等が接続されている自装置の回線インタフェ
ースの識別子等の情報である。例えば、OC3−ATM
(Optical Channel 3-Asynchronous Transfer Mode)の場
合であれば、OC3インターフェース番号とATMのV
PI/VCIの値である。
The transfer destination information retrieval unit 905 searches the transfer destination information table 904 for the transfer destination information stored in the input transfer destination information table entry number, and outputs the transfer destination information to the switch 910. The transfer destination information is information such as the identifier of the line interface of the own device to which the transfer destination router or the like is connected. For example, OC3-ATM
In the case of (Optical Channel 3-Asynchronous Transfer Mode), the OC3 interface number and ATM V
It is the value of PI / VCI.

【0008】転送先テーブル検索情報生成部907は、
IPv6アドレスをキーにして、アドレス検索テーブル
9026ら転送先情報テーブルエントリ番号を得て、転
送先情報テーブルエントリ番号を転送先情報検索部90
9に出力する。この際、アドレス検索テーブル906の
同一エントリにIPv6アドレスと転送先情報テーブル
エントリ番号を一緒に記憶させておいてもよいし、アド
レス検索テーブル906をエントリ番号をそのエントリ
番号のエントリに記憶されているIPv6アドレスに対
応した転送先情報テーブルエントリ番号としたCAMと
してもよい。
The transfer destination table search information generator 907
The transfer destination information table entry number is obtained from the address search table 9026 using the IPv6 address as a key, and the transfer destination information table entry number is used as the transfer destination information search unit 90.
Output to 9. At this time, the IPv6 address and the transfer destination information table entry number may be stored together in the same entry of the address search table 906, or the entry number of the address search table 906 may be stored in the entry of that entry number. The CAM may be the transfer destination information table entry number corresponding to the IPv6 address.

【0009】転送先情報検索部909は入力した転送先
情報テーブルエントリ番号に記憶されている転送先情報
を転送先情報テーブル908より検索して、その転送先
情報をスイッチ910に出力する。
The transfer destination information retrieval unit 909 searches the transfer destination information table 908 for the transfer destination information stored in the input transfer destination information table entry number, and outputs the transfer destination information to the switch 910.

【0010】スイッチ910はパケットヘッダ処理部9
01から入力したv4/v6識別ビットに応じて転送先
情報検索部905又は転送先情報検索部909からの転
送先情報を選択して、パケット送信処理部911に出力
する。
The switch 910 is a packet header processing unit 9
The transfer destination information from the transfer destination information retrieval unit 905 or the transfer destination information retrieval unit 909 is selected according to the v4 / v6 identification bit input from 01 and output to the packet transmission processing unit 911.

【0011】[0011]

【発明が解決しようとする課題】このように、図18に
示す従来のルーティング部の転送先情報検索方式は、I
Pv4パケットを処理する部分とIPv6パケットを処
理する部分を備えるため、回路規模が増大していた。ま
た、アドレス検索テーブル902とアドレス検索テーブ
ル906の間の容量の配分、転送先情報テーブル904
と転送先情報テーブル908の間の容量の配分を柔軟に
設定することが出来なかった。従って、これらのテーブ
ルのための容量を大きく見積もらなければ成らず、必要
容量が増大していた。
As described above, the transfer destination information retrieval method of the conventional routing unit shown in FIG.
Since the Pv4 packet processing part and the IPv6 packet processing part are provided, the circuit scale is increased. Also, the capacity distribution between the address search table 902 and the address search table 906, the transfer destination information table 904
It was not possible to flexibly set the allocation of the capacity between the transfer destination information table 908 and the transfer destination information table 908. Therefore, the capacity for these tables has to be largely estimated, and the required capacity has increased.

【0012】本発明は、回路規模が削減され、各種テー
ブルの容量配分を柔軟に設定することを可能とする転送
先情報検索方式を提供することを目的とする。
It is an object of the present invention to provide a transfer destination information retrieval system which has a reduced circuit scale and can flexibly set capacity distribution of various tables.

【0013】[0013]

【0014】[0014]

【課題を解決するための手段】本発明による転送先情報
検索方式は、転送先IPパケットより転送先情報を得る
転送先情報検索方式において、転送先IPv4パケット
より転送先情報を得る回路と転送先IPv6パケットよ
り転送先情報を得る回路を共通化した転送先情報検索方
式において、受信したIPパケットのヘッダから該パケ
ットがIPv4パケットであるのかIPv6パケットで
あるのかを識別し、識別結果をv4/v6識別ビットと
して出力すると共に前記ヘッダからIPアドレスを抽出
して出力するパケットヘッダ処理部と、転送先IPv4
アドレスに対してはv4/v6識別ビットと4つの転送
先v4アドレスを1エントリに記憶し、転送先IPv6
アドレスに対してはv4/v6識別ビットと1つの転送
先IPv6アドレスを1エントリに記憶したアドレス検
索テーブルと、転送先IPv4アドレスに対しては4つ
の転送先情報を1エントリに記憶し、転送先IPv6ア
ドレスに対しては1つの転送先情報を1エントリに記憶
した転送先情報テーブルと、前記v4/v6識別ビット
及び前記IPアドレスをキーにして前記アドレス検索テ
ーブルより転送先情報テーブルエントリ番号とエントリ
内位置情報を検索する転送先テーブル検索情報生成部
と、前記転送先情報テーブルエントリ番号及び前記エン
トリ内位置情報をキーにして前記転送先情報を検索する
転送先情報検索部と、を備えることを特徴とする。
The transfer destination information retrieval method according to the present invention obtains transfer destination information from a transfer destination IP packet.
In the transfer destination information retrieval method, the transfer destination IPv4 packet
Circuit to obtain more transfer destination information and transfer destination IPv6 packet
Transfer destination information retrieval method with a common circuit for obtaining transfer destination information
In the expression, it is identified from the header of the received IP packet whether the packet is an IPv4 packet or an IPv6 packet, the identification result is output as a v4 / v6 identification bit, and the IP address is extracted and output from the header. Packet header processing unit and transfer destination IPv4
For the address, the v4 / v6 identification bit and the four transfer destination v4 addresses are stored in one entry, and the transfer destination IPv6 is stored.
An address lookup table that stores v4 / v6 identification bits and one transfer destination IPv6 address in one entry for addresses, and four transfer destination information in one entry for transfer destination IPv4 addresses, and transfer destination For the IPv6 address, a transfer destination information table in which one transfer destination information is stored in one entry, and a transfer destination information table entry number and an entry from the address search table using the v4 / v6 identification bit and the IP address as keys A transfer destination table search information generation unit for searching internal position information; and a transfer destination information search unit for searching the transfer destination information using the transfer destination information table entry number and the entry internal position information as keys. Characterize.

【0015】 また、本発明による転送先情報検索方式
は、転送先IPパケットより転送先情報を得る転送先情
報検索方式において、転送先IPv4パケットより転送
先情報を得る回路と転送先IPv6パケットより転送先
情報を得る回路を共通化した転送先情報検索方式におい
て、受信したIPパケットのヘッダから該パケットがI
Pv4パケットであるのかIPv6パケットであるのか
を識別し、識別結果をv4/v6識別ビットとして出力
すると共に前記ヘッダからIPアドレスを抽出して出力
するパケットヘッダ処理部と、転送先IPv4アドレス
に対してはv4/v6識別ビットと1つの転送先v4ア
ドレスを1エントリに記憶し、転送先IPv6アドレス
に対してはv4/v6識別ビットと4分割された転送先
IPv6アドレスを4エントリに記憶したアドレス検索
テーブルと、転送先IPv4アドレスに対しては1つの
転送先情報を1エントリに記憶し、転送先IPv6アド
レスに対しては1つの転送先情報を1エントリに記憶し
た転送先情報テーブルと、前記v4/v6識別ビット及
び前記IPアドレスをキーにして前記アドレス検索テー
ブルより転送先情報テーブルエントリ番号を検索する転
送先テーブル検索情報生成部と、前記転送先情報テーブ
ルエントリ番号をキーにして前記転送先情報を検索する
転送先情報検索部と、を備えることを特徴とする。
Further, the transfer destination information retrieval method according to the present invention uses the transfer destination information obtained from the transfer destination IP packet.
In the information retrieval method, transfer is performed from the transfer destination IPv4 packet
Transfer destination from the circuit to obtain destination information and transfer destination IPv6 packet
A transfer destination information retrieval method with a common circuit for obtaining information
Then, from the header of the received IP packet,
A packet header processing unit that identifies whether it is a Pv4 packet or an IPv6 packet, outputs the identification result as a v4 / v6 identification bit, and extracts and outputs an IP address from the header, and a transfer destination IPv4 address Stores the v4 / v6 identification bit and one transfer destination v4 address in one entry, and for the transfer destination IPv6 address, stores the v4 / v6 identification bit and the transfer destination IPv6 address divided into four in four entries A table, a transfer destination information table in which one transfer destination information is stored in one entry for the transfer destination IPv4 address, and one transfer destination information is stored in one entry for the transfer destination IPv6 address; / V6 identification bit and the IP address as a key A transfer destination table search information generating unit searching a table entry number, characterized in that it comprises a and a transfer destination information retrieval unit for retrieving the forwarding destination information to the transfer destination information table entry number as a key.

【0016】 更に、本発明による転送先情報検索方式
は、転送先IPパケットより転送先情報を得る転送先情
報検索方式において、転送先IPv4パケットより転送
先情報を得る回路と転送先IPv6パケットより転送先
情報を得る回路を共通化した転送先情報検索方式におい
て、受信したIPパケットのヘッダから該パケットがI
Pv4パケットであるのかIPv6パケットであるのか
を識別し、識別結果をv4/v6識別ビットとして出力
すると共に前記ヘッダからIPアドレスを抽出して出力
するパケットヘッダ処理部と、転送先IPv4アドレス
に対してはv4/v6識別ビットと4つの転送先v4ア
ドレスと1つの転送先情報テーブルエントリ番号を1エ
ントリに記憶し、転送先IPv6アドレスに対してはv
4/v6識別ビットと1つの転送先IPv6アドレスと
1つの転送先情報テーブルエントリ番号を1エントリに
記憶したアドレス検索テーブルと、転送先IPv4アド
レスに対しては1つの転送先情報を1エントリに記憶
し、転送先IPv6アドレスに対しては1つの転送先情
報を1エントリに記憶した転送先情報テーブルと、前記
v4/v6識別ビット及び前記IPアドレスをキーにし
て前記アドレス検索テーブルより前記転送先情報テーブ
ルエントリ番号とエントリオフセットを検索する転送先
テーブル検索情報生成部と、前記転送先情報テーブルエ
ントリ番号と前記エントリオフセットをキーにして前記
転送先情報を検索する転送先情報検索部と、を備えるこ
とを特徴とする。
Further, according to the transfer destination information retrieval method of the present invention, the transfer destination information is obtained from the transfer destination IP packet.
In the information retrieval method, transfer is performed from the transfer destination IPv4 packet
Transfer destination from the circuit to obtain destination information and transfer destination IPv6 packet
A transfer destination information retrieval method with a common circuit for obtaining information
Then, from the header of the received IP packet,
A packet header processing unit that identifies whether it is a Pv4 packet or an IPv6 packet, outputs the identification result as a v4 / v6 identification bit, and extracts and outputs an IP address from the header, and a transfer destination IPv4 address Stores a v4 / v6 identification bit, four transfer destination v4 addresses and one transfer destination information table entry number in one entry, and stores v4 for the transfer destination IPv6 address.
4 / v6 identification bit, one transfer destination IPv6 address, and one transfer destination information table entry number stored in one entry, and one transfer destination information for one transfer destination IPv4 address stored in one entry However, for the destination IPv6 address, the destination information table in which one destination information is stored in one entry, and the destination information from the address search table using the v4 / v6 identification bit and the IP address as a key A transfer destination table search information generation unit that searches a table entry number and an entry offset; and a transfer destination information search unit that searches the transfer destination information using the transfer destination information table entry number and the entry offset as keys. Is characterized by.

【0017】 更に、本発明による転送先情報検索方式
は、転送先IPパケットより転送先情報を得る転送先情
報検索方式において、転送先IPv4パケットより転送
先情報を得る回路と転送先IPv6パケットより転送先
情報を得る回路を共通化した転送先情報検索方式におい
て、受信したIPパケットのヘッダから該パケットがI
Pv4パケットであるのかIPv6パケットであるのか
を識別し、識別結果をv4/v6識別ビットとして出力
すると共に前記ヘッダからIPアドレスを抽出して出力
するパケットヘッダ処理部と、転送先IPv4アドレス
に対してはv4/v6識別ビットと1つの転送先v4ア
ドレスと転送先情報テーブルエントリ番号を1エントリ
に記憶し、転送先IPv6アドレスに対してはv4/v
6識別ビットと4分割された転送先IPv6アドレスを
4エントリに記憶し、転送先情報テーブルエントリ番号
を前記4エントリのうちの1エントリに記憶したアドレ
ス検索テーブルと、転送先IPv4アドレスに対しては
1つの転送先情報を1エントリに記憶し、転送先IPv
6アドレスに対しては1つの転送先情報を1エントリに
記憶した転送先情報テーブルと、前記v4/v6識別ビ
ット及び前記IPアドレスをキーにして前記アドレス検
索テーブルより前記転送先情報テーブルエントリ番号を
検索する転送先テーブル検索情報生成部と、前記転送先
情報テーブルエントリ番号をキーにして前記転送先情報
を検索する転送先情報検索部と、を備えることを特徴と
する。
Further, according to the transfer destination information retrieval method of the present invention, the transfer destination information is obtained from the transfer destination IP packet.
In the information retrieval method, transfer is performed from the transfer destination IPv4 packet
Transfer destination from the circuit to obtain destination information and transfer destination IPv6 packet
A transfer destination information retrieval method with a common circuit for obtaining information
Then, from the header of the received IP packet,
A packet header processing unit that identifies whether it is a Pv4 packet or an IPv6 packet, outputs the identification result as a v4 / v6 identification bit, and extracts and outputs an IP address from the header, and a transfer destination IPv4 address Stores the v4 / v6 identification bit, one transfer destination v4 address and the transfer destination information table entry number in one entry, and v4 / v for the transfer destination IPv6 address.
For the destination IPv6 address and the address search table in which the 6 identification bits and the transfer destination IPv6 address divided into 4 are stored in 4 entries, and the transfer destination information table entry number is stored in one of the 4 entries, One transfer destination information is stored in one entry, and the transfer destination IPv6 is stored.
For 6 addresses, a transfer destination information table in which one transfer destination information is stored in one entry, and the transfer destination information table entry number from the address search table using the v4 / v6 identification bit and the IP address as a key A transfer destination table search information generation unit for searching and a transfer destination information search unit for searching for the transfer destination information using the transfer destination information table entry number as a key are provided.

【0018】本発明によるインターネットプロトコル層
のスイッチ機能を有する装置は、上記の転送先情報検索
方式を備えることを特徴とする。
An apparatus having an Internet protocol layer switch function according to the present invention is characterized by having the above-mentioned transfer destination information retrieval system.

【0019】[0019]

【発明の実施の形態】[実施形態1]図1を参照する
と、IPv4パケットとIPv6が混在したネットワー
クに使用される、インターネットプロトコル層のスイッ
チ機能を有するATMスイッチ、パケット交換機、マル
チプロトコルルータ等は、回線インタフェース1−1、
1−2、1−n、スイッチ2、スイッチ制御部3、ルー
ティング部4を備える。通信網から回線インタフェース
1−iを介して入力されたIPパケット等は、スイッチ
2を介して、或いは直接ルーティン部4に入力され、転
送先情報と共にルーティング部4から出力され、スイッ
チ制御部3に制御により転送先情報に従った回線インタ
フェース部1−jを介して通信網の目的のルータ等に出
力される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS [Embodiment 1] Referring to FIG. 1, an ATM switch, a packet switch, a multi-protocol router, etc., having an Internet protocol layer switch function, which is used in a network in which IPv4 packets and IPv6 are mixed, , Line interface 1-1,
1-2, 1-n, a switch 2, a switch control unit 3, and a routing unit 4. An IP packet or the like input from the communication network via the line interface 1-i is input to the routine unit 4 via the switch 2 or directly, and is output from the routing unit 4 together with the transfer destination information to the switch control unit 3. It is output to the target router of the communication network or the like via the line interface unit 1-j according to the transfer destination information under control.

【0020】図2を参照すると、ルーティング部4は、
パケットヘッダ処理部101、アドレス検索テーブル1
02、転送先テーブル検索情報生成部103、転送先情
報テーブル104、転送先情報検索部105及びパケッ
ト処理部106を備える。
Referring to FIG. 2, the routing unit 4 is
Packet header processing unit 101, address search table 1
02, a transfer destination table search information generation unit 103, a transfer destination information table 104, a transfer destination information search unit 105, and a packet processing unit 106.

【0021】図3を参照すると、アドレス検索テーブル
102には、転送先IPv6アドレスと転送先IPv4
アドレスが混在して記憶されている。転送先IPv6ア
ドレスは図17から明らかなように128ビットより構
成される。転送先IPv6アドレス122が記憶される
エントリ128には、v4/v6識別子121がv6で
あることを示す0の値をとって記憶される。転送先IP
v4アドレスは図16から明らかなように32ビットよ
り構成され、1つのエントリに4つの転送先IPv4ア
ドレス124、125、126、127が記憶される。
IPv4アドレスが記憶されるエントリ129には、v
4/v6識別子123がv4であることを示す1の値を
とって記憶される。
Referring to FIG. 3, the address search table 102 includes a transfer destination IPv6 address and a transfer destination IPv4.
Addresses are mixed and stored. The transfer destination IPv6 address is composed of 128 bits as is apparent from FIG. The entry 128 in which the transfer destination IPv6 address 122 is stored stores a value of 0 indicating that the v4 / v6 identifier 121 is v6. Transfer destination IP
As is apparent from FIG. 16, the v4 address is composed of 32 bits, and one transfer destination IPv4 address 124, 125, 126, 127 is stored in one entry.
In the entry 129 that stores the IPv4 address, v
The 4 / v6 identifier 123 is stored with a value of 1 indicating that it is v4.

【0022】図4を参照すると、転送先情報テーブル1
04には、転送先IPv6アドレス122に対応した転
送先情報141と転送先IPv4アドレス124、12
5、126、127に対応した転送先情報142、14
3、144、145が混在して記憶される。転送先IP
v6アドレスに対しては1つの転送先情報141が1つ
のエントリ146に記憶され、転送先IPv4アドレス
に対しては4つの転送先情報142、143、144、
145が1つのエントリ147に記憶される。
Referring to FIG. 4, transfer destination information table 1
In 04, transfer destination information 141 and transfer destination IPv4 addresses 124 and 12 corresponding to the transfer destination IPv6 address 122 are included.
Transfer destination information 142, 14 corresponding to 5, 126, 127
3, 144, and 145 are mixed and stored. Transfer destination IP
One transfer destination information 141 is stored in one entry 146 for the v6 address, and four transfer destination information 142, 143, 144 for the transfer destination IPv4 address.
145 is stored in one entry 147.

【0023】パケットヘッダ処理部101は、IPv4
パケット又はIPv6パケットといった受信IPパケッ
トを入力し、受信パケットをパケット送信処理部106
に出力し、受信IPパケットのヘッダ内の情報より受信
パケットがIPv4パケットであるのか又はIPv6パ
ケットであるのかを識別し、識別結果に応じてv4/v
6識別ビットを生成して転送先テーブル検索情報生成部
103に出力し、及び識別結果に応じてIPパケットか
らIPv4アドレス又はIPv6アドレスをIPアドレ
スとして転送先テーブル検索情報生成部103に出力す
る。
The packet header processing unit 101 uses IPv4
A received IP packet such as a packet or an IPv6 packet is input, and the received packet is processed by the packet transmission processing unit 106.
The received packet is output to the IPv4 packet and the information in the header of the received IP packet is used to identify whether the received packet is an IPv4 packet or an IPv6 packet, and v4 / v is determined according to the identification result.
6 identification bits are generated and output to the transfer destination table search information generation unit 103, and the IPv4 address or the IPv6 address from the IP packet is output to the transfer destination table search information generation unit 103 as an IP address according to the identification result.

【0024】転送先テーブル検索情報生成部103は、
入力したv4/v6識別子がv6であることを示す0で
あるときには、図5(a)に示すフォーマットのデー
タ、すなわち、0の値のv4/v6識別子と入力した転
送先IPv6アドレスより成るデータをキーにして、そ
のデータが記憶されているエントリ番号をアドレス検索
テーブル202から検索し、その検索されたエントリ番
号を転送先情報テーブルエントリ番号として転送先情報
検索部105に出力する。また、エントリ内位置情報を
1にして転送先情報検索部105に出力する。
The transfer destination table search information generator 103
When the input v4 / v6 identifier is 0 indicating that it is v6, the data of the format shown in FIG. 5A, that is, the data composed of the v4 / v6 identifier having a value of 0 and the input destination IPv6 address is set. By using the key as a key, the address search table 202 is searched for the entry number in which the data is stored, and the searched entry number is output to the transfer destination information search unit 105 as the transfer destination information table entry number. Also, the in-entry position information is set to 1 and output to the transfer destination information searching unit 105.

【0025】また、転送先テーブル検索情報生成部10
3は、入力したv4/v6識別子がv4であることを示
す1であるときには、まず、図5(b)に示すフォーマ
ットのデータ、すなわち1の値のv4/v6識別子と入
力した転送先IPv4アドレスとマスクデータよりなる
データが記憶されているエントリをアドレス検索テーブ
ル202から検索し、検索されたならばそのデータが記
憶されているエントリ番号を転送先情報テーブルエント
リ番号として転送先情報検索部105に出力すると共に
値が1であるエントリ内位置情報を転送先情報検索部1
05に出力する。なお、検索時においてマスクデータの
位置のビットの一致/不一致は判定しない。図5(b)
に示すフォーマットのデータをキーにしたときにそのデ
ータを記憶するエントリが検索できないときには、図5
(c)、(d)、(e)に示すフォーマットをキーにし
て同様な動作を繰り返す。検索されたときには、検索さ
れたアドレス検索テーブル202のエントリ番号を転送
先情報テーブルエントリ番号として、転送先IPv4ア
ドレスの位置に対応する識別子をエントリ内位置情報と
して転送先情報検索部105に出力する。
Further, the transfer destination table search information generating section 10
When 3 is 1 indicating that the input v4 / v6 identifier is v4, first, data in the format shown in FIG. 5B, that is, the v4 / v6 identifier having a value of 1 and the input destination IPv4 address The address search table 202 is searched for an entry in which data consisting of the mask data and the mask data is stored. If found, the entry number in which the data is stored is transferred to the transfer destination information search unit 105 as the transfer destination information table entry number. The transfer destination information search unit 1 outputs the position information in the entry that is output and has a value of 1.
Output to 05. It should be noted that during search, it is not judged whether the bits at the mask data position match or do not match. Figure 5 (b)
When the entry storing the data cannot be searched when the data of the format shown in FIG.
Similar operations are repeated using the formats shown in (c), (d), and (e) as keys. When it is searched, the entry number of the searched address search table 202 is output to the transfer destination information searching unit 105 as the transfer destination information table entry number, and the identifier corresponding to the position of the transfer destination IPv4 address as the in-entry position information.

【0026】転送先情報検索部105は、入力した転送
先情報テーブルエントリ番号を転送先情報テーブル10
4のエントリ番号として、入力したエントリ内位置情報
をエントリ内の転送先情報の位置のオフセットの指標と
して用いて、転送先情報を転送先情報テーブル104か
ら検索して、検索された転送先情報をパケット送信処理
部106に出力する。
The transfer destination information retrieval unit 105 uses the input transfer destination information table entry number as the transfer destination information table 10.
As the entry number of 4, the input position information in the entry is used as an index of the offset of the position of the transfer destination information in the entry, the transfer destination information is searched from the transfer destination information table 104, and the searched transfer destination information is obtained. It is output to the packet transmission processing unit 106.

【0027】パケット送信処理部106は、パケットヘ
ッダ処理部101から入力したIPパケットをスイッチ
2に出力すると共に、IPパケットに対応して得られた
転送先情報をスイッチ制御部3に出力する。
The packet transmission processing unit 106 outputs the IP packet input from the packet header processing unit 101 to the switch 2, and also outputs the transfer destination information obtained corresponding to the IP packet to the switch control unit 3.

【0028】スイッチ制御部3が転送先情報に従ってス
イッチ2を制御することによりパケット送信処理部10
6から出力されたIPパケットは目的の回線インタフェ
ース1−jに転送され、ここから通信網を介して目的の
ルータ等に出力される。
The packet transmission processor 10 is controlled by the switch controller 3 controlling the switch 2 in accordance with the transfer destination information.
The IP packet output from 6 is transferred to the target line interface 1-j, and from there is output to the target router or the like via the communication network.

【0029】[実施形態2]図1を参照すると、IPv
4パケットとIPv6が混在したネットワークに使用さ
れる、インターネットプロトコル層のスイッチ機能を有
するATMスイッチ、パケット交換機、マルチプロトコ
ルルータ等は、回線インタフェース1−1、1−2、1
−n、スイッチ2、スイッチ制御部3、ルーティング部
4を備える。通信網から回線インタフェース1−iを介
して入力されたIPパケット等は、スイッチ2を介し
て、或いは直接ルーティン部4に入力され、転送先情報
と共にルーティング部4から出力され、スイッチ制御部
3に制御により転送先情報に従った回線インタフェース
部1−jを介して通信網の目的のルータ等に出力され
る。
[Second Embodiment] Referring to FIG.
ATM interfaces having a switching function of the Internet protocol layer, packet switches, multi-protocol routers, etc., which are used in a network in which 4 packets and IPv6 are mixed, are line interfaces 1-1, 1-2, 1
-N, a switch 2, a switch control unit 3, and a routing unit 4. An IP packet or the like input from the communication network via the line interface 1-i is input to the routine unit 4 via the switch 2 or directly, and is output from the routing unit 4 together with the transfer destination information to the switch control unit 3. It is output to the target router of the communication network or the like via the line interface unit 1-j according to the transfer destination information under control.

【0030】図6を参照すると、ルーティング部4は、
パケットヘッダ処理部101、アドレス検索テーブル2
02、転送先テーブル検索情報生成部203、転送先情
報テーブル204、転送先情報検索部205及びパケッ
ト送信処理部106を備える。
Referring to FIG. 6, the routing unit 4 is
Packet header processing unit 101, address search table 2
02, a transfer destination table search information generation unit 203, a transfer destination information table 204, a transfer destination information search unit 205, and a packet transmission processing unit 106.

【0031】図7を参照すると、アドレス検索テーブル
202には、転送先IPv6アドレスと転送先IPv4
アドレスが混在して記憶されている。転送先IPv6ア
ドレスは図17から明らかなように128ビットより構
成される。エントリ236〜239には、1つの転送先
IPv6アドレスが4つに分割して記憶される。エント
リ236には、v6であることを示す0の値をとるv4
/v6識別ビット221、分割された転送先IPv6ア
ドレスの先頭部分であることを示す1の値をとる先頭ビ
ット222、分割された転送先IPv6アドレスの最初
の部分223が記憶される。エントリ237には、v6
であることを示す0の値をとるv4/v6識別ビット2
24、分割された転送先IPv6アドレスの先頭部分で
ないことを示す0の値をとる先頭ビット225、分割さ
れた転送先IPv6アドレスの2番目の部分226が記
憶される。エントリ238には、v6であることを示す
0の値をとるv4/v6識別ビット227、分割された
転送先IPv6アドレスの先頭部分でないことを示す0
の値をとる先頭ビット228、分割された転送先IPv
6アドレスの3番目の部分229が記憶される。エント
リ239には、v6であることを示す0の値をとるv4
/v6識別ビット230、分割された転送先IPv6ア
ドレスの先頭部分でないことを示す0の値をとる先頭ビ
ット231、分割された転送先IPv6アドレスの4番
目(最後)の部分232が記憶される。エントリ240
には、v4であることを示す1の値をとるv4/v6識
別ビット233、分割された転送先IPv6アドレスの
先頭部分であるかないかを示す必要がないので任意の値
をとる不使用ビット234、転送先IPv4アドレス2
35が記憶される。
Referring to FIG. 7, in the address search table 202, the transfer destination IPv6 address and the transfer destination IPv4 are included.
Addresses are mixed and stored. The transfer destination IPv6 address is composed of 128 bits as is apparent from FIG. In each of the entries 236 to 239, one transfer destination IPv6 address is divided into four and stored. The entry 236 has v4 that takes a value of 0 indicating v6.
A / v6 identification bit 221, a head bit 222 having a value of 1 indicating the beginning portion of the divided transfer destination IPv6 address, and a first portion 223 of the divided transfer destination IPv6 address are stored. Entry 237 contains v6
V4 / v6 identification bit 2 having a value of 0 indicating that
24, a head bit 225 having a value of 0 indicating that it is not the head portion of the divided transfer destination IPv6 address, and a second portion 226 of the divided transfer destination IPv6 address are stored. The entry 238 has a v4 / v6 identification bit 227 that takes a value of 0 indicating that it is v6, and 0 indicating that it is not the beginning of the divided transfer destination IPv6 address.
Bit 228 that takes a value of
The third part 229 of the 6 addresses is stored. The entry 239 has v4 that takes a value of 0 indicating v6.
A / v6 identification bit 230, a head bit 231 having a value of 0 indicating that it is not the head portion of the divided transfer destination IPv6 address, and a fourth (last) portion 232 of the divided transfer destination IPv6 address are stored. Entry 240
, V4 / v6 identification bit 233 having a value of 1 indicating v4, and unused bit 234 having an arbitrary value because it is not necessary to indicate whether or not it is the head portion of the divided transfer destination IPv6 address. , Transfer destination IPv4 address 2
35 is stored.

【0032】図8を参照すると、転送先情報テーブル2
05には、転送先IPv6アドレス223、226、2
29、232に対応した転送先情報141、転送先IP
v4アドレス235に対応した転送先情報252、及び
例えば転送先IPv4アドレスが記憶されるエントリに
続くエントリに記憶される転送先IPv4アドレス(但
し、転送先IPv4アドレスの代わりに転送先IPv6
アドレスが記憶されていても良い。)に対応した転送先
情報253、254、255が記憶される。
Referring to FIG. 8, the transfer destination information table 2
05 includes transfer destination IPv6 addresses 223, 226, 2
29 and 232, transfer destination information 141 and transfer destination IP
The transfer destination information 252 corresponding to the v4 address 235, and the transfer destination IPv4 address stored in the entry following the entry storing the transfer destination IPv4 address (however, instead of the transfer destination IPv4 address, the transfer destination IPv6
The address may be stored. ), Transfer destination information 253, 254, 255 is stored.

【0033】パケットヘッダ処理部101は、IPv4
パケット又はIPv6パケットといった受信IPパケッ
トを入力し、受信パケットをパケット送信処理部106
に出力し、受信IPパケットのヘッダ内の情報より受信
パケットがIPv4パケットであるのは又はIPv6パ
ケットであるのかを識別し、識別結果に応じてv4/v
6識別ビットを生成して転送先テーブル検索情報生成部
203に出力し、及び識別結果に応じてIPパケットか
らIPパケットからIPv4アドレス又はIPv6アド
レスをIPアドレスとして転送先テーブル検索情報生成
部203に出力する。
The packet header processing unit 101 uses the IPv4
A received IP packet such as a packet or an IPv6 packet is input, and the received packet is processed by the packet transmission processing unit 106.
The received packet is output to the IPv4 packet and the information in the header of the received IP packet is used to identify whether the received packet is an IPv4 packet or an IPv6 packet.
6 identification bits are generated and output to the transfer destination table search information generation unit 203, and output from the IP packet to the transfer destination table search information generation unit 203 as an IP address from the IP packet from the IP packet according to the identification result. To do.

【0034】転送先テーブル検索情報生成部203は、
入力したv4/v6識別子がv6であることを示す0で
あるときには、図9(a)に示すフォーマットのデー
タ、すなわち、入力した転送先IPv6アドレスの先頭
の1/4の部分よりなるデータをキーにして、アドレス
検索テーブル202のエントリのうちv4/v6識別ビ
ットが0であり且つ先頭ビットが1であるエントリから
図9(a)に示すフォーマットのデータと転送先IPア
ドレス部(223、226、229、232、235な
ど)が一致するエントリを検索し、検索されたならば、
図9(b)に示すフォーマットのデータ、すなわち、入
力した転送先IPv6アドレスの2番目の1/4の部分
よりなるデータが、図9(a)に示すフォーマットのデ
ータが検索されたエントリの次のエントリの転送先IP
アドレス部と一致するか否かを判定し、以下同様に、転
送先IPv6アドレスの3番目の1/4の部分について
も図9(a)に示すフォーマットのデータが検索された
エントリの2つ次のエントリの転送先IPアドレス部と
一致するか否かを判定し、転送先IPv6アドレスの4
番目の1/4の部分についても図9(a)に示すフォー
マットのデータが検索されたエントリの3つ次のエント
リの転送先IPアドレス部と一致するか否かを判定す
る。4つの判定において全て一致する結果が得られたな
らば、最初の一致判定のときに得られたエントリ番号を
転送先情報テーブルエントリ番号として転送先情報検索
部205に出力する。
The transfer destination table search information generating section 203
When the input v4 / v6 identifier is 0 indicating that it is v6, the data in the format shown in FIG. 9A, that is, the data consisting of the first ¼ portion of the input transfer destination IPv6 address is keyed. Then, from the entry having the v4 / v6 identification bit of 0 and the head bit of 1 in the entry of the address search table 202, the data of the format shown in FIG. 9A and the transfer destination IP address part (223, 226, 229, 232, 235, etc.) is searched for, and if found,
The data in the format shown in FIG. 9B, that is, the data consisting of the second quarter portion of the input transfer destination IPv6 address is next to the entry in which the data in the format shown in FIG. 9A is searched. Destination IP of entry
Whether or not it matches the address part is determined, and similarly, the data of the format shown in FIG. 9A is also searched for the second entry of the third 1/4 part of the transfer destination IPv6 address. Of the IPv6 address of the transfer destination IPv6 address
It is also determined whether or not the data of the format shown in FIG. 9A matches the transfer destination IP address part of the entry next to the third entry of the searched entry for the 1/4 portion. If the results of all four matches are obtained, the entry number obtained at the first match determination is output to the transfer destination information search unit 205 as the transfer destination information table entry number.

【0035】また、転送先テーブル検索情報生成部20
3は、入力したv4/v6識別子がv6であることをと
示す0であるときには、図9(e)に示すフォーマット
のデータ、すなわち、転送先IPv4アドレスよりなる
データをキーとして、アドレス検索テーブル202のエ
ントリのうちv4/v6識別ビットが1でありエントリ
より図9(e)に示すフォーマットのデータを転送先I
Pアドレス部として有するエントリを検索し、検索され
たエントリ番号を転送先情報テーブルエントリ番号をし
て転送先情報検索部205に出力する。
Further, the transfer destination table search information generating section 20
When the input v4 / v6 identifier is 0, which indicates that the input v4 / v6 identifier is v6, the address search table 202 uses the data of the format shown in FIG. 9E, that is, the data of the transfer destination IPv4 address as a key. Of the entry of which the v4 / v6 identification bit is 1 and the data of the format shown in FIG.
The entry having the P address part is searched, the searched entry number is set as the transfer destination information table entry number, and is output to the transfer destination information searching part 205.

【0036】転送先情報検索部205は、入力した転送
先情報テーブルエントリ番号を転送先情報テーブル20
4のエントリ番号として、転送先情報を転送先情報テー
ブル204から検索して、検索された転送先情報をパケ
ット送信処理部106に出力する。
The transfer destination information retrieval unit 205 uses the input transfer destination information table entry number as the transfer destination information table 20.
As the entry number of 4, the transfer destination information is searched from the transfer destination information table 204, and the searched transfer destination information is output to the packet transmission processing unit 106.

【0037】パケット送信処理部106は、パケットヘ
ッダ処理部101から入力したIPパケットをスイッチ
2に出力すると共に、IPパケットに対応して得られた
転送先情報をスイッチ制御部3に出力する。
The packet transmission processing unit 106 outputs the IP packet input from the packet header processing unit 101 to the switch 2 and also outputs the transfer destination information obtained corresponding to the IP packet to the switch control unit 3.

【0038】スイッチ制御部3が転送先情報に従ってス
イッチ2を制御することによりパケット送信処理部10
6から出力されたIPパケットは目的の回線インタフェ
ース1−jに出力され、ここから通信網を介して目的の
ルータ等に転送される。
The packet control processor 10 controls the switch 2 in accordance with the transfer destination information so that the packet transmission processor 10 operates.
The IP packet output from 6 is output to the target line interface 1-j, and is transferred from there to the target router or the like via the communication network.

【0039】なお、アドレス検索テーブル202を作成
する際に、4つの連続するエントリが無くて、4つの連
続するエントリに連続して分割した転送先IPv6アド
レスを書き込めないときには、アドレス検索テーブル2
02と転送先情報テーブル204のエントリを共に入れ
替えて整理することにより、4つの連続するエントリが
得られる可能性がある。または、アドレス検索テーブル
202と転送先テーブル204を作成する際に、例え
ば、転送先IPv6アドレスをテーブルの先頭から後方
に向かって作成し、転送先IPv4アドレスをテーブル
の末尾から前方に向かって作成することにより、上記の
事態を防止することができる。
When the address search table 202 is created, when there are no four consecutive entries and the transfer destination IPv6 address continuously divided into four consecutive entries cannot be written, the address search table 2
02 and the entries in the transfer destination information table 204 may be rearranged and organized to obtain four consecutive entries. Alternatively, when the address search table 202 and the transfer destination table 204 are created, for example, the transfer destination IPv6 address is created from the head of the table toward the rear, and the transfer destination IPv4 address is created from the end of the table toward the front. As a result, the above situation can be prevented.

【0040】[実施形態3]図1を参照すると、IPv
4パケットとIPv6が混在したネットワークに使用さ
れる、インターネットプロトコル層のスイッチ機能を有
するATMスイッチ、パケット交換機、マルチプロトコ
ルルータ等は、回線インタフェース1−1、1−2、1
−n、スイッチ2、スイッチ制御部3、ルーティング部
4を備える。通信網から回線インタフェース1−iを介
して入力されたIPパケット等は、スイッチ2を介し
て、或いは直接ルーティン部4に入力され、転送先情報
と共にルーティング部4から出力され、スイッチ制御部
3に制御により転送先情報に従った回線インタフェース
部1−jを介して通信網の目的のルータ等に出力され
る。
[Third Embodiment] Referring to FIG.
ATM interfaces having a switching function of the Internet protocol layer, packet switches, multi-protocol routers, etc., which are used in a network in which 4 packets and IPv6 are mixed, are line interfaces 1-1, 1-2, 1
-N, a switch 2, a switch control unit 3, and a routing unit 4. An IP packet or the like input from the communication network via the line interface 1-i is input to the routine unit 4 via the switch 2 or directly, and is output from the routing unit 4 together with the transfer destination information to the switch control unit 3. It is output to the target router of the communication network or the like via the line interface unit 1-j according to the transfer destination information under control.

【0041】図10を参照すると、ルーティング部4
は、パケットヘッダ処理部101、アドレス検索テーブ
ル102B、転送先テーブル検索情報生成部103B、
転送先情報テーブル104B、転送先情報検索部105
B及びパケット処理部106を備える。
Referring to FIG. 10, the routing unit 4
Is a packet header processing unit 101, an address search table 102B, a transfer destination table search information generation unit 103B,
Transfer destination information table 104B, transfer destination information search unit 105
B and the packet processing unit 106.

【0042】図11を参照すると、アドレス検索テーブ
ル102Bには、転送先IPv6アドレスと転送先IP
v4アドレスが混在して記憶されている。転送先IPv
6アドレスは図17から明らかなように128ビットよ
り構成される。転送先IPv6アドレス122が記憶さ
れるエントリ303には、v4/v6識別子121がv
6であることを示す0の値をとって記憶され、また転送
先IPv6アドレスに対応する転送先情報が記憶されて
いる転送先情報テーブル104Bのエントリ番号である
転送先情報テーブルエントリ番号301が記憶される。
転送先IPv4アドレスは図16から明らかなように3
2ビットより構成され、1つのエントリに4つの転送先
IPv4アドレス124、125、126、127が記
憶される。IPv4アドレスが記憶されるエントリ12
9には、v4/v6識別子123がv4であることを示
す1の値をとって記憶され、また転送先IPv4アドレ
スに対応する転送先情報が記憶されている転送先情報テ
ーブル104Bのエントリ番号である転送先情報テーブ
ルエントリ番号302が記憶される。
Referring to FIG. 11, the transfer destination IPv6 address and the transfer destination IP are stored in the address search table 102B.
v4 addresses are mixed and stored. Destination IPv6
The 6 addresses are composed of 128 bits as is apparent from FIG. In the entry 303 in which the transfer destination IPv6 address 122 is stored, the v4 / v6 identifier 121 is v
The transfer destination information table entry number 301, which is the entry number of the transfer destination information table 104B in which the transfer destination information corresponding to the transfer destination IPv6 address is stored, is stored. To be done.
The transfer destination IPv4 address is 3 as apparent from FIG.
It is made up of 2 bits, and four transfer destination IPv4 addresses 124, 125, 126, 127 are stored in one entry. Entry 12 that stores the IPv4 address
9 is the entry number of the transfer destination information table 104B in which the v4 / v6 identifier 123 is stored with a value of 1 indicating that it is v4, and the transfer destination information corresponding to the transfer destination IPv4 address is stored. A certain transfer destination information table entry number 302 is stored.

【0043】図12を参照すると、転送先情報テーブル
104Bには、転送先IPv6アドレス122に対応し
た転送先情報321と転送先IPv4アドレス124、
125、126、127に対応した転送先情報324、
325、326、327が混在して記憶される。転送先
情報322、323はアドレス検索テーブルのエントリ
303に続くエントリに対応するものである。実施形態
1の転送先情報テーブル104と比較して、本実施形態
の転送先情報テーブル104Bには隙間なく転送先情報
が記憶されるので、無駄な容量が無い。
Referring to FIG. 12, in the transfer destination information table 104B, the transfer destination information 321 and the transfer destination IPv4 address 124 corresponding to the transfer destination IPv6 address 122,
Transfer destination information 324 corresponding to 125, 126, 127,
325, 326, and 327 are mixed and stored. The transfer destination information 322, 323 corresponds to the entry following the entry 303 in the address search table. Compared with the transfer destination information table 104 of the first embodiment, the transfer destination information table 104B of the present embodiment stores the transfer destination information without a gap, so there is no wasted capacity.

【0044】パケットヘッダ処理部101は、IPv4
パケット又はIPv6パケットといった受信IPパケッ
トを入力し、受信パケットをパケット送信処理部106
に出力し、受信IPパケットのヘッダ内の情報より受信
パケットがIPv4パケットであるのか又はIPv6パ
ケットであるのかを識別し、識別結果に応じてv4/v
6識別ビットを生成して転送先テーブル検索情報生成部
103Bに出力し、及び識別結果に応じてIPパケット
からIPv4アドレス又はIPv6アドレスをIPアド
レスとして転送先テーブル検索情報生成部103Bに出
力する。
The packet header processing unit 101 uses the IPv4
A received IP packet such as a packet or an IPv6 packet is input, and the received packet is processed by the packet transmission processing unit 106.
The received packet is output to the IPv4 packet and the information in the header of the received IP packet is used to identify whether the received packet is an IPv4 packet or an IPv6 packet, and v4 / v is determined according to the identification result.
6 identification bits are generated and output to the transfer destination table search information generation unit 103B, and the IPv4 address or the IPv6 address from the IP packet is output to the transfer destination table search information generation unit 103B as an IP address according to the identification result.

【0045】転送先テーブル検索情報生成部103B
は、入力したv4/v6識別子がv6であることを示す
0であるときには、図5(a)に示すフォーマットのデ
ータ、すなわち、0の値のv4/v6識別子と入力した
転送先IPv6アドレスより成るデータをキーにして、
そのデータが記憶されているエントリ番号をアドレス検
索テーブル202Bから検索し、その検索されたエント
リに記憶されている転送先情報テーブルエントリ番号3
01を転送先情報テーブルエントリ番号として転送先情
報検索部105Bに出力する。
Transfer destination table search information generator 103B
When the input v4 / v6 identifier is 0 indicating that it is v6, is composed of data in the format shown in FIG. 5A, that is, the v4 / v6 identifier having a value of 0 and the input destination IPv6 address. Data as key,
The entry number in which the data is stored is searched from the address search table 202B, and the transfer destination information table entry number 3 stored in the searched entry is searched.
01 is output to the transfer destination information search unit 105B as the transfer destination information table entry number.

【0046】また、転送先テーブル検索情報生成部10
3Bは、入力したv4/v6識別子がv4であることを
示す1であるときには、まず、図5(b)に示すフォー
マットのデータ、すなわち1の値のv4/v6識別子と
入力した転送先IPv4アドレスとマスクデータよりな
るデータが記憶されているエントリをアドレス検索テー
ブル202Bから検索し、検索されたならばそのデータ
が記憶されているエントリに記憶されている転送先情報
テーブルエントリ番号を転送先情報テーブルエントリ番
号として転送先情報検索部105Bに出力すると共に値
が0であるエントリオフセットを転送先情報検索部10
5Bに出力する。なお、検索時においてマスクデータの
位置のビットの一致/不一致は判定しない。図5(b)
に示すフォーマットのデータをキーにしたときにそのデ
ータを記憶するエントリが検索できないときには、図5
(c)、(d)、(e)に示すフォーマットをキーにし
て同様な動作を繰り返す。検索されたときには、検索さ
れたアドレス検索テーブル202Bのエントリに記憶さ
れている転送先情報テーブルエントリ番号を転送先情報
テーブルエントリ番号として、転送先IPv4アドレス
の位置に対応する識別子をエントリオフセットとして転
送先情報検索部105に出力する。
Further, the transfer destination table search information generating section 10
3B, when the input v4 / v6 identifier is 1 indicating that it is v4, first, the data in the format shown in FIG. 5B, that is, the v4 / v6 identifier having a value of 1 and the input destination IPv4 address The address search table 202B is searched for an entry in which data including the mask data is stored, and if found, the transfer destination information table entry number stored in the entry in which the data is stored is transferred to the transfer destination information table. The transfer destination information searching unit 10 outputs the entry number to the transfer destination information searching unit 105B and the entry offset having a value of 0
Output to 5B. It should be noted that during search, it is not judged whether the bits at the mask data position match or do not match. Figure 5 (b)
When the entry storing the data cannot be searched when the data of the format shown in FIG.
Similar operations are repeated using the formats shown in (c), (d), and (e) as keys. When it is searched, the transfer destination information table entry number stored in the searched entry of the address search table 202B is used as the transfer destination information table entry number, and the identifier corresponding to the position of the transfer destination IPv4 address is used as the entry offset and the transfer destination. The information is output to the information retrieval unit 105.

【0047】転送先情報検索部105Bは、入力した転
送先情報テーブルエントリ番号に入力したエントリオフ
セットを加えた値を転送先情報テーブル104のエント
リ番号として用いて、転送先情報を転送先情報テーブル
104Bから検索して、検索された転送先情報をパケッ
ト送信処理部106に出力する。
The transfer destination information retrieval unit 105B uses the value obtained by adding the input entry offset to the input transfer destination information table entry number as the entry number of the transfer destination information table 104, and uses the transfer destination information table 104B as the transfer destination information. And outputs the retrieved transfer destination information to the packet transmission processing unit 106.

【0048】パケット送信処理部106は、パケットヘ
ッダ処理部101から入力したIPパケットをスイッチ
2に出力すると共に、IPパケットに対応して得られた
転送先情報をスイッチ制御部3に出力する。
The packet transmission processing unit 106 outputs the IP packet input from the packet header processing unit 101 to the switch 2, and also outputs the transfer destination information obtained corresponding to the IP packet to the switch control unit 3.

【0049】スイッチ制御部3が転送先情報に従ってス
イッチ2を制御することによりパケット送信処理部10
6から出力されたIPパケットは目的の回線インタフェ
ース1−jに出力され、ここから通信網を介して目的の
ルータ等に転送される。
The packet control processor 3 controls the switch 2 in accordance with the transfer destination information so that the packet transmission processor 10
The IP packet output from 6 is output to the target line interface 1-j, and is transferred from there to the target router or the like via the communication network.

【0050】[実施形態4]図1を参照すると、IPv
4パケットとIPv6が混在したネットワークに使用さ
れる、インターネットプロトコル層のスイッチ機能を有
するATMスイッチ、パケット交換機マルチプロトコル
ルータ等は、回線インタフェース1−1、1−2、1−
n、スイッチ2、スイッチ制御部3、ルーティング部4
を備える。通信網から回線インタフェース1−iを介し
て入力されたIPパケット等は、スイッチ2を介して、
或いは直接ルーティン部4に入力され、転送先情報と共
にルーティング部4から出力され、スイッチ制御部3に
制御により転送先情報に従った回線インタフェース部1
−jを介して通信網の目的のルータ等に出力される。
[Fourth Embodiment] Referring to FIG.
ATM switches, packet switch multi-protocol routers, etc., having an Internet protocol layer switch function, which are used in a network in which four packets and IPv6 coexist, are line interfaces 1-1, 1-2, 1-
n, switch 2, switch control unit 3, routing unit 4
Equipped with. IP packets and the like input from the communication network via the line interface 1-i are transmitted via the switch 2
Alternatively, the line interface unit 1 is directly input to the routine unit 4, is output from the routing unit 4 together with the transfer destination information, and is controlled by the switch control unit 3 according to the transfer destination information.
It is output to the intended router of the communication network via -j.

【0051】図13を参照すると、ルーティング部4
は、パケットヘッダ処理部101、アドレス検索テーブ
ル202B、転送先テーブル検索情報生成部203B、
転送先情報テーブル204B、転送先情報検索部205
B及びパケット送信処理部106を備える。
Referring to FIG. 13, the routing unit 4
Is a packet header processing unit 101, an address search table 202B, a transfer destination table search information generation unit 203B,
Transfer destination information table 204B, transfer destination information search unit 205
B and the packet transmission processing unit 106.

【0052】図14を参照すると、アドレス検索テーブ
ル202Bには、転送先IPv6アドレスと転送先IP
v4アドレスが混在して記憶されている。転送先IPv
6アドレスは図17から明らかなように128ビットよ
り構成される。エントリ343〜346には、1つの転
送先IPv6アドレスが4つに分割して記憶される。エ
ントリ343には、v6であることを示す0の値をとる
v4/v6識別ビット221、分割された転送先IPv
6アドレスの先頭部分であることを示す1の値をとる先
頭ビット222、分割された転送先IPv6アドレスの
最初の部分223及び転送先IPv6アドレスに対応さ
れている転送先情報が記憶されている転送先情報テーブ
ル204Bのエントリ番号である転送先情報テーブルエ
ントリ番号341が記憶される。エントリ344には、
v6であることを示す0の値をとるv4/v6識別ビッ
ト224、分割された転送先IPv6アドレスの先頭部
分でないことを示す0の値をとる先頭ビット225、分
割された転送先IPv6アドレスの2番目の部分226
が記憶される。エントリ345には、v6であることを
示す0の値をとるv4/v6識別ビット227、分割さ
れた転送先IPv6アドレスの先頭部分でないことを示
す0の値をとる先頭ビット228、分割された転送先I
Pv6アドレスの3番目の部分229が記憶される。エ
ントリ346には、v6であることを示す0の値をとる
v4/v6識別ビット230、分割された転送先IPv
6アドレスの先頭部分でないことを示す0の値をとる先
頭ビット231、分割された転送先IPv6アドレスの
4番目(最後)の部分232が記憶される。エントリ3
47には、v4であることを示す1の値をとるv4/v
6識別ビット233、分割された転送先IPv6アドレ
スの先頭部分であるかないかを示す必要がないので任意
の値をとる不使用ビット234、転送先IPv4アドレ
ス235、及び転送先IPv4アドレスに対応する転送
先情報が記憶されている転送先情報204Bのエントリ
番号を示す転送先情報テーブルエントリ番号が記憶され
る。
Referring to FIG. 14, the transfer destination IPv6 address and the transfer destination IP are stored in the address search table 202B.
v4 addresses are mixed and stored. Destination IPv6
The 6 addresses are composed of 128 bits as is apparent from FIG. In each of the entries 343 to 346, one transfer destination IPv6 address is divided into four and stored. In the entry 343, a v4 / v6 identification bit 221 having a value of 0 indicating v6, a divided transfer destination IPv6
A first bit 222 having a value of 1 indicating that it is the first part of the six addresses, a first part 223 of the divided transfer destination IPv6 address, and transfer destination information corresponding to the transfer destination IPv6 address are stored. The transfer destination information table entry number 341 which is the entry number of the destination information table 204B is stored. Entry 344 contains
v4 / v6 identification bit 224 having a value of 0 indicating that it is v6, a start bit 225 having a value of 0 indicating that it is not the start portion of the divided transfer destination IPv6 address, and 2 of the divided transfer destination IPv6 address Th part 226
Is memorized. The entry 345 has a v4 / v6 identification bit 227 having a value of 0 indicating v6, a head bit 228 having a value of 0 indicating not being the head of the divided transfer destination IPv6 address, and the divided transfer. Destination I
The third part 229 of the Pv6 address is stored. The entry 346 has a v4 / v6 identification bit 230 that takes a value of 0 indicating that it is v6, and the divided transfer destination IPv6.
The head bit 231 having a value of 0 indicating that it is not the head portion of the 6th address and the fourth (last) portion 232 of the divided transfer destination IPv6 address are stored. Entry 3
47 has v4 / v that takes a value of 1 indicating v4.
6 identification bit 233, unused bit 234 that takes an arbitrary value because it is not necessary to indicate whether or not it is the leading part of the divided transfer destination IPv6 address, transfer destination IPv4 address 235, and transfer corresponding to the transfer destination IPv4 address The transfer destination information table entry number indicating the entry number of the transfer destination information 204B in which the destination information is stored is stored.

【0053】図15を参照すると、転送先情報テーブル
205Bには、転送先IPv6アドレス223、22
6、229、232に対応した転送先情報361、転送
先IPv4アドレス235に対応した転送先情報36
3、例えば転送先IPv6アドレスが記憶されるエント
リに続くエントリに記憶される転送先IPv6アドレス
(但し、転送先IPv6アドレスの代わりに転送先IP
v4アドレスが記憶されていても良い。)に対応した転
送先情報362、及び例えば転送先IPv4アドレスが
記憶されるエントリに続くエントリに記憶される転送先
IPv4アドレス(但し、転送先IPv4アドレスの代
わりに転送先IPv6アドレスが記憶されていても良
い。)に対応した転送先情報364が記憶される。
Referring to FIG. 15, the transfer destination information table 205B includes transfer destination IPv6 addresses 223 and 22.
Transfer destination information 361 corresponding to 6, 229, and 232, and transfer destination information 36 corresponding to the transfer destination IPv4 address 235.
3, for example, the transfer destination IPv6 address stored in the entry following the entry storing the transfer destination IPv6 address (however, instead of the transfer destination IPv6 address, the transfer destination IP
The v4 address may be stored. ) Corresponding to the transfer destination information 362 and the transfer destination IPv4 address stored in the entry following the entry storing the transfer destination IPv4 address (however, the transfer destination IPv6 address is stored instead of the transfer destination IPv4 address. The transfer destination information 364 corresponding to the above is stored.

【0054】パケットヘッダ処理部101は、IPv4
パケット又はIPv6パケットといった受信IPパケッ
トを入力し、受信パケットをパケット送信処理部106
に出力し、受信IPパケットのヘッダ内の情報より受信
パケットがIPv4パケットであるのは又はIPv6パ
ケットであるのかを識別し、識別結果に応じてv4/v
6識別ビットを生成して転送先テーブル検索情報生成部
203Bに出力し、及び識別結果に応じてIPパケット
からIPv4アドレス又はIPv6アドレスをIPアド
レスとして転送先テーブル検索情報生成部203Bに出
力する。
The packet header processing unit 101 uses IPv4
A received IP packet such as a packet or an IPv6 packet is input, and the received packet is processed by the packet transmission processing unit 106.
The received packet is output to the IPv4 packet and the information in the header of the received IP packet is used to identify whether the received packet is an IPv4 packet or an IPv6 packet, and v4 / v is determined according to the identification result.
6 identification bits are generated and output to the transfer destination table search information generation unit 203B, and the IPv4 address or the IPv6 address from the IP packet is output to the transfer destination table search information generation unit 203B as an IP address according to the identification result.

【0055】転送先テーブル検索情報生成部203B
は、入力したv4/v6識別子がv6であることを示す
0であるときには、図9(a)に示すフォーマットのデ
ータ、すなわち、入力した転送先IPv6アドレスの先
頭の1/4の部分よりなるデータをキーにして、アドレ
ス検索テーブル202Bのエントリのうちv4/v6識
別ビットが0であり且つ先頭ビットが1であるエントリ
から図9(a)に示すフォーマットのデータと転送先I
Pアドレス部(223、226、229、232、23
5など)が一致するエントリを検索し、検索されたなら
ば、図9(b)に示すフォーマットのデータ、すなわ
ち、入力した転送先IPv6アドレスの2番目の1/4
の部分よりなるデータが、図9(a)に示すフォーマッ
トのデータが検索されたエントリの次のエントリの転送
先IPアドレス部と一致するか否かを判定し、以下同様
に、転送先IPv6アドレスの3番目の1/4の部分に
ついても図9(a)に示すフォーマットのデータが検索
されたエントリの2つ次のエントリの転送先IPアドレ
ス部と一致するか否かを判定し、転送先IPv6アドレ
スの4番目の1/4の部分についても図9(a)に示す
フォーマットのデータが検索されたエントリの3つ次の
エントリの転送先IPアドレス部と一致するか否かを判
定する。4つの判定において全て一致する結果が得られ
たならば、最初の一致判定のときに得られたエントリに
記憶されている転送先情報テーブルエントリ番号341
を転送先情報テーブルエントリ番号として転送先情報検
索部205に出力する。
Transfer destination table search information generator 203B
Is 0 indicating that the input v4 / v6 identifier is v6, the data has the format shown in FIG. 9A, that is, the data consisting of the first quarter of the input transfer destination IPv6 address. With the key as a key, from the entry having the v4 / v6 identification bit of 0 and the head bit of 1 in the entry of the address search table 202B, the data of the format shown in FIG.
P address part (223, 226, 229, 232, 23
5), and if found, the data in the format shown in FIG. 9B, that is, the second 1/4 of the input transfer destination IPv6 address.
It is determined whether or not the data composed of the portion of the same is in the transfer destination IP address part of the entry next to the entry in which the data of the format shown in FIG. 9A is searched. Also for the third ¼ part of the above, it is determined whether the data of the format shown in FIG. 9A matches the transfer destination IP address part of the entry next to the searched entry, and the transfer destination is determined. Also for the fourth 1/4 portion of the IPv6 address, it is determined whether or not the data of the format shown in FIG. 9A matches the transfer destination IP address part of the entry next to the third entry of the searched entry. If all four judgments result in matching, the transfer destination information table entry number 341 stored in the entry obtained at the time of the first matching judgment.
Is output to the transfer destination information search unit 205 as the transfer destination information table entry number.

【0056】また、転送先テーブル検索情報生成部20
3Bは、入力したv4/v6識別子がv6であることを
示す0であるときには、図9(e)に示すフォーマット
のデータ、すなわち、転送先IPv4アドレスよりなる
データをキーとして、アドレス検索テーブル202Bの
エントリのうちv4/v6識別ビットが1でありエント
リより図9(e)に示すフォーマットのデータを転送先
IPアドレス部として有するエントリを検索し、検索さ
れたエントリに記憶されている転送先情報テーブルエン
トリ番号342番号を転送先情報テーブルエントリ番号
をして転送先情報検索部205Bに出力する。
Further, the transfer destination table search information generating section 20
3B, when the inputted v4 / v6 identifier is 0 indicating that it is v6, the data of the format shown in FIG. 9 (e), that is, the data of the transfer destination IPv4 address is used as a key of the address search table 202B. Of the entries, the entry having the v4 / v6 identification bit of 1 and having the data of the format shown in FIG. 9E as the transfer destination IP address part is searched from the entry, and the transfer destination information table stored in the searched entry The entry number 342 is used as a transfer destination information table entry number and is output to the transfer destination information searching unit 205B.

【0057】転送先情報検索部205Bは、入力した転
送先情報テーブルエントリ番号を転送先情報テーブル2
04Bのエントリ番号として、転送先情報を転送先情報
テーブル204から検索して、検索された転送先情報を
パケット送信処理部106に出力する。
The transfer destination information retrieval unit 205B uses the input transfer destination information table entry number as the transfer destination information table 2
As the entry number of 04B, the transfer destination information is searched from the transfer destination information table 204, and the searched transfer destination information is output to the packet transmission processing unit 106.

【0058】パケット送信処理部106は、パケットヘ
ッダ処理部101から入力したIPパケットをスイッチ
2に出力すると共に、IPパケットに対応して得られた
転送先情報をスイッチ制御部3に出力する。
The packet transmission processing unit 106 outputs the IP packet input from the packet header processing unit 101 to the switch 2 and also outputs the transfer destination information obtained corresponding to the IP packet to the switch control unit 3.

【0059】スイッチ制御部3が転送先情報に従ってス
イッチ2を制御することによりパケット送信処理部10
6から出力されたIPパケットは目的の回線インタフェ
ース1−jに出力され、ここから通信網を介して目的の
ルータ等に転送される。
The packet control processor 10 controls the switch 2 in accordance with the transfer destination information so that the packet transmission processor 10 operates.
The IP packet output from 6 is output to the target line interface 1-j, and is transferred from there to the target router or the like via the communication network.

【0060】なお、アドレス検索テーブル202を作成
する際に、4つの連続するエントリが無くて、4つの連
続するエントリに連続して分割した転送先IPv6アド
レスを書き込めないときには、アドレス検索テーブル2
02と転送先情報テーブル204のエントリを共に入れ
替えて整理することにより、4つの連続するエントリが
得られる可能性がある。または、アドレス検索テーブル
202と転送先テーブル204を作成する際に、例え
ば、転送先IPv6アドレスをテーブルの先頭から後方
に向かって作成し、転送先IPv4アドレスをテーブル
の末尾から前方に向かって作成することにより、上記の
事態を防止することができる。
When the address search table 202 is created, when there are no four consecutive entries and the transfer destination IPv6 address continuously divided into four consecutive entries cannot be written, the address search table 2
02 and the entries in the transfer destination information table 204 may be rearranged and organized to obtain four consecutive entries. Alternatively, when the address search table 202 and the transfer destination table 204 are created, for example, the transfer destination IPv6 address is created from the head of the table toward the rear, and the transfer destination IPv4 address is created from the end of the table toward the front. As a result, the above situation can be prevented.

【0061】[0061]

【発明の効果】以上説明したように、本発明によれば、
転送先IPv4アドレスに対応した転送先情報を得る系
と転送先IPv6アドレスに対応した転送先情報を得る
系を共通化できるので、回路規模を削減することができ
る。また、アドレス検索テーブル、転送先情報テーブル
を転送先IPv4アドレスに対応した転送先情報を得る
系と転送先IPv6アドレスに対応した転送先情報を得
る系との間で共通化できるので、またそれぞれの系への
記憶容量の割り当てを柔軟にすることができるので、こ
れらのテーブルに必要な記憶容量を削減することができ
る。
As described above, according to the present invention,
Since the system for obtaining the transfer destination information corresponding to the transfer destination IPv4 address and the system for obtaining the transfer destination information corresponding to the transfer destination IPv6 address can be shared, the circuit scale can be reduced. Further, the address search table and the transfer destination information table can be shared between the system that obtains the transfer destination information corresponding to the transfer destination IPv4 address and the system that obtains the transfer destination information corresponding to the transfer destination IPv6 address. Since the allocation of storage capacity to the system can be made flexible, the storage capacity required for these tables can be reduced.

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

【図1】本発明の実施形態によるルータなどのインター
ネットプロトコル層のスイッチ機能を有する装置の構成
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a device having a switching function of an internet protocol layer such as a router according to an embodiment of the present invention.

【図2】本発明の実施形態1による転送先情報検索方式
の構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a transfer destination information search method according to the first embodiment of the present invention.

【図3】図2のアドレス検索テーブル102のマッピン
グを示す図である。
FIG. 3 is a diagram showing mapping of the address search table 102 of FIG.

【図4】図2の転送先情報テーブル104のマッピング
を示す図である。
FIG. 4 is a diagram showing mapping of a transfer destination information table 104 of FIG.

【図5】図2の転送先テーブル検索情報生成部103が
アドレス検索テーブル102を検索するときに使用する
キーのフォーマットを示す図である。
5 is a diagram showing a format of a key used when the transfer destination table search information generation unit 103 in FIG. 2 searches the address search table 102. FIG.

【図6】本発明の実施形態2による転送先情報検索方式
の構成を示すブロック図である。
FIG. 6 is a block diagram showing a configuration of a transfer destination information search method according to a second embodiment of the present invention.

【図7】図6のアドレス検索テーブル202のマッピン
グを示す図である。
7 is a diagram showing mapping of the address search table 202 of FIG.

【図8】図6の転送先情報テーブル204のマッピング
を示す図である。
8 is a diagram showing mapping of a transfer destination information table 204 of FIG.

【図9】図6の転送先テーブル検索情報生成部203が
アドレス検索テーブル202を検索するときに使用する
キーのフォーマットを示す図である。
9 is a diagram showing a format of a key used when the transfer destination table search information generation unit 203 of FIG. 6 searches the address search table 202. FIG.

【図10】本発明の実施形態3による転送先情報検索方
式の構成を示すブロック図である。
FIG. 10 is a block diagram showing a configuration of a transfer destination information search method according to a third embodiment of the present invention.

【図11】図10のアドレス検索テーブル102Bのマ
ッピングを示す図である。
11 is a diagram showing mapping of the address search table 102B of FIG.

【図12】図10の転送先情報テーブル104Bのマッ
ピングを示す図である。
12 is a diagram showing mapping of the transfer destination information table 104B of FIG.

【図13】本発明の実施形態4による転送先情報検索方
式の構成を示すブロック図である。
FIG. 13 is a block diagram showing a configuration of a transfer destination information search method according to a fourth embodiment of the present invention.

【図14】図13のアドレス検索テーブル202Bのマ
ッピングを示す図である。
14 is a diagram showing mapping of the address search table 202B of FIG.

【図15】図13の転送先情報テーブル204Bのマッ
ピングを示す図である。
15 is a diagram showing mapping of the transfer destination information table 204B of FIG.

【図16】IPv4パケットのフォーマット図である。FIG. 16 is a format diagram of an IPv4 packet.

【図17】IPv6パケットのフォーマット図である。FIG. 17 is a format diagram of an IPv6 packet.

【図18】従来例による転送先情報検索方式の構成を示
すブロック図である。
FIG. 18 is a block diagram showing a configuration of a transfer destination information search method according to a conventional example.

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

1−1〜1−n 回線インタフェース 2 スイッチ 3 スイッチ制御部 4 ルーティング部 101 パケットヘッダ処理部 102 アドレス検索テーブル 103 転送先テーブル検索情報生成部 104 転送先情報テーブル 105 転送先情報検索部 106 パケット送信処理部 1-1 to 1-n line interface 2 switches 3 switch control section 4 Routing section 101 packet header processing unit 102 Address lookup table 103 transfer destination table search information generation unit 104 Transfer destination information table 105 Transfer destination information search unit 106 packet transmission processing unit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平8−212790(JP,A) 山田 憲晋 他4名,IPv4/IP v6双方を検索可能なアドレス検索エン ジン,NEC技報,日本,日本電気株式 会社,1999年 6月25日,第52巻 第6 号,pp.21〜24 立川 元也 他2名,IPv6ルータ の試作とソフトウェア構造,NEC技 報,日本,日本電気株式会社,1999年 6月25日,第52巻 第6号,pp.50〜 53 (58)調査した分野(Int.Cl.7,DB名) H04L 12/56 100 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-8-212790 (JP, A) Kenshin Yamada and 4 others, Address search engine capable of searching both IPv4 / IPv6, NEC Technical Report, Japan, NEC Corporation, June 25, 1999, Vol. 52, No. 6, pp. 21-24 Motoya Tachikawa and 2 others, Prototype and software structure of IPv6 router, NEC technical report, Japan, NEC Corporation, June 25, 1999, Vol. 52, No. 6, pp. 50-53 (58) Fields surveyed (Int.Cl. 7 , DB name) H04L 12/56 100

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 転送先IPパケットより転送先情報を得
る転送先情報検索方式において、転送先IPv4パケッ
トより転送先情報を得る回路と転送先IPv6パケット
より転送先情報を得る回路を共通化した転送先情報検索
方式において、 受信したIPパケットのヘッダから該パケットがIPv
4パケットであるのかIPv6パケットであるのかを識
別し、識別結果をv4/v6識別ビットとして出力する
と共に前記ヘッダからIPアドレスを抽出して出力する
パケットヘッダ処理部と、 転送先IPv4アドレスに対してはv4/v6識別ビッ
トと4つの転送先v4アドレスを1エントリに記憶し、
転送先IPv6アドレスに対してはv4/v6識別ビッ
トと1つの転送先IPv6アドレスを1エントリに記憶
したアドレス検索テーブルと、 転送先IPv4アドレスに対しては4つの転送先情報を
1エントリに記憶し、転送先IPv6アドレスに対して
は1つの転送先情報を1エントリに記憶した転送先情報
テーブルと、 前記v4/v6識別ビット及び前記IPアドレスをキー
にして前記アドレス検索テーブルより転送先情報テーブ
ルエントリ番号とエントリ内位置情報を検索する転送先
テーブル検索情報生成部と、 前記転送先情報テーブルエントリ番号及び前記エントリ
内位置情報をキーにして前記転送先情報を検索する転送
先情報検索部と、 を備えることを特徴とする転送先情報検索方式。
1. Transfer destination information is obtained from a transfer destination IP packet.
Transfer destination information retrieval method, the transfer destination IPv4 packet
Circuit that obtains the transfer destination information and the transfer destination IPv6 packet
Transfer destination information search with a common circuit to obtain transfer destination information
In the method, the packet is received from the header of the received IP packet
A packet header processing unit that identifies whether the packet is a 4 packet or an IPv6 packet, outputs the identification result as a v4 / v6 identification bit, and extracts and outputs an IP address from the header, and a transfer destination IPv4 address Stores v4 / v6 identification bits and four transfer destination v4 addresses in one entry,
For the transfer destination IPv6 address, the v4 / v6 identification bit and one transfer destination IPv6 address are stored in one entry in the address search table, and for the transfer destination IPv4 address, four transfer destination information are stored in one entry. , A transfer destination information table in which one transfer destination information is stored in one entry for the transfer destination IPv6 address, and a transfer destination information table entry from the address search table using the v4 / v6 identification bit and the IP address as a key A transfer destination table search information generation unit that searches for the number and the position information in the entry; and a transfer destination information search unit that searches the transfer destination information using the transfer destination information table entry number and the position information in the entry as keys. A transfer destination information retrieval method comprising:
【請求項2】 転送先IPパケットより転送先情報を得
る転送先情報検索方式において、転送先IPv4パケッ
トより転送先情報を得る回路と転送先IPv6パケット
より転送先情報を得る回路を共通化した転送先情報検索
方式において、 受信したIPパケットのヘッダから該パケットがIPv
4パケットであるのかIPv6パケットであるのかを識
別し、識別結果をv4/v6識別ビットとして出力する
と共に前記ヘッダからIPアドレスを抽出して出力する
パケットヘッダ処理部と、 転送先IPv4アドレスに対してはv4/v6識別ビッ
トと1つの転送先v4アドレスを1エントリに記憶し、
転送先IPv6アドレスに対してはv4/v6識別ビッ
トと4分割された転送先IPv6アドレスを4エントリ
に記憶したアドレス検索テーブルと、 転送先IPv4アドレスに対しては1つの転送先情報を
1エントリに記憶し、転送先IPv6アドレスに対して
は1つの転送先情報を1エントリに記憶した転送先情報
テーブルと、 前記v4/v6識別ビット及び前記IPアドレスをキー
にして前記アドレス検索テーブルより転送先情報テーブ
ルエントリ番号を検索する転送先テーブル検索情報生成
部と、 前記転送先情報テーブルエントリ番号をキーにして前記
転送先情報を検索する転送先情報検索部と、 を備えることを特徴とする転送先情報検索方式。
2. Transfer destination information is obtained from the transfer destination IP packet.
Transfer destination information retrieval method, the transfer destination IPv4 packet
Circuit that obtains the transfer destination information and the transfer destination IPv6 packet
Transfer destination information search with a common circuit to obtain transfer destination information
In the method, the packet is received from the header of the received IP packet
A packet header processing unit that identifies whether the packet is a 4 packet or an IPv6 packet, outputs the identification result as a v4 / v6 identification bit, and extracts and outputs an IP address from the header, and a transfer destination IPv4 address Stores the v4 / v6 identification bit and one transfer destination v4 address in one entry,
An address search table that stores v4 / v6 identification bits and transfer destination IPv6 addresses divided into four in four entries for the transfer destination IPv6 address, and one transfer destination information in one entry for the transfer destination IPv4 address A transfer destination information table that stores one transfer destination information for one transfer destination IPv6 address, and transfer destination information from the address search table using the v4 / v6 identification bit and the IP address as a key A transfer destination table search information generation unit that searches for a table entry number; and a transfer destination information search unit that searches for the transfer destination information by using the transfer destination information table entry number as a key. Search method.
【請求項3】 転送先IPパケットより転送先情報を得
る転送先情報検索方式において、転送先IPv4パケッ
トより転送先情報を得る回路と転送先IPv6パケット
より転送先情報を得る回路を共通化した転送先情報検索
方式において、 受信したIPパケットのヘッダから該パケットがIPv
4パケットであるのかIPv6パケットであるのかを識
別し、識別結果をv4/v6識別ビットとして出力する
と共に前記ヘッダからIPアドレスを抽出して出力する
パケットヘッダ処理部と、 転送先IPv4アドレスに対してはv4/v6識別ビッ
トと4つの転送先v4アドレスと1つの転送先情報テー
ブルエントリ番号を1エントリに記憶し、転送先IPv
6アドレスに対してはv4/v6識別ビットと1つの転
送先IPv6アドレスと1つの転送先情報テーブルエン
トリ番号を1エントリに記憶したアドレス検索テーブル
と、 転送先IPv4アドレスに対しては1つの転送先情報を
1エントリに記憶し、転送先IPv6アドレスに対して
は1つの転送先情報を1エントリに記憶した転送先情報
テーブルと、 前記v4/v6識別ビット及び前記IPアドレスをキー
にして前記アドレス検索テーブルより前記転送先情報テ
ーブルエントリ番号とエントリオフセットを検索する転
送先テーブル検索情報生成部と、 前記転送先情報テーブルエントリ番号と前記エントリオ
フセットをキーにして前記転送先情報を検索する転送先
情報検索部と、 を備えることを特徴とする転送先情報検索方式。
3. Transfer destination information is obtained from the transfer destination IP packet.
Transfer destination information retrieval method, the transfer destination IPv4 packet
Circuit that obtains the transfer destination information and the transfer destination IPv6 packet
Transfer destination information search with a common circuit to obtain transfer destination information
In the method, the packet is received from the header of the received IP packet
A packet header processing unit that identifies whether the packet is a 4 packet or an IPv6 packet, outputs the identification result as a v4 / v6 identification bit, and extracts and outputs an IP address from the header, and a transfer destination IPv4 address Stores the v4 / v6 identification bit, four transfer destination v4 addresses, and one transfer destination information table entry number in one entry, and transfers the transfer destination IPv6.
An address search table storing v4 / v6 identification bits, one transfer destination IPv6 address, and one transfer destination information table entry number in one entry for 6 addresses, and one transfer destination for transfer destination IPv4 address A transfer destination information table in which information is stored in one entry and one transfer destination information is stored in one entry for a transfer destination IPv6 address, and the address search is performed using the v4 / v6 identification bit and the IP address as keys. A transfer destination table search information generation unit that searches the transfer destination information table entry number and entry offset from a table, and a transfer destination information search that searches the transfer destination information using the transfer destination information table entry number and the entry offset as keys. And a transfer destination information retrieval method, which comprises:
【請求項4】 転送先IPパケットより転送先情報を得
る転送先情報検索方式において、転送先IPv4パケッ
トより転送先情報を得る回路と転送先IPv6パケット
より転送先情報を得る回路を共通化した転送先情報検索
方式において、 受信したIPパケットのヘッダから該パケットがIPv
4パケットであるのかIPv6パケットであるのかを識
別し、識別結果をv4/v6識別ビットとして出力する
と共に前記ヘッダからIPアドレスを抽出して出力する
パケットヘッダ処理部と、 転送先IPv4アドレスに対してはv4/v6識別ビッ
トと1つの転送先v4アドレスと転送先情報テーブルエ
ントリ番号を1エントリに記憶し、転送先IPv6アド
レスに対してはv4/v6識別ビットと4分割された転
送先IPv6アドレスを4エントリに記憶し、転送先情
報テーブルエントリ番号を前記4エントリのうちの1エ
ントリに記憶したアドレス検索テーブルと、 転送先IPv4アドレスに対しては1つの転送先情報を
1エントリに記憶し、転送先IPv6アドレスに対して
は1つの転送先情報を1エントリに記憶した転送先情報
テーブルと、 前記v4/v6識別ビット及び前記IPアドレスをキー
にして前記アドレス検索テーブルより前記転送先情報テ
ーブルエントリ番号を検索する転送先テーブル検索情報
生成部と、 前記転送先情報テーブルエントリ番号をキーにして前記
転送先情報を検索する転送先情報検索部と、 を備えることを特徴とする転送先情報検索方式。
4. The transfer destination information is obtained from the transfer destination IP packet.
Transfer destination information retrieval method, the transfer destination IPv4 packet
Circuit that obtains the transfer destination information and the transfer destination IPv6 packet
Transfer destination information search with a common circuit to obtain transfer destination information
In the method, the packet is received from the header of the received IP packet
A packet header processing unit that identifies whether the packet is a 4 packet or an IPv6 packet, outputs the identification result as a v4 / v6 identification bit, and extracts and outputs an IP address from the header, and a transfer destination IPv4 address Stores the v4 / v6 identification bit, one transfer destination v4 address and the transfer destination information table entry number in one entry. For the transfer destination IPv6 address, the v4 / v6 identification bit and the transfer destination IPv6 address divided into four are stored. An address search table in which the transfer destination information table entry number is stored in four entries and one of the four entries is stored, and one transfer destination information is stored in one entry for the transfer destination IPv4 address and transferred. Transfer destination information in which one transfer destination information is stored in one entry for the destination IPv6 address Table, a transfer destination table search information generation unit that searches the transfer destination information table entry number from the address search table using the v4 / v6 identification bit and the IP address as keys, and the transfer destination information table entry number as a key. And a transfer destination information searching unit that searches the transfer destination information.
【請求項5】 請求項1乃至のいずれか1項に記載の
転送先情報検索方式を備えることを特徴とするインター
ネットプロトコル層のスイッチ機能を有する装置。
5. A device having a switch function internet protocol layer, characterized in that it comprises a transfer destination information retrieval method according to any one of claims 1 to 4.
JP36804899A 1999-12-24 1999-12-24 Transfer destination information search method Expired - Fee Related JP3487342B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36804899A JP3487342B2 (en) 1999-12-24 1999-12-24 Transfer destination information search method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36804899A JP3487342B2 (en) 1999-12-24 1999-12-24 Transfer destination information search method

Publications (2)

Publication Number Publication Date
JP2001186184A JP2001186184A (en) 2001-07-06
JP3487342B2 true JP3487342B2 (en) 2004-01-19

Family

ID=18490851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36804899A Expired - Fee Related JP3487342B2 (en) 1999-12-24 1999-12-24 Transfer destination information search method

Country Status (1)

Country Link
JP (1) JP3487342B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100724232B1 (en) * 2001-07-07 2007-05-31 엘지전자 주식회사 Protocol identification method by IP version type on the PPI link
JP5388407B2 (en) * 2006-08-10 2014-01-15 キヤノン株式会社 Program, information processing apparatus and control method thereof
JP5407712B2 (en) * 2009-09-30 2014-02-05 富士通株式会社 Communication apparatus and communication control method
WO2014125636A1 (en) * 2013-02-18 2014-08-21 日本電信電話株式会社 Communication device or packet transfer method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
山田 憲晋 他4名,IPv4/IPv6双方を検索可能なアドレス検索エンジン,NEC技報,日本,日本電気株式会社,1999年 6月25日,第52巻 第6号,pp.21〜24
立川 元也 他2名,IPv6ルータの試作とソフトウェア構造,NEC技報,日本,日本電気株式会社,1999年 6月25日,第52巻 第6号,pp.50〜53

Also Published As

Publication number Publication date
JP2001186184A (en) 2001-07-06

Similar Documents

Publication Publication Date Title
US7039018B2 (en) Technique to improve network routing using best-match and exact-match techniques
JP4742167B2 (en) Method for performing a table lookup operation using a table index that exceeds the CAM key size
Gupta et al. Routing lookups in hardware at memory access speeds
US6615336B1 (en) Method for performing a medium access control address lookup in a network switch of an ethernet network
US7890633B2 (en) System and method of extending virtual address resolution for mapping networks
EP0993156B1 (en) Network switching device with forwarding database tables populated based on use
US7212529B2 (en) System for retrieving destination of a packet with plural headers
EP1506646B1 (en) Method and apparatus to improve network routing
EP1063814A1 (en) A method to forward a multicast packet
WO2000051298B1 (en) Network router search engine using compressed tree forwarding table
CA2469874A1 (en) Routing and forwarding table management for network processor architectures
EP1547306B1 (en) Method and network device for hierachical prefix based routing
US7693075B2 (en) Updating address tables
JP3487342B2 (en) Transfer destination information search method
KR20040046424A (en) Internet Protocol address lookup system based on 3 layer table architecture and method thereof
US20040098512A1 (en) NAPT gateway system with method capable of extending the number of connections
EP1128611A2 (en) Method for table lookup
US7729362B2 (en) Method and apparatus for processing packet in high speed router
US9014195B2 (en) Packet forwarding method and system
JP3132426B2 (en) High-speed LAN switching control method and system
JP2000270004A (en) Router
US8331368B2 (en) Method of processing information packets and telecommunication apparatus using the same
KR20040062343A (en) distributed router and ARP packet processing method thereof
JP3376941B2 (en) Router device
KR100504387B1 (en) Method and Hardware Architecture for Searching IP Address by Using SRAM and Hashing

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071031

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20081031

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091031

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091031

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20101031

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111031

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20121031

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20131031

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees