JP5786643B2 - Communication network system, relay device in the same system, and relay processing program - Google Patents

Communication network system, relay device in the same system, and relay processing program Download PDF

Info

Publication number
JP5786643B2
JP5786643B2 JP2011234987A JP2011234987A JP5786643B2 JP 5786643 B2 JP5786643 B2 JP 5786643B2 JP 2011234987 A JP2011234987 A JP 2011234987A JP 2011234987 A JP2011234987 A JP 2011234987A JP 5786643 B2 JP5786643 B2 JP 5786643B2
Authority
JP
Japan
Prior art keywords
address
management server
terminal group
terminal
message
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
Application number
JP2011234987A
Other languages
Japanese (ja)
Other versions
JP2013093763A (en
Inventor
睦 永見
睦 永見
和輝 前村
和輝 前村
Original Assignee
サクサ株式会社
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 サクサ株式会社 filed Critical サクサ株式会社
Priority to JP2011234987A priority Critical patent/JP5786643B2/en
Publication of JP2013093763A publication Critical patent/JP2013093763A/en
Application granted granted Critical
Publication of JP5786643B2 publication Critical patent/JP5786643B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

本発明は、特に、ガス、電気、水道等の検針や、遮断、復帰等の制御を通信ネットワーク経由で行なうアプリケーションに用いて好適な、通信ネットワークシステム、および同システムにおける中継装置、ならびに中継処理プログラムに関する。   The present invention is particularly suitable for an application that performs control such as metering of gas, electricity, water supply, etc., shut-off, return, etc. via a communication network, a communication network system, a relay device in the system, and a relay processing program About.

従来、例えば、家庭にあるLPガスの検針を集中管理するガス検針システムでは、アナログやデジタルの電話回線経由で遠隔地からユーザ宅に無鳴動で電話を入れ、その応答を得ることで自動検針を行っていた。この電話回線を使用した自動検針システムによれば、検針実行の間、電話回線を占有することになり、また、複数の家庭を対象にした場合、検針にかかる時間が長くなる等の不都合が発生する。これを解決するために従来、IP(Internet
Protocol)ネットワーク経由で検針を行う自動検針システムが提案されている(例えば、特許文献1参照)。
Conventionally, for example, in a gas metering system that centrally manages metering of LP gas at home, automatic metering is performed by making a silent call to the user's home from a remote location via an analog or digital telephone line and obtaining the response. I was going. According to the automatic meter reading system using the telephone line, the telephone line is occupied during the meter reading, and inconveniences such as a long time for meter reading occur when targeting multiple households. To do. In order to solve this problem, IP (Internet
Protocol) An automatic meter reading system that performs meter reading via a network has been proposed (see, for example, Patent Document 1).

特許文献1に開示されたIPネットワークを使用した自動検針システムにおいて、各IP端末は、個体識別のための端末IDと固定のIPアドレスを有する。そして、その内容は、固定でIPアドレスが割り当てられた管理サーバの記憶装置に登録され、ここで関連付けられた端末IDとIPアドレスとにより、端末管理センターが管理運営する管理サーバと複数のIP端末間でIPネットワークを使用した相互通信を可能にしている。   In the automatic meter reading system using the IP network disclosed in Patent Document 1, each IP terminal has a terminal ID for individual identification and a fixed IP address. The contents are registered in the storage device of the management server to which the fixed IP address is assigned, and the management server and the plurality of IP terminals managed and operated by the terminal management center based on the associated terminal ID and IP address. It enables mutual communication using an IP network.

特開2002−27569号公報JP 2002-27569 A

上記したIPネットワークを使用した自動検針システムでは、ワイドエリアネットワーク(WAN:Wide Area Network)で一般的に使用されている動的IPアドレス割り当てに対応するために、IP端末に割り当てられるIPアドレスが動的に変化した場合、もしくは、定期的にIPアドレスの通知がIP端末から管理サーバに対して行なわれる。管理サーバは、このIPアドレスを受信して記憶装置に登録することで、IP端末に動的に割り当てられるIPアドレスを管理して通信を行っている。   In the automatic meter reading system using the IP network described above, the IP address assigned to the IP terminal is moved in order to cope with the dynamic IP address assignment generally used in the wide area network (WAN). The IP address is periodically notified from the IP terminal to the management server. The management server receives this IP address and registers it in the storage device, thereby managing the IP address dynamically assigned to the IP terminal for communication.

しかしながら、固定でIPアドレスが割り当てられることを前提に構築された既設の自動検針システムで動的に割り当てられるIPアドレスに対応するためには、設備の改変が必要になり、改変コストが必要になる他に改変リスクが伴う。また、管理サーバ側で、動的なIPアドレスに対応するために本来不要な通信が必要になり、その結果、通信トラフィックが増大して通信コストが嵩む。   However, in order to cope with an IP address dynamically assigned by an existing automatic meter reading system constructed on the assumption that a fixed IP address is assigned, the equipment needs to be modified, and the modification cost is required. There are other alteration risks. In addition, on the management server side, originally unnecessary communication is required in order to cope with a dynamic IP address. As a result, communication traffic increases and communication cost increases.

本発明は上記した課題を解決するためになされたものであり、固定でIPアドレスが割り当てられることを前提に構築された既設のネットワークに、動的にIPアドレスが割り当てられるネットワークを組み込む際に、設備の改変を不要として通信トラフィックの増大を防ぎ、低いコストで検針等のアプリケーションを実行可能な、通信ネットワークシステム、および同システムにおける中継装置、ならびに中継処理プログラムを提供することを目的とする。   The present invention has been made in order to solve the above-described problems, and when incorporating a network in which an IP address is dynamically assigned into an existing network constructed on the assumption that a fixed IP address is assigned, An object of the present invention is to provide a communication network system, a relay device in the system, and a relay processing program capable of executing an application such as meter reading at a low cost by preventing modification of equipment and preventing an increase in communication traffic.

上記した課題を解決するために本発明の第1の観点に係る通信ネットワークシステムは、固定IPアドレスが割り当てられた第1の端末群が第1の通信ネットワーク経由で管理サーバに接続される第1のネットワークセグメントと、前記IPアドレスが動的に割り当てられる第2の端末群が第2の通信ネットワーク経由で前記管理サーバに接続される第2のネットワークセグメントとからなる通信ネットワークシステムである。この通信ネットワークシステムにおいて、前記第1のネットワークセグメントと前記第2のネットワークセグメントとの間に中継装置を接続し、前記中継装置は、前記第2の端末群に動的に割り当てられるIPアドレスを、前記第1のネットワークセグメントの一部としての仮想IPアドレスに置換え、前記管理サーバと前記第2の端末群との間で送受信される電文を中継することを特徴とする。   In order to solve the above-described problem, a communication network system according to a first aspect of the present invention includes a first terminal group to which a fixed IP address is assigned connected to a management server via a first communication network. And a second network segment in which a second terminal group to which the IP address is dynamically assigned is connected to the management server via a second communication network. In this communication network system, a relay device is connected between the first network segment and the second network segment, and the relay device assigns an IP address dynamically assigned to the second terminal group, It replaces with a virtual IP address as a part of the first network segment, and relays a message transmitted and received between the management server and the second terminal group.

本発明の第1の観点に係る通信ネットワークシステムによれば、第1のネットワークセグメントと第2のネットワークセグメントとの間に接続された中継装置が、第2の端末群に動的に割り当てられるIPアドレスを、第1のネットワークセグメントの一部としての仮想IPアドレスに置換え、管理サーバと第2の端末群との間で送受信される電文を中継する。この中継装置により、固定でIPアドレスが割り当てられることを前提に構築された第1のネットワークセグメントに、動的にIPアドレスが割り当てられる第2のネットワークセグメントを組み込む際に、既設の設備の改変を不要とし、したがって、改変リスクが伴うことなく、低いコストで検針等のアプリケーションを実現する通信ネットワークシステムを提供することができる。また、設備の改変が不要になることで、管理サーバ側で動的なIPアドレスに対応するための通信トラフィックの増大が防止できるため、通信コストが嵩むことはない。   According to the communication network system according to the first aspect of the present invention, the relay device connected between the first network segment and the second network segment is dynamically assigned to the second terminal group. The address is replaced with a virtual IP address as a part of the first network segment, and a message transmitted and received between the management server and the second terminal group is relayed. When the second network segment dynamically assigned with the IP address is incorporated into the first network segment constructed on the assumption that the IP address is fixedly assigned by the relay device, the existing equipment is modified. Therefore, it is possible to provide a communication network system that realizes an application such as meter reading at a low cost without any modification risk. Further, since no modification of equipment is required, an increase in communication traffic for dealing with a dynamic IP address on the management server side can be prevented, so that communication cost does not increase.

本発明の第1の観点に係る通信ネットワークシステムにおいて、前記中継装置は、前記第2の端末群に割り当てられるIPアドレスが動的に変化した場合、または前記第2の端末群から定期的に送信される電文により、前記仮想IPアドレスと端末IPアドレスとの関連付けを行うことを特徴とする。本発明によれば、中継装置で関連付けられた仮想IPアドレスと端末IPアドレスにより、管理サーバと第2の端末群間の通信が中継されるため、管理サーバは第2の端末群に動的に割り当てられるIPアドレスを管理する必要が無くなり、したがって、そのための処理負荷が減少して通信ネットワークシステムとしてのスループットが向上する。   In the communication network system according to the first aspect of the present invention, the relay device transmits the IP address assigned to the second terminal group dynamically or periodically from the second terminal group. The virtual IP address and the terminal IP address are associated with each other by a transmitted message. According to the present invention, since the communication between the management server and the second terminal group is relayed by the virtual IP address and the terminal IP address associated with each other in the relay device, the management server dynamically moves to the second terminal group. There is no need to manage the assigned IP address, and therefore the processing load for the management is reduced and the throughput of the communication network system is improved.

本発明の第1の観点に係る通信ネットワークシステムにおいて、前記中継装置は、前記管理サーバが前記第2の端末群に電文を送信するにあたりゲートウェイとして設定されるRAWソケットにより、自身宛てに送信されていない電文を受信する第1のIP通信インタフェース部を有することを特徴とする。本発明によれば、中継装置は、管理サーバによりゲートウェイとして設定されるRAWソケットにより、管理サーバから第2の端末群に送信される全ての電文を受信する。このため、管理サーバから全ての第2の端末群に対する、例えば、遮断や復帰等の管理電文を中継することができる。   In the communication network system according to the first aspect of the present invention, the relay device is transmitted to itself by a RAW socket set as a gateway when the management server transmits a message to the second terminal group. It has the 1st IP communication interface part which receives the message which does not exist. According to the present invention, the relay device receives all messages transmitted from the management server to the second terminal group through a RAW socket set as a gateway by the management server. For this reason, it is possible to relay, for example, a management message such as blocking or returning to all the second terminal groups from the management server.

本発明の第1の観点に係る通信ネットワークシステムにおいて、前記中継装置は、前記第2の端末群と通信を行う際の固定IPアドレスが割り当てられる第2のIP通信インタフェース部と、前記関連付けられた前記仮想IPアドレスと前記固定IPアドレスが記憶される記憶部と、前記管理サーバから前記第2の端末群に電文を送信する場合、前記第1のIP通信インタフェース部で前記管理サーバから前記電文を受信すると、前記電文の送信先である前記仮想IPアドレスに基づき前記記憶部を参照して対応する端末に割り当てられているIPアドレスを得、宛先に設定して前記第2のIP通信インタフェース部を介して前記第2の端末群に送信し、前記第2の端末群から前記管理サーバに電文を送信する場合、前記第2の通信インタフェース部で前記第2の端末群から前記電文を受信すると、前記電文の発信元である前記端末のIPアドレスに基づき前記記憶部を参照して対応する仮想IPアドレスを得、当該仮想IPアドレスを宛先に設定して前記第1のIP通信インタフェース部を介して前記管理サーバへ送信する中継処理部と、を有することを特徴とする。   In the communication network system according to the first aspect of the present invention, the relay device is associated with a second IP communication interface unit to which a fixed IP address is assigned when communicating with the second terminal group. In the case where a message is transmitted from the management server to the second terminal group, the message is transmitted from the management server by the first IP communication interface unit when the virtual IP address and the fixed IP address are stored. Upon receipt, the IP address assigned to the corresponding terminal is obtained by referring to the storage unit based on the virtual IP address that is the transmission destination of the message, and the second IP communication interface unit is set as the destination. When transmitting a message to the second terminal group and transmitting a message from the second terminal group to the management server, the second communication interface When the message is received from the second terminal group by the source unit, the corresponding virtual IP address is obtained by referring to the storage unit based on the IP address of the terminal that is the source of the message. And a relay processing unit configured to transmit to the management server via the first IP communication interface unit.

本発明によれば、中継装置は、管理サーバから第2の端末群に電文を送信する場合、第1のIP通信インタフェース部で管理サーバから電文を受信すると、電文の送信先である仮想IPアドレスに基づき記憶部を参照して対応する端末のIPアドレスを得、宛先に設定して第2のIP通信インタフェース部を介して第2の端末群に送信する。また、中継装置は、第2の端末群から管理サーバに電文を送信する場合、第2の通信インタフェース部で第2の端末群から電文を受信すると、電文の発信元である固定IPアドレスに基づき記憶部を参照して対応する仮想IPアドレスを得、当該仮想IPアドレスを宛先に設定して第1のIP通信インタフェース部を介して管理サーバへ送信する。このため、固定でIPアドレスが割り当てられることを前提にシステム構築された管理サーバと、動的にIPアドレスが割り当てられる第2の端末群との間で、管理サーバの負荷が無く、遮断や復旧等の要求電文や検針電文等の相互通信が可能になる。   According to the present invention, when the relay device transmits a message from the management server to the second terminal group, when the relay device receives the message from the management server by the first IP communication interface unit, the virtual IP address that is the transmission destination of the message The IP address of the corresponding terminal is obtained by referring to the storage unit, set as the destination, and transmitted to the second terminal group via the second IP communication interface unit. In addition, when the relay device transmits a message from the second terminal group to the management server, when the second communication interface unit receives the message from the second terminal group, the relay device is based on the fixed IP address that is the source of the message. A corresponding virtual IP address is obtained by referring to the storage unit, the virtual IP address is set as a destination, and is transmitted to the management server via the first IP communication interface unit. For this reason, there is no load on the management server between the management server constructed on the premise that a fixed IP address is assigned and the second terminal group to which the IP address is dynamically assigned, and is shut down or restored. Mutual communication such as request messages and meter reading messages is possible.

本発明の第2の観点に係る中継装置は、固定IPアドレスが割り当てられた第1の端末群が第1の通信ネットワーク経由で管理サーバに接続される第1のネットワークセグメントと、前記IPアドレスが動的に割り当てられる第2の端末群が第2の通信ネットワーク経由で前記管理サーバに接続される第2のネットワークセグメントからなるネットワークシステムにおいて、前記第1のネットワークセグメントと前記第2のネットワークセグメントとの間に接続される中継装置である。当該中継装置は、前記第2の端末群に動的に割り当てられるIPアドレスを、前記第1のネットワークセグメントの一部としての仮想IPアドレスに置換え、前記管理サーバと前記第2の端末群との間で送受信される電文を中継する制御手段、を有することを特徴とする。   A relay device according to a second aspect of the present invention includes a first network segment in which a first terminal group to which a fixed IP address is assigned is connected to a management server via a first communication network, and the IP address is In a network system comprising a second network segment in which a second group of dynamically assigned terminals is connected to the management server via a second communication network, the first network segment and the second network segment It is a relay apparatus connected between. The relay apparatus replaces an IP address dynamically assigned to the second terminal group with a virtual IP address as a part of the first network segment, and connects the management server and the second terminal group. It has a control means which relays the message transmitted / received between, It is characterized by the above-mentioned.

本発明の第2の観点に係る中継装置によれば、制御手段は、第2の端末群に動的に割り当てられるIPアドレスを、第1のネットワークセグメントの一部としての仮想IPアドレスに置換え、管理サーバと第2の端末群との間で送受信される電文を中継する。このため、固定でIPアドレスが割り当てられることを前提に構築された第1のネットワークセグメントに、動的にIPアドレスが割り当てられる第2のネットワークセグメントを組み込む際に、既設の設備の改変を不要とし、したがって、改変リスクが伴うことなく、低いコストで検針等のアプリケーションを実現することができる。また、設備の改変が不要になることで、管理サーバ側で動的なIPアドレスに対応するための通信トラフィックの増大が防止できるため、通信コストが嵩むことはない。   According to the relay device according to the second aspect of the present invention, the control unit replaces the IP address dynamically assigned to the second terminal group with the virtual IP address as a part of the first network segment, It relays messages sent and received between the management server and the second terminal group. For this reason, when the second network segment dynamically assigned with the IP address is incorporated into the first network segment constructed on the assumption that a fixed IP address is assigned, it is not necessary to modify the existing equipment. Therefore, it is possible to realize an application such as meter reading at a low cost without any risk of modification. Further, since no modification of equipment is required, an increase in communication traffic for dealing with a dynamic IP address on the management server side can be prevented, so that communication cost does not increase.

本発明の第2の観点に係る中継装置において、前記制御手段は、前記管理サーバが前記第2の端末群に電文を送信するにあたり、前記管理サーバによりゲートウェイとして設定されるRAWソケットにより前記中継装置宛でない電文を受信する第1のIP通信インタフェース部と、前記第2の端末群と通信を行う際の固定IPアドレスが割り当てられる第2のIP通信インタフェース部と、前記第2の端末群に割り当てられるIPアドレスが動的に変化した場合、または前記第2の端末群から定期的に送信される電文により関連付けられる前記仮想IPアドレスと前記端末のIPアドレスとを記憶する記憶部と、前記管理サーバから前記第2の端末群に電文を送信する場合、前記第1のIP通信インタフェース部で前記管理サーバから前記電文を受信すると、前記電文の送信先である前記仮想IPアドレスに基づき前記記憶部を参照して対応する端末のIPアドレスを得、宛先に設定して前記第2のIP通信インタフェース部を介して前記第2の端末群に送信し、前記第2の端末群から前記管理サーバに電文を送信する場合、前記第2の通信インタフェース部で前記第2の端末群から前記電文を受信すると、前記電文の発信元である前記端末のIPアドレスに基づき前記記憶部を参照して対応する仮想IPアドレスを得、当該仮想IPアドレスを宛先に設定して前記第1のIP通信インタフェース部を介して前記管理サーバへ送信する中継処理部と、を有することを特徴とする。   In the relay device according to the second aspect of the present invention, the control means uses the RAW socket set as a gateway by the management server when the management server transmits a message to the second terminal group. A first IP communication interface unit that receives a message not addressed, a second IP communication interface unit to which a fixed IP address for communication with the second terminal group is assigned, and an assignment to the second terminal group A storage unit for storing the virtual IP address and the IP address of the terminal associated with each other when the IP address to be dynamically changed or by a message transmitted periodically from the second terminal group; When transmitting a message from the management server to the second terminal group, the first IP communication interface unit transmits the message from the management server. Is received, an IP address of a corresponding terminal is obtained by referring to the storage unit based on the virtual IP address that is a transmission destination of the message, and set as a destination via the second IP communication interface unit. When transmitting to the second terminal group and transmitting a message from the second terminal group to the management server, when receiving the message from the second terminal group at the second communication interface unit, Based on the IP address of the terminal that is the transmission source, the storage unit is referred to obtain a corresponding virtual IP address, the virtual IP address is set as a destination, and the management server is set via the first IP communication interface unit And a relay processing unit that transmits to the network.

本発明によれば、中継処理部は、管理サーバから第2の端末群に電文を送信する場合、第1のIP通信インタフェース部で管理サーバから電文を受信すると、電文の送信先である仮想IPアドレスに基づき記憶部を参照して対応する端末のIPアドレスを得、宛先に設定して第2のIP通信インタフェース部を介して第2の端末群に送信する。また、中継処理部は、第2の端末群から管理サーバに電文を送信する場合、第2の通信インタフェース部で第2の端末群から電文を受信すると、電文の発信元である端末のIPアドレスに基づき記憶部を参照して対応する仮想IPアドレスを得、当該仮想IPアドレスを宛先に設定して第1のIP通信インタフェース部を介して管理サーバへ送信する。このため、固定でIPアドレスが割り当てられることを前提にシステム構築された第1のネットワークセグメントと、動的にIPアドレスが割り当てられる第2の端末群との間で、管理サーバの負荷が無く、遮断や復旧等の要求電文や検針電文等の相互通信が可能になる。   According to the present invention, when the relay processing unit transmits a message from the management server to the second terminal group, when the first IP communication interface unit receives the message from the management server, the relay processing unit receives the virtual IP that is the transmission destination of the message. Based on the address, the storage unit is referred to obtain the IP address of the corresponding terminal, set as a destination, and transmitted to the second terminal group via the second IP communication interface unit. In addition, when the relay processing unit transmits a message from the second terminal group to the management server, when the second communication interface unit receives the message from the second terminal group, the IP address of the terminal that is the source of the message The corresponding virtual IP address is obtained by referring to the storage unit, and the virtual IP address is set as a destination and transmitted to the management server via the first IP communication interface unit. For this reason, there is no load of the management server between the first network segment constructed on the premise that the IP address is fixedly assigned and the second terminal group to which the IP address is dynamically assigned, Mutual communication of request messages such as blocking and restoration and meter reading messages becomes possible.

上記した課題を解決するために本発明の第3の観点に係る中継処理プログラムは、固定IPアドレスが割り当てられた第1の端末群が第1の通信ネットワーク経由で管理サーバに接続される第1のネットワークセグメントと、前記IPアドレスが動的に割り当てられる第2の端末群が第2の通信ネットワーク経由で前記管理サーバに接続される第2のネットワークセグメントからなるネットワークシステムにおいて、コンピュータによって実行され、前記第1のネットワークセグメントと前記第2のネットワークセグメントとの間に接続される中継装置に用いられる中継処理プログラムである。当該中継処理プログラムは、前記コンピュータに、前記第2の端末群に動的に割り当てられるIPアドレスを、前記第1のネットワークセグメントの一部としての仮想IPアドレスに置換え、前記管理サーバと前記第2の端末群との間で送受信される電文を中継する処理を実行させる。   In order to solve the above-described problem, the relay processing program according to the third aspect of the present invention is configured such that a first terminal group to which a fixed IP address is assigned is connected to a management server via a first communication network. And a second network group in which a second terminal group to which the IP address is dynamically assigned is connected to the management server via a second communication network, is executed by a computer, A relay processing program used in a relay device connected between the first network segment and the second network segment. The relay processing program replaces the IP address dynamically assigned to the second terminal group in the computer with a virtual IP address as a part of the first network segment, and the management server and the second The process of relaying a message transmitted / received to / from the terminal group is executed.

本発明によれば、固定でIPアドレスが割り当てられることを前提に構築された既設のネットワークに、動的にIPアドレスが割り当てられるネットワークを組み込む際に、設備の改変を不要として通信トラフィックの増大を防ぎ、低いコストで検針等のアプリケーションを実行可能な、通信ネットワークシステム、および同システムにおける中継装置、ならびに中継処理プログラムを提供すること
ができる。
According to the present invention, when a network in which an IP address is dynamically assigned is incorporated into an existing network that is constructed on the assumption that a fixed IP address is assigned, it is possible to increase communication traffic without requiring modification of equipment. It is possible to provide a communication network system, a relay device in the system, and a relay processing program capable of preventing and executing an application such as meter reading at a low cost.

本発明の実施の形態に係る通信ネットワークシステムの接続形態を示すブロック図である。It is a block diagram which shows the connection form of the communication network system which concerns on embodiment of this invention. 本発明の実施の形態に係る中継装置の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the relay apparatus which concerns on embodiment of this invention. 図1における管理サーバの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the management server in FIG. 図1におけるワイドエリアネットワーク端末の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the wide area network terminal in FIG. 本発明の実施の形態に係る通信ネットワークシステムを構成する各要素間の動作を示すシーケンス図である。It is a sequence diagram which shows the operation | movement between each element which comprises the communication network system which concerns on embodiment of this invention.

以下、添付図面を参照して本発明を実施するための実施の形態(以下、単に本実施形態という)について詳細に説明する。   Hereinafter, an embodiment for carrying out the present invention (hereinafter simply referred to as the present embodiment) will be described in detail with reference to the accompanying drawings.

(実施形態の構成)
図1は、本実施形態に係る通信ネットワークシステム1の接続形態を示すブロック図である。図1に示されるように、本実施形態に係る通信ネットワークシステム1は、固定IPアドレスが割り当てられたローカルエリアネットワーク(LAN:Local
Area Network)用端末11(第1の端末群であって、以下、単にLAN端末#1(11a)〜#n(11d)という)が第1の通信ネットワークとしてのLAN12(Local
Area Network)経由で管理サーバ13に接続されるローカルエリアセグメント10(第1のネットワークセグメント)と、IPアドレスが動的に割り当てられるワイドエリアネットワーク用端末14(第2の端末群であって、以下、単にWAN端末#1(14a)〜#n(14b)という)がIP網16(第2の通信ネットワーク)経由で管理サーバ13に接続されるワイドエリアセグメント20(第2のネットワークセグメント)と、を含み構成される。
(Configuration of the embodiment)
FIG. 1 is a block diagram showing a connection form of a communication network system 1 according to the present embodiment. As shown in FIG. 1, a communication network system 1 according to this embodiment is a local area network (LAN: Local) to which a fixed IP address is assigned.
Area Network) terminal 11 (first terminal group, hereinafter simply referred to as LAN terminals # 1 (11a) to #n (11d)) is a LAN 12 (Local
A local area segment 10 (first network segment) connected to the management server 13 via an area network) and a wide area network terminal 14 (second terminal group) to which an IP address is dynamically assigned, A wide area segment 20 (second network segment) in which WAN terminals # 1 (14a) to #n (14b) are simply connected to the management server 13 via the IP network 16 (second communication network); It is comprised including.

WAN端末#1(14a)、#n(14b)は、ルータ15a、15bのそれぞれを介し、共にIP網16に接続される。そして、本通信ネットワークシステム1の特徴として、ローカルエリアセグメント10と、ワイドエリアセグメント20との間に中継装置17が接続されている。この中継装置17は、WAN端末#1(14a)、#n(14b)に動的に割り当てられるIPアドレスを、ローカルエリアセグメント10の一部としての仮想IPアドレスに置換え、管理サーバ13とWAN端末#1(14a)、あるいはWAN端末#n(14b)との間で送受信される電文を中継する制御手段として機能する。   The WAN terminals # 1 (14a) and #n (14b) are both connected to the IP network 16 via the routers 15a and 15b. As a feature of the communication network system 1, a relay device 17 is connected between the local area segment 10 and the wide area segment 20. The relay device 17 replaces the IP address dynamically assigned to the WAN terminals # 1 (14a) and #n (14b) with a virtual IP address as a part of the local area segment 10, and the management server 13 and the WAN terminal # 1 (14a) or functions as a control means for relaying a message transmitted / received to / from WAN terminal #n (14b).

このため、中継装置17は、例えば、図2に示されるように、RAWソケットIP通信インタフェース部171(第1のIP通信インタフェース部)と、IP通信インタフェース部172(第2のIP通信インタフェース部)と、記憶部173と、中継処理部174と、から構成される。   Therefore, for example, as shown in FIG. 2, the relay device 17 includes a RAW socket IP communication interface unit 171 (first IP communication interface unit) and an IP communication interface unit 172 (second IP communication interface unit). And a storage unit 173 and a relay processing unit 174.

RAWソケットIP通信インタフェース部171は、管理サーバ13がWAN端末#1(14a)、#n(14b)に電文を送信するにあたり、管理サーバ13によりゲートウェイとして設定されるRAWソケットによって中継装置宛でない、すなわち全ての電文を受信する。IP通信インタフェース部172には、WAN端末#1(14a)、#n(14b)と通信を行う際の固定IPアドレスが割り当てられている。なお、記憶部173には、WAN端末#1(14a)、#n(14b)に割り当てられるIPアドレスが動的に変化した場合、または定期的に送信される電文によって関連付けられた仮想IPアドレスとWAN端末のIPアドレスからなるアドレステーブルが記憶される。   When the management server 13 transmits a message to the WAN terminals # 1 (14a) and #n (14b), the RAW socket IP communication interface unit 171 is not addressed to the relay device by a RAW socket set as a gateway by the management server 13. That is, all messages are received. The IP communication interface unit 172 is assigned a fixed IP address when communicating with the WAN terminals # 1 (14a) and #n (14b). Note that the storage unit 173 includes virtual IP addresses associated with WAN terminals # 1 (14a) and #n (14b) that are dynamically changed, or that are associated with telegrams that are periodically transmitted. An address table composed of WAN terminal IP addresses is stored.

中継処理部174は、管理サーバ13からWAN端末#1(14a)、#n(14b)に電文を送信する場合、RAWソケットIP通信インタフェース部171で管理サーバ13から電文を受信すると、当該電文の送信先である仮想IPアドレスに基づき記憶部173のアドレステーブルを参照して対応するWAN端末のIPアドレスを得、宛先に設定してIP通信インタフェース部172を介してWAN端末#1(14a)、あるいはWAN端末#n(14b)に送信する。一方、WAN端末#1(14a)、#n(14b)から管理サーバ13に電文を送信する場合、IP通信インタフェース部172でWAN端末#1(14a)、#n(14b)から電文を受信すると、当該電文の発信元であるWAN端末のIPアドレスに基づき記憶部173のアドレステーブルを参照して対応する仮想IPアドレスを得、当該仮想IPアドレスを宛先に設定してRAWソケットIP通信インタフェース部171を介して管理サーバ13へ送信する。   When the relay processing unit 174 transmits a message from the management server 13 to the WAN terminals # 1 (14a) and #n (14b), when the RAW socket IP communication interface unit 171 receives the message from the management server 13, the relay processing unit 174 Based on the destination virtual IP address, the address table of the storage unit 173 is referred to obtain the IP address of the corresponding WAN terminal, set as the destination, and the WAN terminal # 1 (14a) via the IP communication interface unit 172, Or it transmits to WAN terminal #n (14b). On the other hand, when a message is transmitted from the WAN terminals # 1 (14a) and #n (14b) to the management server 13, the IP communication interface unit 172 receives a message from the WAN terminals # 1 (14a) and #n (14b). The corresponding virtual IP address is obtained by referring to the address table of the storage unit 173 based on the IP address of the WAN terminal that is the source of the message, and the RAW socket IP communication interface unit 171 is set with the virtual IP address as the destination. To the management server 13 via

次に、図3を参照して図1における管理サーバ13の内部構成を、図4を参照してワイドエリアネットワーク用端末14の内部構成をそれぞれ説明する。図3に示されるように、管理サーバ13は、端末管理部131と、IP通信インタフェース部132と、記憶部133とを含み構成される。端末管理部131は、遮断や復帰等、管理対象となる端末制御のための要求電文を生成し、ここで管理対象となるLAN端末#1(11a)〜#n(11d)や、WAN端末#1(14a)、#n(14b)に対して送信する。また、端末管理部131は、ワイドエリアセグメント20に対し、中継装置17のRAWソケットIP通信インタフェース部をゲートウェイに設定してWAN端末#1(14a)、#n(14b)に対して仮想IPアドレス宛てに電文を送信する。   Next, the internal configuration of the management server 13 in FIG. 1 will be described with reference to FIG. 3, and the internal configuration of the wide area network terminal 14 will be described with reference to FIG. As shown in FIG. 3, the management server 13 includes a terminal management unit 131, an IP communication interface unit 132, and a storage unit 133. The terminal management unit 131 generates a request message for controlling a terminal to be managed, such as blocking or returning, and the LAN terminals # 1 (11a) to #n (11d) or WAN terminal # to be managed here. 1 (14a) and #n (14b). Also, the terminal management unit 131 sets the RAW socket IP communication interface unit of the relay device 17 as a gateway for the wide area segment 20 and sets virtual IP addresses for the WAN terminals # 1 (14a) and #n (14b). Send a message to the address.

IP通信インタフェース部132は、中継装置17との間で電文を送受信する際のインタフェースとなり、固定のIPアドレスが割り当てられる。なお、記憶部133には、個体識別のための端末IDと仮想IPアドレスが対で記憶されている。   The IP communication interface unit 132 is an interface for transmitting / receiving a message to / from the relay device 17 and is assigned a fixed IP address. The storage unit 133 stores a terminal ID and a virtual IP address for individual identification in pairs.

図4に示されるように、ワイドエリアネットワーク用端末14(例えば、WAN端末#1(14a))は、端末本体部141と、IP通信インタフェース部142と、記憶部143とを含み構成される。端末本体部141は、検針データを生成してIP通信インタフェース部142経由で管理サーバ13へ電文を送信する。なお、記憶部143には、固定で割り当てられる仮想IPアドレスが記憶されている。   As shown in FIG. 4, the wide area network terminal 14 (for example, WAN terminal # 1 (14a)) includes a terminal main body 141, an IP communication interface 142, and a storage 143. The terminal body 141 generates meter reading data and transmits a message to the management server 13 via the IP communication interface 142. The storage unit 143 stores a fixed virtual IP address.

(実施形態の動作)
以下、図5のシーケンス図を参照しながら本実施形態に係る通信ネットワークシステム1の動作について詳細に説明する。図5において、まず、WAN端末#1(14a)、#n(14b)のそれぞれは、端末に割り当てられるIPアドレスが動的に変化した場合、または定期的に、割り当てられた仮想IPアドレスを端末本体部141からIP通信インタフェース部142経由で中継装置17宛てに送信する(ステップS101)。これを受けて中継装置17では、IP通信インタフェース部172経由で中継処理部174が受信し、記憶部173の一部領域に格納されてあるアドレステーブルの内容を更新する(ステップS102)。ここで、アドレステーブルには、端末IPアドレスと関連付けられた仮想IPアドレスとの対が記憶される。
(Operation of the embodiment)
Hereinafter, the operation of the communication network system 1 according to the present embodiment will be described in detail with reference to the sequence diagram of FIG. In FIG. 5, first, each of the WAN terminals # 1 (14a) and #n (14b) receives the assigned virtual IP address when the IP address assigned to the terminal dynamically changes or periodically. Transmission is performed from the main body 141 to the relay device 17 via the IP communication interface 142 (step S101). In response, in the relay device 17, the relay processing unit 174 receives via the IP communication interface unit 172, and updates the contents of the address table stored in a partial area of the storage unit 173 (step S102). Here, the address table stores a pair of the virtual IP address associated with the terminal IP address.

次に、管理サーバ13からWAN端末#1(14a)、またはWAN端末#n(14b)に対して要求電文を送信するときの動作について説明する。端末管理部131は、要求電文を生成すると共に、ワイドエリアセグメント20に対し、中継装置17のRAWソケットIP通信インタフェース部171をゲートウェイに設定し、WAN端末#1(14a)またはWAN端末#n(14b)と通信を行う場合に、IP通信インタフェース部132経由で仮想IPアドレス宛、生成した要求電文を送信する(ステップS111)。   Next, an operation when a request message is transmitted from the management server 13 to the WAN terminal # 1 (14a) or the WAN terminal #n (14b) will be described. The terminal management unit 131 generates a request message, sets the RAW socket IP communication interface unit 171 of the relay device 17 as a gateway for the wide area segment 20, and sets the WAN terminal # 1 (14a) or the WAN terminal #n ( 14b), the generated request message addressed to the virtual IP address is transmitted via the IP communication interface unit 132 (step S111).

中継装置17は、管理サーバ13からのゲートウェイとして動作するためにRAWソケットIP通信インタフェース部171を備えている。ここで、中継装置17は、RAWソケットIP通信インタフェース部171により、中継装置宛でない電文、所謂、スニファリングによりWAN端末#1(14a)またはWAN端末#n(14b)宛ての全ての電文を受信することができる(ステップS112)。RAWソケットの設定によりスニファリングが可能になることは周知の事項である。また、中継装置17は、WAN端末#1(14a)またはWAN端末#n(14b)と通信を行うために、固定のIPアドレスが割り当てられるIP通信インタフェース部172を備えている。中継処理部174は、管理サーバ13から受信した要求電文の送信先である仮想IPアドレスをキーに記憶部173のアドレステーブルを参照し、このアドレステーブルから実際の端末IPアドレスを読み出し、これを宛先とするようにIPヘッダの内容を置換え(ステップS113)、IP通信インタフェース部172から送信する(ステップS114)。   The relay device 17 includes a RAW socket IP communication interface unit 171 to operate as a gateway from the management server 13. Here, the relay device 17 receives all the messages addressed to the WAN terminal # 1 (14a) or WAN terminal #n (14b) by so-called sniffing by the RAW socket IP communication interface unit 171. (Step S112). It is a well-known matter that sniffing is possible by setting a RAW socket. In addition, the relay device 17 includes an IP communication interface unit 172 to which a fixed IP address is assigned in order to communicate with the WAN terminal # 1 (14a) or the WAN terminal #n (14b). The relay processing unit 174 refers to the address table of the storage unit 173 using the virtual IP address that is the transmission destination of the request message received from the management server 13 as a key, reads the actual terminal IP address from this address table, and stores this as the destination Then, the content of the IP header is replaced (step S113) and transmitted from the IP communication interface unit 172 (step S114).

続いて、IP通信インタフェース部142経由で要求電文を受信したWAN端末#1(14a)またはWAN端末#n(14b)は、端末本体部141がその要求電文に応じた遮断や復旧等の制御を行う。   Subsequently, in the WAN terminal # 1 (14a) or the WAN terminal #n (14b) that has received the request message via the IP communication interface unit 142, the terminal body unit 141 performs control such as blocking and restoration according to the request message. Do.

次に、WAN端末#1(14a)またはWAN端末#n(14b)から管理サーバ13宛てに検針電文を送信する場合の動作について説明する。WAN端末#1(14a)、#n(14b)には、予め中継装置17のIP通信インタフェース部172に固定で割り当てられたIPアドレスを登録してあるものとし、管理サーバ13宛て検針電文を送信する場合は、中継装置17のIP通信インタフェース部172宛てに送信するものとする(ステップS121)。   Next, the operation when a meter reading message is transmitted from the WAN terminal # 1 (14a) or the WAN terminal #n (14b) to the management server 13 will be described. In WAN terminals # 1 (14a) and #n (14b), an IP address fixedly assigned to the IP communication interface unit 172 of the relay device 17 is registered in advance, and a meter reading message is transmitted to the management server 13. When doing so, it shall transmit to the IP communication interface part 172 of the relay apparatus 17 (step S121).

WAN端末#1(14a)またはWAN端末#n(14b)からIP通信インタフェース部172経由で検針電文を受信した中継装置17は、中継処理部174で、送信元であるWAN端末#1(14a)、またはWAN端末#n(14b)の端末IPアドレスをキーに記憶部173のアドレステーブルを参照し、得られる仮想IPアドレスを検針電文の送信元に設定するようにIPヘッダの内容を置換え(ステップS122)、RAWソケットIP通信インタフェース部171経由で管理サーバ13のIP通信インタフェース部132宛、送信する(ステップS123)。このことにより、管理サーバ13は、端末管理部131でWAN端末#1(14a)、#n(14b)からの検針データを収集することができる。   The relay device 17 that has received the meter-reading message from the WAN terminal # 1 (14a) or the WAN terminal #n (14b) via the IP communication interface unit 172 is the relay processing unit 174, and the WAN terminal # 1 (14a) that is the transmission source Or by referring to the address table of the storage unit 173 using the terminal IP address of the WAN terminal #n (14b) as a key, and replacing the contents of the IP header so as to set the obtained virtual IP address as the transmission source of the meter reading message (step) S122), and transmits to the IP communication interface unit 132 of the management server 13 via the RAW socket IP communication interface unit 171 (step S123). As a result, the management server 13 can collect meter reading data from the WAN terminals # 1 (14a) and #n (14b) by the terminal management unit 131.

(実施形態の効果)
以上説明のように本実施形態に係る通信ネットワークシステム1によれば、既設の第1のネットワークセグメント(ローカルエリアセグメント10)と、新設の第2のネットワークセグメント(ワイドエリアセグメント20)との間に接続された中継装置17が、第2の端末群(ワイドエリアネットワーク用端末14)に動的に割り当てられるIPアドレスを、第1のネットワークセグメント(ローカルエリアセグメント10)の一部としての仮想IPアドレスに置換え、管理サーバ13と第2の端末群(ワイドエリアネットワーク用端末14)との間で送受信される電文を中継する。この中継装置17により、固定でIPアドレスが割り当てられることを前提に構築された第1のネットワークセグメント(ローカルエリアセグメント10)に、動的にIPアドレスが割り当てられる第2のネットワークセグメント(ワイドエリアセグメント20)を組み込む際に、既設の設備の改変を不要とし、したがって、改変リスクが伴うことなく、低いコストで検針等のアプリケーションを実現する通信ネットワークシステム1を提供することができる。また、設備の改変が不要になることで、管理サーバ13側で動的なIPアドレスに対応するための通信トラフィックの増大が防止できるため、通信コストが嵩むことはない。
(Effect of embodiment)
As described above, according to the communication network system 1 according to the present embodiment, between the existing first network segment (local area segment 10) and the newly installed second network segment (wide area segment 20). A virtual IP address as a part of the first network segment (local area segment 10) is assigned an IP address to which the connected relay device 17 is dynamically assigned to the second terminal group (wide area network terminal 14). The message transmitted and received between the management server 13 and the second terminal group (wide area network terminal 14) is relayed. A second network segment (wide area segment) in which an IP address is dynamically assigned to the first network segment (local area segment 10) constructed on the assumption that a fixed IP address is assigned by the relay device 17. When incorporating 20), it is possible to provide the communication network system 1 that eliminates the need for modification of existing facilities and thus realizes applications such as meter reading at a low cost without any modification risk. Further, since no modification of equipment is required, an increase in communication traffic for dealing with a dynamic IP address on the management server 13 side can be prevented, so that communication cost does not increase.

また、中継装置17で関連付けられた仮想IPアドレスと端末IPアドレスにより、管理サーバ13と第2の端末群(ワイドエリアネットワーク用端末14)間の通信が中継されるため、管理サーバ13は第2の端末群(ワイドエリアネットワーク用端末14)に動的に割り当てられるIPアドレスを管理する必要が無くなり、したがって、そのための処理負荷が減少して通信ネットワークシステム1としてのスループットが向上する。   Further, since the communication between the management server 13 and the second terminal group (wide area network terminal 14) is relayed by the virtual IP address and the terminal IP address associated by the relay device 17, the management server 13 Therefore, it is not necessary to manage the IP address dynamically assigned to the terminal group (wide area network terminal 14). Therefore, the processing load for the management is reduced and the throughput of the communication network system 1 is improved.

本実施形態に係る中継装置17によれば、中継装置17は、管理サーバ13によりゲートウェイとして設定されるRAWソケットにより、管理サーバ13から第2の端末群(ワイドエリアネットワーク用端末14)に送信される全ての電文を受信することで、管理サーバ13から全ての第2の端末群(ワイドエリアネットワーク用端末14)に対する、例えば、遮断や復帰等の管理電文を中継することができる。また、中継装置17(中継処理部174)は、管理サーバ13から第2の端末群(ワイドエリアネットワーク用端末14)に電文を送信する場合、第1のIP通信インタフェース部(RAWソケットIP通信インタフェース部171)で管理サーバ13から電文を受信すると、電文の送信先である仮想IPアドレスに基づき記憶部173を参照して対応する端末のIPアドレスを得、宛先に設定して第2のIP通信インタフェース部(IP通信インタフェース部172)を介して第2の端末群(ワイドエリアネットワーク用端末14)に送信する。また、中継装置17(中継処理部174)は、第2の端末群(ワイドエリアネットワーク用端末14)から管理サーバ13に電文を送信する場合、第2の通信インタフェース部(IP通信インタフェース部172)で第2の端末群(ワイドエリアネットワーク用端末14)から電文を受信すると、電文の発信元である端末のIPアドレスに基づき記憶部173を参照して対応する仮想IPアドレスを得、当該仮想IPアドレスを宛先に設定して第1のIP通信インタフェース部(RAWソケットIP通信インタフェース部171)を介して管理サーバ13へ送信する。このため、固定でIPアドレスが割り当てられることを前提にシステム構築されたローカルエリアセグメント10と、動的にIPアドレスが割り当てられる第2の端末群(ワイドエリアネットワーク用端末14)との間で、管理サーバ13の負荷が無く、遮断や復旧等の要求電文や検針電文等の相互通信が可能になる。   According to the relay device 17 according to the present embodiment, the relay device 17 is transmitted from the management server 13 to the second terminal group (wide area network terminal 14) by a RAW socket set as a gateway by the management server 13. For example, the management server 13 can relay, for example, a management message such as blocking or returning to all the second terminal groups (wide area network terminals 14) from the management server 13. When the relay device 17 (relay processing unit 174) transmits a message from the management server 13 to the second terminal group (wide area network terminal 14), the first IP communication interface unit (RAW socket IP communication interface). When the electronic message is received from the management server 13 by the unit 171), the IP address of the corresponding terminal is obtained by referring to the storage unit 173 based on the virtual IP address that is the transmission destination of the electronic message, and set as the destination to perform the second IP communication The data is transmitted to the second terminal group (wide area network terminal 14) via the interface unit (IP communication interface unit 172). Further, when the relay device 17 (relay processing unit 174) transmits a message from the second terminal group (wide area network terminal 14) to the management server 13, the second communication interface unit (IP communication interface unit 172). When the electronic message is received from the second terminal group (wide area network terminal 14), the corresponding virtual IP address is obtained by referring to the storage unit 173 based on the IP address of the terminal that is the transmission source of the electronic message. The address is set as a destination and transmitted to the management server 13 via the first IP communication interface unit (RAW socket IP communication interface unit 171). For this reason, between the local area segment 10 constructed on the assumption that a fixed IP address is allocated and the second terminal group (wide area network terminal 14) to which the IP address is dynamically allocated, There is no load on the management server 13, and mutual communication such as a request message such as shut-off or restoration, a meter reading message, and the like becomes possible.

なお、本実施形態に係る中継処理プログラムは、例えば、図1に示されるように、固定IPアドレスが割り当てられた第1の端末群(ローカルエリアネットワーク用端末11)が第1の通信ネットワーク(LAN12)経由で管理サーバ13に接続される第1のネットワークセグメント(ローカルエリアセグメント10)と、前記IPアドレスが動的に割り当てられる第2の端末群(ワイドエリアネットワーク用端末14)が第2の通信ネットワーク(IP網16)経由で前記管理サーバ13に接続される第2のネットワークセグメント(ワイドエリアセグメント20)からなる通信ネットワークシステム1において、コンピュータによって実行され、前記第1のネットワークセグメント(ローカルエリアセグメント10)と前記第2のネットワークセグメント(ワイドエリアセグメント20)との間に接続される中継装置17に用いられる中継処理プログラムである。この中継処理プログラムは、例えば、中継装置17が有する記憶部173の一部領域に割り当てられて記憶されており、コンピュータとして機能する中継処理部174がその中継処理プログラムを逐次読み出し、実行することで、例えば、図5に示されるように、第2の端末群(ワイドエリアネットワーク用端末14)に動的に割り当てられるIPアドレスを、第1のネットワークセグメント(ローカルエリアセグメント10)の一部としての仮想IPアドレスに置換え、管理サーバ13と第2の端末群(ワイドエリアネットワーク用端末14)との間で送受信される電文を中継する処理(S111〜S114、S121〜S123)を実行する。   Note that, for example, as shown in FIG. 1, the relay processing program according to the present embodiment is configured such that a first terminal group (local area network terminal 11) to which a fixed IP address is assigned is connected to a first communication network (LAN 12). ) Through the first network segment (local area segment 10) connected to the management server 13 and the second group of terminals (wide area network terminal 14) to which the IP address is dynamically allocated is the second communication. In a communication network system 1 including a second network segment (wide area segment 20) connected to the management server 13 via a network (IP network 16), the first network segment (local area segment) is executed by a computer. 10) and the second network A relay processing program used in the relay device 17 connected between the workpiece segment (wide area segment 20). For example, the relay processing program is allocated and stored in a partial area of the storage unit 173 included in the relay device 17, and the relay processing unit 174 functioning as a computer sequentially reads and executes the relay processing program. For example, as shown in FIG. 5, an IP address dynamically assigned to the second terminal group (wide area network terminal 14) is set as a part of the first network segment (local area segment 10). Replacement with the virtual IP address is executed to relay a message transmitted and received between the management server 13 and the second terminal group (wide area network terminal 14) (S111 to S114, S121 to S123).

本実施形態に係る中継処理プログラムによれば、固定でIPアドレスが割り当てられることを前提に構築された既設の第1のネットワークセグメント(ローカルエリアセグメント10)に、動的にIPアドレスが割り当てられる新設の第2のネットワークセグメント(ワイドエリアセグメント20)を組み込む際に、既設の設備の改変を不要とし、したがって、改変リスクが伴うことなく、低いコストで検針等のアプリケーションを実現可能な中継装置17、ならびに通信ネットワークシステム1を提供することができる。   According to the relay processing program according to the present embodiment, a new configuration in which an IP address is dynamically assigned to an existing first network segment (local area segment 10) constructed on the assumption that a fixed IP address is assigned. When incorporating the second network segment (wide area segment 20), the relay device 17 that does not require modification of the existing equipment and can realize an application such as meter reading at a low cost without any modification risk, In addition, the communication network system 1 can be provided.

以上、本発明の好ましい実施形態について詳述したが、本発明の技術的範囲は上記実施形態に記載の範囲には限定されないことは言うまでもない。上記実施形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。またその様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although preferred embodiment of this invention was explained in full detail, it cannot be overemphasized that the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above-described embodiments. Further, it is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

1・・・通信ネットワークシステム、10・・・ローカルエリアセグメント(第1のネットワークセグメント)、11・・・ローカルエリアネットワーク用端末(LAN端末#1〜#n:第1の端末群)、12・・・LAN(第1の通信ネットワーク)、13・・・管理サーバ、14・・・ワイドエリアネットワーク用端末(WAN端末#1〜#N:第2の端末群)、15a15b・・・ルータ、16・・・IP網(第2の通信ネットワーク)、17・・・中継装置、20・・・ワイドエリアセグメント(第2のネットワークセグメント)、171・・・RAWソケットIP通信インタフェース部(第1のIP通信インタフェース部)、172・・・IP通信インタフェース部(第2の通信インタフェース部)、173・・・記憶部、174・・・中継処理部   DESCRIPTION OF SYMBOLS 1 ... Communication network system, 10 ... Local area segment (1st network segment), 11 ... Local area network terminal (LAN terminal # 1- # n: 1st terminal group), 12. ..LAN (first communication network), 13... Management server, 14... Wide area network terminals (WAN terminals # 1 to #N: second terminal group), 15a15b. ... IP network (second communication network), 17 ... relay device, 20 ... wide area segment (second network segment), 171 ... RAW socket IP communication interface unit (first IP) Communication interface unit), 172... IP communication interface unit (second communication interface unit), 173... Storage unit, 174 ... relay processing unit

Claims (2)

固定IPアドレスが割り当てられた第1の端末群が第1の通信ネットワーク経由で管理サーバに接続される第1のネットワークセグメントと、
前記IPアドレスが動的に割り当てられる第2の端末群が第2の通信ネットワーク経由で前記管理サーバに接続される第2のネットワークセグメントと、
前記第1のネットワークセグメントと前記第2のネットワークセグメントとの間に中継
装置を接続した中継装置が前記第2の端末群に動的に割り当てられるIPアドレスを、前記第1のネットワークセグメントの一部としての仮想IPアドレスに置換え、前記管理サーバと前記第2の端末群との間で送受信される電文を中継する通信ネットワークシステムであって
前記中継装置は、 前記管理サーバが前記第2の端末群に電文を送信するにあたりゲートウェイとして設定されるRAWソケットにより、自身宛てに送信されていない電文を受信する第1のIP通信インタフェース部と、
前記第2の端末群と通信を行う際の固定IPアドレスが割り当てられる第2のIP通信
インタフェース部と、
前記関連付けられた前記仮想IPアドレスと前記端末のIPアドレスが記憶される記憶部と、 前記管理サーバから前記第2の端末群に電文を送信する場合、前記第1のIP通信インタフェース部で前記管理サーバから前記電文を受信すると、前記電文の送信先である前記仮想IPアドレスに基づき前記記憶部を参照して対応する端末のIPアドレスを得、宛先に設定して前記第2のIP通信インタフェース部を介して前記第2の端末群に送信し、前記第2の端末群から前記管理サーバに電文を送信する場合、前記第2の通信インタフェース部で前記第2の端末群から前記電文を受信すると、前記電文の発信元である前記端末のIPアドレスに基づき前記記憶部を参照して対応する仮想IPアドレスを得、当該仮想IPアドレスを宛先に設定して前記第1のIP通信インタフェース部を介して前記管理サーバへ送信する中継処理部、を有することを特徴とする通信ネットワークシステム。
A first network segment in which a first terminal group to which a fixed IP address is assigned is connected to a management server via a first communication network;
A second network segment in which a second terminal group to which the IP address is dynamically assigned is connected to the management server via a second communication network;
An IP address dynamically assigned to the second terminal group by a relay device connecting a relay device between the first network segment and the second network segment is a part of the first network segment. A communication network system that relays a message transmitted and received between the management server and the second terminal group, replacing the virtual IP address as
The relay device includes: a first IP communication interface unit that receives a message that is not transmitted to itself by a RAW socket set as a gateway when the management server transmits a message to the second terminal group;
Second IP communication to which a fixed IP address is assigned when communicating with the second terminal group
An interface part;
A storage unit that stores the associated virtual IP address and the IP address of the terminal; and when the telegram is transmitted from the management server to the second terminal group, the management is performed by the first IP communication interface unit. When the message is received from the server, the second IP communication interface unit is obtained by referring to the storage unit based on the virtual IP address that is the transmission destination of the message, obtaining a corresponding terminal IP address, and setting it as a destination When the electronic message is transmitted from the second terminal group to the management server, the electronic message is received from the second terminal group by the second communication interface unit. The corresponding virtual IP address is obtained by referring to the storage unit based on the IP address of the terminal that is the transmission source of the message, and the virtual IP address is set as the destination. And a relay processing unit that transmits to the management server via the first IP communication interface unit.
固定IPアドレスが割り当てられた第1の端末群が第1の通信ネットワーク経由で管理サーバに接続される第1のネットワークセグメントと、
前記IPアドレスが動的に割り当てられる第2の端末群が第2の通信ネットワーク経由で前記管理サーバに接続される第2のネットワークセグメントと、
前記第1のネットワークセグメントと前記第2のネットワークセグメントとの間に接続される中継装置が前記第2の端末群に動的に割り当てられるIPアドレスを、前記第1のネットワークセグメントの一部としての仮想IPアドレスに置換え、前記管理サーバと前記第2の端末群との間で送受信される電文を中継する制御手段を備えた中継装置において、
前記制御手段は、
前記管理サーバが前記第2の端末群に電文を送信するにあたり、前記管理サーバによりゲートウェイとして設定されるRAWソケットにより前記中継装置宛でない電文を受信する第1のIP通信インタフェース部と、 前記第2の端末群と通信を行う際の固定IPアドレスが割り当てられる第2のIP通信インタフェース部と、
前記第2の端末群に割り当てられるIPアドレスが動的に変化した場合、または前記第2の端末群から定期的に送信される電文により関連付けられる前記端末のIPアドレスと前記仮想IPアドレスとを記憶する記憶部と、前記管理サーバから前記第2の端末群に電文を送信する場合、前記第1のIP通信インタフェース部で前記管理サーバから前記電文を受信すると、前記電文の送信先である前記仮想IPアドレスに基づき前記記憶部を参照して対応する端末のIPアドレスを得、宛先に設定して前記第2のIP通信インタフェース部を介して前記第2の端末群に送信し、前記第2の端末群から前記管理サーバに電文を送信する場合、前記第2の通信インタフェース部で前記第2の端末群から前記電文を受信すると、前記電文の発信元である前記端末のIPアドレスに基づき前記記憶部を参照して対応する仮想IPアドレスを得、当該仮想IPアドレスを宛先に設定して前記第1のIP通信インタフェース部を介して前記管理サーバへ送信する中継処理部、を有することを特徴とする中継装置。
A first network segment in which a first terminal group to which a fixed IP address is assigned is connected to a management server via a first communication network;
A second network segment in which a second terminal group to which the IP address is dynamically assigned is connected to the management server via a second communication network;
An IP address dynamically assigned to the second terminal group by a relay device connected between the first network segment and the second network segment is set as a part of the first network segment. In a relay device comprising a control means for replacing a virtual IP address and relaying a message transmitted and received between the management server and the second terminal group ,
The control means includes
A first IP communication interface unit that receives a message that is not addressed to the relay device by a RAW socket set as a gateway by the management server when the management server transmits a message to the second terminal group; A second IP communication interface unit to which a fixed IP address is assigned when communicating with the terminal group;
When the IP address assigned to the second terminal group changes dynamically, or the IP address of the terminal and the virtual IP address associated with each other by a message transmitted periodically from the second terminal group are stored And when the telegram is transmitted from the management server to the second terminal group, when the telegram is received from the management server by the first IP communication interface unit, the virtual destination that is the destination of the telegram The IP address of the corresponding terminal is obtained by referring to the storage unit based on the IP address, set as a destination, transmitted to the second terminal group via the second IP communication interface unit, and the second terminal group. When transmitting a message from the terminal group to the management server, when the second communication interface unit receives the message from the second terminal group, the message is transmitted from the terminal group. Relay that refers to the storage unit based on the IP address of the terminal, obtains a corresponding virtual IP address, sets the virtual IP address as a destination, and transmits the destination to the management server via the first IP communication interface unit A relay device comprising a processing unit.
JP2011234987A 2011-10-26 2011-10-26 Communication network system, relay device in the same system, and relay processing program Active JP5786643B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011234987A JP5786643B2 (en) 2011-10-26 2011-10-26 Communication network system, relay device in the same system, and relay processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011234987A JP5786643B2 (en) 2011-10-26 2011-10-26 Communication network system, relay device in the same system, and relay processing program

Publications (2)

Publication Number Publication Date
JP2013093763A JP2013093763A (en) 2013-05-16
JP5786643B2 true JP5786643B2 (en) 2015-09-30

Family

ID=48616553

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011234987A Active JP5786643B2 (en) 2011-10-26 2011-10-26 Communication network system, relay device in the same system, and relay processing program

Country Status (1)

Country Link
JP (1) JP5786643B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7144128B2 (en) 2016-04-20 2022-09-29 オートリングハウス-ウェルケ ゲーエムベーハー clutch assembly

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005210352A (en) * 2004-01-22 2005-08-04 Nec Engineering Ltd Ip address converter and converting method
JP2005268988A (en) * 2004-03-17 2005-09-29 Yokogawa Electric Corp Heterogeneous network gateway system
JP2005295140A (en) * 2004-03-31 2005-10-20 Itmanage Inc Monitoring system
JP5232108B2 (en) * 2009-09-07 2013-07-10 Toa株式会社 Communication system, master unit and slave unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7144128B2 (en) 2016-04-20 2022-09-29 オートリングハウス-ウェルケ ゲーエムベーハー clutch assembly

Also Published As

Publication number Publication date
JP2013093763A (en) 2013-05-16

Similar Documents

Publication Publication Date Title
JP5456058B2 (en) Energy management device and energy management system
WO2014125781A1 (en) Wireless communication system, wireless devices, and method for setting addresses of same
GB2520160A (en) System for connecting smart devices in a building
JP6012496B2 (en) Smart meter and smart meter system
JP5786643B2 (en) Communication network system, relay device in the same system, and relay processing program
JP2013243560A (en) Network system, network management device, network management program, and network management method
CN102238040B (en) Method for monitoring CE (Customer Edge router) and routing device
WO2007094308A1 (en) Wireless data communication system
JP2015170970A (en) communication system
WO2015145953A1 (en) Communication terminal, communication method, and program-containing storage medium
JP4718638B2 (en) TCP / IP-based address changing method and apparatus
CN104185971A (en) At least one message to announce entry into relatively lower power state
JP6029064B2 (en) Communication system, base unit, server
JP2012253769A (en) Repeater pass-through messaging
JP2008219400A (en) Repeater and packet relaying method
KR20170025550A (en) Gateway and control method thereof
JP4570551B2 (en) Distributed control communication system and method
JP6252813B2 (en) Communication apparatus and communication system
KR20120105846A (en) Service system based on multi coummnication paths
WO2015146215A1 (en) Network address translation device, network address translation system, network address translation method, and computer-readable recording medium
JP2003151060A (en) Communication system and server
JP2011061874A (en) Gateway device
JP2012175688A (en) Remote meter-reading system
KR100662941B1 (en) Method for converting network address on data relay between a public network and a private network
WO2012114371A1 (en) Message transmission device and message transmission method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140424

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150226

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150324

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150525

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: 20150630

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150713

R150 Certificate of patent (=grant) or registration of utility model

Ref document number: 5786643

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150