JP2008148243A - Communication apparatus, communication system, communication method and communication program - Google Patents
Communication apparatus, communication system, communication method and communication program Download PDFInfo
- Publication number
- JP2008148243A JP2008148243A JP2006336136A JP2006336136A JP2008148243A JP 2008148243 A JP2008148243 A JP 2008148243A JP 2006336136 A JP2006336136 A JP 2006336136A JP 2006336136 A JP2006336136 A JP 2006336136A JP 2008148243 A JP2008148243 A JP 2008148243A
- Authority
- JP
- Japan
- Prior art keywords
- address
- terminal
- network
- received
- virtual
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、通信装置、通信システム、通信方法及び通信プログラムに関し、特に、各端末の内部設定変更を必要とせずに、同一のIPアドレス体系を用いるネットワーク間をレイヤ2及びレイヤ3レベルにおける通信可能とする通信装置、通信システム、通信方法及び通信プログラムに関する。
The present invention relates to a communication device, a communication system, a communication method, and a communication program, and in particular, can communicate at a
同一のIPアドレス体系を用いるネットワーク同士をハブ(HUB)やスイッチ等を利用して接続することがある。この際、端末毎に異なるIPアドレスを割り当てる必要があるため、過って共通のIPアドレスを割り当ててしまわないように注意が必要であり、IPアドレスの厳重な管理が必要である。 Networks using the same IP address system may be connected using a hub (HUB) or a switch. At this time, since it is necessary to assign a different IP address to each terminal, it is necessary to take care not to assign a common IP address, and strict management of the IP address is necessary.
従来、端末のネットワークアドレス等の変更を必要とせずに、同一のIPアドレス体系を用いるネットワーク間のIP通信を可能にする方法がある。例えば、同一のIPアドレスを用いる各ネットワークに接続されたNAT(Network Address Translation )ルータを対称的に配置して設置する方法がある。従来技術1のNATルータを用いた方法では、NATルータを対称的に配置して設置することにより、同一のIPアドレス体系のネットワーク間でレイヤ3レベルにおける通信を可能としている。
Conventionally, there is a method for enabling IP communication between networks using the same IP address system without requiring a change in the network address of the terminal. For example, there is a method in which NAT (Network Address Translation) routers connected to each network using the same IP address are arranged symmetrically. In the method using the NAT router of prior art 1, communication at the
また、例えば、特許文献1には、共通のIPアドレスを用いる端末間で、レイヤ2及びレイヤ3で疎通させるIP変換装置が開示されている。なお、「レイヤ2及びレイヤ3で疎通させる」とは、OSI基本参照モデルのレイヤ2及びレイヤ3レベルにおける通信を可能とすることである。IP変換装置は、イーサネット(登録商標)ポート毎に異なるアドレス情報を割り当て、送信元IPアドレスと送信先IPアドレスとを変換する。そのようにすることにより、予め共通のデフォルトIPアドレスが保持されている端末間であっても通信を可能としている。従って、特許文献1に記載されているIP変換装置5は、共通のIPアドレスをもつ端末間において、レイヤ2及びレイヤ3レベルにおける通信を可能としている。
Further, for example, Patent Document 1 discloses an IP conversion apparatus that allows communication between
図10は、同一のIPアドレスを用いる各ネットワークに接続されたNATルータを対称的に配置して設置する方法の例を示す説明図である。以下、図10に示すNATルータ41,42の動作について説明する。
FIG. 10 is an explanatory diagram showing an example of a method of installing NAT routers connected symmetrically to each network using the same IP address. The operation of the
NATルータ41,42は、元々、プライベートネットワークとグローバルネットワークとの間の通信を可能とするための装置である。例えば、NATルータ41は、プライベートネットワークに接続されているイーサネットポート401と、グローバルネットワークに接続されているイーサネットポート402とを有する。また、NATルータ42は、プライベートネットワークに接続されているイーサネットポート404と、グローバルネットワークに接続されているイーサネットポート403とを有する。また、NATルータ41,42は、それぞれ受信パケットのIP変換を行うためのIP変換テーブル405,406を有する。
The NAT
NATルータ41,42が有するIP変換テーブル405,406は、受信パケットの入力ポート情報及び受信パケットのIP情報を、IP変換後情報に対応付けて含む。
The IP conversion tables 405 and 406 included in the
NATルータ41,42は、イーサネットポート401,404から、グローバルIPアドレスを送信先IPアドレス(IPDA)として含むとともに、プライベートIPアドレスを送信元IPアドレス(IPSA)として含むパケットを受信する。この場合、NATルータ41,42は、IP変換テーブル405,406を参照して、パケットに含まれるIPSAのみを変換して転送する。
The
また、NATルータ41,42は、逆に、プライベートIPアドレスをIPDAとして含むとともに、グローバルIPアドレスをIPSAとして含むパケットを、グローバルネットワークに接続されているイーサネットポート402,473から受信する場合もある。この場合、NATルータ41,42は、IP変換テーブル405,406を参照して、パケットに含まれるIPSAのみを変換して転送する。
In contrast, the NAT
以下、図10を参照して、端末911から端末921にIPパケットを送信する場合の動作について説明する。例えば、端末911は、送信先端末921にパケットを送信する際、NATルータ42のイーサネットポート403を示すグローバルIPアドレス(例えば、10.0.0.3)を送信先IPアドレスとして含むパケットを生成して、NATルータ41のイーサネットポート401に送信する。
Hereinafter, an operation when an IP packet is transmitted from the
NATルータ41は、イーサネットポート401からパケットを受信すると、受信パケットに含まれる入力ポート番号とIPアドレス情報とに基づいて、IP変換テーブル405を検索する。ただし、NATルータ41は、IP変換テーブル405を1回のみ検索する。そして、NATルータ41は、受信したパケットに含まれるIPSAのみをグローバルIPアドレス(例えば、10.0.0.1)に変更し、イーサネットポート402を経由してNATルータ42に送信する。
When the
NATルータ42は、イーサネットポート403からパケットを受信すると、受信パケットに含まれる入力ポートと、受信パケットに含まれるIPDA情報とに基づいて、IP変換テーブル406を検索する。ただし、NATルータ42は、IP変換テーブル406を1回のみ検索する。そして、NATルータ42は、受信したパケットに含まれるIPDAのみをプライベートIPアドレス(例えば、192.168.0.1 )に変更し、イーサネットポート404を経由して送信先端末921に送信する。
When receiving the packet from the Ethernet
上記のように、NATルータ41,42は、受信パケットに含まれる送信元IPアドレスのみ(又は送信先IPアドレスのみ)を変換する。すると、同一のIPアドレス体系のネットワークをNATルータ1台で直接接続する場合、IP変換後の送信先IPアドレス(又は送信元IPアドレス)が送信先端末のIPアドレスと同等のアドレスとなってしまう可能性がある。そのため、NATルータ1台を用いて同一のIPネットワーク間を接続することはできない。
As described above, the
また、NATルータを用いた方法では、IPプロトコル以外のプロトコルを利用するためには、送信先端末のMACアドレスをMACDAとするイーサネットフレームを、NATルータを用いて転送する必要がある。しかし、NATルータは、自ノード宛のMACアドレスをMACDAとするフレームのみしか転送できない。そのため、送信先端末のMACアドレスをMACDAとするイーサネットフレームは、NATルータで廃棄されてしまう。従って、同一のIPアドレスを用いるネットワーク間でレイヤ2疎通(レイヤ2レベルでの通信)が不可能であるため、IPプロトコル以外のプロトコル(例えば、AppleTalkやIPX、SNA)を利用することはできない。
In the method using the NAT router, in order to use a protocol other than the IP protocol, it is necessary to transfer an Ethernet frame having the MAC address of the destination terminal as MACDA using the NAT router. However, the NAT router can transfer only a frame having the MAC address addressed to its own node as MACDA. For this reason, an Ethernet frame having the MAC address of the destination terminal as MACDA is discarded by the NAT router. Accordingly, since
また、NATルータを用いた方法では、送信元端末が送信先端末にパケットを送信する際に、送信先端末が接続されている装置(或はポート)のIPアドレスを送信先IPアドレスとして含むパケットを生成して送信する必要がある。しかし、従来技術1では、そのIPアドレスを取得する方法について何ら考慮されていない。従って、送信元端末が送信先端末にIPパケットを送信したくても、IPパケットの送信先IPアドレスを自分で取得することができず、送信先端末と直接接続することができない。 In the method using the NAT router, when the transmission source terminal transmits a packet to the transmission destination terminal, the packet including the IP address of the device (or port) to which the transmission destination terminal is connected as the transmission destination IP address. Must be generated and sent. However, the prior art 1 does not consider any method for obtaining the IP address. Therefore, even if the transmission source terminal wants to transmit an IP packet to the transmission destination terminal, the transmission destination IP address of the IP packet cannot be acquired by itself and cannot be directly connected to the transmission destination terminal.
また、図11は、特許文献1等に記載されているIP変換装置を用いたシステムの構成の一例を示すブロック図である。以下、特許文献1に開示されたIP変換装置の概要について、図11を参照して説明する。図11に示すように、特許文献1に記載されたIP変換装置を用いたシステムは、端末511,521と、それら端末511,521を接続するIP変換装置5とを有している。
FIG. 11 is a block diagram showing an example of the configuration of a system using the IP conversion device described in Patent Document 1 and the like. Hereinafter, an outline of the IP conversion device disclosed in Patent Document 1 will be described with reference to FIG. As shown in FIG. 11, the system using the IP conversion device described in Patent Document 1 includes
また、端末511,512は、同一のIPアドレス(例えば、192.168.0.1 )を用いているとともに、端末511,512のMACアドレスは、それぞれ「A」及び「B」であるとする。
The
IP変換装置5は、イーサネットポート501,502を経由して、端末511と端末512とを接続している。また、IP変換装置5は、イーサネットポート毎にそれぞれ異なるIPアドレス(例えば、192.168.0.11と192.168.0.12)が設定されている。また、IP変換装置5は、受信パケットのIP変換処理を行う際に参照するIP変換テーブル503を備える。
The IP conversion apparatus 5 connects a
IP変換テーブル503は、ポートに設定されているIPアドレスと、端末の共通IPアドレスとを、イーサネットポート番号に対応付けて含む。例えば、イーサネットポート501に対応するエントリには、イーサネットポート501に設定したIPアドレス「192.168.0.11」と、端末511,512の共通IPアドレス「192.168.0.1 」とが含まれる。同様に、イーサネットポート502に対応するエントリには、イーサネットポート502に設定したIPアドレス「192.168.0.12」と、端末511,512の共通IPアドレス「192.168.0.1 」とが含まれる。
The IP conversion table 503 includes the IP address set for the port and the common IP address of the terminal in association with the Ethernet port number. For example, the entry corresponding to the Ethernet
以下、端末511から送信先端末521にIPパケットを送信する動作について説明する。
Hereinafter, an operation of transmitting an IP packet from the
端末511は、送信先端末521にIPパケットを送信する際、端末521が接続されているIP変換装置5のイーサネットポート502のIPアドレスを、IPDAとして含むIPパケットを送信する。例えば、端末511は、IP変換装置5のイーサネットポート502のIPアドレス「192.168.0.12」をIPDAとして含むパケットを、端末521に送信する。
When the
IP変換装置5は、パケットを受信すると、受信パケットに含まれる入力ポート情報を用いて、IP変換テーブル503を検索する。ただし、IP変換装置5は、IP変換テーブル503を1回のみ検索する。次いで、IP変換装置5は、検索されたポートIPアドレスに基づいて、受信パケットに含まれるIPSAを変換する。また、IP変換装置5は、検索された端末の共通IPアドレスに基づいて、受信パケットに含まれるIPDAを変更する。 When receiving the packet, the IP conversion device 5 searches the IP conversion table 503 using the input port information included in the received packet. However, the IP conversion device 5 searches the IP conversion table 503 only once. Next, the IP converter 5 converts the IPSA included in the received packet based on the retrieved port IP address. Also, the IP conversion device 5 changes the IPDA included in the received packet based on the common IP address of the searched terminal.
例えば、IP変換装置5は、イーサネットポート51からパケットを受信すると、IP変換テーブル503に含まれる受信ポート501に対応するエントリを検索する。そして、IP変換装置5は、イーサネットポート501に対応付けられたポートIPアドレス「192.168.0.11」と、端末の共通IPアドレス「192.168.0.1 」とを取得し、IPSA及びIPDAを変換して、端末521に転送する。
For example, when receiving a packet from the Ethernet port 51, the IP conversion device 5 searches for an entry corresponding to the
しかし、IP変換装置を用いたシステムでは、イーサネットポート毎にIPアドレスを設定し、イーサネットポートに設定されたIPアドレスを基づいて受信フレームに含まれるIPアドレスを変換する。また、1つのイーサネットポートに複数の端末が接続される場合、それぞれの端末から送信されるIPパケットに含まれる送信先IPアドレスは同一のIPアドレスに変換されることになる。そのため、同一のIPアドレスを用いる2ペア以上の端末間通信は行えない。従って、1つのイーサネットポートに複数の端末が接続される場合、端末間での通信を行うことはできない。また、送信元端末が送信先端末にIPパケットを送信したくても、IPパケットに含まれる送信先IPアドレスを自分で取得することができず、送信先端末と直接接続することができない。 However, in a system using an IP conversion device, an IP address is set for each Ethernet port, and the IP address included in the received frame is converted based on the IP address set for the Ethernet port. When a plurality of terminals are connected to one Ethernet port, the destination IP address included in the IP packet transmitted from each terminal is converted to the same IP address. Therefore, communication between two or more terminals using the same IP address cannot be performed. Therefore, when a plurality of terminals are connected to one Ethernet port, communication between the terminals cannot be performed. Further, even if the transmission source terminal wants to transmit an IP packet to the transmission destination terminal, the transmission destination IP address included in the IP packet cannot be acquired by itself and cannot be directly connected to the transmission destination terminal.
そこで、本発明は、同一のIPアドレス体系を用いるネットワーク間に設けられた通信装置において、端末の内部設定変更を必要とせずに、レイヤ2及びレイヤ3レベルにおける通信を可能とする通信装置、通信システム、通信方法及び通信プログラムを提供することを目的とする。
Therefore, the present invention provides a communication device provided between networks using the same IP address system, a communication device that enables communication at the
また、本発明は、同一のIPアドレス体系を用いるネットワーク間に設けられた通信装置において、端末の内部設定変更を必要とせずに、1つのイーサネットポートに複数の端末が接続される場合でも端末間の通信を可能とする通信装置、通信システム、通信方法及び通信プログラムを提供することを目的とする。 In addition, the present invention provides a communication apparatus provided between networks using the same IP address system, even if a plurality of terminals are connected to one Ethernet port without requiring any change in the internal settings of the terminals. It is an object of the present invention to provide a communication device, a communication system, a communication method, and a communication program that enable communication.
また、本発明は、同一のIPアドレス体系を用いるネットワーク間に設けられる通信装置において、端末の内部設定変更を必要とせずに、送信元端末が送信先IPアドレスを取得するためのインターフェースを提供するとともに、送信元端末が送信先IPアドレスを自分で指定することを可能とする通信装置、通信システム、通信方法及び通信プログラムを提供することを目的とする。 The present invention also provides an interface for a transmission source terminal to acquire a transmission destination IP address without requiring a change in the internal setting of the terminal in a communication apparatus provided between networks using the same IP address system. Another object of the present invention is to provide a communication device, a communication system, a communication method, and a communication program that allow a transmission source terminal to specify a transmission destination IP address by itself.
本発明による通信装置は、同一のIPアドレス体系を有するネットワークに接続される端末間の通信を中継する通信装置(例えば、仮想ターミナル装置3)であって、第1のネットワークに接続される第1の端末(例えば、端末11)が第2のネットワークに接続される第2の端末(例えば、端末21)と通信する場合に、第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスを特定する仮想アドレス特定手段(例えば、設定部311によって実現される)と、仮想アドレス特定手段が特定した仮想IPアドレスを、第1の端末に送信する仮想アドレス送信手段(例えば、設定部311によって実現される)と、第1の端末からデータを受信すると、受信データに含まれる送信元としての第1の端末のIPアドレスを、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスに変換する送信側アドレス変換手段(例えば、IPSA変換部314、ARPSA変換部316によって実現される)と、第1の端末からデータを受信すると、受信データに含まれる送信先としての第2の端末の仮想IPアドレスを、第2の端末が第2のネットワークで用いる現実のIPアドレスに変換する受信側アドレス変換手段(例えば、IPDA変換部313、ARPDA変換部315によって実現される)とを備えたことを特徴とする。
A communication device according to the present invention is a communication device (for example, virtual terminal device 3) that relays communication between terminals connected to a network having the same IP address system, and is a first device connected to a first network. When the second terminal obtains an IP address on the first network side when the terminal (for example, the terminal 11) communicates with the second terminal (for example, the terminal 21) connected to the second network. A virtual address specifying unit (for example, realized by the setting unit 311) that specifies a virtual IP address that can be acquired in this case, and a virtual address that transmits the virtual IP address specified by the virtual address specifying unit to the first terminal When receiving data from the transmission means (for example, realized by the setting unit 311) and the first terminal, as a transmission source included in the received data Sending side address converting means (for example, IPSA converting unit 314) that converts the IP address of the first terminal into a virtual IP address that can be acquired when the first terminal acquires the IP address on the second network side. When the data is received from the first terminal, the virtual IP address of the second terminal as the transmission destination included in the received data is received by the second terminal in the second network. Receiving-side address conversion means (for example, realized by the
また、通信装置は、第1の端末が第1のネットワークで用いる現実のIPアドレスと、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスとを対応付けて含むとともに、第2の端末が第2のネットワークで用いる現実のIPアドレスと、第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスとを対応付けて含む仮想アドレス対応テーブル(例えば、仮想ターミナルテーブル318)を備え、送信側アドレス変換手段は、仮想アドレス対応テーブルに基づいて、受信データに含まれる送信元としての第1の端末のIPアドレスを仮想IPアドレスに変換し、受信側アドレス変換手段は、仮想アドレス対応テーブルに基づいて、受信データに含まれる送信先としての第2の端末の仮想IPアドレスを、第2の端末の現実のIPアドレスに変換するものであってもよい。 The communication device also includes an actual IP address used by the first terminal in the first network, a virtual IP address that can be acquired when the first terminal acquires an IP address on the second network side, and And the virtual IP address that can be acquired when the second terminal acquires the IP address on the first network side temporarily, and the actual IP address used by the second terminal in the second network And a virtual address table (for example, a virtual terminal table 318), and the transmission-side address conversion means is based on the virtual address correspondence table and includes the first terminal as the transmission source included in the received data. The IP address is converted into a virtual IP address, and the receiving side address converting means receives the data based on the virtual address correspondence table. The virtual IP address of the second terminal as a transmission destination included in the chromatography data, or may be converted to the real IP address of the second terminal.
本発明による通信装置の他の態様は、複数の端末が接続されている同一のIPアドレス体系を有するネットワーク間を接続する際に、端末のデフォルトIPアドレスを変更せずに、端末間をレイヤ2及びレイヤ3レベルにおいて通信可能とする手段(例えば、IPDA変換部313、IPSA変換部314、ARPDA変換部315、ARPSA変換部316)を備えたことを特徴とする。
According to another aspect of the communication apparatus of the present invention, when connecting between networks having the same IP address system to which a plurality of terminals are connected, the terminals are not changed in
本発明による通信装置のさらに他の態様は、複数の端末が接続されている同一のIPアドレス体系を有する第1のネットワークと第2のネットワークとを接続する際に、第1のネットワークに接続される第1のイーサネットポートから受信するイーサネットフレームのプロトコルタイプを識別するフレーム識別部と、フレーム識別部がプロトコルタイプをIPタイプと判断した場合に、イーサネットフレームのIPパケットの送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するIPDA変換部と、フレーム識別部がプロトコルタイプをIPタイプと判断した場合に、IPパケットの送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するIPSA変換部と、フレーム識別部がプロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームのARPパケットのデータフィールドに含まれている送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するARPDA変換部と、フレーム識別部がプロトコルタイプをARPタイプと判断した場合に、ARPパケットのデータフィールドに含まれている送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するARPSA変換部と、受信したイーサネットフレームを、イーサネットフレームを受信した入力ポート以外のポートに転送するフレーム制御部とを備えたことを特徴とする。 Still another aspect of the communication device according to the present invention is connected to the first network when connecting the first network and the second network having the same IP address system to which a plurality of terminals are connected. A frame identification unit for identifying a protocol type of an Ethernet frame received from the first Ethernet port, and a transmission destination IP address of the IP packet of the Ethernet frame when the frame identification unit determines that the protocol type is an IP type. If the destination terminal acquires an IP address on the second network side, an IPDA conversion unit that converts the IP address to an IP address that can be acquired, and transmission of an IP packet when the frame identification unit determines that the protocol type is an IP type The source IP address is assumed to be the IP address of the source terminal on the second network side. The IPSA conversion unit that converts the IP address to an IP address that can be acquired when the address is acquired, and the frame identification unit that is included in the data field of the ARP packet of the received Ethernet frame when the protocol type is determined to be the ARP type The ARPDA converter that converts the destination IP address to an IP address that can be acquired when the destination terminal acquires the IP address on the second network side, and the frame identification unit has determined that the protocol type is the ARP type A source IP address included in the data field of the ARP packet is converted to an IP address that can be acquired when the source terminal temporarily acquires the IP address on the second network side; Ethernet frame received, Ethernet Characterized by comprising a frame control unit for transferring a port other than input port receiving the frame.
また、通信装置は、第1のネットワークに接続される第1のイーサネットポートと、第1のネットワークに接続されている第1の端末のデフォルトIPアドレスとを用いて、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを対応付けて含むとともに、第1のイーサネットポートと第2のネットワークに接続されている第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスとを用いて、第2の端末のデフォルトIPアドレスに対応付けて含む仮想ターミナルテーブルを備え、IPDA変換部は、受信フレームの入力ポートと受信フレームに含まれている送信先IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信先IPアドレス情報を変換し、ARPDA変換部は、受信フレームの入力ポートと受信フレームに含まれている送信先IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信先IPアドレス情報を変換し、IPSA変換部は、受信フレームの入力ポートと受信フレームに含まれている送信元IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信元IPアドレス情報を変換し、ARPSA変換部は、受信フレームの入力ポートと受信フレームに含まれている送信元IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信元IPアドレス情報を変換するものであってもよい。 Further, the communication device uses the first Ethernet port connected to the first network and the default IP address of the first terminal connected to the first network, so that the first terminal is the second one. If the IP address is acquired on the network side, the IP address that can be acquired is included in association with the second terminal connected to the first Ethernet port and the second network on the first network side. The virtual terminal table includes the IP address that can be acquired when the IP address is acquired in association with the default IP address of the second terminal, and the IPDA conversion unit includes the input port of the received frame, Based on the search result of the virtual terminal table using the destination IP address information included in the received frame. Then, the destination IP address information is converted, and the ARPDA conversion unit uses the input port of the received frame and the destination IP address information included in the received frame, based on the result of searching the virtual terminal table, The destination IP address information is converted, and the IPSA conversion unit uses the input port of the received frame and the source IP address information included in the received frame, based on the result of searching the virtual terminal table, The IP address information is converted, and the ARPSA conversion unit uses the input port of the received frame and the source IP address information included in the received frame to search for the source IP address based on the search result of the virtual terminal table. The information may be converted.
また、通信装置は、固定IPアドレスを用いるCGI又はGUIによる仮想ターミナルテーブル検索用のインターフェースを有する設定部を備え、設定部は、仮想ターミナルテーブルを設定し、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答するものであってもよい。 The communication apparatus also includes a setting unit having an interface for searching a virtual terminal table by CGI or GUI using a fixed IP address. The setting unit sets a virtual terminal table and sets a destination IP address from a source terminal. In response to the inquiry, the virtual terminal table may be searched and responded to the transmission source terminal.
また、通信装置は、第1のネットワークに接続される第1のイーサネットポートと、第2のネットワークに接続されている第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスとを用いて、第2のネットワークを接続する第2のイーサネットポート及び第2の端末のデフォルトIPアドレスを対応付けて含むIPDA変換テーブルと、第1のイーサネットポートと、第1のネットワークに接続されている第1の端末のデフォルトIPアドレスと、第2のイーサネットポートとを用いて、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを対応付けて含むIPSA変換テーブルとを備え、IPDA変換部は、入力ポートと受信フレームに含まれている送信先IPアドレスとを用いて、IPDA変換テーブルを検索した結果に基づいて、送信先IPアドレス情報を変換するとともに、出力ポートを取得し、ARPDA変換部は、入力ポートと受信フレームに含まれている送信先IPアドレスとを用いて、IPDA変換テーブルを検索した結果に基づいて、送信先IPアドレス情報を変換するとともに、出力ポートを取得し、IPSA変換部は、受信フレームにおける入力ポートと、出力ポート及び受信フレームに含まれている送信元IPアドレス情報とを用いて、IPSA変換テーブルを検索した結果に基づいて、送信元IPアドレス情報を変換し、ARPSA変換部は、受信フレームにおける入力ポートと、出力ポート及び受信フレームに含まれている送信元IPアドレス情報とを用いて、IPSA変換テーブルを検索した結果に基づいて、送信元IPアドレス情報を変換し、フレーム制御部は、受信フレームを出力ポートに転送するものであってもよい。 Further, when the communication apparatus determines that the first Ethernet port connected to the first network and the second terminal connected to the second network acquire an IP address on the first network side. An IPDA conversion table including the second Ethernet port connecting the second network and the default IP address of the second terminal in association with each other using the obtainable IP address, the first Ethernet port, and the first It can be acquired when the first terminal temporarily acquires an IP address on the second network side using the default IP address of the first terminal connected to the network and the second Ethernet port. An IPSA conversion table including IP addresses in association with each other, and an IPDA conversion unit is provided for input ports and received frames. Based on the result of searching the IPDA conversion table using the existing destination IP address, the destination IP address information is converted and the output port is acquired. The ARPDA conversion unit converts the input port and the received frame into Based on the result of searching the IPDA conversion table using the included destination IP address, the destination IP address information is converted and the output port is acquired, and the IPSA conversion unit receives the input port in the received frame. And the source IP address information included in the output port and the received frame, the source IP address information is converted based on the result of searching the IPSA conversion table, and the ARPSA conversion unit Source IP address information included in input port, output port and received frame With, based on the result of searching the IPSA conversion table, converts the source IP address information, the frame control unit may be configured to forward the received frame to the output port.
本発明による通信システムは、同一のIPアドレス体系を有するネットワークに接続される端末間の通信を行う通信システムであって、端末間の通信を中継する通信装置を備え、通信装置は、第1のネットワークに接続される第1の端末が第2のネットワークに接続される第2の端末と通信する場合に、第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスを特定する仮想アドレス特定手段と、仮想アドレス特定手段が特定した仮想IPアドレスを、第1の端末に送信する仮想アドレス送信手段と、第1の端末からデータを受信すると、受信データに含まれる送信元としての第1の端末のIPアドレスを、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスに変換する送信側アドレス変換手段と、第1の端末からデータを受信すると、受信データに含まれる送信先としての第2の端末の仮想IPアドレスを、第2の端末が第2のネットワークで用いる現実のIPアドレスに変換する受信側アドレス変換手段とを含み、第1の端末は、通信装置から受信した仮想IPアドレスを送信先として含むデータを、通信装置に送信することを特徴とする。 A communication system according to the present invention is a communication system that performs communication between terminals connected to a network having the same IP address system, and includes a communication device that relays communication between the terminals. Acquired when the first terminal connected to the network communicates with the second terminal connected to the second network and the second terminal temporarily acquires an IP address on the first network side. A virtual address specifying means for specifying a virtual IP address, a virtual address transmitting means for transmitting the virtual IP address specified by the virtual address specifying means to the first terminal, and receiving data when receiving data from the first terminal. When the first terminal obtains the IP address of the first terminal on the second network side as the transmission source included in When receiving the data from the first terminal and the transmission side address conversion means for converting into an obtainable virtual IP address, the second terminal determines the virtual IP address of the second terminal as the transmission destination included in the received data. Receiving side address converting means for converting into an actual IP address used in the second network, and the first terminal transmits data including the virtual IP address received from the communication device as a transmission destination to the communication device. It is characterized by.
本発明による通信方法は、同一のIPアドレス体系を有するネットワークに接続される端末間の通信を行う通信方法であって、端末間の通信を中継する通信装置が、第1のネットワークに接続される第1の端末が第2のネットワークに接続される第2の端末と通信する場合に、第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスを特定するステップと、通信装置が、特定した仮想IPアドレスを、第1の端末に送信するステップと、第1の端末が、通信装置から受信した仮想IPアドレスを送信先として含むデータを、通信装置に送信するステップと、通信装置が、第1の端末からデータを受信すると、受信データに含まれる送信元としての第1の端末のIPアドレスを、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスに変換するステップと、通信装置が、第1の端末からデータを受信すると、受信データに含まれる送信先としての第2の端末の仮想IPアドレスを、第2の端末が第2のネットワークで用いる現実のIPアドレスに変換するステップとを含むことを特徴とする。 The communication method according to the present invention is a communication method for performing communication between terminals connected to a network having the same IP address system, and a communication device that relays communication between the terminals is connected to the first network. When the first terminal communicates with the second terminal connected to the second network, the virtual IP address that can be acquired when the second terminal temporarily acquires the IP address on the first network side A step of specifying, a step in which the communication device transmits the specified virtual IP address to the first terminal, and data including, as a transmission destination, the virtual IP address received by the first terminal from the communication device. And when the communication device receives data from the first terminal, the IP address of the first terminal as the transmission source included in the received data is set to the first terminal. If the communication device receives data from the first terminal, the communication device receives data from the first terminal as a transmission destination included in the received data. Converting the virtual IP address of the second terminal into an actual IP address used by the second terminal in the second network.
本発明による通信方法の他の態様は、複数の端末が接続されている同一のIPアドレス体系を有する第1のネットワークと第2のネットワークとを接続する際に、第1のネットワークに接続されている端末と第2のネットワークに接続されている端末との通信を中継する通信方法であって、第1のネットワークに接続される第1のイーサネットポートからイーサネットフレームを受信する場合、受信フレームのプロトコルタイプを識別し、プロトコルタイプをIPタイプと判断した場合に、イーサネットフレームのIPパケットの送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換し、プロトコルタイプをIPタイプと判断した場合に、IPパケットの送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換し、プロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームのARPパケットのデータフィールドに含まれている送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換し、プロトコルタイプをARPタイプと判断した場合に、ARPパケットのデータフィールドに含まれている送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換し、受信したイーサネットフレームを、イーサネットフレームを受信した入力ポート以外のポートに転送することを特徴とする。 In another aspect of the communication method according to the present invention, the first network having the same IP address system to which a plurality of terminals are connected and the second network are connected to the first network. Is a communication method for relaying communication between a terminal connected to a second network and a terminal connected to the second network, and when receiving an Ethernet frame from the first Ethernet port connected to the first network, the protocol of the received frame When the type is identified and the protocol type is determined to be the IP type, the transmission destination IP address of the IP packet of the Ethernet frame can be acquired if the transmission destination terminal temporarily acquires the IP address on the second network side Send IP packet when converted to IP address and protocol type is determined to be IP type The IP address is converted to an IP address that can be acquired if the source terminal acquires the IP address on the second network side, and the ARP packet of the received Ethernet frame is determined when the protocol type is determined to be the ARP type. The destination IP address included in the data field is converted into an IP address that can be acquired when the destination terminal temporarily acquires an IP address on the second network side, and the protocol type is determined to be the ARP type. In this case, the source IP address included in the data field of the ARP packet is converted into an IP address that can be acquired when the source terminal temporarily acquires an IP address on the second network side, and the received Ethernet Frame from the input port that received the Ethernet frame. Characterized by transfer ports.
本発明による通信方法のさらに他の態様は、複数の端末が接続されている同一のIPアドレス体系を有する第1のネットワークと第2のネットワークとを接続する際に、第1のネットワークに接続されている端末と第2のネットワークに接続されている端末との通信を中継する通信方法であって、第1のネットワークに接続される第1のイーサネットポートと、第1のネットワークに接続されている第1の端末のデフォルトIPアドレスとを用いて、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを対応付けて含むとともに、第1のイーサネットポートと第2のネットワークに接続されている第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスとを用いて、第2の端末のデフォルトIPアドレスを対応付けて含む仮想ターミナルテーブルを予め記憶し、固定IPアドレスを有するCGI又はGUIによるユーザが仮想ターミナルテーブル検索するためのインターフェースを用いて、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答し、第1のネットワークに接続される第1のイーサネットポートからイーサネットフレームを受信する場合に、受信したイーサネットフレームのプロトコルタイプを識別し、プロトコルタイプをIPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと、送信先IPアドレス及び送信元IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信先IPアドレスと送信元IPアドレスとを変換し、プロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと、ARPパケットのデータフィールドに含まれている送信先IPアドレス及び送信元IPアドレスを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信先IPアドレスと送信元IPアドレスとを変換し、受信したイーサネットフレームを、イーサネットフレームを受信した入力ポート以外のポートに転送することを特徴とする。 According to still another aspect of the communication method of the present invention, when a first network having the same IP address system to which a plurality of terminals are connected and a second network are connected, the communication method is connected to the first network. A communication method for relaying communication between a terminal connected to a second network and a terminal connected to the second network, the first Ethernet port connected to the first network, and the first network connected to the first network The first Ethernet port includes an IP address that can be acquired when the first terminal acquires an IP address on the second network side using the default IP address of the first terminal in association with the first Ethernet port. Can be acquired when the second terminal connected to the second network acquires an IP address on the first network side. A virtual terminal table including the default IP address of the second terminal in association with the P address is stored in advance, and a CGI or GUI user having a fixed IP address is used to search the virtual terminal table. In response to an inquiry about the destination IP address from the source terminal, the virtual terminal table is searched and responded to the source terminal, and an Ethernet frame is received from the first Ethernet port connected to the first network. When the protocol type of the received Ethernet frame is identified and the protocol type is determined to be the IP type, the virtual terminal is used by using the input port of the received Ethernet frame, the destination IP address and the source IP address information. Results of searching the table When the transmission destination IP address and the transmission source IP address are converted based on the protocol, and the protocol type is determined to be the ARP type, the input port of the received Ethernet frame and the transmission destination included in the data field of the ARP packet Based on the search result of the virtual terminal table using the IP address and the source IP address, the destination IP address and the source IP address are converted, and the received Ethernet frame is other than the input port that received the Ethernet frame. It transfers to the port of this.
本発明による通信方法のさらに他の態様は、複数の端末が接続されている同一のIPアドレス体系を有する第1のネットワークと第2のネットワークとを接続する際に、第1のネットワークに接続されている端末と第2のネットワークに接続されている端末との通信を中継する通信方法であって、第1のネットワークに接続される第1のイーサネットポートと、第2のネットワークに接続されている第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスとを用いて、第2のネットワークを接続するイーサネットポート及び第2の端末のデフォルトIPアドレスを対応付けて含むIPDA変換テーブルを予め記憶し、第1のイーサネットポートと、第1のネットワークに接続されている第1の端末のデフォルトIPアドレスと、第2のネットワークを接続するイーサネットポートとを用いて、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを対応付けて含むIPSA変換テーブルを予め記憶し、固定IPアドレスを用いるCGI又はGUIによる仮想ターミナルテーブル検索用のインターフェースを用いて、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答し、第1のネットワークに接続される第1のイーサネットポートからイーサネットフレームを受信する場合に、受信したイーサネットフレームのプロトコルタイプを識別し、プロトコルタイプをIPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと送信先IPアドレス及び送信元IPアドレス情報を用い、IPDA変換テーブルとIPSA変換テーブルを検索した結果に基づいて、イーサネットフレームのIPパケットの送信先IPアドレスと送信元IPアドレスとを変換し、プロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームの入力ポートとARPパケットのデータフィールドに含まれている送信先IPアドレス及び送信元IPアドレスとを用いて、IPDA変換テーブルとIPSA変換テーブルとを検索した結果に基づいて、ARPパケットのデータフィールドに含まれている送信先IPアドレスと送信元IPアドレスとを変換し、受信したイーサネットフレームを、イーサネットフレームを受信した入力ポート以外のポートに転送することを特徴とする。 According to still another aspect of the communication method of the present invention, when a first network having the same IP address system to which a plurality of terminals are connected and a second network are connected, the communication method is connected to the first network. A communication method for relaying communication between a terminal connected to a second network and a terminal connected to a second network, wherein the first Ethernet port connected to the first network and the second network are connected When the second terminal acquires an IP address on the first network side, the IP address that can be acquired is used to correspond to the Ethernet port connecting the second network and the default IP address of the second terminal. A pre-stored IPDA conversion table including the first Ethernet port and the first network connected to the first network Using the default IP address at the end and the Ethernet port that connects the second network, the IP address that can be acquired when the first terminal acquires an IP address on the second network side is associated with The virtual terminal table is searched for the destination IP address inquiry from the source terminal using the interface for virtual terminal table search by CGI or GUI using the fixed IP address. When the Ethernet frame is received from the first Ethernet port connected to the first network in response to the transmission source terminal, the protocol type of the received Ethernet frame is identified, and the protocol type is determined to be the IP type The received Ethernet frame. Based on the result of searching the IPDA conversion table and the IPSA conversion table, the destination IP address and the source IP address of the IP packet of the Ethernet frame are obtained using the input port of the system, the destination IP address, and the source IP address information. When the IP address is converted and the protocol type is determined to be the ARP type, the IPDA conversion table is obtained using the input port of the received Ethernet frame and the destination IP address and the source IP address included in the data field of the ARP packet. Based on the result of searching the IPSA conversion table, the destination IP address and the source IP address included in the data field of the ARP packet are converted, and the received Ethernet frame other than the input port that received the Ethernet frame is converted. Forward to other ports It is characterized by doing.
本発明による通信プログラムは、同一のIPアドレス体系を有するネットワークに接続される端末間の通信を中継するための通信プログラムであって、コンピュータに、第1のネットワークに接続される第1の端末が第2のネットワークに接続される第2の端末と通信する場合に、第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスを特定する処理と、特定した仮想IPアドレスを、第1の端末に送信する処理と、第1の端末からデータを受信すると、受信データに含まれる送信元としての第1の端末のIPアドレスを、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスに変換する処理と、第1の端末からデータを受信すると、受信データに含まれる送信先としての第2の端末の仮想IPアドレスを、第2の端末が第2のネットワークで用いる現実のIPアドレスに変換する処理とを実行させるためのものである。 A communication program according to the present invention is a communication program for relaying communication between terminals connected to a network having the same IP address system, and a first terminal connected to a first network is connected to a computer. A process for specifying a virtual IP address that can be acquired when the second terminal acquires an IP address on the first network side when communicating with a second terminal connected to the second network; When the specified virtual IP address is transmitted to the first terminal and data is received from the first terminal, the first terminal determines the IP address of the first terminal as the transmission source included in the received data. If the IP address is acquired on the second network side, the virtual IP address can be acquired and the data is received from the first terminal. , The virtual IP address of the second terminal as a transmission destination included in the received data, the second terminal is for executing a process of converting the real IP address used in the second network.
本発明による通信プログラムの他の態様は、複数の端末が接続されている同一のIPアドレス体系を有する第1のネットワークと第2のネットワークとを接続する際に、第1のネットワークに接続されている端末と第2のネットワークに接続されている端末との通信を中継するための通信プログラムであって、コンピュータに、第1のネットワークに接続される第1のイーサネットポートからイーサネットフレームを受信する場合、受信フレームのプロトコルタイプを識別する処理と、プロトコルタイプをIPタイプと判断した場合に、イーサネットフレームのIPパケットの送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する処理と、プロトコルタイプをIPタイプと判断した場合に、IPパケットの送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する処理と、プロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームのARPパケットのデータフィールドに含まれている送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する処理と、プロトコルタイプをARPタイプと判断した場合に、ARPパケットのデータフィールドに含まれている送信元IPアドレスを送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する処理と、受信したイーサネットフレームを、イーサネットフレームを受信した入力ポート以外のポートに転送する処理とを実行させるためのものである。 In another aspect of the communication program according to the present invention, when the first network having the same IP address system to which a plurality of terminals are connected and the second network are connected, the communication program is connected to the first network. A communication program for relaying communication between a terminal connected to a second network and a terminal connected to the second network, wherein the computer receives an Ethernet frame from the first Ethernet port connected to the first network The process of identifying the protocol type of the received frame, and if the protocol type is determined to be the IP type, the destination IP address of the IP packet of the Ethernet frame is temporarily acquired by the destination terminal on the second network side If so, the process of converting to an IP address that can be acquired, and the protocol type Is converted to an IP address that can be acquired when the source terminal temporarily acquires an IP address on the second network side, and a protocol type Is determined as the ARP type, the transmission destination IP address included in the data field of the ARP packet of the received Ethernet frame is acquired when the transmission destination terminal temporarily acquires the IP address on the second network side. When the process is converted to a possible IP address, and the protocol type is determined to be the ARP type, the source IP address included in the data field of the ARP packet is temporarily set by the source terminal on the second network side. If it is acquired, it will be converted into an IP address that can be acquired, and The Ethernet frame is intended for executing the process of transferring a port other than input port receiving an Ethernet frame.
本発明による通信プログラムのさらに他の態様は、複数の端末が接続されている同一IPアドレス体系を有する第1のネットワークと第2のネットワークとを接続する際に、第1のネットワークに接続されている端末と第2のネットワークに接続されている端末との通信を中継するための通信プログラムであって、コンピュータに、第1のネットワークに接続される第1のイーサネットポートと、第1のネットワークに接続されている第1の端末のデフォルトIPアドレスとを用いて、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを対応付けて含むとともに、第1のイーサネットポートと第2のネットワークに接続されている第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスとを用いて、第2の端末のデフォルトIPアドレスを対応付けて含む仮想ターミナルテーブルを予め記憶する処理と、固定IPアドレスを有するCGI又はGUIによるユーザが仮想ターミナルテーブル検索するためのインターフェースを用いて、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答する処理と、第1のネットワークに接続される第1のイーサネットポートからイーサネットフレームを受信する場合に、受信したイーサネットフレームのプロトコルタイプを識別する処理と、プロトコルタイプをIPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと、送信先IPアドレス及び送信元IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信先IPアドレスと送信元IPアドレスとを変換する処理と、プロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと、ARPパケットのデータフィールドに含まれている送信先IPアドレス及び送信元IPアドレスを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信先IPアドレスと送信元IPアドレスとを変換する処理と、受信したイーサネットフレームを、イーサネットフレームを受信した入力ポート以外のポートに転送する処理とを実行させるためのものである。 In another aspect of the communication program according to the present invention, when the first network having the same IP address system to which a plurality of terminals are connected and the second network are connected, the communication program is connected to the first network. A communication program for relaying communication between a terminal connected to a second network and a terminal connected to the second network, the computer having a first Ethernet port connected to the first network, and a first network The IP address that can be acquired when the first terminal acquires an IP address on the second network side using the default IP address of the connected first terminal is associated and included. The second terminal connected to the first Ethernet port and the second network is assumed to have an IP address on the first network side. A process of storing in advance a virtual terminal table including the default IP address of the second terminal in association with the IP address that can be acquired when it is acquired, and a user using a CGI or GUI having a fixed IP address is virtual In response to an inquiry about the destination IP address from the source terminal using the interface for searching the terminal table, processing for searching the virtual terminal table and responding to the source terminal, and connection to the first network When receiving an Ethernet frame from the first Ethernet port, processing for identifying the protocol type of the received Ethernet frame, and when the protocol type is determined to be an IP type, the input port of the received Ethernet frame and the destination IP Address and source IP address And processing of converting the destination IP address and the source IP address based on the result of searching the virtual terminal table using the less information, and when the protocol type is determined to be the ARP type, the received Ethernet frame Based on the search result of the virtual terminal table using the input port and the destination IP address and source IP address included in the data field of the ARP packet, the destination IP address and the source IP address are converted. And a process of transferring the received Ethernet frame to a port other than the input port that received the Ethernet frame.
本発明による通信プログラムのさらに他の態様は、複数の端末が接続されている同一のIPアドレス体系を有する第1のネットワークと第2のネットワークとを接続する際に、第1のネットワークに接続されている端末と第2のネットワークに接続されている端末との通信を中継するための通信プログラムであって、コンピュータに、第1のネットワークに接続される第1のイーサネットポートと、第2のネットワークに接続されている第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスとを用いて、第2のネットワークを接続するイーサネットポート及び第2の端末のデフォルトIPアドレスを対応付けて含むIPDA変換テーブルを予め記憶する処理と、第1のイーサネットポートと、第1のネットワークに接続されている第1の端末のデフォルトIPアドレスと、第2のネットワークを接続するイーサネットポートとを用いて、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを対応付けて含むIPSA変換テーブルを予め記憶する処理と、固定IPアドレスを用いるCGI又はGUIによる仮想ターミナルテーブル検索用のインターフェースを用いて、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答する処理と、第1のネットワークに接続される第1のイーサネットポートからイーサネットフレームを受信する場合に、受信したイーサネットフレームのプロトコルタイプを識別する処理と、プロトコルタイプをIPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと送信先IPアドレス及び送信元IPアドレス情報を用い、IPDA変換テーブルとIPSA変換テーブルを検索した結果に基づいて、イーサネットフレームのIPパケットの送信先IPアドレスと送信元IPアドレスとを変換する処理と、プロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームの入力ポートとARPパケットのデータフィールドに含まれている送信先IPアドレス及び送信元IPアドレスとを用いて、IPDA変換テーブルとIPSA変換テーブルとを検索した結果に基づいて、ARPパケットのデータフィールドに含まれている送信先IPアドレスと送信元IPアドレスとを変換する処理と、受信したイーサネットフレームを、イーサネットフレームを受信した入力ポート以外のポートに転送する処理とを実行させるためのものである。 Still another aspect of the communication program according to the present invention is connected to the first network when connecting the first network having the same IP address system to which a plurality of terminals are connected and the second network. A communication program for relaying communication between a terminal connected to a second network and a terminal connected to the second network, wherein the computer has a first Ethernet port connected to the first network, and a second network If the second terminal connected to the network acquires the IP address on the first network side, the IP address that can be acquired and the Ethernet port for connecting the second network and the second terminal A process for storing an IPDA conversion table including a default IP address in association with each other; a first Ethernet port; When the first terminal obtains an IP address on the second network side using the default IP address of the first terminal connected to the first network and the Ethernet port connecting the second network In this case, the destination from the transmission source terminal using the processing for storing the IPSA conversion table including the IP address that can be acquired in advance and the interface for searching the virtual terminal table by CGI or GUI using the fixed IP address In response to an IP address inquiry, a process of searching the virtual terminal table and responding to the source terminal, and an Ethernet frame received when receiving an Ethernet frame from the first Ethernet port connected to the first network Process to identify the protocol type of the When it is determined that the col type is an IP type, the IP address of the Ethernet frame is determined based on the result of searching the IPDA conversion table and the IPSA conversion table using the input port of the received Ethernet frame, the destination IP address, and the source IP address information. Processing for converting the transmission destination IP address and the transmission source IP address of the packet, and when the protocol type is determined to be the ARP type, the input port of the received Ethernet frame and the transmission destination IP included in the data field of the ARP packet Based on the result of searching the IPDA conversion table and the IPSA conversion table using the address and the source IP address, the destination IP address and the source IP address included in the data field of the ARP packet are converted. Processing and received And a process of transferring the Ethernet frame to a port other than the input port that received the Ethernet frame.
本発明による第1の通信装置は、同一のIPアドレス体系を有する第1のネットワークと第2のネットワークとを接続する際に、第1のネットワークに接続される第1のイーサネットポートから受信するイーサネットフレームのプロトコルタイプを識別するフレーム識別部と、プロトコルタイプをIPタイプと判断した場合に、イーサネットフレームのIPパケットの送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するIPDA変換部と、IPパケットの送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するIPSA変換部と、プロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームのARPパケットのデータフィールドに含まれている送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するARPDA変換部と、ARPパケットのデータフィールドに含まれている送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するARPSA変換部と、受信したイーサネットフレームを、イーサネットフレームを受信した入力ポート以外のポートに転送するフレーム制御部とを備える。 The first communication device according to the present invention receives an Ethernet received from a first Ethernet port connected to the first network when connecting the first network and the second network having the same IP address system. Frame identification unit that identifies the protocol type of the frame, and if the protocol type is determined to be IP type, the destination IP address of the IP packet of the Ethernet frame is temporarily acquired by the destination terminal on the second network side In this case, the IPDA conversion unit that converts the IP address to an IP address that can be acquired, and the IP address that can be acquired when the source terminal temporarily acquires the IP address on the second network side. IPSA converter that converts to ARP type and protocol type as ARP type In this case, the transmission destination IP address included in the data field of the ARP packet of the received Ethernet frame is changed to an IP address that can be acquired when the transmission destination terminal temporarily acquires an IP address on the second network side. The ARPDA conversion unit to be converted and the source IP address included in the data field of the ARP packet are converted to an IP address that can be acquired when the source terminal temporarily acquires an IP address on the second network side. An ARPSA converter and a frame controller that transfers the received Ethernet frame to a port other than the input port that received the Ethernet frame.
上記のような構成を採用することによって、同一のIPアドレス体系を用いるネットワークの間に設けた通信装置を用いて、端末の内部設定変更を必要とせずに、レイヤ2及びレイヤ3レベルにおける通信を可能とすることができ、本発明の第1の目的を達成することができる。
By adopting the configuration as described above, communication at the
本発明の第2の通信装置は、複数の端末が接続されている同一のIPアドレス体系を有する第1のネットワークと第2のネットワークとを接続する際に、第1のネットワークに接続される第1のイーサネットポートと、第1のネットワークに接続されている第1の端末のデフォルトIPアドレスとを用いて、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを対応付けて含むとともに、第1のイーサネットポートと第2のネットワークに接続されている第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを用いて、第2の端末のデフォルトIPアドレスを対応付けて含む仮想ターミナルテーブルと、受信フレームの入力ポートと受信フレームに含まれている送信先IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信先IPアドレス情報を変換するIPDA変換部及びARPDA変換部と、受信フレームの入力ポートと受信フレームに含まれている送信元IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信元IPアドレス情報を変換するIPSA変換部及びARPSA変換部と、受信したイーサネットフレームを、イーサネットフレームを受信した入力ポート以外のポートに転送するフレーム制御部とを備える。 The second communication device of the present invention is connected to the first network when connecting the first network having the same IP address system to which a plurality of terminals are connected and the second network. Available when the first terminal obtains an IP address on the second network side using the Ethernet port of 1 and the default IP address of the first terminal connected to the first network. IP addresses that can be acquired when the second terminal connected to the first Ethernet port and the second network acquires an IP address on the first network side, in association with the corresponding IP address. The virtual terminal table including the default IP address of the second terminal in association with each other, the input port of the received frame, and the reception An IPDA conversion unit and an ARPDA conversion unit for converting the destination IP address information based on the search result of the virtual terminal table using the destination IP address information included in the frame; an input port of the received frame; Based on the search result of the virtual terminal table using the source IP address information included in the received frame, an IPSA converter and an ARPSA converter for converting the source IP address information, and the received Ethernet frame A frame control unit that transfers the Ethernet frame to a port other than the input port that received the Ethernet frame.
上記のような構成を採用することによって、同一のIPアドレス体系を用いるネットワークの間に設けた通信装置を用いて、1つのイーサネットポートに複数の端末が接続される場合でも端末間の通信を可能とすることができ、本発明の第2の目的を達成することができる。 By adopting the above configuration, communication between terminals is possible even when multiple terminals are connected to one Ethernet port using a communication device provided between networks using the same IP address system. And the second object of the present invention can be achieved.
本発明の第3の通信装置は、同一のIPアドレス体系を有する第1のネットワークと第2のネットワークとを接続する際に、固定IPアドレスを用いるCGI又はGUIによる仮想ターミナルテーブル検索用のインターフェースを有し、仮想ターミナルテーブルを設定し、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答する設定部と、第1のネットワークに接続される第1のイーサネットポートから受信するイーサネットフレームのプロトコルタイプを識別するフレーム識別部と、プロトコルタイプをIPタイプと判断した場合に、IPパケットの送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するIPDA変換部と、IPパケットの送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するIPSA変換部と、プロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームのARPパケットのデータフィールドに含まれている送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するARPDA変換部と、ARPパケットのデータフィールドに含まれている送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するARPSA変換部と、受信したイーサネットフレームを、イーサネットフレームを受信した入力ポート以外のポートに転送するフレーム制御部とを備える。 The third communication device of the present invention provides an interface for searching a virtual terminal table by CGI or GUI using a fixed IP address when connecting a first network and a second network having the same IP address system. A virtual terminal table, and a setting unit that searches the virtual terminal table and responds to the source terminal in response to an inquiry about the destination IP address from the source terminal, and is connected to the first network A frame identification unit for identifying a protocol type of an Ethernet frame received from the first Ethernet port, and a destination IP address of the IP packet when the protocol type is determined to be an IP type, the destination terminal is on the second network side IP address that can be acquired if IP address is acquired in An IPDA converter that converts the IP packet source IP address to an IP address that can be acquired when the source terminal temporarily acquires an IP address on the second network side, When it is determined that the protocol type is the ARP type, and the destination IP address included in the data field of the ARP packet of the received Ethernet frame is temporarily acquired by the destination terminal on the second network side The ARPDA conversion unit that converts the IP address to an IP address that can be acquired by the client and the source IP address included in the data field of the ARP packet when the source terminal temporarily acquires the IP address on the second network side An ARPSA conversion unit that converts the IP address to a possible IP address and the received Ethernet The Ttofuremu, and a frame controller for transferring a port other than input port receiving an Ethernet frame.
上記のような構成を採用することによって、同一のIPアドレス体系を用いるネットワークの間に設けた通信装置を用いて、送信元端末が送信先IPアドレスを取得するためのインターフェースを提供とともに、送信元端末が送信先IPアドレスを自分で指定することを可能とし、本発明の第3の目的を達成することができる。 By adopting the configuration as described above, a communication device provided between networks using the same IP address system is used to provide an interface for a transmission source terminal to acquire a transmission destination IP address. The terminal can specify the transmission destination IP address by itself, and the third object of the present invention can be achieved.
本発明によれば、同一のIPアドレス体系を有するネットワークに接続される端末間の通信において、第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスを特定し、第1の端末に送信する。また、第1の端末からデータを受信すると、受信データに含まれる送信元としての第1の端末のIPアドレスを、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスに変換し、受信データに含まれる送信先としての第2の端末の仮想IPアドレスを、第2の端末が第2のネットワークで用いる現実のIPアドレスに変換する。従って、同一のIPアドレス体系を用いるネットワーク間に設けられた通信装置において、端末の内部設定変更を必要とせずに、レイヤ2及びレイヤ3レベルにおける通信を可能とすることができる。
According to the present invention, in communication between terminals connected to a network having the same IP address system, a virtual IP address that can be acquired when the second terminal temporarily acquires an IP address on the first network side. Is transmitted to the first terminal. In addition, when data is received from the first terminal, when the first terminal acquires the IP address of the first terminal as the transmission source included in the received data on the second network side. The virtual IP address is converted into an obtainable virtual IP address, and the virtual IP address of the second terminal as the transmission destination included in the received data is converted into an actual IP address used by the second terminal in the second network. Therefore, in communication apparatuses provided between networks using the same IP address system, communication at the
本発明によれば、同一のIPアドレス体系を用いるネットワークの間に通信装置を設ける。通信装置は、第1のネットワークから、自ノード宛のイーサネットフレームのみを受信するのではなく、第2のネットワークに送信される全てのイーサネットフレームを受信する。また、フレーム識別部は、受信したイーサネットフレームのタイプを識別する。 According to the present invention, a communication device is provided between networks using the same IP address system. The communication device receives not only the Ethernet frame addressed to the own node from the first network but all the Ethernet frames transmitted to the second network. The frame identification unit identifies the type of the received Ethernet frame.
プロトコルタイプがIPである場合、IPDA変換部は、送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。また、IPSA変換部は、送信元IPアドレスを送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。 When the protocol type is IP, the IPDA conversion unit converts the transmission destination IP address into an IP address that can be acquired when the transmission destination terminal temporarily acquires the IP address on the second network side. The IPSA conversion unit converts the source IP address into an IP address that can be acquired when the source terminal temporarily acquires an IP address on the second network side.
プロトコルタイプがARPである場合、ARPDA変換部は、ARPデータに含まれている送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。また、ARPSA変換部は、送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。 When the protocol type is ARP, the ARPDA conversion unit obtains the transmission destination IP address included in the ARP data when the transmission destination terminal temporarily obtains the IP address on the second network side. Convert to Further, the ARPSA conversion unit converts the transmission source IP address into an IP address that can be acquired when the transmission source terminal temporarily acquires the IP address on the second network side.
そして、フレーム制御部は、変換後の各イーサネットフレームを入力ポート以外のポートに転送する。 Then, the frame control unit transfers each converted Ethernet frame to a port other than the input port.
従って、同一のIPアドレス体系を用いるネットワークの間に設けた通信装置を用いて、端末の内部設定変更を必要とせずに、レイヤ2及びレイヤ3レベルにおける通信を行うことができる。
Therefore, communication at the
また、本発明によれば、複数の端末が接続される同一のIPアドレス体系を用いるネットワークの間に通信装置を設ける。通信装置は、イーサネットポートに設定されたIPアドレスに基づいて、受信フレーム自身のIPアドレスを変換するのではなく、各端末が通信を行う場合の仮想的なIPアドレスを管理する。そのため、仮想ターミナルテーブルを用いる。この仮想ターミナルテーブルは、イーサネットポートと第1のネットワークに接続されている端末のデフォルトIPアドレスとを用いて、端末が第2のネットワークにおいて取得可能なIPアドレスを対応付けて含むとともに、さらにイーサネットポートと第2のネットワークに接続されている第2の端末とが第1のネットワークにおいて取得可能なIPアドレスを用いて、第2の端末のデフォルトIPアドレスを対応付けて含むテーブルある。 According to the present invention, a communication device is provided between networks using the same IP address system to which a plurality of terminals are connected. The communication device does not convert the IP address of the received frame itself based on the IP address set in the Ethernet port, but manages a virtual IP address when each terminal performs communication. Therefore, a virtual terminal table is used. The virtual terminal table includes an Ethernet port and a default IP address of a terminal connected to the first network in association with an IP address that the terminal can acquire in the second network, and further includes an Ethernet port And a second terminal connected to the second network, using an IP address that can be acquired in the first network, and a table including the default IP address of the second terminal in association with each other.
IPDA変換部とARPDA変換部は、受信フレームの入力ポートと受信フレームに含まれている送信先IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信先IPアドレス情報を変換する。また、IPSA変換部とARPSA変換部は、受信フレームの入力ポートと受信フレームに含まれている送信元IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信元IPアドレス情報を変換する。 The IPDA conversion unit and the ARPDA conversion unit convert the destination IP address information based on the search result of the virtual terminal table using the input port of the received frame and the destination IP address information included in the received frame. To do. Further, the IPSA conversion unit and the ARPSA conversion unit use the input port of the received frame and the source IP address information included in the received frame, based on the result of searching the virtual terminal table, for the source IP address information Convert.
従って、同一IPのアドレス体系を用いるネットワークの間に設けられる通信装置を用いて、1つのイーサネットポートに複数の端末が接続される場合でも端末間の通信を行うことができる。 Therefore, communication between terminals can be performed even when a plurality of terminals are connected to one Ethernet port by using a communication device provided between networks using the same IP address system.
また、本発明によれば、同一のIPアドレス体系を用いるネットワークの間に通信装置を設ける。通信装置の設定部は、固定IPアドレスを用いるCGIやGUI等のインターフェースを有する。また、設定部は、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答する手段を有する。 Further, according to the present invention, a communication device is provided between networks using the same IP address system. The setting unit of the communication apparatus has an interface such as CGI or GUI using a fixed IP address. Further, the setting unit has means for searching the virtual terminal table and responding to the source terminal in response to the inquiry about the destination IP address from the source terminal.
従って、同一のIPアドレス体系を用いるネットワークの間に設けられる通信装置を用いて、送信元端末が送信先IPアドレスを取得するためのインターフェースを提供するとともに、送信元端末が送信先IPアドレスを自分で指定できるようにすることができる。 Therefore, using a communication device provided between networks using the same IP address system, the transmission source terminal provides an interface for acquiring the transmission destination IP address, and the transmission source terminal assigns the transmission destination IP address to itself. Can be specified.
実施の形態1.
以下、本発明の第1の実施の形態について図面を参照して説明する。図1は、本発明による通信装置を用いたネットワークシステムの構成の一例を示すブロック図である。図1に示すように、ネットワークシステムは、ネットワーク1と、ネットワーク2と、仮想ターミナル装置3とを含む。なお、本実施の形態では、通信装置は、具体的には、仮想ターミナル装置3によって実現される。
Embodiment 1 FIG.
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an example of the configuration of a network system using a communication apparatus according to the present invention. As shown in FIG. 1, the network system includes a network 1, a
本実施の形態では、ネットワーク1,2は、同一のIPアドレス体系をもつネットワークである。例えば、ネットワーク1のIPアドレス体系と、ネットワーク2のIPアドレス体系とは、ともに「192.168.0.1/24」であるとする。
In the present embodiment, the
ネットワーク1は、端末11,12を含む。また、端末11及び端末12のIPアドレスは、それぞれ「192.168.0.1 」と「192.168.0.2 」であるとする。なお、図1では、ネットワーク1が2つの端末11,12を含む場合を示しているが、端末の数は2つに限られず、例えば、ネットワーク1は、3以上の端末を含んでもよい。また、端末11,12は、具体的には、パーソナルコンピュータ等の情報処理端末によって実現される。
The network 1 includes
また、ネットワーク2は、端末21,22を含む。また、端末21及び端末22のIPアドレスは、それぞれ「192.168.0.1 」と「192.168.0.2 」であるとする。なお、図1では、ネットワーク2が2つの端末21,22を含む場合を示しているが、端末の数は2つに限られず、例えば、ネットワーク2は、3以上の端末を含んでもよい。また、端末21,22は、具体的には、パーソナルコンピュータ等の情報処理端末によって実現される。
The
仮想ターミナル装置3は、仮想ターミナル装置3は、同一のIPアドレス体系をもつ複数ネットワークに接続される各端末を、恰もそれぞれ異なるアドレスをもつかのように仮想的なアドレス変換を実施することにより、端末間のレイヤ2及びレイヤ3レベルにおける通信を可能にする装置である。仮想ターミナル装置3は、例えば、ルータ等のネットワーク装置によって実現される。また、仮想ターミナル装置3は、例えば、プログラムに従って動作するパーソナルコンピュータ等の情報処理装置によって実現されてもよい。
The virtual
この実施の形態では、ネットワーク1とネットワーク2とは同一のIPアドレス体系をもつので、例えば、ネットワーク1に接続されている端末11とネットワーク2に接続されている端末21とは、ともに同じIPアドレス「192.168.0.1 」をもつ。同様に、例えば、ネットワーク1に接続されている端末12とネットワーク2に接続されている端末22とは、ともに同じIPアドレス「192.168.0.2 」をもつ。そのため、そのままでは、IPアドレスが重複しているため、ネットワーク1に接続されている端末11,12と、ネットワーク2に接続されている端末21,22との間で通信を行うことができない。
In this embodiment, since the network 1 and the
本実施の形態では、仮想ターミナル装置3は、例えば、ネットワーク1に接続されている端末11,12からネットワーク2に接続されている端末21,22を見た場合には、恰もネットワーク1内では使用されていないIPアドレス(例えば、「192.168.0.3 」や「192.168.0.4 」)を端末21,22がもっているかのように、仮想的なアドレス変換を行う。そのようにすることによって、本実施の形態では、同一のIPアドレス体系をもつネットワーク1,2間での通信を可能としている。
In the present embodiment, the virtual
図2は、仮想ターミナル装置3の構成の一例を示すブロック図である。図2に示すように、仮想ターミナル装置3は、イーサネットポート301,302、設定部311、フレーム識別部312、IPDA変換部313、IPSA変換部314、ARPDA変換部315、ARPSA変換部316、フレーム制御部317及び仮想ターミナルテーブル318を含む。
FIG. 2 is a block diagram illustrating an example of the configuration of the virtual
イーサネットポート301は、ネットワーク1と接続するインターフェース部である。仮想ターミナル装置3において、イーサネットポート301から受信するフレームは、フレーム識別部312に転送される。また、フレーム制御部317からイーサネットポート301に送信(出力)されるフレームは、イーサネットポート301を経由してネットワーク1に転送される。すなわち、仮想ターミナル装置3は、イーサネットポート301を用いて、ネットワーク1に接続されている端末11,12にフレーム(データ)を送信する。
The
イーサネットポート302は、ネットワーク2と接続するインターフェース部である。仮想ターミナル装置3において、イーサネットポート302から受信するフレームは、フレーム識別部312に転送される。また、フレーム制御部317からイーサネットポート302に送信(出力)されるフレームは、イーサネットポート302を経由してネットワーク2に転送される。すなわち、仮想ターミナル装置3は、イーサネットポート302を用いて、ネットワーク2に接続されている端末21,22にフレーム(データ)を送信する。
The
設定部311は、CGIやGUI等のインターフェースを有している。例えば、設定部311は、CGIやGUIを用いた設定画面をモニタ等の表示部に表示する。また、ユーザは、そのCGI又はGUIによる設定画面を見ながら、仮想ターミナル装置3の設定操作を行う。そして、設定部311は、ユーザの設定操作に従って、仮想ターミナルテーブル318を設定するようにしてもよい。
The
また、設定部311は、IPアドレス(例えば、192.168.0.254 )を有する。この場合、ユーザ端末(端末11,12,21,22)は、その設定部311のIPアドレスを指定して、CGIやGUI等のインターフェース(例えば、仮想ターミナルテーブル318の情報を表示可能な表示画面)にアクセスして、送信先端末のIPアドレスを取得することができる。
The
すなわち、設定部311は、ネットワーク1に接続される端末11,12(又はネットワーク2に接続される端末21,22)が第ネットワーク2に接続される端末21,22(又はネットワーク1に接続される端末11,12)と通信する場合に、端末21,22(又は端末11,12)がネットワーク1(又はネットワーク2)側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスを特定する機能を備える。また、設定部311は、特定した仮想IPアドレスを、端末11,12(又は端末21,22)に送信する機能を備える。例えば、設定部311は、端末11,12,21,22からの要求に応じて、仮想ターミナルテーブル318から、送信先端末のIPアドレスを抽出し、要求元の端末11,12,21,22に送信する機能を備える。
That is, the
また、設定部311は、ユーザ端末にIPパケットを送信する場合、ユーザ端末から受信するフレームの入力ポートを他のポート(入力ポート以外のポート)に変換し、送信フレームとともにフレーム制御部317に送信(出力)する機能を備える。
When transmitting an IP packet to the user terminal, the
フレーム識別部312は、イーサネットポート301,302から受信するフレームの解析を行う機能を備える。この場合、まず、フレーム識別部312は、受信したフレームにIPヘッダが含まれるか否かを判断する。IPヘッダが含まれる場合、フレーム識別部312は、受信したフレームに含まれるIPDAが設定部311がもつIPアドレスと同じであれば、受信したフレームを設定部311に転送する。また、設定部311がもつIPアドレス以外のIPアドレスである場合、フレーム識別部312は、受信フレームの入力ポート情報とともに、受信フレームをIPDA変換部313に送信(出力)する。
The
IPヘッダが含まれない場合、フレーム識別部312は、受信フレームのタイプ情報を検出し、タイプ情報でARP(Address Resolution Protocol)が示される場合、受信フレームの入力ポート情報とともに、受信フレームをARPDA制御部315に送信する。ARPを示すタイプ情報をもつフレーム以外のフレームである場合、フレーム識別部312は、受信フレームの入力ポート情報とともに、受信フレームをフレーム制御部317に送信(出力)する。
When the IP header is not included, the
IPDA変換部313は、フレーム識別部312から受信(入力)するフレームのIPヘッダに基づいて、IPDA情報を取得(抽出)する機能を備える。また、IPDA変換部313は、取得したIPDA情報と、受信フレームの入力ポート情報とに基づいて、仮想ターミナルテーブル318を検索する機能を備える。また、IPDA変換部313は、仮想ターミナルテーブル318の検索結果を用いて、受信フレームのIPDA情報を変換する機能を備える。また、IPDA変換部313は、その変換後、受信フレームの入力ポート情報とともに、受信フレームをIPSA変換部314に転送する機能を備える。すなわち、IPDA変換部313、端末11,12(又は端末21,22)からデータを受信すると、受信データに含まれる送信先としての端末21,22(又は端末11,12)の仮想IPアドレスを、端末21,22(又は端末11,12)がネットワーク2(又はネットワーク1)で用いる現実のIPアドレスに変換する機能を備える。
The
IPSA変換部314は、IPDA変換部313から受信(入力)するフレームのIPヘッダに基づいて、IPSA情報を取得(抽出)する機能を備える。また、IPSA変換部314は、取得したIPSA情報と、受信フレームの入力ポート情報とに基づいて、仮想ターミナルテーブル318を検索する機能を備える。また、IPSA変換部314は、仮想ターミナルテーブル318の検索結果を用いて、受信フレームのIPSA情報を変換する機能を備える。また、IPSA変換部314は、その変換後、受信フレームの入力ポート情報とともに、受信フレームをフレーム制御部317に転送する機能を備える。すなわち、IPSA変換部314は、端末11,12(又は端末21,22)からデータを受信すると、受信データに含まれる送信元としての端末11,12(又は端末21,22)のIPアドレスを、端末11,12(又は端末21,22)がネットワーク2(又はネットワーク1)側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスに変換する機能を備える。
The
ARPDA変換部315は、フレーム識別部312から受信(入力)するフレームのARPデータ部分に基づいて、ARPデータの中からIPDA情報を取得(抽出)する機能を備える。また、ARPDA変換部315は、取得したIPDA情報と、受信フレームの入力ポート情報とに基づいて、仮想ターミナルテーブル318を検索する機能を備える。また、ARPDA変換部315は、仮想ターミナルテーブル318の検索結果を用いて、受信フレームのARPデータ中のIPDA情報を変換する機能を備える。また、ARPDA変換部315は、その変換後、受信フレームの入力ポート情報とともに、受信フレームをARPSA変換部316に転送する機能を備える。すなわち、IPDA変換部313、端末11,12(又は端末21,22)からデータを受信すると、受信データに含まれる送信先としての端末21,22(又は端末11,12)の仮想IPアドレスを、端末21,22(又は端末11,12)がネットワーク2(又はネットワーク1)で用いる現実のIPアドレスに変換する機能を備える。
The ARPDA conversion unit 315 has a function of acquiring (extracting) IPDA information from the ARP data based on the ARP data portion of the frame received (input) from the
ARPSA変換部316は、ARPDA変換部315から受信(入力)するフレームのARPデータ部分に基づいて、ARPデータの中からIPSA情報を取得(抽出)する機能を備える。また、ARPSA変換部316は、取得したIPSA情報と、受信フレームの入力ポート情報とに基づいて、仮想ターミナルテーブル318を検索する機能を備える。また、ARPSA変換部316は、仮想ターミナルテーブル318の検索結果を用いて、受信フレームのARPデータ中のIPSA情報を変換する機能を備える。また、ARPSA変換部316は、その変換後、受信フレームの入力ポート情報とともに、受信フレームをフレーム制御部317に転送する機能を備える。すなわち、IPSA変換部314は、端末11,12(又は端末21,22)からデータを受信すると、受信データに含まれる送信元としての端末11,12(又は端末21,22)のIPアドレスを、端末11,12(又は端末21,22)がネットワーク2(又はネットワーク1)側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスに変換する機能を備える。
The
フレーム制御部317は、設定部311やフレーム識別部312、IPSA変換部314変換部、ARPSA変換部316等から受信(入力)するフレームを、受信フレームを受信した入力ポート以外のポートに転送する機能を備える。例えば、フレーム制御部317は、受信フレームがイーサネットポート301で受信したデータである場合には、その受信フレームをイーサネットポート302に転送する。また、例えば、フレーム制御部317は、受信フレームがイーサネットポート302で受信したデータである場合には、その受信フレームをイーサネットポート301に転送する。
The frame control unit 317 has a function of transferring a frame received (input) from the
仮想ターミナルテーブル318は、具体的には、仮想ターミナル装置3が備えるメモリやハードディスク装置等の記憶装置(図示せず)に記憶される。図3は、仮想ターミナルテーブル318の一例を示す説明図である。仮想ターミナルテーブル318は、図3に示すように、受信フレームの入力ポート、及び受信フレームの元のIPアドレス情報(変換前のIPアドレス)と、新しいIPアドレス情報(変換後のIPアドレス)とを対応付けて含む。
Specifically, the virtual terminal table 318 is stored in a storage device (not shown) such as a memory or a hard disk device provided in the virtual
すなわち、仮想ターミナルテーブル318は、端末11,12がネットワーク1で用いる現実のIPアドレスと、端末11,12がネットワーク2側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスとを対応付けて含むとともに、端末21,22がネットワーク2で用いる現実のIPアドレスと、端末21,22がネットワーク1側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスとを対応付けて含む。そして、IPSA変換部314やARPSA変換部316は、仮想ターミナルテーブル318に基づいて、受信データに含まれる送信元としての端末11,12(又は端末21,22)のIPアドレスを仮想IPアドレスに変換する。また、IPDA変換部313やARPDA変換部315は、仮想ターミナルテーブル318に基づいて、受信データに含まれる送信先としての端末21,22(又は端末11,12)の仮想IPアドレスを、端末21,22(又は端末11,12)の現実のIPアドレスに変換する。
That is, the virtual terminal table 318 corresponds to the actual IP address used by the
本実施の形態では、仮想ターミナルテーブル318は、IPDA変換部313やIPSA変換部314、ARPDA変換部315、ARPSA変換部316が、受信フレームのIPヘッダ又はARPデータのIP情報を変換する処理を行う際に用いられる。なお、仮想ターミナルテーブル318は、例えば、仮想ターミナル装置3を用いたネットワークシステムを管理する管理者によって、予め登録されたネットワーク1,2及び各端末11,12,13,14の情報に基づいて作成され、仮想ターミナル装置3の記憶装置に記憶される。また、例えば、仮想ターミナルテーブル318は、予め登録されたネットワーク1,2及び各端末11,12,13,14の情報に基づいて、仮想ターミナル装置3によって生成され、仮想ターミナル装置3の記憶装置に記憶されてもよい。
In the present embodiment, in the virtual terminal table 318, the
以下、図1及び図3を参照して、IP変換テーブル(仮想ターミナルテーブル)318のテーブル構成について説明する。 Hereinafter, the table configuration of the IP translation table (virtual terminal table) 318 will be described with reference to FIGS.
図3に示すように、IP変換テーブル(仮想ターミナルテーブル)318は、キーワードフィールドとIP変換後フィールドとを含む。IP変換テーブル318のキーワードフィールドは、入力ポート情報(受信フレームを受信したポート)と、元のIP情報(受信フレームに元々含まれるIPアドレス)とを含む。 As shown in FIG. 3, the IP conversion table (virtual terminal table) 318 includes a keyword field and a field after IP conversion. The keyword field of the IP conversion table 318 includes input port information (the port that received the received frame) and original IP information (an IP address originally included in the received frame).
図3において、入力ポート(イーサネットポート)301に対する元のIPアドレスのフィールドには、イーサネットポート301側のネットワーク1に接続されている端末11,12のIPアドレスが設定されている(図3の1つ目と2つ目のレコード参照)。また、入力ポート301に対する元のIPアドレスのフィールドには、イーサネットポート302側のネットワーク2に接続されている端末21,22が、ネットワーク1側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスが設定されている(図3の3つ目と4つ目のレコード参照)。
In FIG. 3, in the field of the original IP address for the input port (Ethernet port) 301, the IP addresses of the
例えば、元のIPアドレスのフィールドには、入力ポート301に関する元のIP情報として、ネットワーク1に接続されている端末11,12のIPアドレス「192.168.0.1 」、「192.168.0.2 」が設定されている。また、元のIPアドレスのフィールドには、入力ポート301に関する元のIP情報として、ネットワーク2に接続されている端末21,22がネットワーク1で取得可能なIPアドレス「192.168.0.3 」、「192.168.0.4 」が設定されている。
For example, in the original IP address field, the IP addresses “192.168.0.1” and “192.168.0.2” of the
また、図3に示すように、上記した入力ポート情報及び元のIPアドレス「192.168.0.1 〜192.168.0.4 」に対応するIP変換後フィールドには、ネットワーク1に接続されている端末11,12が、ネットワーク2側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレス「192.168.0.3 」、「192.168.0.4 」が設定されている。また、ネットワーク2に接続されている端末21,22のIPアドレス「192.168.0.1 」、「192.168.0.2 」が設定されている。
Further, as shown in FIG. 3, in the post-IP conversion field corresponding to the input port information and the original IP address “192.168.0.1 to 192.168.0.4”, the
同様に、図3において、入力ポート(イーサネットポート)302に関するエントリには、イーサネットポート302側のネットワーク2に接続されている端末21,22のIPアドレスが設定されている(図3の5つ目と6つ目のレコード参照)。また、入力ポート302に関するエントリには、イーサネットポート301側のネットワーク1に接続されている端末11,12が、ネットワーク2側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスが設定されている(図3の7つ目と8つ目のレコード参照)。
Similarly, in FIG. 3, the IP address of the
例えば、入力ポート302に関する元のIP情報のフィールドには、ネットワーク2に接続されている端末21,22のIPアドレス「192.168.0.1 」、「192.168.0.2 」が設定されている。また、入力ポート302に関する元のIP情報のフィールドには、ネットワーク1に接続されている端末11,12がネットワーク2で取得可能なIPアドレス「192.168.0.3 」、「192.168.0.4 」が設定されている。
For example, the IP addresses “192.168.0.1” and “192.168.0.2” of the
また、図3に示すように、上記したIPアドレス「192.168.0.1〜192.168.0.4」に対応するIP変換後フィールドには、端末ネットワーク2に接続されている端末21,22が、ネットワーク1側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレス「192.168.0.3 」、「192.168.0.4 」が設定されている。また、ネットワーク1に接続されている端末11,12のIPアドレス「192.168.0.1 」、「192.168.0.2 」が設定されている。
Further, as shown in FIG. 3, in the post-IP conversion field corresponding to the IP addresses “192.168.0.1 to 192.168.0.4”, the
なお、本実施の形態において、仮想ターミナル装置3をパーソナルコンピュータ等の情報処理装置によって実現する場合、仮想ターミナル装置3の記憶装置は、同一のIPアドレス体系を有するネットワークに接続される端末間の通信を中継するための各種プログラムを記憶する。例えば、仮想ターミナル装置3の記憶装置は、コンピュータに、第1のネットワークに接続される第1の端末が第2のネットワークに接続される第2の端末と通信する場合に、第2の端末が第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスを特定する処理と、特定した仮想IPアドレスを、第1の端末に送信する処理と、第1の端末からデータを受信すると、受信データに含まれる送信元としての第1の端末のIPアドレスを、第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスに変換する処理と、第1の端末からデータを受信すると、受信データに含まれる送信先としての第2の端末の仮想IPアドレスを、第2の端末が第2のネットワークで用いる現実のIPアドレスに変換する処理とを実行させるための通信プログラムを記憶する。
In this embodiment, when the virtual
次に、動作について説明する。図4は、仮想ターミナル装置3が端末11,21間のアドレス変換を行って通信を中継する処理の一例を示すシーケンス図である。また、図5は、端末11,21間で送受信されるフレームフォーマットの例を示す説明図である。以下、図4に示すシーケンス図と図5に示すフレームフォーマットとを用いて、仮想ターミナル装置3を用いたネットワークシステムのシステム動作を説明する。なお、本実施の形態では、一例として、ネットワーク1に接続される端末11と、ネットワーク2に接続される端末21との間で通信を行う場合を説明するが、端末12や端末22との通信を行う場合も同様である。
Next, the operation will be described. FIG. 4 is a sequence diagram illustrating an example of a process in which the virtual
端末11は、WEBアクセス等を行うために端末21にアクセスする場合には、ユーザの操作に従って、仮想ターミナル装置3にアクセスする。そして、端末11は、ネットワーク2に接続されている端末21のネットワーク1におけるIPアドレス(端末21がネットワーク1で仮に取得するとした場合に取得可能なIPアドレス)を問い合わせる(ステップS101)。例えば、端末11は、端末21のネットワーク1におけるIPアドレスを要求するためのアドレス要求パケットを仮想ターミナル装置3に送信する。
When the terminal 11 accesses the terminal 21 to perform WEB access or the like, the terminal 11 accesses the virtual
すると、仮想ターミナル装置3の設定部311は、仮想ターミナルテーブル318を参照する。この場合、設定部311は、まず、ネットワーク2に接続されている端末21のIPアドレス(ポート2側でのアドレス「192.168.0.1 」)に対応するネットワーク1におけるIPアドレス(IP変換後のアドレス「192.168.0.3 」)を検索し抽出する。そして、設定部311は、仮想ターミナルテーブル318の検索結果として、抽出したIPアドレス(IP変換後のアドレス「192.168.0.3 」)を、端末11に応答(送信)する(ステップS102)。
Then, the
次に、端末11は、端末21のネットワーク1におけるIPアドレス「192.168.0.3 」を用いて、IPアドレス「192.168.0.3 」に対応する端末21の物理アドレス(MACアドレス)を問い合わせるためのARP要求パケットを生成する。そして、端末11は、生成したARP要求パケット603を仮想ターミナル装置3に送信する(ステップS103)。
Next, the terminal 11 uses the IP address “192.168.0.3” in the network 1 of the terminal 21 to use the ARP request packet for inquiring the physical address (MAC address) of the terminal 21 corresponding to the IP address “192.168.0.3”. Is generated. Then, the terminal 11 transmits the generated
仮想ターミナル装置3は、ARP要求パケットを受信すると、仮想ターミナルテーブル318(図3参照)を検索する。そして、仮想ターミナル装置3は、受信したARP要求パケットを、所定の変換処理を施し、変換後ARP要求パケット604に変更して端末21に転送する(ステップS104)。具体的には、仮想ターミナル装置3は、ARP要求パケットのARPデータ中のIPDAを「192.168.0.3 」から「192.168.0.1 」に変換するとともに、IPSAを「192.168.0.1 」から「192.168.0.3 」に変換することによって、変換後ARP要求パケット604に変換して転送する。
When receiving the ARP request packet, the virtual
次に、端末21は、自分宛の変換後ARP要求パケットを受信すると、変換後ARP要求パケットに応答するためのARP応答パケット605を生成する。そして、端末21は、受信した変換後ARP要求パケットに含まれるIPアドレスに基づいて、IPアドレスが「192.168.0.3 」である送信先端末(すなわち、端末11)に送信する(ステップS105)。
Next, when the terminal 21 receives the post-conversion ARP request packet addressed to itself, the terminal 21 generates an
仮想ターミナル装置3は、ARP応答パケット605を受信すると、仮想ターミナルテーブル318を参照する。そして、仮想ターミナル装置3は、受信したARP応答パケット606を、所定の変換処理を施し、変換後ARP応答パケットに変更して端末11に転送する(ステップS106)。具体的には、仮想ターミナル装置3は、ARP応答パケットのARPデータ中のIPDAを「192.168.0.3 」から「192.168.0.1 」に変換するとともに、IPSAを「192.168.0.1 」から「192.168.0.3 」に変換することによって、変換後ARP応答パケットに変換して転送する。
When receiving the
次に、端末11は、自分宛の変換後ARP応答パケットを受信すると、変換後ARP応答パケットに含まれるIPアドレス「192.168.0.3 」に対応するMACアドレス「B」を記憶する。例えば、端末11は、予めメモリやハードディスク装置等の記憶装置(図示せず)にARPテーブルを記憶しており、受信した変換後ARP応答パケットに基づいて、MACアドレス「B」をARPテーブルに保存する。 Next, when receiving the converted ARP response packet addressed to itself, the terminal 11 stores the MAC address “B” corresponding to the IP address “192.168.0.3” included in the converted ARP response packet. For example, the terminal 11 stores an ARP table in a storage device (not shown) such as a memory or a hard disk device in advance, and stores the MAC address “B” in the ARP table based on the received converted ARP response packet. To do.
以上の処理が実行されることによって、送信側の端末11に受信側の端末21のMACアドレスが保存され、端末11から端末21にIPパケットを送信可能な状態となる。
By executing the above processing, the MAC address of the receiving
次に、実際に端末11から端末21にIPパケットを送信する場合の動作について説明する。端末11は、端末21にパケットを送信する際に、送信先MACアドレス(以下、MACDAという)を「B」とし、送信元MACアドレス(以下、MACSAという)を「A」とし、IPDAを「192.168.0.3 」とし、IPSAを「192.168.0.1 」とするIPパケット607を生成する。そして、端末11は、生成したIPパケットを仮想ターミナル装置3に送信する(ステップS107)。
Next, an operation when an IP packet is actually transmitted from the terminal 11 to the terminal 21 will be described. When the terminal 11 transmits a packet to the terminal 21, the destination MAC address (hereinafter referred to as MACDA) is set to “B”, the source MAC address (hereinafter referred to as MACSA) is set to “A”, and the IPDA is set to “192.168”. .0.3 "and an
仮想ターミナル装置3は、IPパケットを受信すると、仮想ターミナルテーブル318を参照する。そして、仮想ターミナル装置3は、受信したIPパケットを、所定の変換処理を施し、変換後IPパケット608に変更して端末21に転送する(ステップS108)。具体的には、仮想ターミナル装置3は、IPパケットのIPDAを「192.168.0.3 」から「192.168.0.1 」に変換するとともに、IPSAを「192.168.0.1 」から「192.168.0.3 」に変換することによって、変換後IPパケットに変換して転送する。
When receiving the IP packet, the virtual
逆に、端末21から端末11にIPパケットを送信する際には、端末21は、MACDAを「B」とし、MACSAを「A」とし、IPDAを「192.168.0.3 」とし、IPSAを「192.168.0.1 」とするIPパケット609を生成する。そして、端末21は、生成したIPパケットを仮想ターミナル装置3に送信する(ステップS109)。
Conversely, when transmitting an IP packet from the terminal 21 to the terminal 11, the terminal 21 sets MACDA to “B”, MACSA to “A”, IPDA to “192.168.0.3”, and IPSA to “192.168.”. An
仮想ターミナル装置3は、IPパケットを受信すると、仮想ターミナルテーブル318を参照する。そして、仮想ターミナル装置3は、受信したIPパケットを、所定の変換処理を施し、変換後IPパケット610に変更して端末11に転送する(ステップS110)。具体的には、仮想ターミナル装置3は、IPパケットのIPDAを「192.168.0.3 」から「192.168.0.1 」に変換するとともに、IPSAを「192.168.0.1 」から「192.168.0.3 」に変換することによって、変換後IPパケットに変換して転送する。
When receiving the IP packet, the virtual
以上のように、本実施の形態によれば、同一のIPアドレス体系を用いる2つのネットワークの間に通信装置(仮想ターミナル装置3)を設ける。仮想ターミナル装置3は、第1のネットワーク(例えば、ネットワーク1)から、自ノード宛のイーサネットフレームのみを受信するのではなく、第2のネットワーク(例えば、ネットワーク2)に送信される全てのイーサネットフレームを受信する。
As described above, according to the present embodiment, the communication device (virtual terminal device 3) is provided between two networks using the same IP address system. The virtual
また、プロトコルタイプがIPである場合、仮想ターミナル装置3のIPDA変換部313は、送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。また、IPSA変換部314は、送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。
Further, when the protocol type is IP, the
また、プロトコルタイプがARPである場合、ARPDA変換部315は、ARPデータに含まれている送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。また、ARPSA変換部316は、送信元IPアドレスを、送信元端末が第2のネットワークネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。
Further, when the protocol type is ARP, the ARPDA conversion unit 315 can acquire the transmission destination IP address included in the ARP data when the transmission destination terminal temporarily acquires the IP address on the second network side. To a valid IP address. The
そして、仮想ターミナル装置3は、上記に示した変換後の各イーサネットフレームを入力ポート以外のポートに転送する。
Then, the virtual
従来、NATルータを用いる場合には、NATルータは、自ノード宛のMACアドレスをMACDAとするフレームのみを転送していた。そのため、同一のIPアドレス体系を用いるネットワーク間でレイヤ2レベルにおける通信ができなかった。
Conventionally, when a NAT router is used, the NAT router transfers only a frame having a MAC address addressed to itself as MACDA. Therefore, communication at the
これに対し、本実施の形態によれば、上記の構成を備えることによって、同一のIPアドレス体系を用いる2つのネットワークの間に設けた通信装置を用いて、端末の内部設定変更を必要とせずに、レイヤ2及びレイヤ3レベルにおける通信を行うことができる。
On the other hand, according to this embodiment, by providing the above configuration, it is not necessary to change the internal setting of the terminal using a communication device provided between two networks using the same IP address system. In addition, communication at the
また、本実施の形態によれば、複数の端末が接続されている同一のIPアドレス体系を用いる2つのネットワークの間に通信装置(仮想ターミナル装置3)を設ける。仮想ターミナル装置3は、イーサネットポートに設定されたIPアドレスに基づいて、受信フレーム自身のIPアドレスを変換するのではなく、各端末が通信を行う場合の仮想的なIPアドレスを管理する。そのため、仮想ターミナル装置3は、仮想ターミナルテーブルを用いる。この仮想ターミナルテーブルは、イーサネットポートと第1のネットワークに接続されている端末のデフォルトIPアドレスとを用いて、端末が第2のネットワークにおいて取得可能なIPアドレスを対応付けて含むとともに、さらにイーサネットポートと第2のネットワークに接続されている第2の端末とが第1のネットワークにおいて取得可能なIPアドレスを用いて、第2の端末のデフォルトIPアドレスを対応付けて含むテーブルである。
Further, according to the present embodiment, the communication device (virtual terminal device 3) is provided between two networks that use the same IP address system to which a plurality of terminals are connected. The virtual
IPDA変換部313とARPDA変換部315は、受信フレームの入力ポートと受信フレームに含まれている送信先IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信先IPアドレス情報を変換する。また、IPSA変換部314とARPSA変換部316は、受信フレームの入力ポートと受信フレームに含まれている送信元IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信元IPアドレス情報を変換する。
The
従来のIP変換装置(特許文献1参照)では、1つのイーサネットポートに複数の端末が接続される場合、端末間通信ができなかった。 In a conventional IP converter (see Patent Document 1), when a plurality of terminals are connected to one Ethernet port, communication between terminals cannot be performed.
これに対し、本実施の形態によれば、上記の構成を備えることによって、複数の端末が接続されている同一のIPアドレス体系を用いるネットワークの間に設けられる通信装置を用いて、1つのイーサネットポートに複数の端末が接続される場合でも端末間の通信を行うことができる。 On the other hand, according to this embodiment, by providing the above-described configuration, one Ethernet is used by using a communication device provided between networks using the same IP address system to which a plurality of terminals are connected. Communication between terminals can be performed even when a plurality of terminals are connected to the port.
また、本実施の形態によれば、同一のIPアドレス体系を用いる2つのネットワークの間に通信装置(仮想ターミナル装置3)を設ける。仮想ターミナル装置3の設定部311は、固定IPアドレスを用いるCGIやGUI等のインターフェースを有する。また、設定部311は、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答する手段を有する。
According to the present embodiment, the communication device (virtual terminal device 3) is provided between two networks that use the same IP address system. The
従来、NATルータを用いる場合やIP変換装置を用いる場合には、送信元端末が送信先端末にIPパケットを送信する際、IPパケットの送信先IPアドレスを自分で取得することができない。 Conventionally, when a NAT router or an IP conversion device is used, when a transmission source terminal transmits an IP packet to a transmission destination terminal, the transmission destination IP address of the IP packet cannot be acquired by itself.
これに対し、本実施の形態によれば、同一のIPアドレス体系を用いるネットワークの間に設けられる通信装置を用いて、送信元端末が送信先IPアドレスを取得するためのインターフェースを提供するとともに、送信元端末が送信先IPアドレスを自分で指定できるようにすることができる。 On the other hand, according to this embodiment, using a communication device provided between networks using the same IP address system, an interface for a transmission source terminal to acquire a transmission destination IP address is provided. It is possible to allow the transmission source terminal to specify the transmission destination IP address by itself.
実施の形態2.
次に、本発明の第2の実施の形態について図面を参照して説明する。本発明の第2の実施の形態で示す通信装置は、3つ以上の同一のIPアドレス体系のネットワーク間でレイヤ2及びレイヤ3疎通を可能とすることを特徴とする。図6は、本発明の第2の実施の形態における通信装置を用いたネットワークシステムの構成例を示すブロック図である。図6に示すように、本実施の形態では、ネットワークシステムは、ネットワーク1と、ネットワーク2と、ネットワーク8と、仮想ターミナル装置3とを含む。
Next, a second embodiment of the present invention will be described with reference to the drawings. The communication apparatus shown in the second embodiment of the present invention is characterized by enabling
本実施の形態では、ネットワーク1,2,8は、同一のIPアドレス体系をもつネットワークある。例えば、各ネットワーク1,2,8のIPアドレス体系は、ともに「192.168.0.1/24」であるとする。
In the present embodiment, the
ネットワーク1は、端末11,12を含む。また、端末11のIPアドレスは「192.168.0.1 」であり、端末12のIPアドレスは「192.168.0.2 」であるとする。なお、図6では、ネットワーク1が2つの端末11,12を含む場合を示しているが、端末の数は2つに限られず、例えば、ネットワーク1は、3以上の端末を含んでもよい。また、端末11,12は、具体的には、パーソナルコンピュータ等の情報処理端末によって実現される。
The network 1 includes
ネットワーク2は、端末21,22を含む。また、端末21のIPアドレスは「192.168.0.1 」であり、端末22のIPアドレスは「192.168.0.2 」であるとする。なお、図6では、ネットワーク2が2つの端末21,22を含む場合を示しているが、端末の数は2つに限られず、例えば、ネットワーク2は、3以上の端末を含んでもよい。また、端末21,22は、具体的には、パーソナルコンピュータ等の情報処理端末によって実現される。
The
ネットワーク8は、端末81,82を含む。また、端末81のIPアドレスは「192.168.0.1 」であり、端末82のIPアドレスは「192.168.0.2 」であるとする。なお、図6では、ネットワーク8が2つの端末81,82を含む場合を示しているが、端末の数は2つに限られず、例えば、ネットワーク8は、3以上の端末を含んでもよい。また、端末81,82は、具体的には、パーソナルコンピュータ等の情報処理端末によって実現される。
The
図7は、第2の実施の形態における仮想ターミナル装置3の構成例を示すブロック図である。なお、図7において、図2に示す仮想ターミナル装置3の構成要素と同じ構成要素には同じ符号を付し、その説明を省略する。
FIG. 7 is a block diagram illustrating a configuration example of the virtual
図7に示すように、仮想ターミナル装置3は、イーサネットポート301,302,303、設定部311、フレーム識別部312、IPDA変換部323、IPSA変換部324、ARPDA変換部325、ARPSA変換部326、フレーム制御部327、IPDA変換テーブル3281及びIPSA変換テーブル3282を含む。
As shown in FIG. 7, the virtual
イーサネットポート303は、第1の実施の形態で示したイーサネットポート301,302と同様のインターフェース部である。具体的には、イーサネットポート303は、ネットワーク8と接続するインターフェース部である。仮想ターミナル装置3において、イーサネットポート303から受信するフレームは、フレーム識別部312に転送される。また、フレーム制御部327からイーサネットポート303に送信(出力)されるフレームは、イーサネットポート303を経由してネットワーク8に転送される。すなわち、仮想ターミナル装置3は、イーサネットポート303を用いて、ネットワーク8に接続されている端末81,82にフレーム(データ)を送信する。
The
設定部321は、CGIやGUI等のインターフェースを有している。例えば、設定部321は、CGIやGUIを用いた設定画面をモニタ等の表示部に表示する。また、ユーザは、そのCGI又はGUIをによる設定画面を見ながら、仮想ターミナル装置3の設定操作を行う。そして、設定部321は、ユーザの設定操作に従って、IPDA変換テーブル3281やIPSA変換テーブル3282を設定するようにしてもよい。
The
また、ユーザ端末(端末11,12,21,22,81,82)は、その設定部321のIPアドレスを指定して、CGIやGUI(例えば、IPDA変換テーブル3281やIPSA変換テーブル3282の情報を表示可能な表示画面)等のインターフェースにアクセスして、送信先端末のIPアドレスを取得することができる。例えば、設定部321は、端末11,12,21,22,81,82からの要求に応じて、IPDA変換テーブル3281やIPSA変換テーブル3282から、送信先端末のIPアドレスを抽出し、要求元の端末11,12,21,22,81,82に送信する機能を備える。
In addition, the user terminal (
また、設定部321は、ユーザ端末にIPパケットを送信する場合、ユーザ端末から受信するフレームの入力ポートを出力ポートとし、送信フレームとともにフレーム制御部327に送信(出力)する機能を備える。
The
IPDA変換部323は、まずフレーム識別部312から受信(入力)するフレームのIPヘッダに基づいて、IPDA情報を取得(抽出)する機能を備える。また、IPDA変換部323は、取得したIPDA情報及び受信フレームの入力ポート情報に基づいて、IPDA変換テーブル3281を検索する機能を備える。また、IPDA変換部323は、その検索後、IPDA変換テーブル3281の検索結果を用いて、受信フレームのIPDA情報を変換する機能を備える。また、IPDA変換部323は、受信フレームの入力ポート情報及び検索した出力ポート情報とともに、受信フレームをIPSA変換部314に転送する機能を備える。
The
なお、もし受信フレームのIPDAがIPマルチキャストタイプ又はブロードキャストタイプである場合には、IPDA変換部323は、IPDA情報を変更(変換)しない。そして、IPDA変換部323は、受信フレームの入力ポート以外の全てのポートを出力ポートとして、受信フレーム及び入力ポート情報とともに、受信フレームをIPSA変換部314に転送する。
If the IPDA of the received frame is an IP multicast type or a broadcast type, the
IPSA変換部324は、IPDA変換部323から受信(入力)するフレームのIPヘッダに基づいて、IPSA情報を取得(抽出)する機能を備える。また、IPSA変換部324は、取得したIPSA情報と、IPDA変換部323から受信(入力)した受信フレームの入力ポート及び出力ポート情報とに基づいて、IPSA変換テーブル3282を検索する機能を備える。また、IPSA変換部324は、その検索後、IPSA変換テーブル3282の検索結果を用いて、受信フレームのIPSA情報を変換する機能を備える。また、IPSA変換部324は、受信フレームの出力ポート情報とともに、受信フレームをフレーム制御部327に転送する機能を備える。
The
ARPDA変換部325は、フレーム識別部312から受信(入力)するフレームのARPデータ部分に基づいて、ARPデータの中からIPDA情報を取得(抽出)する機能を備える。また、ARPDA変換部325は、取得したIPDA情報と、受信フレームの入力ポート情報とに基づいて、IP変換テーブル3281を検索する機能を備える。また、ARPDA変換部325は、その検索後、IPDA変換テーブル3281の検索結果を用いて、受信フレームのARPデータ中のIPDA情報を変換する機能を備える。また、ARPDA変換部325は、受信フレームの入力ポート情報及び検索した出力ポート情報とともに、受信フレームをARPSA変換部326に転送する機能を備える。
The
ARPSA変換部326は、ARPDA変換部325から受信(入力)するフレームのARPデータ部分に基づいて、ARPデータの中からIPSA情報を取得(抽出)する機能を備える。また、ARPSA変換部326は、取得したIPSA情報と、ARPDA変換部325から受信した入力ポート及び出力ポート情報とに基づいて、IPSA変換テーブル3282を検索する機能を備える。また、ARPSA変換部326は、IPSA変換テーブル3282の検索結果を用いて、受信フレームのARPデータ中のIPSA情報を変換する機能を備える。また、ARPSA変換部326は、受信フレームの出力ポート情報とともに、受信フレームをフレーム制御部327に転送する機能を備える。
The
フレーム制御部327は、設定部321やフレーム識別部312、IPSA変換部324変換部、ARPSA変換部326等から受信(入力)するフレームを、受信フレームの出力ポートに転送する機能を備える。
The
IPDA変換テーブル3281は、具体的には、仮想ターミナル装置3が備えるメモリやハードディスク装置等の記憶装置(図示せず)に記憶される。図8は、IPDA変換テーブル3281の一例を示す説明図である。なお、IPDA変換テーブル3281は、例えば、仮想ターミナル装置3を用いたネットワークシステムを管理する管理者によって、予め登録されたネットワーク1,2,8及び各端末11,12,13,14,81,82の情報に基づいて作成され、仮想ターミナル装置3の記憶装置に記憶される。また、例えば、IPDA変換テーブル3281は、予め登録されたネットワーク1,2,8及び各端末11,12,13,14,81,82の情報に基づいて、仮想ターミナル装置3によって生成され、仮想ターミナル装置3の記憶装置に記憶されてもよい。
Specifically, the IPDA conversion table 3281 is stored in a storage device (not shown) such as a memory or a hard disk device provided in the virtual
以下、図6及び図8を参照して、IPDA変換テーブル3281のテーブル構成について説明する。 Hereinafter, the table configuration of the IPDA conversion table 3281 will be described with reference to FIGS. 6 and 8.
図8に示すように、IPDA変換テーブル3281は、キーワードフィールドと、結果フィールドとを含む。IPDA変換テーブル3281のキーワードフィールドは、受信フレームの入力ポート情報(受信フレームを受信したポート)と、元のIPDA情報(受信フレームに元々含まれるIPDA)とを含む。 As shown in FIG. 8, the IPDA conversion table 3281 includes a keyword field and a result field. The keyword field of the IPDA conversion table 3281 includes input port information of a received frame (port that received the received frame) and original IPDA information (IPDA originally included in the received frame).
図8において、元のIPDA情報のフィールドには、例えば、イーサネットポート301以外のイーサネットポート302,303に接続されているネットワークの端末(端末21,22,81,82)等が、ネットワーク1側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスが設定されている。
In FIG. 8, in the original IPDA information field, for example, the network terminals (
例えば、元のIPDA情報のフィールドには、ネットワーク2に接続されている端末21がネットワーク1で取得可能なIPアドレス「192.168.0.3 」が設定されている。また、元のIPDA情報のフィールドには、ネットワーク8に接続されている端末81がネットワーク1で取得可能なIPアドレス「192.168.0.4 」が設定されている。
For example, in the original IPDA information field, an IP address “192.168.0.3” that can be obtained by the
また、図8に示すように、上記したキーワードフィールド(入力ポート情報及び元のIPDA情報)に対応する結果フィールドには、フレームの出力ポート情報とIPDA変換後情報とが含まれる。フレームの出力フィールド(出力ポート情報のフィールド)には、上記したIPDA情報に対応する端末(例えば、端末21,81)が接続されているイーサネットポート情報(例えば、ポート302,303)が含まれる。そして、IPDA変換後フィールドには、端末の元々のIPアドレス(例えば、「192.168.0.1 」)が含まれる。
As shown in FIG. 8, the result field corresponding to the keyword field (input port information and original IPDA information) includes frame output port information and post-IPDA converted information. The frame output field (output port information field) includes Ethernet port information (for example,
IPSA変換テーブル3282は、具体的には、仮想ターミナル装置3が備えるメモリやハードディスク装置等の記憶装置(図示せず)に記憶される。図9は、IPSA変換テーブル3282の一例を示す説明図である。なお、IPSA変換テーブル3282は、例えば、仮想ターミナル装置3を用いたネットワークシステムを管理する管理者によって、予め登録されたネットワーク1,2,8及び各端末11,12,13,14,81,82の情報に基づいて作成され、仮想ターミナル装置3の記憶装置に記憶される。また、例えば、IPSA変換テーブル3282は、予め登録されたネットワーク1,2,8及び各端末11,12,13,14,81,82の情報に基づいて、仮想ターミナル装置3によって生成され、仮想ターミナル装置3の記憶装置に記憶されてもよい。
Specifically, the IPSA conversion table 3282 is stored in a storage device (not shown) such as a memory or a hard disk device provided in the virtual
以下、図6及び図9を参照して、IPSA変換テーブル3282のテーブル構成について説明する。 Hereinafter, the table configuration of the IPSA conversion table 3282 will be described with reference to FIGS. 6 and 9.
図9に示すように、IPSA変換テーブル3282は、キーワードフィールドを含む。IPSA変換テーブル3282のキーワードフィールドは、入力ポート情報(受信フレームを受信したポート)、元のIPSA情報(受信フレームに元々含まれるIPSA)、及び出力ポート(受信フレームを出力するポート)を含む。 As shown in FIG. 9, the IPSA conversion table 3282 includes a keyword field. The keyword field of the IPSA conversion table 3282 includes input port information (port that received the received frame), original IPSA information (IPSA originally included in the received frame), and output port (port that outputs the received frame).
図9において、IPSA情報のフィールドには、入力ポートに接続されているネットワークに接続されている端末のIPアドレスが設定されている。また、出力ポートフィールドには、入力ポート以外のポート情報が設定されている。例えば、入力ポート301のエントリには、IPSA情報のフィールドにネットワーク1の端末11,12のIPアドレスが設定され、出力ポート情報のフィールドに入力ポート以外のポート302,303が設定される。
In FIG. 9, the IP address of the terminal connected to the network connected to the input port is set in the IPSA information field. In the output port field, port information other than the input port is set. For example, in the entry of the
また、図9に示すように、上記したキーワードフィールド(入力ポート情報、元のIPSA情報、出力ポート情報)に対応する結果フィールドには、IPSA変換後情報が含まれる。そして、IPSA変換後フィールドには、送信元端末が送信先ネットワークで利用可能なIPアドレス(例えば、「192.168.0.10」)が含まれる。 Also, as shown in FIG. 9, the result field corresponding to the keyword field (input port information, original IPSA information, output port information) includes information after IPSA conversion. The IPSA converted field includes an IP address (for example, “192.168.0.10”) that can be used by the transmission source terminal in the transmission destination network.
なお、フレーム識別部312及びイーサネットポート301,302の機能は、第1の実施の形態で示したそれらの機能と同様である。なお、本実施の形態において、仮想ターミナル装置3が各端末11,12,21,22,81,82間のアドレス変換を行って通信を中継する基本的な動作は、第1の実施の形態で示した動作と同様である。
Note that the functions of the
以上のように、本実施の形態によれば、仮想ターミナル装置3は、自ノード宛のイーサネットフレームのみを受信するのではなく、第2のネットワーク(又は第3のネットワーク(例えば、ネットワーク8))に送信される全てのイーサネットフレームを受信し、受信フレームのプロトコルタイプを識別する。
As described above, according to the present embodiment, the virtual
また、プロトコルタイプがIPである場合、仮想ターミナル装置3のIPDA変換部323は、送信先IPアドレスを、送信先端末が第2のネットワーク(又は第3のネットワーク)側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。また、IPSA変換部324は、送信元IPアドレスを、送信元端末が第2のネットワーク(又は第3のネットワーク)側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。
When the protocol type is IP, the
また、プロトコルタイプがARPである場合、ARPDA変換部325は、ARPデータに含まれている送信先IPアドレスを、送信先端末が第2のネットワーク(又は第3のネットワーク)側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。また、ARPSA変換部326は、送信元IPアドレスを、送信元端末が第2のネットワーク(又は第3のネットワーク)側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。
In addition, when the protocol type is ARP, the
そして、仮想ターミナル装置3は、上記に示した変換後の各イーサネットフレームを出力ポートに転送する。
Then, the virtual
従来、NATルータを用いる場合には、NATルータは、自ノード宛のMACアドレスをMACDAとするフレームのみを転送していた。そのため、同一のIPアドレス体系を用いるネットワーク間でレイヤ2レベルにおける通信ができなかった。
Conventionally, when a NAT router is used, the NAT router transfers only a frame having a MAC address addressed to itself as MACDA. Therefore, communication at the
これに対し、本実施の形態によれば、上記の構成を備えることによって、同一のIPアドレス体系を用いる3つ以上のネットワーク(例えば、第1のネットワーク、第2のネットワーク、第3のネットワーク)間に設けた通信装置を用いて、端末の内部設定変更を必要とせずに、レイヤ2及びレイヤ3レベルにおける通信を行うことができる。
On the other hand, according to the present embodiment, three or more networks using the same IP address system (for example, the first network, the second network, and the third network) are provided with the above configuration. Communication at the
また、本実施の形態によれば、仮想ターミナル装置3は、イーサネットポートに設定されたIPアドレスに基づいて、受信フレーム自身のIPアドレスを変換するのではなく、各端末が通信を行う場合の仮想的なIPアドレスを管理する。そのため、仮想ターミナル装置3は、IPDA変換テーブルとIPSA変換テーブルとを用いる。
Further, according to the present embodiment, the virtual
このIPDA変換テーブルは、第1のネットワークに接続されている第1のイーサネットポートと、第2のネットワークに接続されている第2の端末とが、第1のネットワークにおいて取得可能なIPアドレスを用いて、第2のネットワークを接続するイーサネットポート及び送信先端末のデフォルトIPアドレス等を対応付けて含むテーブルである。 This IPDA conversion table uses an IP address that can be acquired in the first network by the first Ethernet port connected to the first network and the second terminal connected to the second network. The table includes an Ethernet port connected to the second network, a default IP address of the transmission destination terminal, and the like in association with each other.
また、IPSA変換テーブルは、第1のネットワークに接続されている第1のイーサネットポートと、第1のネットワークに接続されている第1の端末のデフォルトIPアドレスと、第2のネットワークを接続するイーサネットポートを用いて、第1の端末が第2のネットワークにおいて取得可能なIPアドレス等を対応付けて含むテーブルである。 The IPSA conversion table includes a first Ethernet port connected to the first network, a default IP address of the first terminal connected to the first network, and an Ethernet connecting the second network. It is a table including an IP address and the like that can be acquired by the first terminal in the second network using the port.
IPDA変換部323とARPDA変換部324は、入力ポートと受信フレームに含まれている送信先IPアドレスとを用いて、IPDA変換テーブルを検索した結果に基づいて、送信先IPアドレス情報を変換するとともに、出力ポートを取得する。また、IPSA変換部325とARPSA変換部326は、受信フレームにおける入力ポートと出力ポート及び受信フレームに含まれている送信元IPアドレス情報とを用いて、IPSA変換テーブルを検索した結果に基づいて、送信元IPアドレス情報を変換する。
The
そして、仮想ターミナル装置3のフレーム制御部327は、受信フレームを出力ポートに転送する。
Then, the
従来のIP変換装置(特許文献1参照)では、1つのイーサネットポートに複数の端末が接続される場合、端末間通信ができなかった。 In a conventional IP converter (see Patent Document 1), when a plurality of terminals are connected to one Ethernet port, communication between terminals cannot be performed.
これに対し、本実施の形態によれば、上記の構成を備えることによって、複数の端末が接続されている同一のIPアドレス体系を用いる3つ以上のネットワークの間に設けられる通信装置を用いて、1つのイーサネットポートに複数の端末が接続される場合でも端末間の通信を行うことができる。 On the other hand, according to this embodiment, by using the communication apparatus provided between three or more networks using the same IP address system to which a plurality of terminals are connected by providing the above configuration. Even when a plurality of terminals are connected to one Ethernet port, communication between terminals can be performed.
また、本実施の形態によれば、設定部321は、固定IPアドレスを用いるCGIやGUI等のインターフェースを有する。また、設定部321は、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答する手段を有する。
Further, according to the present embodiment, the
従来、NATルータを用いる場合やIP変換装置を用いる場合には、送信元端末が送信先端末にIPパケットを送信する際、IPパケットの送信先IPアドレスを自分で取得することができない。 Conventionally, when a NAT router or an IP conversion device is used, when a transmission source terminal transmits an IP packet to a transmission destination terminal, the transmission destination IP address of the IP packet cannot be acquired by itself.
これに対し、本実施の形態によれば、同一のIPアドレス体系を用いる3つ以上のネットワークの間に設けられる通信装置を用いて、送信元端末が送信先IPアドレスを取得するためのインターフェースを提供するとともに、送信元端末が送信先IPアドレスを自分で指定できるようにすることができる。 In contrast, according to the present embodiment, an interface for a transmission source terminal to acquire a transmission destination IP address using a communication device provided between three or more networks using the same IP address system is provided. In addition, the transmission source terminal can specify the transmission destination IP address by itself.
本発明は、同一のIPアドレス体系を用いるネットワーク間の通信を中継する通信装置の用途に適用できる。 The present invention can be applied to the use of a communication apparatus that relays communication between networks using the same IP address system.
1,2,8 ネットワーク
3 仮想ターミナル装置
11,12,21,22,81,82 端末
301,302,303 イーサネットポート
311,321 設定部
312 フレーム識別部
313,323 IPDA変換部
314,324 IPSA変換部
315,325 ARPDA変換部
316,326 ARPSA変換部
317,327 フレーム制御部
318 仮想ターミナルテーブル
3281 IPDA変換テーブル
3282 IPSA変換テーブル
1, 2, 8
Claims (16)
第1のネットワークに接続される第1の端末が第2のネットワークに接続される第2の端末と通信する場合に、前記第2の端末が前記第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスを特定する仮想アドレス特定手段と、
前記仮想アドレス特定手段が特定した仮想IPアドレスを、前記第1の端末に送信する仮想アドレス送信手段と、
前記第1の端末からデータを受信すると、受信データに含まれる送信元としての前記第1の端末のIPアドレスを、前記第1の端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスに変換する送信側アドレス変換手段と、
前記第1の端末からデータを受信すると、前記受信データに含まれる送信先としての前記第2の端末の仮想IPアドレスを、前記第2の端末が前記第2のネットワークで用いる現実のIPアドレスに変換する受信側アドレス変換手段とを
備えたことを特徴とする通信装置。 A communication device that relays communication between terminals connected to a network having the same IP address system,
When the first terminal connected to the first network communicates with the second terminal connected to the second network, the second terminal temporarily acquires an IP address on the first network side. Virtual address specifying means for specifying a virtual IP address that can be acquired in the case of
Virtual address transmitting means for transmitting the virtual IP address specified by the virtual address specifying means to the first terminal;
When data is received from the first terminal, the IP address of the first terminal as a transmission source included in the received data is acquired by the first terminal on the second network side. A transmission side address conversion means for converting into a virtual IP address that can be acquired in the case
When data is received from the first terminal, the virtual IP address of the second terminal as a transmission destination included in the received data is changed to an actual IP address used by the second terminal in the second network. A communication apparatus comprising: a receiving side address converting means for converting.
送信側アドレス変換手段は、前記仮想アドレス対応テーブルに基づいて、受信データに含まれる送信元としての前記第1の端末のIPアドレスを仮想IPアドレスに変換し、
受信側アドレス変換手段は、前記仮想アドレス対応テーブルに基づいて、受信データに含まれる送信先としての前記第2の端末の仮想IPアドレスを、前記第2の端末の現実のIPアドレスに変換する
請求項1記載の通信装置。 An actual IP address used in the first network by the first terminal and a virtual IP address that can be acquired when the first terminal acquires the IP address on the second network side in association with each other And an actual IP address used by the second terminal in the second network, and a virtual IP address that can be acquired when the second terminal acquires an IP address on the first network side, A virtual address correspondence table including
The transmission side address conversion means converts the IP address of the first terminal as the transmission source included in the received data into a virtual IP address based on the virtual address correspondence table,
The receiving-side address conversion unit converts the virtual IP address of the second terminal as a transmission destination included in the received data into an actual IP address of the second terminal based on the virtual address correspondence table. Item 2. The communication device according to Item 1.
前記フレーム識別部がプロトコルタイプをIPタイプと判断した場合に、前記イーサネットフレームのIPパケットの送信先IPアドレスを、送信先端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するIPDA変換部と、
前記フレーム識別部がプロトコルタイプをIPタイプと判断した場合に、前記IPパケットの送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するIPSA変換部と、
前記フレーム識別部がプロトコルタイプをARPタイプと判断した場合に、受信した前記イーサネットフレームのARPパケットのデータフィールドに含まれている送信先IPアドレスを、前記送信先端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するARPDA変換部と、
前記フレーム識別部がプロトコルタイプをARPタイプと判断した場合に、前記ARPパケットのデータフィールドに含まれている送信元IPアドレスを、前記送信元端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換するARPSA変換部と、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送するフレーム制御部とを
備えたことを特徴とする通信装置。 An Ethernet frame received from a first Ethernet port connected to the first network when connecting a first network having the same IP address system to which a plurality of terminals are connected and a second network. A frame identifier for identifying the protocol type of
When the frame identification unit determines that the protocol type is IP type, the transmission destination IP address of the IP packet of the Ethernet frame is acquired when the transmission destination terminal temporarily acquires the IP address on the second network side. An IPDA conversion unit that converts the IP address to a possible IP address;
When the frame identification unit determines that the protocol type is an IP type, the IP address that can be acquired when the transmission source terminal temporarily acquires the IP address on the second network side is the IP packet. An IPSA conversion unit for converting to
When the frame identification unit determines that the protocol type is the ARP type, the destination terminal includes the destination IP address included in the data field of the received ARP packet of the Ethernet frame on the second network side. If an IP address is acquired, an ARPDA conversion unit that converts the IP address into an acquirable IP address;
When the frame identification unit determines that the protocol type is the ARP type, the source IP address included in the data field of the ARP packet is temporarily acquired by the source terminal on the second network side. Then, an ARPSA conversion unit that converts the IP address to an acquirable IP address,
A communication apparatus comprising: a frame control unit that transfers the received Ethernet frame to a port other than the input port that received the Ethernet frame.
IPDA変換部は、受信フレームの入力ポートと受信フレームに含まれている送信先IPアドレス情報とを用いて、前記仮想ターミナルテーブルを検索した結果に基づいて、前記送信先IPアドレス情報を変換し、
ARPDA変換部は、受信フレームの入力ポートと受信フレームに含まれている送信先IPアドレス情報とを用いて、前記仮想ターミナルテーブルを検索した結果に基づいて、前記送信先IPアドレス情報を変換し、
IPSA変換部は、受信フレームの入力ポートと受信フレームに含まれている送信元IPアドレス情報とを用いて、前記仮想ターミナルテーブルを検索した結果に基づいて、前記送信元IPアドレス情報を変換し、
ARPSA変換部は、受信フレームの入力ポートと受信フレームに含まれている送信元IPアドレス情報とを用いて、前記仮想ターミナルテーブルを検索した結果に基づいて、前記送信元IPアドレス情報を変換する
請求項4記載の通信装置。 Using the first Ethernet port connected to the first network and the default IP address of the first terminal connected to the first network, the first terminal is connected to the second network side. If an IP address is acquired, an IP address that can be acquired is included in association with the second terminal connected to the first Ethernet port and the second network on the first network side. A virtual terminal table including an IP address that can be acquired when an IP address is acquired, in association with the default IP address of the second terminal,
The IPDA conversion unit converts the destination IP address information based on the result of searching the virtual terminal table using the input port of the received frame and the destination IP address information included in the received frame,
The ARPDA conversion unit converts the destination IP address information based on the result of searching the virtual terminal table using the input port of the received frame and the destination IP address information included in the received frame,
The IPSA conversion unit converts the source IP address information based on a result of searching the virtual terminal table using the input port of the received frame and the source IP address information included in the received frame,
The ARPSA conversion unit converts the transmission source IP address information based on a result of searching the virtual terminal table using the input port of the reception frame and the transmission source IP address information included in the reception frame. Item 5. The communication device according to Item 4.
前記設定部は、前記仮想ターミナルテーブルを設定し、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答する
請求項4記載の通信装置。 A setting unit having an interface for searching a virtual terminal table by CGI or GUI using a fixed IP address;
The communication device according to claim 4, wherein the setting unit sets the virtual terminal table and searches the virtual terminal table and responds to the source terminal in response to an inquiry about a destination IP address from the source terminal.
前記第1のイーサネットポートと、前記第1のネットワークに接続されている第1の端末のデフォルトIPアドレスと、前記第2のイーサネットポートとを用いて、前記第1の端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを対応付けて含むIPSA変換テーブルとを備え、
IPDA変換部は、入力ポートと受信フレームに含まれている送信先IPアドレスとを用いて、前記IPDA変換テーブルを検索した結果に基づいて、前記送信先IPアドレス情報を変換するとともに、出力ポートを取得し、
ARPDA変換部は、入力ポートと受信フレームに含まれている送信先IPアドレスとを用いて、前記IPDA変換テーブルを検索した結果に基づいて、前記送信先IPアドレス情報を変換するとともに、出力ポートを取得し、
IPSA変換部は、受信フレームにおける入力ポートと、出力ポート及び受信フレームに含まれている送信元IPアドレス情報とを用いて、前記IPSA変換テーブルを検索した結果に基づいて、前記送信元IPアドレス情報を変換し、
ARPSA変換部は、受信フレームにおける入力ポートと、出力ポート及び受信フレームに含まれている送信元IPアドレス情報とを用いて、前記IPSA変換テーブルを検索した結果に基づいて、前記送信元IPアドレス情報を変換し、
フレーム制御部は、前記受信フレームを前記出力ポートに転送する
請求項4記載の通信装置。 IP address that can be acquired when the first Ethernet port connected to the first network and the second terminal connected to the second network acquire an IP address temporarily on the first network side And an IPDA conversion table including the second Ethernet port connecting the second network and the default IP address of the second terminal in association with each other,
Using the first Ethernet port, the default IP address of the first terminal connected to the first network, and the second Ethernet port, the first terminal is connected to the second network. An IPSA conversion table that includes IP addresses that can be acquired if the IP address is temporarily acquired on the side,
The IPDA conversion unit converts the destination IP address information based on the result of searching the IPDA conversion table using the input port and the destination IP address included in the received frame, and sets the output port. Acquired,
The ARPDA converter converts the destination IP address information based on the result of searching the IPDA conversion table using the input port and the destination IP address included in the received frame, and sets the output port. Acquired,
The IPSA conversion unit uses the input port in the received frame and the source IP address information included in the output port and the received frame to search for the source IP address information based on a result of searching the IPSA conversion table. Convert
The ARPSA conversion unit uses the input port in the received frame and the source IP address information included in the output port and the received frame to search for the source IP address information based on the result of searching the IPSA conversion table. Convert
The communication apparatus according to claim 4, wherein the frame control unit transfers the received frame to the output port.
端末間の通信を中継する通信装置を備え、
前記通信装置は、
第1のネットワークに接続される第1の端末が第2のネットワークに接続される第2の端末と通信する場合に、前記第2の端末が前記第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスを特定する仮想アドレス特定手段と、
前記仮想アドレス特定手段が特定した仮想IPアドレスを、前記第1の端末に送信する仮想アドレス送信手段と、
前記第1の端末からデータを受信すると、受信データに含まれる送信元としての前記第1の端末のIPアドレスを、前記第1の端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスに変換する送信側アドレス変換手段と、
前記第1の端末からデータを受信すると、前記受信データに含まれる送信先としての前記第2の端末の仮想IPアドレスを、前記第2の端末が前記第2のネットワークで用いる現実のIPアドレスに変換する受信側アドレス変換手段とを含み、
前記第1の端末は、前記通信装置から受信した仮想IPアドレスを送信先として含むデータを、前記通信装置に送信する
ことを特徴とする通信システム。 A communication system for performing communication between terminals connected to a network having the same IP address system,
A communication device that relays communication between terminals is provided.
The communication device
When the first terminal connected to the first network communicates with the second terminal connected to the second network, the second terminal temporarily acquires an IP address on the first network side. Virtual address specifying means for specifying a virtual IP address that can be acquired in the case of
Virtual address transmitting means for transmitting the virtual IP address specified by the virtual address specifying means to the first terminal;
When data is received from the first terminal, the IP address of the first terminal as a transmission source included in the received data is acquired by the first terminal on the second network side. A transmission side address conversion means for converting into a virtual IP address that can be acquired in a case;
When data is received from the first terminal, the virtual IP address of the second terminal as a transmission destination included in the received data is changed to an actual IP address used by the second terminal in the second network. Receiving address conversion means for converting,
The first terminal transmits data including a virtual IP address received from the communication device as a transmission destination to the communication device.
端末間の通信を中継する通信装置が、第1のネットワークに接続される第1の端末が第2のネットワークに接続される第2の端末と通信する場合に、前記第2の端末が前記第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスを特定するステップと、
前記通信装置が、特定した仮想IPアドレスを、前記第1の端末に送信するステップと、
前記第1の端末が、前記通信装置から受信した仮想IPアドレスを送信先として含むデータを、前記通信装置に送信するステップと、
前記通信装置が、前記第1の端末からデータを受信すると、受信データに含まれる送信元としての前記第1の端末のIPアドレスを、前記第1の端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスに変換するステップと、
前記通信装置が、前記第1の端末からデータを受信すると、前記受信データに含まれる送信先としての前記第2の端末の仮想IPアドレスを、前記第2の端末が前記第2のネットワークで用いる現実のIPアドレスに変換するステップとを
含むことを特徴とする通信方法。 A communication method for performing communication between terminals connected to a network having the same IP address system,
When a communication device that relays communication between terminals communicates with a second terminal connected to a second network when the first terminal connected to the first network communicates with the second terminal Identifying a virtual IP address that can be acquired when it is assumed that an IP address is acquired on the network side of 1;
The communication device transmitting the identified virtual IP address to the first terminal;
The first terminal transmitting data including a virtual IP address received from the communication device as a transmission destination to the communication device;
When the communication device receives data from the first terminal, the IP address of the first terminal as a transmission source included in the received data is assumed to be the IP address of the first terminal on the second network side. Converting to an IP address that can be acquired if the address is acquired;
When the communication device receives data from the first terminal, the second terminal uses the virtual IP address of the second terminal as a transmission destination included in the received data in the second network. And a step of converting to an actual IP address.
前記第1のネットワークに接続される第1のイーサネットポートからイーサネットフレームを受信する場合、受信フレームのプロトコルタイプを識別し、
プロトコルタイプをIPタイプと判断した場合に、前記イーサネットフレームのIPパケットの送信先IPアドレスを、送信先端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換し、
プロトコルタイプをIPタイプと判断した場合に、前記IPパケットの送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換し、
プロトコルタイプをARPタイプと判断した場合に、受信した前記イーサネットフレームのARPパケットのデータフィールドに含まれている送信先IPアドレスを、前記送信先端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換し、
プロトコルタイプをARPタイプと判断した場合に、前記ARPパケットのデータフィールドに含まれている送信元IPアドレスを、前記送信元端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換し、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送する
ことを特徴とする通信方法。 When connecting the first network and the second network having the same IP address system to which a plurality of terminals are connected, the terminal connected to the first network and the second network are connected A communication method for relaying communication with a connected terminal,
When receiving an Ethernet frame from a first Ethernet port connected to the first network, identifying the protocol type of the received frame;
When the protocol type is determined to be the IP type, the destination IP address of the IP packet of the Ethernet frame is set to an IP address that can be acquired when the destination terminal temporarily acquires the IP address on the second network side. Converted,
When the protocol type is determined to be an IP type, the source IP address of the IP packet is converted into an IP address that can be acquired when the source terminal temporarily acquires an IP address on the second network side,
When the protocol type is determined to be the ARP type, the transmission destination terminal temporarily acquires the IP address on the second network side as the transmission destination IP address included in the data field of the received ARP packet of the Ethernet frame. If so, convert it to an IP address that can be acquired,
When the protocol type is determined as the ARP type, the transmission source IP address included in the data field of the ARP packet is acquired when the transmission source terminal temporarily acquires the IP address on the second network side. To a possible IP address,
The received Ethernet frame is transferred to a port other than the input port that received the Ethernet frame.
第1のネットワークに接続される第1のイーサネットポートと、前記第1のネットワークに接続されている第1の端末のデフォルトIPアドレスとを用いて、前記第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを対応付けて含むとともに、前記第1のイーサネットポートと前記第2のネットワークに接続されている第2の端末が前記第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスとを用いて、前記第2の端末のデフォルトIPアドレスを対応付けて含む仮想ターミナルテーブルを予め記憶し、
固定IPアドレスを有するCGI又はGUIによるユーザが仮想ターミナルテーブル検索するためのインターフェースを用いて、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答し、
前記第1のネットワークに接続される第1のイーサネットポートからイーサネットフレームを受信する場合に、受信したイーサネットフレームのプロトコルタイプを識別し、
プロトコルタイプをIPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと、送信先IPアドレス及び送信元IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、前記送信先IPアドレスと送信元IPアドレスとを変換し、
プロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと、前記ARPパケットのデータフィールドに含まれている送信先IPアドレス及び送信元IPアドレスを用いて、仮想ターミナルテーブルを検索した結果に基づいて、前記送信先IPアドレスと送信元IPアドレスとを変換し、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送する
ことを特徴とする通信方法。 When connecting the first network and the second network having the same IP address system to which a plurality of terminals are connected, the terminal connected to the first network and the second network are connected A communication method for relaying communication with a connected terminal,
Using the first Ethernet port connected to the first network and the default IP address of the first terminal connected to the first network, the first terminal is connected to the second network side. If an IP address is acquired, an IP address that can be acquired is included in association with the second terminal connected to the first Ethernet port and the second network on the first network side. Temporarily storing a virtual terminal table including the default IP address of the second terminal in association with an IP address that can be acquired when an IP address is acquired,
In response to an inquiry about the destination IP address from the source terminal, the CGI or GUI user having a fixed IP address uses the interface for searching the virtual terminal table, and responds to the source terminal by searching the virtual terminal table. And
When receiving an Ethernet frame from a first Ethernet port connected to the first network, identifying the protocol type of the received Ethernet frame;
When the protocol type is determined to be the IP type, the destination IP address is determined based on the result of searching the virtual terminal table using the input port of the received Ethernet frame, the destination IP address and the source IP address information. Convert the address and source IP address,
When the protocol type is determined to be the ARP type, the virtual terminal table is searched using the input port of the received Ethernet frame and the destination IP address and source IP address included in the data field of the ARP packet. Based on the result, the destination IP address and the source IP address are converted,
The received Ethernet frame is transferred to a port other than the input port that received the Ethernet frame.
第1のネットワークに接続される第1のイーサネットポートと、第2のネットワークに接続されている第2の端末が前記第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスとを用いて、前記第2のネットワークを接続するイーサネットポート及び前記第2の端末のデフォルトIPアドレスを対応付けて含むIPDA変換テーブルを予め記憶し、
前記第1のイーサネットポートと、前記第1のネットワークに接続されている第1の端末のデフォルトIPアドレスと、前記第2のネットワークを接続するイーサネットポートとを用いて、前記第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを対応付けて含むIPSA変換テーブルを予め記憶し、
固定IPアドレスを用いるCGI又はGUIによる仮想ターミナルテーブル検索用のインターフェースを用いて、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答し、
前記第1のネットワークに接続される第1のイーサネットポートからイーサネットフレームを受信する場合に、受信したイーサネットフレームのプロトコルタイプを識別し、
プロトコルタイプをIPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと送信先IPアドレス及び送信元IPアドレス情報を用い、前記IPDA変換テーブルと前記IPSA変換テーブルを検索した結果に基づいて、前記イーサネットフレームのIPパケットの前記送信先IPアドレスと前記送信元IPアドレスとを変換し、
プロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと前記ARPパケットのデータフィールドに含まれている送信先IPアドレス及び送信元IPアドレスとを用いて、前記IPDA変換テーブルと前記IPSA変換テーブルとを検索した結果に基づいて、前記ARPパケットのデータフィールドに含まれている前記送信先IPアドレスと送信元IPアドレスとを変換し、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送する
ことを特徴とする通信方法。 When connecting the first network and the second network having the same IP address system to which a plurality of terminals are connected, the terminal connected to the first network and the second network are connected A communication method for relaying communication with a connected terminal,
IP address that can be acquired when the first Ethernet port connected to the first network and the second terminal connected to the second network acquire an IP address temporarily on the first network side And previously storing an IPDA conversion table including the Ethernet port connecting the second network and the default IP address of the second terminal in association with each other,
Using the first Ethernet port, the default IP address of the first terminal connected to the first network, and the Ethernet port connecting the second network, the first terminal If an IP address is acquired on the network side of 2 in advance, an IPSA conversion table including an IP address that can be acquired is stored in advance,
Using a virtual terminal table search interface by CGI or GUI using a fixed IP address, in response to an inquiry about the destination IP address from the source terminal, search the virtual terminal table and respond to the source terminal,
When receiving an Ethernet frame from a first Ethernet port connected to the first network, identifying the protocol type of the received Ethernet frame;
When the protocol type is determined to be the IP type, using the input port of the received Ethernet frame, the transmission destination IP address and the transmission source IP address information, based on the result of searching the IPDA conversion table and the IPSA conversion table, Converting the destination IP address and the source IP address of the IP packet of the Ethernet frame;
When the protocol type is determined to be the ARP type, the IPDA conversion table and the IP address conversion table and the source IP address included in the input port of the received Ethernet frame and the destination IP address and source IP address included in the data field of the ARP packet are used. Based on the search result of the IPSA conversion table, the destination IP address and the source IP address included in the data field of the ARP packet are converted,
The received Ethernet frame is transferred to a port other than the input port that received the Ethernet frame.
コンピュータに、
第1のネットワークに接続される第1の端末が第2のネットワークに接続される第2の端末と通信する場合に、前記第2の端末が前記第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスを特定する処理と、
特定した前記仮想IPアドレスを、前記第1の端末に送信する処理と、
前記第1の端末からデータを受信すると、受信データに含まれる送信元としての前記第1の端末のIPアドレスを、前記第1の端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスに変換する処理と、
前記第1の端末からデータを受信すると、前記受信データに含まれる送信先としての前記第2の端末の仮想IPアドレスを、前記第2の端末が前記第2のネットワークで用いる現実のIPアドレスに変換する処理とを
実行させるための通信プログラム。 A communication program for relaying communication between terminals connected to a network having the same IP address system,
On the computer,
When the first terminal connected to the first network communicates with the second terminal connected to the second network, the second terminal temporarily acquires an IP address on the first network side. A process of specifying a virtual IP address that can be acquired in the case of
Processing for transmitting the identified virtual IP address to the first terminal;
When data is received from the first terminal, the IP address of the first terminal as a transmission source included in the received data is acquired by the first terminal on the second network side. Processing to convert to a virtual IP address that can be acquired
When data is received from the first terminal, the virtual IP address of the second terminal as a transmission destination included in the received data is changed to an actual IP address used by the second terminal in the second network. A communication program for executing conversion processing.
コンピュータに、
前記第1のネットワークに接続される第1のイーサネットポートからイーサネットフレームを受信する場合、受信フレームのプロトコルタイプを識別する処理と、
プロトコルタイプをIPタイプと判断した場合に、前記イーサネットフレームのIPパケットの送信先IPアドレスを、送信先端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する処理と、
プロトコルタイプをIPタイプと判断した場合に、前記IPパケットの送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する処理と、
プロトコルタイプをARPタイプと判断した場合に、受信した前記イーサネットフレームのARPパケットのデータフィールドに含まれている送信先IPアドレスを、前記送信先端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する処理と、
プロトコルタイプをARPタイプと判断した場合に、前記ARPパケットのデータフィールドに含まれている送信元IPアドレスを前記送信元端末が前記第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する処理と、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送する処理とを
実行させるための通信プログラム。 When connecting the first network and the second network having the same IP address system to which a plurality of terminals are connected, the terminal connected to the first network and the second network are connected A communication program for relaying communication with a connected terminal,
On the computer,
When receiving an Ethernet frame from a first Ethernet port connected to the first network, processing for identifying the protocol type of the received frame;
When the protocol type is determined to be the IP type, the destination IP address of the IP packet of the Ethernet frame is set to an IP address that can be acquired when the destination terminal temporarily acquires the IP address on the second network side. Process to convert,
A process of converting a source IP address of the IP packet into an IP address that can be acquired when the source terminal temporarily acquires an IP address on the second network side when the protocol type is determined to be an IP type; ,
When the protocol type is determined to be the ARP type, the transmission destination terminal temporarily acquires the IP address on the second network side as the transmission destination IP address included in the data field of the received ARP packet of the Ethernet frame. If so, processing to convert to an IP address that can be acquired,
When the protocol type is determined as the ARP type, the source IP address included in the data field of the ARP packet can be acquired when the source terminal temporarily acquires the IP address on the second network side. A process of converting to an IP address,
A communication program for executing the process of transferring the received Ethernet frame to a port other than the input port that received the Ethernet frame.
コンピュータに、
第1のネットワークに接続される第1のイーサネットポートと、前記第1のネットワークに接続されている第1の端末のデフォルトIPアドレスとを用いて、前記第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを対応付けて含むとともに、前記第1のイーサネットポートと前記第2のネットワークに接続されている第2の端末が前記第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスとを用いて、前記第2の端末のデフォルトIPアドレスを対応付けて含む仮想ターミナルテーブルを予め記憶する処理と、
固定IPアドレスを有するCGI又はGUIによるユーザが仮想ターミナルテーブル検索するためのインターフェースを用いて、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答する処理と、
前記第1のネットワークに接続される第1のイーサネットポートからイーサネットフレームを受信する場合に、受信したイーサネットフレームのプロトコルタイプを識別する処理と、
プロトコルタイプをIPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと、送信先IPアドレス及び送信元IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、前記送信先IPアドレスと送信元IPアドレスとを変換する処理と、
プロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと、前記ARPパケットのデータフィールドに含まれている送信先IPアドレス及び送信元IPアドレスを用いて、仮想ターミナルテーブルを検索した結果に基づいて、前記送信先IPアドレスと送信元IPアドレスとを変換する処理と、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送する処理とを
実行させるための通信プログラム。 When the first network having the same IP address system to which a plurality of terminals are connected and the second network are connected, the terminal connected to the first network and the second network are connected. A communication program for relaying communication with a terminal,
On the computer,
Using the first Ethernet port connected to the first network and the default IP address of the first terminal connected to the first network, the first terminal is connected to the second network side. If an IP address is acquired, an IP address that can be acquired is included in association with the second terminal connected to the first Ethernet port and the second network on the first network side. A process of storing in advance a virtual terminal table including a default IP address of the second terminal in association with an IP address that can be acquired if an IP address is acquired;
In response to an inquiry about the destination IP address from the source terminal, the CGI or GUI user having a fixed IP address uses the interface for searching the virtual terminal table, and responds to the source terminal by searching the virtual terminal table. Processing to
A process of identifying the protocol type of the received Ethernet frame when receiving an Ethernet frame from a first Ethernet port connected to the first network;
When the protocol type is determined to be the IP type, the destination IP address is determined based on the result of searching the virtual terminal table using the input port of the received Ethernet frame, the destination IP address and the source IP address information. A process of converting an address and a source IP address;
When the protocol type is determined to be the ARP type, the virtual terminal table is searched using the input port of the received Ethernet frame and the destination IP address and source IP address included in the data field of the ARP packet. A process for converting the destination IP address and the source IP address based on the result;
A communication program for executing the process of transferring the received Ethernet frame to a port other than the input port that received the Ethernet frame.
コンピュータに、
第1のネットワークに接続される第1のイーサネットポートと、第2のネットワークに接続されている第2の端末が前記第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスとを用いて、前記第2のネットワークを接続するイーサネットポート及び前記第2の端末のデフォルトIPアドレスを対応付けて含むIPDA変換テーブルを予め記憶する処理と、
前記第1のイーサネットポートと、前記第1のネットワークに接続されている第1の端末のデフォルトIPアドレスと、前記第2のネットワークを接続するイーサネットポートとを用いて、前記第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスを対応付けて含むIPSA変換テーブルを予め記憶する処理と、
固定IPアドレスを用いるCGI又はGUIによる仮想ターミナルテーブル検索用のインターフェースを用いて、送信元端末からの送信先IPアドレスの問い合わせに対して、仮想ターミナルテーブルを検索して送信元端末に応答する処理と、
前記第1のネットワークに接続される第1のイーサネットポートからイーサネットフレームを受信する場合に、受信したイーサネットフレームのプロトコルタイプを識別する処理と、
プロトコルタイプをIPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと送信先IPアドレス及び送信元IPアドレス情報を用い、前記IPDA変換テーブルと前記IPSA変換テーブルを検索した結果に基づいて、前記イーサネットフレームのIPパケットの前記送信先IPアドレスと前記送信元IPアドレスとを変換する処理と、
プロトコルタイプをARPタイプと判断した場合に、受信したイーサネットフレームの入力ポートと前記ARPパケットのデータフィールドに含まれている送信先IPアドレス及び送信元IPアドレスとを用いて、前記IPDA変換テーブルと前記IPSA変換テーブルとを検索した結果に基づいて、前記ARPパケットのデータフィールドに含まれている前記送信先IPアドレスと送信元IPアドレスとを変換する処理と、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送する処理とを
実行させるための通信プログラム。 When connecting the first network and the second network having the same IP address system to which a plurality of terminals are connected, the terminal connected to the first network and the second network are connected A communication program for relaying communication with a connected terminal,
On the computer,
IP address that can be acquired when the first Ethernet port connected to the first network and the second terminal connected to the second network acquire an IP address temporarily on the first network side And storing in advance an IPDA conversion table including the Ethernet port connecting the second network and the default IP address of the second terminal in association with each other;
Using the first Ethernet port, the default IP address of the first terminal connected to the first network, and the Ethernet port connecting the second network, the first terminal A process of storing in advance an IPSA conversion table that includes an IP address that can be acquired in a case where the IP address is temporarily acquired on the second network side;
Processing for searching the virtual terminal table and responding to the source terminal in response to an inquiry about the destination IP address from the source terminal using the interface for virtual terminal table search by CGI or GUI using a fixed IP address; ,
A process of identifying the protocol type of the received Ethernet frame when receiving an Ethernet frame from a first Ethernet port connected to the first network;
When the protocol type is determined to be an IP type, based on the result of searching the IPDA conversion table and the IPSA conversion table using the input port of the received Ethernet frame, the destination IP address, and the source IP address information, A process of converting the destination IP address and the source IP address of the IP packet of the Ethernet frame;
When the protocol type is determined to be the ARP type, the IPDA conversion table and the source IP address and the source IP address included in the data field of the ARP packet are input using the input port of the received Ethernet frame. A process of converting the destination IP address and the source IP address included in the data field of the ARP packet based on the result of searching the IPSA conversion table;
A communication program for executing the process of transferring the received Ethernet frame to a port other than the input port that received the Ethernet frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006336136A JP2008148243A (en) | 2006-12-13 | 2006-12-13 | Communication apparatus, communication system, communication method and communication program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006336136A JP2008148243A (en) | 2006-12-13 | 2006-12-13 | Communication apparatus, communication system, communication method and communication program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008148243A true JP2008148243A (en) | 2008-06-26 |
Family
ID=39607881
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006336136A Pending JP2008148243A (en) | 2006-12-13 | 2006-12-13 | Communication apparatus, communication system, communication method and communication program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008148243A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010064292A1 (en) * | 2008-12-01 | 2010-06-10 | パイオニア株式会社 | Data processing device, its system, its method, its program and recording medium in which its program is recorded |
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 |
WO2015146215A1 (en) * | 2014-03-24 | 2015-10-01 | Necソリューションイノベータ株式会社 | Network address translation device, network address translation system, network address translation method, and computer-readable recording medium |
JP2015186081A (en) * | 2014-03-25 | 2015-10-22 | 西日本電信電話株式会社 | Switching hub and network system for apparatus verification |
CN110011891A (en) * | 2018-01-05 | 2019-07-12 | 北京视联动力国际信息技术有限公司 | A kind of method for processing business and system of across a network |
JP2019176341A (en) * | 2018-03-28 | 2019-10-10 | 株式会社リコー | Information processing device, and packet relay method |
-
2006
- 2006-12-13 JP JP2006336136A patent/JP2008148243A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010064292A1 (en) * | 2008-12-01 | 2010-06-10 | パイオニア株式会社 | Data processing device, its system, its method, its program and recording medium in which its program is recorded |
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 |
WO2015146215A1 (en) * | 2014-03-24 | 2015-10-01 | Necソリューションイノベータ株式会社 | Network address translation device, network address translation system, network address translation method, and computer-readable recording medium |
JP2015186081A (en) * | 2014-03-25 | 2015-10-22 | 西日本電信電話株式会社 | Switching hub and network system for apparatus verification |
CN110011891A (en) * | 2018-01-05 | 2019-07-12 | 北京视联动力国际信息技术有限公司 | A kind of method for processing business and system of across a network |
JP2019176341A (en) * | 2018-03-28 | 2019-10-10 | 株式会社リコー | Information processing device, and packet relay method |
JP7073841B2 (en) | 2018-03-28 | 2022-05-24 | 株式会社リコー | Information processing device, packet relay method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4354294B2 (en) | Gateway device connected to a plurality of networks having different network segments, and program and method for transferring IP packet | |
JP4110977B2 (en) | server | |
JP4058845B2 (en) | Gateway device | |
JP4421517B2 (en) | Information processing server, remote operation system, and remote operation method | |
JP5368459B2 (en) | Support for triple operation services in user equipment | |
US20080235358A1 (en) | Proxy Device, Network System, and Communication Method | |
JP4909277B2 (en) | Network communication device, network communication method, address management device | |
US7869433B2 (en) | Home network connection management system using UPnP and VLAN multicast | |
JP4764737B2 (en) | Network system, terminal and gateway device | |
JP2007335923A (en) | Network system, and server | |
JP2004080487A (en) | Packet transfer system, packet transfer method solution server, dns server, network system, and program | |
JP2011077804A (en) | Communication device and communication method of the same | |
JP2008148243A (en) | Communication apparatus, communication system, communication method and communication program | |
JP5293658B2 (en) | Communication system, base station, communication apparatus, switch, and communication method | |
KR101901341B1 (en) | Method and apparatus for supporting mobility of user equipment | |
JP4925130B2 (en) | Communication control method and system | |
CN104168302B (en) | Equipment manipulation implementation method, system and proxy gateway | |
JP3406768B2 (en) | Packet transfer method and packet transfer device | |
JP2007272340A (en) | Network device management method and device | |
WO2019142327A1 (en) | Relay device and relay method | |
JP2008098937A (en) | Virtual network communication system and communication terminal | |
JP3947141B2 (en) | Inter-network communication method, management server, and user network management server | |
JP3886103B2 (en) | COMMUNICATION SYSTEM, COMMUNICATION METHOD, COMMUNICATION DEVICE AND COMMUNICATION PROGRAM USED FOR THE SAME | |
JP7211409B2 (en) | NODE, CONTROL SYSTEM, COMMUNICATION CONTROL METHOD AND PROGRAM | |
JP5084716B2 (en) | VPN connection apparatus, DNS packet control method, and program |