JP2003084996A - Switching method for host computer - Google Patents

Switching method for host computer

Info

Publication number
JP2003084996A
JP2003084996A JP2001274423A JP2001274423A JP2003084996A JP 2003084996 A JP2003084996 A JP 2003084996A JP 2001274423 A JP2001274423 A JP 2001274423A JP 2001274423 A JP2001274423 A JP 2001274423A JP 2003084996 A JP2003084996 A JP 2003084996A
Authority
JP
Japan
Prior art keywords
host
spare
active
host computer
terminals
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001274423A
Other languages
Japanese (ja)
Inventor
Sanae Maki
早苗 牧
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2001274423A priority Critical patent/JP2003084996A/en
Publication of JP2003084996A publication Critical patent/JP2003084996A/en
Pending legal-status Critical Current

Links

Landscapes

  • Hardware Redundancy (AREA)
  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve a problem being incapable of instantaneously changing to a spare host when a present host goes wrong. SOLUTION: Means notifying information about terminals to which the present host before the failure is established TCP (Transmission Control Protocol) connection is provided. When changing from the present host to the spare host, a reset packet having the present host and terminals' addresses is transmitted to all the terminals establishing the TCP connection with the present host based on the information and the failure of the present host is notified to the terminals.

Description

【発明の詳細な説明】 【0001】 【発明の属する技術分野】本発明は、現用、予備と少な
くとも1台ずつ以上の複数のホストコンピュータからな
るシステムと端末が、LANを経由してTCP/IPプ
ロトコルで接続されているオンラインシステムにおい
て、障害により現用ホストから予備ホストへの切替方法
に関する。 【0002】 【従来の技術】従来の技術では、現行ホストが障害とな
った場合、端末側で現行ホストが障害となったことを検
知するは、送信したデータの応答監視がタイムアウトす
ることにより検知していたため、即時にホストの障害を
検知することができなかった。 【0003】また、特開平10−105490号公報に
は、UDPソケット上の生死管理パケットまたはTCP
ソケット上のデータを監視し、そのデータを受信しない
場合にサーバを障害とすることが記載されている。ま
た、同公報には切替え後のサーバからUDPソケット上
でバックアップ切替えメッセージを送り、切替え前のサ
ーバが障害となったことを端末側に通知することが記載
されている。 【0004】 【発明が解決しようとする課題】ホストコンピュータと
予備のホストコンピュータとを有するシステムでは、ホ
ストコンピュータの障害を検出して、予備のホストコン
ピュータへ切替えて運用する。この場合、予備のホスト
コンピュータへの切替えをできるだけ早く行うことが要
求される。 【0005】本発明は、上記のように予備ホストに切替
わったときに、端末側で現用ホストの障害を即時に検知
し、予備ホストへの切替え時間を短縮することを目的と
する。 【0006】 【課題を解決するための手段】上記の目的は、障害前の
現用ホストがどの端末とTCPコネクションを確立して
いたかのアドレス情報を予備ホストに通知する手段を設
け、予備ホストへ切替わったときに、そのアドレス情報
に従い切替わったホストから障害前の現用ホストとTC
Pコネクションを確立していた全端末に対して、障害前
の現用ホストと端末のアドレスを有するリセットパケッ
トを送信することにより端末側にて現用ホストの障害を
即時に検知することにより達成される。 【0007】 【発明の実施の形態】以下に、本発明の実施例を図面を
用いて説明する。 【0008】図1は、本発明を適用するシステム構成例
を示す図である。本システムは、複数のホストと、それ
ぞれのホストとLANを経由してTCP/IPプロトコ
ルで接続された複数の端末(端末1〜端末n)とを有し
ている。 【0009】ここで、ホスト1(11)は現在運用され
ているホストコンピュータであり、ホスト2(2)は予
備のホストコンピュータとして以下説明する。 【0010】図2は、図1に示した構成において、現用
ホストと予備ホストの両方からアクセス可能な共用メモ
リ上に、障害前の現用ホストがどの端末とTCPコネク
ションを確立していたかのアドレス情報を格納しておく
方法を示した図である。 【0011】ホスト1(21)は現用ホスト、ホスト2
(22)は予備ホストとして動作しており、共用メモリ
(23)は、ホスト1(21)、ホスト2(22)の両
方からアクセス可能であり、現用ホストが確立している
TCPコネクション分のホスト側、端末側のアドレス情
報を格納できる。 【0012】ホスト1(21)では、端末とTCPコネ
クションを確立したときに、共用メモリ(23)上にT
CPコネクションを確立したホスト側および端末側のア
ドレス情報(24)を追加し(25)、TCPコネクシ
ョンを切断すると、該当するアドレス情報を削除し、共
用メモリ(23)内には、現在ホスト1(21)が確立
しているTCPコネクション分のホスト側および端末側
のアドレス情報が格納される。 【0013】図3は、現用と予備ホストの両方からアク
セス可能な共用メモリ上に、現用ホストが確立している
TCPコネクションのアドレス情報を格納してあり、予
備ホストに切替わったときの切替方法を示す図である。 【0014】ホスト1(31)は現用ホスト、ホスト2
(32)は予備ホストとして動作しており、共用メモリ
(33)は、ホスト1(31)、ホスト2(32)の両
方からアクセス可能であり、現用ホストが確立している
TCPコネクション分のホスト側、端末側のアドレス情
報(35)を格納している。 【0015】現用ホスト1(31)が障害となり、予備
ホスト2(32)に切替わったとき、予備ホスト2(3
2)は共用メモリ(33)から現用ホスト(31)が確
立していたTCPコネクションのアドレス情報(35)
を読み込み(34)、アドレス情報から確立していたT
CPコネクション分、ホスト側、端末側のアドレスを有
するリセットパケットを送信する(36)。 【0016】端末1では現用ホスト1(31)のアドレ
スおよび端末1のアドレスを有するリセットパケットを
受信することにより、現用ホスト1(31)が障害とな
ったことを検知し、現用ホスト1(31)との間のTC
Pコネクションを切断する。また、他の端末2〜nも同
様に、現用ホスト1(31)のアドレスおよび端末2〜
nのアドレスを有するリセットパケットを受信すること
により、現用ホスト1(31)が障害となったことを検
知し、現用ホスト1(31)との間のTCPコネクショ
ンを切断する。 【0017】この後、端末1〜nまたは予備ホスト2
(32)からTCPコネクションの確立を行うことによ
り、即時に、予備ホスト2(32)にTCPコネクショ
ンを確立し、予備ホスト2(32)に切替えることがで
きる。 【0018】図4は、図1の構成例で、現用ホストと予
備ホストの両方からアクセス可能な共用メモリを使用せ
ずに、障害前の現用ホストがどの端末とTCPコネクシ
ョンを確立していたかの情報を逐次予備ホストに通知し
て、予備ホスト上のメモリに格納しておく方法を示した
図である。 【0019】ホスト1(41)は現用ホスト、ホスト2
(42)は予備ホストとして動作している。 【0020】ホスト1(41)では、端末とTCPコネ
クションを確立したときに、予備ホスト2(42)にT
CPコネクションを確立したホスト側および端末側のア
ドレス情報(44)を通知し、予備ホスト2(42)で
は通知された情報をメモリ(43)上に格納する(4
5)。また、ホスト1(41)でTCPコネクションを
切断すると、予備ホスト2(42)に切断したTCPコ
ネクションのアドレス情報を通知し、予備ホスト2(4
2)はメモリ(43)上から切断されたTCPコネクシ
ョンのアドレス情報を削除し、メモリ(43)内には現
在ホスト1(41)が確立しているTCPコネクション
分のホスト側および端末側のアドレス情報が格納され
る。 【0021】図5は、現用ホストが確立しているTCP
コネクションのアドレス情報を予備ホスト上のメモリに
格納してあり、予備ホストに切替わったときの切替方法
を示す図である。 【0022】ホスト1(51)は現用ホスト、ホスト2
(52)は予備ホストとして動作しており、現用ホスト
が確立しているTCPコネクション分のホスト側、端末
側のアドレス情報(54)を予備ホスト2(52)上の
メモリに格納している。 【0023】現用ホスト1(51)が障害となり、予備
ホスト2(52)に切替わったとき、予備ホスト2(5
2)はメモリ(53)上の現用ホスト(51)が確立し
ていたTCPコネクションのアドレス情報(54)か
ら、確立していたTCPコネクション分、ホスト側、端
末側のアドレスを有するリセットパケットを送信する。
(55)端末1では現用ホスト1(51)のアドレスお
よび端末1のアドレスを有するリセットパケットを受信
することにより、現用ホスト1(51)が障害となった
ことを検知し、現用ホスト1(51)との間のTCPコ
ネクションを切断する。また、他の端末2〜nも同様
に、現用ホスト1(51)のアドレスおよび端末2〜n
のアドレスを有するリセットパケットを受信することに
より、現用ホスト1(51)が障害となったことを検知
し、現用ホスト1(51)との間のTCPコネクション
を切断する。 【0024】この後、端末1〜nまたは予備ホスト2
(52)からTCPコネクションの確立を行うことによ
り、即時に、予備ホスト2(52)にTCPコネクショ
ンを確立し、予備ホスト2(52)に切替えることがで
きる。 【0025】 【発明の効果】本発明によれば、現用のホストの障害を
即時に検出し予備ホストに即時に切替える効果がある。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system including a working system, a spare system, and at least one host computer, and a plurality of host computers. The present invention relates to a method for switching from an active host to a spare host due to a failure in an online system connected by a protocol. In the prior art, when the current host fails, the terminal detects that the current host has failed by detecting that the response monitoring of the transmitted data times out. As a result, failure of the host could not be immediately detected. Japanese Patent Laid-Open No. 10-105490 discloses a life and death management packet or a TCP
It describes that data on a socket is monitored, and if the data is not received, the server fails. Further, the publication describes that a backup switching message is sent from a server after switching over a UDP socket to notify a terminal that a server before switching has failed. [0004] In a system having a host computer and a spare host computer, a failure of the host computer is detected, and the system is switched to the spare host computer for operation. In this case, it is required to switch to the spare host computer as soon as possible. SUMMARY OF THE INVENTION It is an object of the present invention to immediately detect a failure of a working host on a terminal side when switching to a spare host as described above, and to shorten the time for switching to the spare host. SUMMARY OF THE INVENTION The object of the present invention is to provide a spare host with means for notifying the spare host of address information indicating with which terminal the active host has established a TCP connection before the failure, and switching to the spare host. And the working host before the failure and the TC
This is achieved by transmitting a reset packet having the address of the active host and the terminal before the failure to all terminals that have established the P connection, thereby immediately detecting the failure of the active host on the terminal side. Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing an example of a system configuration to which the present invention is applied. This system has a plurality of hosts and a plurality of terminals (terminals 1 to n) connected to the respective hosts via a LAN by a TCP / IP protocol. The host 1 (11) is a host computer currently in operation, and the host 2 (2) is described below as a spare host computer. FIG. 2 shows, in the configuration shown in FIG. 1, address information indicating which terminal the active host has established a TCP connection with before the failure on a shared memory accessible from both the active host and the standby host. FIG. 7 is a diagram illustrating a method of storing the information. The host 1 (21) is a working host and a host 2
(22) operates as a spare host, and the shared memory (23) is accessible from both the host 1 (21) and the host 2 (22), and is a host for the TCP connection established by the working host. Side, terminal side address information can be stored. When the host 1 (21) establishes a TCP connection with the terminal, the host 1 (21) stores the TCP on the shared memory (23).
Address information (24) on the host side and terminal side that established the CP connection is added (25), and when the TCP connection is disconnected, the corresponding address information is deleted, and the current host 1 () is stored in the shared memory (23). 21) Stores address information on the host side and the terminal side for the TCP connection established. FIG. 3 shows a method of switching when the active host is switched to the standby host, in which the address information of the TCP connection established by the active host is stored in a shared memory accessible from both the active and standby hosts. FIG. The host 1 (31) is a working host and a host 2
(32) operates as a spare host, and the shared memory (33) is accessible from both the host 1 (31) and the host 2 (32), and is a host for the TCP connection established by the working host. And terminal-side address information (35). When the active host 1 (31) fails and switches to the spare host 2 (32), the spare host 2 (3)
2) Address information (35) of the TCP connection established by the working host (31) from the shared memory (33)
Is read (34), and T established from the address information is read.
A reset packet having addresses on the host side and the terminal side for the CP connection is transmitted (36). The terminal 1 receives the reset packet having the address of the active host 1 (31) and the address of the terminal 1, thereby detecting that the active host 1 (31) has failed. TC between
Disconnect the P connection. Similarly, the other terminals 2 to n also receive the address of the active host 1 (31) and the terminals 2 to
By receiving the reset packet having the address of n, it detects that the active host 1 (31) has failed, and disconnects the TCP connection with the active host 1 (31). Thereafter, the terminal 1 to n or the spare host 2
By establishing a TCP connection from (32), it is possible to immediately establish a TCP connection with the spare host 2 (32) and switch to the spare host 2 (32). FIG. 4 shows an example of the configuration of FIG. 1 in which the active host before the failure establishes a TCP connection with a terminal without using a shared memory accessible from both the active host and the standby host. Are sequentially notified to a spare host and stored in a memory on the spare host. The host 1 (41) is an active host and a host 2
(42) operates as a spare host. When the host 1 (41) establishes a TCP connection with the terminal, the spare host 2 (42)
The address information (44) on the host side and the terminal side that established the CP connection is notified, and the spare host 2 (42) stores the notified information in the memory (43) (4).
5). When the host 1 (41) disconnects the TCP connection, the standby host 2 (42) is notified of the address information of the disconnected TCP connection, and the standby host 2 (4
2) deletes the address information of the disconnected TCP connection from the memory (43), and stores the host-side and terminal-side addresses for the TCP connection currently established by the host 1 (41) in the memory (43). Information is stored. FIG. 5 shows the TCP established by the working host.
FIG. 11 is a diagram illustrating a switching method when connection address information is stored in a memory on a spare host and is switched to a spare host. The host 1 (51) is a working host and a host 2
(52) operates as a spare host, and stores address information (54) on the host side and terminal side for the TCP connection established by the working host in the memory on the spare host 2 (52). When the active host 1 (51) fails and switches to the spare host 2 (52), the spare host 2 (5)
2) transmits a reset packet having addresses of the host and the terminal for the established TCP connection from the address information (54) of the TCP connection established by the working host (51) on the memory (53). I do.
(55) The terminal 1 receives the reset packet having the address of the active host 1 (51) and the address of the terminal 1 to detect that the active host 1 (51) has failed, and detects the failure of the active host 1 (51). ) Is disconnected. Similarly, the other terminals 2 to n also receive the address of the active host 1 (51) and the terminals 2 to n.
By receiving the reset packet having the address of (1), the failure of the active host 1 (51) is detected, and the TCP connection with the active host 1 (51) is disconnected. Thereafter, the terminals 1 to n or the spare host 2
By establishing a TCP connection from (52), it is possible to immediately establish a TCP connection with the spare host 2 (52) and switch to the spare host 2 (52). According to the present invention, there is an effect that the failure of the active host is immediately detected and the active host is immediately switched to the spare host.

【図面の簡単な説明】 【図1】本発明を適用するシステム構成例を示す図であ
る。 【図2】共用メモリの内容を示した図である。 【図3】現用ホストから予備ホストへの切替方法を示し
た図である。 【図4】予備ホスト上のメモリの内容を示した図であ
る。 【図5】現用ホストから予備ホストへの切替方法を示し
た図である。 【符号の説明】 11 現用ホスト 12 予備ホスト 21 現用ホスト 22 予備ホスト 23 共用メモリ 24 コネクション情報 25 共用メモリ上情報 31 現用ホスト 32 予備ホスト 33 共用メモリ 34 現用ホストとコネクション確立済みの端末情報 35 共用メモリ上情報 36 リセットパケット 41 現用ホスト 42 予備ホスト 43 予備ホスト上メモリ 44 コネクション情報 45 予備ホストメモリ上情報 51 現用ホスト 52 予備ホスト 53 予備ホスト上メモリ 54 予備ホストメモリ上情報 55 リセットパケット
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram showing an example of a system configuration to which the present invention is applied. FIG. 2 is a diagram showing the contents of a shared memory. FIG. 3 is a diagram illustrating a method of switching from a working host to a spare host. FIG. 4 is a diagram showing contents of a memory on a spare host. FIG. 5 is a diagram illustrating a method of switching from a working host to a spare host. [Description of Signs] 11 Active host 12 Spare host 21 Active host 22 Spare host 23 Shared memory 24 Connection information 25 Information on shared memory 31 Active host 32 Spare host 33 Shared memory 34 Terminal information 35 with connection established with active host 35 Shared memory Upper information 36 Reset packet 41 Active host 42 Spare host 43 Spare host memory 44 Connection information 45 Spare host memory information 51 Active host 52 Spare host 53 Spare host memory 54 Spare host memory information 55 Reset packet

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04L 29/14 H04L 13/00 311 Fターム(参考) 5B034 BB02 CC01 5B085 AC18 BC02 BC03 5B089 GA01 GA21 HA06 HB02 JB15 KA05 KA12 MD01 ME02 ME04 ME14 5K032 AA06 BA04 CC08 CD01 EB06 5K035 BB02 CC01 CC10 LL14 MM03 MM06 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H04L 29/14 H04L 13/00 311 F term (Reference) 5B034 BB02 CC01 5B085 AC18 BC02 BC03 5B089 GA01 GA21 HA06 HB02 JB15 KA05 KA12 MD01 ME02 ME04 ME14 5K032 AA06 BA04 CC08 CD01 EB06 5K035 BB02 CC01 CC10 LL14 MM03 MM06

Claims (1)

【特許請求の範囲】 【請求項1】 第1、第2のホストコンピュータと複数
の端末がLANを経由してTCP/IPプロトコルで接
続されているオンラインシステムであって、前記第1の
ホストコンピュータから前記第2のホストコンピュータ
へ切り替わったときに、前記第1のホストコンピュータ
がどの端末とTCPコネクションを確立しているかの情
報を前記第2のホストコンピュータに通知し、前記情報
により前記第1のホストコンピュータとTCPコネクシ
ョンを確立していた全端末に対して、リセットパケット
を送信するホストコンピュータの切替方法。
1. An online system in which first and second host computers and a plurality of terminals are connected by a TCP / IP protocol via a LAN, wherein the first host computer From the first host computer to the second host computer, the first host computer notifies the second host computer of information as to which terminal the first host computer has established a TCP connection with, and the first host computer uses A method of switching a host computer that transmits a reset packet to all terminals that have established a TCP connection with the host computer.
JP2001274423A 2001-09-11 2001-09-11 Switching method for host computer Pending JP2003084996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001274423A JP2003084996A (en) 2001-09-11 2001-09-11 Switching method for host computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001274423A JP2003084996A (en) 2001-09-11 2001-09-11 Switching method for host computer

Publications (1)

Publication Number Publication Date
JP2003084996A true JP2003084996A (en) 2003-03-20

Family

ID=19099452

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001274423A Pending JP2003084996A (en) 2001-09-11 2001-09-11 Switching method for host computer

Country Status (1)

Country Link
JP (1) JP2003084996A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007141129A (en) * 2005-11-22 2007-06-07 Hitachi Ltd System switching method, computer system and program
JP2007249659A (en) * 2006-03-16 2007-09-27 Hitachi Ltd System-switching method, computer system therefor, and program
JP2010009462A (en) * 2008-06-30 2010-01-14 Yamatake Corp Server-client system and server switching method thereof
JP2011518486A (en) * 2008-04-02 2011-06-23 インターナショナル・ビジネス・マシーンズ・コーポレーション Method for enabling faster recovery of client applications in case of server failure
JP2015011472A (en) * 2013-06-27 2015-01-19 富士通株式会社 Control method, control program, and information processing system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007141129A (en) * 2005-11-22 2007-06-07 Hitachi Ltd System switching method, computer system and program
JP2007249659A (en) * 2006-03-16 2007-09-27 Hitachi Ltd System-switching method, computer system therefor, and program
JP2011518486A (en) * 2008-04-02 2011-06-23 インターナショナル・ビジネス・マシーンズ・コーポレーション Method for enabling faster recovery of client applications in case of server failure
JP2010009462A (en) * 2008-06-30 2010-01-14 Yamatake Corp Server-client system and server switching method thereof
JP2015011472A (en) * 2013-06-27 2015-01-19 富士通株式会社 Control method, control program, and information processing system

Similar Documents

Publication Publication Date Title
US9219641B2 (en) Performing failover in a redundancy group
CN106330475B (en) Method and device for managing main and standby nodes in communication system and high-availability cluster
EP1955506B1 (en) Methods, systems, and computer program products for session initiation protocol (sip) fast switchover
JP2008547329A (en) Session maintenance in wireless networks
JP2010103695A (en) Cluster system, cluster server and cluster control method
CN1859423B (en) Synchronous switching method for host and repeat device
CN110868278A (en) Method for dual-computer redundancy of communication front-end processor of rail transit comprehensive monitoring system
CN100563263C (en) In network storage service, realize the method and system of system high-available
CN106656659B (en) Network path selection method and network video recorder
CN109586986B (en) Method, device, equipment and storage medium for switching network equipment
JPH1185644A (en) System switching control method for redundancy system
JP2003084996A (en) Switching method for host computer
CN102868616B (en) Method for establishing virtual MAC (Media Access Control) address table item in network as well as router and system
CN101848165B (en) The method recovered after controlling interrupted communication link and interface board
JP4806382B2 (en) Redundant system
CN113949623B (en) MLAG double-master exception repairing method and device, electronic equipment and storage medium
JP2738362B2 (en) Network connection device
JP2009003491A (en) Server switching method in cluster system
CN111835544B (en) Monitoring method and system of virtual router based on user mode protocol stack
US20100005197A1 (en) Network device and active control card detecting method
CN113852514A (en) Data processing system with uninterrupted service, processing equipment switching method and connecting equipment
JPH09326810A (en) Connection changeover method on occurrence of fault
KR100669030B1 (en) Ethernet Link Protector for Fast Path Recovery
CN115102897B (en) Stacking splitting protection method based on link aggregation
JP2006229512A (en) Server switching method, server, and server switching program