JP5681297B2 - Relay backup device and relay control method - Google Patents
Relay backup device and relay control method Download PDFInfo
- Publication number
- JP5681297B2 JP5681297B2 JP2013544016A JP2013544016A JP5681297B2 JP 5681297 B2 JP5681297 B2 JP 5681297B2 JP 2013544016 A JP2013544016 A JP 2013544016A JP 2013544016 A JP2013544016 A JP 2013544016A JP 5681297 B2 JP5681297 B2 JP 5681297B2
- Authority
- JP
- Japan
- Prior art keywords
- message
- relay
- relay device
- backup
- client
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2046—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant where the redundant components share persistent storage
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2023—Failover techniques
- G06F11/2028—Failover techniques eliminating a faulty processor or activating a spare
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2038—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant with a single idle spare processing component
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Description
本発明は、TCP(Transmission Control Protocol)に代表されるように、通信を開始する場合にセッションを確立する通信において、セッションを中継する装置に関する。 The present invention relates to an apparatus for relaying a session in communication for establishing a session when communication is started, as represented by TCP (Transmission Control Protocol).
肥大化する各種データのグローバル環境における通信の高速転送のニーズに対し、TCPに代表されるような、通信の前段階においてセッション確立過程を有する通信において、セッションを中継するセッション中継装置を用いた高速通信技術によって、通信全体を高速化する通信技術が検討されている。 In response to the need for high-speed transfer of communications in the global environment of various data that is growing, high-speed using a session relay device that relays sessions in communications that have a session establishment process at the previous stage of communication, as represented by TCP A communication technology that speeds up the entire communication is being studied.
例えば、特許文献1では、適切なTCPセッションの継続及び切断に関して、中継装置が、セッション毎に実際に中継した電文パケットの電文長を記憶し、現用サーバ障害発生時には記憶された電文長と電文パケット内に含まれる電文長とを比較し、一致する場合は、当該セッションの中継先を待機サーバに切り替えてセッションを維持することが記載されている。
For example, in
従来のセッション中継装置は、障害が発生した場合、当該装置をバイパスすることによって回線の切断を回避して、IP(Internet Protocol)等の下位レイヤの通信を維持継続する。 When a failure occurs, the conventional session relay device bypasses the device by bypassing the device, and maintains communication of lower layers such as IP (Internet Protocol).
しかし、セッション中継装置は、通信の高速化のために送信側の装置(サーバ)への代理応答を行っており、セッション中継装置の障害による当該装置のバイパス後に、送信側の装置と受信側の装置との間でパケット送受信状態の不一致が発生する。このため、最終的にはセッションの切断、及び上位レイヤのアプリケーションによるセッションの再確立等が発生する。 However, the session relay device performs a proxy response to the transmission-side device (server) for speeding up communication, and after the bypass of the device due to a failure of the session relay device, the transmission-side device and the reception-side device A packet transmission / reception state mismatch occurs between the devices. For this reason, session disconnection and session re-establishment by an upper layer application eventually occur.
さらに、セッションの再確立後では、セッション中継装置の障害復旧まで、高速化された中継ができないため、障害復旧後に高速化を実現するためには、再度セッションを確立する必要がある。 Furthermore, after session re-establishment, high-speed relay cannot be performed until the failure of the session relay device is recovered. Therefore, in order to realize speed-up after failure recovery, it is necessary to re-establish the session.
例えば、上記の特許文献1に記載の発明では、記憶した電文長と電文パケット内に含まれる電文長とが一致しないセッションでは、中継装置によってクライアントへリセット信号が発行されるため、セッションの切断、再確立が発生する。
For example, in the invention described in
データセンタ間のバックアップ等などの大量のデータの転送中に、セッション中継装置に障害が発生した場合、セッションの再確立や当該セッションを介した通信の高速化が実現できないため、決められた時間内にデータ転送が終了しないという問題が発生する。 If a failure occurs in the session relay device during the transfer of a large amount of data such as backup between data centers, the session cannot be re-established or the communication speed through the session cannot be increased. This causes a problem that data transfer does not end.
前述した問題を解決する方法として、セッション中継装置を冗長化させる方法が考えられる。具体的には、現用系のセッション中継装置と待機系のセッション中継装置との間でセッションの状態を常に同期し、現用系のセッション中継装置に障害が発生した時に、待機系のセッション中継装置に切り替えることによってセッションを維持させる。 As a method of solving the above-described problem, a method of making the session relay device redundant can be considered. Specifically, the session state is always synchronized between the active session relay device and the standby session relay device, and when a failure occurs in the active session relay device, the standby session relay device Keep the session by switching.
しかし、前述した方法では、セッションの状態同期、障害検出等の機能が必要となり、高コストのシステムを構築する必要がある。また、単に、状態を同期させただけでは、現用系の中継装置から削除された情報は、待機系の中継装置からも削除されるため、障害復旧に必要なデータを失うことになる。 However, the method described above requires functions such as session state synchronization and failure detection, and it is necessary to construct a high-cost system. Further, if the state is simply synchronized, the information deleted from the active relay device is also deleted from the standby relay device, so that data necessary for failure recovery is lost.
本発明は前述した課題に鑑みてなされた発明である。 The present invention has been made in view of the above-described problems.
本願において開示される発明の代表的な一例を示せば以下の通りである。すなわち、クライアントとサーバとの間の通信を中継する中継装置の障害発生時に、前記通信を中継する中継バックアップ装置であって、前記サーバと前記中継装置との間の通信を中継するように接続され、前記中継装置を介して前記クライアントと通信し、メッセージを送受信する通信部と、受信した前記メッセージを中継する中継処理部と、前記受信したメッセージが前記中継装置から受信したメッセージであるか否かを判定することによって、前記中継装置の障害を検出する障害検出部と、前記受信したメッセージを蓄積するメッセージ蓄積部と、を備え、前記障害検出部は、前記受信したメッセージがデータ送信に対する前記クライアントからの応答メッセージであるか否かを判定し、前記受信したメッセージが前記応答メッセージであると判定された場合に、前記応答メッセージが前記中継装置から送信された応答メッセージであるか否かを判定し、前記応答メッセージが前記中継装置から送信された応答メッセージでないと判定された場合に、前記中継装置の障害として検出し、前記中継装置の障害が検出された場合に、前記中継装置を介した前記メッセージの中継処理を実行する通常モードから、障害が発生した前記中継装置をバイパスして前記サーバと前記クライアントとの間の前記メッセージの中継処理を実行するバックアップモードに切り替え、前記中継装置から前記クライアントに中継されていない前記メッセージを特定し、前記特定されたメッセージを前記メッセージ蓄積部から取得し、前記取得されたメッセージを前記クライアントに送信することによって前記メッセージの中継を継続することを特徴とする。 A typical example of the invention disclosed in the present application is as follows. That is, when a failure occurs in the relay apparatus for relaying communication between a client and a server, a relay backup device for relaying the communication, which is connected to relay communications between the server and the relay device A communication unit that communicates with the client via the relay device and transmits / receives a message; a relay processing unit that relays the received message; and whether the received message is a message received from the relay device A failure detection unit that detects a failure of the relay device by determining a message, and a message storage unit that stores the received message , wherein the failure detection unit includes the client that receives the message for data transmission. Whether the received message is the response message or not. When it is determined that the response message is a response message transmitted from the relay device, it is determined that the response message is not a response message transmitted from the relay device. When the failure of the relay device is detected and the failure of the relay device is detected, the relay device in which the failure has occurred is bypassed from the normal mode in which the relay process of the message via the relay device is performed. Switching to a backup mode for executing relay processing of the message between the server and the client , specifying the message not relayed from the relay device to the client, and storing the specified message in the message storage unit And sending the acquired message to the client. Characterized by continuing to relay the message Te.
本発明によれば、中継装置に障害が発生した場合に、通信の切断を発生させず、さらに通信の中継を継続することができる。 According to the present invention, when a failure occurs in the relay device, it is possible to continue communication relay without causing disconnection of communication.
以下、図面を参照して本発明の実施形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の実施形態におけるネットワークシステムの構成を示す説明図である。 FIG. 1 is an explanatory diagram showing a configuration of a network system in an embodiment of the present invention.
図1に示すように、ネットワークシステムは、セッション中継バックアップ装置101、サーバ104、クライアント105、セッション中継装置121、対向セッション中継装置122、及びルータ131、132から構成される。
As shown in FIG. 1, the network system includes a session
メッセージ送信側のルータ131には、サーバ104、セッション中継装置121及びセッション中継バックアップ装置101が接続され、メッセージ受信側のルータ132には、クライアント105及び対向セッション中継装置122が接続される。ルータ131とルータ132との間はWAN(Wide Area Network)106を介して接続される。
The
セッション中継装置121は、サーバ104とクライアント105との間のセッションを介した通信の高速化を実現する装置である。なお、セッション中継装置121は、公知のため説明を省略する。
The
セッション中継バックアップ装置101は、セッション中継装置121に障害が発生した場合に、セッション中継装置121の代わりに、サーバ104とクライアント105との間の通信を中継する装置である。
The session
図2は、本発明の実施形態におけるセッション中継バックアップ装置101の内部構成を示すブロック図である。
FIG. 2 is a block diagram showing an internal configuration of the session
セッション中継バックアップ装置101は、通信部201、中継先切替部202、メッセージ蓄積部203、障害検出部204、DB205、LAN側セッション中継処理部206、WAN側セッション中継処理部207、及び動作モード208を備える。
The session
通信部201は、ルータ131を介して他の装置との間のメッセージを送受信する。また、通信部201は、メッセージを送受信する装置毎に、中継先切替部202と障害検知部204との間におけるメッセージの送受信先を振り分ける。
The
具体的には、サーバ104との間で送受信されるメッセージは中継先切替部202に振り分けられ、セッション中継装置121又は対向セッション中継装置122との間で送受信されるメッセージは障害検知部204に振り分けられる。
Specifically, a message transmitted / received to / from the
動作モード208は、セッション中継バックアップ装置101の動作モードを示す情報を格納する。動作モードには、障害が発生していない通常時の動作である通常モードと、セッション中継装置121に障害が発生した場合の動作であるバックアップモードとの2つのモードがある。
The
中継先切替部202は、通信部201から入力されたメッセージをLAN側セッション中継処理部206又はメッセージ蓄積部203に出力する。また、中継先切替部202は、LAN側セッション中継処理部206、メッセージ蓄積部203及び障害検出部204から入力されたメッセージを通信部201に出力する。
The relay
通信部201から入力されたメッセージの出力先は、動作モード208に格納される情報に基づいて決定される。具体的には、動作モード208に通常モードを示す情報が格納されている場合、メッセージはメッセージ蓄積部203に出力され、動作モード208にバックアップモードを示す情報が格納されている場合、メッセージはLAN側セッション中継処理部206に出力される。
The output destination of the message input from the
なお、通常モードの場合に、メッセージ蓄積部203に出力されたメッセージは、さらに、障害検出部204へも出力される。ただし、中継先切替部202は、入力されたメッセージを直接障害検出部204に出力してもよい。
In the normal mode, the message output to the
メッセージ蓄積部203は、中継先切替部202から入力されたメッセージをDB205に蓄積し、また、障害発生時にDB205に蓄積されたメッセージを障害検出部204に出力する。
The
障害検出部204は、通信部201から入力されたメッセージをWAN側セッション中継処理部207又はメッセージ蓄積部203に出力する。また、障害検出部204は、WAN側セッション中継処理部207、メッセージ蓄積部203及び中継先切替部202から入力されたメッセージを通信部201に出力する。
The
通信部201から入力されたメッセージの出力先は、動作モード208に格納される情報に基づいて決定される。具体的には、動作モード208に通常モードを示す情報が格納されている場合、メッセージはメッセージ蓄積部203に出力され、動作モード208にバックアップモードを示す情報が格納されている場合、メッセージはWAN側セッション中継処理部207に出力される。
The output destination of the message input from the
なお、通常モードの場合に、メッセージ蓄積部203に出力されたメッセージは、さらに、中継先切替部202へも出力される。ただし、障害検出部204は、入力されたメッセージを直接中継先切替部202に出力してもよい。
In the normal mode, the message output to the
また、障害検出部204は、通信部201から入力されたackメッセージに基づいて、セッション中継装置121に障害が発生しているか否かを判定する。障害の発生が検出された場合、障害検出部204は、動作モード208に格納される情報を、通常モードを示す情報からバックアップモードを示す情報に書き換える。
Further, the
DB205は、サーバ104からクライアント105へ送信されたメッセージを蓄積するためのデータベースである。DB205には、セッション毎に、メッセージ管理テーブル500(図3参照)が格納される。なお、メッセージ管理テーブル500の詳細は、図3を用いて後述する。
The
LAN側セッション中継処理部206は、セッション中継装置121がサーバ104との間で行う処理と同等の機能を有する。具体的には、LAN側セッション中継処理部206は、サーバ104からメッセージを受信する機能と、受信したメッセージをDB205に登録する機能と、サーバ104に対するackメッセージを生成し、生成されたackメッセージを送信する機能と、サーバ104との間のセッション状態を管理する機能と、サーバ104との間のセッション状態の変化をWAN側セッション中継処理部207に通知する機能とを有する。
The LAN-side session
WAN側セッション中継処理部207は、セッション中継装置121が対向セッション中継装置122との間で行う処理と同等の機能を有する。具体的には、WAN側セッション中継処理部207は、DB205から登録されたメッセージを取得する機能と、取得されたメッセージに基づいてセッション中継用のメッセージを生成し、生成された中継用のメッセージを対向セッション中継装置122に送信する機能と、対向セッション中継装置122からセッション中継用のackメッセージを受信する機能と、対向セッション中継装置122との間のセッション状態を管理する機能とを有する。
The WAN-side session
なお、各構成部は、ソフトウェアとして実現してもよいし、ハードウェアとして実現してもよい。ソフトウェアとして実現される場合には、セッション中継バックアップ装置101がプロセッサ、メモリ、及びネットワークインタフェースを備え、プロセッサがメモリに格納されるプログラムを実行することによって各構成部の機能を実現する。ハードウェアとして実現する場合には、セッション中継バックアップ装置101が個々の構成部の機能を有する専用のハードウェアを備え、各ハードウェアを結線することによって実現する。
Each constituent unit may be realized as software or hardware. When implemented as software, the session
図3は、本発明の実施形態におけるDB205に格納されるメッセージ管理テーブル500の一例を示す説明図である。
FIG. 3 is an explanatory diagram illustrating an example of the message management table 500 stored in the
メッセージ管理テーブル500は、サーバ104とクライアント105との間で送受信されたメッセージを蓄積する。具体的には、メッセージ管理テーブル500は、メッセージID501、メッセージ内容502及びフラグ503を含む。
The message management table 500 stores messages transmitted and received between the
メッセージID501は、メッセージを識別するための識別子を格納する。例えば、TCPの場合は、シーケンス番号がメッセージIDに相当する。メッセージ内容502は、メッセージID501に対応するメッセージの内容を格納する。
The
フラグ503は、メッセージID501に対応するメッセージが実際にセッション中継装置121から送信されたか否かを示す情報を格納する。本実施形態では、セッション中継装置121から実際に送信された場合、フラグ503には「1」が格納され、セッション中継装置121から実際に送信されていない場合、フラグ503には「0」が格納される。
The
なお、セッション中継装置121からメッセージが送信されたか否かを判定する方法としては、クライアント105側から送信されるackメッセージに基づいて判定される。
Note that a method for determining whether or not a message is transmitted from the
図4は、本発明の実施形態における各装置間のメッセージの送受信処理を示すシーケンス図である。 FIG. 4 is a sequence diagram showing message transmission / reception processing between the devices in the embodiment of the present invention.
本実施形態では、図4に示すように、サーバ104とセッション中継装置121との間にセッション中継バックアップ装置101が接続される。したがって、セッション中継バックアップ装置101は、サーバ104とセッション中継装置121との間のメッセージを中継する。なお、サーバ104、セッション中継バックアップ装置101及びセッション中継装置121はTCPを利用した通信によって互いに通信することができる。
In the present embodiment, as shown in FIG. 4, the session
サーバ104から送信されたメッセージは、セッション中継バックアップ装置101を介してセッション中継装置121に送信される。セッション中継装置121は、受信したメッセージに対するackメッセージをサーバ104へ送信する。ackメッセージは、セッション中継バックアップ装置101を介して、サーバ104に送信される(ステップS301)。
The message transmitted from the
セッション中継装置121は、受信したメッセージを対向セッション中継装置122に送信し、対向セッション中継装置122は受信したメッセージに対するackメッセージを応答する(ステップS302)。
The
対向セッション中継装置122は、受信したメッセージをクライアント105に送信し、クライアント105は受信したメッセージに対するackメッセージを応答する(ステップS303)。
The opposing
ステップS303の後に、セッション中継装置121に障害が発生する(ステップS304)。サーバ104から送信されたメッセージは、セッション中継バックアップ装置101を介した後、セッション中継装置121をバイパスされ、対向セッション中継装置122に送信され、一方、対向セッション中継装置122はクライアント105から送信されたackメッセージを応答する(ステップS305)。
After step S303, a failure occurs in the session relay device 121 (step S304). The message transmitted from the
ここで、対向セッション中継装置122には「data:2000」を含むメッセージが送信されていないため、クライアント105から「data:2000」を含むメッセージに対応するackメッセージが送信されない。
Here, since the message including “data: 2000” is not transmitted to the opposing
セッション中継バックアップ装置101は、受信したackメッセージに基づいてセッション中継装置121の障害を検出する(ステップS306)。障害を検出する方法としては、受信したackメッセージがセッション中継用のメッセージであるか否かを判定する方法が考えられる。
The session
具体的には、セッション中継バックアップ装置101は、受信したackメッセージに含まれる送信元のIPアドレス、ポート番号が相違するか否かを判定し、又は、受信したackメッセージに特定オプションが含まれるかなどのメッセージフォーマットが相違するか否かを判定する。
Specifically, the session
セッション中継バックアップ装置101は、障害発生前では、セッション中継装置121からTCPを用いた通信によってackメッセージを受信しているが、障害が発生すると、TCP以外の通信によって対向セッション中継装置122からackメッセージを受信する。そのため、セッション中継バックアップ装置101は、受信したメッセージに基づいて、通信プロトコルの違いを判定できる。
Before the failure occurs, the session
セッション中継バックアップ装置101は、障害を検出すると、バックアップモードを示す情報に動作モード208の情報を書き換え、サーバ104へのackメッセージの送信し、対向セッション中継装置122へのメッセージを再送する(ステップS307)。ここでは、「data:2000」及び「data:3000」を含むメッセージが再送される。
When the session
対向セッション中継装置122は、セッション中継バックアップ装置101からメッセージが再送されるため、以降、受信したメッセージをクライアント105に送信する(ステップS308)。
Since the message is retransmitted from the session
以上のように、セッション中継バックアップ装置101を備えることによって、セッション切断を回避し、セッション中継を継続することができる。
As described above, by providing the session
図5は、本発明の実施形態における障害検知部204によって実行される処理を説明するフローチャートである。
FIG. 5 is a flowchart illustrating processing executed by the
障害検出部204は、メッセージが入力されると処理を開始し、当該メッセージが通信部201から入力されたか否かを判定する(ステップS401)。メッセージが通信部201から入力されていないと判定された場合は、障害検出部204は、通信部201を介してルータ131に受信したメッセージを送信し、処理を終了する(ステップS406)。
The
メッセージが通信部201から入力されたと判定された場合、障害検出部204は、動作モード208を参照して、通常モードであるか否かを判定する(ステップS402)。現在の動作モード208が通常モードでないと判定された場合、障害検出部204は、WAN側セッション中継処理部207への出力処理を実行し、処理を終了する(ステップS408)。
When it is determined that the message is input from the
動作モード208が通常モードであると判定された場合、障害検出部204は、入力されたメッセージがackメッセージであるか否かを判定する(ステップS403)。このとき、障害検出部204は、DB205に格納されるメッセージ管理テーブル500のフラグ503を更新する。具体的には以下のような処理が実行される。
When it is determined that the
まず、障害検出部204は、受信したackメッセージに基づいて、どのメッセージに対するackメッセージであるかを特定する。
First, the
次に、障害検出部204は、特定されたメッセージに対応するエントリをメッセージ管理テーブル500から検索する。障害検出部204は、検索されたエントリのフラグ503の値を「1」に更新する。
Next, the
以上がメッセージ管理テーブル500のフラグ503の更新方法である。
The method for updating the
入力されたメッセージがackメッセージでないと判定された場合は、入力されたメッセージをメッセージ蓄積部203及び中継先切替部202に出力し、処理を終了する(ステップS407)。中継先切替部202は、入力されたメッセージを通信部201に出力する。
When it is determined that the input message is not an ack message, the input message is output to the
入力されたメッセージがackメッセージであると判定された場合、障害検出部204は、当該ackメッセージがセッション中継装置121から受信したメッセージであるか否かを判定する(ステップS404)。
If it is determined that the input message is an ack message, the
ackメッセージがセッション中継装置121から受信したメッセージでないと判定された場合、障害検出部204は、入力されたメッセージをメッセージ蓄積部203及び中継先切替部202に出力し、処理を終了する(ステップS407)。中継先切替部202は、入力されたメッセージを通信部201に出力する。
If it is determined that the ack message is not a message received from the
ステップS404の判定処理としては、例えば、ackメッセージに特定オプションが含まれているか否かを判定する方法、送信元のIPアドレス及びポート番号に基づいて判定する方法などが考えられる。なお、ackメッセージの送信先を特定できる方法であればどのような方法であってもよい。 As the determination processing in step S404, for example, a method of determining whether or not a specific option is included in the ack message, a method of determining based on the IP address and port number of the transmission source, and the like are conceivable. Any method may be used as long as it can identify the transmission destination of the ack message.
ackメッセージがセッション中継装置121から受信したメッセージであると判定された場合、障害検出部204は、バックアップモードを示す情報に動作モード208の情報を変更する(ステップS405)。
When it is determined that the ack message is a message received from the
その後、障害検出部204は、WAN側セッション中継処理部207への出力処理を実行し、処理を終了する(ステップS408)。
Thereafter, the
図6は、本発明の実施形態におけるWAN側セッション中継処理部207への出力処理を説明するフローチャートである。
FIG. 6 is a flowchart illustrating output processing to the WAN-side session
障害検出部204は、DB205からメッセージ管理テーブル500を取得する(ステップS501)。具体的には、障害検出部204は、メッセージ管理テーブル500の読出命令をメッセージ蓄積部203に出力する。
The
障害検出部204は、取得されたメッセージ管理テーブル500を参照して、セッション中継装置121から送信されていないメッセージを特定する(ステップS502)。具体的には、障害検出部204は、メッセージ管理テーブル500のフラグ503が「0」であるエントリを抽出する。さらに、障害検出部204は、抽出されたエントリに対応するメッセージを取得する。
The
障害検出部204は、ステップS401において入力されたメッセージと、ステップS502において特定されたメッセージとをWAN側セッション中継処理部207に出力し、処理を終了する(ステップS503)。
The
以上のように、本発明によれば、サーバ104が送受信したメッセージと、クライアント105が送受信したメッセージとの間に不整合が生じず、セッション切断を回避することができる。また、セッション中継バックアップ装置101は、障害が発生したセッション中継装置121に代わって、セッション中継を継続することができる。
As described above, according to the present invention, there is no inconsistency between the message transmitted / received by the
以上、本発明を添付の図面を参照して詳細に説明したが、本発明はこのような具体的構成に限定されるものではなく、添付した請求の範囲の趣旨内における様々な変更及び同等の構成を含むものである。 Although the present invention has been described in detail with reference to the accompanying drawings, the present invention is not limited to such specific configurations, and various modifications and equivalents within the spirit of the appended claims Includes configuration.
Claims (10)
前記サーバと前記中継装置との間の通信を中継するように接続され、前記中継装置を介して前記クライアントと通信し、
メッセージを送受信する通信部と、
受信した前記メッセージを中継する中継処理部と、
前記受信したメッセージが前記中継装置から受信したメッセージであるか否かを判定することによって、前記中継装置の障害を検出する障害検出部と、
前記受信したメッセージを蓄積するメッセージ蓄積部と、
を備え、
前記障害検出部は、
前記受信したメッセージがデータ送信に対する前記クライアントからの応答メッセージであるか否かを判定し、
前記受信したメッセージが前記応答メッセージであると判定された場合に、前記応答メッセージが前記中継装置から送信された応答メッセージであるか否かを判定し、
前記応答メッセージが前記中継装置から送信された応答メッセージでないと判定された場合に、前記中継装置の障害として検出し、
前記中継装置の障害が検出された場合に、前記中継装置を介した前記メッセージの中継処理を実行する通常モードから、障害が発生した前記中継装置をバイパスして前記サーバと前記クライアントとの間の前記メッセージの中継処理を実行するバックアップモードに切り替え、
前記中継装置から前記クライアントに中継されていない前記メッセージを特定し、
前記特定されたメッセージを前記メッセージ蓄積部から取得し、
前記取得されたメッセージを前記クライアントに送信することによって前記メッセージの中継を継続することを特徴とする中継バックアップ装置。 A relay backup device that relays communication when a failure occurs in a relay device that relays communication between a client and a server;
Is connected to relay communication between the server and the relay device, communicates with the client via the relay device,
A communication unit for sending and receiving messages;
A relay processing unit that relays the received message;
A failure detection unit that detects a failure of the relay device by determining whether the received message is a message received from the relay device;
A message storage unit for storing the received message;
With
The failure detection unit
Determining whether the received message is a response message from the client to data transmission;
When it is determined that the received message is the response message, it is determined whether the response message is a response message transmitted from the relay device;
When it is determined that the response message is not a response message transmitted from the relay device, it is detected as a failure of the relay device,
When a failure of the relay device is detected, from the normal mode in which the relay processing of the message via the relay device is performed, the relay device in which the failure has occurred is bypassed between the server and the client. Switch to backup mode to execute relay processing of the message ,
Identifying the message not relayed from the relay device to the client;
Obtaining the identified message from the message storage unit;
Relay backup apparatus characterized by continuing the relaying of the message by sending the retrieved message to the client.
前記障害検出部は、前記応答メッセージに含まれる送信元を特定するための送信元情報に基づいて、前記応答メッセージが前記中継装置から送信された応答メッセージであるか否かを判定することを特徴とする中継バックアップ装置。 The failure detection unit determines whether the response message is a response message transmitted from the relay device based on transmission source information for specifying a transmission source included in the response message. Relay backup device.
前記障害検出部は、前記応答メッセージのメッセージフォーマットに基づいて、前記応答メッセージが前記中継装置から送信された応答メッセージであるか否かを判定することを特徴とする中継バックアップ装置。 The relay backup device, wherein the failure detection unit determines whether the response message is a response message transmitted from the relay device based on a message format of the response message.
さらに、前記サーバとの間で送受信されるメッセージの出力先を切り替える切替部を備え、 And a switching unit that switches an output destination of a message transmitted / received to / from the server,
前記中継処理部は、前記サーバとの間で送受信されるメッセージを中継する第1中継処理部を含み、 The relay processing unit includes a first relay processing unit that relays a message transmitted to and received from the server,
前記通信部は、前記サーバとの間で送受信されるメッセージを前記切替部に出力し、 The communication unit outputs a message transmitted / received to / from the server to the switching unit,
前記切替部は、 The switching unit is
前記通常モードの場合には、前記メッセージ蓄積部及び前記障害検出部に前記メッセージを出力し、 In the case of the normal mode, the message is output to the message storage unit and the failure detection unit,
前記バックアップモードの場合には、前記第1中継処理部に前記メッセージを出力することを特徴とする中継バックアップ装置。 In the backup mode, the message is output to the first relay processing unit.
前記中継処理部は、前記クライアントとの間で送受信されるメッセージを中継する第2中継処理部を含み、 The relay processing unit includes a second relay processing unit that relays a message transmitted / received to / from the client,
前記通信部は、前記中継装置との間で送受信されるメッセージを前記障害検出部に出力し、 The communication unit outputs a message transmitted / received to / from the relay device to the failure detection unit,
前記障害検出部は、 The failure detection unit
前記通常モードの場合には、前記メッセージ蓄積部及び前記切替部に前記メッセージを出力し、 In the case of the normal mode, the message is output to the message storage unit and the switching unit,
前記バックアップモードの場合には、前記第2中継処理部に前記メッセージを出力することを特徴とする中継バックアップ装置。 In the backup mode, the message is output to the second relay processing unit.
前記中継バックアップ装置は、プロセッサと、前記プロセッサに接続される記憶媒体と、他の装置と通信するためのネットワークインタフェースを備え、 The relay backup device includes a processor, a storage medium connected to the processor, and a network interface for communicating with other devices,
前記中継バックアップ装置は、前記サーバと前記中継装置との間の通信を中継するように接続され、前記中継装置を介して前記クライアントと通信し、 The relay backup device is connected to relay communication between the server and the relay device, and communicates with the client via the relay device;
前記方法は、 The method
前記中継バックアップ装置が、メッセージを受信する第1のステップと、 A first step in which the relay backup device receives a message;
前記中継バックアップ装置が、前記受信したメッセージが前記中継装置から受信したメッセージであるか否かを判定することによって、前記中継装置の障害を検出する第2のステップと、 A second step in which the relay backup device detects a failure of the relay device by determining whether the received message is a message received from the relay device;
前記中継バックアップ装置が、前記中継装置の障害が検出された場合に、前記中継装置を介した前記メッセージの中継処理を実行する通常モードから、障害が発生した前記中継装置をバイパスして前記サーバと前記クライアントとの間の前記メッセージの中継処理を実行するバックアップモードに切り替えて前記メッセージの中継を継続する第3のステップと、を含み、 When the relay backup device detects a failure of the relay device, the relay backup device bypasses the relay device in which the failure has occurred, from the normal mode in which relay processing of the message via the relay device is performed. A third step of switching to a backup mode for performing relay processing of the message with the client and continuing relaying the message,
前記第1のステップは、前記受信したメッセージを蓄積するステップを含み、 The first step includes accumulating the received message;
前記第2のステップは、 The second step includes
前記受信したメッセージがデータ送信に対する前記クライアントからの応答メッセージであるか否かを判定する第4のステップと、 A fourth step of determining whether the received message is a response message from the client to data transmission;
前記受信したメッセージが前記応答メッセージであると判定された場合に、前記応答メッセージが前記中継装置から送信された応答メッセージであるか否かを判定する第5のステップと、 A fifth step of determining whether or not the response message is a response message transmitted from the relay device when it is determined that the received message is the response message;
前記応答メッセージが前記中継装置から送信された応答メッセージでないと判定された場合に、前記中継装置の障害を検出する第6のステップと、 A sixth step of detecting a failure of the relay device when it is determined that the response message is not a response message transmitted from the relay device;
を含み、 Including
前記第3のステップは、 The third step includes
前記通常モードでの稼動中に前記中継装置の障害が検出された場合に、前記通常モードから前記バックアップモードに切り替えるステップと、 A step of switching from the normal mode to the backup mode when a failure of the relay device is detected during operation in the normal mode;
前記中継装置から前記クライアントに中継されていない前記メッセージを特定するステップと、 Identifying the message not relayed from the relay device to the client;
前記蓄積されたメッセージの中から、前記特定されたメッセージを取得するステップと、 Obtaining the identified message from the accumulated messages;
前記取得されたメッセージを前記クライアントに送信するステップと、 Sending the obtained message to the client;
を含むことを特徴とする中継制御方法。 The relay control method characterized by including.
前記第5のステップでは、前記応答メッセージに含まれる送信元を特定するための送信元情報に基づいて、前記応答メッセージが前記中継装置から送信された応答メッセージであるか否かを判定することを特徴とする中継制御方法。 In the fifth step, based on transmission source information for specifying a transmission source included in the response message, it is determined whether or not the response message is a response message transmitted from the relay device. A characteristic relay control method.
前記第5のステップでは、前記応答メッセージのメッセージフォーマットに基づいて、前記応答メッセージが前記中継装置から送信された応答メッセージであるか否かを判定することを特徴とする中継制御方法。 In the fifth step, it is determined whether or not the response message is a response message transmitted from the relay device based on a message format of the response message.
前記第1のステップは、 The first step includes
前記通常モードの場合には、前記サーバへ送信されるメッセージを蓄積し、当該メッセージを前記サーバへ中継するステップと、 In the normal mode, storing messages to be sent to the server, and relaying the messages to the server;
前記バックアップモードの場合には、前記サーバへ送信されるメッセージを前記サーバに中継するステップと、 In the backup mode, relaying a message sent to the server to the server;
を含むことを特徴とする中継制御方法。 The relay control method characterized by including.
前記第1のステップは、 The first step includes
前記通常モードの場合には、前記クライアントへ送信されるメッセージを蓄積し、当該メッセージを前記クライアントに中継するステップと、 In the normal mode, storing a message to be transmitted to the client, and relaying the message to the client;
前記バックアップモードの場合には、前記クライアントへ送信されるメッセージを前記クライアントに中継するステップと、 In the backup mode, relaying a message sent to the client to the client;
を含むことを特徴とする中継制御方法。 The relay control method characterized by including.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2011/076234 WO2013073000A1 (en) | 2011-11-15 | 2011-11-15 | Relay backup device and relay control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP5681297B2 true JP5681297B2 (en) | 2015-03-04 |
JPWO2013073000A1 JPWO2013073000A1 (en) | 2015-04-02 |
Family
ID=48429114
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013544016A Expired - Fee Related JP5681297B2 (en) | 2011-11-15 | 2011-11-15 | Relay backup device and relay control method |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP5681297B2 (en) |
WO (1) | WO2013073000A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105472049B (en) * | 2014-08-21 | 2020-01-10 | 中兴通讯股份有限公司 | CGN backup protection method and device for carrier-grade network address conversion |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006229919A (en) * | 2005-01-19 | 2006-08-31 | Nec Corp | Information processing system, information processing apparatus, information processing method used for the same, and program thereof |
JP2011004224A (en) * | 2009-06-19 | 2011-01-06 | Nec Corp | Sequence number addition method to transmission packet in redundant apparatus, device therefor and program therefor |
-
2011
- 2011-11-15 JP JP2013544016A patent/JP5681297B2/en not_active Expired - Fee Related
- 2011-11-15 WO PCT/JP2011/076234 patent/WO2013073000A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006229919A (en) * | 2005-01-19 | 2006-08-31 | Nec Corp | Information processing system, information processing apparatus, information processing method used for the same, and program thereof |
JP2011004224A (en) * | 2009-06-19 | 2011-01-06 | Nec Corp | Sequence number addition method to transmission packet in redundant apparatus, device therefor and program therefor |
Also Published As
Publication number | Publication date |
---|---|
JPWO2013073000A1 (en) | 2015-04-02 |
WO2013073000A1 (en) | 2013-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8938553B2 (en) | Cooperative proxy auto-discovery and connection interception through network address translation | |
US7903546B2 (en) | Detecting unavailable network connections | |
US7860985B2 (en) | Method for synchronizing connection state in data communication, and communication node using the same | |
JP4087271B2 (en) | Proxy response device and network system | |
CN110061899B (en) | Data message transmission method, device and system | |
JP4516439B2 (en) | Relay program, relay method, and relay device | |
JP5097620B2 (en) | Multipath communication system | |
EP2262185A1 (en) | Method and system for forwarding data among private networks | |
CN106576108B (en) | Communication method, equipment and system in communication system | |
JP2013126244A (en) | Packet communication device and method | |
US10742768B2 (en) | Relaying system and method of transmitting IP address of client to server using encapsulation protocol | |
JP2010283427A (en) | Lac device and failover method | |
US20150373135A1 (en) | Wide area network optimization | |
US9407529B2 (en) | Relay server and relay communication system | |
US20060239263A1 (en) | Method for the establishing of connections in a communication system | |
JP2006229399A (en) | Communications system, relay node and communication method used for the same, and program thereof | |
CN103107942B (en) | The tracking of a kind of static routing and equipment | |
JP5681297B2 (en) | Relay backup device and relay control method | |
JP2008072521A (en) | Equipment, method and program for communication | |
JP3465183B2 (en) | Network monitoring method | |
CN113037622A (en) | System and method for preventing BFD oscillation | |
CN113765783B (en) | Communication method and device | |
JP4988053B2 (en) | Network equipment | |
KR101492417B1 (en) | Failover method in system based on diameter protocol and system based on diameter protocol | |
WO2023231836A1 (en) | File synchronization method, apparatus, device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20141128 |
|
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: 20150106 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150108 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5681297 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |