JP2000305876A - Method for monitoring connection activity - Google Patents

Method for monitoring connection activity

Info

Publication number
JP2000305876A
JP2000305876A JP11117662A JP11766299A JP2000305876A JP 2000305876 A JP2000305876 A JP 2000305876A JP 11117662 A JP11117662 A JP 11117662A JP 11766299 A JP11766299 A JP 11766299A JP 2000305876 A JP2000305876 A JP 2000305876A
Authority
JP
Japan
Prior art keywords
connection
monitoring
computer
connections
signal
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
JP11117662A
Other languages
Japanese (ja)
Inventor
Kazuo Murai
和男 村井
Hidenori Shimizu
英則 清水
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 JP11117662A priority Critical patent/JP2000305876A/en
Publication of JP2000305876A publication Critical patent/JP2000305876A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To decrease frequency in the transmission of monitor signals by sending the monitor signals normally only to some of a plurality of connections with one computer in such a case. SOLUTION: Connections 13, 14, and 15 are established between computers 10 and 11 and the computer 10 stores connection identifiers in the activity monitor management table corresponding to the IP address of the computer 11 (500). Then the monitor signal is sent normally to one connection selected out of the three connections which are already made with the computer 11 (501). If a fault is detected at the connection 13 (501), the monitor signal is sent even to the connections 14 and 15 which are established with the computer 11 (503). Consequently, the frequency of monitor signal transmission is reduced to 1/n.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は通信システムのコネ
クション活動監視方法に関する。
The present invention relates to a connection activity monitoring method for a communication system.

【0002】[0002]

【従来の技術】コネクション活動監視方法の一つにTC
P/IP(TransmissionControl
Protocol/Internet Protoco
l)のキープアライブがある。キープアライブは、一定
時間通信先計算機に対し送信するデータがなくなると監
視信号を送信し、監視信号を受信した計算機はコネクシ
ョンの状態が正常である場合応答信号を返信し、応答信
号が返信されない場合はコネクション障害が発生したと
判断する。
2. Description of the Related Art TC is one of the connection activity monitoring methods.
P / IP (Transmission Control)
Protocol / Internet Protocol
1) There is keepalive. Keep-alive sends a monitoring signal when there is no data to be sent to the communication destination computer for a certain period of time, and the computer receiving the monitoring signal returns a response signal if the connection status is normal, and if the response signal is not returned Determines that a connection failure has occurred.

【0003】キープアライブを使用すると、監視信号や
応答信号の送受信によりネットワーク負荷の上昇、及び
パケットに対して課金するネットワークにおいて通信コ
ストが上昇する。よって、RFC1122によりキープ
アライブを実装する場合は、アプリケーションプログラ
ムが各コネクション毎にキープアライブを行うか否かを
選択できるように定められている。
When the keepalive is used, the network load increases due to the transmission and reception of the monitoring signal and the response signal, and the communication cost in the network for charging the packet increases. Therefore, when the keep-alive is implemented by the RFC 1122, it is defined that the application program can select whether or not to perform the keep-alive for each connection.

【0004】[0004]

【発明が解決しようとする課題】基幹業務等で使用する
通信システムにおいては、障害を確実に検出する観点か
らコネクションの活動監視は必要であり、従来の方法で
は全コネクションで監視信号を送信することになり、ネ
ットワーク負荷及び通信コストが上昇するという問題が
ある。
In a communication system used in a backbone business or the like, it is necessary to monitor the activity of a connection from the viewpoint of reliably detecting a failure. In the conventional method, a monitoring signal is transmitted over all connections. And the network load and communication cost increase.

【0005】[0005]

【課題を解決するための手段】コネクション障害は、主
にネットワーク障害か計算機障害で発生するため、一つ
の計算機との間に複数のコネクションが確立している場
合、全コネクションで活動監視を行う必要性は低い。よ
って、確立済みのコネクションを管理し、一つの計算機
との間に複数のコネクションが存在する場合、通常時は
その一部のコネクションについてのみ監視信号を送信
し、監視信号の送信回数を削減する。いずれかのコネク
ションで障害を検出した場合は、障害となった計算機と
の間に確立している全コネクションについて監視信号を
送信し、全コネクションでの障害検出を実現する。
Means for Solving the Problems Since a connection failure mainly occurs due to a network failure or a computer failure, when a plurality of connections are established with one computer, it is necessary to monitor the activity of all the connections. Sex is low. Therefore, the established connection is managed, and when there are a plurality of connections with one computer, a monitoring signal is transmitted only for a part of the connection in a normal state, and the number of times of transmitting the monitoring signal is reduced. When a failure is detected in any of the connections, a monitoring signal is transmitted for all the connections established with the failed computer, and the failure is detected in all the connections.

【0006】[0006]

【発明の実施の形態】以下、本発明の実施例を説明す
る。
Embodiments of the present invention will be described below.

【0007】図1は本発明の実施例におけるネットワー
クの構成例を表す図である。計算機10は計算機11と
ネットワーク12を介して接続されている。コネクショ
ン13、コネクション14、コネクション15はいずれ
も計算機10から確立したコネクションであり、計算機
10のTCPポート101、TCPポート102は、計
算機11のTCPポート111と接続され、計算機10
のTCPポート103は計算機11のTCPポート11
2と接続されている。
FIG. 1 is a diagram showing a configuration example of a network according to an embodiment of the present invention. The computer 10 is connected to the computer 11 via a network 12. The connection 13, the connection 14, and the connection 15 are all connections established from the computer 10, and the TCP port 101 and the TCP port 102 of the computer 10 are connected to the TCP port 111 of the computer 11,
Is the TCP port 103 of the computer 11
2 is connected.

【0008】図2は計算機の構成図である。図2におい
て、計算機は監視制御部21とプロトコル処理部23か
ら構成される。プロトコル処理部23は、コネクション
の確立、データ転送、コネクションの解放等の通信処理
を行う。プロトコル処理部23内の信号処理部24は、
監視信号、応答信号の送受信を行う。監視制御部21
は、信号処理部24を使用して監視信号の送信を制御す
る。活動監視管理テーブル22は、確立済みのコネクシ
ョンを管理するテーブルであり、通信先計算機のIPア
ドレス単位に存在する。
FIG. 2 is a configuration diagram of a computer. 2, the computer includes a monitoring control unit 21 and a protocol processing unit 23. The protocol processing unit 23 performs communication processing such as connection establishment, data transfer, and connection release. The signal processing unit 24 in the protocol processing unit 23
It sends and receives monitoring signals and response signals. Monitoring control unit 21
Controls the transmission of the monitoring signal using the signal processing unit 24. The activity monitoring management table 22 is a table for managing an established connection, and exists for each IP address of a communication destination computer.

【0009】図2に示すように活動監視管理テーブル2
2は通信先計算機のIPアドレスを格納するIPアドレ
ス格納領域221、IPアドレス格納領域221に格納
されている計算機と確立済みのコネクションのコネクシ
ョン識別子を格納する監視候補リスト222から構成さ
れる。
As shown in FIG. 2, the activity monitoring management table 2
Reference numeral 2 denotes an IP address storage area 221 for storing an IP address of a communication destination computer, and a monitoring candidate list 222 for storing connection identifiers of computers and established connections stored in the IP address storage area 221.

【0010】図3、図4はそれぞれ監視制御部21、信
号処理部24の処理を表すフローチャートである。
FIGS. 3 and 4 are flowcharts showing the processing of the monitoring control unit 21 and the signal processing unit 24, respectively.

【0011】次に図3、図4のフローチャートを用いて
図2の各部の動作を説明する。
Next, the operation of each unit shown in FIG. 2 will be described with reference to the flowcharts shown in FIGS.

【0012】図3において、プロトコル処理部23はコ
ネクションを確立すると、監視制御部21にコネクショ
ン確立を通知し(ステップ300)、監視制御部21
は、IPアドレス格納領域221を参照し、通信先計算
機のIPアドレスに対応する活動監視管理テーブル22
を検索する(ステップ301)。検索が成功した場合
(ステップ302)は監視候補リスト222の末尾にコ
ネクション識別子を登録する(ステップ304)。対応
する活動監視管理テーブルが存在せず検索に失敗した場
合は、新たに活動監視管理テーブルを生成し当該IPア
ドレスをIPアドレス格納領域221に設定し(ステッ
プ303)、監視候補リスト222にコネクション識別
子を登録する。
In FIG. 3, when the protocol processing unit 23 establishes a connection, it notifies the monitoring control unit 21 of the connection establishment (step 300).
Refers to the IP address storage area 221, and refers to the activity monitoring management table 22 corresponding to the IP address of the communication destination computer.
(Step 301). If the search is successful (step 302), the connection identifier is registered at the end of the monitoring candidate list 222 (step 304). If the search fails because the corresponding activity monitoring management table does not exist, a new activity monitoring management table is generated, the IP address is set in the IP address storage area 221 (step 303), and the connection identifier is set in the monitoring candidate list 222. Register

【0013】監視制御部21には一定間隔(例えば60
秒)でタイムアウトが通知される。タイムアウトが通知
されると、各活動監視管理テーブル22の監視候補リス
ト222から無通信状態であるコネクションを1つずつ
選択し、選択したコネクションに対する監視信号送信指
示を信号処理部24に行う(ステップ305、ステップ
306、ステップ307)。監視候補リスト222から
監視信号送信指示を行うコネクションを選択する方法を
図6のフローチャートに示す。
The monitoring control unit 21 has a fixed interval (for example, 60
Timeout) in seconds. When the time-out is notified, a connection in a non-communication state is selected one by one from the monitoring candidate list 222 of each activity monitoring management table 22, and a monitoring signal transmission instruction for the selected connection is sent to the signal processing unit 24 (step 305). , Step 306, step 307). FIG. 6 is a flowchart illustrating a method of selecting a connection for which a monitoring signal transmission instruction is issued from the monitoring candidate list 222.

【0014】図6は監視信号送信指示を行うコネクショ
ンを均等に選択する方法について示してある。まず、監
視候補リスト222の先頭のコネクション識別子をリス
トの末尾に移動する(ステップ600)。次に監視候補
リスト222の先頭のコネクションが無通信状態である
か判定し(ステップ601)、無通信状態であればその
コネクションに監視信号送信指示を行う(ステップ60
2)。無通信状態でなければ監視候補リスト222の先
頭のコネクション識別子をリストの末尾に移動する(ス
テップ600)。
FIG. 6 shows a method for equally selecting a connection for instructing a supervisory signal transmission. First, the connection identifier at the head of the monitoring candidate list 222 is moved to the end of the list (step 600). Next, it is determined whether or not the first connection in the monitoring candidate list 222 is in a non-communication state (step 601).
2). If there is no communication state, the top connection identifier of the monitoring candidate list 222 is moved to the end of the list (step 600).

【0015】以上の処理を無通信状態のコネクションが
見つかるまで繰返す。ただし、監視候補リスト222上
に無通信状態であるコネクションが存在しない場合に
は、監視信号送信指示は行わない。以上の処理により監
視候補リスト222の先頭に選択したコネクションのコ
ネクション識別子が登録され、無通信状態であるコネク
ションを均等に選択することができる。上記選択方法以
外にも監視候補リスト上の全コネクションの状態を判定
し最も長い間通信が行われていないコネクションを選択
する方法などが考えられる。
The above process is repeated until a connection in a non-communication state is found. However, when there is no connection in the non-communication state on the monitoring candidate list 222, the monitoring signal transmission instruction is not performed. By the above processing, the connection identifier of the selected connection is registered at the head of the monitoring candidate list 222, and the connection in the non-communication state can be uniformly selected. In addition to the above selection method, a method of judging the state of all connections on the monitoring candidate list and selecting a connection with which communication has not been performed for the longest time may be considered.

【0016】図4において、信号処理部24が上記監視
信号送信指示を受けると、指示されたコネクションに監
視信号を送信し、応答信号を監視するため監視タイマを
起動する(ステップ400、ステップ401、ステップ
402)。
In FIG. 4, when the signal processing unit 24 receives the monitoring signal transmission instruction, the signal processing unit 24 transmits a monitoring signal to the instructed connection and starts a monitoring timer for monitoring a response signal (step 400, step 401, Step 402).

【0017】信号処理部24は応答信号を受信すると、
監視タイマを停止し、監視制御部21に正常完了報告を
行う(ステップ403、ステップ404、ステップ40
5)。監視制御部21は、正常完了報告を受けた場合他
のコネクションについては監視信号は送信しない(ステ
ップ308)。
When the signal processing unit 24 receives the response signal,
The monitoring timer is stopped, and a normal completion report is sent to the monitoring control unit 21 (step 403, step 404, step 40).
5). When receiving the normal completion report, the monitoring control unit 21 does not transmit a monitoring signal for another connection (step 308).

【0018】信号処理部24に監視タイマのタイムアウ
トが通知された場合は(ステップ406)、TCPプロ
トコルに従ったコネクション解放処理を行い(ステップ
407)、監視制御部21に当該コネクションの障害通
知を行う(ステップ408)。監視制御部21は、障害
通知を受けると(ステップ309)対応する活動監視管
理テーブル22の監視候補リスト222から障害となっ
たコネクションのコネクション識別子を削除し(ステッ
プ310)、監視候補リスト222に格納されている全
てのコネクションに対する監視信号送信指示を信号処理
部24に行う(ステップ311)。
When the timeout of the monitoring timer is notified to the signal processing unit 24 (step 406), a connection release process according to the TCP protocol is performed (step 407), and a failure notification of the connection is sent to the monitoring control unit 21. (Step 408). Upon receiving the failure notification (Step 309), the monitoring control unit 21 deletes the connection identifier of the failed connection from the monitoring candidate list 222 of the corresponding activity monitoring management table 22 (Step 310) and stores it in the monitoring candidate list 222. The control unit 24 instructs the signal processing unit 24 to transmit a monitoring signal for all of the connected connections (step 311).

【0019】プロトコル処理部23はコネクションを解
放すると、監視制御部21と信号処理部24にコネクシ
ョン解放を通知する。監視制御部21にコネクション解
放が通知されると、対応する活動監視管理テーブル22
の監視候補リスト222からコネクション識別子を削除
する(ステップ312)。信号処理部24にコネクショ
ン解放が通知されると、当該コネクションが監視中の場
合は監視タイマを停止する(ステップ409、ステップ
410)。
Upon releasing the connection, the protocol processing unit 23 notifies the monitoring control unit 21 and the signal processing unit 24 of the release of the connection. When the connection release is notified to the monitoring control unit 21, the corresponding activity monitoring management table 22
The connection identifier is deleted from the monitoring candidate list 222 (step 312). When the connection release is notified to the signal processing unit 24, the monitoring timer is stopped if the connection is being monitored (steps 409 and 410).

【0020】次に図5を用いて、図1の構成でのシーケ
ンスを説明する。尚、図5は計算機10で障害を検出す
る場合について示してある。計算機10と計算機11と
の間にコネクション13、コネクション14、コネクシ
ョン15が確立されると、計算機10は計算機11のI
Pアドレスに対応する活動監視管理テーブルにコネクシ
ョン識別子を格納する(ステップ500)。
Next, a sequence in the configuration of FIG. 1 will be described with reference to FIG. FIG. 5 shows a case where the computer 10 detects a failure. When the connection 13, the connection 14, and the connection 15 are established between the computer 10 and the computer 11, the computer 10
The connection identifier is stored in the activity monitoring management table corresponding to the P address (step 500).

【0021】通常時は計算機11と確立済みの3つのコ
ネクションのうち図6のフローチャートに示した方法で
選択した1つのコネクションに対して、監視信号を送信
する(ステップ501)。コネクション13で障害を検
出すると(ステップ502)、計算機11との間に確立
しているコネクション14、コネクション15について
も監視信号を送信する(ステップ503)。以上の処理
によって全コネクションでの障害検出が可能となる。
Normally, a monitor signal is transmitted to one connection selected by the method shown in the flowchart of FIG. 6 among the three connections established with the computer 11 (step 501). When a failure is detected in the connection 13 (step 502), a monitoring signal is also transmitted for the connections 14 and 15 established with the computer 11 (step 503). With the above processing, failure detection can be performed on all connections.

【0022】本実施例では、同一計算機間に複数のコネ
クションが確立されている場合、同時には一つのコネク
ションだけで監視信号を送信するため、同一計算機間に
n本のコネクションが確立しているときは、従来通り全
てのコネクションで監視信号を送信したときと比べ、監
視信号送信回数を1/nに削減することができる。ま
た、監視信号の送信回数を増加させずに、監視信号の送
信間隔を従来の1/nまで短縮することが可能であるた
め、監視信号の送信間隔を短縮することで、従来より早
期に障害を検出することも可能である。
In this embodiment, when a plurality of connections are established between the same computers, the monitoring signal is transmitted only by one connection at the same time. Therefore, when n connections are established between the same computers. Can reduce the number of times of transmission of the monitoring signal to 1 / n as compared with the case where the monitoring signal is transmitted through all connections as before. In addition, since it is possible to reduce the monitoring signal transmission interval to 1 / n of the conventional one without increasing the number of transmissions of the monitoring signal, by shortening the monitoring signal transmission interval, it is possible to prevent failure earlier than before. Can also be detected.

【0023】[0023]

【発明の効果】本発明によれば、同一計算機間に複数の
コネクションが確立している場合に、監視信号の送信回
数を削減したので、障害検出に必要なネットワーク負荷
及び通信コストが軽減できる。
According to the present invention, when a plurality of connections are established between the same computers, the number of times of transmission of the monitoring signal is reduced, so that the network load and communication cost required for detecting a failure can be reduced.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のネットワークの構成例を表す図であ
る。
FIG. 1 is a diagram illustrating a configuration example of a network according to the present invention.

【図2】本発明の計算機の構成例を表す図である。FIG. 2 is a diagram illustrating a configuration example of a computer according to the present invention.

【図3】実施例における監視制御部のフローチャートで
ある。
FIG. 3 is a flowchart of a monitoring control unit in the embodiment.

【図4】実施例における信号処理部のフローチャートで
ある。
FIG. 4 is a flowchart of a signal processing unit in the embodiment.

【図5】実施例における活動監視のシーケンス図の一例
を表す図である。
FIG. 5 is a diagram illustrating an example of a sequence diagram of activity monitoring in the embodiment.

【図6】実施例における監視を行うコネクションの選択
方法を表すフローチャートである。
FIG. 6 is a flowchart illustrating a method of selecting a connection to be monitored in the embodiment.

【符号の説明】 10…計算機、11…計算機、101,102,10
3,111,112…TCPポート、12…ネットワー
ク、13,14,15…コネクション、21…監視制御
部、22…活動監視管理テーブル、221…IPアドレ
ス格納領域、222…監視中コネクション識別子格納領
域、223…確立済コネクション識別子格納領域、23
…プロトコル処理部、24…信号処理部、300,30
1,302,303,304,305,306,30
7,308,309,310,311,312…フロー
チャートの各処理ステップ、400,401,402,
403,404,405,406,407,408,4
09,410…フローチャートの各処理ステップ、50
0,501,502,503…シーケンス図の各処理ス
テップ、600,601,602…フローチャートの各
処理ステップ。
[Description of Signs] 10: Computer, 11: Computer, 101, 102, 10
3, 111, 112 ... TCP port, 12 ... network, 13, 14, 15 ... connection, 21 ... monitoring control unit, 22 ... activity monitoring management table, 221 ... IP address storage area, 222 ... monitored connection identifier storage area, 223 ... established connection identifier storage area, 23
... Protocol processing unit, 24 ... Signal processing unit, 300, 30
1,302,303,304,305,306,30
7, 308, 309, 310, 311, 312... Each processing step in the flowchart, 400, 401, 402,
403,404,405,406,407,408,4
09, 410... Each processing step in the flowchart, 50
0, 501, 502, 503... Each processing step in the sequence diagram, 600, 601, 602... Each processing step in the flowchart.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】通信システムのコネクション活動監視方法
において、計算機間に複数のコネクションが存在する場
合、通常時はその一部のコネクションについてのみ監視
信号を送信することで障害を検出することを特徴とする
コネクション活動監視方法。
In a connection activity monitoring method of a communication system, when a plurality of connections exist between computers, a fault is detected by transmitting a monitoring signal only for a part of the connections in a normal state. Connection activity monitoring method.
【請求項2】請求項1記載のコネクション活動監視方法
において、いずれかのコネクションにおいて障害を検出
したときは、障害となった計算機との間に確立している
全コネクションについて監視信号を送信し、コネクショ
ンの障害を検出することを特徴とするコネクション活動
監視方法。
2. A connection activity monitoring method according to claim 1, wherein when a failure is detected in any of the connections, a monitoring signal is transmitted for all the connections established with the failed computer. A connection activity monitoring method characterized by detecting a connection failure.
JP11117662A 1999-04-26 1999-04-26 Method for monitoring connection activity Pending JP2000305876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11117662A JP2000305876A (en) 1999-04-26 1999-04-26 Method for monitoring connection activity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11117662A JP2000305876A (en) 1999-04-26 1999-04-26 Method for monitoring connection activity

Publications (1)

Publication Number Publication Date
JP2000305876A true JP2000305876A (en) 2000-11-02

Family

ID=14717194

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11117662A Pending JP2000305876A (en) 1999-04-26 1999-04-26 Method for monitoring connection activity

Country Status (1)

Country Link
JP (1) JP2000305876A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7342930B2 (en) 2002-08-20 2008-03-11 Ntt Docomo, Inc. Communication equipment, communication system, and communication method
JP2014032576A (en) * 2012-08-06 2014-02-20 Hitachi Solutions Ltd Multiplexing method of network device or server device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7342930B2 (en) 2002-08-20 2008-03-11 Ntt Docomo, Inc. Communication equipment, communication system, and communication method
JP2014032576A (en) * 2012-08-06 2014-02-20 Hitachi Solutions Ltd Multiplexing method of network device or server device

Similar Documents

Publication Publication Date Title
CN100568854C (en) A kind of method and interface board that keeps neighborhood
EP1697843B1 (en) System and method for managing protocol network failures in a cluster system
KR100744448B1 (en) Communication system
JP2006013827A (en) Packet transfer apparatus
JP2010103695A (en) Cluster system, cluster server and cluster control method
US7768905B2 (en) Program and method for controlling communication
JP2008503116A (en) Data transmission method between devices in a network
US8266253B2 (en) Server system and event message transmission method therefor, client terminal and connection method and program therefor, and recording medium
JP2003520477A (en) Method and apparatus for performing reliable communication in an intelligent network
JP2000305876A (en) Method for monitoring connection activity
CN116028278A (en) Main/standby dual-machine switching method, medium and system
JP2007141129A (en) System switching method, computer system and program
JP3709319B2 (en) How to reconnect the terminal to the host computer
JP3037233B2 (en) Personal communication system
JP4692419B2 (en) Network device, redundant switching method used therefor, and program thereof
JP5125207B2 (en) IP telephone communication system and IP telephone communication method
CN115426250B (en) Dual-machine hot standby switching method and device for target range command
CN114095759B (en) Stream media redirection method and related device
CN115065649B (en) Method, device, equipment and storage medium for determining service message forwarding mode
JP2011118634A (en) Terminal management device and control method thereof
US11234142B2 (en) System and method for single-channel architecture for immediate access point redundancy
JP2544481B2 (en) Communication control method
US20030084166A1 (en) Server computer, its connection close method and computer program product therefor
JP3678601B2 (en) Terminal emulator communication control method
JP2889888B2 (en) Communication processing device