JP2008148243A - Communication apparatus, communication system, communication method and communication program - Google Patents

Communication apparatus, communication system, communication method and communication program Download PDF

Info

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
Application number
JP2006336136A
Other languages
Japanese (ja)
Inventor
Zhenlong Cui
珍龍 崔
Atsushi Enomoto
敦之 榎本
Kazuo Takagi
和男 高木
Hideaki Yoshimi
英朗 吉見
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2006336136A priority Critical patent/JP2008148243A/en
Publication of JP2008148243A publication Critical patent/JP2008148243A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To perform communication at layer-2 and layer-3 levels without requiring a terminal internal setting change between networks using the same IP address system to which a plurality of terminals are connected. <P>SOLUTION: When receiving an Ethernet(R) frame from an Ethernet(R) port 301, a frame identification unit 312 confirms a protocol type and classifies the frame. When the protocol type is IP, an IPDA translation unit 313 and an IPSA translation unit 314 translate a transmission destination IP address and a transmission source IP address by retrieving a virtual terminal table 318. When the protocol type is ARP, an ARPDA translation unit 315 and an ARPSA translation unit 316 translate transmission the destination IP address and the transmission source IP address included in ARP data by retrieving the virtual terminal table 318. <P>COPYRIGHT: (C)2008,JPO&INPIT

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 layer 2 and layer 3 level between networks using the same IP address system without requiring the internal setting change of each terminal. The present invention relates to a communication device, a communication system, a communication method, and a communication program.

同一の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 layer 3 level is possible between networks of the same IP address system by arranging the NAT routers symmetrically.

また、例えば、特許文献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 layers 2 and 3 between terminals using a common IP address. “Communicating between layer 2 and layer 3” means enabling communication at the layer 2 and layer 3 levels of the OSI basic reference model. The IP conversion apparatus assigns different address information to each Ethernet (registered trademark) port, and converts the source IP address and the destination IP address. By doing so, communication is possible even between terminals having a common default IP address held in advance. Therefore, the IP conversion device 5 described in Patent Document 1 enables communication at the layer 2 and layer 3 levels between terminals having a common IP address.

特開2005−79672号公報JP 2005-79672 A

図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 routers 41 and 42 shown in FIG. 10 will be described below.

NATルータ41,42は、元々、プライベートネットワークとグローバルネットワークとの間の通信を可能とするための装置である。例えば、NATルータ41は、プライベートネットワークに接続されているイーサネットポート401と、グローバルネットワークに接続されているイーサネットポート402とを有する。また、NATルータ42は、プライベートネットワークに接続されているイーサネットポート404と、グローバルネットワークに接続されているイーサネットポート403とを有する。また、NATルータ41,42は、それぞれ受信パケットのIP変換を行うためのIP変換テーブル405,406を有する。   The NAT routers 41 and 42 are originally devices for enabling communication between a private network and a global network. For example, the NAT router 41 has an Ethernet port 401 connected to the private network and an Ethernet port 402 connected to the global network. The NAT router 42 has an Ethernet port 404 connected to the private network and an Ethernet port 403 connected to the global network. The NAT routers 41 and 42 have IP conversion tables 405 and 406 for performing IP conversion of received packets, respectively.

NATルータ41,42が有するIP変換テーブル405,406は、受信パケットの入力ポート情報及び受信パケットのIP情報を、IP変換後情報に対応付けて含む。   The IP conversion tables 405 and 406 included in the NAT routers 41 and 42 include input port information of received packets and IP information of received packets in association with information after IP conversion.

NATルータ41,42は、イーサネットポート401,404から、グローバルIPアドレスを送信先IPアドレス(IPDA)として含むとともに、プライベートIPアドレスを送信元IPアドレス(IPSA)として含むパケットを受信する。この場合、NATルータ41,42は、IP変換テーブル405,406を参照して、パケットに含まれるIPSAのみを変換して転送する。   The NAT routers 41 and 42 receive packets including the global IP address as the transmission destination IP address (IPDA) and the private IP address as the transmission source IP address (IPSA) from the Ethernet ports 401 and 404. In this case, the NAT routers 41 and 42 refer to the IP conversion tables 405 and 406 to convert and transfer only the IPSA included in the packet.

また、NATルータ41,42は、逆に、プライベートIPアドレスをIPDAとして含むとともに、グローバルIPアドレスをIPSAとして含むパケットを、グローバルネットワークに接続されているイーサネットポート402,473から受信する場合もある。この場合、NATルータ41,42は、IP変換テーブル405,406を参照して、パケットに含まれるIPSAのみを変換して転送する。   In contrast, the NAT routers 41 and 42 may receive packets including the private IP address as IPDA and the global IP address as IPSA from the Ethernet ports 402 and 473 connected to the global network. In this case, the NAT routers 41 and 42 refer to the IP conversion tables 405 and 406 to convert and transfer only the IPSA included in the packet.

以下、図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 terminal 911 to the terminal 921 will be described with reference to FIG. For example, when the terminal 911 transmits a packet to the destination terminal 921, the terminal 911 generates a packet including a global IP address (for example, 10.0.0.3) indicating the Ethernet port 403 of the NAT router 42 as the destination IP address. Transmit to the Ethernet port 401 of the router 41.

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 router 41 receives a packet from the Ethernet port 401, the NAT router 41 searches the IP conversion table 405 based on the input port number and IP address information included in the received packet. However, the NAT router 41 searches the IP conversion table 405 only once. Then, the NAT router 41 changes only the IPSA included in the received packet to a global IP address (for example, 10.0.0.1) and transmits it to the NAT router 42 via the Ethernet port 402.

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 port 403, the NAT router 42 searches the IP conversion table 406 based on the input port included in the received packet and the IPDA information included in the received packet. However, the NAT router 42 searches the IP conversion table 406 only once. Then, the NAT router 42 changes only the IPDA included in the received packet to a private IP address (for example, 192.168.0.1), and transmits it to the destination terminal 921 via the Ethernet port 404.

上記のように、NATルータ41,42は、受信パケットに含まれる送信元IPアドレスのみ(又は送信先IPアドレスのみ)を変換する。すると、同一のIPアドレス体系のネットワークをNATルータ1台で直接接続する場合、IP変換後の送信先IPアドレス(又は送信元IPアドレス)が送信先端末のIPアドレスと同等のアドレスとなってしまう可能性がある。そのため、NATルータ1台を用いて同一のIPネットワーク間を接続することはできない。   As described above, the NAT routers 41 and 42 convert only the source IP address (or only the destination IP address) included in the received packet. Then, when a network having the same IP address system is directly connected by one NAT router, the destination IP address (or source IP address) after the IP conversion becomes an address equivalent to the IP address of the destination terminal. there is a possibility. Therefore, the same IP network cannot be connected using one NAT router.

また、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 layer 2 communication (communication at the layer 2 level) is not possible between networks using the same IP address, protocols other than the IP protocol (for example, AppleTalk, IPX, SNA) cannot be used.

また、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 terminals 511 and 521 and an IP conversion device 5 that connects the terminals 511 and 521.

また、端末511,512は、同一のIPアドレス(例えば、192.168.0.1 )を用いているとともに、端末511,512のMACアドレスは、それぞれ「A」及び「B」であるとする。   The terminals 511 and 512 use the same IP address (for example, 192.168.0.1), and the MAC addresses of the terminals 511 and 512 are “A” and “B”, respectively.

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 terminal 511 and a terminal 512 via Ethernet ports 501 and 502. In the IP converter 5, different IP addresses (for example, 192.168.0.11 and 192.168.0.12) are set for each Ethernet port. Further, the IP conversion device 5 includes an IP conversion table 503 that is referred to when performing IP conversion processing of a received packet.

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 port 501 includes the IP address “192.168.0.11” set for the Ethernet port 501 and the common IP address “192.168.0.1” of the terminals 511 and 512. Similarly, the entry corresponding to the Ethernet port 502 includes the IP address “192.168.0.12” set for the Ethernet port 502 and the common IP address “192.168.0.1” of the terminals 511 and 512.

以下、端末511から送信先端末521にIPパケットを送信する動作について説明する。   Hereinafter, an operation of transmitting an IP packet from the terminal 511 to the transmission destination terminal 521 will be described.

端末511は、送信先端末521にIPパケットを送信する際、端末521が接続されているIP変換装置5のイーサネットポート502のIPアドレスを、IPDAとして含むIPパケットを送信する。例えば、端末511は、IP変換装置5のイーサネットポート502のIPアドレス「192.168.0.12」をIPDAとして含むパケットを、端末521に送信する。   When the terminal 511 transmits an IP packet to the destination terminal 521, the terminal 511 transmits an IP packet including the IP address of the Ethernet port 502 of the IP conversion apparatus 5 to which the terminal 521 is connected as IPDA. For example, the terminal 511 transmits a packet including the IP address “192.168.0.12” of the Ethernet port 502 of the IP conversion device 5 as IPDA to the terminal 521.

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 reception port 501 included in the IP conversion table 503. The IP converter 5 acquires the port IP address “192.168.0.11” associated with the Ethernet port 501 and the common IP address “192.168.0.1” of the terminal, converts the IPSA and IPDA, and converts the terminal Transfer to 521.

しかし、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 layer 2 and layer 3 levels without requiring any change in internal settings of the terminal, and communication It is an object to provide a system, a communication method, and a communication program.

また、本発明は、同一の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 IPDA conversion unit 313 and the ARPDA conversion unit 315).

また、通信装置は、第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 layer 2 without changing the default IP address of the terminals. And means (for example, an IPDA conversion unit 313, an IPSA conversion unit 314, an ARPDA conversion unit 315, and an ARPSA conversion unit 316) that enable communication at the layer 3 level.

本発明による通信装置のさらに他の態様は、複数の端末が接続されている同一の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 layer 2 and layer 3 levels can be performed using a communication device provided between networks using the same IP address system, without needing to change the internal settings of the terminal. And the first object of the present invention can be achieved.

本発明の第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 layer 2 and layer 3 levels can be performed without the need to change the internal settings of the terminals.

本発明によれば、同一の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 layer 2 and layer 3 levels can be performed using a communication device provided between networks using the same IP address system, without the need to change the internal settings of the terminal.

また、本発明によれば、複数の端末が接続される同一の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 network 2, and a virtual terminal device 3. In the present embodiment, the communication device is specifically realized by the virtual terminal device 3.

本実施の形態では、ネットワーク1,2は、同一のIPアドレス体系をもつネットワークである。例えば、ネットワーク1のIPアドレス体系と、ネットワーク2のIPアドレス体系とは、ともに「192.168.0.1/24」であるとする。   In the present embodiment, the networks 1 and 2 are networks having the same IP address system. For example, it is assumed that the IP address system of the network 1 and the IP address system of the network 2 are both “192.168.0.1/24”.

ネットワーク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 terminals 11 and 12. The IP addresses of the terminal 11 and the terminal 12 are “192.168.0.1” and “192.168.0.2”, respectively. Although FIG. 1 shows a case where the network 1 includes two terminals 11 and 12, the number of terminals is not limited to two. For example, the network 1 may include three or more terminals. The terminals 11 and 12 are specifically realized by an information processing terminal such as a personal computer.

また、ネットワーク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 network 2 includes terminals 21 and 22. Further, it is assumed that the IP addresses of the terminal 21 and the terminal 22 are “192.168.0.1” and “192.168.0.2”, respectively. Although FIG. 1 shows a case where the network 2 includes two terminals 21 and 22, the number of terminals is not limited to two. For example, the network 2 may include three or more terminals. The terminals 21 and 22 are specifically realized by an information processing terminal such as a personal computer.

仮想ターミナル装置3は、仮想ターミナル装置3は、同一のIPアドレス体系をもつ複数ネットワークに接続される各端末を、恰もそれぞれ異なるアドレスをもつかのように仮想的なアドレス変換を実施することにより、端末間のレイヤ2及びレイヤ3レベルにおける通信を可能にする装置である。仮想ターミナル装置3は、例えば、ルータ等のネットワーク装置によって実現される。また、仮想ターミナル装置3は、例えば、プログラムに従って動作するパーソナルコンピュータ等の情報処理装置によって実現されてもよい。   The virtual terminal device 3 performs virtual address conversion for each terminal connected to a plurality of networks having the same IP address system, as if the virtual terminal device 3 has different addresses. It is a device that enables communication between terminals at the layer 2 and layer 3 levels. The virtual terminal device 3 is realized by a network device such as a router, for example. The virtual terminal device 3 may be realized by an information processing device such as a personal computer that operates according to a program.

この実施の形態では、ネットワーク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 network 2 have the same IP address system, for example, the terminal 11 connected to the network 1 and the terminal 21 connected to the network 2 are both the same IP address. It has “192.168.0.1”. Similarly, for example, the terminal 12 connected to the network 1 and the terminal 22 connected to the network 2 both have the same IP address “192.168.0.2”. Therefore, since the IP addresses are duplicated as it is, communication between the terminals 11 and 12 connected to the network 1 and the terminals 21 and 22 connected to the network 2 cannot be performed.

本実施の形態では、仮想ターミナル装置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 terminal device 3 is used in the network 1 when the terminals 21 and 22 connected to the network 2 are viewed from the terminals 11 and 12 connected to the network 1, for example. Virtual address conversion is performed as if the terminals 21 and 22 have IP addresses that have not been assigned (for example, “192.168.0.3” or “192.168.0.4”). By doing so, in the present embodiment, communication between networks 1 and 2 having the same IP address system is possible.

図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 terminal device 3. As shown in FIG. 2, the virtual terminal device 3 includes Ethernet ports 301 and 302, a setting unit 311, a frame identification unit 312, an IPDA conversion unit 313, an IPSA conversion unit 314, an ARPDA conversion unit 315, an ARPSA conversion unit 316, and a frame control. Part 317 and virtual terminal table 318.

イーサネットポート301は、ネットワーク1と接続するインターフェース部である。仮想ターミナル装置3において、イーサネットポート301から受信するフレームは、フレーム識別部312に転送される。また、フレーム制御部317からイーサネットポート301に送信(出力)されるフレームは、イーサネットポート301を経由してネットワーク1に転送される。すなわち、仮想ターミナル装置3は、イーサネットポート301を用いて、ネットワーク1に接続されている端末11,12にフレーム(データ)を送信する。   The Ethernet port 301 is an interface unit connected to the network 1. In the virtual terminal device 3, the frame received from the Ethernet port 301 is transferred to the frame identification unit 312. A frame transmitted (output) from the frame control unit 317 to the Ethernet port 301 is transferred to the network 1 via the Ethernet port 301. That is, the virtual terminal device 3 transmits a frame (data) to the terminals 11 and 12 connected to the network 1 using the Ethernet port 301.

イーサネットポート302は、ネットワーク2と接続するインターフェース部である。仮想ターミナル装置3において、イーサネットポート302から受信するフレームは、フレーム識別部312に転送される。また、フレーム制御部317からイーサネットポート302に送信(出力)されるフレームは、イーサネットポート302を経由してネットワーク2に転送される。すなわち、仮想ターミナル装置3は、イーサネットポート302を用いて、ネットワーク2に接続されている端末21,22にフレーム(データ)を送信する。   The Ethernet port 302 is an interface unit that connects to the network 2. In the virtual terminal device 3, the frame received from the Ethernet port 302 is transferred to the frame identification unit 312. A frame transmitted (output) from the frame control unit 317 to the Ethernet port 302 is transferred to the network 2 via the Ethernet port 302. That is, the virtual terminal device 3 transmits frames (data) to the terminals 21 and 22 connected to the network 2 using the Ethernet port 302.

設定部311は、CGIやGUI等のインターフェースを有している。例えば、設定部311は、CGIやGUIを用いた設定画面をモニタ等の表示部に表示する。また、ユーザは、そのCGI又はGUIによる設定画面を見ながら、仮想ターミナル装置3の設定操作を行う。そして、設定部311は、ユーザの設定操作に従って、仮想ターミナルテーブル318を設定するようにしてもよい。   The setting unit 311 has an interface such as CGI or GUI. For example, the setting unit 311 displays a setting screen using CGI or GUI on a display unit such as a monitor. In addition, the user performs a setting operation of the virtual terminal device 3 while viewing the setting screen using the CGI or GUI. Then, the setting unit 311 may set the virtual terminal table 318 in accordance with a user setting operation.

また、設定部311は、IPアドレス(例えば、192.168.0.254 )を有する。この場合、ユーザ端末(端末11,12,21,22)は、その設定部311のIPアドレスを指定して、CGIやGUI等のインターフェース(例えば、仮想ターミナルテーブル318の情報を表示可能な表示画面)にアクセスして、送信先端末のIPアドレスを取得することができる。   The setting unit 311 has an IP address (for example, 192.168.0.254). In this case, the user terminal (terminal 11, 12, 21, 22) designates the IP address of the setting unit 311 and displays an interface such as CGI or GUI (for example, information on the virtual terminal table 318). ) To obtain the IP address of the destination terminal.

すなわち、設定部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 setting unit 311 connects the terminals 11 and 12 connected to the network 1 (or the terminals 21 and 22 connected to the network 2) to the terminals 21 and 22 connected to the second network 2 (or the network 1). When communicating with the terminals 11 and 12, the virtual IP addresses that can be acquired when the terminals 21 and 22 (or the terminals 11 and 12) acquire an IP address on the network 1 (or network 2) side are specified. It has a function. The setting unit 311 has a function of transmitting the specified virtual IP address to the terminals 11 and 12 (or the terminals 21 and 22). For example, the setting unit 311 extracts the IP address of the destination terminal from the virtual terminal table 318 in response to a request from the terminals 11, 12, 21, and 22, and sends it to the requesting terminals 11, 12, 21, and 22. A function to transmit is provided.

また、設定部311は、ユーザ端末にIPパケットを送信する場合、ユーザ端末から受信するフレームの入力ポートを他のポート(入力ポート以外のポート)に変換し、送信フレームとともにフレーム制御部317に送信(出力)する機能を備える。   When transmitting an IP packet to the user terminal, the setting unit 311 converts the input port of the frame received from the user terminal to another port (a port other than the input port), and transmits the frame to the frame control unit 317 together with the transmission frame. (Output) function is provided.

フレーム識別部312は、イーサネットポート301,302から受信するフレームの解析を行う機能を備える。この場合、まず、フレーム識別部312は、受信したフレームにIPヘッダが含まれるか否かを判断する。IPヘッダが含まれる場合、フレーム識別部312は、受信したフレームに含まれるIPDAが設定部311がもつIPアドレスと同じであれば、受信したフレームを設定部311に転送する。また、設定部311がもつIPアドレス以外のIPアドレスである場合、フレーム識別部312は、受信フレームの入力ポート情報とともに、受信フレームをIPDA変換部313に送信(出力)する。   The frame identification unit 312 has a function of analyzing frames received from the Ethernet ports 301 and 302. In this case, first, the frame identification unit 312 determines whether or not an IP header is included in the received frame. When the IP header is included, the frame identifying unit 312 transfers the received frame to the setting unit 311 if the IPDA included in the received frame is the same as the IP address of the setting unit 311. If the IP address is other than the IP address of the setting unit 311, the frame identification unit 312 transmits (outputs) the received frame to the IPDA conversion unit 313 together with the input port information of the received frame.

IPヘッダが含まれない場合、フレーム識別部312は、受信フレームのタイプ情報を検出し、タイプ情報でARP(Address Resolution Protocol)が示される場合、受信フレームの入力ポート情報とともに、受信フレームをARPDA制御部315に送信する。ARPを示すタイプ情報をもつフレーム以外のフレームである場合、フレーム識別部312は、受信フレームの入力ポート情報とともに、受信フレームをフレーム制御部317に送信(出力)する。   When the IP header is not included, the frame identification unit 312 detects the type information of the received frame. When the type information indicates ARP (Address Resolution Protocol), the frame identification unit 312 controls the received frame together with the input port information of the received frame. To the unit 315. In the case of a frame other than a frame having type information indicating ARP, the frame identifying unit 312 transmits (outputs) the received frame to the frame control unit 317 together with the input port information of the received frame.

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 IPDA conversion unit 313 has a function of acquiring (extracting) IPDA information based on the IP header of a frame received (input) from the frame identification unit 312. The IPDA conversion unit 313 has a function of searching the virtual terminal table 318 based on the acquired IPDA information and the input port information of the received frame. The IPDA conversion unit 313 has a function of converting the IPDA information of the received frame using the search result of the virtual terminal table 318. The IPDA conversion unit 313 has a function of transferring the received frame to the IPSA conversion unit 314 together with the input port information of the received frame after the conversion. That is, when data is received from the IPDA conversion unit 313 and the terminals 11 and 12 (or terminals 21 and 22), the virtual IP addresses of the terminals 21 and 22 (or terminals 11 and 12) as transmission destinations included in the received data are The terminal 21 or 22 (or the terminal 11 or 12) has a function of converting into an actual IP address used in the network 2 (or network 1).

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 IPSA conversion unit 314 has a function of acquiring (extracting) IPSA information based on the IP header of a frame received (input) from the IPDA conversion unit 313. The IPSA conversion unit 314 has a function of searching the virtual terminal table 318 based on the acquired IPSA information and the input port information of the received frame. The IPSA conversion unit 314 has a function of converting the IPSA information of the received frame using the search result of the virtual terminal table 318. The IPSA conversion unit 314 has a function of transferring the received frame to the frame control unit 317 together with the input port information of the received frame after the conversion. That is, when the IPSA conversion unit 314 receives data from the terminals 11 and 12 (or the terminals 21 and 22), the IP address of the terminals 11 and 12 (or the terminals 21 and 22) as the transmission source included in the received data is When the terminals 11 and 12 (or the terminals 21 and 22) acquire an IP address on the network 2 (or network 1) side, the terminal 11 and 12 (or the terminals 21 and 22) have a function of converting to a virtual IP address that can be acquired.

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 frame identification unit 312. Further, the ARPDA conversion unit 315 has a function of searching the virtual terminal table 318 based on the acquired IPDA information and the input port information of the received frame. Further, the ARPDA conversion unit 315 has a function of converting IPDA information in the ARP data of the received frame using the search result of the virtual terminal table 318. The ARPDA converter 315 has a function of transferring the received frame to the ARPSA converter 316 together with the input port information of the received frame after the conversion. That is, when data is received from the IPDA conversion unit 313 and the terminals 11 and 12 (or terminals 21 and 22), the virtual IP addresses of the terminals 21 and 22 (or terminals 11 and 12) as transmission destinations included in the received data are The terminal 21 or 22 (or the terminal 11 or 12) has a function of converting into an actual IP address used in the network 2 (or network 1).

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 ARPSA conversion unit 316 has a function of acquiring (extracting) IPSA information from the ARP data based on the ARP data portion of the frame received (input) from the ARPDA conversion unit 315. In addition, the ARPSA conversion unit 316 has a function of searching the virtual terminal table 318 based on the acquired IPSA information and the input port information of the received frame. Further, the ARPSA conversion unit 316 has a function of converting IPSA information in the ARP data of the received frame using the search result of the virtual terminal table 318. The ARPSA converter 316 has a function of transferring the received frame to the frame controller 317 together with the input port information of the received frame after the conversion. That is, when the IPSA conversion unit 314 receives data from the terminals 11 and 12 (or the terminals 21 and 22), the IP address of the terminals 11 and 12 (or the terminals 21 and 22) as the transmission source included in the received data is When the terminals 11 and 12 (or the terminals 21 and 22) acquire an IP address on the network 2 (or network 1) side, the terminal 11 and 12 (or the terminals 21 and 22) have a function of converting to a virtual IP address that can be acquired.

フレーム制御部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 setting unit 311, the frame identification unit 312, the IPSA conversion unit 314 conversion unit, the ARPSA conversion unit 316, or the like to a port other than the input port that received the received frame. Is provided. For example, when the received frame is data received at the Ethernet port 301, the frame control unit 317 transfers the received frame to the Ethernet port 302. For example, when the received frame is data received at the Ethernet port 302, the frame control unit 317 transfers the received frame to the Ethernet port 301.

仮想ターミナルテーブル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 terminal device 3. FIG. 3 is an explanatory diagram showing an example of the virtual terminal table 318. As shown in FIG. 3, the virtual terminal table 318 includes the input port of the received frame, the original IP address information (IP address before conversion) of the received frame, and new IP address information (IP address after conversion). Include in correspondence.

すなわち、仮想ターミナルテーブル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 terminals 11 and 12 in the network 1 and the virtual IP address that can be acquired when the terminals 11 and 12 acquire the IP address temporarily on the network 2 side. In addition, the actual IP address used by the terminals 21 and 22 in the network 2 and the virtual IP address that can be acquired if the terminals 21 and 22 acquire the IP address on the network 1 side are associated with each other. . Based on the virtual terminal table 318, the IPSA conversion unit 314 and the ARPSA conversion unit 316 convert the IP addresses of the terminals 11 and 12 (or the terminals 21 and 22) included in the received data into virtual IP addresses. To do. Further, the IPDA conversion unit 313 and the ARPDA conversion unit 315 convert the virtual IP addresses of the terminals 21 and 22 (or the terminals 11 and 12) as the transmission destination included in the received data based on the virtual terminal table 318 to the terminals 21 and 21. 22 (or terminals 11 and 12) are converted into actual IP addresses.

本実施の形態では、仮想ターミナルテーブル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 IPDA conversion unit 313, the IPSA conversion unit 314, the ARPDA conversion unit 315, and the ARPSA conversion unit 316 perform processing for converting the IP header of the received frame or the IP information of the ARP data. Used when. The virtual terminal table 318 is created based on information of the networks 1 and 2 and the terminals 11, 12, 13, 14 registered in advance by an administrator who manages the network system using the virtual terminal device 3, for example. And stored in the storage device of the virtual terminal device 3. Further, for example, the virtual terminal table 318 is generated by the virtual terminal device 3 based on the information of the networks 1 and 2 and the terminals 11, 12, 13, and 14 registered in advance and stored in the storage device of the virtual terminal device 3. It may be stored.

以下、図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 terminals 11 and 12 connected to the network 1 on the Ethernet port 301 side are set (1 in FIG. 3). (See first and second record). In the field of the original IP address for the input port 301, the IP that can be acquired when the terminals 21 and 22 connected to the network 2 on the Ethernet port 302 side acquire the IP address on the network 1 side temporarily. Addresses are set (see the third and fourth records in FIG. 3).

例えば、元の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 terminals 11 and 12 connected to the network 1 are set as the original IP information regarding the input port 301. Yes. In the field of the original IP address, as the original IP information regarding the input port 301, the IP addresses “192.168.0.3” and “192.168. 0.4 "is set.

また、図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 terminals 11 and 12 connected to the network 1 are displayed. IP addresses “192.168.0.3” and “192.168.0.4” that can be acquired when the IP address is temporarily acquired on the network 2 side are set. Also, the IP addresses “192.168.0.1” and “192.168.0.2” of the terminals 21 and 22 connected to the network 2 are set.

同様に、図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 terminals 21 and 22 connected to the network 2 on the Ethernet port 302 side is set in the entry related to the input port (Ethernet port) 302 (the fifth item in FIG. 3). And the sixth record). In the entry related to the input port 302, an IP address that can be acquired when the terminals 11 and 12 connected to the network 1 on the Ethernet port 301 side acquire an IP address on the network 2 side is set. (Refer to the seventh and eighth records in FIG. 3).

例えば、入力ポート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 terminals 21 and 22 connected to the network 2 are set in the original IP information field regarding the input port 302. In the field of the original IP information related to the input port 302, IP addresses “192.168.0.3” and “192.168.0.4” that can be obtained by the network 11 by the terminals 11 and 12 connected to the network 1 are set. Yes.

また、図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 terminals 21 and 22 connected to the terminal network 2 are connected to the network 1 side. If IP addresses are acquired, IP addresses “192.168.0.3” and “192.168.0.4” that can be acquired are set. In addition, the IP addresses “192.168.0.1” and “192.168.0.2” of the terminals 11 and 12 connected to the network 1 are set.

なお、本実施の形態において、仮想ターミナル装置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 terminal device 3 is realized by an information processing device such as a personal computer, the storage device of the virtual terminal device 3 communicates between terminals connected to a network having the same IP address system. The various programs for relaying are stored. For example, when the first terminal connected to the first network communicates with the second terminal connected to the second network, the storage device of the virtual terminal device 3 has the second terminal connected to the computer. A process of specifying a virtual IP address that can be acquired when an IP address is acquired on the first network side, a process of transmitting the specified virtual IP address to the first terminal, and data from the first terminal Is received, the IP address of the first terminal as a transmission source included in the received data is converted into a virtual IP address that can be acquired when the first terminal temporarily acquires an IP address on the second network side. And when receiving data from the first terminal, the second terminal sets the virtual IP address of the second terminal as the transmission destination included in the received data to the second network. Storing a communication program for executing a process of converting the real IP address for use in chromatography click.

次に、動作について説明する。図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 terminal device 3 performs address conversion between the terminals 11 and 21 and relays communication. FIG. 5 is an explanatory diagram showing an example of a frame format transmitted / received between the terminals 11 and 21. Hereinafter, the system operation of the network system using the virtual terminal device 3 will be described using the sequence diagram shown in FIG. 4 and the frame format shown in FIG. In this embodiment, as an example, a case where communication is performed between the terminal 11 connected to the network 1 and the terminal 21 connected to the network 2 is described. However, communication with the terminal 12 and the terminal 22 is described. The same applies when performing the above.

端末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 terminal device 3 according to a user operation. Then, the terminal 11 inquires about the IP address in the network 1 of the terminal 21 connected to the network 2 (an IP address that can be acquired when the terminal 21 acquires temporarily in the network 1) (step S101). For example, the terminal 11 transmits an address request packet for requesting an IP address in the network 1 of the terminal 21 to the virtual terminal device 3.

すると、仮想ターミナル装置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 setting unit 311 of the virtual terminal device 3 refers to the virtual terminal table 318. In this case, the setting unit 311 first sets the IP address (address after IP conversion “address” after the IP address of the terminal 21 connected to the network 2 (address “192.168.0.1” on the port 2 side)). Search and extract 192.168.0.3 "). Then, the setting unit 311 responds (transmits) the extracted IP address (the address “192.168.0.3” after IP conversion) to the terminal 11 as a search result of the virtual terminal table 318 (step S102).

次に、端末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 ARP request packet 603 to the virtual terminal device 3 (step S103).

仮想ターミナル装置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 terminal device 3 searches the virtual terminal table 318 (see FIG. 3). Then, the virtual terminal device 3 performs a predetermined conversion process on the received ARP request packet, changes it to the converted ARP request packet 604, and transfers it to the terminal 21 (step S104). Specifically, the virtual terminal device 3 converts the IPDA in the ARP data of the ARP request packet from “192.168.0.3” to “192.168.0.1” and also changes the IPSA from “192.168.0.1” to “192.168.0.3”. Is converted into a post-conversion ARP request packet 604 and transferred.

次に、端末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 ARP response packet 605 for responding to the post-conversion ARP request packet. Then, the terminal 21 transmits to the destination terminal (that is, the terminal 11) whose IP address is “192.168.0.3” based on the IP address included in the received converted ARP request packet (step S105).

仮想ターミナル装置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 ARP response packet 605, the virtual terminal device 3 refers to the virtual terminal table 318. Then, the virtual terminal device 3 performs a predetermined conversion process on the received ARP response packet 606, converts it into a converted ARP response packet, and forwards it to the terminal 11 (step S106). Specifically, the virtual terminal device 3 converts the IPDA in the ARP data of the ARP response packet from “192.168.0.3” to “192.168.0.1” and also changes the IPSA from “192.168.0.1” to “192.168.0.3”. Is converted into an ARP response packet after conversion and transferred.

次に、端末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 terminal 21 is stored in the transmitting terminal 11, and an IP packet can be transmitted from the terminal 11 to the terminal 21.

次に、実際に端末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 IP packet 607 with IPSA" 192.168.0.1 "is generated. Then, the terminal 11 transmits the generated IP packet to the virtual terminal device 3 (step S107).

仮想ターミナル装置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 terminal device 3 refers to the virtual terminal table 318. Then, the virtual terminal device 3 performs a predetermined conversion process on the received IP packet, changes the IP packet to the converted IP packet 608, and transfers the IP packet to the terminal 21 (step S108). Specifically, the virtual terminal device 3 converts the IPDA of the IP packet from “192.168.0.3” to “192.168.0.1” and converts the IPSA from “192.168.0.1” to “192.168.0.3”. The converted IP packet is transferred after being converted.

逆に、端末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 IP packet 609 with “0.1” is generated. Then, the terminal 21 transmits the generated IP packet to the virtual terminal device 3 (step S109).

仮想ターミナル装置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 terminal device 3 refers to the virtual terminal table 318. Then, the virtual terminal device 3 performs a predetermined conversion process on the received IP packet, changes it to the converted IP packet 610, and transfers it to the terminal 11 (step S110). Specifically, the virtual terminal device 3 converts the IPDA of the IP packet from “192.168.0.3” to “192.168.0.1” and also converts the IPSA from “192.168.0.1” to “192.168.0.3”. The converted IP packet is transferred after being converted.

以上のように、本実施の形態によれば、同一の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 terminal device 3 does not receive only the Ethernet frame addressed to itself from the first network (for example, the network 1), but all the Ethernet frames transmitted to the second network (for example, the network 2). Receive.

また、プロトコルタイプがIPである場合、仮想ターミナル装置3のIPDA変換部313は、送信先IPアドレスを、送信先端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。また、IPSA変換部314は、送信元IPアドレスを、送信元端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。   Further, when the protocol type is IP, the IPDA conversion unit 313 of the virtual terminal device 3 obtains the transmission destination IP address when the transmission destination terminal temporarily obtains the IP address on the second network side. Convert to address. The IPSA conversion unit 314 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変換部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 ARPSA conversion unit 316 converts the transmission source IP address into an IP address that can be acquired when the transmission source terminal temporarily acquires an IP address on the second network network side.

そして、仮想ターミナル装置3は、上記に示した変換後の各イーサネットフレームを入力ポート以外のポートに転送する。   Then, the virtual terminal device 3 transfers each Ethernet frame after conversion shown above to a port other than the input port.

従来、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 layer 2 level cannot be performed between networks using the same IP address system.

これに対し、本実施の形態によれば、上記の構成を備えることによって、同一の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 layer 2 and layer 3 levels can be performed.

また、本実施の形態によれば、複数の端末が接続されている同一の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 terminal device 3 does not convert the IP address of the received frame itself based on the IP address set for the Ethernet port, but manages the virtual IP address when each terminal performs communication. Therefore, the virtual terminal device 3 uses a virtual terminal table. 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変換部313とARPDA変換部315は、受信フレームの入力ポートと受信フレームに含まれている送信先IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信先IPアドレス情報を変換する。また、IPSA変換部314とARPSA変換部316は、受信フレームの入力ポートと受信フレームに含まれている送信元IPアドレス情報とを用いて、仮想ターミナルテーブルを検索した結果に基づいて、送信元IPアドレス情報を変換する。   The IPDA conversion unit 313 and the ARPDA conversion unit 315 use the input port of the reception frame and the transmission destination IP address information included in the reception frame, and based on the result of searching the virtual terminal table, transmission destination IP address information Convert. Also, the IPSA conversion unit 314 and the ARPSA conversion unit 316 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, Convert address information.

従来の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 setting unit 311 of the virtual terminal device 3 has an interface such as CGI or GUI using a fixed IP address. In addition, the setting unit 311 has means 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.

従来、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とを含む。
Embodiment 2. FIG.
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 layer 2 and layer 3 communication between networks of three or more identical IP address systems. FIG. 6 is a block diagram illustrating a configuration example of a network system using the communication device according to the second embodiment of the present invention. As shown in FIG. 6, in the present embodiment, the network system includes a network 1, a network 2, a network 8, and a virtual terminal device 3.

本実施の形態では、ネットワーク1,2,8は、同一のIPアドレス体系をもつネットワークある。例えば、各ネットワーク1,2,8のIPアドレス体系は、ともに「192.168.0.1/24」であるとする。   In the present embodiment, the networks 1, 2, and 8 are networks having the same IP address system. For example, it is assumed that the IP address systems of the networks 1, 2, and 8 are both “192.168.0.1/24”.

ネットワーク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 terminals 11 and 12. The IP address of the terminal 11 is “192.168.0.1”, and the IP address of the terminal 12 is “192.168.0.2”. 6 shows a case where the network 1 includes two terminals 11 and 12. However, the number of terminals is not limited to two. For example, the network 1 may include three or more terminals. The terminals 11 and 12 are specifically realized by an information processing terminal such as a personal computer.

ネットワーク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 network 2 includes terminals 21 and 22. Further, it is assumed that the IP address of the terminal 21 is “192.168.0.1” and the IP address of the terminal 22 is “192.168.0.2”. 6 shows a case where the network 2 includes two terminals 21 and 22. However, the number of terminals is not limited to two. For example, the network 2 may include three or more terminals. The terminals 21 and 22 are specifically realized by an information processing terminal such as a personal computer.

ネットワーク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 network 8 includes terminals 81 and 82. Further, it is assumed that the IP address of the terminal 81 is “192.168.0.1” and the IP address of the terminal 82 is “192.168.0.2”. 6 shows a case where the network 8 includes two terminals 81 and 82, the number of terminals is not limited to two. For example, the network 8 may include three or more terminals. The terminals 81 and 82 are specifically realized by an information processing terminal such as a personal computer.

図7は、第2の実施の形態における仮想ターミナル装置3の構成例を示すブロック図である。なお、図7において、図2に示す仮想ターミナル装置3の構成要素と同じ構成要素には同じ符号を付し、その説明を省略する。   FIG. 7 is a block diagram illustrating a configuration example of the virtual terminal device 3 according to the second embodiment. In FIG. 7, the same components as those of the virtual terminal device 3 shown in FIG.

図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 terminal device 3 includes Ethernet ports 301, 302, and 303, a setting unit 311, a frame identification unit 312, an IPDA conversion unit 323, an IPSA conversion unit 324, an ARPDA conversion unit 325, an ARPSA conversion unit 326, A frame control unit 327, an IPDA conversion table 3281, and an IPSA conversion table 3282 are included.

イーサネットポート303は、第1の実施の形態で示したイーサネットポート301,302と同様のインターフェース部である。具体的には、イーサネットポート303は、ネットワーク8と接続するインターフェース部である。仮想ターミナル装置3において、イーサネットポート303から受信するフレームは、フレーム識別部312に転送される。また、フレーム制御部327からイーサネットポート303に送信(出力)されるフレームは、イーサネットポート303を経由してネットワーク8に転送される。すなわち、仮想ターミナル装置3は、イーサネットポート303を用いて、ネットワーク8に接続されている端末81,82にフレーム(データ)を送信する。   The Ethernet port 303 is an interface unit similar to the Ethernet ports 301 and 302 shown in the first embodiment. Specifically, the Ethernet port 303 is an interface unit connected to the network 8. In the virtual terminal device 3, the frame received from the Ethernet port 303 is transferred to the frame identification unit 312. A frame transmitted (output) from the frame control unit 327 to the Ethernet port 303 is transferred to the network 8 via the Ethernet port 303. That is, the virtual terminal device 3 transmits a frame (data) to the terminals 81 and 82 connected to the network 8 using the Ethernet port 303.

設定部321は、CGIやGUI等のインターフェースを有している。例えば、設定部321は、CGIやGUIを用いた設定画面をモニタ等の表示部に表示する。また、ユーザは、そのCGI又はGUIをによる設定画面を見ながら、仮想ターミナル装置3の設定操作を行う。そして、設定部321は、ユーザの設定操作に従って、IPDA変換テーブル3281やIPSA変換テーブル3282を設定するようにしてもよい。   The setting unit 321 has an interface such as CGI or GUI. For example, the setting unit 321 displays a setting screen using CGI or GUI on a display unit such as a monitor. Further, the user performs a setting operation of the virtual terminal device 3 while viewing the setting screen using the CGI or GUI. Then, the setting unit 321 may set the IPDA conversion table 3281 and the IPSA conversion table 3282 in accordance with a user setting operation.

また、ユーザ端末(端末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 (terminal 11, 12, 21, 22, 81, 82) designates the IP address of the setting unit 321 and stores information on CGI and GUI (for example, information on the IPDA conversion table 3281 and the IPSA conversion table 3282). The IP address of the destination terminal can be obtained by accessing an interface such as a display screen that can be displayed. For example, the setting unit 321 extracts the IP address of the transmission destination terminal from the IPDA conversion table 3281 and the IPSA conversion table 3282 in response to a request from the terminals 11, 12, 21, 22, 81, and 82. A function of transmitting to the terminals 11, 12, 21, 22, 81, 82 is provided.

また、設定部321は、ユーザ端末にIPパケットを送信する場合、ユーザ端末から受信するフレームの入力ポートを出力ポートとし、送信フレームとともにフレーム制御部327に送信(出力)する機能を備える。   The setting unit 321 has a function of transmitting (outputting) an IP packet to the frame control unit 327 together with the transmission frame, using an input port of a frame received from the user terminal as an output port when transmitting an IP packet to the user terminal.

IPDA変換部323は、まずフレーム識別部312から受信(入力)するフレームのIPヘッダに基づいて、IPDA情報を取得(抽出)する機能を備える。また、IPDA変換部323は、取得したIPDA情報及び受信フレームの入力ポート情報に基づいて、IPDA変換テーブル3281を検索する機能を備える。また、IPDA変換部323は、その検索後、IPDA変換テーブル3281の検索結果を用いて、受信フレームのIPDA情報を変換する機能を備える。また、IPDA変換部323は、受信フレームの入力ポート情報及び検索した出力ポート情報とともに、受信フレームをIPSA変換部314に転送する機能を備える。   The IPDA conversion unit 323 has a function of acquiring (extracting) IPDA information based on an IP header of a frame received (input) from the frame identification unit 312 first. Further, the IPDA conversion unit 323 has a function of searching the IPDA conversion table 3281 based on the acquired IPDA information and the input port information of the received frame. Further, after the search, the IPDA conversion unit 323 has a function of converting the IPDA information of the received frame using the search result of the IPDA conversion table 3281. The IPDA conversion unit 323 has a function of transferring the received frame to the IPSA conversion unit 314 together with the input port information of the received frame and the searched output port information.

なお、もし受信フレームの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 IPDA conversion unit 323 does not change (convert) the IPDA information. The IPDA conversion unit 323 then transfers the received frame to the IPSA conversion unit 314 together with the received frame and the input port information, using all ports other than the input port of the received frame as output ports.

IPSA変換部324は、IPDA変換部323から受信(入力)するフレームのIPヘッダに基づいて、IPSA情報を取得(抽出)する機能を備える。また、IPSA変換部324は、取得したIPSA情報と、IPDA変換部323から受信(入力)した受信フレームの入力ポート及び出力ポート情報とに基づいて、IPSA変換テーブル3282を検索する機能を備える。また、IPSA変換部324は、その検索後、IPSA変換テーブル3282の検索結果を用いて、受信フレームのIPSA情報を変換する機能を備える。また、IPSA変換部324は、受信フレームの出力ポート情報とともに、受信フレームをフレーム制御部327に転送する機能を備える。   The IPSA conversion unit 324 has a function of acquiring (extracting) IPSA information based on the IP header of a frame received (input) from the IPDA conversion unit 323. The IPSA conversion unit 324 has a function of searching the IPSA conversion table 3282 based on the acquired IPSA information and the input port and output port information of the received frame received (input) from the IPDA conversion unit 323. The IPSA conversion unit 324 has a function of converting the IPSA information of the received frame using the search result of the IPSA conversion table 3282 after the search. The IPSA conversion unit 324 has a function of transferring the received frame to the frame control unit 327 together with the output port information of the received frame.

ARPDA変換部325は、フレーム識別部312から受信(入力)するフレームのARPデータ部分に基づいて、ARPデータの中からIPDA情報を取得(抽出)する機能を備える。また、ARPDA変換部325は、取得したIPDA情報と、受信フレームの入力ポート情報とに基づいて、IP変換テーブル3281を検索する機能を備える。また、ARPDA変換部325は、その検索後、IPDA変換テーブル3281の検索結果を用いて、受信フレームのARPデータ中のIPDA情報を変換する機能を備える。また、ARPDA変換部325は、受信フレームの入力ポート情報及び検索した出力ポート情報とともに、受信フレームをARPSA変換部326に転送する機能を備える。   The ARPDA conversion unit 325 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 frame identification unit 312. Further, the ARPDA conversion unit 325 has a function of searching the IP conversion table 3281 based on the acquired IPDA information and the input port information of the received frame. In addition, the ARPDA conversion unit 325 has a function of converting IPDA information in the ARP data of the received frame using the search result of the IPDA conversion table 3281 after the search. The ARPDA converter 325 has a function of transferring the received frame to the ARPSA converter 326 together with the input port information of the received frame and the searched output port information.

ARPSA変換部326は、ARPDA変換部325から受信(入力)するフレームのARPデータ部分に基づいて、ARPデータの中からIPSA情報を取得(抽出)する機能を備える。また、ARPSA変換部326は、取得したIPSA情報と、ARPDA変換部325から受信した入力ポート及び出力ポート情報とに基づいて、IPSA変換テーブル3282を検索する機能を備える。また、ARPSA変換部326は、IPSA変換テーブル3282の検索結果を用いて、受信フレームのARPデータ中のIPSA情報を変換する機能を備える。また、ARPSA変換部326は、受信フレームの出力ポート情報とともに、受信フレームをフレーム制御部327に転送する機能を備える。   The ARPSA conversion unit 326 has a function of acquiring (extracting) IPSA information from ARP data based on the ARP data portion of the frame received (input) from the ARPDA conversion unit 325. The ARPSA conversion unit 326 also has a function of searching the IPSA conversion table 3282 based on the acquired IPSA information and the input port and output port information received from the ARPDA conversion unit 325. The ARPSA conversion unit 326 has a function of converting IPSA information in the ARP data of the received frame using the search result of the IPSA conversion table 3282. The ARPSA conversion unit 326 has a function of transferring the received frame to the frame control unit 327 together with the output port information of the received frame.

フレーム制御部327は、設定部321やフレーム識別部312、IPSA変換部324変換部、ARPSA変換部326等から受信(入力)するフレームを、受信フレームの出力ポートに転送する機能を備える。   The frame control unit 327 has a function of transferring a frame received (input) from the setting unit 321, the frame identification unit 312, the IPSA conversion unit 324 conversion unit, the ARPSA conversion unit 326, and the like to the output port of the received frame.

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 terminal device 3. FIG. 8 is an explanatory diagram showing an example of the IPDA conversion table 3281. The IPDA conversion table 3281 is stored in the networks 1, 2, 8 and the terminals 11, 12, 13, 14, 81, 82 registered in advance by an administrator who manages the network system using the virtual terminal device 3, for example. And is stored in the storage device of the virtual terminal device 3. Further, for example, the IPDA conversion table 3281 is generated by the virtual terminal device 3 based on the information of the networks 1, 2, 8 and the terminals 11, 12, 13, 14, 81, 82 registered in advance. It may be stored in the storage device of the device 3.

以下、図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 (terminals 21, 22, 81, 82) connected to the Ethernet ports 302 and 303 other than the Ethernet port 301 are connected to the network 1 side. If an IP address is acquired, an IP address that can be acquired is set.

例えば、元の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 network 21 by the terminal 21 connected to the network 2 is set. In the original IPDA information field, an IP address “192.168.0.4” that can be acquired by the terminal 81 connected to the network 8 in the network 1 is set.

また、図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, ports 302 and 303) to which terminals (for example, terminals 21 and 81) corresponding to the IPDA information described above are connected. The IPDA converted field contains the original IP address of the terminal (for example, “192.168.0.1”).

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 terminal device 3. FIG. 9 is an explanatory diagram showing an example of the IPSA conversion table 3282. Note that the IPSA conversion table 3282 is stored in the networks 1, 2, 8 and the terminals 11, 12, 13, 14, 81, 82 registered in advance by an administrator who manages the network system using the virtual terminal device 3, for example. And is stored in the storage device of the virtual terminal device 3. Further, for example, the IPSA conversion table 3282 is generated by the virtual terminal device 3 based on the information of the networks 1, 2, 8 and the terminals 11, 12, 13, 14, 81, 82 registered in advance. It may be stored in the storage device of the device 3.

以下、図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 input port 301, the IP addresses of the terminals 11 and 12 of the network 1 are set in the IPSA information field, and the ports 302 and 303 other than the input port are set in the output port information field.

また、図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 frame identification unit 312 and the Ethernet ports 301 and 302 are the same as those described in the first embodiment. In the present embodiment, the basic operation in which the virtual terminal apparatus 3 relays communication by performing address conversion between the terminals 11, 12, 21, 22, 81, 82 is the same as that of the first embodiment. It is the same as the operation shown.

以上のように、本実施の形態によれば、仮想ターミナル装置3は、自ノード宛のイーサネットフレームのみを受信するのではなく、第2のネットワーク(又は第3のネットワーク(例えば、ネットワーク8))に送信される全てのイーサネットフレームを受信し、受信フレームのプロトコルタイプを識別する。   As described above, according to the present embodiment, the virtual terminal device 3 does not receive only the Ethernet frame addressed to itself, but the second network (or the third network (for example, the network 8)). All Ethernet frames sent to the are received and the protocol type of the received frame is identified.

また、プロトコルタイプがIPである場合、仮想ターミナル装置3のIPDA変換部323は、送信先IPアドレスを、送信先端末が第2のネットワーク(又は第3のネットワーク)側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。また、IPSA変換部324は、送信元IPアドレスを、送信元端末が第2のネットワーク(又は第3のネットワーク)側で仮にIPアドレスを取得するとした場合に取得可能なIPアドレスに変換する。   When the protocol type is IP, the IPDA conversion unit 323 of the virtual terminal device 3 obtains the transmission destination IP address and the transmission destination terminal temporarily acquires the IP address on the second network (or third network) side. If the IP address is converted to an IP address that can be acquired. The IPSA conversion unit 324 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 (or third network) side.

また、プロトコルタイプが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 ARPDA conversion unit 325 temporarily sets the destination IP address included in the ARP data, and the destination terminal temporarily sets the IP address on the second network (or third network) side. If it is acquired, it is converted to an IP address that can be acquired. The ARPSA conversion unit 326 converts the transmission source IP address into an IP address that can be acquired when the transmission source terminal temporarily acquires an IP address on the second network (or third network) side.

そして、仮想ターミナル装置3は、上記に示した変換後の各イーサネットフレームを出力ポートに転送する。   Then, the virtual terminal device 3 transfers each Ethernet frame after the above conversion to the output port.

従来、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 layer 2 level cannot be performed between networks using the same IP address system.

これに対し、本実施の形態によれば、上記の構成を備えることによって、同一の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 layer 2 and layer 3 levels can be performed without the need to change the internal settings of the terminal using a communication device provided in between.

また、本実施の形態によれば、仮想ターミナル装置3は、イーサネットポートに設定されたIPアドレスに基づいて、受信フレーム自身のIPアドレスを変換するのではなく、各端末が通信を行う場合の仮想的なIPアドレスを管理する。そのため、仮想ターミナル装置3は、IPDA変換テーブルとIPSA変換テーブルとを用いる。   Further, according to the present embodiment, the virtual terminal device 3 does not convert the IP address of the received frame itself based on the IP address set in the Ethernet port, but in the case where each terminal performs communication. A common IP address. Therefore, the virtual terminal device 3 uses an IPDA conversion table and an IPSA conversion table.

この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 IPDA conversion unit 323 and the ARPDA conversion unit 324 convert 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. Get the output port. Further, the IPSA conversion unit 325 and the ARPSA conversion unit 326 use the input port and output port in the received frame and the source IP address information included in the received frame, based on the result of searching the IPSA conversion table, The source IP address information is converted.

そして、仮想ターミナル装置3のフレーム制御部327は、受信フレームを出力ポートに転送する。   Then, the frame control unit 327 of the virtual terminal device 3 transfers the received frame to the output port.

従来の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 setting unit 321 has an interface such as CGI or GUI using a fixed IP address. In addition, the setting unit 321 includes means 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.

従来、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.

本発明による通信装置を用いたネットワークシステムの構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the network system using the communication apparatus by this invention. 仮想ターミナル装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of a virtual terminal device. 仮想ターミナルテーブルの一例を示す説明図である。It is explanatory drawing which shows an example of a virtual terminal table. 仮想ターミナル装置が端末間のアドレス変換を行って通信を中継する処理の一例を示すシーケンス図である。It is a sequence diagram which shows an example of the process in which a virtual terminal device performs address conversion between terminals, and relays communication. 端末間で送受信されるフレームフォーマットの例を示す説明図である。It is explanatory drawing which shows the example of the frame format transmitted / received between terminals. 第2の実施の形態における通信装置を用いたネットワークシステムの構成例を示すブロック図である。It is a block diagram which shows the structural example of the network system using the communication apparatus in 2nd Embodiment. 第2の実施の形態における仮想ターミナル装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the virtual terminal device in 2nd Embodiment. IPDA変換テーブルの一例を示す説明図である。It is explanatory drawing which shows an example of an IPDA conversion table. IPSA変換テーブルの一例を示す説明図である。It is explanatory drawing which shows an example of an IPSA conversion table. 同一のIPアドレスを用いる各ネットワークに接続されたNATルータを対称的に配置して設置する方法の例を示す説明図である。It is explanatory drawing which shows the example of the method of arrange | positioning symmetrically arrange | positioning the NAT router connected to each network using the same IP address. IP変換装置を用いたシステムの構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the system using an IP converter.

符号の説明Explanation of symbols

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 Network 3 Virtual terminal device 11, 12, 21, 22, 81, 82 Terminals 301, 302, 303 Ethernet port 311, 321 Setting unit 312 Frame identification unit 313, 323 IPDA conversion unit 314, 324 IPSA conversion unit 315, 325 ARPDA conversion unit 316, 326 ARPSA conversion unit 317, 327 Frame control unit 318 Virtual terminal table 3281 IPDA conversion table 3282 IPSA conversion table

Claims (16)

同一の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 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の端末が第1のネットワークで用いる現実のIPアドレスと、前記第1の端末が第2のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスとを対応付けて含むとともに、前記第2の端末が前記第2のネットワークで用いる現実のIPアドレスと、前記第2の端末が前記第1のネットワーク側で仮にIPアドレスを取得するとした場合に取得可能な仮想IPアドレスとを対応付けて含む仮想アドレス対応テーブルを備え、
送信側アドレス変換手段は、前記仮想アドレス対応テーブルに基づいて、受信データに含まれる送信元としての前記第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アドレスを変更せずに、端末間をレイヤ2及びレイヤ3レベルにおいて通信可能とする手段を備えたことを特徴とする通信装置。   Means for enabling communication between terminals at the layer 2 and layer 3 levels without changing the default IP address of the terminals when connecting between networks having the same IP address system to which a plurality of terminals are connected A communication apparatus comprising: 複数の端末が接続されている同一の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変換部と、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送するフレーム制御部とを
備えたことを特徴とする通信装置。
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.
第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アドレス情報を変換する
請求項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アドレスを用いるCGI又はGUIによる仮想ターミナルテーブル検索用のインターフェースを有する設定部を備え、
前記設定部は、前記仮想ターミナルテーブルを設定し、送信元端末からの送信先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のイーサネットポートと、第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アドレス情報を変換し、
フレーム制御部は、前記受信フレームを前記出力ポートに転送する
請求項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.
同一の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 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.
同一の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アドレスに変換するステップとを
含むことを特徴とする通信方法。
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.
複数の端末が接続されている同一の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アドレスに変換し、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送する
ことを特徴とする通信方法。
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.
複数の端末が接続されている同一の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アドレスとを変換し、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送する
ことを特徴とする通信方法。
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.
複数の端末が接続されている同一の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アドレスとを変換し、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送する
ことを特徴とする通信方法。
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.
同一の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 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.
複数の端末が接続されている同一の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アドレスに変換する処理と、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送する処理とを
実行させるための通信プログラム。
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.
複数の端末が接続されている同一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アドレスとを変換する処理と、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送する処理とを
実行させるための通信プログラム。
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.
複数の端末が接続されている同一の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アドレスとを変換する処理と、
前記受信したイーサネットフレームを、前記イーサネットフレームを受信した入力ポート以外のポートに転送する処理とを
実行させるための通信プログラム。
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.
JP2006336136A 2006-12-13 2006-12-13 Communication apparatus, communication system, communication method and communication program Pending JP2008148243A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (7)

* Cited by examiner, † Cited by third party
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