JP3992895B2 - Transmission system having abnormality monitoring function, terminal device having abnormality monitoring function, and recording medium recording processing program in terminal device having abnormality monitoring function - Google Patents
Transmission system having abnormality monitoring function, terminal device having abnormality monitoring function, and recording medium recording processing program in terminal device having abnormality monitoring function Download PDFInfo
- Publication number
- JP3992895B2 JP3992895B2 JP2000018847A JP2000018847A JP3992895B2 JP 3992895 B2 JP3992895 B2 JP 3992895B2 JP 2000018847 A JP2000018847 A JP 2000018847A JP 2000018847 A JP2000018847 A JP 2000018847A JP 3992895 B2 JP3992895 B2 JP 3992895B2
- Authority
- JP
- Japan
- Prior art keywords
- socket
- abnormality
- monitoring
- terminal device
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Images
Landscapes
- Small-Scale Networks (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
- Monitoring And Testing Of Transmission In General (AREA)
- Selective Calling Equipment (AREA)
- Telephonic Communication Services (AREA)
- Computer And Data Communications (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、TCP/IP(Transmission Control Protocol/Internet Protocol)プロトコルを実装した端末装置間でソケット通信を行う伝送システムに関し、特に一定周期の監視データをソケット毎に送信して異常を監視することにより、ソケット毎に異常を検知することのできる異常監視機能を備えた伝送システム、異常監視機能を備えた端末装置、及び異常監視機能を備えた端末装置における処理プログラムを記録した記録媒体に関する。
【0002】
【従来の技術】
従来からパソコンやPLC(Programable Logic Controler)、ワークステーションなどの端末装置の間をイーサネット(Ethernet)などのLAN(Local Area Network)によって接続してソケット通信が行われていた。
【0003】
このような通信の一例として、水道事業におけるポンプ所と処理場との間で従来から行われている一般的な伝送システムについて、図4に基づいて説明する。
【0004】
図4に示すように、従来の伝送システム101は、処理場102の監視装置103に接続されたPLC104と、ポンプ所105のポンプ106に接続されたPLC107と、処理場102とポンプ所105との間を接続する伝送路108とから構成されている。
【0005】
ここで、PLC104、107は、TCP/IPプロトコルを実装し、ソケット通信により伝送データを送受信する。ソケットは複数あり、デジタルデータ、アナログデータ、パルスデータ、デジタル出力、設定値出力などの伝送を行うソケットが用意されている。
【0006】
また、伝送路108はイーサネットなどのLANによる伝送路であって、とくにイーサネットである場合には、トランシーバケーブル、トランシーバ、イーサネット同軸ケーブルを介して各PLC104、107間は接続されている。またATMルータを介して下水道管内に設置された光ファイバーケーブルで接続される場合もある。
【0007】
この従来の伝送システムによるTCP伝送をフローチャートに基づいて説明する。
【0008】
まず、送信側のPLC104における処理を図5のフローチャートに基づいて説明する。送信側では、まず複数のソケットのうち伝送データを送信するソケットをアクティブオープンして受信側にコネクションの確立を要求する(S501)。このとき、受信側の該当するソケットがパッシブオープンされていなければ、コネクションは確立されないのでステップS501に戻ってコネクションを要求し続け、受信側のソケットがパッシブオープンされているときにはコネクションを確立する(S502)。コネクションが確立されると、その後はオペレータによるポンプの操作命令や各機器の作動状況などの伝送データがあれば、随時伝送することができる。そこで、オペレータによって伝送データが入力されたか否かを判断し(S503)、伝送データが入力されたときにはその伝送データを送信する(S504)。そして、ステップS503で伝送データが入力されていないと判断されたとき、あるいはステップS504で入力された伝送データが送信されたときにはコネクションを確立し続けるか否かを判断する(S505)。ここで、コネクションを終了するときにはソケットをクローズして(S506)伝送を終了し、コネクションを確立し続けるときにはステップS503に戻って伝送を続ける。
【0009】
次に、受信側のPLC107における処理を図6のフローチャートに基づいて説明する。受信側では、まずデータが伝送されてくるソケットをパッシブオープンして送信側のPLC104にコネクションの確立を要求する(S601)。このとき、送信側がアクティブオープンされていなければ、コネクションは確立されないのでステップS601に戻ってコネクションの確立を要求し続け、送信側がアクティブオープンされているときにはコネクションを確立する(S602)。コネクションが確立されたら、伝送データが送信されてきているか否かを判断し(S603)、伝送データが送信されてきているときには伝送データを受信する(S604)。そして、ステップS603で伝送データが送信されていないと判断したとき、あるいはステップS604で送信されてきた伝送データを受信したときには、コネクションを確立し続けるか否かを判断し(S605)、コネクションを終了するときにはソケットをクローズして(S606)伝送を終了し、コネクションを確立し続けるときにはステップS603に戻って伝送データの受信を続ける。
【0010】
【発明が解決しようとする課題】
しかしながら、上述した従来の伝送システムでは、例えば伝送路上のケーブルの切断や端末装置の電源断のような異常が発生したときには、送信側のPLC104では伝送データを送信することができなくなり、受信側のPLC107でも伝送データを受信することができなくなる。
【0011】
ところが、異常が発生して伝送データの送受信ができなくなっているにも関わらず、TCP/IPプロトコルによる伝送では、一度正常にコネクションが確立されてしまうと、コネクションは確立したままとなり、切断されることがなかった。したがって、各PLC104、107では異常を検知することができず、あたかも正常に伝送しているような状態に陥ることがあった。とくに、PLC104、107のアプリケーションソフトが正常である判断してしまうので、異常を検知することができなかった。したがって、この状態に陥るとオペレータは伝送データを実際に送信するまで異常に気がつくことができず、水道事業における処理施設では安全面で問題になることが発生していた。例えば、遠隔地にあるポンプ所105と処理場102の監視装置103との間の通信では、TCP/IPプロトコル伝送を使用するのは、ポンプなどの機器の操作信号を伝送するときに多く、この操作信号はオペレータが監視装置103に命令を入力したときに発生するものである。ところが、オペレータが一日などの長時間機器を操作しないこともあり、このときには故障してから長時間経過した後にオペレータが実際に機器を操作しようとしたときに初めて異常に気が付くことになる。もし、このときの操作がポンプを非常停止させるような緊急を要する操作であった場合には、操作したときに異常を発見したのでは、断水や送水停止、雨水の氾濫、処理場の冠水などの重大な事態を引き起こすという問題点があった。
【0012】
さらに、PLC104、107が動作しなくなる無応答状態に陥ることもあり、この場合にはそれを復旧するための仕組みも確立していなかったので、安全性の面でさらに問題点があった。
【0013】
また、回線上の異常を監視するための別の方法として、インターネット制御メッセージ・プロトコルICMP(Internet Control Message Protcol)のpingコマンドを利用する方法も考えられる。このpingコマンドはICMPにおいて通信が正常に行われているか否かを検証するためのコマンドである。
【0014】
このpingコマンドでは、送信側のPLC104からエコーリクエスト・メッセージが作成されて送信され、受信側のPLC107ではそのメッセージを受信するとエコーリプライ・メッセージを送り返す。このエコーリプライ・メッセージを送信側のPLC104で受信することができれば、回線上に障害がないことが確認できる。
【0015】
しかしながら、この場合には回線の障害を監視するための専用のソケットを設けて回線の障害を監視するので、すべてのソケットが異常になるような障害が発生したときには、確かにこのpingコマンドを利用する方法で検知することができるが、監視用のソケット以外のソケットのみに異常が発生したような場合にはpingコマンドを利用する方法では異常を検知することができなかった。
【0016】
また、UDPプロトコルで定周期データを送信することによって回線を監視する方法もよく用いられているが、この方法の場合にも、監視用のUDPソケットを設けて回線の異常を監視するので、TCPソケットに異常が発生していたとしても、UDPソケットが正常に伝送されていると、TCPソケットの異常を検知することができなかった。
【0017】
したがって、pingコマンドを利用した場合でも、UDPプロトコルを使用した場合でも回線全体に障害が発生したような場合には異常を検知することができるが、回線監視用のソケット以外のソケットのみに異常が発生したような場合にはその異常を検知することができないという問題点があった。
【0018】
また逆に、回線監視用のソケットを設けた場合には、回線監視用のソケットで異常が発生すると、すべてのソケットが停止させられてしまうので、正常に伝送が行われているソケットまでもが停止させられてしまうという問題点もあった。
【0019】
本発明は上記事情に鑑みてなされたものであり、その目的は、一定周期の監視データをソケット毎に送信して伝送路を監視することにより、ソケット毎に異常を検知することのできる異常監視機能を備えた伝送システム、異常監視機能を備えた端末装置、及び異常監視機能を備えた端末装置における処理プログラムを記録した記録媒体を提供することにある。
【0020】
【課題を解決するための手段】
上記目的を達成するために、請求項1の発明は、TCP/IPプロトコルを実装した端末装置の間をLANによって接続し、この端末装置間でソケット通信により伝送データの送受信を行っているときの異常を監視する異常監視機能を備えた伝送システムであって、前記伝送データと、異常を監視するために一定の周期で送信される監視データとをソケット毎に送信し、前記監視データを一定時間送信できなかったときには、送信できなかったソケットのみをクローズしてから初期化する第1の端末装置と、この第1の端末装置で送信された前記伝送データと前記監視データとを伝送する伝送路と、この伝送路によって伝送された前記伝送データと前記監視データとをソケット毎に受信し、前記監視データを一定時間受信しなかったときには、受信しなかったソケットのみをクローズしてから初期化する第2の端末装置とから構成されることを特徴とする。
【0021】
この請求項1の発明によれば、監視データが一定時間送受信できなかったときには異常が発生したと判断して該当するソケットをクローズして初期化するので、異常が発生していることに気付かずにコネクションが確立したままになることを防止することができ、回線の異常を速やかに検知することができる。
【0022】
また、ソケット毎に監視データを送受信して各ソケット毎に異常を監視するので、回線の障害を監視するための専用のソケットを設ける必要がなくなるとともに、すべての回線が異常となるような障害だけでなく、1つのソケットのみが異常となるような障害が発生した場合でも、その異常を検知することができる。さらに、1つのソケットで異常が発生した場合でも、その他の正常に伝送しているソケットを停止させる必要がなくなった。
【0023】
請求項2の発明は、TCP/IPプロトコルを実装して、LANによって接続された他の端末装置とソケット通信により伝送データの送受信を行っているときの異常を監視する異常監視機能を備えた端末装置であって、前記伝送データを前記他の端末装置に送信するときには、前記伝送データを送信するとともに、異常を監視するための監視データを一定の周期でソケット毎に送信し、前記監視データを一定時間送信できなかったときには、送信できなかったソケットのみをクローズしてから初期化し、前記他の端末装置から伝送データを受信するときには、前記伝送データを受信するとともに、前記他の端末装置から一定の周期で送信された監視データをソケット毎に受信し、前記監視データを一定時間受信しなかったときには、受信しなかったソケットのみをクローズしてから初期化することを特徴とする。
【0024】
この請求項2の発明によれば、異常が発生していることに気付かずにコネクションが確立したままになることを防止することができ、回線の異常を速やかに検知することができる。
【0025】
また、回線の障害を監視するための専用のソケットを設ける必要がなくなるとともに、すべての回線が異常となるような障害だけでなく、1つのソケットのみが異常となるような障害が発生した場合でも、その異常を検知することができる。さらに、1つのソケットで異常が発生した場合でも、その他の正常に伝送しているソケットを停止させる必要がなくなった。
【0026】
請求項3の発明は、TCP/IPプロトコルを実装して、LANによって接続された他の端末装置とソケット通信により伝送データの送受信を行っているときの異常を監視する異常監視機能を備えた端末装置における処理プログラムを記録した記録媒体であって、前記伝送データを前記他の端末装置に送信するときには、前記伝送データを送信する処理と、異常を監視するための監視データを一定の周期でソケット毎に送信する処理と、前記監視データを一定時間送信できなかったときには送信できなかったソケットのみをクローズしてから初期化する処理とを含み、前記他の端末装置から前記伝送データを受信するときには、前記伝送データを受信する処理と、前記他の端末装置から一定の周期で送信された監視データをソケット毎に受信する処理と、前記監視データを一定時間受信しなかったときには受信しなかったソケットのみをクローズしてから初期化する処理とを含むことを特徴とする。
【0027】
この請求項3の発明によれば、異常が発生していることに気付かずにコネクションが確立したままになることを防止することができ、回線の異常を速やかに検知することができる。
【0028】
また、回線の障害を監視するための専用のソケットを設ける必要がなくなるとともに、すべての回線が異常となるような障害だけでなく、1つのソケットのみが異常となるような障害が発生した場合でも、その異常を検知することができる。さらに、1つのソケットで異常が発生した場合でも、その他の正常に伝送しているソケットを停止させる必要がなくなった。
【0029】
【発明の実施の形態】
以下、本発明に係る異常監視機能を備えた伝送システムの実施形態を図面に基づいて説明する。
【0030】
図1に示すように、本発明の異常監視機能を備えた伝送システム1は、送信側の端末装置2と受信側の端末装置3とがイーサネットなどのLAN(Local Area Network)で形成された伝送路によって接続されている。
【0031】
この送信側の端末装置2は、パソコンやワークステーション、PLC(Programable Logic Controler)などのTCP/IP(Transmission Control Protocol/Internet Protocol)プロトコルの実装されたコンピュータであって、ソケット通信を行うことができ、イーサネットなどのLANを介して伝送データを送信するとともに、各ソケット毎に一定の周期で監視データを送信する。このソケットは複数あり、例えば水道事業における処理場とポンプ所との間の伝送では、デジタルデータ、アナログデータ、パルスデータ、デジタル出力、設定値出力などの伝送を行うソケットが用意されている。
【0032】
同様に、受信側の端末装置3もパソコンやワークステーション、PLCなどのTCP/IPプロトコルの実装されたコンピュータであって、ソケット通信を行うことができ、イーサネットなどのLANを介して伝送データを受信するとともに、ソケット毎に一定の周期で送られてくる監視データを受信する。
【0033】
なお、端末装置2、3は、各種の処理を行うためのCPUと、この処理の命令を記憶する記憶手段とを含む通常のコンピュータシステムが含まれ、端末装置2、3で行われる各処理の命令やタイミング制約は記憶手段に保持されており、必要に応じてCPUにロードされ、実行がなされる。
【0034】
また、送信側の端末装置2と受信側の端末装置3とを接続する伝送路はLANによって構成され、とくにLANがイーサネットである場合には、送信側の端末装置2はトランシーバケーブル4及びトランシーバ5を介してイーサネット同軸ケーブル6に接続され、受信側も同様に端末装置3はトランシーバケーブル7及びトランシーバ8介してイーサネット同軸ケーブル6に接続されている。さらに、トランシーバに代えてATMルータを用いることによって、イーサネット同軸ケーブルの代わりに光ファイバーケーブルを使用して伝送路としてもよい。
【0035】
次に、図2及び図3のフローチャートに基づいて本実施形態の異常監視機能を備えた伝送システムによるデータの伝送及び異常の監視について説明する。
【0036】
まず、送信側の端末装置2における処理を図2のフローチャートに基づいて説明する。送信側では、まず初期化処理として複数のソケットのうちデータを伝送するソケットをアクティブオープンして受信側にコネクションの確立を要求する(S201)。このとき、受信側の該当するソケットがパッシブオープンされていなければ、コネクションは確立されないのでステップS201に戻ってコネクションの確立を要求し続け、受信側のソケットがパッシブオープンされているときにはコネクションを確立する(S202)。コネクションが確立されると、その後はオペレータによるポンプの操作命令や各機器の作動状況などの伝送データがあれば、随時伝送することができる。そこで、オペレータから伝送データが入力されたか否かを判断し(S203)、伝送データが入力されたときにはその伝送データを送信する(S204)。そして、伝送データが受信側の端末装置3に送信されたか否かを確認し(S205)、送信されたときにはコネクションを確立し続けるか否かを判断する(S206)。ここで、コネクションを終了するときにはソケットをクローズして(S207)伝送が終了する。
【0037】
一方、ステップS203で伝送データが未だ入力されていないとき、ステップS205で伝送データが送信されていないとき、あるいはステップS206でコネクションを確立し続けるときには、回線が正常であることを監視するための監視データを送信する。この監視データは一定の周期、例えば30秒間隔で送信されるものなので、その周期に相当する一定の時間(例えば30秒)が経過したか否かを判断し(S208)、一定の時間が経過したときには監視データを送信する(S209)。ここで、この監視データが受信側の端末装置3に送信されたか否かを確認し(S210)、送信されているときにはステップS203に戻って次の伝送データの有無を判断して伝送が続けられる。一方、監視データが送信されていないときには一定時間、例えば数分間監視データを送信し続け(S211)、その間に監視データが送信されたときには正常であると判断してステップS203に戻って伝送が続けられるが、一定の時間監視データが受信側に送信されないときには異常が発生したと判断してオペレータに異常の発生を知らせてソケットをクローズする(S213)。そして、再びステップS201に戻ってアクティブオープンして再コネクションの要求をして初期化し、再び伝送データの送信を開始するようにする。
【0038】
このように、本発明の異常監視機能を備えた伝送システムでは、一定時間監視データを送信し続けても、受信側に送信されないときには異常が発生したと判断して回線を一端クローズしてから、再コネクションを要求する。
【0039】
これによって、異常が発生しているにも関わらずコネクションが確立したままになることを防止することができるので、速やかに異常を検知することができ、さらに水道事業における伝送ではオペレータが操作命令を入力するまで異常に気付かないという事態を防止することができる。
【0040】
次に、受信側の端末装置3における処理を図3のフローチャートに基づいて説明する。受信側では、まず初期化処理として伝送データが送信されてくるソケットをパッシブオープンして送信側にコネクションの確立を要求する(S301)。このとき、送信側の該当するソケットがアクティブオープンされていなければ、コネクションは確立されないのでステップS301に戻ってコネクションを要求し続け、送信側の該当するソケットがアクティブオープンされているときにはコネクションを確立する(S302)。コネクションが確立されると、その後はオペレータによるポンプの操作命令や各機器の作動状況などの伝送データが送信側の端末装置2に入力されれば、随時受信側に伝送されてくる。そこで、コネクションが確立されたら、伝送データが送られてきているか否かを判断し(S303)、伝送データが送られてきたときには伝送データを受信する(S304)。伝送データを受信したらコネクションを確立し続けるか否かを判断し(S305)、コネクションを終了するときにはソケットをクローズして(S306)伝送を終了する。
【0041】
一方、ステップS303で伝送データが送られてきていないとき、あるいはステップS305でコネクションを確立し続けるときには、回線が正常であることを監視するために送信側の端末装置2から送信された監視データを受信する。この監視データは一定の周期、例えば30秒間隔で送信されるものなので、一定の時間間隔(例えば30秒)で監視データを受信したか否かを判断し(S307)、受信しているときにはステップS303に戻って次の伝送データの有無を判断して伝送が続けられる。一方、監視データを一定の時間間隔で受信していないときには一定時間、例えば数分間監視データが送信されてくるのを待つ(S308)。ここで、監視データを受信したときには正常であると判断してステップS303に戻って伝送を続けるが、受信しないときには異常が発生したと判断してオペレータに異常の発生を知らせてソケットをクローズする(S310)。そして、再びステップS301に戻ってパッシブオープンして再コネクションの要求をして初期化し、再び伝送データの受信を開始する。
【0042】
このように、本発明の異常監視機能を備えた伝送システムでは、一定時間監視データを受信しなかったときには異常が発生したと判断して回線を一端クローズして、再コネクションを要求する。
【0043】
これによって、異常が発生しているにも関わらずコネクションが確立したままになることを防止することができるので、速やかに異常を検知することができる。
【0044】
さらに、本発明の端末装置ではソケット毎に監視データを送信して各ソケット毎に異常を監視するので、どれか1つのソケットのみに異常が発生した場合でもその異常を検知することができるとともに、異常の発生したソケットのみを停止させることもできる。
【0045】
したがって、1つのソケットの異常によって他の正常に伝送しているソケットまで停止させるという事態を防止することができる。
【0046】
また、水道事業における遠隔地にあるポンプ所と処理場との間の通信では、オペレータが実際に機器を操作しようとしたときになって初めて異常に気付くということがなくなるので、ポンプを非常停止させるような緊急を要する操作が操作不能になることがなくなり、断水や送水停止、雨水の氾濫、処理場の冠水などの重大な事態を引き起こすことがなくなった。
【0047】
なお、上述した異常監視機能を備えた端末装置の各処理を実現するためのプログラムは記録媒体に保存することができ、この記録媒体をコンピュータシステムによって読み込ませることにより、前記プログラムを実行してコンピュータを制御しながら上述した端末装置の各処理を実現することができる。ここで、前記記録媒体とは、メモリ装置、磁気ディスク装置、光ディスク装置等、プログラムを記録することができるような装置が含まれる。
【0048】
【発明の効果】
以上説明してきたように、本発明の異常監視機能を備えた伝送システム、異常監視機能を備えた端末装置、及び異常監視機能を備えた端末装置における処理プログラムを記録した記録媒体は、一定の周期の監視データを送受信し、この監視データを一定時間送受信できなかったときには異常が発生したと判断して該当するソケットをクローズして再コネクションを確立するので、異常が発生していることに気付かずにコネクションが確立したままになることを防止することができる。
【0049】
これによって、回線の異常を速やかに検知することができ、端末装置が動作しなくなる無応答状態に陥ることを防止することができる。
【0050】
さらに、ソケット毎に監視データを送受信して各ソケット毎に異常を監視するので、回線の障害を監視するための専用のソケットを設ける必要がなくなるとともに、すべての回線が異常となるような障害だけでなく、1つのソケットのみが異常となるような障害が発生した場合でも、その異常を検知することができる。また、各ソケット毎に異常を監視しているので、1つのソケットで異常が発生した場合でも、その他の正常に伝送しているソケットを停止させる必要がなくなった。
【0051】
また、水道事業における遠隔地にあるポンプ所と処理場との間の通信に本発明の伝送システムを利用した場合には、オペレータが実際に機器を操作しようとしたときになって初めて異常に気付くということがなくなるので、ポンプを非常停止させるような緊急を要する操作が操作不能になることがなくなり、断水や送水停止、雨水の氾濫、処理場の冠水などの重大な事態を引き起こす可能性がなくなった。
【図面の簡単な説明】
【図1】本発明による異常監視機能を備えた伝送システムの一実施形態の構成を示す図である。
【図2】本発明の異常監視機能を備えた伝送システムの送信側端末装置の処理を説明するためのフローチャートである。
【図3】本発明の異常監視機能を備えた伝送システムの受信側端末装置の処理を説明するためのフローチャートである。
【図4】従来の伝送システムを利用した水道事業における処理場とポンプ所との間の伝送を説明するためのブロック図である。
【図5】従来の伝送システムの送信側端末装置の処理を説明するためのフローチャートである。
【図6】従来の伝送システムの受信側端末装置の処理を説明するためのフローチャートである。
【符号の説明】
1、101 伝送システム
2、3 端末装置
4、7 トランシーバケーブル
5、8 トランシーバ
6 イーサネット同軸ケーブル
102 処理場
103 監視装置
104、107 PLC
105 ポンプ所
106 ポンプ
108 伝送路[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a transmission system that performs socket communication between terminal devices that implement the TCP / IP (Transmission Control Protocol / Internet Protocol) protocol, and in particular, by monitoring monitoring data of a certain period for each socket to monitor abnormalities. The present invention relates to a transmission system having an abnormality monitoring function capable of detecting an abnormality for each socket, a terminal device having an abnormality monitoring function, and a recording medium recording a processing program in the terminal device having the abnormality monitoring function.
[0002]
[Prior art]
Conventionally, socket communication is performed by connecting terminal devices such as a personal computer, a PLC (Programmable Logic Controller), and a workstation via a LAN (Local Area Network) such as Ethernet.
[0003]
As an example of such communication, a general transmission system conventionally performed between a pump station and a treatment plant in a water supply business will be described with reference to FIG.
[0004]
As shown in FIG. 4, the conventional transmission system 101 includes a
[0005]
Here, the
[0006]
Further, the
[0007]
TCP transmission by this conventional transmission system will be described based on a flowchart.
[0008]
First, processing in the
[0009]
Next, processing in the
[0010]
[Problems to be solved by the invention]
However, in the above-described conventional transmission system, for example, when an abnormality such as a cable cut on the transmission line or a power failure of the terminal device occurs, the transmission data cannot be transmitted by the
[0011]
However, in the transmission by the TCP / IP protocol, once the connection is normally established in the transmission by the TCP / IP protocol even though the transmission data cannot be transmitted due to the abnormality, the connection remains established and is disconnected. It never happened. Therefore, the
[0012]
Furthermore, the
[0013]
As another method for monitoring an abnormality on the line, a method using a ping command of the Internet Control Message Protocol ICMP (Internet Control Message Protocol) can be considered. This ping command is a command for verifying whether communication is normally performed in ICMP.
[0014]
In this ping command, an echo request message is created and transmitted from the
[0015]
However, in this case, a dedicated socket for monitoring the line failure is provided to monitor the line failure, so if a failure occurs that makes all the sockets abnormal, this ping command is certainly used. However, when an abnormality occurs only in a socket other than the monitoring socket, the abnormality using the ping command cannot be detected.
[0016]
Also, a method of monitoring a line by transmitting fixed-cycle data using the UDP protocol is often used. Even in this method, a monitoring UDP socket is provided to monitor an abnormality of the line. Even if an abnormality has occurred in the socket, the abnormality of the TCP socket could not be detected if the UDP socket was normally transmitted.
[0017]
Therefore, even if the ping command is used or the UDP protocol is used, an abnormality can be detected if a failure occurs in the entire line, but the abnormality is detected only in a socket other than the line monitoring socket. When it occurs, there is a problem that the abnormality cannot be detected.
[0018]
Conversely, if a line monitoring socket is provided, if an abnormality occurs in the line monitoring socket, all sockets will be stopped. There was also the problem of being stopped.
[0019]
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an abnormality monitoring capable of detecting an abnormality for each socket by transmitting monitoring data of a certain period for each socket and monitoring a transmission line. It is an object of the present invention to provide a transmission system having a function, a terminal device having an abnormality monitoring function, and a recording medium recording a processing program in the terminal device having an abnormality monitoring function.
[0020]
[Means for Solving the Problems]
In order to achieve the above object, the invention of claim 1 is a case where terminal devices mounted with the TCP / IP protocol are connected by a LAN and transmission / reception of transmission data is performed between the terminal devices by socket communication. A transmission system having an abnormality monitoring function for monitoring an abnormality, wherein the transmission data and monitoring data transmitted at a constant cycle for monitoring the abnormality are transmitted for each socket, and the monitoring data is transmitted for a certain period of time. Socket that could not be sent when it could not be sent only A first terminal device that is initialized after closing, a transmission line for transmitting the transmission data and the monitoring data transmitted by the first terminal device, and the transmission data transmitted by the transmission line And the monitoring data for each socket, and when the monitoring data is not received for a certain period of time, the socket that was not received only And a second terminal device that is initialized after closing.
[0021]
According to the first aspect of the present invention, when the monitoring data cannot be transmitted / received for a certain period of time, it is determined that an abnormality has occurred and the corresponding socket is closed and initialized, so that it is not noticed that the abnormality has occurred. It is possible to prevent the connection from being established, and to detect a line abnormality promptly.
[0022]
Also, because monitoring data is sent and received for each socket to monitor each socket, there is no need to provide a dedicated socket for monitoring line failures, and only failures that cause all lines to become abnormal In addition, even when a failure occurs in which only one socket becomes abnormal, the abnormality can be detected. Furthermore, even if an abnormality occurs in one socket, it is no longer necessary to stop other normally transmitting sockets.
[0023]
The invention according to
[0024]
According to the second aspect of the present invention, it is possible to prevent the connection from being established without noticing that an abnormality has occurred, and to detect a line abnormality promptly.
[0025]
In addition, it is not necessary to provide a dedicated socket for monitoring line failures, and not only when a failure occurs in all lines, but also when a failure occurs in only one socket. The abnormality can be detected. Furthermore, even if an abnormality occurs in one socket, it is no longer necessary to stop other normally transmitting sockets.
[0026]
The invention according to claim 3 is a terminal equipped with an abnormality monitoring function that implements the TCP / IP protocol and monitors an abnormality when transmitting / receiving transmission data by socket communication with other terminal devices connected by a LAN. A recording medium recording a processing program in a device, wherein when transmitting the transmission data to the other terminal device, a process for transmitting the transmission data and a monitoring data for monitoring an abnormality are socketed at a constant cycle. Sockets that could not be sent when the monitoring data could not be sent for a certain period of time only And when the transmission data is received from the other terminal apparatus, the process of receiving the transmission data and the monitoring transmitted from the other terminal apparatus at a constant cycle. Processing for receiving data for each socket, and sockets that were not received when the monitoring data was not received for a certain period of time only And a process of initializing after closing.
[0027]
According to the third aspect of the invention, it is possible to prevent the connection from being established without noticing that an abnormality has occurred, and to detect a line abnormality promptly.
[0028]
In addition, it is not necessary to provide a dedicated socket for monitoring line failures, and not only when a failure occurs in all lines, but also when a failure occurs in only one socket. The abnormality can be detected. Furthermore, even if an abnormality occurs in one socket, it is no longer necessary to stop other normally transmitting sockets.
[0029]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of a transmission system having an abnormality monitoring function according to the present invention will be described below with reference to the drawings.
[0030]
As shown in FIG. 1, a transmission system 1 having an abnormality monitoring function according to the present invention has a transmission in which a
[0031]
The
[0032]
Similarly, the terminal device 3 on the receiving side is a computer equipped with a TCP / IP protocol such as a personal computer, a workstation, or a PLC, and can perform socket communication and receive transmission data via a LAN such as Ethernet. At the same time, it receives monitoring data sent at regular intervals for each socket.
[0033]
The
[0034]
The transmission path connecting the
[0035]
Next, data transmission and abnormality monitoring by the transmission system having the abnormality monitoring function of the present embodiment will be described based on the flowcharts of FIGS.
[0036]
First, processing in the
[0037]
On the other hand, when transmission data has not yet been input at step S203, when transmission data has not been transmitted at step S205, or when connection is continued to be established at step S206, monitoring for monitoring that the line is normal. Send data. Since this monitoring data is transmitted at a constant period, for example, every 30 seconds, it is determined whether or not a certain time (for example, 30 seconds) corresponding to that period has elapsed (S208), and the certain time has elapsed. When it is done, monitoring data is transmitted (S209). Here, it is confirmed whether or not the monitoring data is transmitted to the terminal device 3 on the receiving side (S210). When the monitoring data is transmitted, the process returns to step S203 to determine the presence or absence of the next transmission data and continue the transmission. . On the other hand, when the monitoring data is not transmitted, the monitoring data is continuously transmitted for a certain time, for example, several minutes (S211), and when the monitoring data is transmitted during that time, it is determined that the monitoring data is normal, and the process returns to step S203 to continue the transmission. However, when monitoring data is not transmitted to the receiving side for a certain period of time, it is determined that an abnormality has occurred, the operator is notified of the occurrence of the abnormality, and the socket is closed (S213). Then, the process returns to step S201 again, the active open is performed, the reconnection is requested and initialized, and transmission data transmission is started again.
[0038]
As described above, in the transmission system having the abnormality monitoring function of the present invention, even if the monitoring data is continuously transmitted for a certain period of time, if it is not transmitted to the receiving side, it is determined that an abnormality has occurred and the line is closed once, Request reconnection.
[0039]
As a result, it is possible to prevent the connection from being established despite the occurrence of an abnormality, so that the abnormality can be detected promptly. It is possible to prevent a situation in which an abnormality is not noticed until input.
[0040]
Next, processing in the terminal device 3 on the receiving side will be described based on the flowchart of FIG. The receiving side first passively opens a socket to which transmission data is transmitted as an initialization process, and requests the transmitting side to establish a connection (S301). At this time, if the corresponding socket on the transmitting side is not actively opened, the connection is not established, so the process returns to step S301 to continue requesting the connection. When the corresponding socket on the transmitting side is actively opened, the connection is established. (S302). After the connection is established, if transmission data such as an operation instruction of the pump by the operator and the operation status of each device is input to the
[0041]
On the other hand, when transmission data is not sent in step S303, or when the connection is continued to be established in step S305, monitoring data transmitted from the
[0042]
As described above, in the transmission system having the abnormality monitoring function of the present invention, when monitoring data is not received for a certain period of time, it is determined that an abnormality has occurred and the line is closed once to request reconnection.
[0043]
As a result, it is possible to prevent the connection from being established despite the occurrence of the abnormality, so that the abnormality can be detected promptly.
[0044]
Furthermore, since the terminal device of the present invention transmits monitoring data for each socket and monitors the abnormality for each socket, even when an abnormality occurs in only one of the sockets, the abnormality can be detected. It is also possible to stop only the socket where the error occurred.
[0045]
Therefore, it is possible to prevent a situation in which one socket is stopped due to an abnormality in one socket.
[0046]
In addition, the communication between the pump station and the treatment plant at a remote place in the water supply business will not notice any abnormalities until the operator actually tries to operate the equipment, so the pump will be stopped urgently. Such urgent operations can no longer be made inoperable, causing no serious problems such as water outages, stoppage of water supply, flooding of rainwater, flooding of treatment plants.
[0047]
Note that a program for realizing each process of the terminal device having the above-described abnormality monitoring function can be stored in a recording medium, and the program is executed by reading the recording medium by a computer system. Each process of the terminal device described above can be realized while controlling the above. Here, the recording medium includes a device capable of recording a program, such as a memory device, a magnetic disk device, and an optical disk device.
[0048]
【The invention's effect】
As described above, the transmission system having the abnormality monitoring function of the present invention, the terminal device having the abnormality monitoring function, and the recording medium in which the processing program in the terminal device having the abnormality monitoring function is recorded have a constant cycle. When the monitoring data is sent and received and this monitoring data cannot be sent and received for a certain period of time, it is determined that an error has occurred and the corresponding socket is closed and reconnection is established. It is possible to prevent the connection from being established.
[0049]
As a result, it is possible to quickly detect an abnormality in the line, and it is possible to prevent the terminal apparatus from falling into a non-response state where it does not operate.
[0050]
In addition, monitoring data is sent and received for each socket to monitor each socket, so there is no need to provide a dedicated socket for monitoring line faults, and only faults that cause all lines to malfunction. In addition, even when a failure occurs in which only one socket becomes abnormal, the abnormality can be detected. In addition, since the abnormality is monitored for each socket, even when an abnormality occurs in one socket, it is not necessary to stop other normally transmitting sockets.
[0051]
In addition, when the transmission system of the present invention is used for communication between a pump station and a treatment plant at a remote place in a water supply business, an abnormality is not noticed until the operator actually tries to operate the device. This eliminates the possibility of urgent operations such as an emergency stop of the pump, making it impossible to cause serious situations such as water outages, stoppage of water supply, flooding of rainwater, flooding of treatment plants, etc. It was.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration of an embodiment of a transmission system having an abnormality monitoring function according to the present invention.
FIG. 2 is a flowchart for explaining processing of a transmission side terminal device of a transmission system having an abnormality monitoring function of the present invention.
FIG. 3 is a flowchart for explaining processing of a receiving side terminal device of a transmission system having an abnormality monitoring function of the present invention.
FIG. 4 is a block diagram for explaining transmission between a treatment plant and a pump station in a water supply business using a conventional transmission system.
FIG. 5 is a flowchart for explaining processing of a transmission-side terminal device of a conventional transmission system.
FIG. 6 is a flowchart for explaining processing of a receiving side terminal device of a conventional transmission system.
[Explanation of symbols]
1, 101 Transmission system
2, 3 Terminal device
4, 7 Transceiver cable
5, 8 Transceiver
6 Ethernet coaxial cable
102 treatment plant
103 Monitoring device
104, 107 PLC
105 Pump station
106 pump
108 Transmission path
Claims (3)
前記伝送データと、異常を監視するために一定の周期で送信される監視データとをソケット毎に送信し、前記監視データを一定時間送信できなかったときには、送信できなかったソケットのみをクローズしてから初期化する第1の端末装置と、
この第1の端末装置で送信された前記伝送データと前記監視データとを伝送する伝送路と、
この伝送路によって伝送された前記伝送データと前記監視データとをソケット毎に受信し、前記監視データを一定時間受信しなかったときには、受信しなかったソケットのみをクローズしてから初期化する第2の端末装置とから構成されることを特徴とする異常監視機能を備えた伝送システム。A transmission system having an abnormality monitoring function for monitoring an abnormality when a terminal device equipped with the TCP / IP protocol is connected by a LAN and transmission data is transmitted and received between the terminal devices by socket communication. ,
Sending the transmission data and monitoring data sent at regular intervals to monitor the abnormality for each socket, and when the monitoring data cannot be sent for a certain period of time, close only the socket that could not be sent A first terminal device to be initialized from
A transmission path for transmitting the transmission data and the monitoring data transmitted by the first terminal device;
The transmission data and the monitoring data transmitted through the transmission path are received for each socket, and when the monitoring data is not received for a certain period of time, only the socket that has not been received is closed and then initialized. A transmission system having an abnormality monitoring function characterized by comprising:
前記伝送データを前記他の端末装置に送信するときには、前記伝送データを送信するとともに、異常を監視するための監視データを一定の周期でソケット毎に送信し、前記監視データを一定時間送信できなかったときには、送信できなかったソケットのみをクローズしてから初期化し、
前記他の端末装置から伝送データを受信するときには、前記伝送データを受信するとともに、前記他の端末装置から一定の周期で送信された監視データをソケット毎に受信し、前記監視データを一定時間受信しなかったときには、受信しなかったソケットのみをクローズしてから初期化することを特徴とする異常監視機能を備えた端末装置。A terminal device having an abnormality monitoring function for monitoring an abnormality when TCP / IP protocol is implemented and transmission data is transmitted and received by socket communication with other terminal devices connected by a LAN,
When transmitting the transmission data to the other terminal device, the transmission data is transmitted, and monitoring data for monitoring an abnormality is transmitted for each socket at a certain period, and the monitoring data cannot be transmitted for a certain period of time. When closing, only the socket that could not be sent is closed and initialized,
When the transmission data is received from the other terminal device, the transmission data is received, the monitoring data transmitted from the other terminal device at a certain period is received for each socket, and the monitoring data is received for a certain period of time. If not, a terminal device having an abnormality monitoring function characterized in that only a socket that has not been received is closed and then initialized.
前記伝送データを前記他の端末装置に送信するときには、前記伝送データを送信する処理と、異常を監視するための監視データを一定の周期でソケット毎に送信する処理と、前記監視データを一定時間送信できなかったときには送信できなかったソケットのみをクローズしてから初期化する処理とを含み、
前記他の端末装置から前記伝送データを受信するときには、前記伝送データを受信する処理と、前記他の端末装置から一定の周期で送信された監視データをソケット毎に受信する処理と、前記監視データを一定時間受信しなかったときには受信しなかったソケットのみをクローズしてから初期化する処理とを含むことを特徴とする異常監視機能を備えた端末装置における処理プログラムを記録した記録媒体。The TCP / IP protocol is implemented, and a processing program in a terminal device having an abnormality monitoring function for monitoring an abnormality when transmitting / receiving transmission data with other terminal devices connected by a LAN by socket communication is recorded. A recording medium,
When transmitting the transmission data to the other terminal device, a process of transmitting the transmission data, a process of transmitting monitoring data for monitoring an abnormality for each socket at a certain period, and the monitoring data for a certain period of time Including the process of closing and initializing only the socket that could not be sent when it could not be sent,
When receiving the transmission data from the other terminal apparatus, a process of receiving the transmission data, a process of receiving monitoring data transmitted from the other terminal apparatus at a certain period for each socket, and the monitoring data A recording medium recording a processing program in a terminal device having an abnormality monitoring function, comprising: a process of closing only a socket that has not been received for a certain period of time and then initializing the socket.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000018847A JP3992895B2 (en) | 2000-01-27 | 2000-01-27 | Transmission system having abnormality monitoring function, terminal device having abnormality monitoring function, and recording medium recording processing program in terminal device having abnormality monitoring function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000018847A JP3992895B2 (en) | 2000-01-27 | 2000-01-27 | Transmission system having abnormality monitoring function, terminal device having abnormality monitoring function, and recording medium recording processing program in terminal device having abnormality monitoring function |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2001211106A JP2001211106A (en) | 2001-08-03 |
JP3992895B2 true JP3992895B2 (en) | 2007-10-17 |
Family
ID=18545636
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000018847A Expired - Lifetime JP3992895B2 (en) | 2000-01-27 | 2000-01-27 | Transmission system having abnormality monitoring function, terminal device having abnormality monitoring function, and recording medium recording processing program in terminal device having abnormality monitoring function |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3992895B2 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3574058B2 (en) * | 2000-09-04 | 2004-10-06 | 日本電信電話株式会社 | Communication device monitoring control method and association refresh system device |
WO2003090405A1 (en) * | 2002-04-16 | 2003-10-30 | Thomson Licensing S.A. | Method, apparatus and system for supporting multiple collaborative sessions in a bi-directional communication device |
JP2006345397A (en) * | 2005-06-10 | 2006-12-21 | Noritsu Koki Co Ltd | Data transmission system |
JP5112138B2 (en) * | 2008-03-28 | 2013-01-09 | 株式会社日立製作所 | Session management method, storage device, and computer system |
JP2010161494A (en) * | 2009-01-06 | 2010-07-22 | Howa Mach Ltd | Data reception system |
JP2017183905A (en) * | 2016-03-29 | 2017-10-05 | Necプラットフォームズ株式会社 | Communication device, method for recovering from communication failure, and program for recovering from communication failure |
CN111555896B (en) * | 2019-02-12 | 2023-01-20 | 昆山纬绩资通有限公司 | Data transmission monitoring method and system |
-
2000
- 2000-01-27 JP JP2000018847A patent/JP3992895B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JP2001211106A (en) | 2001-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5348489B2 (en) | controller | |
US8332506B2 (en) | Network monitor program executed in a computer of cluster system, information processing method and computer | |
US8665700B2 (en) | Fault detection and mitigation for in-vehicle LAN network management | |
KR100449010B1 (en) | Bypassing apparatus of gateway | |
CN102843238B (en) | Energy-conservation in the network node of automated network | |
JP3992895B2 (en) | Transmission system having abnormality monitoring function, terminal device having abnormality monitoring function, and recording medium recording processing program in terminal device having abnormality monitoring function | |
JP2011188072A (en) | Fault detection and recovery system, fault detection and recovery method, and recovery program therefor | |
CN101330422A (en) | Method for avoiding broadcast storm in an ether looped network and transmission switch for the ether looped network | |
US11374689B2 (en) | Mission-critical communication links for industrial control systems | |
JPWO2006075403A1 (en) | Transmission apparatus and failure notification method | |
JP2007286786A (en) | Monitoring controller and failure self-diagnosis method | |
JP6945416B2 (en) | Power controller, control method, control program, and control system | |
KR102291814B1 (en) | System and method for restoring missing data in distributed solar power system | |
JP2008269252A (en) | Security system | |
JPS58170247A (en) | Automatic loop back controlling system | |
JP2004007930A (en) | System and program for controlling power system monitoring | |
JP2555472B2 (en) | Distributed control system with signal cable connection status monitoring function | |
KR101236843B1 (en) | Power over network control system | |
KR101873713B1 (en) | System for Power over Ethernet device fault monitoring and hardware resetting | |
JP2002344460A (en) | Power grid monitor control system and record medium with connection establishment state monitoring control program recorded thereon | |
JP5112165B2 (en) | Communication device | |
JP2000013469A (en) | Device and method for recovering communication equipment | |
KR200185123Y1 (en) | An apparatus for remote control of boiler | |
KR960001045B1 (en) | Connection detection method and circuit of controller | |
CN115903450A (en) | Method for processing controller state, related equipment and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040706 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040903 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20050308 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070725 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 3992895 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100803 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100803 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110803 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110803 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120803 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120803 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130803 Year of fee payment: 6 |
|
EXPY | Cancellation because of completion of term |