JP6330180B2 - Relay device and relay method - Google Patents
Relay device and relay method Download PDFInfo
- Publication number
- JP6330180B2 JP6330180B2 JP2015103928A JP2015103928A JP6330180B2 JP 6330180 B2 JP6330180 B2 JP 6330180B2 JP 2015103928 A JP2015103928 A JP 2015103928A JP 2015103928 A JP2015103928 A JP 2015103928A JP 6330180 B2 JP6330180 B2 JP 6330180B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- interface
- communication
- frame
- link
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims description 44
- 238000004891 communication Methods 0.000 claims description 335
- 230000005540 biological transmission Effects 0.000 claims description 17
- 238000010586 diagram Methods 0.000 description 14
- 239000000470 constituent Substances 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 101150082208 DIABLO gene Proteins 0.000 description 1
- 102100033189 Diablo IAP-binding mitochondrial protein Human genes 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Description
本発明は、中継装置、及び、中継方法に関する。 The present invention relates to a relay device and a relay method.
一般に、オフィス等の内部のネットワーク(以降、内部ネットワークともいう)と、その外部のネットワーク(以降、外部ネットワークともいう)とを接続する接続点には専用の通信装置が配置される。そして、上記専用の通信装置により上記ネットワーク間の通信を所定の通信だけに制限することで、上記2つのネットワークのセキュリティの強度に差異を設けることが行われている。 Generally, a dedicated communication device is disposed at a connection point that connects an internal network (hereinafter also referred to as an internal network) such as an office and an external network (hereinafter also referred to as an external network). Then, by limiting the communication between the networks to a predetermined communication by the dedicated communication device, a difference is provided in the security strength of the two networks.
具体的には、内部ネットワークに新たに接続する通信端末に専用のパスワードの入力を要求したり、上記通信端末に専用のソフトウェアのインストールを要求したりすることで、外部ネットワークに対して内部ネットワークのセキュリティの強度を高くすることが行われている。この場合、通信端末が内部ネットワーク上の特定の通信装置だけと通信を行う場合であっても、一律に上記パスワード等が要求される。 Specifically, by requesting the communication terminal newly connected to the internal network to input a dedicated password or requesting the communication terminal to install dedicated software, Increasing the strength of security has been done. In this case, even when the communication terminal communicates only with a specific communication device on the internal network, the password or the like is uniformly requested.
従来、通信装置と携帯端末とが通信する際に、通信装置が属しているネットワークの種別に応じて、ネットワークに接続するためのパスワードを携帯端末に送信するか否かを決定する通信装置に関する技術が開示されている(例えば、特許文献1)。 2. Description of the Related Art Conventionally, when a communication device and a mobile terminal communicate, a technology related to a communication device that determines whether or not to transmit a password for connecting to a network to the mobile terminal according to the type of network to which the communication device belongs Is disclosed (for example, Patent Document 1).
しかしながら、特許文献1に開示される技術によれば、通信装置が内部ネットワークに接続されている場合、当該通信装置が携帯端末に対して内部ネットワークに接続するためのパスワードを通知する。携帯端末から上記パスワードが漏えいすれば、内部ネットワークのセキュリティの低下を招くという問題がある。
However, according to the technique disclosed in
本発明は、上記問題を解決するためになされたものであり、ネットワーク外部の通信端末とネットワーク内の通信装置との通信を適切に行わせる中継装置等を提供することを目的とする。 The present invention has been made to solve the above-described problem, and an object of the present invention is to provide a relay device or the like that appropriately performs communication between a communication terminal outside the network and a communication device in the network.
上記課題を解決するために、本発明の一態様に係る中継装置は、第一リンクを通じて第一通信装置に接続される第一インタフェースと、前記第一リンクと異なる第二リンクを通じて、前記第一通信装置と異なる第二通信装置に接続される第二インタフェースと、前記第一通信装置のMAC(Media Access Control)アドレスのうち前記第二通信装置との直接通信に用いられるMACアドレスである仮想MACアドレスを保持している保持部と、前記第一インタフェース及び前記第二インタフェースの一方により受信したフレームのアドレス変更をするアドレス変更部と、前記アドレス変更部が前記アドレス変更をしたフレームを、前記第一インタフェース及び前記第二インタフェースのうちの前記一方と異なる他方により送信することで転送する転送部とを備え、前記アドレス変更部は、前記アドレス変更により、(a)前記第二インタフェースにより受信したフレームの宛先アドレスが、前記保持部が保持している前記仮想MACアドレスである場合に、当該フレームの宛先アドレスを、前記第一通信装置のMACアドレスのうち前記中継装置との通信に用いられるMACアドレスである実MACアドレスに変更し、(b)前記第一インタフェースにより受信したフレームの宛先アドレスが前記第二通信装置のMACアドレスである場合に、当該フレームの送信元アドレスを、前記保持部が保持している前記仮想MACアドレスに変更する。 In order to solve the above problems, a relay device according to an aspect of the present invention includes a first interface connected to a first communication device through a first link, and a second link different from the first link. A second interface connected to a second communication device different from the communication device, and a virtual MAC that is a MAC address used for direct communication with the second communication device among MAC (Media Access Control) addresses of the first communication device A holding unit that holds an address; an address changing unit that changes an address of a frame received by one of the first interface and the second interface; and a frame in which the address changing unit has changed the address, One of the interfaces and the other of the second interfaces different from the one A transfer unit configured to transmit the virtual MAC, the address changing unit, by the address change, (a) a destination address of a frame received by the second interface is held by the holding unit If it is an address, the destination address of the frame is changed to a real MAC address that is a MAC address used for communication with the relay device among the MAC addresses of the first communication device, and (b) the first interface When the destination address of the frame received by the above is the MAC address of the second communication device, the transmission source address of the frame is changed to the virtual MAC address held by the holding unit.
これによれば、中継装置は、仮想MACアドレスを使用したフレームの送受信により第二通信装置との通信を行い、また、実際のMACアドレスを使用したフレームの送受信により第一通信装置との通信を行う。そして、中継装置は、これらの通信を中継することで、第二通信装置(ネットワーク外部の通信端末に相当)に、第一通信装置(ネットワーク内の通信装置に相当)との通信を行わせることができる。よって、中継装置は、ネットワーク外部の通信端末とネットワーク内の通信装置との通信を適切に行わせることができる。 According to this, the relay device communicates with the second communication device by transmission / reception of the frame using the virtual MAC address, and communicates with the first communication device by transmission / reception of the frame using the actual MAC address. Do. The relay device relays these communications to cause the second communication device (corresponding to a communication terminal outside the network) to communicate with the first communication device (corresponding to a communication device in the network). Can do. Therefore, the relay device can appropriately perform communication between the communication terminal outside the network and the communication device in the network.
また、前記保持部は、さらに、前記第一リンクが属するサブネットワークに含まれるIP(Internet Protocol)アドレスを第一仮想IPアドレスとして保持し、前記第二リンクが属するサブネットワークに含まれるIPアドレスを第二仮想IPアドレスとして保持し、前記アドレス変更部は、前記アドレス変更により、さらに、(a)前記第二インタフェースにより受信した前記フレームの宛先IPアドレスが前記第二仮想IPアドレスである場合に、当該フレームの宛先IPアドレスを前記第一通信装置のIPアドレスに変更するとともに当該フレームの送信元IPアドレスを前記第一仮想IPアドレスに変更し、(b)前記第一インタフェースにより受信した前記フレームの宛先IPアドレスが前記第一仮想IPアドレスである場合に、宛先IPアドレスを前記第二通信装置のIPアドレスに変更するとともに当該フレームの送信元IPアドレスを前記第二仮想IPアドレスに変更する。 The holding unit further holds an IP (Internet Protocol) address included in a subnetwork to which the first link belongs as a first virtual IP address, and an IP address included in the subnetwork to which the second link belongs. Holding the second virtual IP address, the address changing unit further, (a) when the destination IP address of the frame received by the second interface is the second virtual IP address by the address change, Change the destination IP address of the frame to the IP address of the first communication device, change the source IP address of the frame to the first virtual IP address, and (b) the frame received by the first interface The destination IP address is the first virtual IP address If a scan, changes the source IP address of the frame to the second virtual IP address as well as change the destination IP address to the IP address of the second communication device.
これによれば、中継装置は、第一通信装置及び第二通信装置とのそれぞれと仮想IPアドレスを使用した、IPパケットを含むフレームの送受信を行う。これにより、第一通信装置及び第二通信装置がIP通信を行う場合に、第二通信装置に、第一通信装置とのIP通信を適切に行わせることができる。 According to this, the relay apparatus performs transmission / reception of a frame including an IP packet using the virtual IP address with each of the first communication apparatus and the second communication apparatus. Thereby, when a 1st communication apparatus and a 2nd communication apparatus perform IP communication, a 2nd communication apparatus can be made to perform IP communication with a 1st communication apparatus appropriately.
また、前記中継装置は、さらに、前記第一リンクと同一のサブネットワークに属する第三リンクを通じてネットワークに接続される第三インタフェースを備え、前記転送部は、さらに、前記第一インタフェース及び前記第三インタフェースにより受信したフレームの送信元アドレスを、前記フレームを受信したインタフェースと対応付けて転送テーブルとして保持しており、前記第一インタフェース又は前記第三インタフェースがフレームを受信すると、受信した前記フレームを、前記フレームの宛先アドレスに前記転送テーブルにおいて対応付けられたインタフェースにより送信することで転送する。 The relay device further includes a third interface connected to the network through a third link belonging to the same subnetwork as the first link, and the transfer unit further includes the first interface and the third interface. The transmission source address of the frame received by the interface is held as a forwarding table in association with the interface that received the frame, and when the first interface or the third interface receives the frame, the received frame is The frame is transferred by being transmitted through the interface associated with the destination address of the frame in the transfer table.
これによれば、中継装置は、第一通信装置と第二通信装置との通信を行わせながら、ネットワーク内の通信装置と第一通信装置との間でフレームを転送することで、ネットワーク内の通信装置と第一通信装置との通信を行わせることができる。 According to this, the relay device transfers the frame between the communication device in the network and the first communication device while performing communication between the first communication device and the second communication device, thereby Communication between the communication device and the first communication device can be performed.
また、前記転送部は、前記第二インタフェース及び前記第三インタフェースの一方が受信したフレームを、前記第二インタフェース及び前記第三インタフェースの他方により送信することを禁止する。 The transfer unit prohibits transmission of a frame received by one of the second interface and the third interface through the other of the second interface and the third interface.
これによれば、中継装置は、第二通信装置と、ネットワーク内の通信装置との通信を禁止することで、第二通信装置が通信できる通信相手を第一通信装置だけに限定することができる。よって、中継装置は、ネットワークのセキュリティ強度を維持しながら、ネットワーク外部の通信端末とネットワーク内の通信装置との通信を適切に行わせることができる。 According to this, the relay device prohibits communication between the second communication device and the communication device in the network, so that the communication partner with which the second communication device can communicate can be limited to only the first communication device. . Therefore, the relay device can appropriately perform communication between the communication terminal outside the network and the communication device in the network while maintaining the security strength of the network.
また、前記第三インタフェースは、前記第三リンクを第三通信装置との間で確立しており、前記第二通信装置は、前記第三通信装置との間で第四通信リンクを確立することが可能であり、前記第二リンクは、前記第四通信リンクよりセキュリティ強度が低い。 The third interface establishes the third link with a third communication device, and the second communication device establishes a fourth communication link with the third communication device. The second link is less secure than the fourth communication link.
これによれば、中継装置は、仮に第二通信装置がネットワークに接続するとした場合に要求されるセキュリティ強度より低いセキュリティ強度で、第二通信装置との通信リンクを確立する。よって、第二通信装置は、高いセキュリティ強度を要求されることなく中継装置との通信リンクを確立し、第一通信装置との通信を行うことができる。 According to this, the relay device establishes a communication link with the second communication device with a security strength lower than that required when the second communication device is connected to the network. Therefore, the second communication device can establish a communication link with the relay device without requiring high security strength and can communicate with the first communication device.
また、前記第二リンクは、データリンク層の通信方式が前記第一リンクと異なる。 The second link is different from the first link in the data link layer communication method.
これによれば、中継装置は、第一リンクと第二リンクとの通信方式の差異を吸収しながら、第一通信装置と第二通信装置との間でフレームを送受信することで、第一通信装置と第二通信装置との通信を行わせることができる。 According to this, the relay device transmits / receives a frame between the first communication device and the second communication device while absorbing a difference in communication method between the first link and the second link, so that the first communication is performed. Communication between the device and the second communication device can be performed.
また、前記第二リンクは、Wi−Fi Direct(登録商標)通信を行うための通信リンクであり、前記仮想MACアドレスは、予め定められた方法で前記実MACアドレスから変換された、Wi−Fi Direct(登録商標)通信のためのローカルMACアドレスである。 The second link is a communication link for performing Wi-Fi Direct (registered trademark) communication, and the virtual MAC address is converted from the real MAC address by a predetermined method. This is a local MAC address for Direct (registered trademark) communication.
これによれば、中継装置は、Wi−Fi Direct(登録商標)通信とその他の通信との通信方式の差異を吸収しながら、第一通信装置と第二通信装置との間でフレームを送受信することで、第一通信装置と第二通信装置との通信を行わせることができる。 According to this, the relay device transmits and receives a frame between the first communication device and the second communication device while absorbing a difference in communication method between Wi-Fi Direct (registered trademark) communication and other communication. Thus, communication between the first communication device and the second communication device can be performed.
また、本発明の一態様に係る中継方法は、中継装置によるフレームの中継方法であって、前記中継装置は、第一リンクを通じて第一通信装置に接続される第一インタフェースと、前記第一リンクと異なる第二リンクを通じて、前記第一通信装置と異なる第二通信装置に接続される第二インタフェースとを備え、前記中継方法は、前記第一通信装置のMACアドレスのうち前記第二通信装置との直接通信に用いられるMACアドレスである仮想MACアドレスを保持する保持ステップと、前記第一インタフェース及び前記第二インタフェースの一方により受信したフレームのアドレス変更をするアドレス変更ステップと、前記アドレス変更ステップで前記アドレス変更をしたフレームを、前記第一インタフェース及び前記第二インタフェースのうちの前記一方と異なる他方により送信することで転送する転送ステップとを含み、前記アドレス変更ステップでは、前記アドレス変更により、(a)前記第二インタフェースにより受信したフレームの宛先アドレスが、前記保持ステップで保持した前記仮想MACアドレスである場合に、当該フレームの宛先アドレスを、前記第一通信装置のMACアドレスのうち前記中継装置との通信に用いられるMACアドレスである実MACアドレスに変更し、(b)前記第一インタフェースにより受信したフレームの宛先アドレスが前記第二通信装置のMACアドレスである場合に、当該フレームの送信元アドレスを、前記保持ステップで保持した前記仮想MACアドレスに変更する。 A relay method according to an aspect of the present invention is a frame relay method by a relay device, wherein the relay device is connected to a first communication device through a first link and the first link. A second interface connected to a second communication device different from the first communication device through a second link different from the first communication device, and the relay method includes the second communication device among the MAC addresses of the first communication device. A holding step for holding a virtual MAC address that is a MAC address used for direct communication, an address changing step for changing the address of a frame received by one of the first interface and the second interface, and the address changing step. The frame whose address has been changed is sent to the first interface and the second interface. A transfer step in which the transfer is performed by transmission by the other one and the other. In the address change step, the address change causes (a) a destination address of a frame received by the second interface to be in the holding step. When the virtual MAC address is held, the destination address of the frame is changed to a real MAC address that is a MAC address used for communication with the relay device among the MAC addresses of the first communication device, and (b When the destination address of the frame received by the first interface is the MAC address of the second communication device, the transmission source address of the frame is changed to the virtual MAC address held in the holding step.
これによれば、上記中継装置と同様の効果を奏する。 According to this, there exists an effect similar to the said relay apparatus.
本発明に係る中継装置は、ネットワーク外部の通信端末とネットワーク内の通信装置との通信を適切に行わせることができる。 The relay device according to the present invention can appropriately perform communication between a communication terminal outside the network and a communication device in the network.
以下、実施の形態について、図面を参照しながら具体的に説明する。 Hereinafter, embodiments will be specifically described with reference to the drawings.
以下で説明する実施の形態は、いずれも本発明の好ましい一具体例を示すものである。以下の実施の形態で示される数値、形状、材料、構成要素、構成要素の配置位置及び接続形態、ステップ、ステップの順序などは、一例であり、本発明を限定する主旨ではない。また、以下の実施の形態における構成要素のうち、本発明の最上位概念を示す独立請求項に記載されていない構成要素については、より好ましい形態を構成する任意の構成要素として説明される。 Each of the embodiments described below shows a preferred specific example of the present invention. The numerical values, shapes, materials, constituent elements, arrangement positions and connecting forms of the constituent elements, steps, order of steps, and the like shown in the following embodiments are merely examples, and are not intended to limit the present invention. In addition, among the constituent elements in the following embodiments, constituent elements that are not described in the independent claims indicating the highest concept of the present invention are described as optional constituent elements that constitute a more preferable embodiment.
なお、同一の構成要素には同一の符号を付し、説明を省略する場合がある。 In addition, the same code | symbol is attached | subjected to the same component and description may be abbreviate | omitted.
(実施の形態)
本実施の形態において、ネットワーク外部の通信端末とネットワーク内の通信装置との通信を適切に行わせる中継装置について説明する。この中継装置は、ネットワークのセキュリティ強度を維持しながら、ネットワーク外部の通信端末とネットワーク内の通信装置との通信を適切に行わせる中継装置である。
(Embodiment)
In the present embodiment, a relay device that appropriately performs communication between a communication terminal outside the network and a communication device in the network will be described. This relay device is a relay device that appropriately performs communication between a communication terminal outside the network and a communication device in the network while maintaining the security strength of the network.
図1は、本実施の形態に係る通信システム1の構成図である。
FIG. 1 is a configuration diagram of a
図1に示されるように、通信システム1は、中継装置10と、MFP20(Multifunction Peripheral)と、端末30と、AP40(Access Point)と、PC50(Personal Computer)と、LAN60(Local Area Network)とを備える。
As shown in FIG. 1, the
中継装置10は、MFP20と、LAN60に接続された通信装置との間で送受信される通信フレーム(以降、単にフレームともいう)を中継するための中継装置である。また、中継装置10は、端末30とMFP20との間で送受信されるフレームの中継も行う。
The
具体的には、中継装置10は、通信リンクL3を通じてAP40と接続されており、さらに、AP40を介してLAN60に接続されている。また、中継装置10は、通信リンクL1を通じてMFP20と接続されている。
Specifically, the
中継装置10は、通信リンクL1及び通信リンクL3から受信するフレームを、当該フレームの宛先アドレスに応じて通信リンクL1又は通信リンクL3に送信することで転送(ブリッジ転送)する。言い換えれば、中継装置10は、通信リンクL1と通信リンクL3とをブリッジ接続している。このように、中継装置10は、LAN60に直接に接続していないMFP20と、LAN60に接続された通信装置との間で通信フレームを転送することで、間接的にLAN60に接続させる役割を有する。なお、「フレームの宛先アドレス」及び「フレームの送信元アドレス」という文言は、それぞれ、フレーム内の宛先アドレス及び送信元アドレスを格納するためのフィールドに記述されたMACアドレスを意味するものとする。なお、通信リンクL1は、第一リンクに相当し、通信リンクL3は、第三リンクに相当する。
The
また、中継装置10は、通信リンクL2を通じて端末30と接続されている。中継装置10は、通信リンクL1と通信リンクL2とから受信するフレームに対して、当該フレームの宛先アドレス又は送信元アドレスを変更(以降、アドレス変更ともいう)した上で、通信リンクL1又は通信リンクL2に送信することで、当該フレームを転送する。アドレス変更の方法については、後で詳しく説明する。なお、通信リンクL2は、第二リンクに相当する。
The
MFP20は、印刷データに基づく印刷、及び、文書を読取り読取データの生成等を行う多機能周辺機器である。MFP20は、通信機能を有し、ネットワーク経由で印刷データを受信し、また、生成した読取データをネットワーク経由で他の装置に送信する。なお、MFP20は、第一通信装置に相当する。
The
MFP20は、LAN60、AP40及び中継装置10を経由する通信経路でPC50から印刷データを受信し、また、上記通信経路で読取データをPC50に送信する。また、MFP20は、端末30との間で、中継装置10を経由して印刷データを受信し、また、読取データを送信する。このように、MFP20が直接にLAN60と接続していないネットワークにおいても、AP40を経由して中継装置10によるフレームの転送を利用することで、MFP20とPC50との通信が可能となる。
The
なお、本実施の形態では、中継装置10を介してPC50及び端末30と通信する通信装置の一例としてMFP20を用いて説明するが、MFP20の位置に他の通信装置がある場合でも、本実施の形態における中継装置10を介した通信が可能である。
In the present embodiment, the
端末30は、MFP20との間で通信を行う通信端末である。端末30は、MFP20に対して印刷データを送信したり、MFP20が生成した読取データを受信したりする。端末30は、中継装置10との間で通信リンクL2を確立し、確立した通信リンクL2を通じて中継装置10を介してMFP20と通信する。端末30は、中継装置10によるフレームの転送を利用することで、LAN60との通信を断絶された状態でMFP20との通信を行う。このように、端末30が直接にLAN60に接続していなくても、中継装置10によるフレームの転送により、端末30とMFP20との通信を適切に行わせることができる。なお、端末30は、第二通信装置に相当する。
The terminal 30 is a communication terminal that performs communication with the
AP40は、LAN60に接続されており、中継装置10との間でインフラストラクチャモードの無線通信を行う無線基地局装置である。AP40は、中継装置10との通信リンクL3を確立し、確立した通信リンクL3を通じてLAN60との間でフレームを送受信する。なお、通信リンクL3が無線通信リンクである場合を以降で説明するが、有線の通信リンクであっても同様の説明が成り立つ。なお、AP40は、第三通信装置に相当する。
The
なお、AP40が他の通信装置との間で確立する無線通信リンク(第四通信リンクに相当、不図示)は、端末30が中継装置10との間で確立する通信リンクL2より、セキュリティ強度を高く設定しておいてもよい。言い換えれば、通信リンクL2は、AP40が他の通信装置との間で確立する無線通信リンクより、セキュリティ強度を低く設定しておいてもよい。このようにすることで、端末30は、AP40に接続するより簡易なセキュリティ設定により中継装置10に接続し、中継装置10を介してMFP20と通信することができる点で有用である。
Note that a wireless communication link (corresponding to a fourth communication link, not shown) established by the
ここで、セキュリティ強度とは、通信リンク又はネットワークのセキュリティ(安全性)の程度を示す指標のことであり、安全である通信リンク等ほど、セキュリティ強度がより高いと表現されるものである。具体的には、当該通信リンク等を確立するために専用のパスワードを要求される、又は、専用のソフトウェアのインストールを要求される通信リンクは、そうでない通信リンクよりセキュリティ強度が高い、と表現される。 Here, the security strength is an index indicating the degree of security (safety) of a communication link or a network, and a safer communication link or the like is expressed as having a higher security strength. Specifically, a communication link that requires a dedicated password to establish the communication link or the like or that requires installation of dedicated software is expressed as having a higher security strength than a communication link that does not. The
PC50は、LAN60に接続されているコンピュータである。PC50は、MFP20に対して印刷データを送信したり、MFP20が生成した読取データを受信したりする。PC50は、LAN60、AP40、中継装置10を経由する通信経路でMFP20と通信する。
The
LAN60は、有線のローカルエリアネットワークであり、AP40を介してMFP20等と接続されている。LAN60は、外部ネットワーク(不図示)に接続されていてもよい。LAN60は、例えば、IEEE802.3規格に従う有線LANであり、オフィス等に敷設されるものである。
The
通信システム1において、通信リンクL2のネットワークアドレスをAとし、LAN60のネットワークアドレスをBとする。ネットワークアドレスがA(又はB)であるサブネットワークを、サブネットワークA(又はB)とよぶこともある。また、MFP20、端末30及びPC50のIPアドレスは、それぞれ、「B.20」、「A.30」及び「B.50」であるとして説明する。
In the
以降において、中継装置10の構成について詳しく説明する。
Hereinafter, the configuration of the
図2は、本実施の形態に係る中継装置10の機能構成を示すブロック図である。
FIG. 2 is a block diagram showing a functional configuration of
図2に示されるように、中継装置10は、インタフェースI1、I2及びI3と、保持部101と、転送部102と、アドレス変更部103とを備える。
As illustrated in FIG. 2, the
インタフェースI1は、MFP20との間で通信リンクL1を確立する通信インタフェースである。インタフェースI1は、例えば、有線通信のインタフェースであり、より具体的には、例えば、IEEE802.3規格に従う有線LANインタフェースである。インタフェースI1は、有線通信のインタフェースである場合を説明するが、無線通信のインタフェースであってもよい。
The interface I1 is a communication interface that establishes a communication link L1 with the
インタフェースI2は、端末30との間で通信リンクL2を確立する通信インタフェースである。インタフェースI2は、IEEE802.11a、b、g、n規格等に適合する無線LANインタフェースであり、例えば、通信相手との直接通信であるWi−Fi Direct(登録商標)通信を行うものである。以降において、インタフェースI2は、Wi−Fi Direct(登録商標)通信を行うインタフェースとして説明するが、その他の無線通信(インフラストラクチャモード又はアドホックモードの無線通信)を行うインタフェースであってもよいし、有線通信のインタフェースであってもよい。 The interface I2 is a communication interface that establishes a communication link L2 with the terminal 30. The interface I2 is a wireless LAN interface that conforms to the IEEE802.11a, b, g, and n standards, and performs, for example, Wi-Fi Direct (registered trademark) communication that is direct communication with a communication partner. In the following description, the interface I2 is described as an interface that performs Wi-Fi Direct (registered trademark) communication. However, the interface I2 may be an interface that performs other wireless communication (infrastructure mode or ad hoc mode wireless communication), or wired. It may be a communication interface.
インタフェースI2がWi−Fi Direct(登録商標)通信を行う場合、一般に、インタフェースI2が受信したフレームは、中継装置10の他のインタフェースにより送信することは想定されない。Wi−Fi Direct(登録商標)通信は、通信相手となる端末との直接通信を想定した通信であるので、Wi−Fi Direct(登録商標)通信を行う装置間でのフレーム転送は不要であるからである。これに対し、中継装置10は、インタフェースI2がWi−Fi Direct(登録商標)通信により受信したフレームをインタフェースI1によりMFP20に送信し、また、インタフェースI1によりMFP20から受信したフレームをインタフェースによりWi−Fi Direct(登録商標)通信により端末30に送信することで、端末30とMFP20との通信を適切に行わせるものである。
When the interface I2 performs Wi-Fi Direct (registered trademark) communication, it is generally not assumed that the frame received by the interface I2 is transmitted by another interface of the
なお、ここでは、通信リンクL2は、データリンク層の通信方式が通信リンクL1と異なる通信リンクである場合を例として説明する。この場合、中継装置10がデータリンク層の通信方式の差異を吸収することで、端末30とMFP20との通信を行わせることができる点で有用である。一方、通信リンクL2は、データリンク層の通信方式が通信リンクL1と同一である通信リンクであってもよい。
Here, the communication link L2 will be described as an example in which the communication method of the data link layer is a communication link different from the communication link L1. In this case, it is useful in that the
インタフェースI3は、AP40との間で通信リンクL3を確立する通信インタフェースである。インタフェースI3は、例えば、無線通信のインタフェースであり、より具体的には、例えば、IEEE802.11a、b、g、n規格等に適合する無線LANインタフェースであり、インフラストラクチャモードでの無線通信を行うものである。インタフェースI3は、無線通信のインタフェースである場合を説明するが、有線通信のインタフェースであってもよい。
The interface I3 is a communication interface that establishes a communication link L3 with the
保持部101は、アドレス変更部103によるアドレス変更に必要な仮想アドレスを保持している記憶装置である。保持部101は、MFP20のMACアドレスのうち端末30との直接通信に用いられるMACアドレスである仮想MACアドレスを保持している。具体的には、仮想MACアドレスは、通信リンクL2で使用されるMACアドレスであって、予め定められた変換方法でMFP20のグローバルMACアドレスを変換した、Wi−Fi Direct(登録商標)のためのローカルMACアドレスである。なお、MFP20のMACアドレスのうち上記仮想MACアドレスでないものとしては、実MACアドレスがある。実MACアドレスは、従来同様、例えば中継装置10とMFP20との通信に用いられるものである。
The holding
また、保持部101は、通信リンクL1が属するサブネットワークBに含まれるIPアドレスを仮想IPアドレス1(第一仮想IPアドレスともいう)として保持し、通信リンクL2が属するサブネットワークAに含まれるIPアドレスを仮想IPアドレス2(第二仮想IPアドレスともいう)として保持する。
The holding
これらの仮想アドレスの使用方法は、後で詳しく説明する。 The method of using these virtual addresses will be described in detail later.
転送部102は、インタフェースI1、I2及びI3が受信したフレームを、受信したフレームの宛先アドレスに応じて適切なインタフェースにより送信することで、インタフェース間でフレームを転送する処理部である。転送部102は、上記転送の際に参照テーブルを参照し、適切なインタフェースを選択する。転送部102の転送等の処理の詳細は、後で詳しく説明する。
The
アドレス変更部103は、インタフェースI1及びI2が受信したフレームの宛先アドレス又は送信元アドレスを変更(アドレス変更)する処理部である。アドレス変更部103が上記アドレスを変更する際には対応テーブルを参照する。また、アドレス変更部103は、インタフェースI1及びI2が受信したフレームがアドレス変更の対象であるか否かを判定するために、保持部101が保持している仮想アドレスを取得する。
The
具体的には、アドレス変更部103は、アドレス変更により、(a)インタフェースI2により受信したフレームの宛先アドレスが、保持部101が保持している仮想MACアドレスである場合に、当該フレームの宛先アドレスをMFP20のMACアドレスに変更し、(b)インタフェースI1により受信したフレームの宛先アドレスが、端末30のMACアドレスである場合に、当該フレームの送信元アドレスを保持部101が保持している仮想MACアドレスに変更する。
Specifically, the
また、アドレス変更部103は、アドレス変更により、さらに、(a)インタフェースI2により受信したフレームの宛先IPアドレスが仮想IPアドレス2である場合に、当該フレームの宛先IPアドレスをMFP20のIPアドレスに変更するとともに当該フレームの送信元IPアドレスを仮想IPアドレス1に変更し、(b)インタフェースI1により受信した前記フレームの宛先IPアドレスが仮想IPアドレス1である場合に、宛先IPアドレスを端末30のIPアドレスに変更するとともに当該フレームの送信元IPアドレスを仮想IPアドレス2に変更する。
The
アドレス変更部103によるアドレス変更の処理については、後で具体的に説明する。
The address changing process by the
以降において、各機能ブロックの機能についてさらに詳しく説明する。 Hereinafter, the function of each functional block will be described in more detail.
図3は、本実施の形態に係る転送部102が保持する転送テーブル301の説明図である。
FIG. 3 is an explanatory diagram of the transfer table 301 held by the
転送テーブル301は、インタフェースごとに、当該インタフェースを介して通信することができる通信装置のMACアドレス及びIPアドレスが示されたテーブルである。転送テーブル301により、中継装置10が備えるインタフェースと、当該インタフェースを介して通信することができる通信装置のMACアドレス及びIPアドレスが対応付けられている。
The transfer table 301 is a table in which a MAC address and an IP address of a communication device that can communicate via the interface are shown for each interface. The forwarding table 301 associates the interface included in the
例えば、転送テーブル301におけるインタフェースI1の行には、MFP20のMACアドレス(「MAC(MFP20)」と表記する)、及び、IPアドレスである「B.20」が記載されている。これは、転送部102がインタフェースI1を介してMFP20と通信可能であること、言い換えれば、インタフェースI1の先にMFP20が存在していることを示している。転送テーブル301における他のインタフェースの行も同様のことを意味する。
For example, the line of the interface I1 in the transfer table 301 describes the MAC address of the MFP 20 (denoted as “MAC (MFP 20)”) and the IP address “B.20”. This indicates that the
転送部102は、転送テーブル301を参照することで、インタフェースI1、I2及びI3により受信したフレームの転送先インタフェースを決定する。ここで、フレームの転送先インタフェースとは、転送部102により当該フレームを送信することになるインタフェースのことである。
The
例えば、インタフェースI1により宛先アドレスがMAC(T30)であるフレームを受信した場合、転送部102は、転送テーブルを参照することで端末30がインタフェースI2の先に存在することを知り、当該フレームをインタフェースI2により送信する。
For example, when a frame whose destination address is MAC (T30) is received by the interface I1, the
なお、転送部102は、インタフェースI1とインタフェースI2との間のフレーム転送、及び、インタフェースI1とインタフェースI3との間のフレーム転送を行う(許容する)が、インタフェースI2とインタフェースI3との間のフレーム転送を行わない(禁止する)ものとする。転送部102が、インタフェースI2とインタフェースI3との間のフレーム転送を行わないことで、端末30とLAN60に接続された通信装置との直接の通信を遮断し、LAN60におけるセキュリティ強度を維持することができる。
Note that the
なお、アドレス変更部103は、その内部に一機能として保持部101を備えてもよい。その場合、アドレス変更部103が保持部101から仮想アドレスを取得する処理が簡略化される利点がある。
Note that the
図4は、本実施の形態に係るアドレス変更部103が保持する対応テーブル401の説明図である。
FIG. 4 is an explanatory diagram of the correspondence table 401 held by the
図4に示されるように、対応テーブル401は、2種のMACアドレスを互いに対応付けて管理するテーブルである。具体的には、対応テーブル401は、グローバルMACアドレスとローカルMACアドレスとを1対1に対応付けて管理するテーブルである。 As shown in FIG. 4, the correspondence table 401 is a table that manages two types of MAC addresses in association with each other. Specifically, the correspondence table 401 is a table that manages a global MAC address and a local MAC address in a one-to-one correspondence.
ここで、グローバルMACアドレスとは、上記の実MACアドレスに相当するものであり、当該インタフェースに固有に割り振られるMACアドレスのことである。グローバルMACアドレスは、一の通信装置のグローバルMACアドレスが他の通信装置のグローバルMACアドレスと異なるように設定されるものである。 Here, the global MAC address corresponds to the above-described real MAC address, and is a MAC address uniquely assigned to the interface. The global MAC address is set so that the global MAC address of one communication device is different from the global MAC address of another communication device.
一方、ローカルMACアドレスとは、上記の仮想MACアドレスに相当するものであり、当該リンクにおいて固有のMACアドレスのことである。ローカルMACアドレスは、当該リンクにおいて他の通信装置のMACアドレスと異なるように設定されるものである。ローカルMACアドレスは、グローバルMACアドレスにおける所定のビットの値を変更することで生成される。 On the other hand, the local MAC address corresponds to the above virtual MAC address, and is a unique MAC address in the link. The local MAC address is set to be different from the MAC addresses of other communication devices in the link. The local MAC address is generated by changing the value of a predetermined bit in the global MAC address.
例えば、対応テーブル401において、MFP20のグローバルMACアドレスである「MAC(MFP20G)」と、MFP20のローカルMACアドレスである「MAC(MFP20L)」とが1対1に対応付けて管理されている。
For example, in the correspondence table 401, “MAC (MFP 20G)” that is the global MAC address of the
アドレス変更部103は、対応テーブル401を参照することで、ある通信装置のグローバルMACアドレスから当該通信装置のローカルMACアドレスを知ることができる。また、反対に、ある通信装置のローカルMACアドレスから当該通信装置のグローバルMACアドレスを知ることができる。
By referring to the correspondence table 401, the
図5は、本実施の形態に係る中継装置10による転送処理を示す模式図である。
FIG. 5 is a schematic diagram showing transfer processing by the
インタフェースI1及びI2には、当該インタフェースに実際に設定されているIPアドレス及びMACアドレスの他に、保持部101が保持している仮想IPアドレス及び仮想MACアドレスが割り当てられている。具体的には、インタフェースI1には仮想IPアドレス1が割り当てられ、インタフェースI2には仮想MACアドレスと仮想IPアドレス2とが割り当てられている。インタフェースI2に割り当てられる仮想MACアドレスは、MFP20のローカルMACアドレスである。
In addition to the IP address and MAC address actually set for the interface, the virtual IP address and virtual MAC address held by the holding
アドレス変更部103は、インタフェースI1及びI2から受信するフレームに対してアドレス変更を行い、アドレス変更後のフレームを転送部102に提供する。転送部102は、インタフェースI1及びI2が受信しアドレス変更部103によるアドレス変更がなされたフレーム、及び、インタフェースI3が受信したフレームを、受信したフレームの宛先アドレスに応じて適切なインタフェースにより送信することで、インタフェース間でフレームを転送する。
The
以降において、転送部102による転送処理について具体的に説明する。
Hereinafter, the transfer process by the
図6は、本実施の形態に係る中継装置10による転送処理を示すフロー図である。図6に示されるフロー図は、インタフェースI3が受信するフレームについて行われる転送処理であり、従来のブリッジ装置によるフレームの転送(ブリッジ転送)と同等である。
FIG. 6 is a flowchart showing transfer processing by the
図6に示される転送処理は、例えば、PC50がMFP20に対して印刷データを含むフレームを送信とするための通信において転送部102により行われる転送処理である。この通信を行う前にはPC50は、MFP20のIPアドレスを保持した状態であることを要する。この状態において、PC50は、まず、ARP(Address Resolution Protocol)解決のためのARPリクエストフレームを送信し、ARP解決後に印刷データを含むユニキャストフレームを送信する。これらのフレームのそれぞれについて、以下の転送処理が行われる。
The transfer process illustrated in FIG. 6 is a transfer process performed by the
ステップS101において、インタフェースI3がフレームを受信する。受信したフレームの宛先アドレスがMFP20のMACアドレスであるとする。
In step S101, the interface I3 receives the frame. Assume that the destination address of the received frame is the MAC address of the
ステップS102において、転送部102は、転送テーブル301を参照して当該フレームの転送先インタフェースを決定する。具体的には、転送部102は、転送テーブル301を参照して、MFP20がどのインタフェースの先に存在するかを検索する。これにより、MFP20がインタフェースI1の先に存在すると判定し、当該フレームの転送先インタフェースをインタフェースI1と決定する。
In step S102, the
ステップS103において、転送部102は、当該フレームを転送先インタフェースであるインタフェースI1に提供する。
In step S103, the
ステップS104において、インタフェースI1は、当該フレームを送信する。送信されたフレームは、MFP20により受信される。
In step S104, the interface I1 transmits the frame. The transmitted frame is received by the
図7は、本実施の形態に係る中継装置10によるアドレス変更を含む転送処理を示すフロー図である。図8は、本実施の形態に係る中継装置10による転送されるフレームのMACアドレスを示す説明図である。これらの図を参照しながら、インタフェースI1及びI2が受信するフレームについて行われる転送処理について説明する。なお、図6と同じ処理については、同じ符号を付し詳細な説明を省略する。
FIG. 7 is a flowchart showing a transfer process including an address change by the
図7に示される転送処理は、例えば、端末30がMFP20に対して印刷データを含むフレームを送信するための通信において転送部102により行われる転送処理である。この通信を行う前には端末30は、MFP20の仮想IPアドレスを保持した状態であることを要する。この状態において、PC50は、まず、ARP解決のためのARPリクエストフレームを送信し、ARP解決後に印刷データを含むユニキャストフレームを送信する。これらのフレームについて、以下の転送処理が行われる。
The transfer process illustrated in FIG. 7 is a transfer process performed by the
ステップS201において、インタフェースI1又はI2がフレームを受信する。 In step S201, the interface I1 or I2 receives the frame.
ステップS202において、アドレス変更部103は、対応テーブル401を参照して、ステップS201で受信したフレーム(以降、受信フレームともいう)がアドレス変更の対象フレームであるか否かを判定する。具体的には、受信フレームが、(1)インタフェースI2が受信したフレームであって、宛先アドレスがMFP20のローカルMACアドレスであるフレーム(図8のフレーム81)である場合、及び(2)インタフェースI1が受信したフレームであって、宛先アドレスが端末30のMACアドレスであるフレーム(図8のフレーム83)である場合に、アドレス変更対象のフレームであると判定される。
In step S202, the
ステップS203において、ステップS202での判定結果に応じて処理を分岐する。すなわち、受信フレームが対象フレームである場合(ステップS203でYES)、ステップS204に進む。受信フレームが対象フレームでない場合(ステップS203でNO)、ステップS211に進む。 In step S203, the process branches according to the determination result in step S202. That is, if the received frame is the target frame (YES in step S203), the process proceeds to step S204. If the received frame is not the target frame (NO in step S203), the process proceeds to step S211.
ステップS204において、アドレス変更部103は、受信フレームの宛先アドレス又は送信元アドレスを変更する。
In step S204, the
具体的には、アドレス変更部103は、受信フレームの宛先アドレスが対応テーブル401に登録されたローカルMACアドレスである場合(上記(1)の場合)、アドレス変更部103は、受信フレームの宛先アドレスを、対応テーブル401において当該ローカルMACアドレスに対応付けられたグローバルMACアドレスにアドレス変更する。受信フレームの宛先アドレスがMFP20のローカルMACアドレスであれば、上記アドレス変更により、当該受信フレームの宛先アドレスがMFP20のグローバルMACアドレスに変換される(図8のフレーム82)。
Specifically, when the destination address of the received frame is a local MAC address registered in the correspondence table 401 (in the case of (1) above), the
この場合、アドレス変更部103は、さらに、以下のようなIPアドレスについての判定及び変換をすることもできる。すなわち、アドレス変更部103は、受信フレームの宛先IPアドレスが仮想IPアドレス2であるか否かを判定する。受信フレームの宛先IPアドレスが仮想IPアドレス2であると判定された場合、受信フレームの宛先IPアドレスをMFP20のIPアドレスに変更するとともに、送信元IPアドレスを仮想IPアドレス1に変更する。
In this case, the
また、アドレス変更部103は、受信したフレームの送信元アドレスが対応テーブル401に登録されたグローバルMACアドレスである場合(上記(2)の場合)、アドレス変更部103は、受信したフレームの送信元アドレスを、対応テーブル401において当該グローバルMACアドレスに対応付けられたローカルMACアドレスに変更する。受信フレームの送信元アドレスがMFP20のグローバルMACアドレスであれば、上記アドレス変更により、当該受信フレームの送信元アドレスがMFP20のローカルMACアドレスに変換される(図8のフレーム84)。
In addition, when the transmission source address of the received frame is a global MAC address registered in the correspondence table 401 (in the case of (2) above), the
この場合、アドレス変更部103は、さらに、以下のようなIPアドレスについての判定及び変換をすることもできる。すなわち、アドレス変更部103は、受信フレームの宛先IPアドレスが仮想IPアドレス1であるか否かを判定する。受信フレームの宛先IPアドレスが仮想IPアドレス1であると判定された場合、受信フレームの宛先IPアドレスを端末30のIPアドレスに変更するとともに、送信元IPアドレスを仮想IPアドレス2に変更する。
In this case, the
なお、上記では、宛先がユニキャストアドレスであるユニキャストフレームについて説明したが、宛先がグローバルアドレスであるブロードキャストフレーム、及び、ARP解決のための、ARPリクエスト及びARPリプライフレームである場合にも同様のアドレス変更を行う。これらについては、後で図9を参照しながら説明する。 In the above description, the unicast frame whose destination is a unicast address has been described. However, the same applies to a broadcast frame whose destination is a global address and an ARP request and ARP reply frame for ARP resolution. Change the address. These will be described later with reference to FIG.
ステップS204の処理を終えたら、ステップS102〜S104により、受信フレームを転送先インタフェースにより送信し、受信したフレームの転送処理を終了する。 When the process of step S204 is completed, the received frame is transmitted by the transfer destination interface through steps S102 to S104, and the transfer process of the received frame is ended.
ステップS211において、転送部102は、受信フレームを破棄し、受信したフレームの転送処理を終了する。アドレス変更の対象でないフレームは、中継装置10により転送される必要がないからである。
In step S211, the
上記一連の処理により、中継装置10は、インタフェースI1及びI2が受信するフレームを、アドレス変更をした上で適切なインタフェースに転送する。すなわち、中継装置10が上記のようなアドレス変更を行わない限り、端末30とMFP20との適切な通信は行われないのであり、中継装置10によるアドレス変更が、端末30とMFP20との適切な通信を実現させているということができる。
Through the series of processes described above, the
なお、ステップS201で中継装置10が受信したフレームの宛先アドレスがMFP20のグローバルMACアドレスであった場合、当該フレームはアドレス変更対象のフレームに該当せず(ステップS203でNo)、当該フレームは破棄される(ステップS211)。
If the destination address of the frame received by the
以降において、MACアドレス及びIPアドレスの具体的設定を含む通信システム1の詳細なネットワーク構成、及び、フレームのアドレス変更の具体例を図9及び図10を参照しながら詳細に説明する。
Hereinafter, a detailed network configuration of the
図9は、本実施の形態に係る通信システム1の詳細なネットワーク構成図である。図9には、通信システム1の詳細なネットワーク構成が示されている。また、図9には、端末30とMFP20とが中継装置10を介して送受信する、ユニキャストフレーム、ブロードキャストフレーム及びARPフレームの、送信元MACアドレス(SMAC(Source MAC))、宛先MACアドレス(DMAC(Destination MAC))、送信元IPアドレス(SIP(Source IP))、及び宛先IPアドレス(DIP(Destination IP))が示されている。
FIG. 9 is a detailed network configuration diagram of the
また、図9に示す各フレーム(図9のフレーム91、92、93及び94)は、図8に示す本実施の形態に係る中継装置10と端末30との間で転送される各フレーム(図8のフレーム81、82、83及び84)と対応している。また、図9では、図8の各フレームのMACアドレスと各装置(中継装置10、MFP20、端末30、AP40及びPC50)のIPアドレスが記載されており、各種フレーム(ユニキャストフレーム、ブロードキャストフレーム、及びARPフレーム)ごとに分けて、中継装置10におけるアドレス変更をより具体的に説明するものである。
Further, each frame shown in FIG. 9 (frames 91, 92, 93, and 94 in FIG. 9) is transferred between the
なお、図中、インタフェースを示す図形の中で、実線で囲まれたMACアドレス又はIPアドレスは、当該インタフェースに現実に設定されたMACアドレス又はIPアドレスを意味しており、破線で囲まれたMACアドレス又はIPアドレスは、保持部101により保持され当該インタフェースに仮想的に割り当てられている仮想MACアドレス又は仮想IPアドレスを意味しているものとする。
In the figure, the MAC address or IP address surrounded by a solid line in the figure showing the interface means the MAC address or IP address actually set for the interface, and the MAC address surrounded by a broken line. The address or IP address means a virtual MAC address or virtual IP address held by the holding
例えば、端末30がMFP20を宛先として送信するユニキャストフレーム91の送信元MACアドレスは、端末30のMACアドレス(MAC(T30))であり、宛先MACアドレスは、MFP20のローカルMACアドレス(MAC(MFP20L))である。また、上記ユニキャストフレームの送信元IPアドレスは「A.30」であり、「宛先IPアドレス」は「A.10」である。
For example, the transmission source MAC address of the
その後、中継装置10のインタフェースI2が、端末30が送信した上記フレームを受信する。中継装置10は、アドレス変更により、上記フレームの宛先MACアドレスをMFP20のグローバルMACアドレス(MAC(MFP20G))に変更し、ユニキャストフレーム92としてインタフェースI1により送信する。その後、MFP20が上記フレームを受信する。
Thereafter, the interface I2 of the
図10は、本実施の形態に係る通信システムのネットワーク構成手順を示すフロー図である。 FIG. 10 is a flowchart showing a network configuration procedure of the communication system according to the present embodiment.
ステップS301において、中継装置10は、インタフェースI3(wlan0ともいう)を作成する。インタフェースを作成するとは、当該インタフェースを通信可能なインタフェースとして動作させることを開始することをいう。なお、この時点で有線ネットワークのインタフェースI1はすでに作成されているものとする。
In step S301, the
ステップS302において、中継装置10は、インタフェースI3によりAP40との間で通信リンクL3を確立する。
In step S302, the
ステップS303において、中継装置10は、インタフェースI1とインタフェースI3との間でのフレームのブリッジ転送を開始する。具体的には、中継装置10は、上記ブリッジ転送のためのソフトウェア等を起動することで、インタフェースI1又はインタフェースI3がフレームを受信した場合に当該フレームをブリッジ転送することができる状態にする。
In step S303, the
ステップS304において、中継装置10は、MFP20のIPアドレスを取得する。MFP20のIPアドレスを取得する方法は、さまざまな方法があり得る。
In step S304, the
例えば、MFP20が、DHCP(Dynamic Host Configuration Protocol)によりAP40からIPアドレスを割り当てられる場合には、中継装置10は、割り当てられるIPアドレスを含むDHCPプロトコルのパケット(DHCP ACK)の中身を解析することで、割り当てられるIPアドレスを取得する。
For example, when the
また、例えば、MFP20が、予め定められたIPアドレスを固定的に割り当てられる場合には、中継装置10は、上記予め定められたIPアドレスを取得することでMFP20のIPアドレスを取得する。
For example, when the
ステップS305において、中継装置10は、インタフェースI1に割り当てる仮想IPアドレス1を取得し、保持部101により保持する。仮想IPアドレス1は、MFP20及びLAN60に接続された通信装置と同じサブネットワークBに属するIPアドレスであって、MFP20及び上記通信装置に割り当てたIPアドレスを除くIPアドレスから選択して用いることができる。例えば、中継装置10は、AP40がDHCPにより当該サブネットワークに割り振るIPアドレス範囲に含まれないIPアドレスを固定的に割り当ててもよいし、AP40から1つのIPアドレスをDHCPにより取得し、取得したIPアドレスを仮想IPアドレス1として使用することにしてもよい。
In step S <b> 305, the
ステップS306において、中継装置10は、インタフェースI2(wlan2ともいう)を作成する。
In step S306, the
ステップS307において、中継装置10は、インタフェースI2により端末30との間で通信リンクL2を確立する。
In step S307, the
ステップS308において、中継装置10は、インタフェースI2に割り当てる仮想IPアドレス2を取得し、保持部101により保持する。仮想IPアドレス2は、通信リンクL2が属するサブネットワークAに属するIPアドレスであって、端末30に割り当てたIPアドレスを除くIPアドレスから選択して用いることができる。
In step S <b> 308, the
ステップS309において、中継装置10は、インタフェースI1とインタフェースI2との、アドレス変更部103によるアドレス変更を伴うブリッジ転送を開始する。
In step S309, the
以上の一連の手順により、具体的に、図9に示される通信システム1が構築される。
Specifically, the
なお、アドレス変更部103は、フレームの少なくとも宛先MACアドレス又は送信元MACアドレスを変更すれば、ネットワークのセキュリティ強度を維持しながら、ネットワーク外部の通信端末とネットワーク内の通信装置との通信を適切に行わせることができる。また、端末30及びMFP20等がIPによる通信を行う場合には、上記のMACアドレスの変更に加えて、宛先IPアドレス又は送信元IPアドレスの変換を行うようにすれば、端末30及びMFP20等の従来使われているプロトコルスタックをそのまま利用することができる利点がある。
The
以上のように、本実施の形態における中継装置は、仮想MACアドレスを使用したフレームの送受信により第二通信装置との通信を行い、また、実際のMACアドレスを使用したフレームの送受信により第一通信装置との通信を行う。そして、中継装置は、これらの通信を中継することで、第二通信装置(ネットワーク外部の通信端末に相当)に、第一通信装置(ネットワーク内の通信装置に相当)との通信を行わせることができる。よって、中継装置は、ネットワーク外部の通信端末とネットワーク内の通信装置との通信を適切に行わせることができる。 As described above, the relay device in the present embodiment communicates with the second communication device by transmitting and receiving a frame using the virtual MAC address, and also performs the first communication by transmitting and receiving a frame using the actual MAC address. Communicate with the device. The relay device relays these communications to cause the second communication device (corresponding to a communication terminal outside the network) to communicate with the first communication device (corresponding to a communication device in the network). Can do. Therefore, the relay device can appropriately perform communication between the communication terminal outside the network and the communication device in the network.
また、中継装置は、第一通信装置及び第二通信装置とのそれぞれと仮想IPアドレスを使用した、IPパケットを含むフレームの送受信を行う。これにより、第一通信装置及び第二通信装置がIP通信を行う場合に、第二通信装置に、第一通信装置とのIP通信を適切に行わせることができる。 In addition, the relay device transmits and receives a frame including an IP packet using a virtual IP address with each of the first communication device and the second communication device. Thereby, when a 1st communication apparatus and a 2nd communication apparatus perform IP communication, a 2nd communication apparatus can be made to perform IP communication with a 1st communication apparatus appropriately.
また、中継装置は、第一通信装置と第二通信装置との通信を行わせながら、ネットワーク内の通信装置と第一通信装置との間でフレームを転送することで、ネットワーク内の通信装置と第一通信装置との通信を行わせることができる。 Further, the relay device transfers the frame between the communication device in the network and the first communication device while performing communication between the first communication device and the second communication device, so that the communication device in the network Communication with the first communication device can be performed.
また、中継装置は、第二通信装置と、ネットワーク内の通信装置との通信を禁止することで、第二通信装置が通信できる通信相手を第一通信装置だけに限定することができる。よって、中継装置は、ネットワークのセキュリティ強度を維持しながら、ネットワーク外部の通信端末とネットワーク内の通信装置との通信を適切に行わせることができる。 Further, the relay device prohibits communication between the second communication device and the communication device in the network, so that the communication partner with which the second communication device can communicate can be limited to only the first communication device. Therefore, the relay device can appropriately perform communication between the communication terminal outside the network and the communication device in the network while maintaining the security strength of the network.
また、中継装置は、仮に第二通信装置がネットワークに接続するとした場合に要求されるセキュリティ強度より低いセキュリティ強度で、第二通信装置との通信リンクを確立する。よって、第二通信装置は、高いセキュリティ強度を要求されることなく中継装置との通信リンクを確立し、第一通信装置との通信を行うことができる。 In addition, the relay device establishes a communication link with the second communication device with a security strength lower than the security strength required when the second communication device is connected to the network. Therefore, the second communication device can establish a communication link with the relay device without requiring high security strength and can communicate with the first communication device.
また、中継装置は、第一リンクと第二リンクとの通信方式の差異を吸収しながら、第一通信装置と第二通信装置との間でフレームを送受信することで、第一通信装置と第二通信装置との通信を行わせることができる。 In addition, the relay device transmits and receives a frame between the first communication device and the second communication device while absorbing a difference in communication method between the first link and the second link, thereby Communication with two communication devices can be performed.
また、中継装置は、Wi−Fi Direct(登録商標)通信とその他の通信との通信方式の差異を吸収しながら、第一通信装置と第二通信装置との間でフレームを送受信することで、第一通信装置と第二通信装置との通信を行わせることができる。 In addition, the relay device transmits and receives a frame between the first communication device and the second communication device while absorbing the difference in communication method between Wi-Fi Direct (registered trademark) communication and other communication, Communication between the first communication device and the second communication device can be performed.
なお、上記実施の形態において、各構成要素は、専用のハードウェアで構成されてもよいし、各構成要素に適したソフトウェアプログラムを実行することによって実現されてもよい。各構成要素は、CPUまたはプロセッサなどのプログラム実行部が、ハードディスクまたは半導体メモリなどの記録媒体に記録されたソフトウェアプログラムを読み出して実行することによって実現されてもよい。 In the above-described embodiment, each component may be configured with dedicated hardware, or may be realized by executing a software program suitable for each component. Each component may be realized by a program execution unit such as a CPU or a processor reading and executing a software program recorded on a recording medium such as a hard disk or a semiconductor memory.
以上、本発明の中継装置等について、実施の形態に基づいて説明したが、本発明は、この実施の形態に限定されるものではない。本発明の趣旨を逸脱しない限り、当業者が思いつく各種変形を本実施の形態に施したものや、異なる実施の形態における構成要素を組み合わせて構築される形態も、本発明の範囲内に含まれる。 Although the relay device and the like of the present invention have been described based on the embodiment, the present invention is not limited to this embodiment. Unless it deviates from the meaning of this invention, the form which carried out the various deformation | transformation which those skilled in the art can think to this embodiment, and the structure constructed | assembled combining the component in different embodiment is also contained in the scope of the present invention. .
本発明は、ネットワーク外部の通信端末とネットワーク内の通信装置との通信を適切に行わせる中継装置等に利用可能である。具体的には、ネットワークブリッジ装置、通信メディア変換装置及びルータ装置などの通信装置に利用可能である。 The present invention can be used for a relay device or the like that appropriately performs communication between a communication terminal outside the network and a communication device in the network. Specifically, it can be used for communication devices such as a network bridge device, a communication media conversion device, and a router device.
1 通信システム
10 中継装置
20 MFP
30 端末
40 AP
50 PC
60 LAN
101 保持部
102 転送部
103 アドレス変更部
301 転送テーブル
401 対応テーブル
I1、I2、I3 インタフェース
L1、L2、L3 通信リンク
DESCRIPTION OF
30
50 pcs
60 LAN
Claims (7)
第一リンクを通じて第一通信装置に接続される第一インタフェースと、
前記第一リンクと異なる第二リンクを通じて、前記第一通信装置と異なる第二通信装置に接続される第二インタフェースと、
前記第一リンクと同一のサブネットワークに属する第三リンクを通じてネットワークに接続される第三インタフェースと、
前記第一通信装置のMAC(Media Access Control)アドレスのうち前記第二通信装置との直接通信に用いられるMACアドレスである仮想MACアドレスを保持している保持部と、
前記第一インタフェース及び前記第二インタフェースの一方により受信したフレームのアドレス変更をするアドレス変更部と、
前記アドレス変更部が前記アドレス変更をしたフレームを、前記第一インタフェース及び前記第二インタフェースのうちの前記一方と異なる他方により送信することで転送する転送部とを備え、
前記アドレス変更部は、前記アドレス変更により、
(a)前記第二インタフェースにより受信したフレームの宛先アドレスが、前記保持部が保持している前記仮想MACアドレスである場合に、当該フレームの宛先アドレスを、前記第一通信装置のMACアドレスのうち前記中継装置との通信に用いられるMACアドレスである実MACアドレスに変更し、
(b)前記第一インタフェースにより受信したフレームの宛先アドレスが前記第二通信装置のMACアドレスである場合に、当該フレームの送信元アドレスを、前記保持部が保持している前記仮想MACアドレスに変更し、
前記転送部は、さらに、
前記第一インタフェースと前記第三インタフェースとの間でフレームを転送し、
前記第二インタフェース及び前記第三インタフェースの一方が受信したフレームを、前記第二インタフェース及び前記第三インタフェースの他方により送信することを禁止する
中継装置。 A relay device,
A first interface connected to the first communication device through the first link;
A second interface connected to a second communication device different from the first communication device through a second link different from the first link;
A third interface connected to the network through a third link belonging to the same subnetwork as the first link;
A holding unit that holds a virtual MAC address that is a MAC address used for direct communication with the second communication device among MAC (Media Access Control) addresses of the first communication device;
An address changing unit for changing an address of a frame received by one of the first interface and the second interface;
A transfer unit that transfers the frame in which the address change unit has changed the address by transmitting the frame different from the one of the first interface and the second interface;
The address changing unit performs the address change,
(A) When the destination address of the frame received by the second interface is the virtual MAC address held by the holding unit, the destination address of the frame is the MAC address of the first communication device. Change to a real MAC address that is a MAC address used for communication with the relay device,
(B) When the destination address of the frame received by the first interface is the MAC address of the second communication device, the source address of the frame is changed to the virtual MAC address held by the holding unit And
The transfer unit further includes:
Transferring frames between the first interface and the third interface;
A relay device that prohibits transmission of a frame received by one of the second interface and the third interface through the other of the second interface and the third interface .
前記第一リンクが属するサブネットワークに含まれるIP(Internet Protocol)アドレスを第一仮想IPアドレスとして保持し、前記第二リンクが属するサブネットワークに含まれるIPアドレスを第二仮想IPアドレスとして保持し、
前記アドレス変更部は、前記アドレス変更により、さらに、
(a)前記第二インタフェースにより受信した前記フレームの宛先IPアドレスが前記第二仮想IPアドレスである場合に、当該フレームの宛先IPアドレスを前記第一通信装置のIPアドレスに変更するとともに当該フレームの送信元IPアドレスを前記第一仮想IPアドレスに変更し、
(b)前記第一インタフェースにより受信した前記フレームの宛先IPアドレスが前記第一仮想IPアドレスである場合に、宛先IPアドレスを前記第二通信装置のIPアドレスに変更するとともに当該フレームの送信元IPアドレスを前記第二仮想IPアドレスに変更する
請求項1に記載の中継装置。 The holding unit further includes:
Holding an IP (Internet Protocol) address included in the subnetwork to which the first link belongs as a first virtual IP address, holding an IP address included in the subnetwork to which the second link belongs as a second virtual IP address;
The address changing unit further changes the address,
(A) When the destination IP address of the frame received by the second interface is the second virtual IP address, the destination IP address of the frame is changed to the IP address of the first communication device and the frame Change the source IP address to the first virtual IP address,
(B) When the destination IP address of the frame received by the first interface is the first virtual IP address, the destination IP address is changed to the IP address of the second communication device and the source IP of the frame The relay device according to claim 1, wherein an address is changed to the second virtual IP address.
前記第一インタフェース及び前記第三インタフェースにより受信したフレームの送信元アドレスを、前記フレームを受信したインタフェースと対応付けて転送テーブルとして保持しており、
前記第一インタフェース又は前記第三インタフェースがフレームを受信すると、受信した前記フレームを、前記フレームの宛先アドレスに前記転送テーブルにおいて対応付けられたインタフェースにより送信することで転送する
請求項1又は2に記載の中継装置。 Before Symbol transfer unit further,
The transmission source address of the frame received by the first interface and the third interface is stored as a forwarding table in association with the interface that has received the frame,
3. When the first interface or the third interface receives a frame, the received frame is transferred by being transmitted by an interface associated with the destination address of the frame in the transfer table. 4. Relay device.
前記第二通信装置は、前記第三通信装置との間で第四通信リンクを確立することが可能であり、
前記第二リンクは、前記第四通信リンクよりセキュリティ強度が低い
請求項1〜3のいずれか1項に記載の中継装置。 The third interface has established the third link with a third communication device;
The second communication device is capable of establishing a fourth communication link with the third communication device;
The relay device according to claim 1, wherein the second link has a lower security strength than the fourth communication link.
請求項1〜4のいずれか1項に記載の中継装置。 The second link, the relay device according to any one of claims communication method of the data link layer is different from the first link 1-4.
前記仮想MACアドレスは、予め定められた方法で前記実MACアドレスから変換された、Wi−Fi Direct(登録商標)通信のためのローカルMACアドレスである
請求項1〜5のいずれか1項に記載の中継装置。 The second link is a communication link for performing Wi-Fi Direct (registered trademark) communication,
The virtual MAC address, said in a predetermined manner was converted from the real MAC address, Wi-Fi Direct (TM) is a local MAC address for communication according to any one of claims 1 to 5 Relay device.
前記中継装置は、
第一リンクを通じて第一通信装置に接続される第一インタフェースと、
前記第一リンクと異なる第二リンクを通じて、前記第一通信装置と異なる第二通信装置に接続される第二インタフェースと、
前記第一リンクと同一のサブネットワークに属する第三リンクを通じてネットワークに接続される第三インタフェースとを備え、
前記中継方法は、
前記第一通信装置のMACアドレスのうち前記第二通信装置との直接通信に用いられるMACアドレスである仮想MACアドレスを保持する保持ステップと、
前記第一インタフェース及び前記第二インタフェースの一方により受信したフレームのアドレス変更をするアドレス変更ステップと、
前記アドレス変更ステップで前記アドレス変更をしたフレームを、前記第一インタフェース及び前記第二インタフェースのうちの前記一方と異なる他方により送信することで転送する転送ステップとを含み、
前記アドレス変更ステップでは、前記アドレス変更により、
(a)前記第二インタフェースにより受信したフレームの宛先アドレスが、前記保持ステップで保持した前記仮想MACアドレスである場合に、当該フレームの宛先アドレスを、前記第一通信装置のMACアドレスのうち前記中継装置との通信に用いられるMACアドレスである実MACアドレスに変更し、
(b)前記第一インタフェースにより受信したフレームの宛先アドレスが前記第二通信装置のMACアドレスである場合に、当該フレームの送信元アドレスを、前記保持ステップで保持した前記仮想MACアドレスに変更し、
前記転送ステップでは、さらに、
前記第一インタフェースと前記第三インタフェースとの間でフレームを転送し、
前記第二インタフェース及び前記第三インタフェースの一方が受信したフレームを、前記第二インタフェース及び前記第三インタフェースの他方により送信することを禁止する
中継方法。 A frame relay method by a relay device,
The relay device is
A first interface connected to the first communication device through the first link;
A second interface connected to a second communication device different from the first communication device through a second link different from the first link ;
A third interface connected to the network through a third link belonging to the same subnetwork as the first link ,
The relay method is:
Holding a virtual MAC address that is a MAC address used for direct communication with the second communication device among the MAC addresses of the first communication device;
An address changing step for changing an address of a frame received by one of the first interface and the second interface;
A transfer step in which the frame whose address has been changed in the address change step is transferred by being transmitted by the other one different from the one of the first interface and the second interface,
In the address change step, by the address change,
(A) When the destination address of the frame received by the second interface is the virtual MAC address held in the holding step, the relay destination of the MAC address of the first communication device is used as the relay address. Change to the real MAC address that is the MAC address used for communication with the device,
(B) When the destination address of the frame received by the first interface is the MAC address of the second communication device, the transmission source address of the frame is changed to the virtual MAC address held in the holding step ;
In the transferring step,
Transferring frames between the first interface and the third interface;
A relay method for prohibiting transmission of a frame received by one of the second interface and the third interface through the other of the second interface and the third interface .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015103928A JP6330180B2 (en) | 2015-05-21 | 2015-05-21 | Relay device and relay method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015103928A JP6330180B2 (en) | 2015-05-21 | 2015-05-21 | Relay device and relay method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016220073A JP2016220073A (en) | 2016-12-22 |
JP6330180B2 true JP6330180B2 (en) | 2018-05-30 |
Family
ID=57579385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015103928A Active JP6330180B2 (en) | 2015-05-21 | 2015-05-21 | Relay device and relay method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6330180B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003078545A (en) * | 2001-09-04 | 2003-03-14 | Fujitsu Ltd | Transmission device and frame transfer method |
US7760720B2 (en) * | 2004-11-09 | 2010-07-20 | Cisco Technology, Inc. | Translating native medium access control (MAC) addresses to hierarchical MAC addresses and their use |
JP5668954B2 (en) * | 2011-11-30 | 2015-02-12 | 村田機械株式会社 | Relay server and relay communication system |
JP5339654B1 (en) * | 2013-04-15 | 2013-11-13 | 株式会社Sousou | Wireless relay system for IEEE802.11 standard communication and IEEE802.15.4 standard communication |
-
2015
- 2015-05-21 JP JP2015103928A patent/JP6330180B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2016220073A (en) | 2016-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5050849B2 (en) | Remote access system and its IP address assignment method | |
US9712383B2 (en) | Device abstraction in autonomous wireless local area networks | |
KR101376829B1 (en) | Methods and apparatuses for ip address allocation | |
JP4281768B2 (en) | Communication system, radio communication apparatus and control method thereof | |
KR20140129229A (en) | Internet protocol access through service-oriented architecture bus | |
JP2005130512A (en) | Method and system for supporting mobility of mobile terminal | |
US20150163656A1 (en) | Wireless local area network system based on an access point (ap) supporting wireless terminal roaming | |
JP6118122B2 (en) | COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM | |
US9356908B2 (en) | Method and system for causing a client device to renew a dynamic IP address | |
JP2016208513A (en) | Repeating method and corresponding communication network device, system, computer program and computer readable storage medium | |
KR20150125379A (en) | A method, a terminal and a server for providing communication service | |
JP2006014312A (en) | Radio printing system and method based on ieee 802.11 | |
JP5256129B2 (en) | Base station control device and radio packet processing device | |
US20150289194A1 (en) | Communication apparatus, control method for the same, communication system, and non-transitory computer-readable storage medium | |
JP6330180B2 (en) | Relay device and relay method | |
CN104254062A (en) | Direct connection link communication method and related equipment and system | |
JP2016039515A (en) | Network system, repeating device, and method for controlling constitution of a plurality of groups in network system | |
JP2015070571A (en) | Radio base station device, control method for radio base station device, and program | |
JP4760963B2 (en) | IPv6 address assignment method | |
JP6142169B2 (en) | Radio communication system, radio communication system control method, program, and radio base station apparatus | |
JP5514138B2 (en) | Communication system, GW apparatus, and policy control apparatus cooperation method | |
JP4432599B2 (en) | Mobile IP HA and / or communication terminal registration method and communication terminal | |
JP6708906B2 (en) | Communication device, communication system, and method for controlling communication device | |
JP2005244273A (en) | Data communication control apparatus | |
JP6435002B2 (en) | COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20171113 |
|
A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20171113 |
|
A975 | Report on accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A971005 Effective date: 20171115 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20171226 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180226 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20180320 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180402 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6330180 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |