JPH05346898A - Client/server system by tcp/ip - Google Patents

Client/server system by tcp/ip

Info

Publication number
JPH05346898A
JPH05346898A JP4156703A JP15670392A JPH05346898A JP H05346898 A JPH05346898 A JP H05346898A JP 4156703 A JP4156703 A JP 4156703A JP 15670392 A JP15670392 A JP 15670392A JP H05346898 A JPH05346898 A JP H05346898A
Authority
JP
Japan
Prior art keywords
connection
client
server
establishment request
error
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
JP4156703A
Other languages
Japanese (ja)
Inventor
Kyoji Fujino
恭司 藤野
Hirofumi Kamimura
洋文 上村
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.)
Omron Corp
Nissan Motor Co Ltd
Original Assignee
Omron Corp
Nissan Motor Co Ltd
Omron Tateisi Electronics Co
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 Omron Corp, Nissan Motor Co Ltd, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP4156703A priority Critical patent/JPH05346898A/en
Publication of JPH05346898A publication Critical patent/JPH05346898A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To automatically release the connection, in the case a communication error is generated on the connection between a server and a client by a TCP/IP. CONSTITUTION:In a TCP layer of a client 1, in the case a communication error is generated at the time of data communication by a connection, a data transmission/reception processing part 11 detects its error, a connection control part 13 closes the connection, and a connection establishment request part 12 outputs a connection establishment request until the connection is established. On a server 2 side, a connection establishment passive part 22 receives its establishment request and establishes the connection, and by the normal connection concerned, data is subjected to communication by the data transmission/reception processing parts 11, 21.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、クライアント、サーバ
間にコネクションを確立し、当該コネクションによりデ
ータ通信を行うTCP/IPによるクライアント/サー
バシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a client / server system based on TCP / IP for establishing a connection between a client and a server and performing data communication by the connection.

【0002】[0002]

【従来の技術】TCP/IPによるクライアント/サー
バシステムにおいては、UNIXによるソケットインタ
フェースを利用して、クライアント、サーバ間にTCP
ポート(通信ポート)を介したコネクションを確立し、
当該コネクションによりデータ通信を行う方法がある。
2. Description of the Related Art In a client / server system based on TCP / IP, a socket interface based on UNIX is used to perform TCP between a client and a server.
Establish a connection through a port (communication port),
There is a method of performing data communication by the connection.

【0003】このようなシステムでは、TCPポートで
のコネクション確立中にデータ送受信エラーが発生した
場合、クライアント、サーバ各々においてオペレータに
よるコネクションクローズ処理が行われ、次いでクライ
アント、サーバの双方においてオペレータによるソフト
ウエアの立上げ直しが行われる。
In such a system, when a data transmission / reception error occurs while establishing a connection at a TCP port, connection closing processing is performed by the operator at each of the client and server, and then software by the operator at both the client and server. Is restarted.

【0004】[0004]

【発明が解決しようとする課題】しかし、このような従
来のエラー処理では、クライアント、サーバの双方にお
いて、オペレータによるコネクションクローズ処理およ
びソフトウエアの立上げオペレーションが要求され、し
かもクライアント、サーバ間で同期をとる必要があるた
め、復旧作業に非常に手間がかかる、という問題があ
る。
However, in such conventional error processing, connection closing processing and software startup operation by the operator are required in both the client and server, and moreover, synchronization between the client and server is required. Therefore, there is a problem that the recovery work is very troublesome because it is necessary to take measures.

【0005】そこで、本発明はこのような問題に着目し
てなされたもので、データ送受信時のエラー発生時に、
自動でクライアント、サーバ間のコネクションを復旧で
きるTCP/IPによるクライアント/サーバシステム
を提供することを目的とする。
Therefore, the present invention has been made by paying attention to such a problem, and when an error occurs during data transmission / reception,
It is an object of the present invention to provide a TCP / IP client / server system capable of automatically restoring a connection between a client and a server.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、本発明では、クライアント、サーバ間にコネクショ
ンを確立し、当該コネクションによりデータ通信を行う
TCP/IPによるクライアント/サーバシステムにお
いて、データ通信時にコネクション上での通信エラーを
検出するエラー検出手段と、上記エラー検出手段の検出
出力を受け、データ通信中のコネクションをクローズす
るコネクション消去手段と、上記エラー検出手段の検出
出力を受け、コネクション確立要求を出力するコネクシ
ョン確立要求手段と、上記コネクション確立要求手段か
らのコネクション確立要求を受け、新たにコネクション
を確立するコネクション確立手段と、を具備することを
特徴とする。
In order to achieve the above object, according to the present invention, a TCP / IP client / server system which establishes a connection between a client and a server and performs data communication by the connection is used at the time of data communication. Error detection means for detecting a communication error on the connection, a detection output of the error detection means, a connection erasing means for closing the connection during data communication, and a detection output of the error detection means for requesting connection establishment Is provided, and a connection establishing means for receiving a connection establishing request from the connection establishing requesting means and newly establishing a connection.

【0007】[0007]

【作用】上記構成では、データ通信時にコネクション上
で通信エラーが発生した場合、そのエラーを検出して、
自動的にエラー発生時のコネクションをクローズすると
共に、コネクション確立要求を出力して、新たなコネク
ションを確立する。
In the above configuration, when a communication error occurs on the connection during data communication, the error is detected,
It automatically closes the connection when an error occurs, outputs a connection establishment request, and establishes a new connection.

【0008】[0008]

【実施例】以下、本発明に係るTCP/IPによるクラ
イアント/サーバシステムの実施例を図面に基づいて説
明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a TCP / IP client / server system according to the present invention will be described below with reference to the drawings.

【0009】図1は、本システムを構成するクライアン
ト1およびサーバ2のTCPレイヤ(OSI参照モデル
でいう4層のトランスポート層に相当する)の構成を示
している。
FIG. 1 shows the structure of the TCP layers (corresponding to the four transport layers in the OSI reference model) of the client 1 and the server 2 which constitute this system.

【0010】本システムでは、クライアント1およびサ
ーバ2が、UNIXをオペレーティングシステムとして
使用しており、OSI参照モデルの3層、4層プロトコ
ルとしてTCP/IP、1層、2層プロトコルとしてイ
ーサネット等を使用しており、伝送路3を介して接続さ
れている。
In this system, the client 1 and the server 2 use UNIX as an operating system, and TCP / IP is used as the three-layer, four-layer protocol of the OSI reference model, and Ethernet is used as the one-layer and two-layer protocol. And are connected via the transmission line 3.

【0011】クライアント1は、コネクションを介して
データ送受信を行うと共に、送受信時のエラーや、ケー
ブル等の接続時、サーバ2側のコネクションクローズ処
理を検出してコネクションのクローズ指示及びコネクシ
ョン確立要求出力の指示を行うデータ送受信処理部11
と、データ送受信処理部11からの指示によりコネクシ
ョンが確立されるまでサーバ2に対しコネクション確立
要求を送信し続けるコネクション確立要求部12と、デ
ータ送受信処理部11からの指示によりコネクションを
クローズするコネクション制御部13と、をTCPレイ
ヤに有する。
The client 1 transmits / receives data via the connection, detects an error during transmission / reception, a connection closing process on the server 2 side when connecting a cable or the like, and outputs a connection closing instruction and a connection establishment request output. Data transmission / reception processing unit 11 for giving an instruction
And a connection establishment request unit 12 that continues to send a connection establishment request to the server 2 until a connection is established by an instruction from the data transmission / reception processing unit 11, and a connection control that closes the connection according to an instruction from the data transmission / reception processing unit 11. And a part 13 in the TCP layer.

【0012】サーバ2は、データ送受信処理部11と同
様にコネクションを介してデータ送受信を行うと共に、
送受信時のエラーや、ケーブル等の接続時、クライアン
ト1側のコネクションクローズ処理を検出してコネクシ
ョンのクローズ指示及びコネクション確立要求出力の指
示を行うデータ送受信処理部21と、クライアント1の
コネクション確立要求部12からの要求に対してコネク
ション確立処理を行うコネクション確立受動部22と、
コネクション受動部22により確立されたコネクション
を正規なものとし、古いコネクション(プロセス)をク
ローズするプロセス制御部23と、データ送受信処理部
23からの指示によりコネクションをクローズするコネ
クション制御部24と、をTCPレイヤに有する。
The server 2 transmits / receives data via a connection similarly to the data transmission / reception processing unit 11, and
A data transmission / reception processing unit 21 that detects an error during transmission / reception or a connection closing process on the client 1 side when a cable or the like is connected, and issues a connection close instruction and a connection establishment request output instruction, and a connection establishment request unit of the client 1. A connection establishment passive unit 22 that performs connection establishment processing in response to a request from 12;
The connection established by the connection passive unit 22 is made normal, and the process control unit 23 that closes the old connection (process) and the connection control unit 24 that closes the connection according to the instruction from the data transmission / reception processing unit 23 are transmitted by TCP. Have on layer.

【0013】これにより、クライアント1、サーバ2間
では、コネクション通信型伝送形態、即ちソケットイン
タフェースにより確立したコネクション両端の各TCP
ポート(通信ポート)を介してデータ通信が行われる。
As a result, between the client 1 and the server 2, the connection communication type transmission mode, that is, each TCP at both ends of the connection established by the socket interface is used.
Data communication is performed via a port (communication port).

【0014】次に、本システムにおけるクライアント
1、サーバ2間のデータ通信時にエラーが発生した際の
コネクション復旧処理を、図2のフローチャートを参照
して説明する。
Next, the connection restoration process when an error occurs during data communication between the client 1 and the server 2 in this system will be described with reference to the flowchart of FIG.

【0015】まず、通常のデータ通信時にはクライアン
ト1、サーバ2間にコネクションが確立されて、当該コ
ネクションを介して両データ送受信処理部11,21に
よりデータの送受信が行われている(ステップ100、
200“OK”)。
First, during normal data communication, a connection is established between the client 1 and the server 2, and data is transmitted / received by both the data transmission / reception processing units 11 and 21 through the connection (step 100,
200 "OK").

【0016】ここで、例えばクライアント1のTCPポ
ート内でデータ送受信エラーが発生した場合(ステップ
100“NG”)、クライアント1側ではデータ送受信
処理部11がそのエラーを検知して、コネクション制御
部13にコネクションをクローズ処理させると共に(ス
テップ110)、続いてコネクション確立要求部12に
新たなコネクションが確立されるまでコネクション確立
要求を出力させる(ステップ120“OK”)。
Here, for example, when a data transmission / reception error occurs in the TCP port of the client 1 (step 100 “NG”), the data transmission / reception processing unit 11 on the client 1 side detects the error and the connection control unit 13 is detected. To close the connection (step 110), and then cause the connection establishment request unit 12 to output a connection establishment request until a new connection is established (step 120 "OK").

【0017】サーバ2側では、クライアント1側のコネ
クションのクローズ処理をデータ送受信制御部11が検
出してコネクション確立受動部22、コネクション制御
部24に指示を送り、コネクション制御部24がコネク
ションのクローズ処理を行うと共に(ステップ21
0)、コネクション確立受動部22が常時コネクション
確立要求待ち状態に設定される。
On the server 2 side, the data transmission / reception control unit 11 detects the connection closing process on the client 1 side, sends an instruction to the connection establishment passive unit 22 and the connection control unit 24, and the connection control unit 24 closes the connection. (Step 21
0), the connection establishment passive unit 22 is always set to the connection establishment request waiting state.

【0018】そして、コネクション確立受動部22がク
ライアント1側からのコネクション確立要求を受信して
新たなコネクションを確立すると共に、当該コネクショ
ンを正規のTCPポートとして処理し(ステップ220
“OK”)、続いて古いコネクションは先程のステップ
110、210でクローズされているが、プロセス制御
部23によって古いコネクションのクローズ処理が行わ
れる(ステップ230)。なお、そのコネクション確立
中にクライアント1側からコネクション確立要求が送信
されてきた場合には、新たにコネクションを確立して
(ステップ220“OK”)、古い、すなわち確立中だ
ったコネクションはクローズして(ステップ230)、
最新に要求されたコネクションを正規のTCPポートす
る。
Then, the connection establishment passive unit 22 receives the connection establishment request from the client 1 side to establish a new connection, and processes the connection as a regular TCP port (step 220).
"OK"), and then the old connection is closed in steps 110 and 210, but the process controller 23 closes the old connection (step 230). When a connection establishment request is sent from the client 1 side during the establishment of the connection, a new connection is established (step 220 “OK”), and the old connection, that is, the connection that was being established is closed. (Step 230),
Make the most recently requested connection a regular TCP port.

【0019】クライアント1、サーバ2間に新たなコネ
クションが確立した後は、当該新たなコネクションによ
りデータ送受信を行う(ステップ100,200“O
K”)。
After a new connection is established between the client 1 and the server 2, data transmission / reception is performed by the new connection (steps 100, 200 "O").
K ”).

【0020】これと同様のことが、サーバ2側でのエラ
ー発生時にも言える。この場合にはサーバ2側からコネ
クションをクローズ処理して(ステップ210,11
0)、クライアント1側からのコネクション確立要求受
信によりサーバ側がコネクションを確立して(ステップ
220)、当該新たなコネクションによりデータ送受信
を行う(ステップ100“OK”,200“OK”)。
The same thing can be said when an error occurs on the server 2 side. In this case, the connection is closed from the server 2 side (steps 210 and 11).
0), the server side establishes a connection by receiving a connection establishment request from the client 1 side (step 220), and data is transmitted and received by the new connection (steps 100 "OK", 200 "OK").

【0021】また、コネクションのエラーには、クライ
アント1あるいはサーバ2間の伝送路3である通信ケー
ブルの外れ(抜け)も考えられ、この場合には、クライ
アント1側からコネクション確立要求が出力されても、
サーバ2側ではコネクションが確立されずに(ステップ
120“NG”、ステップ220“NG”)、コネクシ
ョン断線状態が続く。しかし、当該通信ケーブルを接続
し直した場合には、コネクション確立要求部12からコ
ネクション確立要求が出力され、そのコネクション確立
要求をサーバ2側でコネクション確立受動部22が受信
して新たなコネクションを確立し(ステップ120“O
K”、ステップ220“OK”)、続いてコネクション
確立後のプロセス制御部22の処理により自動的に古い
コネクションがクローズされて(ステップ230)、自
動的に新なコネクションを介したクライアント1、サー
バ2間通信に入る(ステップ100“OK”,200
“OK”)。
Further, the connection error may include disconnection (disconnection) of the communication cable which is the transmission line 3 between the client 1 or the server 2. In this case, the client 1 side outputs a connection establishment request. Also,
On the server 2 side, the connection is not established (step 120 “NG”, step 220 “NG”), and the connection disconnection state continues. However, when the communication cable is reconnected, the connection establishment request unit 12 outputs a connection establishment request, and the connection establishment passive unit 22 on the server 2 side receives the connection establishment request and establishes a new connection. (Step 120 "O
K ”, step 220“ OK ”), then the old connection is automatically closed (step 230) by the processing of the process control unit 22 after the connection is established, and the client 1 and the server are automatically connected via the new connection. Two-way communication begins (step 100 “OK”, 200
"OK").

【0022】従って、本システムによれば、クライアン
ト、サーバ間のコネクション上でデータ送受信エラーが
発生した場合でも、コネクション確立要求が自動的に出
力されて、コネクションが確立されるため、エラー処理
のための手間が必要なくなり、コネクション復旧までの
時間が大幅に短縮される。
Therefore, according to the present system, even if a data transmission / reception error occurs on the connection between the client and the server, the connection establishment request is automatically output and the connection is established. The time and effort required to restore the connection are greatly reduced.

【0023】また、通信ケーブル抜けの場合でも、当該
通信ケーブル接続し直した時に自動的にコネクション確
立要求が出力されて新たなコネクションが確立されると
共に、古いコネクションがクローズされるため、コネク
ション確立の手間が必要なくなり、コネクション復旧ま
での時間が短縮される。
Even when the communication cable is disconnected, a connection establishment request is automatically output when the communication cable is reconnected, a new connection is established, and the old connection is closed. No time and effort is required, and the time to restore the connection is shortened.

【0024】[0024]

【発明の効果】以上説明したように、本発明では、クラ
イアント、サーバ間のデータ送受信時にエラーが発生し
た場合、そのエラーを検出して自動的にコネクション確
立要求を出力して、新たなコネクションを確立するよう
にしたため、人手を介さずに自動的にコネクションを復
旧でき、コネクション復旧までの時間が大幅に短縮され
る。
As described above, according to the present invention, when an error occurs during data transmission / reception between a client and a server, the error is detected, a connection establishment request is automatically output, and a new connection is established. Since it is established, the connection can be automatically restored without human intervention, and the time to restore the connection can be greatly shortened.

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

【図1】本システムを構成するクライアントおよびサー
バを示すブロック図。
FIG. 1 is a block diagram showing a client and a server that form the present system.

【図2】本システムにおけるエラー発生時のコネクショ
ン復旧処理を示すブロック図。
FIG. 2 is a block diagram showing a connection restoration process when an error occurs in this system.

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

1 クライアント 2 サーバ 3 伝送路 11 データ送受信処理部(エラー検出手段) 12 コネクション確立要求部(コネクション確立要求
手段) 13 コネクション制御部(コネクション消去手段) 21 コネクション確立受動部(コネクション確立手
段) 22 プロセス制御部 23 データ送受信処理部(エラー検出手段) 24 コネクション制御部(コネクション消去手段)
DESCRIPTION OF SYMBOLS 1 client 2 server 3 transmission line 11 data transmission / reception processing unit (error detection unit) 12 connection establishment request unit (connection establishment request unit) 13 connection control unit (connection erasing unit) 21 connection establishment passive unit (connection establishment unit) 22 process control Part 23 Data transmission / reception processing part (error detecting means) 24 Connection control part (connection erasing means)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 クライアント、サーバ間にコネクション
を確立し、当該コネクションによりデータ通信を行うT
CP/IPによるクライアント/サーバシステムにおい
て、 データ通信時にコネクション上での通信エラーを検出す
るエラー検出手段と、 上記エラー検出手段の検出出力を受け、データ通信中の
コネクションをクローズするコネクション消去手段と、 上記エラー検出手段の検出出力を受け、コネクション確
立要求を出力するコネクション確立要求手段と、 上記コネクション確立要求手段からのコネクション確立
要求を受け、新たにコネクションを確立するコネクショ
ン確立手段と、 を具備することを特徴とするTCP/IPによるクライ
アント/サーバシステム。
1. A T that establishes a connection between a client and a server and performs data communication by the connection.
In a client / server system based on CP / IP, an error detecting means for detecting a communication error on a connection during data communication, and a connection erasing means for receiving a detection output of the error detecting means and closing a connection during data communication, A connection establishment request means for receiving a detection output of the error detection means and outputting a connection establishment request; and a connection establishment means for receiving a connection establishment request from the connection establishment request means and newly establishing a connection. A client / server system based on TCP / IP characterized by:
JP4156703A 1992-06-16 1992-06-16 Client/server system by tcp/ip Pending JPH05346898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4156703A JPH05346898A (en) 1992-06-16 1992-06-16 Client/server system by tcp/ip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4156703A JPH05346898A (en) 1992-06-16 1992-06-16 Client/server system by tcp/ip

Publications (1)

Publication Number Publication Date
JPH05346898A true JPH05346898A (en) 1993-12-27

Family

ID=15633494

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4156703A Pending JPH05346898A (en) 1992-06-16 1992-06-16 Client/server system by tcp/ip

Country Status (1)

Country Link
JP (1) JPH05346898A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008199498A (en) * 2007-02-15 2008-08-28 Nippon Telegr & Teleph Corp <Ntt> Gateway device and session managing method
US7680953B2 (en) 2005-11-15 2010-03-16 Hitachi, Ltd. Computer system, storage device, management server and communication control method
JP2010288046A (en) * 2009-06-11 2010-12-24 Yokogawa Electric Corp Field communication method, and field equipment using this

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7680953B2 (en) 2005-11-15 2010-03-16 Hitachi, Ltd. Computer system, storage device, management server and communication control method
JP2008199498A (en) * 2007-02-15 2008-08-28 Nippon Telegr & Teleph Corp <Ntt> Gateway device and session managing method
JP2010288046A (en) * 2009-06-11 2010-12-24 Yokogawa Electric Corp Field communication method, and field equipment using this

Similar Documents

Publication Publication Date Title
US8462767B2 (en) Internet protocol compliant private branch electronic exchange and a method for redundantly configuring terminal interfaces
EP1231756A2 (en) Method and system for maintaining connections in a network
JPH10112740A (en) Information processor, communication method and storage medium
JPH05346898A (en) Client/server system by tcp/ip
CN106878467A (en) The method and tele-control system of remote control equipment
JP3398681B2 (en) Communication processing system
JP3322748B2 (en) Communication path re-establishment method and communication device therefor
JP2001092781A (en) Automatic restoration system of user session
JPH03292554A (en) Communication processor
JP3623460B2 (en) Data transmission method using Ethernet between compact control stations
JPH04102152A (en) Virtual line communication system
JPH11175470A (en) Multi-point terminal connection method
JP2834006B2 (en) Failure recovery processing method and method
JPH0385047A (en) Session restoration system
JP2004260530A (en) Communication method prepared against communication abnormality
JPH06217001A (en) Restart recognizing system for switching node
JPH06164644A (en) Method and device for transferring data for repeater
JP2891747B2 (en) Mode reset notification control method
JPH10327176A (en) Method and system for switching multiplex lan
JPH0440141A (en) On-data line connecting system
JPH0983708A (en) Data transfer method for image transfer device and system
JPS6223258A (en) Line connection control system
JPS62298250A (en) Transmission controller for gateway
JP2001027979A (en) Client server type computer system and method for establishing connection between client server type computers
JP2000330601A (en) Transmission line compensating device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19991215