Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5072874B2 - Communication device - Google Patents
[go: Go Back, main page]

JP5072874B2 - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP5072874B2
JP5072874B2 JP2009022583A JP2009022583A JP5072874B2 JP 5072874 B2 JP5072874 B2 JP 5072874B2 JP 2009022583 A JP2009022583 A JP 2009022583A JP 2009022583 A JP2009022583 A JP 2009022583A JP 5072874 B2 JP5072874 B2 JP 5072874B2
Authority
JP
Japan
Prior art keywords
mode
local
communication
gateway
unit
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.)
Expired - Fee Related
Application number
JP2009022583A
Other languages
Japanese (ja)
Other versions
JP2010183157A (en
Inventor
秀充 齋藤
秀一 上村
康教 大西
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2009022583A priority Critical patent/JP5072874B2/en
Publication of JP2010183157A publication Critical patent/JP2010183157A/en
Application granted granted Critical
Publication of JP5072874B2 publication Critical patent/JP5072874B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、複数の構内通信網同士を、広域網を介して接続する通信装置に関する。   The present invention relates to a communication apparatus that connects a plurality of local communication networks via a wide area network.

複数のセキュアな構内通信網(以下、ローカルネットと称す。)同士を、非セキュアな広域通信網(以下、インターネットと称す。)を介して接続するときに、安全性を高めるために複数の経路を冗長化する必要がある。   When connecting a plurality of secure local communication networks (hereinafter referred to as local networks) via a non-secure wide area communication network (hereinafter referred to as the Internet), a plurality of routes are provided to increase safety. Need to be made redundant.

例えば、ルータを用いて、インターネットを通る複数のルートを確保して、セキュアな複数のローカルネットワークを接続する。ルーティングプロトコルをルータ間でやり取りしてルートを動的に切り替える。このとき、インターネットとローカルネットの間には、ファイヤウォールなどが設けられて、セキュリティが保たれている。また、ルータでフィルタリングされる方法もある。   For example, a router is used to secure a plurality of routes through the Internet and connect a plurality of secure local networks. The route is switched dynamically by exchanging routing protocols between routers. At this time, a firewall or the like is provided between the Internet and the local net to maintain security. There is also a method of filtering by a router.

また、複数の散在するローカルネット同士を同じネットワークセグメントとして、IP(インターネットプロトコル)トンネリング(L2TPv3、PPP)で、インターネットを意識しないネットワークを構成する方法がある。このとき、複数の経路は、STP(Spanning Tree Protocol)を実装したスイッチで実現されている。   In addition, there is a method of configuring a network that is not aware of the Internet by IP (Internet Protocol) tunneling (L2TPv3, PPP) using a plurality of scattered local nets as the same network segment. At this time, the plurality of paths are realized by switches equipped with STP (Spanning Tree Protocol).

また、同じサービスを提供する複数のサーバに対して、同じ論理IPアドレスを割り当ててサーバの切り替えや負荷分散を行う方法もある。   There is also a method of switching servers and distributing loads by assigning the same logical IP address to a plurality of servers providing the same service.

インターネット上に散在した各プライベートネットワーク同士を通信する方法として、例えば特許文献1に開示されているように、各プライベートネットワークのプライベートIPアドレスを使用して、それぞれの機器間を通信する方法が知られている。   As a method of communicating between private networks scattered on the Internet, for example, as disclosed in Patent Document 1, a method of communicating between devices using a private IP address of each private network is known. ing.

特開2003−273935号公報JP 2003-273935 A

従来は、非セキュアなインターネットを介して複数の拠点のローカルネットを接続するとき、ローカルネットとインターネットの間でセキュリティを保つことが困難な場合があった。また、複数のローカルネットを結ぶインターネットの経路を冗長化しなければ、通信の信頼性が低下するため、経路を冗長とするのは必須である。   Conventionally, when connecting the local nets of a plurality of bases via the non-secure Internet, it may be difficult to maintain security between the local net and the Internet. In addition, if the Internet route connecting a plurality of local nets is not made redundant, the reliability of communication is lowered, so that it is essential to make the route redundant.

ところが、インターネット内に構築された複数の経路は、一方は通信プロバイダともう一方の通信プロバイダが異なることがある。また、一方は高速なIP網で他方はADSL網であることもある。また、自社内に独立した複数の経路を有することもある。これらの場合、冗長化した経路を一方から他方へと切り替える必要がある。   However, a plurality of routes constructed in the Internet may be different in one communication provider and the other communication provider. One may be a high-speed IP network and the other may be an ADSL network. In addition, the company may have a plurality of independent routes. In these cases, it is necessary to switch the redundant route from one to the other.

複数の経路に切替えを行うときには、ルータを使って、ルータに実装されたルーティングプロトコルで動的に経路を切り替える方法がある。この方法ではルーティングプロトコルのパケットがセキュア側と非セキュア側の間を通ることになる。   When switching to a plurality of routes, there is a method of using a router to dynamically switch routes using a routing protocol installed in the router. In this method, routing protocol packets pass between the secure side and the non-secure side.

しかし、セキュア側と非セキュア側の間を通過するのは、複数の拠点のローカルネット同士でやり取りしたいアプリケーションレベルのデータパケットのみに制限することができないことがある。また、ローカルネットワーク間の通信を厳密にセキュリティポリシー上通過させるデータパケットに制限した上で動的にルート変更し、通信路の障害に対応させることができない。   However, passing between the secure side and the non-secure side may not be limited to only application level data packets that are exchanged between local networks at a plurality of locations. Further, it is impossible to dynamically change the route after restricting the communication between the local networks to the data packets that are strictly passed in accordance with the security policy, and to deal with the failure of the communication path.

インターネットをIPトンネリングすることで、ローカルネットワークには意識させないネットワークを構成することができるが、データ通信以外に、IPトンネル維持のためのプロトコルが通信される。また、IPトンネルは接続する複数のローカルネットを同じネットワークセグメントにする必要がある。同じネットワークセグメント内では複数のルートはSTPによって、Switchの物理的なポートを論理的に活殺することで、ルートが一通りに維持される。   By IP tunneling the Internet, a network that is not conscious of the local network can be configured, but in addition to data communication, a protocol for maintaining an IP tunnel is communicated. In addition, in the IP tunnel, it is necessary to connect a plurality of local nets connected to the same network segment. Within the same network segment, a plurality of routes are maintained in a single route by logically killing the physical ports of the switch by STP.

しかし、この方法では、IPトンネル維持のプロトコルの他に、STPパケットも通信される。また、複数拠点のローカルネットワークのアドレス体系を同じセグメントにするという制約がある。   However, in this method, in addition to the IP tunnel maintenance protocol, STP packets are also communicated. In addition, there is a restriction that the address system of a plurality of local networks is made the same segment.

論理IPアドレスを複数のサーバに割り当てて、切り替えや負荷分散をする方法は、サービス自体の冗長化は可能になるが、通信経路の冗長化にはならない。通信経路の冗長化は複数拠点のローカルネットの非セキュア側への出口が互いに状態を把握し合ってルートを維持する必要があるが、サービスへの論理IPアドレスの割り当てではこれは実現できない場合がある。   A method of assigning a logical IP address to a plurality of servers and performing switching or load balancing can make the service itself redundant, but does not make the communication path redundant. Communication path redundancy requires that the exits to the non-secure side of the local network at multiple sites keep track of each other's status, but this may not be possible with logical IP address assignment to services. is there.

本発明は上記課題を解決するためになされたものであって、その目的は、複数のローカルネットワークを、インターネットを介して接続する通信装置の安全性および機密性を向上させることである。   The present invention has been made to solve the above-described problems, and an object of the present invention is to improve the safety and confidentiality of a communication apparatus that connects a plurality of local networks via the Internet.

上記目的を達成するため本発明に係る通信装置は、複数の構内通信網同士を、広域網を介して接続する通信装置であって、前記各構内通信網それぞれには、前記各構内通信網それぞれとIP通信可能な構内通信網用ゲートウェイが接続されて、前記構内通信網用ゲートウェイそれぞれには、前記構内通信網用ゲートウェイそれぞれと非IP通信手段により互いに通信可能に構成された広域網用ゲートウェイが接続されて、前記構内通信網用ゲートウェイは、互いに正常に稼動しているか否かを知らせるハートビート信号を送受信可能で互いの状態を監視可能な第1系構内通信網用ゲートウェイおよび第2系構内通信網用ゲートウェイを含み、前記広域網用ゲートウェイは、互いに前記ハートビート信号を送受信可能で互いの状態を監視可能な第1系広域網用ゲートウェイおよび第2系広域網用ゲートウェイを含み、前記各構内通信網に接続された前記各第1系構内通信網用ゲートウェイそれぞれは、前記非IP通信手段によってそれぞれの前記第1系広域網用ゲートウェイと通信可能に構成されて、前記各構内通信網に接続された前記各第2系構内通信網用ゲートウェイそれぞれは、前記非IP通信手段によってそれぞれの前記第2系広域網用ゲートウェイと通信可能に構成されて、前記第1系構内通信網用ゲートウェイ、第1系広域網用ゲートウェイ、第2系構内通信網用ゲートウェイ、および第2系広域網用ゲートウェイそれぞれは、前記広域網または構内通信網と、IPパケットのデータ信号を送受信可能なIP送受信部と、前記非IP通信手段を介して前記IP送受信部と予め設定された所定の信号情報を互いに送受信可能に構成された非IP送受信部と、前記所定の信号情報の設定情報を予め設定可能に構成された転送可能パケット設定部と、同じ構内通信網に接続された前記第1系および第2系構内通信網用ゲートウェイ同士またはこれらに対応する前記第1系および第2系広域網用ゲートウェイ同士を、互いのモードがマスタかスレーブかを通知および把握するように構成された2系間モード監視部と、同じ構内通信網に接続された前記第1系および第2系構内通信網用ゲートウェイと、これらに対応する前記第1系および第2系広域網用ゲートウェイとを、互いに前記非IP通信手段を介して互いの前記モードの状態を通知および把握するように構成されたゲートウェイ間モード監視部と、前記各第1系広域網用ゲートウェイ同士または前記各第2系広域網用ゲートウェイ同士で、前記モードの状態を通知および把握するように構成された系内モード監視部と、前記2系間モード監視部およびゲートウェイ間モード監視部それぞれが監視した結果が入力されて、前記第1系構内通信網用ゲートウェイ、第1系広域網用ゲートウェイ、第2系構内通信網用ゲートウェイ、および第2系広域網用ゲートウェイそれぞれの前記モードが、互いの前記モードの状態と比較しながら、所定の前記モードに決定されるように構成されたモード判定部と、前記モード判定部で決定した前記モードの状態を保持するモード状態保持部と、を有し、前記第1系および第2系構内通信網用ゲートウェイそれぞれは、前記第1系および第2系構内通信網用ゲートウェイが同じときにマスタになるスプリットブレインを復旧するときに、前記第1系および第2系構内通信網用ゲートウェイのどちらをマスタにするかを決めるための優先情報が予め入力されたスプリットブレイン復旧設定部を有し、前記第1系および第2系構内通信網用ゲートウェイそれぞれの前記2系間モード監視部が、互いに送受信している前記ハートビート信号が途絶えたときに、それぞれが互いに停止していると判定し、前記第1系および第2系構内通信網用ゲートウェイそれぞれの前記モード判定部が、前記第1系および第2系構内通信網用ゲートウェイそれぞれがマスタになった後に、前記ハートビート信号が復旧し、それぞれの前記2系間モード監視部が互いにマスタになったと判定した場合に、前記第1系および第2系構内通信網用ゲートウェイそれぞれのモード判定部が、それぞれの前記スプリットブレイン復旧設定部から、前記優先情報を取得して、前記優先情報を互いに比較して、優先度の高い方はマスタを維持して、優先度の低い方はスレーブに遷移するように構成されていることを特徴とする。
また、本発明に係る通信装置は、複数の構内通信網同士を、広域網を介して接続する通信装置であって、前記各構内通信網それぞれには、前記各構内通信網それぞれとIP通信可能な構内通信網用ゲートウェイが接続されて、前記構内通信網用ゲートウェイそれぞれには、前記構内通信網用ゲートウェイそれぞれと非IP通信手段により互いに通信可能に構成された広域網用ゲートウェイが接続されて、前記構内通信網用ゲートウェイは、互いに正常に稼動しているか否かを知らせるハートビート信号を送受信可能で互いの状態を監視可能な第1系構内通信網用ゲートウェイおよび第2系構内通信網用ゲートウェイを含み、前記広域網用ゲートウェイは、互いに前記ハートビート信号を送受信可能で互いの状態を監視可能な第1系広域網用ゲートウェイおよび第2系広域網用ゲートウェイを含み、前記各構内通信網に接続された前記各第1系構内通信網用ゲートウェイそれぞれは、前記非IP通信手段によってそれぞれの前記第1系広域網用ゲートウェイと通信可能に構成されて、前記各構内通信網に接続された前記各第2系構内通信網用ゲートウェイそれぞれは、前記非IP通信手段によってそれぞれの前記第2系広域網用ゲートウェイと通信可能に構成されて、前記第1系構内通信網用ゲートウェイ、第1系広域網用ゲートウェイ、第2系構内通信網用ゲートウェイ、および第2系広域網用ゲートウェイそれぞれは、前記広域網または構内通信網と、IPパケットのデータ信号を送受信可能なIP送受信部と、前記非IP通信手段を介して前記IP送受信部と予め設定された所定の信号情報を互いに送受信可能に構成された非IP送受信部と、前記所定の信号情報の設定情報を予め設定可能に構成された転送可能パケット設定部と、同じ構内通信網に接続された前記第1系および第2系構内通信網用ゲートウェイ同士またはこれらに対応する前記第1系および第2系広域網用ゲートウェイ同士を、互いのモードがマスタかスレーブかを通知および把握するように構成された2系間モード監視部と、同じ構内通信網に接続された前記第1系および第2系構内通信網用ゲートウェイと、これらに対応する前記第1系および第2系広域網用ゲートウェイとを、互いに前記非IP通信手段を介して互いの前記モードの状態を通知および把握するように構成されたゲートウェイ間モード監視部と、前記各第1系広域網用ゲートウェイ同士または前記各第2系広域網用ゲートウェイ同士で、前記モードの状態を通知および把握するように構成された系内モード監視部と、前記2系間モード監視部およびゲートウェイ間モード監視部それぞれが監視した結果が入力されて、前記第1系構内通信網用ゲートウェイ、第1系広域網用ゲートウェイ、第2系構内通信網用ゲートウェイ、および第2系広域網用ゲートウェイそれぞれの前記モードが、互いの前記モードの状態と比較しながら、所定の前記モードに決定されるように構成されたモード判定部と、前記モード判定部で決定した前記モードの状態を保持するモード状態保持部と、を有し、前記第1系および第2系構内通信網用ゲートウェイそれぞれは、マスタに遷移した時刻情報を格納可能なマスタ遷移時刻設定部を有し、前記第1系および第2系構内通信網用ゲートウェイそれぞれの前記2系間モード監視部が、互いに送受信している前記ハートビート信号が途絶えたときに、それぞれが互いに停止していると判定し、前記第1系および第2系構内通信網用ゲートウェイそれぞれの前記モード判定部が、前記第1系および第2系構内通信網用ゲートウェイそれぞれがマスタになった後に、前記ハートビート信号が復旧し、それぞれの前記2系間モード監視部が互いにマスタになったと判定した場合に、前記第1系および第2系構内通信網用ゲートウェイそれぞれのモード判定部は、それぞれの前記マスタ遷移時刻設定部から、それぞれがマスタに遷移した時刻を取得して、これらの時刻を互いに比較して、早い方はマスタを維持して、遅い方はスレーブに遷移するように構成されていることを特徴とする。
In order to achieve the above object, a communication apparatus according to the present invention is a communication apparatus for connecting a plurality of local communication networks to each other via a wide area network. is connected to IP communication is possible gateway for local area network and, each gateway before Ki構 communication network, a wide area that is capable of communicating with each other by the gateway respectively and non-IP communication means for the front Ki構 communication network gateway for the network is connected, the gateway for the front Ki構 the communication network, for the first system local network capable monitor the state of each other can transmit and receive heartbeat signal indicating whether operating normally with each other includes a gateway and a gateway for the second system local area network, a gateway for the front Kihiro area network, capable of monitoring the status of each other can transmit and receive the heartbeat signal to each other Each of the first-system local area network gateways including a 1-system wide area network gateway and a second-system wide area network gateway connected to the respective local area communication networks is connected to the first IP area by the non-IP communication means. The second local area network gateways configured to be communicable with the local area network gateways and connected to the local area communication networks are respectively connected to the second area wide area network by the non-IP communication means. The gateway for the first system local communication network, the gateway for the first system wide area network, the gateway for the second system local area network, and the gateway for the second system wide area network are configured to communicate with the gateway. Alternatively, a local communication network, an IP transmission / reception unit capable of transmitting / receiving an IP packet data signal, and the IP transmission / reception unit via the non-IP communication unit A non-IP transmission / reception unit configured to be able to transmit / receive predetermined signal information set to each other, a transferable packet setting unit configured to be able to set the setting information of the predetermined signal information in advance, and the same local communication network The connected gateways for the first system and the second system on-site communication network or the corresponding gateways for the first system and the second system wide area network are notified and grasped whether the mode is the master or the slave. The two-system mode monitoring unit configured as described above, the gateways for the first system and the second system local network connected to the same local network, and the first system and the second system wide area network corresponding thereto And a gateway mode monitoring unit configured to notify and grasp each other's mode state via the non-IP communication means, and the first system wide An intra-system mode monitoring unit configured to notify and grasp the state of the mode between the regional network gateways or between the respective second-system wide-area network gateways, the inter-system mode monitoring unit, and the inter-gateway mode The monitoring results of the respective monitoring units are input, and the first system local area network gateway, the first system wide area network gateway, the second system local area network gateway, and the second system wide area network gateway A mode determination unit configured to determine a predetermined mode while comparing modes with each other, and a mode state holding unit that holds the mode state determined by the mode determination unit When, was perforated, the gateway respectively for the first system and the second system local area network, a gateway for the first system and the second system local area network is A split brain recovery setting unit in which priority information for deciding which of the first system and second system local area communication network gateway is to be the master when the split brain that becomes the master at the same time is recovered When the heartbeat signals transmitted and received by the second system mode monitoring units of the first system and second system local area communication network gateways are interrupted, they stop each other. And the mode determination unit of each of the first system and second system local communication network gateways makes the heartbeat signal after each of the first system and second system local communication network gateways becomes a master. Is restored, and when the two inter-system mode monitoring units determine that they are masters of each other, the first-system and second-system local area communication networks Each mode determination unit of each gateway acquires the priority information from each of the split brain recovery setting units, compares the priority information with each other, maintains the master with the higher priority, The lower one is configured to transition to a slave.
The communication device according to the present invention is a communication device for connecting a plurality of local communication networks to each other via a wide area network, and each of the local communication networks is capable of IP communication with each of the local communication networks. A wide area network gateway configured to be able to communicate with each of the local communication network gateways and non-IP communication means is connected to each of the local communication network gateways. The gateway for the local communication network is capable of transmitting and receiving heartbeat signals notifying whether or not they are operating normally and can monitor the state of each other and the gateway for the second local network And the wide area network gateway is capable of transmitting and receiving the heartbeat signal to each other and monitoring each other's state. A gateway for a second system wide area network, and each gateway for a first system local communication network connected to each of the local communication networks is connected to the first system wide area network gateway by the non-IP communication means. Each second-system local network gateway connected to each local-network network is configured to be able to communicate with each second-system wide-area network gateway by the non-IP communication means. The first system local area network gateway, the first system wide area network gateway, the second system local area network gateway, and the second system wide area network gateway are respectively connected to the wide area network or the local area communication network. An IP transmission / reception unit capable of transmitting / receiving an IP packet data signal, and a predetermined location with the IP transmission / reception unit via the non-IP communication means A non-IP transmission / reception unit configured to be able to transmit / receive signal information to / from each other, a transferable packet setting unit configured to be able to set setting information of the predetermined signal information in advance, and the first communication network connected to the same private network It is configured to notify and grasp each other's mode as a master or a slave between the first system and second system local area communication network gateways or the corresponding first system and second system wide area network gateways. A two-system mode monitoring unit, the first-system and second-system local-communication network gateways connected to the same local-communication network, and the corresponding first-system and second-system wide-area network gateways, An inter-gateway mode monitoring unit configured to notify and grasp each other's mode status via the non-IP communication means; and each of the first system wide area network gateways. Intra-system mode monitoring unit configured to notify and grasp the state of the mode between the two or each second-system wide area network gateway, and the inter-system mode monitoring unit and inter-gateway mode monitoring unit, respectively The result of monitoring is input, and the mode of each of the first system local area network gateway, the first system wide area network gateway, the second system local area network gateway, and the second system wide area network gateway is: A mode determination unit configured to be determined to be the predetermined mode while comparing with the mode state of each other, and a mode state holding unit that holds the state of the mode determined by the mode determination unit, Each of the first-system and second-system local area network gateways has a master transition time setting unit capable of storing time information of transition to the master, When the heartbeat signals transmitted and received by the second system mode monitoring unit of each of the first system and second system local area communication network gateways are determined to be stopped, After the mode determination unit of each of the first-system and second-system local area communication network gateways becomes the master for each of the first-system and second-system local area network gateways, the heartbeat signal is restored, When it is determined that the mode monitoring units between the two systems are masters of each other, the mode determination unit of each of the first system and second system local area network communication gateways, from the master transition time setting unit, The time at which each transitions to the master is acquired, and these times are compared with each other. The master is maintained earlier, and the slave transitions later. Characterized in that it is configured to.

本発明によれば、複数のローカルネットワークを、インターネットを介して接続する通信装置の安全性および機密性を向上させることが可能になる。   ADVANTAGE OF THE INVENTION According to this invention, it becomes possible to improve the safety | security and confidentiality of the communication apparatus which connects several local networks via the internet.

本発明に係る第1の実施形態の通信装置の構成を示すブロック図である。It is a block diagram which shows the structure of the communication apparatus of 1st Embodiment which concerns on this invention. 図1の通信装置が複数のローカルネットワークおよびインターネットに接続された状態を示すネットワークシステムの構成図である。FIG. 2 is a configuration diagram of a network system showing a state in which the communication device of FIG. 1 is connected to a plurality of local networks and the Internet. 図1の実施形態の制御方法を示すフローで、パケット転送手順の概要を示すフローチャートである。It is a flow which shows the control method of embodiment of FIG. 1, and is a flowchart which shows the outline | summary of a packet transfer procedure. 図1の第1系ローカルネットGWが停止したときの論理IPアドレスを切り替える手順を示すフローチャートである。3 is a flowchart showing a procedure for switching a logical IP address when the first system local net GW of FIG. 1 is stopped. 図1の第1系インターネットGWが停止したときの論理IPアドレスを切り替える手順を示すフローチャートである。It is a flowchart which shows the procedure which switches a logical IP address when the 1st type | system | group internet GW of FIG. 1 stops. 図1の第1系インターネットGWが停止した後に、再度第1系をマスタに設定する手順を示すフローチャートである。It is a flowchart which shows the procedure which sets a 1st system as a master again after the 1st system Internet GW of FIG. 1 stops. 本発明に係る第2の実施形態の通信装置の構成を示すブロック図である。It is a block diagram which shows the structure of the communication apparatus of 2nd Embodiment which concerns on this invention. 図7の通信装置のうち第1系ローカルネットGWおよび第2系ローカルネットGWが共に停止して再起動したときに、スプリットブレインを解消する例の手順の概要を示すフローチャートである。FIG. 8 is a flowchart showing an overview of an example procedure for eliminating split brain when both the first system local net GW and the second system local net GW are stopped and restarted in the communication apparatus of FIG. 7. 図7の通信装置のうち第1系ローカルネットGWおよび第2系ローカルネットGW同士のハートビート信号が切断されて再び通信が復旧した後のスプリットブレイン検出と、第1系GWを優先的にマスタにすることでスプリットブレインを解消する手順を示すフローチャートである。In the communication device of FIG. 7, the split brain detection after the heartbeat signal between the first system local net GW and the second system local net GW is disconnected and communication is restored again, and the first system GW is preferentially mastered. It is a flowchart which shows the procedure which cancels | releases a split brain by setting. 本発明に係る第3の実施形態の通信装置の構成を示すブロック図である。It is a block diagram which shows the structure of the communication apparatus of 3rd Embodiment which concerns on this invention. 、図10の両系のGWが共に停止した後に再起動したときのスプリットブレイン解消手順の概要を示すフローチャートである。FIG. 11 is a flowchart showing an outline of a split brain elimination procedure when both GWs of FIG. 10 are stopped and then restarted. 図10の1系および2系GW同士のハートビート通信が復旧したときのスプリットブレイン解消手順の概要を示すフローチャートである。FIG. 11 is a flowchart showing an overview of a split brain elimination procedure when heartbeat communication between the 1-system and 2-system GWs of FIG. 10 is restored. 本発明に係る第4の実施形態の通信装置の構成を示すブロック図である。It is a block diagram which shows the structure of the communication apparatus of 4th Embodiment which concerns on this invention. GW間の転送設定を自動設定する手順の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of the procedure which sets automatically the transfer setting between GW. 本発明に係る第4の実施の形態の通信装置のパケット転送手順の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of the packet transfer procedure of the communication apparatus of 4th Embodiment concerning this invention.

以下、本発明に係る通信装置の実施形態について、図面を参照して説明する。   Embodiments of a communication device according to the present invention will be described below with reference to the drawings.

[第1の実施形態]
本発明に係る通信装置の第1の実施形態について、図1〜図6を用いて説明する。図1は、本実施形態の通信装置の構成を示すブロック図である。図2は、図1の通信装置が複数のローカルネットワークおよびインターネット304に接続された状態を示すネットワークシステムの構成図である。図3は、図1の実施形態の制御方法を示すフローで、パケット転送手順の概要を示すフローチャートである。図4は、図1の第1系ローカルネットGW装置1aが停止したときの論理IPアドレスを切り替える手順を示すフローチャートである。図5は、図1の第1系インターネットGW装置2bが停止したときの論理IPアドレスを切り替える手順を示すフローチャートである。図6は、図1の第1系インターネットGW装置2bが停止した後に、再度第1系をマスタに設定する手順を示すフローチャートである。
[First Embodiment]
1st Embodiment of the communication apparatus which concerns on this invention is described using FIGS. FIG. 1 is a block diagram illustrating a configuration of a communication apparatus according to the present embodiment. FIG. 2 is a configuration diagram of a network system showing a state in which the communication apparatus of FIG. 1 is connected to a plurality of local networks and the Internet 304. FIG. 3 is a flowchart showing an outline of a packet transfer procedure in the flow showing the control method of the embodiment of FIG. FIG. 4 is a flowchart showing a procedure for switching the logical IP address when the first system local net GW apparatus 1a of FIG. 1 is stopped. FIG. 5 is a flowchart showing a procedure for switching the logical IP address when the first-system Internet GW apparatus 2b of FIG. 1 is stopped. FIG. 6 is a flowchart showing a procedure for setting the first system as the master again after the first system Internet GW apparatus 2b of FIG. 1 is stopped.

図2に示すように、本実施形態は、インターネット304などの非セキュアな広域通信網に、セキュアな3つの構内通信網(以下、ローカルネットと称す。)、すなわち、第1ローカルネット301、第2ローカルネット302、および第3ローカルネット303が、それぞれゲートウェイ(以下、GWと称す。)を介して接続されている。これらのローカルネット内それぞれには、複数の第1計算機101、複数の第2計算機102、および複数の第3計算機103などが接続されている。   As shown in FIG. 2, in the present embodiment, a secure local communication network (hereinafter referred to as a local net), that is, a first local net 301, a first local net 301, and a non-secure wide area communication network such as the Internet 304 are used. The two local nets 302 and the third local net 303 are connected via gateways (hereinafter referred to as GW). In each of these local nets, a plurality of first computers 101, a plurality of second computers 102, a plurality of third computers 103, and the like are connected.

第1ローカルネット301、第2ローカルネット302、および第3ローカルネット303それぞれは、仮想的に2つの系のGW、すなわち第1系GW装置5および第2系GW装置6を有している。   Each of the first local net 301, the second local net 302, and the third local net 303 has virtually two GWs, that is, the first GW device 5 and the second GW device 6.

第1系GW装置5は、ローカルネット側に接続される第1系ローカルネットGW装置1aと、インターネット304側に接続される第1系インターネットGW装置2bを有する。同様に、第2系GW装置6は、ローカルネット側に接続される第2系ローカルネットGW装置3cと、インターネット304側に接続される第2系インターネットGW装置4dを有する。   The first system GW apparatus 5 includes a first system local net GW apparatus 1a connected to the local net side and a first system Internet GW apparatus 2b connected to the Internet 304 side. Similarly, the second system GW apparatus 6 includes a second system local network GW apparatus 3c connected to the local network side, and a second system Internet GW apparatus 4d connected to the Internet 304 side.

上記の説明からわかるように、1つのローカルネット、例えば第1ローカルネット301とインターネット304とを接続するGWは、4種類のGW、すなわち第1系ローカルネットGW装置1a、第1系インターネットGW装置2b、第2系ローカルネットGW装置3c、および第2系インターネットGW装置4dを有している。   As can be seen from the above description, there are four types of GWs that connect one local net, for example, the first local net 301 and the Internet 304, that is, the first system local net GW apparatus 1a and the first system Internet GW apparatus. 2b, the second system local GW apparatus 3c, and the second system Internet GW apparatus 4d.

ここで、以後の説明において、第1系ローカルネットGW装置1a内に設けられた構成要素の名称の先頭には、「第1の」と記載している。同様に、第1系インターネットGW装置2b内に設けられた構成要素には「第2の」、第2系ローカルネットGW装置3c内に設けられた構成要素には「第3の」、第2系インターネットGW装置4d内に設けられた構成要素には「第4の」と記載している。   Here, in the following description, “first” is described at the head of the names of the components provided in the first system local net GW apparatus 1a. Similarly, “second” is used for the components provided in the first system Internet GW apparatus 2b, and “third” and second are used for the components provided in the second system local GW apparatus 3c. The component provided in the system Internet GW apparatus 4d is described as “fourth”.

図1に示すように、第1系ローカルネットGW装置1aは、第1の転送可能パケット設定部11a、第1のIP送受信部12a、第1の非IP送受信部13a、第1の論理IPアドレス設定解除部14a、第1のGW間モード監視部15a、第1の2系間モード監視部16a、第1のモード判定部17a、第1のモード状態保持部18a、第1のLANポート20a、および第1の2系間モード監視ポート21aを有する。   As shown in FIG. 1, the first system local net GW apparatus 1a includes a first transferable packet setting unit 11a, a first IP transmission / reception unit 12a, a first non-IP transmission / reception unit 13a, and a first logical IP address. A setting cancellation unit 14a, a first inter-GW mode monitoring unit 15a, a first two-system mode monitoring unit 16a, a first mode determination unit 17a, a first mode state holding unit 18a, a first LAN port 20a, And a first two-system mode monitoring port 21a.

第1系インターネットGW装置2bは、第2の転送可能パケット設定部11b、第2のIP送受信部12b、第2の非IP送受信部13b、第2のGW間モード監視部15b、第2の系内モード監視部19b、第2の2系間モード監視部16b、第2のモード判定部17b、第2のモード状態保持部18b、第2のLANポート20b、および第2の2系間モード監視ポート21bを有する。   The first Internet GW apparatus 2b includes a second transferable packet setting unit 11b, a second IP transmission / reception unit 12b, a second non-IP transmission / reception unit 13b, a second inter-GW mode monitoring unit 15b, and a second system. Internal mode monitoring unit 19b, second two-system mode monitoring unit 16b, second mode determination unit 17b, second mode state holding unit 18b, second LAN port 20b, and second two-system mode monitoring It has a port 21b.

第1系ローカルネットGW装置1aおよび第1系インターネットGW装置2bは、第1系用非IP通信路22aで接続されている。この第1系用非IP通信路22aは、第1の非IP送受信部13aおよび第2の非IP送受信部13b同士のパケットの通信と、第1のGW間モード監視部15aおよび第2のGW間モード監視部15b同士のモードの通信に用いられる。   The first system local network GW apparatus 1a and the first system Internet GW apparatus 2b are connected by a first system non-IP communication path 22a. The first non-IP communication path 22a for the first system includes packet communication between the first non-IP transmission / reception unit 13a and the second non-IP transmission / reception unit 13b, and the first inter-GW mode monitoring unit 15a and the second GW. It is used for mode communication between the inter-mode monitoring units 15b.

第2系ローカルネットGW装置3cは、第1系ローカルネットGW装置1aと同様に、第3の転送可能パケット設定部11c、第3のIP送受信部12c、第3の非IP送受信部13c、第3の論理IPアドレス設定解除部14c、第3のGW間モード監視部15c、第3の2系間モード監視部16c、第3のモード判定部17c、第3のモード状態保持部18c、第3のLANポート20c、および第3の2系間モード監視ポート21cを有する。   Similar to the first system local net GW apparatus 1a, the second system local net GW apparatus 3c includes a third transferable packet setting unit 11c, a third IP transmission / reception unit 12c, a third non-IP transmission / reception unit 13c, 3 logical IP address setting cancellation unit 14c, third inter-GW mode monitoring unit 15c, third inter-system mode monitoring unit 16c, third mode determination unit 17c, third mode state holding unit 18c, third LAN port 20c and a third inter-system mode monitoring port 21c.

同様に、第2系インターネットGW装置4dは、第1系インターネットGW装置2bと同様に、第4の転送可能パケット設定部11d、第4のIP送受信部12d、第4の非IP送受信部13d、第4のGW間モード監視部15d、第4の系内モード監視部19d、第4の2系間モード監視部16d、第4のモード判定部17d、第4のモード状態保持部18d、第4のLANポート20d、および第4の2系間モード監視ポート21dを有する。   Similarly, the second-system Internet GW apparatus 4d is similar to the first-system Internet GW apparatus 2b in that a fourth transferable packet setting unit 11d, a fourth IP transmission / reception unit 12d, a fourth non-IP transmission / reception unit 13d, Fourth inter-GW mode monitoring unit 15d, fourth intra-system mode monitoring unit 19d, fourth inter-system mode monitoring unit 16d, fourth mode determination unit 17d, fourth mode state holding unit 18d, fourth LAN port 20d and a fourth inter-system mode monitoring port 21d.

第2系ローカルネットGW装置3cおよび第2系インターネットGW装置4dは、第2系用非IP通信路22cで接続されている。この第2系用非IP通信路22cは、第1系用非IP通信路22aと同様に、第3の非IP送受信部13cおよび第4の非IP送受信部13d同士のパケットの通信と、第3のGW間モード監視部15cおよび第4のGW間モード監視部15d同士のモードの通信に用いられる。   The second system local network GW apparatus 3c and the second system Internet GW apparatus 4d are connected by a second system non-IP communication path 22c. Similarly to the first non-IP communication path 22a, the second non-IP communication path 22c is used for packet communication between the third non-IP transmission / reception section 13c and the fourth non-IP transmission / reception section 13d. It is used for mode communication between the third inter-GW mode monitoring unit 15c and the fourth inter-GW mode monitoring unit 15d.

ここで、図1は、図2に示す第1ローカルネット301に接続されたGWの例を示している。   Here, FIG. 1 shows an example of a GW connected to the first local net 301 shown in FIG.

第1のLANポート20aは、セキュアなローカルネット、例えば第1ローカルネット301に接続されて、第1ローカルネット301内の第1計算機101などから送られてくる信号を受信する。また、第1のLANポート20aは、第1のIP送受信部12aおよび第1の論理IPアドレス設定解除部14aそれぞれと互いに通信可能である。   The first LAN port 20 a is connected to a secure local net, for example, the first local net 301, and receives a signal sent from the first computer 101 or the like in the first local net 301. Further, the first LAN port 20a can communicate with each of the first IP transmission / reception unit 12a and the first logical IP address setting cancellation unit 14a.

第2のLANポート20bは、非セキュアなインターネット304と接続されて、インターネット304経由で送信される信号を受信可能である。また、第2のLANポート20bは、第2のIP送受信部12bおよび第2の系内モード監視部19bそれぞれと互いに通信可能である。   The second LAN port 20 b is connected to the non-secure Internet 304 and can receive signals transmitted via the Internet 304. The second LAN port 20b can communicate with the second IP transmission / reception unit 12b and the second intra-system mode monitoring unit 19b.

第1の2系間モード監視ポート21aは、第2系ローカルネットGW装置3cの第3の2系間モード監視ポート21cと互いに通信可能である。また、第1の2系間モード監視ポート21aは、第1の2系間モード監視部16aと互いに通信可能に接続されている。この通信は、互いのGWのモードを通信および監視するモード通信であって、互いに正常に稼動しているか否かを知らせるハートビート通信が行われる。   The first two-system mode monitoring port 21a can communicate with the third two-system mode monitoring port 21c of the second system local net GW apparatus 3c. The first two-system mode monitoring port 21a is connected to the first two-system mode monitoring unit 16a so as to communicate with each other. This communication is mode communication for communicating and monitoring each other's GW mode, and heartbeat communication for notifying whether or not each other is operating normally is performed.

第2の2系間モード監視ポート21bは、第2系インターネットGW装置4dの第4の2系間モード監視ポート21dと互いに通信可能である。また、第2の2系間モード監視ポート21bは、第4の2系間モード監視部16dと互いに通信可能に接続されている。この通信は、第1および第3の2系間モード監視ポート21a、21cと同様に、互いのGWのモードを通信および監視するモード通信であって、互いに正常に稼動しているか否かを知らせるハートビート通信が行われる。   The second inter-system mode monitoring port 21b can communicate with the fourth inter-system mode monitoring port 21d of the second Internet GW apparatus 4d. The second inter-system mode monitoring port 21b is connected to the fourth inter-system mode monitoring unit 16d so that they can communicate with each other. Similar to the first and third inter-system mode monitoring ports 21a and 21c, this communication is a mode communication that communicates and monitors each other's GW mode, and informs whether or not they are operating normally. Heartbeat communication is performed.

ここで、モードとは、GWの状態であって、少なくともマスタ、スレーブ、および未定の3つの状態を含む。マスタのときは、セキュア側のGWは論理IPアドレスが設定され、スレーブまたは未定のときは、論理IPアドレスは設定されないように構成されている。   Here, the mode is a GW state, and includes at least three states: master, slave, and undetermined. The logical IP address is set for the secure side GW when the master is used, and the logical IP address is not set when the slave is undetermined.

第1および第2の転送可能パケット設定部11a、11bそれぞれは、第1ローカルネット301とインターネット304との間で、転送を許可する通信サービスと、この通信サービスを使用する計算機のうち、通信を許可するものを設定する機能を有する。   Each of the first and second transferable packet setting units 11a and 11b communicates between a communication service that permits transfer between the first local net 301 and the Internet 304 and a computer that uses this communication service. It has a function to set what is allowed.

ここで、転送を許可するとは、転送可能パケット設定部で設定された通信サービスのアプリケーションが動作していることを示す。例えば、TCPサーバ機能、UDPサーバ機能、およびFTPサーバ機能などがある。転送可能パケット設定部で設定された通信サービスのプロトコル(TCO、UDP、FTPなど)、およびポート番号(TCP、UDPなど)のサーバアプリケーション(スレッドまたはプロセス)を起動させることによって、設定されたプロトコルやポート番号のパケットを非IP通信で転送する。非IP通信で転送されたパケットは、設定されたプロトコルやポート番号でインターネット304またはローカルネットに送信することができる。   Here, permitting transfer indicates that the communication service application set by the transferable packet setting unit is operating. For example, there are a TCP server function, a UDP server function, and an FTP server function. By starting the server application (thread or process) of the communication service protocol (TCO, UDP, FTP, etc.) and port number (TCP, UDP, etc.) set in the transferable packet setting unit, Transfer the packet of the port number by non-IP communication. A packet transferred by non-IP communication can be transmitted to the Internet 304 or a local network using a set protocol or port number.

第1および第2のIP送受信部12a、12bそれぞれは、第1および第2のLANポート20a、20bそれぞれと通信可能に構成されている。また、第1および第2のIP送受信部12a、12bそれぞれは、第1および第2の転送可能パケット設定部11a、11bそれぞれと信号の送受信が可能で、第1および第2の転送可能パケット設定部11a、11bそれぞれで設定されたパケット転送設定の情報が入力される。第1および第2のIP送受信部12a、12bで受信したパケットそれぞれは、受信したパケットが、転送が許可されたパケットか否かを判定する機能を有している。   The first and second IP transmission / reception units 12a and 12b are configured to be able to communicate with the first and second LAN ports 20a and 20b, respectively. The first and second IP transmission / reception units 12a and 12b can transmit and receive signals to and from the first and second transferable packet setting units 11a and 11b, respectively, and the first and second transferable packet settings can be performed. Information on packet transfer settings set in each of the units 11a and 11b is input. Each of the packets received by the first and second IP transmission / reception units 12a and 12b has a function of determining whether or not the received packet is a packet for which transfer is permitted.

第1および第2の非IP送受信部13a、13bそれぞれは、第1および第2のIP送受信部12a、12bそれぞれと通信可能に構成されている。第1および第2のIP送受信部12a、12bそれぞれが転送を許可されたパケットを受信したときに、このパケットが第1および第2の非IP送受信部13a、13bそれぞれに送られる。   Each of the first and second non-IP transmission / reception units 13a and 13b is configured to be able to communicate with each of the first and second IP transmission / reception units 12a and 12b. When each of the first and second IP transmission / reception units 12a and 12b receives a packet that is permitted to be transferred, the packet is sent to each of the first and second non-IP transmission / reception units 13a and 13b.

例えば、第2のIP送受信部12bは、第2の転送可能パケット設定部11bにより入力された転送設定の情報に基づいて、第2のLANポート20bに送信された複数のパケットのうち、転送を許可されたパケットのみを受信する。受信したパケットは、第2の非IP送受信部13bおよび第1系用非IP通信路22aを介して、第1の非IP送受信部13aに送られる。第1の非IP送受信部13aで受信したパケットは、第1のIP送受信部12aに送られて、転送設定の情報に基づいて第1のLANポート20aを介して第1ローカルネット301へ転送される。   For example, the second IP transmission / reception unit 12b performs transfer among a plurality of packets transmitted to the second LAN port 20b based on the transfer setting information input by the second transferable packet setting unit 11b. Receive only permitted packets. The received packet is sent to the first non-IP transmission / reception unit 13a via the second non-IP transmission / reception unit 13b and the first system non-IP communication path 22a. The packet received by the first non-IP transmission / reception unit 13a is sent to the first IP transmission / reception unit 12a and transferred to the first local network 301 via the first LAN port 20a based on the transfer setting information. The

第1ローカルネット301からインターネット304へパケットを転送するときは、上記の経路と逆の経路に沿って通信される。   When a packet is transferred from the first local net 301 to the Internet 304, communication is performed along a route opposite to the above route.

第1のモード判定部17aは、第1系ローカルネットGW装置1aのモードの状態が、マスタ、スレーブ、未定のうち、いずれであるかを判定する機能を有している。同様に、第2のモード判定部17bは、第1系インターネットGW装置2bのモードの状態が、マスタ、スレーブ、未定のうち、いずれであるかを判定する機能を有している。   The first mode determination unit 17a has a function of determining whether the mode state of the first system local network GW apparatus 1a is master, slave, or undetermined. Similarly, the second mode determination unit 17b has a function of determining whether the mode state of the first Internet GW apparatus 2b is master, slave, or undetermined.

第1のモード判定部17aは、第1の論理IPアドレス設定解除部14a、第1のGW間モード監視部15a、第1の2系間モード監視部16a、第1のモード状態保持部18aそれぞれと互いに通信可能である。第1のモード判定部17aは、第1のGW間モード監視部15aおよび第1の2系間モード監視部16aそれぞれから送られてくる情報に基づいて、上記の判定を行う。この判定結果は第1のモード状態保持部18aに送られる。   The first mode determination unit 17a includes a first logical IP address setting cancellation unit 14a, a first inter-GW mode monitoring unit 15a, a first two-system mode monitoring unit 16a, and a first mode state holding unit 18a. Can communicate with each other. The first mode determination unit 17a performs the above determination based on information sent from each of the first inter-GW mode monitoring unit 15a and the first inter-two-system mode monitoring unit 16a. The determination result is sent to the first mode state holding unit 18a.

第1のモード状態保持部18aは、第1のモード判定部17aで判定した結果を受信して、この結果が格納される。この判定結果がマスタの場合には、第1のモード判定部17aは、第1の論理IPアドレス設定解除部14aに、論理IP設定要求を入力する。スレーブの場合には、論理IPアドレス設定解除部に論理IP解除要求を入力する。   The first mode state holding unit 18a receives the result determined by the first mode determination unit 17a and stores the result. When the determination result is a master, the first mode determination unit 17a inputs a logical IP setting request to the first logical IP address setting cancellation unit 14a. In the case of a slave, a logical IP release request is input to the logical IP address setting release unit.

第2のモード判定部17bは、第2の系内モード監視部19b、第2のGW間モード監視部15b、第2の2系間モード監視部16b、第2のモード状態保持部18bそれぞれと互いに通信可能である。第2のモード判定部17bは、第2の系内モード監視部19b、第2のGW間モード監視部15b、および第2の2系間モード監視部16bそれぞれから送られてくる情報に基づいて、上記の判定を行う。この判定結果は、第2のモード状態保持部18bに送られる。   The second mode determination unit 17b includes a second intra-system mode monitoring unit 19b, a second inter-GW mode monitoring unit 15b, a second inter-two-system mode monitoring unit 16b, and a second mode state holding unit 18b. They can communicate with each other. The second mode determination unit 17b is based on information sent from the second intra-system mode monitoring unit 19b, the second inter-GW mode monitoring unit 15b, and the second inter-two-system mode monitoring unit 16b. The above determination is made. The determination result is sent to the second mode state holding unit 18b.

第2のモード状態保持部18bは、第1のモード状態保持部18aと同様に、第2のモード判定部17bで判定した結果を受信して、この結果が格納される。   Similar to the first mode state holding unit 18a, the second mode state holding unit 18b receives the result determined by the second mode determination unit 17b and stores the result.

マスタの場合、外部からモード切替えを行うときに、スレーブ遷移要求を受けて、モード状態保持部にスレーブを格納することができる。   In the case of the master, when the mode is switched from the outside, it can receive the slave transition request and store the slave in the mode state holding unit.

第1系ローカルネットGW装置1aを停止する場合、第1のモード判定部17aは、停止要求を受け付け、第1のモード状態保持部18aに「未定」を格納する。同様に、第1系インターネットGW装置2bを停止する場合、第2のモード判定部17bは、停止要求を受け付け、第1のモード状態保持部18aに「未定」を格納する。   When stopping the first system local net GW apparatus 1a, the first mode determination unit 17a receives a stop request and stores “undecided” in the first mode state holding unit 18a. Similarly, when the first Internet GW apparatus 2b is stopped, the second mode determination unit 17b receives a stop request and stores “undecided” in the first mode state holding unit 18a.

第1および第2のGW間モード監視部15a、15bそれぞれは、第1系用非IP通信路22aを介して、互いに通信可能である。第1のGW間モード監視部15aは、第1のモード状態保持部18aに格納されたデータを取得して、第1系用非IP通信路22aを経由して、第1系インターネットGW装置2bのモードの状態を監視して、監視結果を第1のモード判定部17aに入力する。同様に、第2のGW間モード監視部15bは、第2のモード状態保持部18bに格納されたデータを取得して、第1系用非IP通信路22aを経由して、第1系ローカルネットGW装置1aのモードの状態を監視して、監視結果を第2のモード判定部17bに入力する。   The first and second inter-GW mode monitoring units 15a and 15b can communicate with each other via the first non-IP communication path 22a for the first system. The first inter-GW mode monitoring unit 15a acquires the data stored in the first mode state holding unit 18a, and passes through the first non-IP communication path 22a for the first system Internet GW device 2b. The mode state is monitored, and the monitoring result is input to the first mode determination unit 17a. Similarly, the second inter-GW mode monitoring unit 15b acquires the data stored in the second mode state holding unit 18b and passes through the first non-IP communication path 22a for the first system local. The mode state of the network GW apparatus 1a is monitored, and the monitoring result is input to the second mode determination unit 17b.

第2の系内モード監視部19bは、別のローカルネット、例えば第2ローカルネット302と同系のインターネットGWのモード状態を監視する機能を有する。図1の第2の系内モード監視部19bは、第2のモード状態保持部18bに格納されたデータを取得して、第2のLANポート20bを経由して、例えば第2ローカルネット302用の第1系インターネットGW装置2bのモード状態を監視する。第2の系内モード監視部19bが監視した結果は、同じ第1系インターネットGW装置2b内に設けられた第2のモード判定部17bに入力される。   The second intra-system mode monitoring unit 19b has a function of monitoring the mode state of another local net, for example, the Internet GW of the same system as the second local net 302. The second intra-system mode monitoring unit 19b in FIG. 1 acquires the data stored in the second mode state holding unit 18b, and for example for the second local network 302 via the second LAN port 20b. The mode state of the first system Internet GW apparatus 2b is monitored. The result monitored by the second intra-system mode monitoring unit 19b is input to the second mode determination unit 17b provided in the same first system Internet GW apparatus 2b.

第1および第2の2系間モード監視部16a、16bそれぞれは、第1および第2のモード判定部17a、17bそれぞれと通信可能である。また、第1の2系間モード監視部16aは、第1のモード状態保持部18aに格納されたデータを取得して、第1の2系間モード監視ポート21aを経由して、第2系ローカルネットGW装置3cのモードの状態を監視して、監視結果を第1のモード判定部17aに入力する。同様に、第2の2系間モード監視部16bは、第2のモード状態保持部18bに格納されたデータを取得して、第2の2系間モード監視ポート21bを経由して、第2系インターネットGW装置4dのモードの状態を監視して、監視結果を第2のモード判定部17bに入力する。   The first and second two-system mode monitoring units 16a and 16b can communicate with the first and second mode determination units 17a and 17b, respectively. The first inter-system mode monitoring unit 16a acquires the data stored in the first mode state holding unit 18a and passes through the first inter-system mode monitoring port 21a to transmit the second system. The mode state of the local net GW apparatus 3c is monitored, and the monitoring result is input to the first mode determination unit 17a. Similarly, the second inter-system mode monitoring unit 16b acquires the data stored in the second mode state holding unit 18b, and passes through the second inter-system mode monitoring port 21b to perform the second operation. The mode state of the system Internet GW apparatus 4d is monitored, and the monitoring result is input to the second mode determination unit 17b.

続いて、本実施形態の作用について説明する。先ず、通常時の動作について図3を用いて説明する。   Then, the effect | action of this embodiment is demonstrated. First, normal operation will be described with reference to FIG.

図3の例では、第1ローカルネット301内にある第1計算機101からインターネット304を経由して、第2ローカルネット302内の第2計算機102に対してパケット送信を行う手順を示している。この例では、第1ローカルネット301に接続された第1系GW装置5と、第2ローカルネット302に接続された第1系GW装置5がマスタで、第1ローカルネット301に接続された第2系GW装置6と、第2ローカルネット302に接続された第2系GW装置6がスレーブになっている。   In the example of FIG. 3, a procedure for transmitting a packet from the first computer 101 in the first local net 301 to the second computer 102 in the second local net 302 via the Internet 304 is shown. In this example, the first system GW apparatus 5 connected to the first local net 301 and the first system GW apparatus 5 connected to the second local net 302 are masters, and the first system GW apparatus 5 connected to the first local net 301 is the master. The second system GW device 6 and the second system GW device 6 connected to the second local net 302 are slaves.

先ず、図3に示すように、第1ローカルネット301用の第1系ローカルネットGW装置1a内の第1の転送可能パケット設定部11aおよび第1系インターネットGW装置2b内の第2の転送可能パケット設定部11bそれぞれは、使用者によって、パケット転送設定の情報が入力されて保存される(ステップS301)。同様に、第1ローカルネット301用の第2系ローカルネットGW装置3c内の第3の転送設定パケット設定部および第2系インターネットGW装置4d内の第4の転送設定パケット設定部それぞれにも、パケット転送設定の情報が入力されて保存される(ステップS302)。   First, as shown in FIG. 3, the first transferable packet setting unit 11a in the first system local network GW apparatus 1a for the first local network 301 and the second transfer in the first system Internet GW apparatus 2b are possible. Each packet setting unit 11b receives and stores packet transfer setting information by the user (step S301). Similarly, each of the third transfer setting packet setting unit in the second system local network GW device 3c for the first local network 301 and the fourth transfer setting packet setting unit in the second system Internet GW device 4d, respectively, Packet transfer setting information is input and stored (step S302).

第2ローカルネット302用の第1系GW装置5および第2系GW装置6にも同様に、パケット転送設定の情報が入力されて保存される(ステップS303、S304)。なお、図3の例では、マスタとなる第1系GW装置5におけるフローチャートを示しているが、第2系についても同様に、転送設定の情報が保存される。   Similarly, packet transfer setting information is input and stored in the first system GW device 5 and the second system GW device 6 for the second local net 302 (steps S303 and S304). In the example of FIG. 3, the flowchart in the first system GW device 5 serving as a master is shown, but the transfer setting information is similarly stored for the second system.

第1のローカルネット側の動作について、以下に説明する。   The operation on the first local net side will be described below.

第1ローカルネット301内の第1計算機101が、第1のLANポート20a宛にパケットを送信する(ステップS305)。   The first computer 101 in the first local net 301 transmits a packet addressed to the first LAN port 20a (step S305).

第1のIP送受信部12aは、第1の転送可能パケット設定部11aから転送設定の情報を取得して、第1のLANポート20aに送信されたパケットが、転送を許可された計算機またはサービスのものであるかを判定する(ステップS306)。このとき、転送を許可しないパケットの場合、通信サービスが動作していないため、パケットは受信されない。   The first IP transmission / reception unit 12a obtains transfer setting information from the first transferable packet setting unit 11a, and the packet transmitted to the first LAN port 20a is transferred to the computer or service permitted to transfer. It is determined whether it is a thing (step S306). At this time, in the case of a packet that does not permit transfer, the packet is not received because the communication service is not operating.

第1のIP送受信部12aは、転送を許可されたパケットを受信した後に、受信したパケットを第1の非IP送受信部13aに送る(ステップS307)。第1の非IP送受信部13aは、受信したパケットを第1系用非IP通信路22aを経由して、第1系インターネットGW装置2bに転送される(ステップS308)。   After receiving the packet permitted to be transferred, the first IP transceiver 12a sends the received packet to the first non-IP transceiver 13a (step S307). The first non-IP transmission / reception unit 13a transfers the received packet to the first system Internet GW apparatus 2b via the first system non-IP communication path 22a (step S308).

第1系インターネットGW装置2b内の第2の非IP送受信部13bは、第1系用非IP通信路22aを介して転送されたパケットを受信して、第2のIP送受信部12bに送る(ステップS309)。第2のIP送受信部12bは、第2の転送可能パケット設定部11bから転送設定の情報を取得して、どのローカルネットにパケットを転送すべきかを決定する(ステップS310)。   The second non-IP transmission / reception unit 13b in the first system Internet GW apparatus 2b receives the packet transferred via the first system non-IP communication path 22a and sends the packet to the second IP transmission / reception unit 12b ( Step S309). The second IP transmission / reception unit 12b acquires transfer setting information from the second transferable packet setting unit 11b and determines to which local net the packet should be transferred (step S310).

第2のIP送受信部12bは、第2の転送可能パケット設定部11bから取得した設定に基づいて、第2ローカルネット302用の第1系インターネットGW装置2bのプロトコル、ポート番号などにパケットを送信する(ステップS311)。   The second IP transmission / reception unit 12b transmits a packet to the protocol, port number, etc. of the first Internet GW apparatus 2b for the second local network 302 based on the setting acquired from the second transferable packet setting unit 11b. (Step S311).

第2ローカルネット302側の動作について、以下に説明する。   The operation on the second local net 302 side will be described below.

第2ローカルネット302用の第1系インターネットGW装置2b内の第2のIP送受信部12bは、第2の転送可能パケット設定部11bから転送設定の情報を取得して、第2のLANポート20bに送信されてきたパケットが転送を許可されたものか否かを判定する(ステップS312)。第2のIP送受信部12bは、転送を許可されたパケットを受信して、受信したパケットを第2の非IP送受信部13bに送る(ステップS313)。   The second IP transmission / reception unit 12b in the first-system Internet GW apparatus 2b for the second local net 302 acquires transfer setting information from the second transferable packet setting unit 11b, and the second LAN port 20b. It is determined whether or not the packet transmitted to is permitted to be transferred (step S312). The second IP transmission / reception unit 12b receives the packet permitted to be transferred, and sends the received packet to the second non-IP transmission / reception unit 13b (step S313).

第2の非IP送受信部13bは受信したパケットを第1系用非IP通信路22aを経由して、第1系ローカルネットGW装置1aに転送する(ステップS314)。第2系ローカルネットGW装置3c内の第1の非IP送受信部13aは、第1系用非IP通信路22aを介して転送されたパケットを受信して、第1のIP送受信部12aに送信する(ステップS315)。   The second non-IP transmission / reception unit 13b transfers the received packet to the first system local net GW apparatus 1a via the first system non-IP communication path 22a (step S314). The first non-IP transmission / reception unit 13a in the second-system local net GW apparatus 3c receives the packet transferred via the first-system non-IP communication path 22a and transmits the packet to the first IP transmission / reception unit 12a. (Step S315).

第1のIP送受信部12aは、第1の転送可能パケット設定部11aから転送設定を取得して(ステップS316)、この転送設定の情報に基づいて、第2ローカルネット302内の第2計算機102にパケットを第1のLANポート20aを介して送信する(ステップS317)。第2ローカルネット302内の第2計算機102が、このパケットを受信して(ステップS318)、完了となる。   The first IP transmission / reception unit 12a acquires the transfer setting from the first transferable packet setting unit 11a (step S316), and based on the transfer setting information, the second computer 102 in the second local net 302. Packet is transmitted via the first LAN port 20a (step S317). The second computer 102 in the second local net 302 receives this packet (step S318) and is completed.

次に、第1ローカルネット301用の第1系GW装置5および第2ローカルネット302用の1系GWのモードが共にマスタで、第1ローカルネット301用の第1系ローカルネットGW装置1aが停止したときに、論理IPアドレスを切り替える手順(IPフェイルオーバー)について、図4を用いて、説明する。   Next, the first system GW apparatus 5 for the first local net 301 and the first system GW mode for the second local net 302 are both masters, and the first system local net GW apparatus 1a for the first local net 301 is A procedure (IP failover) for switching the logical IP address when the operation is stopped will be described with reference to FIG.

先ず、第1ローカルネット301用の第1系ローカルネットGW装置1aがダウンすると(ステップS401)、第1ローカルネット301用の第2インターネットGW内の第2のGW間モード監視部15bが、非IPのモード通信の切断を検出する(ステップS402)。   First, when the first-system local network GW device 1a for the first local network 301 goes down (step S401), the second inter-GW mode monitoring unit 15b in the second Internet GW for the first local network 301 is turned off. The disconnection of the IP mode communication is detected (step S402).

第1ローカルネット301用の第1系インターネットGW装置2b内の第2のGW間モード監視部15bは、第2のモード判定部17bに非IPモード通信の切断を通知する。第2のモード判定部17bは、切断通知を受け取って第2のモード状態保持部18bにスレーブであることを設定する(ステップS403)。第2の2系間モード監視部16bは、第2のモード状態保持部18bからスレーブ状態を取得して、第2系インターネットGW装置4dに通知する(ステップS404)。   The second inter-GW mode monitoring unit 15b in the first Internet GW apparatus 2b for the first local net 301 notifies the second mode determination unit 17b of disconnection of non-IP mode communication. The second mode determination unit 17b receives the disconnection notification and sets the second mode state holding unit 18b to be a slave (step S403). The second two-system mode monitoring unit 16b acquires the slave state from the second mode state holding unit 18b and notifies the second-system Internet GW device 4d (step S404).

第1系インターネットGW装置2b内の第2のモード判定部17bは、第2のモード状態保持部18bからスレーブ状態の情報を取得して、第2の系内モード監視部19bに渡す。第2の系内モード監視部19bは、受け取ったスレーブ変更通知を、第2ローカルネット302用の第1系インターネットGW装置2bに送信する(ステップS418)
第1ローカルネット301用の第2系インターネットGW装置4d内の第4の系内モード監視部19aは、第1系インターネットGW装置2bからの通知を受け取り、第4のモード判定部17dに渡す(ステップS407)。第2系インターネットGW装置4d内の第4のモード判定部17dは、マスタ変更通知を受け取って、第4のモード状態保持部18dにマスタであることを設定する(ステップS408)。
The second mode determination unit 17b in the first system Internet GW apparatus 2b acquires the slave state information from the second mode state holding unit 18b and passes it to the second system mode monitoring unit 19b. The second intra-system mode monitoring unit 19b transmits the received slave change notification to the first Internet GW apparatus 2b for the second local network 302 (step S418).
The fourth intra-system mode monitoring unit 19a in the second-system Internet GW device 4d for the first local network 301 receives the notification from the first-system Internet GW device 2b and passes it to the fourth mode determination unit 17d ( Step S407). The fourth mode determination unit 17d in the second Internet GW apparatus 4d receives the master change notification and sets the fourth mode state holding unit 18d to be a master (step S408).

第1ローカルネット301用の第2系インターネットGW装置4d内の第4のGW間モード監視部15dは、第4のモード状態保持部18dからマスタ状態を取得して、第2系ローカルネットGW装置3cに通知する(ステップS409)。   The fourth inter-GW mode monitoring unit 15d in the second-system Internet GW device 4d for the first local net 301 acquires the master state from the fourth mode state holding unit 18d, and the second-system local net GW device. 3c is notified (step S409).

第2系インターネットGW装置4d内の第4のモード判定部17dは、第4のモード状態保持部18dからマスタ状態を取得して、第4の系内モード監視部19dに渡す。第4の系内モード監視部19dは、マスタ変更通知を、第2ローカルネット302用の第2系インターネットGW装置4dに送信する(ステップS412)。   The fourth mode determination unit 17d in the second system Internet GW apparatus 4d acquires the master state from the fourth mode state holding unit 18d and passes it to the fourth system mode monitoring unit 19d. The fourth intra-system mode monitoring unit 19d transmits a master change notification to the second Internet GW apparatus 4d for the second local net 302 (Step S412).

第1ローカルネット301用の第2系ローカルネットGW装置3c内の第3の2系間モード監視部16cは、ハートビート通信が切断したことを検出して、第3のモード判定部17cに通知する(ステップS405)。第3のモード判定部17cは、第3のモード状態保持部18cにマスタを設定して、第2系インターネットGW装置4dからマスタ変更通知が届くのを待機する(ステップS406)。   The third inter-system mode monitoring unit 16c in the second-system local net GW device 3c for the first local net 301 detects that the heartbeat communication has been disconnected and notifies the third mode determination unit 17c. (Step S405). The third mode determination unit 17c sets a master in the third mode state holding unit 18c, and waits for a master change notification from the second Internet GW apparatus 4d (step S406).

第3のGW間モード監視部15cは、第2系インターネットGW装置4dからのマスタ変更通知を受け取って、第3のモード判定部17cに渡す(ステップS410)。この第3のモード判定部17cは、第3の論理IPアドレス設定解除部14cに、マスタに変更した旨を通知する。第3の論理IPアドレス設定解除部14cは、第3のLANポート20cに、論理IPを設定する(ステップS411)。   The third inter-GW mode monitoring unit 15c receives the master change notification from the second Internet GW apparatus 4d and passes it to the third mode determination unit 17c (step S410). The third mode determination unit 17c notifies the third logical IP address setting cancellation unit 14c that the master mode has been changed. The third logical IP address setting cancellation unit 14c sets a logical IP for the third LAN port 20c (step S411).

第2ローカルネット302用の第2系インターネットGW装置4d内の第4の系内モード監視部19dは、第1ローカルネット301用の第2系インターネットGW装置4dからマスタ変更通知を受け取って、第4のモード判定部17dに渡す(ステップS413)。この第4のモード判定部17dは、マスタ変更通知を受け取って、第4のモード状態保持部18dにマスタを設定する(ステップS414)。   The fourth intra-system mode monitoring unit 19d in the second system Internet GW apparatus 4d for the second local net 302 receives the master change notification from the second system Internet GW apparatus 4d for the first local net 301, and 4 to the mode determination unit 17d (step S413). The fourth mode determination unit 17d receives the master change notification and sets the master in the fourth mode state holding unit 18d (step S414).

第2ローカルネット302用の第2系インターネットGW装置4d内の第4のGW間モード監視部15dは、第4のモード状態保持部18dからマスタ状態を取得して、第2系ローカルネットGW装置3cに通知する(ステップS415)。   The fourth inter-GW mode monitoring unit 15d in the second-system Internet GW device 4d for the second local net 302 acquires the master state from the fourth mode state holding unit 18d, and the second-system local net GW device. 3c is notified (step S415).

第2ローカルネット302用の第2系ローカルネットGW装置3c内の第3のGW間モード監視部15cは、第2系インターネットGW装置4dからマスタ変更通知を受け取って、第3のモード判定部17cに渡す(ステップS416)。この第3のモード判定部17cは、第3のモード状態保持部18cをマスタに設定して、第3の論理IPアドレス設定解除部14cにマスタに変更した旨を通知する。第3の論理IPアドレス設定解除部14cは、第3のLANポート20cに論理IPを設定する(ステップS417)。   The third inter-GW mode monitoring unit 15c in the second-system local net GW device 3c for the second local net 302 receives the master change notification from the second-system Internet GW device 4d and receives the third mode determination unit 17c. (Step S416). The third mode determination unit 17c sets the third mode state holding unit 18c as a master, and notifies the third logical IP address setting cancellation unit 14c that it has been changed to the master. The third logical IP address setting cancellation unit 14c sets a logical IP for the third LAN port 20c (step S417).

第2ローカルネット302用の第1系インターネットGW装置2b内の第2の系内モード監視部19bは、第1ローカルネット301用の第1系インターネットGW装置2bからのスレーブ変更通知を受け取って、第2ローカルネット302用の第2のモード判定部17bに渡す(ステップS419)。この第2のモード判定部17bは、スレーブ変更通知を受け取って、第2のモード状態保持部18bにスレーブを設定する(ステップS420)。   The second intra-system mode monitoring unit 19b in the first system Internet GW apparatus 2b for the second local net 302 receives the slave change notification from the first system Internet GW apparatus 2b for the first local net 301, and The data is transferred to the second mode determination unit 17b for the second local net 302 (step S419). The second mode determination unit 17b receives the slave change notification and sets the slave in the second mode state holding unit 18b (step S420).

第2のGW間モード監視部15bは、第2のモード状態保持部18bからスレーブ状態を取得して、第2ローカルネット302用の第1系ローカルネットGW装置1aに通知する(ステップS421)。第2ローカルネット302用の第1系ローカルネットGW装置1a内の第3のGW間モード監視部15cは、第2系インターネットGW装置4dからのスレーブ変更通知を受け取って、第3のモード判定部17cに渡す(ステップS422)。この第3のモード判定部17cは、スレーブ変更通知を受け取って、第2ローカルネット302用の第1のモード状態保持部18aにスレーブを設定するとともに、第1の論理IPアドレス設定解除部14aにスレーブに変更した旨を通知する(ステップS423)。   The second inter-GW mode monitoring unit 15b acquires the slave state from the second mode state holding unit 18b and notifies the first local network GW device 1a for the second local net 302 (step S421). The third inter-GW mode monitoring unit 15c in the first-system local net GW device 1a for the second local network 302 receives the slave change notification from the second-system Internet GW device 4d, and receives a third mode determination unit. 17c (step S422). The third mode determination unit 17c receives the slave change notification, sets the slave in the first mode state holding unit 18a for the second local net 302, and sets the slave in the first logical IP address setting release unit 14a. The slave is notified of the change (step S423).

第2ローカルネット302用の第1系ローカルネットGW装置1a内の第1の論理IPアドレス設定解除部14aは、第1ローカルネット301用の第1のLANポート20aの論理IPを解除する(ステップS424)。   The first logical IP address setting release unit 14a in the first system local net GW apparatus 1a for the second local net 302 releases the logical IP of the first LAN port 20a for the first local net 301 (step). S424).

これにより、第1系GW装置5から第2系GW装置6へ、論理IPアドレスを切り替えることができる。   Thereby, the logical IP address can be switched from the first system GW apparatus 5 to the second system GW apparatus 6.

次に、第1ローカルネット301の第1系GW装置5および第2ローカルネット302の第1系GW装置5のモード状態が共にマスタで、第1系インターネットGW装置2bが停止したときの、論理IPアドレスを切り替える手順(IPフェイルオーバー)について、図5を用いて、説明する。   Next, the logic when the mode state of the first system GW device 5 of the first local net 301 and the first system GW device 5 of the second local net 302 is both master and the first system Internet GW device 2b is stopped. The procedure for switching IP addresses (IP failover) will be described with reference to FIG.

先ず、第1ローカルネット301の第1系インターネットGW装置2bが停止すると(ステップS501)、第1ローカルネット301用の第1のGW間モード監視部15aが非IP通信の切断を検出し、第1のモード判定部17aに通知する(ステップS502)。第1のモード判定部17aは、切断通知を受け取って、第1のモード状態保持部18aにスレーブを設定する(ステップS503)。   First, when the first-system Internet GW apparatus 2b of the first local net 301 is stopped (step S501), the first inter-GW mode monitoring unit 15a for the first local net 301 detects disconnection of non-IP communication, and 1 mode determination unit 17a is notified (step S502). The first mode determination unit 17a receives the disconnection notification and sets a slave in the first mode state holding unit 18a (step S503).

第1ローカルネット301用の第1の2系間モード監視部16aは、第1のモード状態保持部18aからスレーブ状態を取得して、第1ローカルネット301用の第2系ローカルネットGW装置3cに通知する(ステップS504)。   The first two-system mode monitoring unit 16a for the first local net 301 acquires the slave state from the first mode state holding unit 18a, and the second system local net GW device 3c for the first local net 301 is obtained. (Step S504).

第1ローカルネット301用の第1系ローカルネットGW装置1a内の第3の2系間モード監視部16cは、第1系ローカルネットGW装置1aからの通知を受け取って、第3のモード判定部17cに渡す(ステップS507)。この第3のモード判定部17cは、マスタ変更通知を受け取って、第3のモード状態保持部18cにマスタを設定し、第1ローカルネット301用の第2系インターネットGW装置4dからのマスタ変更通知が届くのを待機する(ステップS508)。   The third inter-system mode monitoring unit 16c in the first-system local net GW device 1a for the first local net 301 receives the notification from the first-system local net GW device 1a, and receives a third mode determination unit. 17c (step S507). The third mode determination unit 17c receives the master change notification, sets the master in the third mode state holding unit 18c, and receives the master change notification from the second Internet GW apparatus 4d for the first local network 301. Is waited for (step S508).

第1ローカルネット301用の第2系ローカルネットGW装置3c内の第3のGW間モード監視部15cは、第2系インターネットGW装置4dからのマスタ変更通知を受け取って、第3のモード判定部17cに渡す(ステップS509)。この第3のモード判定部17cは、第3の論理IPアドレス設定解除部14cにマスタに変更した旨を通知して、第3の論理IPアドレス設定解除部14cは、第3のLANポート20cに論理IPを設定する(ステップS510)。   The third inter-GW mode monitoring unit 15c in the second-system local network GW device 3c for the first local network 301 receives the master change notification from the second-system Internet GW device 4d, and receives a third mode determination unit. 17c (step S509). The third mode determining unit 17c notifies the third logical IP address setting canceling unit 14c that the master has been changed, and the third logical IP address setting canceling unit 14c is connected to the third LAN port 20c. A logical IP is set (step S510).

第1ローカルネット301用の第2系インターネットGW装置4d内の第4の2系間モード監視部16dは、ハートビート通信が切断したことを検出して、第4のモード判定部17dに通知する(ステップS505)。第4の2系間モード監視部16dは、第4のモード状態保持部18dにマスタを設定する(ステップS506)。第4のGW間モード監視部15dは、第4のモード状態保持部18dからマスタを取得して、第2系ローカルネットGW装置3cに通知する(ステップS511)。   The fourth inter-system mode monitoring unit 16d in the second-system Internet GW device 4d for the first local network 301 detects that the heartbeat communication has been disconnected and notifies the fourth mode determination unit 17d. (Step S505). The fourth inter-system mode monitoring unit 16d sets the master in the fourth mode state holding unit 18d (step S506). The fourth inter-GW mode monitoring unit 15d acquires the master from the fourth mode state holding unit 18d and notifies the second local network GW apparatus 3c (step S511).

第4のモード判定部17dは、第4のモード状態保持部18dからマスタ状態を取得して、第4の系内モード監視部19dに渡し、第4の系内モード監視部19dは、マスタ変更通知を第2ローカルネット302用の第2系インターネットGW装置4dに送信する(ステップS512)。   The fourth mode determination unit 17d acquires the master state from the fourth mode state holding unit 18d and passes it to the fourth in-system mode monitoring unit 19d. The fourth in-system mode monitoring unit 19d The notification is transmitted to the second Internet GW apparatus 4d for the second local network 302 (step S512).

第2ローカルネット302用の第2系インターネットGW装置4d内の第4の系内モード監視部19dは、第1ローカルネット301用の第4の系内モード監視部19dからマスタ変更通知を受け取って、第2ローカルネット302用の第4のモード判定部17dに渡す(ステップS513)。この第4のモード判定部17dは、マスタ変更通知を受け取って、第4のモード状態保持部18dにマスタを設定する(ステップS514)。   The fourth intra-system mode monitoring unit 19d in the second system Internet GW apparatus 4d for the second local net 302 receives the master change notification from the fourth intra-system mode monitoring unit 19d for the first local net 301. Then, the data is transferred to the fourth mode determination unit 17d for the second local net 302 (step S513). The fourth mode determination unit 17d receives the master change notification and sets the master in the fourth mode state holding unit 18d (step S514).

第2ローカルネット302用の第2系インターネットGW装置4d内の第4のGW間モード監視部15dは、第4のモード状態保持部18dからマスタ状態を取得して、第2ローカルネット302用の第2系ローカルネットGW装置3cに通知する(ステップS515)。   The fourth inter-GW mode monitoring unit 15d in the second-system Internet GW device 4d for the second local net 302 acquires the master state from the fourth mode state holding unit 18d, and The second system local net GW apparatus 3c is notified (step S515).

第2ローカルネット302用の第2系ローカルネットGW装置3c内の第3のGW間モード監視部15cは、第2系インターネットGW装置4dからマスタ変更通知を受け取って、第2ローカルネット302用の第3のモード判定部17cに渡す(ステップS516)。この第3のモード判定部17cは、第3のモード状態保持部18cにマスタを設定して、第3の論理IPアドレス設定解除部14cにマスタに変更した旨を通知して、第3の論理IPアドレス設定解除部14cは、第3のLANポート20cに論理IPを設定する(ステップS517)。   The third inter-GW mode monitoring unit 15c in the second-system local network GW device 3c for the second local network 302 receives the master change notification from the second-system Internet GW device 4d, and receives the master change notification for the second local network 302. It passes to the 3rd mode determination part 17c (step S516). The third mode determination unit 17c sets the master in the third mode state holding unit 18c, notifies the third logical IP address setting cancellation unit 14c that the master has been changed, and notifies the third logic state determination unit 17c. The IP address setting cancellation unit 14c sets a logical IP for the third LAN port 20c (step S517).

第2ローカルネット302用の第1系インターネットGW装置2b内の第2の系内モード監視部19bは、第1ローカルネット301用の第2の系内モード監視部19bとの系内モード通信の切断を検出し、第2のモード判定部17bに通知する(ステップS518)。この第2のモード判定部17bは、モード通信の切断の通知を受け取って、第2のモード状態保持部18bにスレーブを設定する(ステップS519)。第2のGW間モード監視部15bは、第2のモード状態保持部18bからスレーブ状態を取得して、第1系ローカルネットGW装置1aに通知する(ステップS520)。   The second intra-system mode monitoring unit 19b in the first system Internet GW apparatus 2b for the second local net 302 performs intra-system mode communication with the second intra-system mode monitoring unit 19b for the first local net 301. Disconnection is detected and notified to the second mode determination unit 17b (step S518). The second mode determination unit 17b receives a notification of disconnection of the mode communication and sets a slave in the second mode state holding unit 18b (step S519). The second inter-GW mode monitoring unit 15b acquires the slave state from the second mode state holding unit 18b and notifies the first local network GW apparatus 1a (step S520).

第2ローカルネット302用の第1系ローカルネットGW装置1a内の第1のGW間モード監視部15aは、第1系インターネットGW装置2bからのスレーブ変更通知を受け取って、第1のモード判定部17aに渡す(ステップS521)。この第1のモード判定部17aは、スレーブ変更通知を受け取って、第1のモード状態保持部18aにスレーブを設定するとともに、第1の論理IPアドレス設定解除部14aにスレーブに変更した旨を通知する(ステップS522)。この第1の論理IPアドレス設定解除部14aは、第3のLANポート20cの論理IPを解除する(ステップS523)。   The first inter-GW mode monitoring unit 15a in the first system local net GW device 1a for the second local net 302 receives the slave change notification from the first system Internet GW device 2b, and receives the first mode determination unit. 17a (step S521). The first mode determination unit 17a receives the slave change notification, sets the slave in the first mode state holding unit 18a, and notifies the first logical IP address setting cancellation unit 14a that the slave has been changed. (Step S522). The first logical IP address setting cancellation unit 14a cancels the logical IP of the third LAN port 20c (step S523).

これにより、第1系GW装置5から第2系GW装置6へ、論理IPアドレスを切り替えることができる。   Thereby, the logical IP address can be switched from the first system GW apparatus 5 to the second system GW apparatus 6.

次に、第1ローカルネット301用の第1系インターネットGW装置2bが停止して、第2系GW装置6にIPフェイルオーバが発生した後に再び第1系GW装置5をマスタに設定し直したときに、論理IPアドレスを切り替える手順について、図6を用いて説明する。   Next, when the first-system Internet GW device 2b for the first local network 301 is stopped and the second-system GW device 6 has undergone an IP failover, the first-system GW device 5 is set as the master again. Next, the procedure for switching the logical IP address will be described with reference to FIG.

第1ローカルネット301の第1系インターネットGW装置2bが停止して、第2系GW装置6にIPフェイルオーバが発生した後に、使用者によって第1系インターネットGW装置2bが再起動される(ステップS601)。このとき、第1および第2の非IP送受信部13a、13b同士、並びに、第1および第2のGW間モード監視部15a、15b同士が、非IP通信を開始して、第1および第3の2系間モード監視部16a、16c同士がハートビート通信を開始する(ステップS602)。   After the first-system Internet GW device 2b of the first local net 301 is stopped and an IP failover occurs in the second-system GW device 6, the first-system Internet GW device 2b is restarted by the user (step S601). ). At this time, the first and second non-IP transmission / reception units 13a and 13b and the first and second inter-GW mode monitoring units 15a and 15b start non-IP communication, and the first and third The two-system mode monitoring units 16a and 16c start heartbeat communication (step S602).

再度、第1系GW装置5をマスタにするために、第2系ローカルネットGW装置3cの第3のモード判定部17cにスレーブ遷移要求を行う(ステップS603)。この第3のモード判定部17cは、スレーブ遷移要求を受け取って第3のモード状態保持部18cにスレーブを設定する。第3のGW間モード監視部15cは、第3のモード状態保持部18cからスレーブ状態を取得して、第2系インターネットGW装置4dに通知する(ステップS604)。   In order to make the first system GW device 5 a master again, a slave transition request is made to the third mode determination unit 17c of the second system local network GW device 3c (step S603). The third mode determination unit 17c receives the slave transition request and sets the slave in the third mode state holding unit 18c. The third inter-GW mode monitoring unit 15c acquires the slave state from the third mode state holding unit 18c and notifies the second internet GW device 4d (step S604).

第1ローカルネット301用の第2系インターネットGW装置4d内の第4のGW間モード監視部15dは、第1系ローカルネットGW装置1aからのスレーブ変更通知を受け取って、第4のモード判定部17dに渡す(ステップS607)。この第4のモード判定部17dは、スレーブ変更通知を受け取って、第4のモード状態保持部18dにスレーブを設定する(ステップS608)。   The fourth inter-GW mode monitoring unit 15d in the second-system Internet GW device 4d for the first local network 301 receives the slave change notification from the first-system local network GW device 1a, and receives the fourth mode determination unit. 17d (step S607). The fourth mode determination unit 17d receives the slave change notification and sets the slave in the fourth mode state holding unit 18d (step S608).

第2系インターネットGW装置4d内の第4の2系間モード監視部16dは、第4のモード状態保持部18dからスレーブ状態を取得して、第1系インターネットGW装置2bに通知する(ステップS609)。   The fourth inter-system mode monitoring unit 16d in the second-system Internet GW device 4d acquires the slave state from the fourth mode state holding unit 18d and notifies the first-system Internet GW device 2b (step S609). ).

第2系インターネットGW装置4d内の第4のモード判定部17dは、第4のモード状態保持部18dからスレーブ状態を取得して、第4の系内モード監視部19dに渡す。第4の系内モード監視部19dは、スレーブ変更通知を、第2ローカルネット302用の第2系インターネットGW装置4dに送信する(ステップS610)。   The fourth mode determination unit 17d in the second system Internet GW apparatus 4d acquires the slave state from the fourth mode state holding unit 18d and passes it to the fourth system mode monitoring unit 19d. The fourth intra-system mode monitoring unit 19d transmits a slave change notification to the second Internet GW apparatus 4d for the second local net 302 (Step S610).

第1ローカルネット301用の第1系インターネットGW装置2b内の第2の2系間モード監視部16bは、第2系インターネットGW装置4dからスレーブ変更通知を受け取って、第2のモード判定部17bに渡す(ステップS611)。この第2のモード判定部17bは、スレーブ変更通知を受け取って、第2のモード状態保持部18bにマスタを設定する(ステップS612)。   The second inter-system mode monitoring unit 16b in the first-system Internet GW apparatus 2b for the first local network 301 receives the slave change notification from the second-system Internet GW apparatus 4d, and receives the second mode determination unit 17b. (Step S611). The second mode determination unit 17b receives the slave change notification and sets the master in the second mode state holding unit 18b (step S612).

第1系インターネットGW装置2b内の第2のGW間モード監視部15bは、第2のモード状態保持部18bからマスタ状態を取得して、第1系ローカルネットGW装置1aに通知する(ステップS613)。   The second inter-GW mode monitoring unit 15b in the first system Internet GW apparatus 2b acquires the master state from the second mode state holding unit 18b and notifies the first system local network GW apparatus 1a (step S613). ).

第1系インターネットGW装置2b内の第2のモード判定部17bは、第2のモード状態保持部18bからスレーブ状態を取得して第2の系内モード監視部19bに渡す。この第2の系内モード監視部19bは、スレーブ変更通知を第2ローカルネット302用の第1系インターネットGW装置2bに送信する(ステップS614)。   The second mode determination unit 17b in the first system Internet GW apparatus 2b acquires the slave state from the second mode state holding unit 18b and passes it to the second system mode monitoring unit 19b. The second intra-system mode monitoring unit 19b transmits a slave change notification to the first Internet GW apparatus 2b for the second local net 302 (step S614).

第1ローカルネット301用の第1系ローカルネットGW装置1a内の第1の2系間モード監視部16aは、第2系ローカルネットGW装置3cからのスレーブ変更通知を受け取って、第1のモード判定部17aに渡す(ステップS605)。この第1のモード判定部17aは、スレーブ変更通知を受け取って、第1のモード状態保持部18aにマスタを設定し、第1系インターネットGW装置2bからマスタ変更通知が届くのを待機する(ステップS606)。   The first inter-two-system mode monitoring unit 16a in the first-system local net GW apparatus 1a for the first local net 301 receives the slave change notification from the second-system local net GW apparatus 3c, and receives the first mode. It passes to the determination part 17a (step S605). The first mode determination unit 17a receives the slave change notification, sets the master in the first mode state holding unit 18a, and waits for the master change notification to be received from the first Internet GW apparatus 2b (Step S1). S606).

第1系ローカルネットGW装置1a内の第1のGW間モード監視部15aは、第1系インターネットGW装置2bからのマスタ変更通知を受け取って、第1のモード判定部17aに渡す(ステップS615)。この第1のモード判定部17aは、第1の論理IPアドレス設定解除部14aにマスタに変更した旨を通知して、この第1の論理IPアドレス設定解除部14aは、第1のLANポート20aに論理IPを設定する(ステップS616)。   The first inter-GW mode monitoring unit 15a in the first system local network GW apparatus 1a receives the master change notification from the first system Internet GW apparatus 2b and passes it to the first mode determination unit 17a (step S615). . The first mode determination unit 17a notifies the first logical IP address setting release unit 14a that the master has been changed, and the first logical IP address setting release unit 14a receives the first LAN port 20a. The logical IP is set to (step S616).

第2ローカルネット302用の第2系インターネットGW装置4d内の第4の系内モード監視部19dは、第1ローカルネット301用の第2系インターネットGW装置4dからのスレーブ変更通知を受け取って、第4のモード判定部17dに渡す(ステップS617)。この第4のモード判定部17dは、スレーブ変更通知を受け取って、第4のモード状態保持部18dにスレーブを設定する(ステップS618)。   The fourth intra-system mode monitoring unit 19d in the second-system Internet GW apparatus 4d for the second local net 302 receives the slave change notification from the second-system Internet GW apparatus 4d for the first local net 301, and It passes to the 4th mode determination part 17d (step S617). The fourth mode determination unit 17d receives the slave change notification and sets the slave in the fourth mode state holding unit 18d (step S618).

第2ローカルネット302用の第2系インターネットGW装置4d内の第4のGW間モード監視部15dは、第4のモード状態保持部18dからスレーブ状態を取得して、第2系ローカルネットGW装置3cに通知する(ステップS619)。   The fourth inter-GW mode monitoring unit 15d in the second-system Internet GW device 4d for the second local net 302 acquires the slave state from the fourth mode state holding unit 18d, and obtains the second-system local net GW device. 3c is notified (step S619).

第2系ローカルネットGW装置3c内の第3のGW間モード監視部15cは、第2系インターネットGW装置4dからのスレーブ変更通知を受け取って、第3のモード判定部17cに渡す(ステップS620)。この第3のモード判定部17cは、第3のモード状態保持部18cにスレーブを設定するとともに、第3の論理IPアドレス設定解除部14cにスレーブに変更した旨を通知する(ステップS621)。この第3の論理IPアドレス設定解除部14cは、第3のLANポート20cの論理IPを解除する(ステップS622)。   The third inter-GW mode monitoring unit 15c in the second-system local network GW device 3c receives the slave change notification from the second-system Internet GW device 4d and passes it to the third mode determination unit 17c (step S620). . The third mode determination unit 17c sets a slave in the third mode state holding unit 18c, and notifies the third logical IP address setting cancellation unit 14c that the slave has been changed (step S621). The third logical IP address setting releasing unit 14c releases the logical IP of the third LAN port 20c (step S622).

第2ローカルネット302用の第1系インターネットGW装置2b内の第2の系内モード監視部19bは、第1ローカルネット301用の第1系インターネットGW装置2bからのマスタ変更通知を受け取って、第2ローカルネット302用の第2のモード判定部17bに渡す(ステップS623)。この第2のモード判定部17bは、マスタ変更通知を受け取って、第2のモード状態保持部18bにマスタを設定する(ステップS624)。   The second intra-system mode monitoring unit 19b in the first system Internet GW apparatus 2b for the second local net 302 receives the master change notification from the first system Internet GW apparatus 2b for the first local net 301, and The data is transferred to the second mode determination unit 17b for the second local net 302 (step S623). The second mode determination unit 17b receives the master change notification and sets the master in the second mode state holding unit 18b (step S624).

第2ローカルネット302用の第1系インターネットGW装置2b内の第2のGW間モード監視部15bは、第2のモード状態保持部18bからマスタを取得して、第1系ローカルネットGW装置1aに通知する(ステップS625)。この第1系ローカルネットGW装置1a内の第1のGW間モード監視部15aは、第1系インターネットGW装置2bからのマスタ変更通知を受け取って、第1のモード判定部17aに渡す(ステップS626)。この第1のモード判定部17aは、マスタ変更通知を受け取って、第1のモード状態保持部18aにマスタを設定するとともに、第1の論理IPアドレス設定解除部14aにマスタに変更した旨を通知する(ステップS627)。この第1の論理IPアドレス設定解除部14aは、第3のLANポート20cに理IPを設定する(ステップS628)。   The second inter-GW mode monitoring unit 15b in the first system Internet GW device 2b for the second local net 302 acquires the master from the second mode state holding unit 18b, and the first system local network GW device 1a. (Step S625). The first inter-GW mode monitoring unit 15a in the first system local network GW apparatus 1a receives the master change notification from the first system Internet GW apparatus 2b and passes it to the first mode determination unit 17a (step S626). ). The first mode determination unit 17a receives the master change notification, sets the master in the first mode state holding unit 18a, and notifies the first logical IP address setting release unit 14a that the master has been changed. (Step S627). The first logical IP address setting cancellation unit 14a sets a logical IP for the third LAN port 20c (step S628).

これにより、第2系GW装置6から第1系GW装置5へ、論理IPアドレスを切り替えることができる。   Thereby, the logical IP address can be switched from the second system GW apparatus 6 to the first system GW apparatus 5.

ここで、図6のステップS603で第3のモード判定部17cに停止要求を行い、ステップS604で第3のモード状態保持部18cに、「未定」を設定した場合も、上記工程と同様に、論理IPアドレスの切り替えを行うことが可能である。   Here, even when the third mode determination unit 17c is requested to stop in step S603 in FIG. 6 and “undecided” is set in the third mode state holding unit 18c in step S604, It is possible to switch the logical IP address.

以上の説明からわかるように本実実施形態によれば、インターネット304側が不要なパケットが、インターネット304を介してローカルネット301、302、303に送り込まれることを抑制できる。これにより、複数のローカルネット同士は、通信したいデータパケットのみを通信することができる。   As can be seen from the above description, according to the present embodiment, it is possible to prevent packets unnecessary for the Internet 304 from being sent to the local nets 301, 302, and 303 via the Internet 304. Thereby, a plurality of local nets can communicate only data packets to be communicated.

また、ローカルネット301、302、303内の通信を行うアプリケーションは、冗長化された通信経路の系の切り替えが発生しても、通信を継続することが可能である。   In addition, an application that performs communication in the local nets 301, 302, and 303 can continue communication even when a redundant communication path system is switched.

したがって、複数のローカルネット301、302、303を、インターネット304を介して接続する通信装置の安全性および機密性を向上させることが可能になる。   Therefore, it is possible to improve the safety and confidentiality of a communication device that connects a plurality of local nets 301, 302, and 303 via the Internet 304.

また、本実施形態では、2つのポート、すなわち、LANポートおよび2系間モード監視ポートを有している。   In this embodiment, there are two ports, that is, a LAN port and a two-system mode monitoring port.

これらのポートは、2系間モード監視ポートを、LANポートと異なるポートに割り当ててもよい。また、2系間モード監視ポート同士、例えば第1および第3の2系間モード監視ポート21a、21c同士は、クロス接続により直結することも可能で、例えば、シリアル接続も可能である。LANポートの間の通信が切れた場合も、2系間モード監視部によるモード監視を行うことができる。   For these ports, the inter-system mode monitoring port may be assigned to a port different from the LAN port. Further, the two-system mode monitoring ports, for example, the first and third two-system mode monitoring ports 21a and 21c can be directly connected by cross connection, for example, serial connection is also possible. Even when communication between the LAN ports is interrupted, the mode monitoring by the two-system mode monitoring unit can be performed.

これにより、パケット転送の負荷上昇などのLANポートの通信状態に関係なく、信頼性の高いハートビート通信が可能になるため、モード管理の品質を向上させることができる。   This enables highly reliable heartbeat communication regardless of the communication state of the LAN port, such as an increase in packet transfer load, thereby improving the quality of mode management.

また、LANポートが、2系間モード監視ポートの機能を備えるように構成してもよい。この場合、2系間モード監視ポートの間、例えば第1および第3の2系間モード監視ポート21a、21c同士の接続は、LAN接続により行う。   In addition, the LAN port may be configured to have a function of a two-system mode monitoring port. In this case, the connection between the two-system mode monitoring ports, for example, the first and third two-system mode monitoring ports 21a and 21c are performed by LAN connection.

これにより、LANポートを1つしか備えていない場合であっても、ハートビート通信が可能である。よって、GWを構成するためのコストを低減することができる。   Thereby, even when only one LAN port is provided, heartbeat communication is possible. Thus, the cost for configuring the GW can be reduced.

また、2系間モード監視ポートをLANポートと異なるポートに割り当てたときに、LANポートにもハートビート用通信ポートとして使用してもよい。この場合、2系間モード監視ポートが切断されても、LANポートによって、ハートビート通信を行うことが可能になる。   When the inter-system mode monitoring port is assigned to a port different from the LAN port, the LAN port may also be used as a heartbeat communication port. In this case, even if the two-system mode monitoring port is disconnected, the heartbeat communication can be performed through the LAN port.

これにより、パケット転送の負荷上昇などのLANポートの通信状態に関係なく、信頼性の高いハートビート通信が可能になり、モード管理の品質を向上させることができる。さらに、LANポート、2系間モード監視ポートのいずれか一方の通信が途絶えた場合であっても、もう一方のポートによりハートビート通信を行うことが可能になるため、より信頼性が向上する。   This makes it possible to perform heartbeat communication with high reliability regardless of the communication state of the LAN port, such as an increase in packet transfer load, and improve the quality of mode management. Furthermore, even if communication of either the LAN port or the inter-system mode monitoring port is interrupted, heartbeat communication can be performed by the other port, so that reliability is further improved.

[第2の実施形態]
本発明に係る通信装置の第2の実施形態について、図2および図7〜図9を用いて説明する。
[Second Embodiment]
A second embodiment of the communication apparatus according to the present invention will be described with reference to FIGS. 2 and 7 to 9.

図7は、本実施形態の通信装置の構成を示すブロック図である。図8は、図7の通信装置のうち第1系ローカルネットGW装置1aおよび第2系ローカルネットGW装置3cが共に停止して再起動したときに、スプリットブレインを解消する例の手順の概要を示すフローチャートである。図9は、第1系ローカルネットGW装置1aおよび第2系ローカルネットGW装置3c同士のハートビート信号が切断されて再び通信が復旧した後のスプリットブレイン検出と、第1系GW装置5を優先的にマスタにすることでスプリットブレインを解消する手順を示すフローチャートである。   FIG. 7 is a block diagram illustrating a configuration of the communication apparatus according to the present embodiment. FIG. 8 shows an outline of an example procedure for eliminating the split brain when both the first-system local network GW apparatus 1a and the second-system local network GW apparatus 3c are stopped and restarted. It is a flowchart to show. FIG. 9 shows split brain detection after the heartbeat signal between the first system local net GW apparatus 1a and the second system local net GW apparatus 3c is disconnected and communication is restored, and the first system GW apparatus 5 is prioritized. It is a flowchart which shows the procedure which eliminates a split brain by making it into a master automatically.

なお、本実施形態は、第1の実施形態の変形例であって、第1の実施形態と同一部分または類似部分には、同一符号を付して、重複説明を省略する。また、本実施形態の通信装置は、図2と同様のネットワークシステムを構成している。   In addition, this embodiment is a modification of 1st Embodiment, Comprising: The same code | symbol is attached | subjected to the same part or similar part as 1st Embodiment, and duplication description is abbreviate | omitted. In addition, the communication apparatus according to the present embodiment forms a network system similar to that shown in FIG.

本実施形態では、第1系ローカルネットGW装置1aおよび第2系ローカルネットGW装置3cそれぞれに、第1のスプリットブレイン復旧設定部23a、および第3のスプリットブレイン復旧設定部23cが設けられている。   In the present embodiment, a first split brain recovery setting unit 23a and a third split brain recovery setting unit 23c are provided in each of the first system local net GW apparatus 1a and the second system local net GW apparatus 3c. .

第1および第3のスプリットブレイン復旧設定部23a、23cは、第1系GW装置5および第2系GW装置6のモードが、共にマスタを検出したときに、第1および第3の2系間モード監視部16a、16cそれぞれにどちらがマスタとして継続するかを決める優先度の情報を入力する。この優先度の情報は、使用者によって、第1および第3のスプリットブレイン復旧設定部23a、23cそれぞれに予め設定されている。   The first and third split brain recovery setting units 23a and 23c are configured so that when the modes of the first system GW device 5 and the second system GW device 6 both detect the master, Priority information that determines which one continues as a master is input to each of the mode monitoring units 16a and 16c. The priority information is preset by the user in each of the first and third split brain recovery setting units 23a and 23c.

本実施形態の第1および第3の2系間モード監視部16a、16cそれぞれは、相手系のローカルネットGWに優先度を互いに通知し合い、優先度の低い場合には、ローカルネットGWのモードをスレーブに変更する機能を有している。   Each of the first and third inter-system mode monitoring units 16a and 16c of the present embodiment notifies the other party's local net GW of the priority, and when the priority is low, the mode of the local net GW Has the function of changing to a slave.

本実施形態の作用について説明する。先ず、通常時の動作について図8を用いて説明する。   The operation of this embodiment will be described. First, a normal operation will be described with reference to FIG.

先ず、第1ローカルネット301用の第1系ローカルネットGW装置1aおよび第2系ローカルネットGW装置3cが停止した(ステップS801、S805)後に、それぞれ再起動する(ステップS802、S806)。   First, after the first system local net GW apparatus 1a and the second system local net GW apparatus 3c for the first local net 301 are stopped (steps S801 and S805), they are restarted (steps S802 and S806).

第1および第3の2系間モード監視部16a、16cは、互いにハートビート通信を開始する(ステップS803、S807)。   The first and third inter-system mode monitoring units 16a and 16c start heartbeat communication with each other (steps S803 and S807).

第1および第3の2系間モード監視部16a、16cそれぞれは、第1および第3のスプリットブレイン復旧設定部23a、23cそれぞれから、マスタ継続の優先度情報を取得して、互いにの系同士、すなわち、第1系および第2系同士で互いに送信しあう(ステップS804、S808)。   The first and third inter-system mode monitoring units 16a and 16c obtain master continuation priority information from the first and third split brain recovery setting units 23a and 23c, respectively. That is, the first system and the second system transmit each other (steps S804 and S808).

第1の2系間モード監視部16aは、第2系(相手系)の優先度と第1系(自系)の優先度を第1のモード判定部17aに通知して、第1のモード判定部17aは、自系の優先度が高いと判定して、第1のモード状態保持部18aにマスタを設定する。第1のGW間モード監視部15aは、マスタに変更した旨を第1系インターネットGW装置2bに通知する(ステップS809)。   The first inter-system mode monitoring unit 16a notifies the first mode determination unit 17a of the priority of the second system (the partner system) and the priority of the first system (the own system), and the first mode The determination unit 17a determines that the priority of the own system is high, and sets the master in the first mode state holding unit 18a. The first inter-GW mode monitoring unit 15a notifies the first-system Internet GW apparatus 2b that it has been changed to the master (step S809).

第1系インターネットGW装置2bの第2のGW間モード監視部15bは、第1系ローカルネットGW装置1aからのマスタ変更通知を受け取って、第2のモード判定部17bに通知する(ステップS810)。この第2のモード判定部17bは、第2のモード状態保持部18bにマスタを設定して、第2のGW間モード監視部15bは、マスタに変更した旨を第1系ローカルネットに通知する(ステップS811)。   The second inter-GW mode monitoring unit 15b of the first system Internet GW apparatus 2b receives the master change notification from the first system local network GW apparatus 1a and notifies the second mode determination unit 17b (step S810). . The second mode determination unit 17b sets the master in the second mode state holding unit 18b, and the second inter-GW mode monitoring unit 15b notifies the first system local network that the mode has been changed to the master. (Step S811).

第1系ローカルネットGW装置1a内の第1のGW間モード監視部15aは、第1系インターネットGW装置2bからのマスタ変更通知を受け取って、第1のモード判定部17aに通知する(ステップS812)。この第1のモード判定部17aは、第1の論理IPアドレス設定解除部14aにマスタを変更した旨を通知して、第1の論理IPアドレス設定解除部14aは、第1のLANポート20aに論理IPを設定する(ステップS813)。   The first inter-GW mode monitoring unit 15a in the first system local network GW apparatus 1a receives the master change notification from the first system Internet GW apparatus 2b and notifies the first mode determination unit 17a (step S812). ). The first mode determination unit 17a notifies the first logical IP address setting release unit 14a that the master has been changed, and the first logical IP address setting release unit 14a sends the first LAN port 20a to the first LAN port 20a. A logical IP is set (step S813).

第1ローカルネット301用の第1系ローカルネットGW装置1a内の第1の系内モード監視部19aは、第1のモード状態保持部18aからマスタ状態を取得して、第2ローカルネット302用の第1系インターネットGW装置2bに通知する(ステップS814)。   The first intra-system mode monitoring unit 19a in the first system local net GW apparatus 1a for the first local net 301 acquires the master state from the first mode state holding unit 18a, and is used for the second local net 302. To the first system Internet GW apparatus 2b (step S814).

第1ローカルネット301用の第2系ローカルネットGW装置3c内の第3の2系間モード監視部16cは、相手系となる第1系の優先度と、自系となる第2系の優先度を、第3のモード判定部17cに通知する。この第3のモード判定部17cは、自系となる第2系の優先度が低いと判定して、第3のモード状態保持部18cにスレーブを設定する。第3のGW間モード監視部15cは、スレーブに変更した旨を第2系インターネットGW装置4dに通知する(ステップS815)。   The third inter-system mode monitoring unit 16c in the second-system local net GW device 3c for the first local network 301 has a priority of the first system that is the partner system and a priority of the second system that is the own system. The degree is notified to the third mode determination unit 17c. The third mode determination unit 17c determines that the priority of the second system serving as its own system is low, and sets a slave in the third mode state holding unit 18c. The third inter-GW mode monitoring unit 15c notifies the second-system Internet GW apparatus 4d that it has been changed to a slave (step S815).

第2系インターネットGW装置4d内の第4のGW間モード監視部15dは、第2系ローカルネットGW装置3cからのスレーブ変更通知を受け取って、第4のモード判定部17dに渡す(ステップS816)。この第4のモード判定部17dは、第4のモード状態保持部18dにスレーブを設定する(ステップS817)。この第4のモード判定部17dは、第4のモード状態保持部18dからスレーブ状態を取得して、第4の系内モード監視部19dに渡し、この第4の系内モード監視部19dは、スレーブ変更通知を、第2ローカルネット302用の第2系インターネットGW装置4dに送信する(ステップS818)。   The fourth inter-GW mode monitoring unit 15d in the second-system Internet GW device 4d receives the slave change notification from the second-system local network GW device 3c and passes it to the fourth mode determination unit 17d (step S816). . The fourth mode determination unit 17d sets a slave in the fourth mode state holding unit 18d (step S817). The fourth mode determination unit 17d acquires the slave state from the fourth mode state holding unit 18d and passes it to the fourth in-system mode monitoring unit 19d. The fourth in-system mode monitoring unit 19d The slave change notification is transmitted to the second system Internet GW apparatus 4d for the second local net 302 (step S818).

第2ローカルネット302用の第2系インターネットGW装置4d内の第4の系内モード監視部19dは、第1ローカルネット301用の第2系インターネットGW装置4dからスレーブ変更通知を受け取って、第2ローカルネット302用の第4のモード判定部17dに渡す(ステップS819)。この第4のモード判定部17dは、スレーブ変更通知を受け取って、第4のモード状態保持部18dにスレーブを設定する。第4のGW間モード監視部15dは、第4のモード状態保持部18dからスレーブ状態を取得して、第2ローカルネット302用の第2系ローカルネットGW装置3cに通知する(ステップS820)。   The fourth intra-system mode monitoring unit 19d in the second-system Internet GW apparatus 4d for the second local net 302 receives the slave change notification from the second-system Internet GW apparatus 4d for the first local net 301, and 2 is passed to the fourth mode determination unit 17d for the local net 302 (step S819). The fourth mode determination unit 17d receives the slave change notification and sets the slave in the fourth mode state holding unit 18d. The fourth inter-GW mode monitoring unit 15d acquires the slave state from the fourth mode state holding unit 18d and notifies the second local net GW device 3c for the second local net 302 (step S820).

第2系ローカルネットGW装置3c内の第3のGW間モード監視部15cは、第2系インターネットGW装置4dからのスレーブ変更通知を受け取って、第3のモード判定部17cに渡す(ステップS821)。この第3のモード判定部17cは、第3のモード状態保持部18cにスレーブを設定する(ステップS822)。   The third inter-GW mode monitoring unit 15c in the second-system local network GW device 3c receives the slave change notification from the second-system Internet GW device 4d and passes it to the third mode determination unit 17c (step S821). . The third mode determination unit 17c sets a slave in the third mode state holding unit 18c (step S822).

第2ローカルネット302用の第1系インターネットGW装置2b内の第2の系内モード監視部19bは、第1ローカルネット301用の第1系インターネットGW装置2bからマスタ変更通知を受け取って、第2ローカルネット302用の第2のモード判定部17bに渡す(ステップS823)。この第2のモード判定部17bは、マスタ変更通知を受け取って第2のモード状態保持部18bにマスタを設定する。第2のGW間モード監視部15bは、第2のモード状態保持部18bからマスタ状態を取得して、第1系ローカルネットGW装置1aに通知する(ステップS824)。   The second intra-system mode monitoring unit 19b in the first system Internet GW apparatus 2b for the second local net 302 receives the master change notification from the first system Internet GW apparatus 2b for the first local net 301, and 2 is passed to the second mode determination unit 17b for the local net 302 (step S823). The second mode determination unit 17b receives the master change notification and sets the master in the second mode state holding unit 18b. The second inter-GW mode monitoring unit 15b acquires the master state from the second mode state holding unit 18b and notifies the first local network GW apparatus 1a (step S824).

この第1系ローカルネットGW装置1a内の第1のGW間モード監視部15aは、第2系インターネットGW装置4dからマスタ変更を受け取って、第1のモード判定部17aに渡す(ステップS825)。この第1のモード判定部17aは、第1のモード状態保持部18aにマスタを設定するとともに、第1の論理IPアドレス設定解除部14aにマスタに変更した旨を通知する(ステップS826)。第1の論理IPアドレス設定解除部14aは、第1のLANポート20aに論理IPを設定する(ステップS827)。   The first inter-GW mode monitoring unit 15a in the first system local network GW apparatus 1a receives the master change from the second system Internet GW apparatus 4d and passes it to the first mode determination unit 17a (step S825). The first mode determination unit 17a sets the master in the first mode state holding unit 18a and notifies the first logical IP address setting cancellation unit 14a that the master has been changed (step S826). The first logical IP address setting release unit 14a sets a logical IP for the first LAN port 20a (step S827).

これにより、両系すなわち、第1系および第2系が、共にダウンしても、第1系のGWをマスタと設定できるため、スプリットブレインを解消することができる。   Thereby, even if both systems, that is, the first system and the second system are both down, the first system GW can be set as the master, so that the split brain can be eliminated.

次に、第1系ローカルネットGW装置1aおよび第2系ローカルネットGW装置3c同士のハートビート信号が切断されて再び通信が復旧した後のスプリットブレイン検出と、第1系GW装置5を優先的にマスタとしてスプリットブレインを解消する方法について、図9を用いて、説明する。   Next, split brain detection after the heartbeat signal between the first system local net GW apparatus 1a and the second system local net GW apparatus 3c is disconnected and communication is restored again, and the first system GW apparatus 5 is given priority. Next, a method for eliminating the split brain as a master will be described with reference to FIG.

先ず、第1系ローカルネットGW装置1aおよび第2系ローカルネットGW装置3cそれぞれの第1および第3の2系間モード監視部16a、16cは、ハートビート通信の切断を検出して、第1および第3のモード判定部17a、17cそれぞれに通知する(ステップS901、S905)。   First, the first and third inter-system mode monitoring units 16a and 16c of the first system local net GW apparatus 1a and the second system local net GW apparatus 3c detect the disconnection of the heartbeat communication, and first And the third mode determination units 17a and 17c (steps S901 and S905).

第3のモード判定部17cは、ハートビート通信の切断通知および第3のモード状態保持部18cから取得したスレーブ状態より、第3のモード状態保持部18cにマスタを設定するとともに、第3の論理IPアドレス設定解除部14cにマスタに変更した旨を通知する。第3の論理IPアドレス設定解除部14cは、第3のLANポート20cに論理IPアドレスを設定する。第3のGW間モード監視部15cは、第3のモード状態保持部18cからマスタ状態を取得して、第2系インターネットGW装置4dに通知する(ステップS906)。   The third mode determination unit 17c sets the master in the third mode state holding unit 18c based on the notification of disconnection of the heartbeat communication and the slave state acquired from the third mode state holding unit 18c. The IP address setting cancellation unit 14c is notified of the change to the master. The third logical IP address setting cancellation unit 14c sets a logical IP address for the third LAN port 20c. The third inter-GW mode monitoring unit 15c acquires the master state from the third mode state holding unit 18c and notifies the second internet GW device 4d (step S906).

第2系インターネットGW装置4d内の第4のGW間モード監視部15dは、第2系ローカルネットGW装置3cからマスタ変更通知を受け取って、第4のモード判定部17dに渡す(ステップS912)。この第4のモード判定部17dは、第4のモード状態保持部18dにマスタを設定する(ステップS913)。   The fourth inter-GW mode monitoring unit 15d in the second-system Internet GW device 4d receives the master change notification from the second-system local network GW device 3c and passes it to the fourth mode determination unit 17d (step S912). The fourth mode determination unit 17d sets a master in the fourth mode state holding unit 18d (step S913).

第2系インターネットGW装置4d内の第4の系内モード監視部19dは、第4のモード状態保持部18dからマスタ状態を取得して、第2ローカルネット302用の第2系インターネットGW装置4dに送信する(ステップS914)。   The fourth intra-system mode monitoring unit 19d in the second system Internet GW apparatus 4d acquires the master state from the fourth mode state holding unit 18d, and the second system Internet GW apparatus 4d for the second local network 302 is obtained. (Step S914).

第2ローカルネット302用の第2系インターネットGW装置4d内の第4の系内モード監視部19dは、第1ローカルネット301用の第2系インターネットGW装置4dからのマスタ変更通知を受け取って、第4のモード判定部17dに渡す(ステップS915)。この第4のモード判定部17dは、マスタ変更通知を受け取って、第4のモード状態保持部18dにマスタを設定する。第4のGW間モード監視部15dは、第4のモード状態保持部18dからマスタ状態を取得して、第2系ローカルネットGW装置3cに通知する(ステップS916)。   The fourth intra-system mode monitoring unit 19d in the second-system Internet GW apparatus 4d for the second local net 302 receives the master change notification from the second-system Internet GW apparatus 4d for the first local net 301, and It passes to the 4th mode determination part 17d (step S915). The fourth mode determination unit 17d receives the master change notification and sets the master in the fourth mode state holding unit 18d. The fourth inter-GW mode monitoring unit 15d acquires the master state from the fourth mode state holding unit 18d and notifies the second local network GW device 3c (step S916).

この第2系ローカルネットGW装置3c内の第3のGW間モード監視部15cは、第2系インターネットGW装置4dからのマスタ変更通知を受け取って、第3のモード判定部17cに渡す(ステップS917)。この第3のモード判定部17cは、第3のモード状態保持部18cにマスタを設定するとともに、第3の論理IPアドレス設定解除部14cにマスタに変更した旨を通知する(ステップS918)。この第3の論理IPアドレス設定解除部14cは、第3のLANポート20cに論理IPを設定する(ステップS919)。   The third inter-GW mode monitoring unit 15c in the second-system local network GW device 3c receives the master change notification from the second-system Internet GW device 4d and passes it to the third mode determination unit 17c (step S917). ). The third mode determination unit 17c sets the master in the third mode state holding unit 18c, and notifies the third logical IP address setting cancellation unit 14c that the master has been changed (step S918). The third logical IP address setting cancellation unit 14c sets a logical IP for the third LAN port 20c (step S919).

第1ローカルネット301用の第1系ローカルネットGW装置1aおよび第2系ローカルネットGW装置3cそれぞれの第1および第3の2系間モード監視部16a、16cは、ハートビート通信の復旧を検出して、通信結果を第1および第3のモード判定部17a、17cそれぞれに渡す(ステップS902、S907)。   The first and third inter-system two mode monitoring units 16a and 16c of the first system local net GW apparatus 1a and the second system local net GW apparatus 3c for the first local net 301 detect recovery of heartbeat communication. Then, the communication result is passed to the first and third mode determination units 17a and 17c (steps S902 and S907).

第1および第3のモード判定部17a、17cそれぞれは、スプリットブレインを検出する(ステップS903、S908)。第1および第3の2系間モード監視部16a、16cそれぞれは、第1および第3のスプリットブレイン復旧設定部23a、23cそれぞれからマスタ継続の優先度情報を取得して、それぞれの相手系ローカルネットGWに送信する。(ステップS904、S909)。   Each of the first and third mode determination units 17a and 17c detects split brain (steps S903 and S908). Each of the first and third inter-system mode monitoring units 16a and 16c obtains the priority information of the master continuation from the first and third split brain recovery setting units 23a and 23c, respectively. Send to net GW. (Steps S904 and S909).

第3の2系間モード監視部16cは、相手系となる第1系の優先度と、自系となる第2系の優先度を第3のモード判定部17cに通知する。この第3のモード判定部17cは、自系(第2系)の優先度が低いと判定し、第3のモード状態保持部18cにスレーブを設定する。第3のGW間モード監視部15cは、第3のモード状態保持部18cからスレーブ状態を取得して、第2系インターネットGW装置4dに通知するとともに、第3の論理IPアドレス設定解除部14cにスレーブに変更した旨を通知する(ステップS910)。第3の論理IPアドレス設定解除部14cは、第3のLANポート20cの論理IPを解除する(ステップS911)。   The third inter-system mode monitoring unit 16c notifies the third mode determination unit 17c of the priority of the first system serving as the partner system and the priority of the second system serving as the own system. The third mode determination unit 17c determines that the priority of the own system (second system) is low, and sets a slave in the third mode state holding unit 18c. The third inter-GW mode monitoring unit 15c acquires the slave state from the third mode state holding unit 18c, notifies the second internet GW device 4d, and notifies the third logical IP address setting cancellation unit 14c. The slave is notified of the change (step S910). The third logical IP address setting cancellation unit 14c cancels the logical IP of the third LAN port 20c (step S911).

第2系インターネットGW装置4d内の第4のGW間モード監視部15dは、第1系ローカルネットGW装置1aからのスレーブ変更通知を受け取って、第4のモード判定部17dに渡す(ステップS920)。この第4のモード判定部17dは、第4のモード状態保持部18dにスレーブを設定する(ステップS921)。この第4の系内モード監視部19dは、第4のモード状態保持部18dからスレーブ状態を取得して、第2ローカルネット302用の第2系インターネットGW装置4dに通知する(ステップS922)。   The fourth inter-GW mode monitoring unit 15d in the second-system Internet GW device 4d receives the slave change notification from the first-system local network GW device 1a and passes it to the fourth mode determination unit 17d (step S920). . The fourth mode determination unit 17d sets a slave in the fourth mode state holding unit 18d (step S921). The fourth intra-system mode monitoring unit 19d acquires the slave state from the fourth mode state holding unit 18d and notifies the second system Internet GW device 4d for the second local network 302 (Step S922).

第2ローカルネット302用の第2系インターネットGW装置4d内の第4の系内モード監視部19dは、第1ローカルネット301用の第2系インターネットGW装置4dからスレーブ変更通知を受け取って、第4のモード判定部17dに渡す(ステップS923)。この第4のモード判定部17dは、スレーブ変更通知を受け取って、第4のモード状態保持部18dにスレーブを設定する。第4のGW間モード監視部15dは、第4のモード状態保持部18dからスレーブ状態を取得して、第2系ローカルネットGW装置3cに通知する(ステップS924)。   The fourth intra-system mode monitoring unit 19d in the second-system Internet GW apparatus 4d for the second local net 302 receives the slave change notification from the second-system Internet GW apparatus 4d for the first local net 301, and 4 to the mode determination unit 17d (step S923). The fourth mode determination unit 17d receives the slave change notification and sets the slave in the fourth mode state holding unit 18d. The fourth inter-GW mode monitoring unit 15d acquires the slave state from the fourth mode state holding unit 18d and notifies the second local network GW apparatus 3c (step S924).

この第2系ローカルネットGW装置3cの第3のGW間モード監視部15cは、第2系インターネットGW装置4dからのスレーブ変更通知を受け取って、第3のモード判定部17cに渡す(ステップS925)。この第3のモード判定部17cは、第3のモード状態保持部18cにスレーブを設定するとともに、第3の論理IPアドレス設定解除部14cにスレーブに変更した旨を通知する(ステップS926)。この第3の論理IPアドレス設定解除部14cは、第3のLANポート20cから論理IPを解除する(ステップS927)。   The third inter-GW mode monitoring unit 15c of the second-system local network GW device 3c receives the slave change notification from the second-system Internet GW device 4d and passes it to the third mode determination unit 17c (step S925). . The third mode determination unit 17c sets a slave in the third mode state holding unit 18c, and notifies the third logical IP address setting cancellation unit 14c that the slave has been changed (step S926). The third logical IP address setting cancellation unit 14c releases the logical IP from the third LAN port 20c (step S927).

これにより、ハートビート通信の復旧時に、第1系GW装置5をマスタとして、スプリットブレインを解消することができる。   As a result, when the heartbeat communication is restored, the split brain can be eliminated with the first GW apparatus 5 as the master.

以上の説明からわかるように本実施形態によれば、スプリットブレインが一時的に発生しても、優先してマスタとなるGWが予め設定されているため、通信路が一定に保たれる。   As can be seen from the above description, according to the present embodiment, even if a split brain occurs temporarily, the GW as the master is preferentially set in advance, so the communication path is kept constant.

これにより、例えば、優先度の高い方の系のGW同士の通信は、高速な回線を割り当てて、優先度の低い方のGW同士の通信は、低速な回線を割り当てることが可能である。低速な回線をバックアップ回線として用いることで、システムを構築するときの広域通信網に係るコストを下げることができる。   Thereby, for example, communication between GWs of higher priority systems can be assigned a high speed line, and communication between GWs of lower priority levels can be assigned a low speed line. By using a low-speed line as a backup line, the cost associated with the wide area communication network when constructing the system can be reduced.

[第3の実施形態]
本発明に係る通信装置の第3の実施形態について、図2および図10〜図12を用いて説明する。
[Third Embodiment]
A third embodiment of the communication apparatus according to the present invention will be described with reference to FIGS. 2 and 10 to 12.

図10は、本実施形態の通信装置の構成を示すブロック図である。図11は、図10の両系のGWが共に停止した後に再起動したときのスプリットブレイン解消手順の概要を示すフローチャートである。図12は、図10の第1系および第2系GW装置6同士のハートビート通信が復旧したときのスプリットブレイン解消手順の概要を示すフローチャートである。   FIG. 10 is a block diagram showing the configuration of the communication apparatus of this embodiment. FIG. 11 is a flowchart showing an overview of the split brain elimination procedure when both the GWs of FIG. 10 are stopped and then restarted. FIG. 12 is a flowchart showing an overview of the split brain elimination procedure when the heartbeat communication between the first and second system GW devices 6 of FIG. 10 is restored.

なお、本実施形態は、第1の実施形態の変形例であって、第1の実施形態と同一部分または類似部分には、同一符号を付して、重複説明を省略する。また、本実施形態の通信装置は、図2と同様のネットワークシステムを構成している。   In addition, this embodiment is a modification of 1st Embodiment, Comprising: The same code | symbol is attached | subjected to the same part or similar part as 1st Embodiment, and duplication description is abbreviate | omitted. In addition, the communication apparatus according to the present embodiment forms a network system similar to that shown in FIG.

本実施形態では、図1の第1の実施形態に加えて、第1系ローカルネットGW装置1aおよび第2系ローカルネットGW装置3cそれぞれには、第1のマスタ遷移時刻設定部24aおよび第3のマスタ遷移時刻設定部24cが設けられている。   In the present embodiment, in addition to the first embodiment of FIG. 1, the first master local time GW device 1 a and the second local network GW device 3 c have the first master transition time setting unit 24 a and the third The master transition time setting unit 24c is provided.

第1および第3のマスタ遷移時刻設定部24a、24cは、第1および第3のモード判定部17a、17cそれぞれがマスタを設定したときに、第1および第3のモード状態保持部18a、18cそれぞれにマスタ遷移時刻を記録する機能を有している。マスタ遷移時刻は、スレーブに遷移した時点でリセットされる。   The first and third master transition time setting units 24a and 24c are configured so that the first and third mode state holding units 18a and 18c are set when the first and third mode determination units 17a and 17c respectively set the master. Each has a function of recording the master transition time. The master transition time is reset when transitioning to the slave.

第1および第3の2系間モード監視部16a、16cは、相手系のローカルネットGWにマスタ遷移時刻を互いに通知し合って、2つの系のうち遅い時刻にマスタに遷移したGWをスレーブに変更する。   The first and third inter-system mode monitoring units 16a and 16c notify each other's local network GW of the master transition time, and make the GW that has transitioned to the master at a later time out of the two systems as a slave. change.

次に、本実施形態の作用について説明する。先ず、通常時の動作について図11を用いて説明する。   Next, the operation of this embodiment will be described. First, normal operation will be described with reference to FIG.

第1系ローカルネットGW装置1aおよび第2系ローカルネットGW装置3cが共に停止した後に再起動して復旧するときに、第1系GW装置5が先に起動してマスタに遷移した後にスプリットブレインを検出した場合に、スプリットブレインを解消する方法について、図11を用いて説明する。なお、第1系GW装置5と第2系とのモード同期については、第2の実施形態と同様である。   When the first system local network GW apparatus 1a and the second system local network GW apparatus 3c are both stopped and restarted to recover, the split brain after the first system GW apparatus 5 is started first and transitions to the master A method for eliminating the split brain when the image is detected will be described with reference to FIG. Note that mode synchronization between the first system GW apparatus 5 and the second system is the same as in the second embodiment.

先ず、第1ローカルネット301用の第1系ローカルネットGW装置1aおよび第2系ローカルネットGW装置3cが停止して(ステップS1101、S1107)、それぞれが再起動する(ステップS1102、S1108)。第1の2系間モード監視部16aおよび第3の2系間モード監視部16cそれぞれは、ハートビート通信を開始する(ステップS1103、S1109)。   First, the first system local net GW apparatus 1a and the second system local net GW apparatus 3c for the first local net 301 are stopped (steps S1101 and S1107) and restarted (steps S1102 and S1108). Each of the first two-system mode monitoring unit 16a and the third two-system mode monitoring unit 16c starts heartbeat communication (steps S1103 and S1109).

第1ローカルネット301用の第1および第3のモード判定部17a、17cは、互いにモードが確立していないことから、第1および第3のモード状態保持部18a、18cそれぞれにマスタが設定されて、第1および第3のマスタ遷移時刻設定部24a、24cそれぞれに、マスタに遷移した旨を通知する。第1および第3のマスタ遷移時刻設定部24a、24cそれぞれは、第1および第3のモード状態保持部18a、18cそれぞれにマスタ遷移時刻を登録する。第1および第3のGW間モード監視部15a、15cそれぞれは、第1および第3のモード状態保持部18a、18cからマスタ状態を取得して、第1系インターネットGW装置2bおよび第2系インターネットGW装置4dそれぞれに通知する(ステップS1104、S1112)。   Since the first and third mode determination units 17a and 17c for the first local net 301 are not established with each other, a master is set in each of the first and third mode state holding units 18a and 18c. Thus, the first and third master transition time setting units 24a and 24c are notified of the transition to the master. Each of the first and third master transition time setting units 24a and 24c registers the master transition time in each of the first and third mode state holding units 18a and 18c. The first and third inter-GW mode monitoring units 15a and 15c obtain the master state from the first and third mode state holding units 18a and 18c, respectively, and obtain the first system Internet GW device 2b and the second system Internet. Each GW apparatus 4d is notified (steps S1104 and S1112).

第1系インターネットGW装置2b内の第2のGW間モード監視部15bおよび第2系インターネットGW装置4d内の第4のGW間モード監視部15dそれぞれは、マスタ変更通知を受け取って、第2および第4のモード判定部17b、17dそれぞれに通知する(ステップS1110、S1116)。これらの第2および第4のモード判定部17b、17dそれぞれは、第2および第4のモード状態保持部18b、18dに、マスタを設定する(ステップS1111、S1117)。   Each of the second inter-GW mode monitoring unit 15b in the first Internet GW apparatus 2b and the fourth inter-GW mode monitoring unit 15d in the second Internet GW apparatus 4d receives the master change notification, and receives the second and Each of the fourth mode determination units 17b and 17d is notified (steps S1110 and S1116). Each of the second and fourth mode determination units 17b and 17d sets a master in the second and fourth mode state holding units 18b and 18d (steps S1111 and S1117).

第1系ローカルネットGW装置1a内の第1の2系間モード監視部16aおよび第2系ローカルネットGW装置3c内の第3の2系間モード監視部16cそれぞれは、ハートビート通信結果を、第1および第3のモード判定部17a、17cそれぞれに渡し、スプリットブレインを検出する(ステップS1105、S1113)。   The first inter-system mode monitoring unit 16a in the first system local net GW device 1a and the third inter-system mode monitoring unit 16c in the second system local net GW device 3c each provide a heartbeat communication result, It passes to each of the first and third mode determination units 17a and 17c, and split brain is detected (steps S1105 and S1113).

第1および第3の2系間モード監視部16a、16cそれぞれは、第1および第3のモード状態保持部18a、18cそれぞれからマスタ遷移時刻を取得して、相手系のローカルネットGWと送信し合う(ステップS1106、S1114)。   Each of the first and third inter-system mode monitoring units 16a and 16c acquires the master transition time from each of the first and third mode state holding units 18a and 18c, and transmits it to the local net GW of the counterpart system. (Steps S1106, S1114).

第3の2系間モード監視部16cは、自系(第2系)のマスタ遷移時刻が新しい時刻であることを、第3のモード判定部17cに通知する。第3のモード判定部17cは、第3のモード状態保持部18cにスレーブを設定する。第3のGW間モード監視部15cは、第3のモード状態保持部18cからスレーブ状態を取得して、第2系インターネットGW装置4dに通知する(ステップS1115)。   The third inter-system mode monitoring unit 16c notifies the third mode determination unit 17c that the master transition time of the own system (second system) is a new time. The third mode determination unit 17c sets a slave in the third mode state holding unit 18c. The third inter-GW mode monitoring unit 15c acquires the slave state from the third mode state holding unit 18c and notifies the second internet GW device 4d (step S1115).

第2系インターネットGW装置4d内の第4のGW間モード監視部15dは、スレーブ変更通知を受け取って、第4のモード判定部17dに通知する(ステップS1118)。第4のモード判定部17dは、第4のモード状態保持部18dにスレーブを設定する(ステップS1119)。   The fourth inter-GW mode monitoring unit 15d in the second Internet GW apparatus 4d receives the slave change notification and notifies the fourth mode determination unit 17d (step S1118). The fourth mode determination unit 17d sets a slave in the fourth mode state holding unit 18d (step S1119).

これにより、両系が同時にダウンした場合に、先にマスタに遷移した第1系のGWをそのままマスタとすることで、スプリットブレインを解消することができる。   As a result, when both systems go down at the same time, the split brain can be eliminated by using the first system GW that has previously transitioned to the master as the master as it is.

次に、第1系GW装置5がマスタで、第1系ローカルネットGW装置1aおよび第2系ローカルネットGW装置3cの間のハートビート通信が切断されて再び通信が復旧した後のスプリットブレイン検出と、第1系GWをマスタとして継続するスプリットブレイン解消方法について、図12を用いて説明する。   Next, split brain detection after the first system GW device 5 is the master and the heartbeat communication between the first system local net GW device 1a and the second system local net GW device 3c is disconnected and communication is restored again. A split brain elimination method that continues with the first GW as the master will be described with reference to FIG.

先ず、第1および第3の2系間モード監視部16a、16cそれぞれは、ハートビート通信の切断を検出し、第1および第3のモード判定部17a、17cそれぞれに通知する(ステップS1201、S1205)。   First, each of the first and third inter-system mode monitoring units 16a and 16c detects the disconnection of the heartbeat communication, and notifies each of the first and third mode determination units 17a and 17c (steps S1201 and S1205). ).

第3のモード判定部17cは、ハートビート通信の切断通知と第3のモード状態保持部18cから取得したスレーブ状態より、第3のモード状態保持部18cにマスタを設定して、第3のマスタ遷移時刻設定部24cにマスタに遷移した旨を通知する。第3のマスタ遷移時刻設定部24cは、第3のモード状態保持部18cにマスタ遷移時刻を登録して、第3の論理IPアドレス設定解除部14cにマスタに変更した旨を通知する。第3の論理IPアドレス設定解除部14cは、第3のLANポート20cに論理IPアドレスを設定する。第3のGW間モード監視部15cは、第3のモード状態保持部18cからマスタ状態を取得して、第2系インターネットGW装置4dに通知する(ステップS1206)。   The third mode determination unit 17c sets the master in the third mode state holding unit 18c based on the disconnection notification of the heartbeat communication and the slave state acquired from the third mode state holding unit 18c. The transition time setting unit 24c is notified of the transition to the master. The third master transition time setting unit 24c registers the master transition time in the third mode state holding unit 18c, and notifies the third logical IP address setting cancellation unit 14c that the master has been changed to the master. The third logical IP address setting cancellation unit 14c sets a logical IP address for the third LAN port 20c. The third inter-GW mode monitoring unit 15c acquires the master state from the third mode state holding unit 18c and notifies the second internet GW device 4d (step S1206).

第2系インターネットGW装置4d内の第4のGW間モード監視部15dは、第2系ローカルネットGW装置3cからのマスタ変更通知を受け取って、第4のモード判定部17dに渡す(ステップS1212)。この第4のモード判定部17dは第4のモード状態保持部18dにマスタを設定する(ステップS1213)。   The fourth inter-GW mode monitoring unit 15d in the second-system Internet GW device 4d receives the master change notification from the second-system local network GW device 3c and passes it to the fourth mode determination unit 17d (step S1212). . The fourth mode determination unit 17d sets the master in the fourth mode state holding unit 18d (step S1213).

第1系ローカルネットGW装置1a内の第1の2系間モード監視部16aは、ハートビート通信の復旧を検出し、通信結果を第1のモード判定部17aに渡す(ステップS1202)。この第1のモード判定部17aは、スプリットブレインを検出する(ステップS1203)。第2系ローカルネットGW装置3cも同様にスプリットブレインを検出する(ステップS1207、S1208)。   The first inter-two-system mode monitoring unit 16a in the first system local net GW apparatus 1a detects the recovery of the heartbeat communication, and passes the communication result to the first mode determination unit 17a (step S1202). The first mode determination unit 17a detects split brain (step S1203). Similarly, the second system local net GW apparatus 3c detects the split brain (steps S1207 and S1208).

第1および第3の2系間モード監視部16a、16cそれぞれは、第1および第3のモード状態保持部18a、18cそれぞれから、マスタ遷移時刻を取得して、相手系のGWと送信し合う(ステップS1204、S1209)。   Each of the first and third inter-system mode monitoring units 16a and 16c acquires the master transition time from each of the first and third mode state holding units 18a and 18c, and transmits the master transition time to each other GW. (Steps S1204 and S1209).

第3の2系間モード監視部16cは、相手系(第1系)のマスタ遷移時刻および自系(第2系)のマスタ遷移時刻それぞれを第3のモード判定部17cに通知する。第3のモード判定部17cは、自系(第2系)のマスタ遷移時刻が後であると判定して、第3のモード状態保持部18cにスレーブを設定する。第3のGW間モード監視部15cは、第3のモード状態保持部18cからスレーブ状態を取得して、第2インターネットGWに通知する。第3のモード判定部17cは、第3の論理IPアドレス設定解除部14cにスレーブに変更した旨を通知する(ステップS1210)。   The third inter-system mode monitoring unit 16c notifies the third mode determination unit 17c of the master transition time of the partner system (first system) and the master transition time of the own system (second system). The third mode determination unit 17c determines that the master (second system) master transition time is later, and sets the slave in the third mode state holding unit 18c. The third inter-GW mode monitoring unit 15c acquires the slave state from the third mode state holding unit 18c and notifies the second Internet GW. The third mode determining unit 17c notifies the third logical IP address setting canceling unit 14c that it has been changed to a slave (step S1210).

第3の論理IPアドレス設定解除部14cは、第3のLANポート20cの論理IPを解除する(ステップS1211)。   The third logical IP address setting cancellation unit 14c cancels the logical IP of the third LAN port 20c (step S1211).

第2系インターネットGW内の第4のGW間モード監視部15dは、第1系ローカルネットGW装置1aからのスレーブ変更通知を受け取って、第4のモード判定部17dに渡す(ステップS1220)。この第4のモード判定部17dは、第4のモード状態保持部18dにスレーブを設定する(ステップS1221)。   The fourth inter-GW mode monitoring unit 15d in the second-system Internet GW receives the slave change notification from the first-system local network GW device 1a and passes it to the fourth mode determination unit 17d (step S1220). The fourth mode determination unit 17d sets a slave in the fourth mode state holding unit 18d (step S1221).

これにより、ハートビート通信に障害が発生した場合に、先にマスタに遷移した第1系GWをそのままマスタにすることで、スプリットブレインが解消される。   As a result, when a failure occurs in heartbeat communication, the split brain can be eliminated by using the first system GW that has previously transitioned to the master as it is as the master.

以上の説明からわかるように本実施形態によれば、スプリットブレインを解消するときに論理IPの無駄な再割り当てが発生しないため、第2の実施形態に比べて、スプリットブレインを早く解消することが可能になる。   As can be seen from the above description, according to the present embodiment, when the split brain is eliminated, logical IP is not reassigned, so that the split brain can be eliminated earlier than in the second embodiment. It becomes possible.

[第4の実施形態]
本発明に係る通信装置の第4の実施形態について、図2および図13〜図15を用いて説明する。
[Fourth Embodiment]
A fourth embodiment of the communication apparatus according to the present invention will be described with reference to FIGS. 2 and 13 to 15.

図13は、本実施形態の通信装置の構成を示すブロック図である。図14は、図13のGW間の転送設定を自動設定する手順の概要を示すフローチャートである。図15は、本実施形態のパケット転送手順の概要を示すフローチャートである。   FIG. 13 is a block diagram showing the configuration of the communication apparatus of this embodiment. FIG. 14 is a flowchart showing an outline of a procedure for automatically setting transfer settings between GWs in FIG. 13. FIG. 15 is a flowchart showing an outline of the packet transfer procedure of the present embodiment.

なお、本実施形態は、第1の実施形態の変形例であって、第1の実施形態と同一部分または類似部分には、同一符号を付して、重複説明を省略する。また、本実施形態の通信装置は、図2と同様のネットワークシステムを構成している。   In addition, this embodiment is a modification of 1st Embodiment, Comprising: The same code | symbol is attached | subjected to the same part or similar part as 1st Embodiment, and duplication description is abbreviate | omitted. In addition, the communication apparatus according to the present embodiment forms a network system similar to that shown in FIG.

本実施形態では、図1の第1の実施形態に加えて、第1系ローカルネットGW装置1a、第1系インターネットGW装置2b、第2系ローカルネットGW装置3c、および第2系インターネットGW装置4dそれぞれは、第1のGW間転送設定通知部25a、第2のGW間転送設定通知部25b、第3のGW間転送設定通知部25c、および第4のGW間転送設定通知部25dを有している。   In the present embodiment, in addition to the first embodiment of FIG. 1, the first system local net GW apparatus 1a, the first system Internet GW apparatus 2b, the second system local net GW apparatus 3c, and the second system Internet GW apparatus. Each of 4d has a first inter-GW transfer setting notification unit 25a, a second inter-GW transfer setting notification unit 25b, a third inter-GW transfer setting notification unit 25c, and a fourth inter-GW transfer setting notification unit 25d. is doing.

さらに、第1系インターネットGW装置2bおよび第2系インターネットGW装置4dそれぞれには、第2の転送設定監視部26bおよび第4の転送設定監視部26dが設けられている。   Furthermore, a second transfer setting monitoring unit 26b and a fourth transfer setting monitoring unit 26d are provided in each of the first internet GW device 2b and the second internet GW device 4d.

第1のGW間転送設定通知部25aは、第1系ローカルネットGW装置1aで第1の転送可能パケット設定部11aの転送設定を、第1系用非IP通信路22aを経由して第1系インターネットGW装置2bに通知する機能を有する。   The first inter-GW transfer setting notification unit 25a sets the transfer setting of the first transferable packet setting unit 11a in the first system local net GW apparatus 1a via the first system non-IP communication path 22a. A function of notifying the system Internet GW apparatus 2b.

第2のGW間転送設定通知部25bは、第1系ローカルネットGW装置1aから受け取った転送設定を第2の転送可能パケット設定部11bに入力する機能を有する。また、第2のGW間転送設定通知部25bは、第2の転送可能パケット設定部11bから取得した転送設定を、異なるローカルネットワーク、例えば第2ローカルネット302に属する第1系インターネットGW装置2bに送信する機能を有する。   The second inter-GW transfer setting notification unit 25b has a function of inputting the transfer setting received from the first system local net GW apparatus 1a to the second transferable packet setting unit 11b. Also, the second inter-GW transfer setting notification unit 25b transfers the transfer setting acquired from the second transferable packet setting unit 11b to a different local network, for example, the first Internet GW apparatus 2b belonging to the second local net 302. It has a function to transmit.

第2ローカルネット302用の第1系インターネットGW装置2b内の第2のGW間転送設定通知部25bは、送信されてきた転送設定を第2の転送可能パケット設定部11bに入力する機能を有する。   The second inter-GW transfer setting notification unit 25b in the first-system Internet GW device 2b for the second local net 302 has a function of inputting the transmitted transfer setting to the second transferable packet setting unit 11b. .

第2の転送設定監視部26bは、第2の転送可能パケット設定部11bに転送設定を保存する機能を有する。   The second transfer setting monitoring unit 26b has a function of storing transfer settings in the second transferable packet setting unit 11b.

第2系GW装置6についても、第3および第4のGW間転送設定通知部25d、並びに第4の転送設定監視部26dは、第1系GW装置5と同様の機能を有している。   Also for the second system GW device 6, the third and fourth inter-GW transfer setting notification unit 25 d and the fourth transfer setting monitoring unit 26 d have the same functions as the first system GW device 5.

次に、本実施形態の通信装置の作用について、通常時の動作を説明する。   Next, the normal operation of the communication device according to the present embodiment will be described.

先ず、第1ローカルネット301用の第1系ローカルネットGW装置1a内の第1の転送可能パケット設定部11a、および、第2ローカルネット302用の第1系ローカルネットGW装置1a内の第1の転送可能パケット設定部11aそれぞれで、パケット転送設定を保存する(ステップS1401、S1406)。なお、図14では、マスタのGWにおけるフローチャートを示しているため、第1系および第2系を区別していない。2重系を構成する場合、第1系および第2系それぞれにパケット転送設定を保存するとよい。   First, the first transferable packet setting unit 11a in the first system local net GW apparatus 1a for the first local net 301 and the first in the first system local net GW apparatus 1a for the second local net 302 are shown. Each of the transferable packet setting units 11a stores the packet transfer setting (steps S1401 and S1406). In addition, in FIG. 14, since the flowchart in GW of a master is shown, the 1st system and the 2nd system are not distinguished. When configuring a dual system, it is preferable to store packet transfer settings in the first system and the second system, respectively.

第1ローカルネット301用の第1系ローカルネットGW装置1a内の第1のGW間転送設定通知部25aは、第1の転送可能パケット設定部11aから転送設定を取得して、第1系用非IP通信路22aを経由して第1系インターネットGW装置2bに通知する(ステップS1402)。   The first inter-GW transfer setting notifying unit 25a in the first system local net GW device 1a for the first local net 301 acquires the transfer setting from the first transferable packet setting unit 11a and uses the first system. The first system GW apparatus 2b is notified via the non-IP communication path 22a (step S1402).

第1系インターネットGW装置2b内の第2のGW間転送設定通知部25bは、第1系ローカルネットGW装置1aから転送設定を受け取って、第2の転送設定監視部26bに渡す(ステップS1403)。この第2の転送設定監視部26bは、第2の転送可能パケット設定部11bに転送設定を保存する(ステップS1405)。   The second inter-GW transfer setting notification unit 25b in the first-system Internet GW apparatus 2b receives the transfer setting from the first-system local net GW apparatus 1a and passes it to the second transfer setting monitoring unit 26b (step S1403). . The second transfer setting monitoring unit 26b stores the transfer setting in the second transferable packet setting unit 11b (step S1405).

第2ローカルネット302用の第1系インターネットGW装置2b内の第2の転送設定監視部26bは、第1ローカルネット301用の第1系インターネットGW装置2bから通知された転送設定を受け取って(ステップS1407)、第2の転送可能パケット設定部11bに転送設定を保存する(ステップS1408)。   The second transfer setting monitoring unit 26b in the first system Internet GW apparatus 2b for the second local net 302 receives the transfer setting notified from the first system Internet GW apparatus 2b for the first local net 301 ( In step S1407), the transfer setting is stored in the second transferable packet setting unit 11b (step S1408).

これにより、例えば第1ローカルネット301用のインターネットGWから、どのインターネットGWに送信すればよいか自動で認識される。   Thereby, for example, the Internet GW for the first local network 301 is automatically recognized as to which Internet GW should be transmitted.

図15の例では、第1の実施形態の図3の例と同様に、第1ローカルネット301内の第1計算機101から、第2ローカルネット302内の第2計算機102にパケット転送を行う。図3の例では、各GW装置で転送設定を保存している(ステップS301〜S304)が、本実施形態では、これらのステップを行うことなくパケットを転送できる。   In the example of FIG. 15, packet transfer is performed from the first computer 101 in the first local net 301 to the second computer 102 in the second local net 302 as in the example of FIG. 3 of the first embodiment. In the example of FIG. 3, transfer settings are stored in each GW device (steps S301 to S304). However, in this embodiment, packets can be transferred without performing these steps.

以上の説明からわかるように本実施形態によれば、1つのローカルネットGWの転送設定を、複数のインターネットGW間で共有できる。これにより、ローカルネットGWから転送されたパケットを、どのインターネットGWに転送すべきかを予め認識しておくことができ、使用者はローカルネット間でのパケットの送受信についてのみ意識するだけでよい。   As can be seen from the above description, according to the present embodiment, the transfer setting of one local net GW can be shared among a plurality of Internet GWs. Thereby, it is possible to recognize in advance which Internet GW the packet transferred from the local network GW should be transferred to, and the user only needs to be aware of the transmission / reception of the packet between the local networks.

また、別のローカルネットが追加された場合でも、インターネットGW間の転送設定を自動的に認識することで、広域網を利用したネットワーク構成の変更にも柔軟に対応することができる。   Even when another local network is added, it is possible to flexibly cope with a change in the network configuration using the wide area network by automatically recognizing the transfer setting between the Internet GWs.

[その他の実施形態]
上記実施形態の説明は、本発明を説明するための例示であって、特許請求の範囲に記載の発明を限定するものではない。また、本発明の各部構成は上記実施形態に限らず、特許請求の範囲に記載の技術的範囲内で種々の変形が可能である。
[Other Embodiments]
The description of the above embodiment is an example for explaining the present invention, and does not limit the invention described in the claims. Moreover, each part structure of this invention is not restricted to the said embodiment, A various deformation | transformation is possible within the technical scope as described in a claim.

例えば、論理IPアドレス設定解除部が、モード判定部から取得したモードが、マスタの場合だけでなく、スレーブの場合にも論理IPアドレスを設定してもよい。   For example, the logical IP address setting cancellation unit may set the logical IP address not only when the mode acquired from the mode determination unit is a master but also when the mode is a slave.

例えば、図4の論理IPアドレスを切り替える手順で、第1系GW装置5をスレーブに設定したとき(ステップS424)、論理IPアドレスを解除せずに、新たな論理IPアドレスを設定する。これにより、論理IPアドレスにより回線種別の特定を行うことができる。   For example, when the first GW apparatus 5 is set as a slave in the procedure of switching the logical IP address in FIG. 4 (step S424), a new logical IP address is set without releasing the logical IP address. As a result, the line type can be specified by the logical IP address.

マスターモードに対する論理IPアドレスだけでなく、スレーブモードに対する論理IPアドレスも自動で切り替えることで、メイン回線と独立した経路でのデータの伝送をでき、メイン回線の負荷に関係なく通信品質を一定にすることができる。   By automatically switching not only the logical IP address for the master mode but also the logical IP address for the slave mode, data can be transmitted through a route independent of the main line, and the communication quality is constant regardless of the load on the main line. be able to.

すなわち、マスタに対する論理IPアドレスだけでなく、スレーブに対する論理IPアドレスも自動で切り替えることで、メイン回線とは別に独立した経路でデータを伝送でき、メイン回線の負荷に関係なく通信品質を一定にすることが可能になる。   In other words, not only the logical IP address for the master but also the logical IP address for the slave is automatically switched, so that data can be transmitted through a route independent of the main line, and the communication quality is constant regardless of the load on the main line. It becomes possible.

1a…第1系ローカルネットGW装置、2b…第1系インターネットGW装置、3c…第2系ローカルネットGW装置、4d…第2系インターネットGW装置、5…第1系GW装置、6…第2系GW装置、11a…第1の転送可能パケット設定部、11b…第2の転送可能パケット設定部、11c…第3の転送可能パケット設定部、11d…第4の転送可能パケット設定部、12a…第1のIP送受信部、12b…第2のIP送受信部、12c…第3のIP送受信部、12d…第4のIP送受信部、13a…第1の非IP送受信部、13b…第2の非IP送受信部、13c…第3の非IP送受信部、13d…第4の非IP送受信部、14a…第1の論理IPアドレス設定解除部、14c…第3の論理IPアドレス設定解除部、15a…第1のGW間モード監視部、15b…第2のGW間モード監視部、15c…第3のGW間モード監視部、15d…第4のGW間モード監視部、16a…第1の2系間モード監視部、16b…第2の2系間モード監視部、16c…第3の2系間モード監視部、16d…第4の2系間モード監視部、17a…第1のモード判定部、17b…第2のモード判定部、17c…第3のモード判定部、17d…第4のモード判定部、18a…第1のモード状態保持部、18b…第2のモード状態保持部、18c…第3のモード状態保持部、18d…第4のモード状態保持部、19b…第2の系内モード監視部、19d…第4の系内モード監視部、20a…第1のLANポート、20b…第2のLANポート、20c…第3のLANポート、20d…第4のLANポート、21a…第1の2系間モード監視ポート、21b…第2の2系間モード監視ポート、21c…第3の2系間モード監視ポート、21d…第4の2系間モード監視ポート、22a…第1系用非IP通信路、22c…第2系用非IP通信路、23a…第1のスプリットブレイン復旧設定部、23c…第3のスプリットブレイン復旧設定部、24a…第1のマスタ遷移時刻設定部、24c…第3のマスタ遷移時刻設定部、25a…第1のGW間転送設定通知部、25b…第2のGW間転送設定通知部、25c…第3のGW間転送設定通知部、25d…第4のGW間転送設定通知部、26b…第2の転送設定監視部、26d…第4の転送設定監視部、301…第1ローカルネット、302…第2ローカルネット、303…第3ローカルネット、304…インターネット、101…第1計算機、102…第2計算機、103…第3計算機   DESCRIPTION OF SYMBOLS 1a ... 1st system local net GW apparatus, 2b ... 1st system internet GW apparatus, 3c ... 2nd system local net GW apparatus, 4d ... 2nd system internet GW apparatus, 5 ... 1st system GW apparatus, 6 ... 2nd System GW apparatus, 11a ... first transferable packet setting unit, 11b ... second transferable packet setting unit, 11c ... third transferable packet setting unit, 11d ... fourth transferable packet setting unit, 12a ... 1st IP transmission / reception part, 12b ... 2nd IP transmission / reception part, 12c ... 3rd IP transmission / reception part, 12d ... 4th IP transmission / reception part, 13a ... 1st non-IP transmission / reception part, 13b ... 2nd non- IP transmitting / receiving unit, 13c ... third non-IP transmitting / receiving unit, 13d ... fourth non-IP transmitting / receiving unit, 14a ... first logical IP address setting canceling unit, 14c ... third logical IP address setting canceling unit, 15a ... First Inter-W mode monitoring unit, 15b ... second inter-GW mode monitoring unit, 15c ... third inter-GW mode monitoring unit, 15d ... fourth inter-GW mode monitoring unit, 16a ... first inter-two-mode monitoring unit , 16b: second inter-system mode monitoring unit, 16c: third inter-system mode monitoring unit, 16d: fourth inter-system mode monitoring unit, 17a: first mode determination unit, 17b: second Mode determining unit, 17c ... third mode determining unit, 17d ... fourth mode determining unit, 18a ... first mode state holding unit, 18b ... second mode state holding unit, 18c ... third mode state Holding unit, 18d ... fourth mode state holding unit, 19b ... second in-system mode monitoring unit, 19d ... fourth in-system mode monitoring unit, 20a ... first LAN port, 20b ... second LAN port 20c ... third LAN port, 20d ... fourth LAN 21a... First 2 system mode monitoring port, 21b. 2nd 2 system mode monitoring port, 21c. 3rd 2 system mode monitoring port, 21d. 4th 2 system mode monitoring port 22a ... non-IP communication path for the first system, 22c ... non-IP communication path for the second system, 23a ... first split brain recovery setting section, 23c ... third split brain recovery setting section, 24a ... first Master transition time setting unit, 24c ... third master transition time setting unit, 25a ... first inter-GW transfer setting notification unit, 25b ... second inter-GW transfer setting notification unit, 25c ... third inter-GW transfer setting Notifying unit, 25d ... fourth inter-GW transfer setting notifying unit, 26b ... second transfer setting monitoring unit, 26d ... fourth transfer setting monitoring unit, 301 ... first local net, 302 ... second local net, 303 ... the third local net, 304 ... Internet, 101 ... 1st computer, 102 ... 2nd computer, 103 ... 3rd computer

Claims (2)

複数の構内通信網同士を、広域網を介して接続する通信装置であって、
前記各構内通信網それぞれには、前記各構内通信網それぞれとIP通信可能な構内通信網用ゲートウェイが接続されて、
記構内通信網用ゲートウェイそれぞれには、前記構内通信網用ゲートウェイそれぞれと非IP通信手段により互いに通信可能に構成された広域網用ゲートウェイが接続されて、
記構内通信網用ゲートウェイは、互いに正常に稼動しているか否かを知らせるハートビート信号を送受信可能で互いの状態を監視可能な第1系構内通信網用ゲートウェイおよび第2系構内通信網用ゲートウェイを含み、
記広域網用ゲートウェイは、互いに前記ハートビート信号を送受信可能で互いの状態を監視可能な第1系広域網用ゲートウェイおよび第2系広域網用ゲートウェイを含み、
前記各構内通信網に接続された前記各第1系構内通信網用ゲートウェイそれぞれは、前記非IP通信手段によってそれぞれの前記第1系広域網用ゲートウェイと通信可能に構成されて、
前記各構内通信網に接続された前記各第2系構内通信網用ゲートウェイそれぞれは、前記非IP通信手段によってそれぞれの前記第2系広域網用ゲートウェイと通信可能に構成されて、
前記第1系構内通信網用ゲートウェイ、第1系広域網用ゲートウェイ、第2系構内通信網用ゲートウェイ、および第2系広域網用ゲートウェイそれぞれは、
前記広域網または構内通信網と、IPパケットのデータ信号を送受信可能なIP送受信部と、
前記非IP通信手段を介して前記IP送受信部と予め設定された所定の信号情報を互いに送受信可能に構成された非IP送受信部と、
前記所定の信号情報の設定情報を予め設定可能に構成された転送可能パケット設定部と、
同じ構内通信網に接続された前記第1系および第2系構内通信網用ゲートウェイ同士またはこれらに対応する前記第1系および第2系広域網用ゲートウェイ同士を、互いのモードがマスタかスレーブかを通知および把握するように構成された2系間モード監視部と、
同じ構内通信網に接続された前記第1系および第2系構内通信網用ゲートウェイと、これらに対応する前記第1系および第2系広域網用ゲートウェイとを、互いに前記非IP通信手段を介して互いの前記モードの状態を通知および把握するように構成されたゲートウェイ間モード監視部と、
前記各第1系広域網用ゲートウェイ同士または前記各第2系広域網用ゲートウェイ同士で、前記モードの状態を通知および把握するように構成された系内モード監視部と、
前記2系間モード監視部およびゲートウェイ間モード監視部それぞれが監視した結果が入力されて、前記第1系構内通信網用ゲートウェイ、第1系広域網用ゲートウェイ、第2系構内通信網用ゲートウェイ、および第2系広域網用ゲートウェイそれぞれの前記モードが、互いの前記モードの状態と比較しながら、所定の前記モードに決定されるように構成されたモード判定部と、
前記モード判定部で決定した前記モードの状態を保持するモード状態保持部と、
を有し、
前記第1系および第2系構内通信網用ゲートウェイそれぞれは、
前記第1系および第2系構内通信網用ゲートウェイが同じときにマスタになるスプリットブレインを復旧するときに、前記第1系および第2系構内通信網用ゲートウェイのどちらをマスタにするかを決めるための優先情報が予め入力されたスプリットブレイン復旧設定部を有し、
前記第1系および第2系構内通信網用ゲートウェイそれぞれの前記2系間モード監視部が、互いに送受信している前記ハートビート信号が途絶えたときに、それぞれが互いに停止していると判定し、
前記第1系および第2系構内通信網用ゲートウェイそれぞれの前記モード判定部が、前記第1系および第2系構内通信網用ゲートウェイそれぞれがマスタになった後に、前記ハートビート信号が復旧し、それぞれの前記2系間モード監視部が互いにマスタになったと判定した場合に、
前記第1系および第2系構内通信網用ゲートウェイそれぞれのモード判定部が、それぞれの前記スプリットブレイン復旧設定部から、前記優先情報を取得して、前記優先情報を互いに比較して、優先度の高い方はマスタを維持して、優先度の低い方はスレーブに遷移するように構成されていることを特徴とする通信装置。
A communication device for connecting a plurality of local communication networks via a wide area network,
Each of the local communication networks is connected with a gateway for the local communication network capable of IP communication with each of the local communication networks.
Each gateway before Ki構 communication network, is connected communicatively configured gateway for wide area network to each other by the gateway respectively and non-IP communication means for the front Ki構 communication network,
Before gateway for Ki構 communication network, the first system local network gateway and the second system local network capable monitor the state of each other can transmit and receive heartbeat signal indicating whether operating normally with each other Including gateway for
Before gateway for Kihiro area network includes a gateway and a second system gateway for the wide area network for the first system wide area network capable of monitoring each other's states are capable of transmitting and receiving the heartbeat signal to each other,
Each of the first local area communication network gateways connected to each of the local area communication networks is configured to be able to communicate with the respective first area wide area network gateway by the non-IP communication means.
Each of the second-system local network gateways connected to the respective local-network networks is configured to be able to communicate with the respective second-system wide-area network gateways by the non-IP communication means.
Each of the first system local area communication network gateway, the first system wide area network gateway, the second system local area communication network gateway, and the second system wide area network gateway,
An IP transmission / reception unit capable of transmitting / receiving an IP packet data signal to / from the wide area network or a private network
A non-IP transmission / reception unit configured to be able to transmit / receive predetermined signal information to / from the IP transmission / reception unit via the non-IP communication unit;
A transferable packet setting unit configured to be able to set the setting information of the predetermined signal information in advance;
Whether the first system and the second system wide area network gateways connected to the same local area communication network or the corresponding first system and second system wide area network gateways are in either mode master or slave. A two-system mode monitoring unit configured to notify and grasp
The first-system and second-system local area network gateways connected to the same local-area communication network and the corresponding first-system and second-system wide-area network gateways are connected to each other via the non-IP communication means. An inter-gateway mode monitoring unit configured to notify and grasp each other's mode status;
An intra-system mode monitoring unit configured to notify and grasp the state of the mode between the first system wide area network gateways or between the second system wide area network gateways;
The results monitored by each of the two-system mode monitoring unit and the inter-gateway mode monitoring unit are input, and the first system local area network gateway, the first system wide area network gateway, the second system local area network gateway, And a mode determination unit configured to determine the mode of each of the gateways for the second system wide area network to the predetermined mode while comparing with the state of the mode of each other,
A mode state holding unit that holds the state of the mode determined by the mode determination unit;
I have a,
Each of the first system and second system local area communication network gateways,
Decide which of the first system and second system local communication network gateway should be the master when restoring the split brain that becomes the master when the first system and second system local communication network gateway is the same A split-brain recovery setting unit in which priority information is input in advance,
When the heartbeat signals transmitted and received by the second system mode monitoring unit of each of the first system and second system local area communication network gateways are determined to be stopped,
After the mode determination unit of each of the first-system and second-system local area communication network gateways becomes the master for each of the first-system and second-system local area network gateways, the heartbeat signal is restored, When it is determined that the two inter-system mode monitoring units have become masters of each other,
The mode determination unit of each of the first-system and second-system local area communication network gateways obtains the priority information from the split-brain recovery setting unit, compares the priority information with each other, A communication apparatus configured to maintain a master at a higher level and to transition to a slave at a lower priority level .
複数の構内通信網同士を、広域網を介して接続する通信装置であって、
前記各構内通信網それぞれには、前記各構内通信網それぞれとIP通信可能な構内通信網用ゲートウェイが接続されて、
記構内通信網用ゲートウェイそれぞれには、前記構内通信網用ゲートウェイそれぞれと非IP通信手段により互いに通信可能に構成された広域網用ゲートウェイが接続されて、
記構内通信網用ゲートウェイは、互いに正常に稼動しているか否かを知らせるハートビート信号を送受信可能で互いの状態を監視可能な第1系構内通信網用ゲートウェイおよび第2系構内通信網用ゲートウェイを含み、
記広域網用ゲートウェイは、互いに前記ハートビート信号を送受信可能で互いの状態を監視可能な第1系広域網用ゲートウェイおよび第2系広域網用ゲートウェイを含み、
前記各構内通信網に接続された前記各第1系構内通信網用ゲートウェイそれぞれは、前記非IP通信手段によってそれぞれの前記第1系広域網用ゲートウェイと通信可能に構成されて、
前記各構内通信網に接続された前記各第2系構内通信網用ゲートウェイそれぞれは、前記非IP通信手段によってそれぞれの前記第2系広域網用ゲートウェイと通信可能に構成されて、
前記第1系構内通信網用ゲートウェイ、第1系広域網用ゲートウェイ、第2系構内通信網用ゲートウェイ、および第2系広域網用ゲートウェイそれぞれは、
前記広域網または構内通信網と、IPパケットのデータ信号を送受信可能なIP送受信部と、
前記非IP通信手段を介して前記IP送受信部と予め設定された所定の信号情報を互いに送受信可能に構成された非IP送受信部と、
前記所定の信号情報の設定情報を予め設定可能に構成された転送可能パケット設定部と、
同じ構内通信網に接続された前記第1系および第2系構内通信網用ゲートウェイ同士またはこれらに対応する前記第1系および第2系広域網用ゲートウェイ同士を、互いのモードがマスタかスレーブかを通知および把握するように構成された2系間モード監視部と、
同じ構内通信網に接続された前記第1系および第2系構内通信網用ゲートウェイと、これらに対応する前記第1系および第2系広域網用ゲートウェイとを、互いに前記非IP通信手段を介して互いの前記モードの状態を通知および把握するように構成されたゲートウェイ間モード監視部と、
前記各第1系広域網用ゲートウェイ同士または前記各第2系広域網用ゲートウェイ同士で、前記モードの状態を通知および把握するように構成された系内モード監視部と、
前記2系間モード監視部およびゲートウェイ間モード監視部それぞれが監視した結果が入力されて、前記第1系構内通信網用ゲートウェイ、第1系広域網用ゲートウェイ、第2系構内通信網用ゲートウェイ、および第2系広域網用ゲートウェイそれぞれの前記モードが、互いの前記モードの状態と比較しながら、所定の前記モードに決定されるように構成されたモード判定部と、
前記モード判定部で決定した前記モードの状態を保持するモード状態保持部と、
を有し、
前記第1系および第2系構内通信網用ゲートウェイそれぞれは、マスタに遷移した時刻情報を格納可能なマスタ遷移時刻設定部を有し、
前記第1系および第2系構内通信網用ゲートウェイそれぞれの前記2系間モード監視部が、互いに送受信している前記ハートビート信号が途絶えたときに、それぞれが互いに停止していると判定し、
前記第1系および第2系構内通信網用ゲートウェイそれぞれの前記モード判定部が、前記第1系および第2系構内通信網用ゲートウェイそれぞれがマスタになった後に、前記ハートビート信号が復旧し、それぞれの前記2系間モード監視部が互いにマスタになったと判定した場合に、
前記第1系および第2系構内通信網用ゲートウェイそれぞれのモード判定部は、それぞれの前記マスタ遷移時刻設定部から、それぞれがマスタに遷移した時刻を取得して、これらの時刻を互いに比較して、早い方はマスタを維持して、遅い方はスレーブに遷移するように構成されていることを特徴とする通信装置。
A communication device for connecting a plurality of local communication networks via a wide area network,
Each of the local communication networks is connected with a gateway for the local communication network capable of IP communication with each of the local communication networks.
Each gateway before Ki構 communication network, is connected communicatively configured gateway for wide area network to each other by the gateway respectively and non-IP communication means for the front Ki構 communication network,
Before gateway for Ki構 communication network, the first system local network gateway and the second system local network capable monitor the state of each other can transmit and receive heartbeat signal indicating whether operating normally with each other Including gateway for
Before gateway for Kihiro area network includes a gateway and a second system gateway for the wide area network for the first system wide area network capable of monitoring each other's states are capable of transmitting and receiving the heartbeat signal to each other,
Each of the first local area communication network gateways connected to each of the local area communication networks is configured to be able to communicate with the respective first area wide area network gateway by the non-IP communication means.
Each of the second-system local network gateways connected to the respective local-network networks is configured to be able to communicate with the respective second-system wide-area network gateways by the non-IP communication means.
Each of the first system local area communication network gateway, the first system wide area network gateway, the second system local area communication network gateway, and the second system wide area network gateway,
An IP transmission / reception unit capable of transmitting / receiving an IP packet data signal to / from the wide area network or a private network
A non-IP transmission / reception unit configured to be able to transmit / receive predetermined signal information to / from the IP transmission / reception unit via the non-IP communication unit;
A transferable packet setting unit configured to be able to set the setting information of the predetermined signal information in advance;
Whether the first system and the second system wide area network gateways connected to the same local area communication network or the corresponding first system and second system wide area network gateways are in either mode master or slave. A two-system mode monitoring unit configured to notify and grasp
The first-system and second-system local area network gateways connected to the same local-area communication network and the corresponding first-system and second-system wide-area network gateways are connected to each other via the non-IP communication means. An inter-gateway mode monitoring unit configured to notify and grasp each other's mode status;
An intra-system mode monitoring unit configured to notify and grasp the state of the mode between the first system wide area network gateways or between the second system wide area network gateways;
The results monitored by each of the two-system mode monitoring unit and the inter-gateway mode monitoring unit are input, and the first system local area network gateway, the first system wide area network gateway, the second system local area network gateway, And a mode determination unit configured to determine the mode of each of the gateways for the second system wide area network to the predetermined mode while comparing with the state of the mode of each other,
A mode state holding unit that holds the state of the mode determined by the mode determination unit;
I have a,
Each of the first-system and second-system local area communication network gateways has a master transition time setting unit capable of storing time information of transition to the master,
When the heartbeat signals transmitted and received by the second system mode monitoring unit of each of the first system and second system local area communication network gateways are determined to be stopped,
After the mode determination unit of each of the first-system and second-system local area communication network gateways becomes the master for each of the first-system and second-system local area network gateways, the heartbeat signal is restored, When it is determined that the two inter-system mode monitoring units have become masters of each other,
The mode determination unit of each of the gateways for the first system and the second system on-site communication network obtains the time when each transitioned to the master from the master transition time setting unit, and compares these times with each other. The communication apparatus is configured such that the earlier one maintains the master and the later one transitions to the slave .
JP2009022583A 2009-02-03 2009-02-03 Communication device Expired - Fee Related JP5072874B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009022583A JP5072874B2 (en) 2009-02-03 2009-02-03 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009022583A JP5072874B2 (en) 2009-02-03 2009-02-03 Communication device

Publications (2)

Publication Number Publication Date
JP2010183157A JP2010183157A (en) 2010-08-19
JP5072874B2 true JP5072874B2 (en) 2012-11-14

Family

ID=42764388

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009022583A Expired - Fee Related JP5072874B2 (en) 2009-02-03 2009-02-03 Communication device

Country Status (1)

Country Link
JP (1) JP5072874B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005130049A (en) * 2003-10-21 2005-05-19 Fujitsu Ltd Node
JP2006129094A (en) * 2004-10-28 2006-05-18 Fuji Xerox Co Ltd Redundant server system and server apparatus
JP4575219B2 (en) * 2005-04-12 2010-11-04 株式会社東芝 Security gateway system and method and program thereof

Also Published As

Publication number Publication date
JP2010183157A (en) 2010-08-19

Similar Documents

Publication Publication Date Title
TWI523455B (en) Relay servers, relay communication systems and routing machines
EP2717525A1 (en) Method, routing device and system for redundant backup of network device
EP2991278B1 (en) Method and system for managing network traffic
TWI551086B (en) Relay server and relay communication system
US9614749B2 (en) Data processing system and method for changing a transmission table
TWI527405B (en) Relay server and relay communication system
JP6222367B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
JP5621639B2 (en) Relay server and relay communication system
JP5072874B2 (en) Communication device
JP5874356B2 (en) Relay server and relay communication system
JP4363477B2 (en) Network system
JP2007251817A (en) Ring node device and ring node redundancy method
JP2008219679A (en) COMMUNICATION SYSTEM, IPsec TUNNEL TERMINING DEVICE, AND IPsec TURN COMMUNICATION CONTINUING METHOD USED FOR THEM
JP5347859B2 (en) Transmission system
JP5773205B2 (en) Relay server and relay communication system
JP2002171275A (en) Transmission device and remote control system
KR101740799B1 (en) Method of failover for network service in software defined networking environment
JP2006338374A (en) Network connection management device and network connection management method
JP6468759B2 (en) Transmission control system and transmission control apparatus used therefor
JP2015015672A (en) Command system
JP2013197888A (en) Information transmission device, information transmission system, and information transmission method
JP2011176713A (en) Communication system and communication method
JP6301762B2 (en) Relay system and switch device
JP2008199179A (en) Relief method in case of communication failure between layer 2 switch device and inter-card card
JP2007214746A (en) Duplex communication system

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20110421

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110705

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120510

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120515

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120711

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120821

R151 Written notification of patent or utility model registration

Ref document number: 5072874

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20150831

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees