JPH0730575A - Router having address conversion function - Google Patents

Router having address conversion function

Info

Publication number
JPH0730575A
JPH0730575A JP5169962A JP16996293A JPH0730575A JP H0730575 A JPH0730575 A JP H0730575A JP 5169962 A JP5169962 A JP 5169962A JP 16996293 A JP16996293 A JP 16996293A JP H0730575 A JPH0730575 A JP H0730575A
Authority
JP
Japan
Prior art keywords
address
packet
data
router
data pattern
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
JP5169962A
Other languages
Japanese (ja)
Other versions
JP3464021B2 (en
Inventor
Kazuo Asano
一夫 浅野
Hideyuki Aikawa
秀幸 相川
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP16996293A priority Critical patent/JP3464021B2/en
Publication of JPH0730575A publication Critical patent/JPH0730575A/en
Application granted granted Critical
Publication of JP3464021B2 publication Critical patent/JP3464021B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To form a router able to be used even when a formal address and an informal address are in coexistence and to reduce a time for table retrieval. CONSTITUTION:When the router 1 receives a packet from a network, an address analysis mechanism 21 retrieves an address allocation table 31 as to an address extracted from a packet to convert the address and sends the result to a destination network. When the address is not registered in the address allocation table 31, an address conversion rule table 32 is referred to and a corresponding address pair is registered to the address allocation table 31 to make address conversion. Furthermore, the address is allocated by an address group by registering a group address to the address conversion rule table 32. Moreover, the router is provided with an in-data address conversion mechanism 38 and a data pattern registration table 35 or the like to convert the address included in a packet data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数のネットワーク間
を接続し、通過するパケットのソースやデスティネーシ
ョンのアドレスを変換する機能を持つルータに関し、特
に、本発明は変換前のアドレスと変換後のアドレス対の
割り当てを行うアドレス変換機能を持つルータに関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a router having a function of connecting a plurality of networks and converting an address of a source or a destination of a packet passing therethrough. The present invention relates to a router having an address translation function for allocating address pairs of.

【0002】[0002]

【従来の技術】アドレス変換機能付きルータ装置は、イ
ンターネットに接続できる数少ない正式アドレスを有効
に利用するため、非正式アドレスをもつ多くのマシンが
インターネットに接続する際、正式アドレスに変換して
接続するためのものであり、上記ルータとしては、例え
ば、特願平4−150295号に示されるもの等が提案
されている。
2. Description of the Related Art A router device with an address conversion function effectively uses the few official addresses that can be connected to the Internet. Therefore, when many machines with unofficial addresses connect to the Internet, they are converted to official addresses before connecting. As such a router, for example, the router disclosed in Japanese Patent Application No. 4-150295 has been proposed.

【0003】上記した従来のルータにおけるアドレス変
換方法は、実在マシンアドレス(非正式アドレス)と、
仮想マシンアドレス(正式アドレス)の対を一対一のア
ドレス変換表に登録しそれに従って変換するとともに、
上記アドレス変換表に登録されていないものは、単純に
順番にアドレスを割り当て、上記アドレス変換表に登録
する方法であった。
The address translation method in the above-mentioned conventional router uses a real machine address (unofficial address),
Register a pair of virtual machine addresses (official addresses) in the one-to-one address conversion table and convert according to it,
The method not registered in the address conversion table was a method of simply allocating addresses in order and registering them in the address conversion table.

【0004】[0004]

【発明が解決しようとする課題】ところで、上記した従
来のルータにおいては、次のような問題があった。 変換しようとするアドレス対を登録する表と、実際
に通信を行っているアドレス対を登録する表が一緒にな
っているため、どのアドレスは変換し、どのアドレスは
変換しないというような規則を定義できない。
By the way, the above-mentioned conventional router has the following problems. Since the table that registers the address pairs to be translated and the table that registers the address pairs that are actually communicating are together, define a rule such as which address is translated and which address is not translated. Can not.

【0005】その結果、ルータの一方の側にあるネット
ワークと反対側にあるネットワークとの間の通信の際に
は、全てのパケットのアドレスが変換されることにな
り、本来変換する必要のない正式アドレスであっても、
その正式アドレスに対して新たなアドレスを割り当てし
まう等、実用上、ルータの片側に正式アドレスと非正式
なアドレスが混在している場所での使用ができなかっ
た。
As a result, during communication between the network on one side of the router and the network on the other side, the addresses of all the packets are translated, and it is not necessary to translate them. Even with an address
In practice, it could not be used in a place where both official and unofficial addresses were mixed on one side of the router, such as assigning a new address to the official address.

【0006】また、同様に表が一つになっていることか
ら、実際に通信していないアドレス対もすべて登録され
るため、通信中であるマシンのアドレス変換の際の表検
索に時間がかかるという問題点があった。 変換するアドレス対の登録が一対一であるため、ネ
ットワークの規模が大きい場合に登録する量が多くな
り、登録に時間がかかり過ぎ、またアドレス変換表が大
きくなりすぎるという問題点があった。 パケットへのヘッダ中のアドレスの書換えしか行わ
れず、データ中に含まれるアドレス情報の書き換えは行
えないため、データ中にアドレスを入れて通信するよう
なアプリケーションは、うまく通信できなかった。
Similarly, since there is only one table, all address pairs that are not actually communicating are registered, so it takes time to search the table when translating addresses of machines that are communicating. There was a problem. Since the address pairs to be translated are registered one-on-one, the amount of registration is large when the scale of the network is large, there is a problem that registration takes too long and the address translation table becomes too large. Since only the address in the header of the packet is rewritten and the address information contained in the data cannot be rewritten, an application that puts the address in the data and communicates could not communicate well.

【0007】本発明は上記した従来技術の問題点を考慮
してなされたものであって、本発明の第1の目的は、正
式アドレスと非正式なアドレスが混在している場所にお
いても使用することができ、また、アドレス変換のため
の表を小さくすることができ表検索の時間を短縮するこ
とができるルータを提供することである。本発明の第2
の目的は、アドレス変換のための表への登録時間を短く
することができるルータを提供することである。
The present invention has been made in consideration of the above-mentioned problems of the prior art, and the first object of the present invention is to use it even in a place where a formal address and an unofficial address are mixed. It is another object of the present invention to provide a router capable of reducing the table for address translation and shortening the time for table lookup. Second of the present invention
The purpose of is to provide a router that can shorten the registration time in the table for address translation.

【0008】本発明の第3の目的は、パケットのデータ
中に含まれるアドレス情報をも書き換えることが可能な
ルータを提供することである。
A third object of the present invention is to provide a router capable of rewriting address information contained in packet data.

【0009】[0009]

【課題を解決するための手段】図1は本発明の原理説明
図である。同図において、1はルータ、21は入力アド
レスを解析し、必要ならばアドレスを付け替えるアドレ
ス解析機構、22は正式アドレスと非正式アドレスの対
を生成するアドレス生成機構、31は実際に通信を行っ
ている状態にあるマシンの正式でないマシン・アドレス
と正式マシン・アドレスの対を格納するアドレス割当
表、32はアドレスを生成する規則を格納するアドレス
変換規則表、33は正式アドレス群と非正式アドレス群
の対を登録する群アドレス登録手段、34は受信したパ
ケットが登録された群アドレスに該当しているかを判定
するアドレス判定部、35はパケットデータのパターン
を登録するデータパターン登録表、36は受信したパケ
ットからデータパターンを抽出するデータパターン抽出
部、37は登録されたパターンと抽出されたパターンを
比較するデータパターン比較部、38は受信したパケッ
トのアドレスを変換するデータ内アドレス変換機構、3
9はアドレスを付け替えるタイミングを判断するアドレ
ス変換タイミング部である。
FIG. 1 is a diagram for explaining the principle of the present invention. In the figure, 1 is a router, 21 is an address analysis mechanism that analyzes an input address and replaces the addresses if necessary, 22 is an address generation mechanism that generates a pair of a formal address and an unofficial address, and 31 is actually performing communication. Address table which stores the pair of unofficial machine address and official machine address of the machine in the state of being in the state, 32 is the address translation rule table which stores the rule for generating the address, 33 is the official address group and the unofficial address Group address registration means for registering a pair of groups, 34 an address determination unit for determining whether the received packet corresponds to the registered group address, 35 a data pattern registration table for registering a packet data pattern, and 36 a A data pattern extraction unit for extracting a data pattern from the received packet, 37 is a registered pattern Data pattern comparison unit for comparing the extracted pattern data in the address conversion mechanism for converting the address of the received packet 38, 3
An address conversion timing unit 9 determines the timing of address replacement.

【0010】上記課題を解決するため、本発明の請求項
1の発明は、図1に示すように、正式でないアドレスと
正式なアドレスの対を登録するアドレス変換表と、送信
されてきたパケットから取り出したアドレスについて、
上記アドレス変換表を参照して、正式でないアドレスを
正式アドレスに、また、正式アドレスを正式でないアド
レスに変換するアドレス解析機構21を備えたアドレス
変換機能を持つルータにおいて、アドレス変換表を、正
式でないアドレスと正式アドレスの対応関係を登録する
アドレス変換規則表32と、実際に通信を行っている状
態にあるマシンの正式でないアドレスと正式アドレスの
対を格納するアドレス割当表31とから構成し、上記ア
ドレス解析機構21が上記アドレス割当表31とアドレ
ス変換規則表32に登録されたアドレス対に基づき送信
されてきたパケットから取り出したアドレスを変換する
ようにしたものである。
In order to solve the above problems, the invention of claim 1 of the present invention, as shown in FIG. 1, uses an address conversion table for registering a pair of an unofficial address and an official address, and a transmitted packet. Regarding the retrieved address,
In the router having the address conversion function, which is provided with the address analysis mechanism 21 for converting an unofficial address to a formal address and an official address to an unofficial address with reference to the address translation table, the address translation table is unofficial. The address conversion rule table 32 for registering the correspondence between the addresses and the formal addresses, and the address allocation table 31 for storing the pair of the unofficial address and the formal address of the machine in the actual communication state are provided. The address analysis mechanism 21 translates the address extracted from the packet transmitted based on the address pair registered in the address assignment table 31 and the address translation rule table 32.

【0011】本発明の請求項2の発明は、請求項1の発
明において、パケットのアドレスを変換するタイミング
を判断するアドレス変換タイミング部39を設けたもの
である。本発明の請求項3の発明は、請求項1または請
求項2の発明において、マシンまたはネットワークのア
ドレス群を登録するための群アドレス登録手段33と、
通過するパケット内のアドレスが群アドレスに該当する
かどうかを判断するアドレス判定部34とを設けたもの
である。
According to a second aspect of the present invention, in the first aspect of the invention, an address conversion timing unit 39 for determining the timing of converting the packet address is provided. According to a third aspect of the present invention, in the first or second aspect of the invention, a group address registration means 33 for registering an address group of a machine or a network,
An address determination unit 34 for determining whether or not the address in the passing packet corresponds to the group address.

【0012】本発明の請求項4の発明は、請求項1,2
または請求項3の発明において、受信したパケットのデ
ータ部もしくはヘッダ部内のデータ位置と、データのパ
ターンと、このパターンにマッチした時に変換すべきア
ドレスのパケット中の位置を登録するデータパターン登
録表35と、データパターン登録表35に登録されたデ
ータパターンの位置情報に基づき、受信したパケット中
からデータを切り出すデータパターン抽出部36と、デ
ータパターン登録表35に登録されたパターンと、デー
タパターン抽出部36により実際のパケットから切り出
したデータを比較するデータパターン比較部37と、デ
ータパターン比較部37における比較結果が同じとき
に、データパターン登録表35に登録されたアドレス位
置の内容を書き換えるデータ内アドレス変換機構38と
を設けたものである。
The invention of claim 4 of the present invention is the same as claims 1 and 2.
Alternatively, in the invention of claim 3, a data pattern registration table 35 for registering the data position in the data part or the header part of the received packet, the data pattern, and the position in the packet of the address to be converted when the pattern is matched. And a data pattern extraction unit 36 that cuts out data from the received packet based on the position information of the data pattern registered in the data pattern registration table 35, a pattern registered in the data pattern registration table 35, and a data pattern extraction unit. The data pattern comparison unit 37 that compares the data cut out from the actual packet by 36, and the in-data address that rewrites the contents of the address position registered in the data pattern registration table 35 when the comparison result in the data pattern comparison unit 37 is the same. And a conversion mechanism 38.

【0013】[0013]

【作用】図1において、まず、予め、正式でないアドレ
スと正式なアドレスの対をアドレス変換規則表32に登
録しておく。ルータ1がネットワークAあるいはBから
パケットを受け取ると、アドレス解析機構21が、パケ
ットから取り出したアドレスについて、アドレス割当表
31を検索する。そして、該当アドレスがあれば、アド
レス割当表31に基づきアドレスを変換し、アドレスを
変換したパケットを宛て先のネットワークに送信する。
In FIG. 1, first, a pair of an unofficial address and a formal address is registered in the address conversion rule table 32 in advance. When the router 1 receives the packet from the network A or B, the address analysis mechanism 21 searches the address allocation table 31 for the address extracted from the packet. If there is a corresponding address, the address is converted based on the address allocation table 31, and the packet with the converted address is transmitted to the destination network.

【0014】また、アドレス割当表31に登録されてい
ない場合には、受信したパケットの送信元アドレスが非
正式なアドレス(実アドレス)のとき、あるいは、送信
先アドレスが正式なアドレス(仮想アドレス)のとき
に、アドレス生成機構22がアドレス変換規則表32を
参照する。そして、該当するアドレスを含むアドレス対
が登録されていれば、対応するアドレス対をアドレス割
当表31に登録し、上記アドレス解析機構21が受信パ
ケットのアドレス変換を行う。また、登録されていなけ
れば、アドレス変換をおこなわず、元のままのアドレス
で通常のパケット処理を行う。
When the address is not registered in the address allocation table 31, the source address of the received packet is an unofficial address (real address), or the destination address is a formal address (virtual address). At this time, the address generation mechanism 22 refers to the address conversion rule table 32. Then, if the address pair including the corresponding address is registered, the corresponding address pair is registered in the address allocation table 31, and the address analysis mechanism 21 converts the address of the received packet. If not registered, address conversion is not performed, and normal packet processing is performed using the original address.

【0015】アドレス変換タイミング部39はパケット
のアドレスを付け替えるタイミングを定めるために設け
られたものであり、ルータ1がパケットを受信した直後
と、送信する直前にアドレス解析機構32にパケットを
渡すと、アドレス解析機構32は上記アドレス変換タイ
ミング部39にアドレスを渡す。アドレス変換タイミン
グ部39は受け取ったアドレスについて、変換するタイ
ミングをアドレス解析機構に指示する。アドレスを変換
するタイミングは送信元アドレスが非正式な実アドレス
のときには送信する直前に正式な仮想アドレスに、ま
た、送信先アドレスが正式な仮想アドレスの場合には、
受信した直後に非正式な実アドレスに変換する。
The address translation timing unit 39 is provided to determine the timing of reassigning the address of the packet. When the packet is passed to the address analysis mechanism 32 immediately after the router 1 receives the packet and immediately before sending it, The address analysis mechanism 32 passes the address to the address conversion timing unit 39. The address conversion timing unit 39 instructs the address analysis mechanism on the conversion timing of the received address. When the source address is an unofficial real address, the address is converted to the official virtual address immediately before sending, and when the destination address is the official virtual address,
Immediately after receiving it, it is converted to an unofficial real address.

【0016】また、群アドレス登録手段33およびアド
レス判定部34は、アドレス変換規則表32に登録され
た非正式な実アドレス群と正式な仮想アドレス群に基づ
きアドレス変換を行うために設けられたものであり、群
アドレス登録手段33によりアドレス変換規則表32に
上記非正式な実アドレス群と正式な仮想アドレス群を登
録しておく。
Further, the group address registration means 33 and the address determination section 34 are provided for performing address conversion based on the formal real address group and the formal virtual address group registered in the address conversion rule table 32. The group address registration means 33 registers the above-mentioned unofficial real address group and formal virtual address group in the address conversion rule table 32.

【0017】そして、アドレス生成機構22がアドレス
変換規則表32を参照する際に、アドレス判定部34に
より、受信した非正式アドレスが非正式アドレス群とし
て登録されているか否かを判定し、登録されている場合
には、対となっている正式仮想アドレス群からアドレス
の割り当てを行う。さらに、データ内アドレス変換機構
38、データパターン登録表35、データパターン比較
部37、データパターン抽出部36はパケットのデータ
中に含まれるアドレスを変換するために設けられたもの
であり、データパターン登録表35に、予め、パケット
のデータ中にIPアドレスを含むようなアプリケーショ
ンのパケットの特徴を充分に表すようなパケット中のデ
ータパターンと、変換するアドレスの位置を登録してお
く。
Then, when the address generation mechanism 22 refers to the address conversion rule table 32, the address judgment unit 34 judges whether or not the received unofficial address is registered as an unofficial address group and is registered. In this case, the address is assigned from the pair of official virtual addresses. Further, the in-data address conversion mechanism 38, the data pattern registration table 35, the data pattern comparison unit 37, and the data pattern extraction unit 36 are provided for converting the address included in the data of the packet. In the table 35, the data pattern in the packet that sufficiently expresses the characteristics of the packet of the application that includes the IP address in the data of the packet and the position of the address to be converted are registered in advance.

【0018】ルータ1がパケットを受信すると、データ
パターン登録表35に従って、データパターン抽出部3
6によりパケット中からデータパターンを切り出す。そ
して、切り出したデータパターンをデータパターン比較
部37において、データパターン登録表35に登録され
たものと等しいか否か比較し、等しい場合には、データ
内アドレス変換機構38がデータパターン登録表35に
登録された情報に従って、パケット中のアドレスを書き
換える。
When the router 1 receives the packet, the data pattern extraction unit 3 according to the data pattern registration table 35.
At 6, the data pattern is cut out from the packet. Then, in the data pattern comparison unit 37, the cut-out data pattern is compared with the one registered in the data pattern registration table 35, and if they are equal, the in-data address conversion mechanism 38 stores the data pattern in the data pattern registration table 35. The address in the packet is rewritten according to the registered information.

【0019】本発明の請求項1の発明においては、上記
のように、アドレス割当表31とアドレス変換規則表3
2を設け、アドレス割当表31とアドレス変換規則表3
2に登録されたアドレス対に基づき送信されてきたパケ
ットから取り出したアドレスを変換するようにしたの
で、ルータの片側のネットワークに実アドレスと仮想ア
ドレスが混在している場所においても使用することがで
き、また、アドレス割当表に実際に通信していないアド
レス対が登録されることがないので、アドレス割当表が
大きくなることがなく表検索の時間を従来のものに較べ
短縮することができる。
In the invention of claim 1 of the present invention, as described above, the address allocation table 31 and the address conversion rule table 3 are provided.
2, the address allocation table 31 and the address conversion rule table 3 are provided.
Since the address extracted from the packet sent based on the address pair registered in 2 is translated, it can be used even in the place where the real address and virtual address are mixed in the network on one side of the router. Also, since the address pair not actually communicating is not registered in the address allocation table, the address allocation table does not become large and the time for table search can be shortened as compared with the conventional one.

【0020】本発明の請求項2の発明においては、上記
のようにアドレス変換タイミング部39を設け、ルータ
1内では、全ての処理を実在するアドレスで行うことが
できるようにしたので、ルータが元々もっている機能を
そのまま使うことができ、ルータの構成を簡単にするこ
とができる。本発明の請求項3の発明においては、上記
のように群アドレス登録手段33と、アドレス判定部3
4とを設け、群アドレスをアドレス変換規則表32に登
録できるようにしたので、ネットワークの規模が大きい
場合でも登録する表が大きくなることがなく、また、全
てのアドレスを一対一に登録する必要がないので、表へ
の登録時間を短くすることができる。
In the second aspect of the present invention, the address conversion timing unit 39 is provided as described above, and all the processing can be performed by the existing address in the router 1. You can use the original functions as they are and simplify the router configuration. In the invention of claim 3 of the present invention, as described above, the group address registration means 33 and the address determination section 3 are provided.
4 is provided so that the group address can be registered in the address conversion rule table 32, the table to be registered does not become large even when the scale of the network is large, and all addresses need to be registered one to one. Since there is no such thing, the registration time in the table can be shortened.

【0021】本発明の請求項4の発明においては、上記
のようにデータ内アドレス変換機構38、データパター
ン登録表35、データパターン比較部37、データパタ
ーン抽出部36を設けたので、IPパケットのヘッダ中
のアドレスだけでなく、データ中に含まれるアドレスの
書き換えも行うことができる。
According to the fourth aspect of the present invention, since the in-data address translation mechanism 38, the data pattern registration table 35, the data pattern comparison unit 37, and the data pattern extraction unit 36 are provided as described above, the IP packet Not only the address in the header but also the address included in the data can be rewritten.

【0022】[0022]

【実施例】図2は本発明の第1の実施例を示す図であ
る。同図において、2は正式でないアドレス(以下、実
アドレスという)をも含むアドレスを用いて通信するネ
ットワークA、1はアドレス変換機能を持つルータ、3
は正式なアドレス(以下、仮想アドレスという)を用い
て通信するネットワークBである。
FIG. 2 is a diagram showing a first embodiment of the present invention. In the figure, 2 is a network A that communicates using addresses including unofficial addresses (hereinafter referred to as real addresses), 1 is a router having an address conversion function, 3
Is a network B that communicates using a formal address (hereinafter referred to as a virtual address).

【0023】また、ルータ1において、11,12はネ
ットワークとルータ1の通信を制御するネットワーク・
インタフェース部、13は受け取ったパケットの行き先
のインタフェースを決定するルーティング部である。2
3はアドレス変換登録機構であり、アドレス変換登録機
構23において、21はパケットに含まれる行き先のア
ドレスを取り出し、変換が必要なアドレスが否かを調べ
るアドレス解析機構、31は実アドレスと仮想アドレス
の一対一の対から構成されるアドレス割当表、22はア
ドレスが上記アドレス割当表に登録されていない場合
に、次のアドレス変換規則表を照合して、変換するアド
レスを生成するアドレス生成機構、32は変換すべきア
ドレスを登録したアドレス変換規則表である。
In the router 1, 11 and 12 are networks for controlling communication between the network and the router 1.
The interface unit 13 is a routing unit that determines the destination interface of the received packet. Two
3 is an address translation / registration mechanism. In the address translation / registration mechanism 23, 21 is an address analysis mechanism for extracting a destination address included in a packet and checking whether or not there is an address that needs translation. 31 is a real address and a virtual address. An address allocation table composed of one-to-one pairs, 22 is an address generation mechanism for generating an address to be converted by collating the following address conversion rule table when the address is not registered in the address allocation table, 32 Is an address translation rule table in which addresses to be translated are registered.

【0024】なお、以下に示す構成図においては、実線
矢印は「パケットの流れ」、点線矢印は「参照」、太実
線矢印は「制御の流れ」、太点線矢印は「書き込み」を
意味している。図3はIP(Internet Protocol )ネッ
トワークの中を流れるIPパケットの構造の概略を示す
図であり、同図に示すように、IPパケットにおいて
は、パケットの先頭から13バイト目の位置から4バイ
トが送信元アドレス、また、その次の4バイトが送信先
アドレスとなっている(RFC791 Internet Protocol,Dar
paInternet Program,Protocol Specification,Septembe
r 1981 参照)。
In the configuration diagram shown below, the solid arrow means "packet flow", the dotted arrow means "reference", the thick solid arrow means "control flow", and the thick dotted arrow means "write". There is. FIG. 3 is a diagram showing an outline of the structure of an IP packet flowing in an IP (Internet Protocol) network. As shown in the figure, in the IP packet, 4 bytes from the position of the 13th byte from the beginning of the packet The source address and the next 4 bytes are the destination address (RFC791 Internet Protocol, Dar
paInternet Program, Protocol Specification, Septembe
r 1981).

【0025】図4は上記したアドレス割当表31の一例
を示す図であり、同図に示すようにアドレス割当表31
には実アドレスと仮想アドレスの対が登録されている。
図5は上記したアドレス変換規則表32の一例を示す図
であり、同図に示すように、アドレス変換規則表32に
はアドレス変換の対象となる全ての実アドレスと仮想ア
ドレスの対が登録されている。
FIG. 4 is a diagram showing an example of the address allocation table 31 described above. As shown in FIG.
A pair of real address and virtual address is registered in.
FIG. 5 is a diagram showing an example of the above-mentioned address translation rule table 32. As shown in FIG. 5, all the pairs of real addresses and virtual addresses to be subjected to address translation are registered in the address translation rule table 32. ing.

【0026】次に図2の本実施例の動作を説明する。通
常のルータ動作において、ネットワークAまたはネット
ワークBから送られたIPパケット(図3)はルータ1
のネットワーク・インタフェース部Aまたはネットワー
ク・インタフェース部Bで受信され、受信したIPパケ
ットは、ルーティング部13で行き先のインタフェース
を決定後、決定したインタフェース部からネットワーク
AまたはネットワークB宛に送信される。
Next, the operation of this embodiment shown in FIG. 2 will be described. In normal router operation, the IP packet (FIG. 3) sent from network A or network B
The received IP packet is received by the network interface unit A or the network interface unit B, and is then transmitted to the network A or the network B from the determined interface unit after the routing unit 13 determines the destination interface.

【0027】上記ルータ動作において、本実施例におい
ては図6、図7のフローチャートに示す処理によりアド
レス変換する。図6は本実施例におけるアドレス変換処
理を示すフローチャートであり、実アドレスを含むアド
レスで通信を行うネットワークA、あるいは、仮想アド
レスで通信を行うネットワークBから送られたIPパケ
ットは、ルータ1のネットワーク・インタフェース部A
もしくはBで受信される。受信されたIPパケットは入
力処理を行ったのち、アドレス変換登録機構23のアド
レス解析機構21に送られ、アドレス解析機構21はI
Pパケット中に含まれるアドレスを取り出す(図6のス
テップS1)。
In the above router operation, in this embodiment, address conversion is performed by the processing shown in the flowcharts of FIGS. FIG. 6 is a flow chart showing the address conversion process in this embodiment. The IP packet sent from the network A which communicates with an address including a real address or the network B which communicates with a virtual address is the network of the router 1.・ Interface A
Or, it is received by B. The received IP packet is subjected to input processing and then sent to the address analysis mechanism 21 of the address translation registration mechanism 23.
The address included in the P packet is extracted (step S1 in FIG. 6).

【0028】次に、アドレス解析機構21はアドレス割
当表31を照合して(ステップS2)、取り出されたア
ドレスが変換すべきアドレスであるか否かを調べる(ス
テップS3)。アドレス割当表31には図4に示したよ
うに、実在する実アドレスと仮想アドレスの対が登録さ
れており、アドレス解析機構21は取り出されたアドレ
スとアドレス割当表31を照合し、送信元アドレスが実
アドレスとして登録されている場合には、アドレス割当
表31より対応する仮想アドレスを取り出し、IPパケ
ットの送信元アドレス部分を仮想アドレスに書き換える
(ステップS4)。
Next, the address analysis mechanism 21 collates the address allocation table 31 (step S2) and checks whether or not the fetched address is an address to be translated (step S3). As shown in FIG. 4, a pair of a real address and a virtual address that actually exist is registered in the address allocation table 31, and the address analysis mechanism 21 collates the fetched address with the address allocation table 31 to determine the source address. Is registered as a real address, the corresponding virtual address is fetched from the address allocation table 31, and the source address part of the IP packet is rewritten to the virtual address (step S4).

【0029】また、送信先アドレスが仮想アドレスとし
て登録されている場合には、アドレス割当表の実アドレ
スを取り出して、IPパケットの送信先アドレス部分を
実アドレスに書き換える。そして、チェックサム再計算
を行い(ステップS5)、出力処理へ渡し(ステップS
10)、パケット発信を行う(ステップS11)。さら
に、送信元アドレス、送信先アドレスがアドレス割当表
31に登録されていない場合には、図5に示したアドレ
ス変換規則表32を調べ、上記アドレスがアドレス変換
規則表32にあるか否かを調べる(ステップS6,
7)。
When the destination address is registered as a virtual address, the real address in the address allocation table is taken out and the destination address part of the IP packet is rewritten to the real address. Then, the checksum is recalculated (step S5) and passed to the output process (step S5).
10) The packet is transmitted (step S11). Furthermore, when the source address and the destination address are not registered in the address allocation table 31, the address conversion rule table 32 shown in FIG. 5 is checked to see if the address is in the address conversion rule table 32. Check (step S6
7).

【0030】図7はアドレス変換規則表の検索処理のフ
ローチャートであり、同図によりアドレス変換規則表に
よる検索処理について説明する。ステップR1におい
て、アドレス変換規則表の第1行を取り出して、ステッ
プR2において、送信元アドレスが実アドレスと等しい
か否かを調べ、等しい場合には、ステップR3に行き、
該当行の実アドレス、仮想アドレスを返し検索を終了す
る。
FIG. 7 is a flowchart of the address conversion rule table search process. The address conversion rule table search process will be described with reference to FIG. In step R1, the first row of the address translation rule table is taken out, and in step R2 it is checked whether or not the source address is equal to the real address. If they are equal, then go to step R3,
The real address and virtual address of the corresponding line are returned, and the search ends.

【0031】また、送信元アドレスが実アドレスと等し
くない場合には、ステップR4に行き、アドレス変換表
の次の行があるか否かを調べ、ある場合には、アドレス
変換規則表の次の行を取り出してステップR2に戻る。
ない場合には、検索処理を終了する。上記のようにアド
レス変換規則表32を検索処理した結果、送信元アドレ
スが実アドレスとして登録されていた場合、あるいは、
送信先アドレスが仮想アドレスとして登録されていた場
合には、変換すべきアドレスである。この場合には、ア
ドレス生成機構22がアドレス変換規則表32に登録さ
れた内容に従って、実アドレスから仮想アドレスを、あ
るいは、仮想アドレスから実アドレスを生成し、アドレ
ス割当表31に登録する。また、アドレス変換規則表3
2にも受信パケットのアドレスが登録されていない場合
には、アドレスを変換する必要はないので、そのIPパ
ケットは元のままの送信元と送信先アドレスで、通常の
ルータのIPパケットの処理を行う。
If the source address is not equal to the real address, the process goes to step R4 to check whether or not there is the next row in the address translation table. If there is, the next address in the address translation rule table is checked. The row is taken out and the process returns to step R2.
If not, the search process ends. As a result of searching the address conversion rule table 32 as described above, if the source address is registered as a real address, or
If the destination address is registered as a virtual address, it is an address to be translated. In this case, the address generation mechanism 22 generates a virtual address from the real address or a real address from the virtual address according to the contents registered in the address conversion rule table 32, and registers it in the address allocation table 31. Also, the address conversion rule table 3
If the address of the received packet is not registered in 2 as well, there is no need to convert the address, so the IP packet will be processed with the normal source and destination addresses of the router. To do.

【0032】すなわち、図6のフローチャートにおい
て、受信パケットのアドレスがアドレス変換規則表32
に有る場合には、(ステップS7)、アドレス変換規則
表32の検索結果に基づき、アドレス生成機構22によ
りアドレス対を生成し(ステップS8)、アドレス割当
表31に登録し(ステップS9)、ステップS4に行き
前記した処理を行う。
That is, in the flow chart of FIG. 6, the address of the received packet is the address translation rule table 32.
If (step S7), the address generation mechanism 22 generates an address pair based on the search result of the address conversion rule table 32 (step S8), and registers it in the address allocation table 31 (step S9). The process proceeds to S4 and the above-mentioned processing is performed.

【0033】また、受信パケットのアドレスがアドレス
変換規則表32に無い場合には上記した通常の出力処理
を行う(ステップS10)。以上のようにしてIPパケ
ットのアドレスを変換したのち、IPパケットはネット
ワーク・インタフェースAまたはBに渡されネットワー
クAまたはBに送信される。また、アドレス割当表31
は、例えば、ネットワーク間の通信が終了し所定時間以
上アクセスがない場合等にはクリアされ、ネットワーク
間の通信が開始すると新たに実アドレスと仮想アドレス
が登録される。
If the address of the received packet is not in the address conversion rule table 32, the above-mentioned normal output processing is performed (step S10). After the address of the IP packet is converted as described above, the IP packet is delivered to the network interface A or B and transmitted to the network A or B. Also, the address allocation table 31
Is cleared, for example, when communication between networks ends and there is no access for a predetermined time or more, and when communication between networks starts, a real address and a virtual address are newly registered.

【0034】本実施例においては、上記のように、アド
レス割当表とアドレス変換規則表を設けたので、ルータ
の片側のネットワークに実アドレスと仮想アドレスが混
在している場所においても使用することができ、また、
アドレス割当表に実際に通信していないアドレス対が登
録されることがないので、アドレス割当表が大きくなる
ことがなく表検索の時間を従来のものに較べ短縮するこ
とができる。
In this embodiment, since the address allocation table and the address conversion rule table are provided as described above, it can be used even in a place where a real address and a virtual address are mixed in the network on one side of the router. Yes, again
Since the address pair not actually communicating is not registered in the address allocation table, the address allocation table does not become large, and the time for table search can be shortened as compared with the conventional one.

【0035】図8は本発明の第2の実施例を示す図であ
り、本実施例においては、第1の実施例のものに、アド
レス変換のタイミングを定めるアドレス変換タイミング
部39を設けたものであり、その他の構成は図2に示し
た第1の実施例と同様である。本実施例においては、ル
ータ1内では、全ての処理を実在するアドレスで行うこ
とにより、ルータが元々もっている機能をなるべくその
まま使えるようにし、ルータの構成が簡単になるように
配慮したものである。
FIG. 8 is a diagram showing a second embodiment of the present invention. In this embodiment, an address conversion timing section 39 for determining the address conversion timing is provided in the first embodiment. Other configurations are similar to those of the first embodiment shown in FIG. In the present embodiment, all the processing is performed in the router 1 by using an existing address, so that the function originally possessed by the router can be used as much as possible and the configuration of the router is simplified. .

【0036】図9は本実施例における処理の流れを示す
図であり、本実施例においては、同図に示すように、ル
ータ1内では実アドレスで処理をするようにしたもので
ある。すなわち、ルータ1がネットワークAからネット
ワークインタフェースAを介してパケットを受信する
と、実アドレスのままで、行き先のネットワークの決
定、チェックサム照合等の通常のパケット処理を行った
のち、アドレス変換を行いネットワークインタフェース
Bを介してネットワークBに送信する。また、ルータ1
がネットワークBからネットワークインタフェースBを
介してパケットを受信すると、まず、仮想アドレスを実
アドレスにアドレス変換したのち、実アドレスで通常の
パケット処理を行いネットワークインタフェースAを介
してネットワークAに送信する。
FIG. 9 is a diagram showing the flow of processing in this embodiment. In this embodiment, as shown in the figure, processing is performed with a real address in the router 1. That is, when the router 1 receives a packet from the network A through the network interface A, the real address is used as it is, the destination network is determined, normal packet processing such as checksum matching is performed, and then the address is converted. Send to network B via interface B. Also, router 1
When the packet is received from the network B via the network interface B, first, the virtual address is converted into the real address, and then the normal address is processed by the real address and the packet is transmitted to the network A via the network interface A.

【0037】図10および図11は本実施例のルータお
けるアドレス書き換え処理を示すフローチャートであ
り、ここでは、ネットワークAが正式でないアドレス
(実アドレス)を用いて通信を行い、ネットワークBが
正式アドレスを使用して通信しているネットワークとす
る。次に同図を参照して本実施例の処理を説明する。
FIGS. 10 and 11 are flowcharts showing the address rewriting process in the router of this embodiment. Here, the network A uses the unofficial address (real address) for communication, and the network B uses the official address. Use the network you are communicating with. Next, the processing of this embodiment will be described with reference to FIG.

【0038】ネットワークAまたはネットワークBから
送られたIPパケットはルータ1のネットワークインタ
フェース部AまたはBで受信され、チェックサム照合な
どの入力処理を行う。(図10のステップS1) 次に、入力処理を行った直後、パケットのアドレス書き
換え処理(ステップS1〜9)を行い、さらに、ルーテ
ィング部13によってフォワード処理を行う。
The IP packet sent from the network A or the network B is received by the network interface unit A or B of the router 1, and input processing such as checksum verification is performed. (Step S1 in FIG. 10) Next, immediately after performing the input process, the packet address rewriting process (steps S1 to 9) is performed, and further, the forwarding process is performed by the routing unit 13.

【0039】最後に、出力処理(ステップS19)を行
う直前に、再びパケットのアドレス書き換え処理(ステ
ップS11〜18)を行い、そのあと出力処理(ステッ
プS19)を行ってパケットが発信される(ステップS
19)。ここで、入力処理(ステップS1)の直後と出
力処理(ステップS19)の直前に行われるアドレス書
き換え処理(ステップS2〜9、ステップS11〜1
8)の部分にアドレス変換タイミング部39の機能が含
まれている。
Finally, immediately before the output process (step S19), the packet address rewriting process (steps S11 to S18) is performed again, and then the output process (step S19) is performed and the packet is transmitted (step S19). S
19). Here, the address rewriting process (steps S2 to 9 and steps S11 to 1) is performed immediately after the input process (step S1) and immediately before the output process (step S19).
The portion 8) includes the function of the address conversion timing unit 39.

【0040】非正式な実アドレスを用いているネットワ
ークAから送られたパケットは、送信元アドレスが非正
式アドレス、送信先アドレスが正式アドレスになってい
るため、入力処理(ステップS1)直後のアドレス書き
換え処理(ステップS2〜9)の中の「送信元アドレス
が仮想アドレスとして登録されているかどうか」の判断
部分(ステップS3と7)では、判断結果が必ずNoと
なり、アドレスの書き換えは行われない。
In the packet sent from the network A using the unofficial real address, the source address is the unofficial address and the destination address is the official address. Therefore, the address immediately after the input process (step S1) is performed. In the judgment part (steps S3 and 7) of "whether the source address is registered as a virtual address" in the rewriting process (steps S2 to 9), the judgment result is always No, and the address is not rewritten. .

【0041】出力処理(ステップS19)の直前のアド
レス書き換え処理(S11〜18)中の「送信元アドレ
スが実アドレスとして登録されているかどうか」の判断
部分(ステップS12と16)では、書き換えるべきア
ドレスであればどちらかの条件にマッチして、必要に応
じてアドレスの書き換えが行われる。また、正式なアド
レスを用いているネットワークBから送られたパケット
は、送信元アドレスが正式アドレス、送信先アドレスが
非正式アドレスになっているため、入力処理(ステップ
S1)直後のアドレス書き換え処理(ステップS2〜
9)中の「送信元アドレスが仮想アドレスとして登録さ
れているかどうか」の判断部分(ステップS3とS7)
では、書き換えるべきアドレスであればどちらかの条件
にマッチして、必要に応じてアドレスの書き換えが行わ
れる。
In the address rewriting process (S11-18) immediately before the output process (step S19), in the judgment part (steps S12 and 16) of "whether the source address is registered as a real address", the address to be rewritten If so, either condition is matched, and the address is rewritten if necessary. Further, in the packet sent from the network B using the formal address, since the source address is the formal address and the destination address is the formal address, the address rewriting process immediately after the input process (step S1) ( Step S2-
The judgment part of "whether the source address is registered as a virtual address" in 9) (steps S3 and S7)
Then, if it is an address to be rewritten, either condition is matched, and the address is rewritten as necessary.

【0042】出力処理(ステップS19)の直前のアド
レス書き換え処理(ステップS11〜18)中の「送信
元アドレスが実アドレスとして登録されているかどう
か」の判断部分(ステップS12と16)では、判断結
果が必ずNoとなり、アドレスの書き換えは行われな
い。正式でないアドレスを用いて通信を行うネットワー
クAから送られたIPパケットはルータ1のネットワー
クインタフェース部Aで受信され、チェックサム照合な
どの入力処理を行ったのち(図10のステップS1)、
ルーテイング部13を経て、出力処理に渡される前に、
アドレス解析機構21に渡される。
In the judgment portion (steps S12 and 16) of "whether the source address is registered as a real address" in the address rewriting processing (steps S11 to 18) immediately before the output processing (step S19), the judgment result Is always No, and the address is not rewritten. The IP packet sent from the network A that communicates using an unofficial address is received by the network interface unit A of the router 1 and subjected to input processing such as checksum verification (step S1 in FIG. 10).
Before passing to the output processing via the routing unit 13,
It is passed to the address analysis mechanism 21.

【0043】アドレス解析機構21はIPパケット中に
含まれる送信元アドレスを取り出し、取り出された送信
元アドレスが変換すべき実アドレスであるかどうかアド
レス割当表31により調べる(ステップS11)。送信
元アドレスとアドレス割当表31を照合し、実アドレス
が登録されていた場合(ステップS12)、アドレス解
析機構21にアドレスの書き換えを指示する。アドレス
解析機構21はアドレス割当表31の仮想アドレスを取
り出し、IPパケットの送信元アドレスを仮想アドレス
に書き換える(ステップS13)。
The address analysis mechanism 21 takes out the source address contained in the IP packet, and checks by the address assignment table 31 whether the taken source address is a real address to be translated (step S11). The sender address and the address allocation table 31 are collated, and when the real address is registered (step S12), the address analysis mechanism 21 is instructed to rewrite the address. The address analysis mechanism 21 takes out the virtual address of the address allocation table 31 and rewrites the source address of the IP packet with the virtual address (step S13).

【0044】また、送信元アドレスがアドレス割当表3
1にない場合には、アドレス変換規則表32にあるかど
うか調べる(ステップS15,16)。アドレス変換規
則表32にある場合には、アドレス生成機構22がアド
レス変換規則表32に登録された内容に従って、実アド
レスから仮想アドレスを生成する(ステップS17)。
実アドレスと仮想アドレスはアドレス割当表31に登録
され(ステップS18)、アドレス変換が行われる(ス
テップS13)。アドレス変換が行われた場合には、チ
ェックサムを再計算して(ステップS14)出力処理に
渡す。
Further, the source address is the address allocation table 3
If it is not 1, it is checked whether it is in the address conversion rule table 32 (steps S15 and S16). If it is in the address conversion rule table 32, the address generation mechanism 22 generates a virtual address from the real address according to the contents registered in the address conversion rule table 32 (step S17).
The real address and the virtual address are registered in the address allocation table 31 (step S18), and the address conversion is performed (step S13). When the address conversion is performed, the checksum is recalculated (step S14) and passed to the output process.

【0045】また、アドレス変換規則表32にも受信パ
ケットのアドレスが登録されていない場合には、アドレ
スを変換する必要はないので、そのIPパケットは元の
ままの送信元と送信先アドレスで、通常のルータのIP
パケットの処理を行う。そして、出力処理の後、送信の
ためネットワークインタフェースBに渡される。逆に、
正式アドレスのみを用いて通信するネットワークBから
送られたIPパケットはルータ1のネットワークインタ
フェース部Bで受信され、チェックサム照合などの入力
処理を行ったのち、一旦アドレス解析機構21に渡され
る。アドレス解析機構21はIPパケット中に含まれる
送信先アドレスを取り出す。
If the address of the received packet is not registered in the address translation rule table 32, it is not necessary to translate the address. Therefore, the IP packet has the original source and destination addresses. Normal router IP
Process packets. Then, after output processing, it is passed to the network interface B for transmission. vice versa,
The IP packet sent from the network B that communicates using only the official address is received by the network interface unit B of the router 1, subjected to input processing such as checksum verification, and then temporarily passed to the address analysis mechanism 21. The address analysis mechanism 21 extracts the destination address included in the IP packet.

【0046】次に、正式でないアドレスを用いて通信す
るネットワークAから送られてきたIPパケットの扱い
と同様な要領で、アドレス割当表31を検索して(図1
0のステップS2)、送信先のアドレスがアドレス割当
表31に存在すれば(ステップS3)、アドレス解析機
構21にアドレスの書き換えを指示する。アドレス解析
機構21は仮想アドレスを実アドレスに変換する(ステ
ップS4)。ついで、チェックサム再計算を行い(図1
0のステップS5)、ルーテイング部13を経て、出力
処理に渡される(ステップS19)。
Next, the address allocation table 31 is searched in the same manner as the IP packet sent from the network A which communicates using an unofficial address (see FIG. 1).
If the address of the transmission destination exists in the address allocation table 31 (step S2 of 0) (step S3), the address analysis mechanism 21 is instructed to rewrite the address. The address analysis mechanism 21 converts the virtual address into a real address (step S4). Then, the checksum is recalculated (Fig. 1
0 in step S5), and is passed to the output processing via the routing unit 13 (step S19).

【0047】また、送信先アドレスがアドレス割当表3
1に存在しない場合には、アドレス変換規則表32を検
索し(ステップS6,7)、送信先のアドレスがアドレ
ス変換規則表32にある場合には、仮想アドレスから実
アドレスを生成し(ステップS8)、アドレス割当表3
1に登録し(ステップS9)、前記した処理を行う。ま
た、アドレス変換規則表32にも存在しなければ、その
IPパケットは元のままの送信元と送信先アドレスでも
って通常のルータのパケット処理を行う。
The destination address is the address assignment table 3
If it does not exist, the address translation rule table 32 is searched (steps S6 and 7), and if the destination address is in the address translation rule table 32, a real address is generated from the virtual address (step S8). ), Address assignment table 3
1 is registered (step S9), and the above-mentioned processing is performed. If the IP packet does not exist in the address translation rule table 32, the normal packet processing of the router is performed using the original source and destination addresses of the IP packet.

【0048】図12は本発明の第3の実施例を示す図で
ある。第1および第2の実施例のものにおいては実アド
レスと仮想アドレスがそれぞれ1ホストつづであった
が、本実施例においては、これに加えて、非正式なアド
レス群の集合(これを以下、実アドレス群という)と正
式な仮想アドレスの集合(これを以下、仮想アドレス群
という)の対を登録するようにしたものである。
FIG. 12 is a diagram showing a third embodiment of the present invention. In the first and second embodiments, one real address and one virtual address are provided for each host, but in the present embodiment, in addition to this, a set of informal address groups (hereinafter referred to as A pair of a real address group) and a formal set of virtual addresses (hereinafter referred to as a virtual address group) is registered.

【0049】このため、本実施例においては、第2の実
施例のものに、実アドレス群と仮想アドレス群の対をア
ドレス変換規則表32に登録する群アドレス登録機構3
3と、実アドレスおよび仮想アドレスがアドレス変換規
則表32に群アドレスとして登録されているか否かを判
定するアドレス判定部34を設けたものであり、その他
の構成は図8に示した第2の実施例と同様である。
Therefore, in the present embodiment, the group address registration mechanism 3 for registering the pair of the real address group and the virtual address group in the address translation rule table 32 in the second embodiment.
3 and an address determining unit 34 for determining whether or not the real address and the virtual address are registered as a group address in the address conversion rule table 32. Other configurations are the same as those of the second example shown in FIG. It is similar to the embodiment.

【0050】図13はアドレス変換変換規則表32に登
録されるアドレスおよびアドレス群の一例を示す図であ
り、同図により本実施例のアドレスの表記法について説
明する。 <例1> 群アドレスを使わず、第1および第2の実施
例に示したように、標準的な一対一のアドレスの割当を
行う場合の表記法である。 <例2> 指定された範囲のマシンから任意の一台を外
部に接続する場合の表記法である。
FIG. 13 is a diagram showing an example of an address and an address group registered in the address translation conversion rule table 32. The address notation of this embodiment will be described with reference to FIG. <Example 1> This is a notation when a standard one-to-one address is assigned as shown in the first and second embodiments without using a group address. <Example 2> This is a notation when an arbitrary one of the machines in the specified range is connected to the outside.

【0051】同図においては、実アドレス群126.0.0.2-
128 ( この場合においては、126.0.0 がネットワーク・
アドレス、2 ないし128 がマシン・アドレスを示す)に
おいて、ネットワーク・アドレスが 126.0.0で、マシン
・アドレスが2-128 の範囲の実アドレスと、仮想アドレ
ス133.160.29.2とを対応させる場合を示している。この
場合には、1台が通信中のときは2台目のマシンはアド
レスの割当が受けられない。 <例3> 指定された範囲のマシンから、指定されたア
ドレスに割当を行う場合の表記法である。
In the figure, the real address group 126.0.0.2-
128 (in this case 126.0.0 is the network
Address, 2 to 128 are machine addresses), the network address is 126.0.0 and the real address in the machine address range 2-128 is associated with the virtual address 133.160.29.2. There is. In this case, when one machine is communicating, the second machine cannot be assigned an address. <Example 3> This is a notation when assigning to a specified address from a specified range of machines.

【0052】すなわち、実アドレス群126.0.0.129-254
において、マシン・アドレスが129-254 の範囲の実アド
レスを133.160.29.3-15 の範囲の仮想アドレスに割当て
る場合を示している。この場合には、割当アドレスが全
て使用中であるときは、新たなアドレスの割当は受けら
れない。 <例4> ネットワーク番号を書き換える場合の表記方
法を示しており、割当られる仮想アドレスのマシン・ア
ドレス部は実アドレスと同じアドレスが用いられる。
That is, the real address group 126.0.0.129-254
Shows that a real address in the range of 129-254 is assigned to a virtual address in the range of 133.160.29.3-15. In this case, when all the assigned addresses are in use, the new address cannot be assigned. <Example 4> A notation method for rewriting the network number is shown, and the same address as the real address is used as the machine address part of the virtual address to be assigned.

【0053】すなわち、実アドレスを仮想アドレスに変
換する場合には、実アドレス群126.0.0.n において、マ
シンアドレスnはそのまま実アドレスのものを使い、実
アドレスの126.0.0 を133.160.30に書き換えることによ
り、実アドレスを仮想アドレスに変換する。 <例5〜例6> 指定された範囲のネットワークの指定
マシンから、指定されたアドレスに割当を行う表記法を
示している。
That is, when converting a real address to a virtual address, the machine address n is used as it is in the real address group 126.0.0.n, and the real address 126.0.0 is changed to 133.160.30. By rewriting, the real address is converted into a virtual address. <Example 5 to Example 6> A notation method for allocating to a specified address from a specified machine in a network in a specified range is shown.

【0054】すなわち、例5においては、実アドレス群
において、ネットワーク番号126.0.1 から126.0.10の範
囲のマシン・アドレス1のマシンを、仮想アドレス群に
おいて133.160.31.1から133.160.31.10 のアドレスに割
り当てる場合を示している。また、例6においては、実
アドレス群において、126.0.n のネットワーク番号のマ
シン・アドレス2のマシンを仮想アドレスの133.160.3
2.nのアドレスに割り当てる場合を示している。 <例7〜例12> 指定の各ネットワークから任意の一
台をネットワーク番号をホスト番号に反映させて割当る
場合を示している。
That is, in Example 5, the machine with the machine address 1 in the range of network numbers 126.0.1 to 126.0.10 in the real address group is assigned to the addresses of 133.160.31.1 to 133.160.31.10 in the virtual address group. The case is shown. Further, in the example 6, in the real address group, the machine with the machine address 2 having the network number of 126.0.n has the virtual address of 133.160.3.
It shows the case of assigning to the 2.n address. <Example 7 to Example 12> An example is shown in which any one of the designated networks is assigned by reflecting the network number in the host number.

【0055】例えば、例7においては、実アドレス群に
おいて、126.0.1-10の範囲のネットワーク番号の任意の
マシン(*は任意の値を意味する)を仮想アドレス群の
133.160.29.1から133.160.29.10 のアドレスに割り当て
る場合を示している。また、例8から例12においても
同様である。図14は本実施例におけるアドレス判定部
34における処理を示すフローチャートであり、同図を
参照して本実施例における群アドレスを利用したアドレ
ス割当について説明する。
For example, in Example 7, in the real address group, an arbitrary machine (* means an arbitrary value) having a network number in the range of 126.0.1-10 is set as a virtual address group.
It shows the case of assigning to the addresses from 133.160.29.1 to 133.160.29.10. The same applies to Examples 8 to 12. FIG. 14 is a flow chart showing the processing in the address determination unit 34 in the present embodiment, and the address allocation using the group address in the present embodiment will be described with reference to the figure.

【0056】実アドレスを含むアドレスで通信を行うネ
ットワークAから送られたIPパケットが、ルータ1で
受信されると、アドレス変換登録機構23のアドレス解
析機構21に送られ、アドレス解析機構21はIPパケ
ット中に含まれる実アドレスを取り出す。次に、アドレ
ス解析機構21はアドレス割当表31を照合して、取り
出されたアドレスが変換すべきアドレスであるか否かを
調べる。ここまでの処理は第1および第2の実施例と同
様である。
When the router 1 receives the IP packet sent from the network A which communicates with the address including the real address, the IP packet is sent to the address analysis mechanism 21 of the address translation registration mechanism 23, and the address analysis mechanism 21 receives the IP address. Fetch the real address contained in the packet. Next, the address analysis mechanism 21 collates the address allocation table 31 to check whether the fetched address is an address to be translated. The processing up to this point is the same as in the first and second embodiments.

【0057】ついで、アドレス割当表31に該当アドレ
スがなかった場合、アドレス変換規則表32を参照す
る。この際、アドレス判定部34は図14に示した処理
を行い受信した送信元アドレスがアドレス変換規則表3
2に実アドレス群として登録されているかどうか判定す
る。図14のフローチャートにおいて、ステップS1に
おいて、アドレス変換規則表32の第1行を取り出し、
ステップS2において、実アドレスが群アドレス表記で
あるか判定し、群アドレス表記でない場合にはステップ
S3に行く。また、群アドレス表記の場合にはステップ
S7に行く。
Then, when there is no corresponding address in the address allocation table 31, the address conversion rule table 32 is referred to. At this time, the address determination unit 34 performs the processing shown in FIG. 14 and the received source address is the address translation rule table 3
It is determined whether the address is registered as a real address group in 2. In the flowchart of FIG. 14, in step S1, the first row of the address translation rule table 32 is fetched,
In step S2, it is determined whether the real address is in the group address notation, and if it is not in the group address notation, the process proceeds to step S3. In the case of the group address notation, the process goes to step S7.

【0058】そして、ステップS3において、送信元ア
ドレスが実アドレスと等しいか否かを判定し、等しい場
合にはステップS4に行き該当行の実アドレス、仮想ア
ドレスを返す。また、等しくない場合には、ステップS
5に行き、アドレス変換規則表の次の行があるか否かを
判定し、ある場合には、ステップS6に行きアドレス変
換規則表の次の行を取り出し、ステップS2に戻る。ま
た、アドレス変換規則表32の次の行がない場合には、
検索を終了する。
Then, in step S3, it is determined whether or not the source address is equal to the real address. If they are equal, the process goes to step S4 to return the real address and virtual address of the corresponding line. If they are not equal, step S
5, it is determined whether or not there is a next row in the address translation rule table. If there is, the process goes to step S6 to take out the next row in the address translation rule table, and returns to step S2. If there is no next line in the address conversion rule table 32,
Finish the search.

【0059】また、ステップS2において、実アドレス
が群アドレス表記である場合には、ステップS7に行
き、アドレスを分割する。すなわち、同図に示すよう
に、例えば、実アドレスが126.0.20.2-128の場合には、
a=126,b=0,C=20,d=2-128のように分割する。そしてステ
ップS8において、数が固定である項のみ(上記のaな
いしbないしc)、ヘッダ中アドレスと表のアドレスを
比較し、一致しない場合には、ステップS5に行き、上
記した処理を繰り返す。
If the real address is the group address notation in step S2, the process goes to step S7 to divide the address. That is, as shown in the figure, for example, when the real address is 126.0.20.2-128,
Divide like a = 126, b = 0, C = 20, d = 2-128. In step S8, the header address and the address of the table are compared only for the terms whose numbers are fixed (above b to c). If they do not match, the process proceeds to step S5 and the above processing is repeated.

【0060】また、ステップS8において、一致する場
合には、ステップS9に行き、数に範囲のある項の形式
を判断する。そして、同図に示すように、「2-128 」の
ようにX-Y 形式の場合には、ステップS10に行き、送
信元アドレスが範囲内であるか否かを判別し、範囲内の
場合にはステップS13に行き、該当行の実アドレス
群、仮想アドレス群から最小のアドレスを割り当て、ス
テップS14に行く。また、範囲内でない場合には、ス
テップS5に行き、前記した処理を繰り返す。
If they match in step S8, the process goes to step S9 to determine the form of the term having a numerical range. Then, as shown in the figure, in the case of the XY format such as "2-128", the process proceeds to step S10, it is determined whether or not the source address is within the range, and if it is within the range, In step S13, the smallest address is assigned from the real address group and virtual address group in the corresponding row, and the process proceeds to step S14. If it is not within the range, go to step S5 and repeat the above-mentioned processing.

【0061】ステップS14において、ステップS13
において割り当てられたアドレスが使用されているか否
かを判別し、使用済である場合には、ステップS5に行
き前記した処理を繰り返す。また、使用済でない場合に
は、検索を終了する。ステップS9において、数に範囲
のある項の形式が*形式(図13の例7〜例12)であ
ると判断された場合には、ステップS11に行き該当行
の実アドレス群、仮想アドレス群から最小のアドレスを
割り当て、ステップS14に行き上記処理を行う。ま
た、ステップS9において、数に範囲のある項の形式が
n形式(図13の例4、例6)であると判断された場合
には、ステップS12に行き該当行のnにヘッダ中のア
ドレスと同じものを入れて割り当て、ステップS14に
行き上記処理を行う。
In step S14, step S13
It is determined whether or not the address assigned in is used. If it is already used, the process goes to step S5 to repeat the above process. If it has not been used, the search ends. When it is determined in step S9 that the format of the term having a range of numbers is the * format (example 7 to example 12 in FIG. 13), the process proceeds to step S11, where the real address group and the virtual address group of the corresponding row are selected. The minimum address is assigned, and the above processing is performed in step S14. If it is determined in step S9 that the form of the item having a range of numbers is the n form (examples 4 and 6 in FIG. 13), the process proceeds to step S12, where n in the corresponding line is the address in the header. The same thing as the above is put in and assigned, and the above processing is performed in step S14.

【0062】以上のようにして判定処理を行い、アドレ
ス変換規則表32に実アドレスが登録されている場合に
は、対となっている仮想アドレス群から割り当てを行っ
て、アドレス割当表31にアドレスを登録する。つい
で、前記した第1の実施例、第2の実施例と同様に、ア
ドレス割当表31より対応するアドレスを取り出して、
IPパケットのアドレス部分を書き換え、チェックサム
再計算を行い、出力処理へ渡しパケット発信を行う。
The determination process is performed as described above, and when the real address is registered in the address conversion rule table 32, the virtual address group forming a pair is allocated, and the address is allocated in the address allocation table 31. To register. Then, like the first and second embodiments described above, the corresponding address is retrieved from the address allocation table 31,
The address part of the IP packet is rewritten, the checksum is recalculated, and the packet is sent to the output process for packet transmission.

【0063】また、仮想アドレスで通信を行うネットワ
ークBから送られたIPパケットが、ルータ1で受信さ
れると、受信されたIPパケットはアドレス変換登録機
構23のアドレス解析機構21に送られ、アドレス解析
機構21はIPパケット中に含まれるアドレスを取り出
す。次に、アドレス解析機構21はアドレス割当表31
を照合して、取り出されたアドレスが変換すべきアドレ
スであるか否かを調べる。ここまでの処理は第1および
第2の実施例と同様である。
When the IP packet sent from the network B communicating with the virtual address is received by the router 1, the received IP packet is sent to the address analysis mechanism 21 of the address translation registration mechanism 23 and the The analysis mechanism 21 takes out the address contained in the IP packet. Next, the address analysis mechanism 21 uses the address allocation table 31.
Is checked to see if the fetched address is an address to be translated. The processing up to this point is the same as in the first and second embodiments.

【0064】ついで、アドレス割当表31に該当アドレ
スがなかった場合、アドレス変換規則表32を参照す
る。この際、群アドレスとして登録されている行は参照
されず、第1および第2の実施例と同様な処理を行う。
すなわち、非正式な実アドレス群からは、接続したホス
トを特定できないので、この場合には、群アドレスとし
て登録されている行は参照しない。
Then, when there is no corresponding address in the address allocation table 31, the address conversion rule table 32 is referred to. At this time, the line registered as the group address is not referred to, and the same processing as in the first and second embodiments is performed.
That is, since the connected host cannot be specified from the informal real address group, the line registered as the group address is not referred to in this case.

【0065】本実施例においては、上記のように、アド
レス変換規則表32に群アドレスを登録するようにして
いるので、ネットワークの規模が大きい場合でも登録す
る表が大きくなることがなく、また、全てのアドレスを
一対一に登録する必要がないので、表への登録時間を短
くすることができる。図15は本発明の第4の実施例の
構成を示す図であり、本実施例はIPヘッダを除くデー
タ内でアドレスを通信するような特殊なアプリケーショ
ンにおいて、データ内アドレスを変換できる実施例を示
している。
In this embodiment, since the group address is registered in the address conversion rule table 32 as described above, the table to be registered does not become large even when the scale of the network is large, and Since it is not necessary to register all addresses on a one-to-one basis, registration time in the table can be shortened. FIG. 15 is a diagram showing the configuration of the fourth embodiment of the present invention. This embodiment is an embodiment in which the address within data can be converted in a special application in which the address is communicated within the data excluding the IP header. Shows.

【0066】このため、本実施例においては、第3の実
施例のものに、データパターン登録表35、データパタ
ーン抽出部36、データパターン比較部37、データ内
アドレス変換機構38を設けたものであり、その他の構
成は図12に示した第3の実施例と同様である。図16
は上記データパターン登録表の一例を示す図であり、同
図に示すように、データパターン登録表35には、変換
したいアプリケーションのデータパターンの位置情報を
示す「検索ポインタ」と、その位置にあるデータパター
ンを示す「データ」と、アドレスが記録されたデータ中
の位置を示す「アドレス位置」が登録されている。
Therefore, in this embodiment, the data pattern registration table 35, the data pattern extraction unit 36, the data pattern comparison unit 37, and the in-data address conversion mechanism 38 are provided in the third embodiment. The other configuration is the same as that of the third embodiment shown in FIG. FIG.
FIG. 3 is a diagram showing an example of the data pattern registration table, and as shown in the figure, in the data pattern registration table 35, there is a “search pointer” indicating the position information of the data pattern of the application to be converted, and at that position. “Data” indicating the data pattern and “address position” indicating the position in the data where the address is recorded are registered.

【0067】次に本実施例におけるアドレス変換につい
て説明する。実アドレスを含むアドレスで通信を行うネ
ットワークAから送られたIPパケットが、ルータ1の
ネットワーク・インタフェース部Aで受信されると、ア
ドレス変換登録機構23のアドレス解析機構21に送ら
れ、アドレス解析機構21はIPパケット中に含まれる
実アドレスを取り出す。次に、アドレス解析機構21は
アドレス割当表31を照合して、取り出されたアドレス
が変換すべきアドレスであるか否かを調べる。
Next, address conversion in this embodiment will be described. When the IP packet sent from the network A that communicates with the address including the real address is received by the network interface unit A of the router 1, it is sent to the address analysis mechanism 21 of the address translation registration mechanism 23, and the address analysis mechanism 21 retrieves the real address contained in the IP packet. Next, the address analysis mechanism 21 collates the address allocation table 31 to check whether the fetched address is an address to be translated.

【0068】そして、アドレス割当表31に登録されて
いた場合には、実アドレスを仮想アドレスに書き換え
る。また、アドレス割当表31に該当アドレスが登録さ
れていなかった場合には、アドレス変換規則表32を参
照し、ここに登録されていた場合は、アドレス割当表3
1に登録し、同時に実アドレスを仮想アドレスに書き換
える。ここまでの処理は第1,2および第3の実施例と
同様である。
If the address is registered in the address allocation table 31, the real address is rewritten to the virtual address. Further, when the corresponding address is not registered in the address allocation table 31, the address conversion rule table 32 is referred to. When it is registered here, the address allocation table 3
1 is registered and at the same time the real address is rewritten to the virtual address. The processing up to this point is the same as in the first, second and third embodiments.

【0069】次に、アドレス解析機構21でアドレス変
換が行われた場合は、該当パケットのデータ部からデー
タパターン抽出部36がデータパターン登録表35に従
って該当位置のデータを切りだす。ついで、データパタ
ーン比較部37が切り出したアドレスとデータパターン
登録表35に登録されているデータとを比較し、等しけ
れば、データパターン登録表35に登録された位置に記
録されたパケットデータ内のアドレスが実アドレスであ
るかを比較する。そして、上記アドレスが実アドレスで
ある場合には、データ内アドレス変換機構38がパケッ
トのデータ内の実アドレスを仮想アドレスに書換える。
例えば、図16のデータパターン登録表において、IP
パケットの15バイト目に「06」というデータが記録
されていた場合には、128バイト目に実アドレスが記
録されているか否かを調べ、記録されている場合には、
その実アドレスを仮想アドレスに書き換える。
Next, when the address conversion is performed by the address analysis mechanism 21, the data pattern extraction unit 36 cuts out the data at the corresponding position from the data portion of the corresponding packet according to the data pattern registration table 35. Next, the data pattern comparison unit 37 compares the cut-out address with the data registered in the data pattern registration table 35, and if they are equal, the address in the packet data recorded at the position registered in the data pattern registration table 35. Is a real address. When the above address is a real address, the in-data address translation mechanism 38 rewrites the real address in the data of the packet into a virtual address.
For example, in the data pattern registration table of FIG.
When the data "06" is recorded in the 15th byte of the packet, it is checked whether the real address is recorded in the 128th byte, and if it is recorded,
Rewrite the real address to a virtual address.

【0070】ついで、第1ないし第3の実施例と同様、
チェックサム再計算行って、出力処理を行いパケット発
信を行う。また、登録位置に該当アドレスが入っていな
い場合には、データ内アドレスを書き換えることなく、
チェックサム再計算行って、出力処理を行いパケット発
信を行う。
Then, as in the first to third embodiments,
The checksum is recalculated, output processing is performed, and the packet is transmitted. Also, if the corresponding address is not entered in the registration position, without rewriting the address in the data,
The checksum is recalculated, output processing is performed, and the packet is transmitted.

【0071】仮想アドレスで通信を行うネットワークB
から送られたIPパケットが、ルータ1のネットワーク
・インタフェース部Bで受信された場合にも上記と同様
であり、アドレス割当表31およびアドレス変換規則表
32に従って、必要ならば仮想アドレスを実アドレスに
書き換え、書き換えがあった場合には、データパターン
比較部37が比較を行い、等しければデータ内の仮想ア
ドレスを実アドレスに書き換える。
Network B communicating by virtual address
The same applies when the IP packet sent from the router is received by the network interface unit B of the router 1. According to the address assignment table 31 and the address translation rule table 32, the virtual address is converted to a real address if necessary. When the data is rewritten or rewritten, the data pattern comparison unit 37 performs comparison, and if they are equal, the virtual address in the data is rewritten to the real address.

【0072】図17はIPアドレス変換処理を示すフロ
ーチャートであり、同図において、IPパケットのヘッ
ダ中の正式アドレスが書き換えられた場合には(ステッ
プS1)、IPパケットのデータ部からデータパターン
登録表35に従って該当位置のデータを切りだす(ステ
ップS2)。そして、ステップS3において、切り出し
たデータとデータパターン登録表35に登録されている
パケットのデータとを比較し、一致すればステップS4
において、登録位置にIPアドレスが入っているか確認
する。
FIG. 17 is a flowchart showing the IP address conversion process. In FIG. 17, when the formal address in the header of the IP packet is rewritten (step S1), the data pattern registration table starts from the data part of the IP packet. The data at the corresponding position is cut out in accordance with 35 (step S2). Then, in step S3, the cut out data is compared with the data of the packet registered in the data pattern registration table 35, and if they match, step S4
At, confirm whether the IP address is entered in the registration position.

【0073】登録位置にIPアドレスが入っている場合
には、ステップS5において、IPパケットのヘッダ内
と同様にデータ中のアドレスを書き換え、ステップS6
においてチェックサム再計算行って、前記したように出
力処理を行いパケット発信を行う。また、ステップS3
において一致しない場合、あるいはステップS4におい
てIPアドレスでない場合には、ステップS6において
チェックサム再計算行って、前記したように出力処理を
行いパケット発信を行う。
When the IP address is entered in the registration position, in step S5, the address in the data is rewritten as in the header of the IP packet, and then in step S6.
In step 1, the checksum is recalculated, output processing is performed as described above, and packet transmission is performed. Also, step S3
If they do not match, or if the IP address is not found in step S4, the checksum is recalculated in step S6, the output processing is performed as described above, and packet transmission is performed.

【0074】本実施例においては、上記したように、I
Pパケットのヘッダ中のアドレスだけでなく、データ中
に含まれるアドレスの書き換えも行うことができるた
め、データ中にアドレスを入れて通信するアプリケーシ
ョンにおいても接続不能の回避を期待することができ
る。
In this embodiment, as described above, I
Since it is possible to rewrite not only the address in the header of the P packet but also the address included in the data, it is possible to expect avoidance of connection failure even in an application that puts the address in the data for communication.

【0075】[0075]

【発明の効果】以上説明したように、本発明において
は、アドレス変換機能を持つルータのアドレス変換表を
分けて、アドレス割当表とアドレス変換規則表を設けた
ので、正式でないアドレスで通信するネットワーク群か
ら、ネットワークそれぞれにアドレスの割り当ての詳細
を決めることができ、公平且つ効率的なアドレス割り当
てを保つことができる。また、通信中のマシンのアドレ
ス対のみをアドレス割当表に登録しているので、検索時
間を短縮することができ、マシンの性能向上を図ること
ができる。
As described above, in the present invention, the address translation table of the router having the address translation function is divided and the address assignment table and the address translation rule table are provided. From the group, the details of address allocation can be determined for each network, and fair and efficient address allocation can be maintained. Moreover, since only the address pair of the machine in communication is registered in the address allocation table, the search time can be shortened and the performance of the machine can be improved.

【0076】また、アドレス変換規則表にアドレス群を
登録できるようにすることにより、全てのアドレスを一
対一に登録する必要がなく、アドレスの登録の時間を短
縮することができ、アドレス変換規則表が大きくなるこ
ともない。さらに、データ内アドレス変換機構、データ
パターン登録表、データパターン比較部およびデータパ
ターン抽出部を設けることにより、IPヘッダを除くデ
ータ内でアドレスを通信するような特殊なアプリケーシ
ョンの接続不能を回避することができ、また、データパ
ターン登録表をルータ管理者が設定できることによっ
て、上記特徴を持つ種々のアプリケーションへの対応が
期待できる。
Further, by making it possible to register the address group in the address conversion rule table, it is not necessary to register all the addresses one-to-one, and the address registration time can be shortened. Does not grow. Furthermore, by providing an in-data address conversion mechanism, a data pattern registration table, a data pattern comparison unit, and a data pattern extraction unit, it is possible to avoid the inability to connect a special application that communicates an address within the data excluding the IP header. In addition, since the router administrator can set the data pattern registration table, it can be expected to support various applications having the above characteristics.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の第1の実施例の構成を示す図である。FIG. 2 is a diagram showing a configuration of a first exemplary embodiment of the present invention.

【図3】IPパケットの構造を示す図である。FIG. 3 is a diagram showing a structure of an IP packet.

【図4】本発明の実施例のアドレス割当表の一例を示す
図である。
FIG. 4 is a diagram showing an example of an address allocation table according to the embodiment of the present invention.

【図5】本発明の実施例のアドレス変換規則表の一例を
示す図である。
FIG. 5 is a diagram showing an example of an address conversion rule table according to the embodiment of the present invention.

【図6】第1の実施例のアドレス書換え処理を示すフロ
ーチャートである。
FIG. 6 is a flowchart showing an address rewriting process of the first embodiment.

【図7】アドレス変換規則表の検索処理を示すフローチ
ャートである。
FIG. 7 is a flowchart showing a search process of an address conversion rule table.

【図8】本発明の第2の実施例の構成を示す図である。FIG. 8 is a diagram showing a configuration of a second exemplary embodiment of the present invention.

【図9】本発明の第2の実施例におけるアドレス変換を
説明する図である。
FIG. 9 is a diagram for explaining address conversion in the second embodiment of the present invention.

【図10】第2の実施例の処理を示すフローチャートで
ある。
FIG. 10 is a flowchart showing the process of the second embodiment.

【図11】第2の実施例の処理を示すフローチャート
(続き)である。
FIG. 11 is a flowchart (continuation) showing processing of the second embodiment.

【図12】本発明の第3の実施例の構成を示す図であ
る。
FIG. 12 is a diagram showing a configuration of a third exemplary embodiment of the present invention.

【図13】第3の実施例におけるアドレス変換規則表の
一例を示す図である。
FIG. 13 is a diagram showing an example of an address conversion rule table in the third embodiment.

【図14】第3の実施例のアドレス判定部における処理
を示すフローチャートである。
FIG. 14 is a flowchart showing processing in an address determination unit of the third embodiment.

【図15】本発明の第4の実施例の構成を示す図であ
る。
FIG. 15 is a diagram showing a configuration of a fourth exemplary embodiment of the present invention.

【図16】本実施例のデータパターン登録表の一例を示
す図である。
FIG. 16 is a diagram showing an example of a data pattern registration table of the present embodiment.

【図17】データ内IPアドレス変換処理を示すフロー
チャートである。
FIG. 17 is a flowchart showing an IP address conversion process in data.

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

1 ルータ 11,12 ネットワークインタフェース部 13 ルーティング部 21 アドレス解析機構 22 アドレス生成機構 23 アドレス変換登録機構 31 アドレス割当表 32 アドレス変換規則表 33 群アドレス登録機構 34 アドレス判定部 35 データパターン登録表 36 データパターン抽出部 37 データパターン比較部 38 データ内アドレス変換機構 39 アドレス変換タイミング部 1 router 11, 12 network interface unit 13 routing unit 21 address analysis mechanism 22 address generation mechanism 23 address conversion registration mechanism 31 address allocation table 32 address conversion rule table 33 group address registration mechanism 34 address determination unit 35 data pattern registration table 36 data pattern Extraction unit 37 Data pattern comparison unit 38 In-data address conversion mechanism 39 Address conversion timing unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 正式でないアドレスと正式なアドレスの
対を登録するアドレス変換表と、送信されてきたパケッ
トから取り出したアドレスについて、上記アドレス変換
表を参照して、正式でないアドレスを正式アドレスに、
また、正式アドレスを正式でないアドレスに変換するア
ドレス解析機構(21)を備えたアドレス変換機能を持つル
ータにおいて、 アドレス変換表を、正式でないアドレスと正式アドレス
の対応関係を登録するアドレス変換規則表(32)と、実際
に通信を行っている状態にあるマシンの正式でないアド
レスと正式アドレスの対を格納するアドレス割当表(31)
とから構成し、 上記アドレス解析機構(21)が上記アドレス割当表(31)と
アドレス変換規則表(32)に登録されたアドレス対に基づ
き送信されてきたパケットから取り出したアドレスを変
換することを特徴とするアドレス変換機能を持つルー
タ。
1. An address conversion table for registering a pair of an unofficial address and an official address, and an address taken out from a transmitted packet, with reference to the address conversion table, an unofficial address becomes an official address,
Also, in a router having an address translation function that has an address analysis mechanism (21) that translates an official address into an unofficial address, the address translation table is used to register the correspondence relationship between the unofficial address and the official address ( 32) and an address assignment table that stores the pair of unofficial address and official address of the machine that is actually communicating (31)
And that the address analysis mechanism (21) translates the address extracted from the packet transmitted based on the address pair registered in the address assignment table (31) and the address translation rule table (32). A router with a characteristic address translation function.
【請求項2】 パケットのアドレスを変換するタイミン
グを判断するアドレス変換タイミング部(39)を設けたこ
とを特徴とする請求項1のアドレス変換機能を持つルー
タ。
2. A router having an address conversion function according to claim 1, further comprising an address conversion timing unit (39) for judging a timing of converting a packet address.
【請求項3】 マシンまたはネットワークのアドレス群
を登録するための群アドレス登録手段(33)と、 通過するパケット内のアドレスが群アドレスに該当する
かどうかを判断するアドレス判定部(34)とを備えたこと
を特徴とする請求項1または請求項2のアドレス変換機
構を持つルータ。
3. A group address registering means (33) for registering an address group of a machine or a network, and an address judging section (34) for judging whether an address in a passing packet corresponds to a group address. A router having the address translation mechanism according to claim 1 or 2, which is provided.
【請求項4】 受信したパケットのデータ部もしくはヘ
ッダ部内のデータ位置と、データのパターンと、このパ
ターンにマッチした時に変換すべきアドレスのパケット
中の位置を登録するデータパターン登録表(35)と、 データパターン登録表(35)に登録されたデータパターン
の位置情報に基づき、受信したパケット中からデータを
切り出すデータパターン抽出部(36)と、 データパターン登録表(35)に登録されたパターンと、デ
ータパターン抽出部(36)により実際のパケットから切り
出したデータを比較するデータパターン比較部(37)と、 データパターン比較部(37)における比較結果が同じとき
に、データパターン登録表(35)に登録されたアドレス位
置の内容を書き換えるデータ内アドレス変換機構(38)と
を備えたことを特徴とする請求項1,2または請求項3
のアドレス変換機構を持つルータ。
4. A data pattern registration table (35) for registering the data position in the data part or the header part of the received packet, the data pattern, and the position in the packet of the address to be converted when matching the pattern. , A data pattern extraction unit (36) that cuts out data from the received packet based on the position information of the data pattern registered in the data pattern registration table (35), and a pattern registered in the data pattern registration table (35). When the comparison result in the data pattern comparison unit (37) and the data pattern comparison unit (37) that compares the data cut out from the actual packet by the data pattern extraction unit (36) are the same, the data pattern registration table (35) 2. An in-data address conversion mechanism (38) for rewriting the contents of an address position registered in the device according to claim 1, 2 or claim Item 3
Router with the address translation mechanism of.
JP16996293A 1993-07-09 1993-07-09 Router with address translation function Expired - Fee Related JP3464021B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16996293A JP3464021B2 (en) 1993-07-09 1993-07-09 Router with address translation function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16996293A JP3464021B2 (en) 1993-07-09 1993-07-09 Router with address translation function

Publications (2)

Publication Number Publication Date
JPH0730575A true JPH0730575A (en) 1995-01-31
JP3464021B2 JP3464021B2 (en) 2003-11-05

Family

ID=15896059

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16996293A Expired - Fee Related JP3464021B2 (en) 1993-07-09 1993-07-09 Router with address translation function

Country Status (1)

Country Link
JP (1) JP3464021B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5815664A (en) * 1995-03-20 1998-09-29 Fujitsu Limited Address reporting device and method for detecting authorized and unauthorized addresses in a network environment
JP2009207207A (en) * 2009-06-18 2009-09-10 Hitachi Ltd Address converter, method of processing message, and device
JP2009207206A (en) * 2009-06-18 2009-09-10 Hitachi Ltd Address converter, method of processing message, and device
JP2012156656A (en) * 2011-01-24 2012-08-16 Fujitsu Ltd Network address translation method, network address translation proxy response method, network address translation device, and network address translation proxy response device
US10110436B2 (en) 1998-12-08 2018-10-23 Nomadix, Inc. Systems and methods for providing content and services on a network system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5815664A (en) * 1995-03-20 1998-09-29 Fujitsu Limited Address reporting device and method for detecting authorized and unauthorized addresses in a network environment
US10110436B2 (en) 1998-12-08 2018-10-23 Nomadix, Inc. Systems and methods for providing content and services on a network system
US10341243B2 (en) 1998-12-08 2019-07-02 Nomadix, Inc. Systems and methods for providing content and services on a network system
JP2009207207A (en) * 2009-06-18 2009-09-10 Hitachi Ltd Address converter, method of processing message, and device
JP2009207206A (en) * 2009-06-18 2009-09-10 Hitachi Ltd Address converter, method of processing message, and device
JP2012156656A (en) * 2011-01-24 2012-08-16 Fujitsu Ltd Network address translation method, network address translation proxy response method, network address translation device, and network address translation proxy response device

Also Published As

Publication number Publication date
JP3464021B2 (en) 2003-11-05

Similar Documents

Publication Publication Date Title
US6425003B1 (en) Method and apparatus for DNS resolution
US7567561B2 (en) Packet communication node apparatus with extension modules
US7860967B2 (en) Network processor system including a central processor and at least one peripheral processor
US7330918B2 (en) Buffer memory management method and system
US7646776B2 (en) Method and apparatus for generating unique ID packets in a distributed processing system
US20030058863A1 (en) Method for transmitting compressed data in packet-oriented networks
JP3371006B2 (en) Table search method and router device
EP0551243A2 (en) Address recognition engine
US7996563B2 (en) Method for designating internet protocol addresses
JPH0685819A (en) Computer system
CA2011934A1 (en) Method and apparatus for source routing bridging
JPH07101413B2 (en) Data block selection method and control block selection system
JP2000106572A (en) Method and system for address conversion
JP3520709B2 (en) Network address search method
EP1131921B1 (en) Method and apparatus for adaptive address lookup table generator
JP3464021B2 (en) Router with address translation function
US7561585B2 (en) Manufacture and method for accelerating network address translation
US20020181480A1 (en) Method for using a balanced tree as a base for a routing table
JPH11150566A (en) Internetwork device
US6795816B2 (en) Method and device for translating telecommunication network IP addresses by a leaky-controlled memory
US20020178289A1 (en) Communications device, address modification device, communications method and communications control program
CN114285907B (en) Data transmission method, device, electronic equipment and storage medium
KR100862195B1 (en) Method and Apparatus for searching by range matching using content addressable memory
JP3132232B2 (en) Data link layer type automatic setting device
JP2001060973A (en) Network address converter, network provided with this and its storing medium

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030520

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030812

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

Free format text: PAYMENT UNTIL: 20080822

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090822

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090822

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100822

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110822

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120822

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees