JP2000057095A - Method and system for processing communication - Google Patents

Method and system for processing communication

Info

Publication number
JP2000057095A
JP2000057095A JP10223293A JP22329398A JP2000057095A JP 2000057095 A JP2000057095 A JP 2000057095A JP 10223293 A JP10223293 A JP 10223293A JP 22329398 A JP22329398 A JP 22329398A JP 2000057095 A JP2000057095 A JP 2000057095A
Authority
JP
Japan
Prior art keywords
communication
socket
terminal
control
connection
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.)
Granted
Application number
JP10223293A
Other languages
Japanese (ja)
Other versions
JP3398681B2 (en
Inventor
Shoichi Mukai
昇一 向井
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.)
NEC Software Shikoku Ltd
Original Assignee
NEC Software Shikoku 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 NEC Software Shikoku Ltd filed Critical NEC Software Shikoku Ltd
Priority to JP22329398A priority Critical patent/JP3398681B2/en
Publication of JP2000057095A publication Critical patent/JP2000057095A/en
Application granted granted Critical
Publication of JP3398681B2 publication Critical patent/JP3398681B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To continue communication between a server and a terminal without disconnecting a TCP/IP connection even when a process performing communication is abnormally finished. SOLUTION: Concerning this communication processing system, plural terminals 21, 22...2m and respective TCP/IP connections 51, 52...5m are established and communication processes 31, 32...3n for performing communication while using sockets 511, 521... are provided on a server 1. In this case, the system is provided with a control process 30 for monitoring the communication and the states of the communication processes 31 and 32 by respectively establishing connections 61 and 62 for control with the communication processes 31 and 32 and an inter-process shared memory 4 for managing the processing state of communication with the terminals 21 and 22.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、サーバと複数の端
末とがTCP/IPコネクションを確立し、ソケット
(SOCKET)を用いて通信を行う通信処理方法及び
これを用いた通信処理システムに関する。
The present invention relates to a communication processing method for establishing a TCP / IP connection between a server and a plurality of terminals and performing communication using a socket (SOCKET), and a communication processing system using the same.

【0002】[0002]

【従来の技術】例えば、特開平5−298221号公報
に開示されたネットワークインターフェース装置におい
ては、非インテイリジェント型の端末装置が、インテリ
ジェント型の装置が接続されたネットワークと前記非イ
ンテリジェント型の端末装置との間に設けられたネット
ワークインターフェース装置を介して所定の通信プロト
コル、例えばTCP/IPに従って前記インテリジェン
ト型の装置とのコネクションを確立して通信を行う構成
となっている。また、特開平8−180020号公報に
開示された分散処理システムにおいては、サーバと複数
の端末とがネットワークを介して接続され、プロセスの
実行途中である端末がシステムダウン等で異常終了した
場合、その端末を再立上げした後、サーバからその端末
に所定の情報を送信することによって異常終了時に実行
中だったプロセスを再実行する構成となっている。
2. Description of the Related Art For example, in a network interface device disclosed in Japanese Patent Application Laid-Open No. 5-298221, a non-intelligent terminal device is connected to a network to which an intelligent device is connected and the non-intelligent terminal. The communication is established by establishing a connection with the intelligent device according to a predetermined communication protocol, for example, TCP / IP, via a network interface device provided between the device and the device. Further, in the distributed processing system disclosed in Japanese Patent Application Laid-Open No. H8-180020, when a server and a plurality of terminals are connected via a network, and a terminal in the middle of executing a process is abnormally terminated due to a system down or the like, After restarting the terminal, the server transmits predetermined information to the terminal to re-execute the process that was being executed at the time of the abnormal termination.

【0003】[0003]

【発明が解決しようとする課題】上述のように、従来の
技術においては、TCP/IPコネクションを確立して
通信しているプロセスが異常終了すると、前記TCP/
IPコネクションが切断されてしまうという問題があっ
た。
As described above, in the prior art, when a process for establishing and communicating with a TCP / IP connection ends abnormally, the TCP / IP connection is terminated.
There is a problem that the IP connection is disconnected.

【0004】本発明は、通信を行うプロセスが異常終了
しても、TCP/IPコネクションを切断することな
く、サーバと端末とが通信を継続することができるよう
にすることを目的とする。
[0004] It is an object of the present invention to enable communication between a server and a terminal without disconnecting a TCP / IP connection even if a process for performing communication ends abnormally.

【0005】[0005]

【課題を解決するための手段】本発明の通信処理方法
は、サーバと複数の端末とがTCP/IPコネクション
を確立し、ソケットを用いて通信を行う通信処理方法に
おいて、通信を行うプロセス以外にソケットをバックア
ップするプロセスを備えたことを特徴とする。
A communication processing method according to the present invention is a communication processing method for establishing a TCP / IP connection between a server and a plurality of terminals and performing communication using a socket, except for a process for performing communication. A process for backing up a socket is provided.

【0006】また、本発明の通信処理システムは、複数
の端末とTCP/IPコネクションを確立し、ソケット
を用いて通信を行うプロセスをサーバ上に有する通信処
理システムにおいて、前記プロセスとの間に制御用コネ
クションを確立して通信及び前記プロセスの状態監視を
行う制御手段と、前記端末との通信の処理状態を管理す
る手段とを備えたことを特徴とする。
A communication processing system according to the present invention has a process for establishing a TCP / IP connection with a plurality of terminals and performing communication using a socket on a server. Control means for establishing a connection for use and monitoring the state of the communication and the process, and means for managing the processing state of the communication with the terminal.

【0007】また、本発明の通信処理システムは、前記
プロセスは、前記端末とのTCP/IPコネクションを
確立してソケットを取得し、この取得したソケットを前
記制御用コネクションを通じて前記制御手段にコピー
し、前記制御手段は、前記コピーされたソケットをバッ
クアップ用ソケットとして保持することを特徴とする。
In the communication processing system according to the present invention, the process establishes a TCP / IP connection with the terminal to acquire a socket, and copies the acquired socket to the control means through the control connection. The control means holds the copied socket as a backup socket.

【0008】また、本発明の通信処理システムは、前記
制御手段は、前記プロセスの異常終了を検出すると、前
記バックアップ用ソケットを前記制御用コネクションを
通じて前記プロセスとは別のプロセスにコピーし、前記
別のプロセスは、前記バックアップ用ソケットのコピー
を使用して前記端末との通信処理を継続することを特徴
とする。
Further, in the communication processing system according to the present invention, when the control means detects an abnormal termination of the process, the control means copies the backup socket to a process different from the process through the control connection. Is characterized by continuing the communication process with the terminal using the copy of the backup socket.

【0009】また、本発明の通信処理システムは、前記
制御手段は、前記プロセスの異常終了を検出した時点で
新たに別のソケットを用いて通信を行うプロセスを生成
するプロセス生成手段を備えたことを特徴とする。
In the communication processing system according to the present invention, the control means includes a process generating means for generating a process for newly performing communication using another socket when detecting abnormal termination of the process. It is characterized by.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0011】図1及び図2は、本発明の第1の実施の形
態における通信処理システムの構成及び処理の流れを示
す図である。この通信処理システムは、サーバ1と、複
数の端末21、22、…2mとで構成され、端末21、
22、…2mとサーバ1との間で、TCP/IPコネク
ション51、52、…5mを確立して通信を行う。
FIGS. 1 and 2 are diagrams showing the configuration and processing flow of a communication processing system according to a first embodiment of the present invention. This communication processing system includes a server 1 and a plurality of terminals 21, 22,.
, 2m and the server 1 establish TCP / IP connections 51, 52,.

【0012】サーバ1は、制御プロセス30と、通信プ
ロセス31、32、…3nと、プロセス間共有メモリ4
とを有する。制御プロセス30は、通信プロセス31、
32、…3nとの間に制御用コネクション61、62、
…6nを確立して通信及び通信プロセス31、32、…
3nの状態監視を行う。
The server 1 includes a control process 30, communication processes 31, 32,...
And The control process 30 includes a communication process 31,
32,... 3n, control connections 61, 62,
... 6n are established and communication and communication processes 31, 32, ...
3n is monitored.

【0013】以下では、説明を簡明にするため、端末2
1、22、TCP/IPコネクション51、52、通信
プロセス31、32、制御用コネクション61、62だ
けを参照し、端末2m、TCP/IPコネクション5
m、通信プロセス3n及び制御用コネクション6nは参
照しない。
In the following, for the sake of simplicity, the terminal 2
1, 22, the TCP / IP connections 51 and 52, the communication processes 31 and 32, the control connections 61 and 62, and the terminal 2m, the TCP / IP connection 5
m, the communication process 3n and the control connection 6n are not referred to.

【0014】制御プロセス30は、バックアップ管理表
725と、プロセス管理表736とを備えている。バッ
クアップ管理表725は、端末21、22の端末識別
と、TCP/IPコネクション51、52の制御プロセ
ス30側のバックアップ用のソケット(以後、バックア
ップソケットと呼称する。)510、520とを格納す
る。一方、プロセス管理表736は、通信プロセス3
1、32のプロセス識別と、制御用コネクション61、
62の制御プロセス30側のソケット(以後、制御ソケ
ットと呼称する)610、620とを格納する。
The control process 30 has a backup management table 725 and a process management table 736. The backup management table 725 stores terminal identifications of the terminals 21 and 22, and backup sockets (hereinafter referred to as backup sockets) 510 and 520 on the control process 30 side of the TCP / IP connections 51 and 52. On the other hand, the process management table 736 indicates that the communication process 3
1, 32 process identification and control connection 61,
The sockets 62 (hereinafter referred to as control sockets) 610 and 620 of the control process 30 are stored.

【0015】また制御プロセス30は、ソケット51
1、521のコピーであるソケット510、520を取
得し、バックアップソケットとして保持する。さらに、
制御プロセス30は、通信プロセス31の異常終了を検
知すると、バックアップソケット510、520を制御
用コネクション62を通じて通信プロセス32にコピー
する。
The control process 30 includes a socket 51
The sockets 510 and 520, which are copies of the files 1, 521, are acquired and held as backup sockets. further,
When detecting the abnormal termination of the communication process 31, the control process 30 copies the backup sockets 510 and 520 to the communication process 32 via the control connection 62.

【0016】通信プロセス31は、ソケット管理表35
1を備えている。このソケット管理表351は、TCP
/IPコネクション51、52に対応する通信プロセス
31側のソケット511、521を、端末21、22の
端末識別と対応付けて格納する。また、通信プロセス3
2も同様にソケット管理表352を備えている。さら
に、通信プロセス31は、端末21、22とのTCP/
IPコネクション51、52を確立してソケット51
1、521を取得し、これらのソケット511、521
を制御用コネクション61を通じて制御プロセス30に
コピーする。
The communication process 31 includes a socket management table 35
1 is provided. This socket management table 351 is a TCP
The sockets 511 and 521 of the communication process 31 corresponding to the / IP connections 51 and 52 are stored in association with the terminal identifications of the terminals 21 and 22. Communication process 3
2 also has a socket management table 352. Further, the communication process 31 communicates with the terminals 21 and 22 via TCP /
Establish IP connections 51 and 52 to establish socket 51
1, 521, and these sockets 511, 521
Is copied to the control process 30 through the control connection 61.

【0017】プロセス間共有メモリ4は、端末管理表7
23を備えている。この端末管理表723は、端末2
1、22の端末識別と、通信プロセス31、32のプロ
セス識別と、端末21、22との通信の処理状態とを格
納する。
The inter-process shared memory 4 has a terminal management table 7
23. This terminal management table 723 indicates that the terminal 2
The terminal identifications 1 and 22, the process identifications of the communication processes 31 and 32, and the processing status of communication with the terminals 21 and 22 are stored.

【0018】端末21、22は、サーバ1に対して接続
要求を行ったり、サーバ1からの接続要求を受け付け
て、サーバ1との間にTCP/IPコネクション51、
52を確立してトランザクションなどの通信処理を行
う。
The terminals 21 and 22 make a connection request to the server 1 or receive a connection request from the server 1, and make a TCP / IP connection 51,
52 to perform communication processing such as a transaction.

【0019】通信プロセス32は、バックアップソケッ
ト510、520のコピーであるソケット512、52
2を取得し、プロセス間共有メモリ4上の端末管理表7
23の端末21、22対応のレコードから端末21、2
2の状態を引き継ぎ、通信処理を継続する。また、ソケ
ット管理表352に端末21、22の端末識別と、ソケ
ット512、522とを対応付けて登録し、プロセス間
共有メモリ4上の端末管理表723の、端末21、22
対応のレコードに通信プロセス32のプロセス識別を登
録し直す。
Communication process 32 includes sockets 512 and 52 which are copies of backup sockets 510 and 520.
2 and the terminal management table 7 on the inter-process shared memory 4
From the records corresponding to the 23 terminals 21 and 22, the terminals 21, 2
2 and the communication process is continued. In addition, the terminal identifications of the terminals 21 and 22 and the sockets 512 and 522 are registered in the socket management table 352 in association with each other, and the terminals 21 and 22 of the terminal management table 723 on the inter-process shared memory 4 are registered.
The process identification of the communication process 32 is registered again in the corresponding record.

【0020】次に、本実施形態の動作を図1及び図2を
用いて説明する。まず、制御プロセス30は、通信プロ
セス31、32との間にそれぞれ制御用コネクション6
1、62を確立し、制御ソケット610、620を取得
する。次に制御プロセス30は、取得した制御ソケット
610、620をそれぞれ通信プロセス31、32のプ
ロセス識別と対応付けてプロセス管理表736に登録す
る。
Next, the operation of this embodiment will be described with reference to FIGS. First, the control process 30 establishes a control connection 6 with the communication processes 31 and 32, respectively.
1 and 62 are established, and control sockets 610 and 620 are obtained. Next, the control process 30 registers the acquired control sockets 610 and 620 in the process management table 736 in association with the process identifications of the communication processes 31 and 32, respectively.

【0021】一方、通信プロセス31は、端末21との
間にTCP/IPコネクション51を確立する時にソケ
ット511を取得し、このソケット511を端末21の
端末識別と対応付けてソケット管理表351に登録す
る。また、通信プロセス31は、プロセス間共有メモリ
4上の端末管理表723に、端末21の端末識別と、通
信プロセス31のプロセス識別と、端末21の端末状態
とを対応付けて登録する。さらに、通信プロセス31
は、制御用コネクション61を通してソケット511を
制御プロセス30にコピーすると共に、端末21の端末
識別を制御プロセス30に通知する。
On the other hand, the communication process 31 acquires the socket 511 when establishing the TCP / IP connection 51 with the terminal 21 and registers the socket 511 in the socket management table 351 in association with the terminal identification of the terminal 21. I do. Further, the communication process 31 registers the terminal identification of the terminal 21, the process identification of the communication process 31, and the terminal state of the terminal 21 in the terminal management table 723 on the inter-process shared memory 4 in association with each other. Further, the communication process 31
Copies the socket 511 to the control process 30 through the control connection 61, and notifies the control process 30 of the terminal identification of the terminal 21.

【0022】次いで、制御プロセス30は、バックアッ
プ管理表725に、ソケット511のコピーであるソケ
ット510と、端末21の端末識別とを対応付けて登録
する。この結果、ソケット511のコピーであるソケッ
ト510がバックアップ用ソケットとして保持される。
Next, the control process 30 registers the socket 510, which is a copy of the socket 511, and the terminal identification of the terminal 21 in the backup management table 725 in association with each other. As a result, the socket 510 which is a copy of the socket 511 is held as a backup socket.

【0023】そして制御プロセス30は、制御ソケット
610により制御用コネクション61の切断を通知され
ると、プロセス管理表736を検索して制御ソケット6
10に対応する通信プロセス31の終了を検出する。続
いて制御プロセス30は、プロセス間共有メモリ4上の
端末管理表723から通信プロセス31のプロセス識別
を持つレコードを全て抽出する。ここでは、端末21に
対応するレコードが抽出された場合を例に説明する。制
御プロセス30は、抽出したレコードの端末21の端末
識別をキーに、バックアップ管理表725を検索してバ
ックアップソケット510を取得し、制御用コネクショ
ン62を通して、バックアップソケット510を通信プ
ロセス32にコピーすると共に、端末21の端末識別を
通信プロセス32に通知する。
When notified of the disconnection of the control connection 61 by the control socket 610, the control process 30 searches the process management table 736 and
The end of the communication process 31 corresponding to 10 is detected. Subsequently, the control process 30 extracts all records having the process identification of the communication process 31 from the terminal management table 723 on the inter-process shared memory 4. Here, a case where a record corresponding to the terminal 21 is extracted will be described as an example. The control process 30 retrieves the backup socket 510 by searching the backup management table 725 using the terminal identification of the terminal 21 of the extracted record as a key, and copies the backup socket 510 to the communication process 32 through the control connection 62. , And notifies the communication process 32 of the terminal identification of the terminal 21.

【0024】その後、通信プロセス32は、バックアッ
プソケット510のコピーであるソケット512と、端
末21の端末識別とを対応付けてソケット管理表352
に登録する。また、通信プロセス32は、プロセス間共
有メモリ4上の端末管理表723から、端末21の端末
識別をキーに対応するレコードを検索し、端末21に対
応するレコードのプロセス識別を、自プロセスのプロセ
ス識別「32」に更新し、レコードから端末21の端末
状態を引き継いで通信処理を継続する。このようにし
て、通信プロセス32は、ソケット510のコピーであ
るソケット512を使用して、端末21との通信処理を
継続する。
Thereafter, the communication process 32 associates the socket 512, which is a copy of the backup socket 510, with the terminal identification of the terminal 21, and associates the socket 512 with the terminal identification of the terminal 21.
Register with. Further, the communication process 32 searches the terminal management table 723 on the inter-process shared memory 4 for a record corresponding to the terminal identification of the terminal 21 as a key, and identifies the process identification of the record corresponding to the terminal 21 as the process of its own process. The identification is updated to “32”, and the terminal state of the terminal 21 is taken over from the record, and the communication process is continued. In this manner, the communication process 32 continues the communication process with the terminal 21 using the socket 512 which is a copy of the socket 510.

【0025】このように、第1の実施形態によれば、制
御プロセス30がバックアップソケット510を保持し
ているため、通信プロセス31が異常終了しても、サー
バ1と端末21とのTCP/IPコネクション51は切
断されない。
As described above, according to the first embodiment, since the control process 30 holds the backup socket 510, even if the communication process 31 terminates abnormally, the TCP / IP between the server 1 and the terminal 21 The connection 51 is not disconnected.

【0026】次に、本発明の第2の実施の形態を図3及
び図4を参照して説明する。本実施形態は、通信プロセ
ス31が異常終了したときに初めて通信プロセス32が
起動される点が図1及び図2で示す第1の実施の形態と
異なる。即ち、本実施形態においては、制御プロセス3
0は、通信プロセス31の異常終了を検出した時点で通
信プロセス32を生成するプロセス生成手段800を備
えている。
Next, a second embodiment of the present invention will be described with reference to FIGS. This embodiment is different from the first embodiment shown in FIGS. 1 and 2 in that the communication process 32 is started only when the communication process 31 ends abnormally. That is, in the present embodiment, the control process 3
0 is provided with a process generating means 800 for generating the communication process 32 when the abnormal termination of the communication process 31 is detected.

【0027】以下、本実施形態の動作について説明す
る。まず図3に示すように、制御プロセス30が通信プ
ロセス31との間に制御用コネクション61を確立し、
制御ソケット610を取得する。次に制御プロセス30
は、この取得した制御ソケット610を通信プロセス3
1のプロセス識別と対応付けてプロセス管理表736に
登録する。
The operation of this embodiment will be described below. First, as shown in FIG. 3, the control process 30 establishes a control connection 61 with the communication process 31,
Acquire the control socket 610. Next, the control process 30
Communicates the acquired control socket 610 with the communication process 3
1 and is registered in the process management table 736 in association with the process identification.

【0028】一方、通信プロセス31は、端末21との
間にTCP/IPコネクション51を確立する時にソケ
ット511を取得し、このソケット511を端末21の
端末識別と対応付けてソケット管理表351に登録す
る。また、通信プロセス31は、プロセス間共有メモリ
4上の端末管理表723に、端末21の端末識別と、通
信プロセス31のプロセス識別と、端末21の端末状態
とを対応付けて登録する。さらに、通信プロセス31
は、制御用コネクション61を通してソケット511を
制御プロセス30にコピーすると共に、端末21の端末
識別を制御プロセス30に通知する。
On the other hand, the communication process 31 acquires the socket 511 when establishing the TCP / IP connection 51 with the terminal 21, and registers this socket 511 in the socket management table 351 in association with the terminal identification of the terminal 21. I do. Further, the communication process 31 registers the terminal identification of the terminal 21, the process identification of the communication process 31, and the terminal state of the terminal 21 in the terminal management table 723 on the inter-process shared memory 4 in association with each other. Further, the communication process 31
Copies the socket 511 to the control process 30 through the control connection 61, and notifies the control process 30 of the terminal identification of the terminal 21.

【0029】次いで、制御プロセス30は、バックアッ
プ管理表725に、ソケット511のコピーであるソケ
ット510と、端末21の端末識別とを対応付けて登録
する。この結果、ソケット511のコピーであるソケッ
ト510がバックアップ用ソケットとして保持される。
Next, the control process 30 registers the socket 510, which is a copy of the socket 511, and the terminal identification of the terminal 21 in the backup management table 725 in association with each other. As a result, the socket 510 which is a copy of the socket 511 is held as a backup socket.

【0030】そして、図4に示すように、制御プロセス
30は、制御ソケット610から制御用コネクション6
1の切断を通知されると、プロセス管理表736を検索
して制御ソケット610に対応する通信プロセス31の
終了を検出する。続いて、制御プロセス30は、通信プ
ロセス生成手段800を起動して通信プロセス31の処
理を引き継ぐための通信プロセス32を生成する。次い
で、制御プロセス30は、通信プロセス32との間に制
御用コネクション62を確立し、制御ソケット620を
取得して、この制御ソケット620を通信プロセス32
のプロセス識別と対応付けてプロセス管理表736に登
録する。以後、通信プロセス32が端末21の端末状態
を引き継いで通信処理を継続するまでの動作は、第1の
実施の形態と同じである。
Then, as shown in FIG. 4, the control process 30 sends the control connection 6
When the disconnection of the communication process 31 is notified, the process management table 736 is searched to detect the end of the communication process 31 corresponding to the control socket 610. Subsequently, the control process 30 activates the communication process generation means 800 to generate the communication process 32 for taking over the processing of the communication process 31. Next, the control process 30 establishes the control connection 62 with the communication process 32, acquires the control socket 620, and connects the control socket 620 to the communication process 32.
And registered in the process management table 736 in association with the process identification. Thereafter, the operation until the communication process 32 takes over the terminal state of the terminal 21 and continues the communication processing is the same as that of the first embodiment.

【0031】以上のように、第2の実施形態によれば、
第1の実施形態と同様に、制御プロセス30がバックア
ップソケット510を保持しているため、通信プロセス
31が異常終了しても、サーバ1と端末21との間のT
CP/IPコネクション51は切断されない。また、制
御プロセス30が、端末21と通信処理中の通信プロセ
ス31の異常終了を検出した時点で初めて通信プロセス
生成手段800を起動して端末21との通信処理をリカ
バリする他の通信プロセス32を生成することにより、
サーバ1の資源を節約することができる。
As described above, according to the second embodiment,
Similarly to the first embodiment, since the control process 30 holds the backup socket 510, even if the communication process 31 ends abnormally, the T
The CP / IP connection 51 is not disconnected. Further, when the control process 30 detects an abnormal end of the communication process 31 which is in the process of communicating with the terminal 21, the control process 30 activates the communication process generating means 800 for the first time and starts another communication process 32 for recovering the communication process with the terminal 21. By generating
The resources of the server 1 can be saved.

【0032】[0032]

【発明の効果】上述のように、本発明によれば、端末と
通信プロセスとの間で一度確立された、TCP/IPコ
ネクションが、常に制御プロセスにバックアップされて
いるため、通信プロセスが異常終了しても、端末とのT
CP/IPコネクションを保持することができる。ま
た、プロセス間共有メモリによって端末との通信の処理
状態を管理し、それを通信プロセス間で引き継ぐため、
通信プロセスが異常終了しても通信処理を継続すること
ができる。従って、通信を行うプロセスが異常終了して
も、TCP/IPコネクションを切断することなく、サ
ーバと端末とが通信を継続することができる。
As described above, according to the present invention, since the TCP / IP connection once established between the terminal and the communication process is always backed up in the control process, the communication process ends abnormally. Even T with the terminal
CP / IP connection can be maintained. In addition, to manage the processing state of communication with the terminal by the inter-process shared memory, and to take it over between communication processes,
The communication process can be continued even if the communication process ends abnormally. Therefore, even if the process of performing communication ends abnormally, communication between the server and the terminal can be continued without disconnecting the TCP / IP connection.

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

【図1】 本発明の第1の実施の形態における通信処理
システムの構成及び処理の流れを示す図である。
FIG. 1 is a diagram showing a configuration and a processing flow of a communication processing system according to a first embodiment of the present invention.

【図2】 本発明の第1の実施の形態における通信処理
システムの構成及び処理の流れを示す図である。
FIG. 2 is a diagram illustrating a configuration and a processing flow of a communication processing system according to the first embodiment of the present invention.

【図3】 本発明の第2の実施の形態における通信処理
システムの構成及び処理の流れを示す図である。
FIG. 3 is a diagram illustrating a configuration and a processing flow of a communication processing system according to a second embodiment of the present invention.

【図4】 本発明の第2の実施の形態における通信処理
システムの構成及び処理の流れを示す図である。
FIG. 4 is a diagram illustrating a configuration and a processing flow of a communication processing system according to a second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 サーバ 21、22、…2m 端末 30 制御プロセス 31、32、…3n 通信プロセス 4 プロセス間共有メモリ 51、52、…5m TCP/IPコネクション 61、62、…6n 制御用コネクション 1 server 21, 22,... 2m terminal 30 control process 31, 32,... 3n communication process 4 inter-process shared memory 51, 52,... 5m TCP / IP connection 61, 62,.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 サーバと複数の端末とがTCP/IPコ
ネクションを確立し、ソケットを用いて通信を行う通信
処理方法において、通信を行うプロセス以外に前記ソケ
ットをバックアップするプロセスを備えたことを特徴と
する通信処理方法。
1. A communication processing method for establishing a TCP / IP connection between a server and a plurality of terminals and performing communication using a socket, further comprising a process for backing up the socket in addition to a process for performing communication. Communication processing method.
【請求項2】 複数の端末とTCP/IPコネクション
を確立し、ソケットを用いて通信を行うプロセスをサー
バ上に有する通信処理システムにおいて、前記プロセス
との間に制御用コネクションを確立して通信及び前記プ
ロセスの状態監視を行う制御手段と、前記端末との通信
の処理状態を管理する手段とを備えたことを特徴とする
通信処理システム。
2. In a communication processing system having a process for establishing a TCP / IP connection with a plurality of terminals and performing communication using a socket on a server, a control connection is established between the process and the process. A communication processing system comprising: a control unit that monitors a state of the process; and a unit that manages a processing state of communication with the terminal.
【請求項3】 前記プロセスは、前記端末とのTCP/
IPコネクションを確立してソケットを取得し、この取
得したソケットを前記制御用コネクションを通じて前記
制御手段にコピーし、前記制御手段は、前記コピーされ
たソケットをバックアップ用ソケットとして保持するこ
とを特徴とする請求項2記載の通信処理システム。
3. The method according to claim 1, wherein the process comprises:
Establishing an IP connection to obtain a socket; copying the obtained socket to the control means through the control connection; and the control means holding the copied socket as a backup socket. The communication processing system according to claim 2.
【請求項4】 前記制御手段は、前記プロセスの異常終
了を検出すると、前記バックアップ用ソケットを前記制
御用コネクションを通じて前記プロセスとは別のプロセ
スにコピーし、前記別のプロセスは、前記バックアップ
用ソケットのコピーを使用して前記端末との通信処理を
継続することを特徴とする請求項2または3記載の通信
処理システム。
4. When the control means detects an abnormal termination of the process, the control means copies the backup socket to a process different from the process through the control connection. The communication processing system according to claim 2, wherein the communication processing with the terminal is continued by using the copy of the communication processing.
【請求項5】 前記制御手段は、前記プロセスの異常終
了を検出した時点で新たに別のソケットを用いて通信を
行うプロセスを生成するプロセス生成手段を備えたこと
を特徴とする請求項2または3記載の通信処理システ
ム。
5. The method according to claim 2, wherein the control unit includes a process generation unit that newly generates a process for performing communication using another socket when an abnormal termination of the process is detected. 3. The communication processing system according to 3.
JP22329398A 1998-08-06 1998-08-06 Communication processing system Expired - Fee Related JP3398681B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22329398A JP3398681B2 (en) 1998-08-06 1998-08-06 Communication processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22329398A JP3398681B2 (en) 1998-08-06 1998-08-06 Communication processing system

Publications (2)

Publication Number Publication Date
JP2000057095A true JP2000057095A (en) 2000-02-25
JP3398681B2 JP3398681B2 (en) 2003-04-21

Family

ID=16795880

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22329398A Expired - Fee Related JP3398681B2 (en) 1998-08-06 1998-08-06 Communication processing system

Country Status (1)

Country Link
JP (1) JP3398681B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002108817A (en) * 2000-07-15 2002-04-12 Internatl Business Mach Corp <Ibm> Method for monitoring availability with shared database
US6934247B2 (en) 2000-11-24 2005-08-23 International Business Machines Corporation Recovery following process or system failure
JP2008103952A (en) * 2006-10-18 2008-05-01 Fujitsu Ltd Communication managing device and communication managing method
US9992309B2 (en) 2012-11-20 2018-06-05 Kabushiki Kaisha Toshiba Communication device and communication method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01224846A (en) * 1988-03-04 1989-09-07 Fujitsu Ltd Process space switching control system
JPH0352049A (en) * 1989-07-20 1991-03-06 Fujitsu Ltd Continuous operation guaranteeing processing method for communication control program
JPH04355835A (en) * 1991-06-03 1992-12-09 Fujitsu Ltd Device with capability saving and restoring mechanism
JPH0926891A (en) * 1995-01-23 1997-01-28 Tandem Comput Inc Method for maintenance of network connection between applications and data-processing system
JPH1021096A (en) * 1996-07-03 1998-01-23 Oki Electric Ind Co Ltd Abnormal end detecting method for process
JPH1074185A (en) * 1996-05-03 1998-03-17 Internatl Business Mach Corp <Ibm> System for maintaining inter-host connection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01224846A (en) * 1988-03-04 1989-09-07 Fujitsu Ltd Process space switching control system
JPH0352049A (en) * 1989-07-20 1991-03-06 Fujitsu Ltd Continuous operation guaranteeing processing method for communication control program
JPH04355835A (en) * 1991-06-03 1992-12-09 Fujitsu Ltd Device with capability saving and restoring mechanism
JPH0926891A (en) * 1995-01-23 1997-01-28 Tandem Comput Inc Method for maintenance of network connection between applications and data-processing system
JPH1074185A (en) * 1996-05-03 1998-03-17 Internatl Business Mach Corp <Ibm> System for maintaining inter-host connection
JPH1021096A (en) * 1996-07-03 1998-01-23 Oki Electric Ind Co Ltd Abnormal end detecting method for process

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002108817A (en) * 2000-07-15 2002-04-12 Internatl Business Mach Corp <Ibm> Method for monitoring availability with shared database
US6968381B2 (en) 2000-07-15 2005-11-22 International Business Machines Corporation Method for availability monitoring via a shared database
US6934247B2 (en) 2000-11-24 2005-08-23 International Business Machines Corporation Recovery following process or system failure
JP2008103952A (en) * 2006-10-18 2008-05-01 Fujitsu Ltd Communication managing device and communication managing method
US9992309B2 (en) 2012-11-20 2018-06-05 Kabushiki Kaisha Toshiba Communication device and communication method

Also Published As

Publication number Publication date
JP3398681B2 (en) 2003-04-21

Similar Documents

Publication Publication Date Title
JP4087271B2 (en) Proxy response device and network system
CN112506702B (en) Disaster recovery method, device, equipment and storage medium for data center
JP2003022258A (en) Backup system for server
JPH11120012A (en) Client-server type data base management system and recording medium where program thereof is recorded
CN112769652B (en) Node service monitoring method, device, equipment and medium
CN109245953B (en) Network configuration method and device
US20040123183A1 (en) Method and apparatus for recovering from a failure in a distributed event notification system
CN105490847B (en) A kind of private cloud storage system interior joint failure real-time detection and processing method
JPH10187567A (en) Socket binding method for communication system
CN114090342A (en) Storage disaster tolerance link management method, message execution node and storage control cluster
JP3398681B2 (en) Communication processing system
JP2950262B2 (en) How to set up a multi-integrated agent system
JPH10336272A (en) Data communication system and data communication method
CN114422335A (en) Communication method, communication device, server and storage medium
Cisco CWM to CWM Communications
JP2776442B2 (en) Compound computer system
JPH07114495A (en) Multiplexing file managing system
CN105786645A (en) Backup and restoring methods and devices of operating system
JPH11312111A (en) Method for restoring data base and data base management system thereof
CN115617917B (en) Method, device, system and equipment for controlling multiple activities of database cluster
CN115134220B (en) Master-slave server switching method and device, computing equipment and storage medium
CN117640349A (en) Fault recovery method and device for network additional storage system cluster and host equipment
JPH02260055A (en) Inter-computer file transfer system
JPH04181330A (en) Recovery system for fault of window application
JP3226934B2 (en) Server power off control method for information processing system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030128

LAPS Cancellation because of no payment of annual fees