JP2009044619A - Communication method, network system, storage medium, and network connection device - Google Patents
Communication method, network system, storage medium, and network connection device Download PDFInfo
- Publication number
- JP2009044619A JP2009044619A JP2007209404A JP2007209404A JP2009044619A JP 2009044619 A JP2009044619 A JP 2009044619A JP 2007209404 A JP2007209404 A JP 2007209404A JP 2007209404 A JP2007209404 A JP 2007209404A JP 2009044619 A JP2009044619 A JP 2009044619A
- Authority
- JP
- Japan
- Prior art keywords
- request command
- response
- client
- server
- network
- 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
Links
Images
Abstract
Description
本発明は、ネットワークを介して接続されたクライアントとサーバとの間で要求コマンドに対する応答レスポンスを返信する方式でデータ通信を行うシステムに係り、特にリアルタイム性を向上させた通信方法、ネットワークシステム、記憶媒体およびネットワーク接続機器に関する。尚、ここではクライアント側の情報処理機器(コンピュータ)をクライアントと定義し、またサーバ用の情報処理機器(コンピュータ)をサーバと定義して用いる。 The present invention relates to a system for performing data communication in a system in which a response response to a request command is returned between a client and a server connected via a network, and in particular, a communication method, a network system, and a memory with improved real-time characteristics The present invention relates to a medium and a network connection device. Here, an information processing device (computer) on the client side is defined as a client, and an information processing device (computer) for a server is defined as a server.
ファクトリーオートメーション(FA)等においては、図9に示すようにクライアント1とサーバ2とをネットワーク3を介して接続し、ネットワーク3を介してデータ通信を行うネットワークシステムが構築される。このようなネットワークシステムにおいては、例えば図10に示すようにクライアント1からサーバ2に向けて該サーバ2のデータエリアに格納されたデータAの値の出力を要求するコマンド(要求コマンド)を送信し、この要求コマンドを受けたサーバ2から前記クライアント1に向けて上記要求コマンドに対する応答レスポンスの形で前記データAの値を返信することが多い。このようなデータ通信形態は、例えば要求コマンド/応答レスポンス方式と称される(例えば特許文献1,2を参照)。
In factory automation (FA) or the like, a network system is constructed in which a
また上記FAにおいては、サーバ2が収集したデータをクライアント1側にて定常的に監視するべく、クライアント1から同一の要求コマンドを一定時間毎に繰り返し送信することも多い。
しかしながらネットワーク3が広域に亘って敷設された低速の通信回線にて構築されるような場合、要求コマンドの送出から応答レスポンスの到着までに要する時間(応答遅れ時間;遅延時間)が大きくなることが否めず、リアルタイム性が損なわれると言う不具合がある。また広域ネットワークとしてインターネット回線を利用するような場合、セキュリティを高めるべく通信データを暗号化することが多く、暗号化・復号化に伴う高負荷な処理に起因して前述した応答遅れ時間が益々増大すると言う不具合がある。従って要求コマンド/応答レスポンス方式によりリアルタイムにデータを収集する必要のある状態監視等の用途においては、ローカルエリアネットワーク等の高速な環境に限られると言う問題がある。
However, when the
本発明はこのような事情を考慮してなされたもので、その目的は、例えば広域ネットワークのような比較的低速なネットワークを介してクライアントとサーバとの間で要求コマンド/応答レスポンス方式によりデータ通信を行う場合であっても、そのリアルタイム性を十分に確保したデータ通信を行い得る通信方法、および簡易な構成のネットワークシステムを提供することにある。 The present invention has been made in consideration of such circumstances, and its object is to perform data communication by a request command / response response method between a client and a server via a relatively low speed network such as a wide area network. Therefore, it is an object to provide a communication method capable of performing data communication with sufficiently ensuring the real-time property and a network system with a simple configuration.
また同時に本発明は上記ネットワークシステムを構築するに必要な機能を有するソフトウェアプログラムを記憶した記憶媒体、更には上記機能を備えたネットワーク接続機器を提供することにある。 At the same time, it is an object of the present invention to provide a storage medium storing a software program having a function necessary for constructing the network system, and a network connection device having the function.
上述した目的を達成するべく本発明は、ネットワークを介して接続されたクライアントとサーバとの間で要求コマンド/応答レスポンス方式にてデータ通信を行い、これによってサーバが収集したデータをクライアントにて定常的に監視するような場合、クライアントからサーバに向けて同一の要求コマンドを一定の周期で繰り返し送信することが多いことに着目している。そこで本発明に係る通信方法は、ネットワークを介して同一の要求コマンドを一定の周期で受信したとき該要求コマンドをキャッシュし、キャッシュした要求コマンドに従って一定の周期で応答レスポンスを返信するようにしたことを特徴としている。 In order to achieve the above-described object, the present invention performs data communication between a client and a server connected via a network by a request command / response response method, whereby the data collected by the server is constantly transmitted by the client. In such a case, it is noted that the same request command is often repeatedly transmitted from the client to the server at a constant period. Therefore, the communication method according to the present invention caches the request command when the same request command is received via the network at a constant cycle, and returns a response response at a constant cycle according to the cached request command. It is characterized by.
また本発明に係るネットワークシステムは、クライアントからネットワークを介してサーバに要求コマンドを送信し、上記要求コマンドを受けた前記サーバから前記ネットワークを介して前記クライアントに応答レスポンスを返信するシステムにおいて、
前記クライアントから同一の要求コマンドが一定の周期で送信されるとき、前記サーバ側において前記要求コマンドをキャッシュし、キャッシュした要求コマンドに従って前記サーバから一定の周期で応答レスポンスを返信するようにしたことを特徴としている。
In the network system according to the present invention, a request command is transmitted from a client to a server via a network, and a response response is returned from the server that has received the request command to the client via the network.
When the same request command is transmitted from the client at a fixed cycle, the request command is cached on the server side, and a response response is returned from the server at a fixed cycle according to the cached request command. It is a feature.
好ましくは前記クライアントおよび前記サーバを、中継機能を備えた代理エージェントを介して前記ネットワークにそれぞれ接続し、
前記クライアント側の代理エージェントを、前記クライアントから同一の要求コマンドが一定の周期で通知されるとき、前記サーバ側の代理エージェントに該要求コマンドのキャッシュを指示すると共に、その後の前記クライアントからの要求コマンドの中継を停止するように構成すると共に、前記サーバ側の代理エージェントを、キャッシュした要求コマンドに従って前記クライアントに代わって前記一定の周期で前記サーバに要求コマンドを発するように構成することが好ましい。
Preferably, the client and the server are respectively connected to the network via a proxy agent having a relay function,
When the same request command is notified from the client in a certain cycle to the client side proxy agent, the server side proxy agent is instructed to cache the request command, and the subsequent request command from the client Preferably, the server-side proxy agent is configured to issue a request command to the server at the predetermined period in place of the client in accordance with the cached request command.
また前記サーバにおいては、キャッシュした要求コマンドに応答するに際して、前記ネットワークでの応答遅れ時間を見込んで応答レスポンスを返送するように構成することが望ましい。尚、前記クライアント側の代理エージェントにおいては、要求コマンドの内容をハッシュ計算して求められる値をシグニチャとして同一の要求コマンドの検出を行うようにすれば良い。また前記ハッシュ計算については、要求コマンドに含まれるシーケンス番号を除いて実行するようにすれば良い。 The server is preferably configured to return a response response in response to a cached request command in anticipation of a response delay time in the network. In the proxy agent on the client side, the same request command may be detected using the value obtained by hash calculation of the contents of the request command as a signature. The hash calculation may be executed by excluding the sequence number included in the request command.
また上述したクライアント側の代理エージェントの機能およびサーバ側の代理エージェントの機能については、コンピュータ上でこれらの機能を実現するソフトウェアを記憶した記憶媒体として提供するようにしても良い。或いはクライアント側の代理エージェントの機能を備えたネットワーク接続機器や、サーバ側の代理エージェントの機能を備えたネットワーク接続機器として提供するようにしても良い。 Further, the functions of the client-side proxy agent and the server-side proxy agent described above may be provided as a storage medium storing software that realizes these functions on a computer. Alternatively, it may be provided as a network connection device having a client-side proxy agent function or a network connection device having a server-side proxy agent function.
本発明に係る通信方法およびネットワークシステムによれば、クライアントが同一の要求コマンドを一定の時間毎に繰り返して送信する状態をクライアント側の代理エージェントにおいて検出したとき、その要求コマンドをサーバ側の代理エージェントにてキャッシュさせると共にその後の同一要求コマンドの中継を停止し、サーバ側の代理エージェントにおいてはキャッシュした要求コマンドに従って一点時間毎にクライアントに向けて応答レスポンスを送信するので、見掛け上その応答遅れを低減することができる。またネットワークに対して同一の要求コマンドが一定時間毎に繰り返し送信されることがなくなるので、ネットワークでのトラフィック量を低減することも可能となる。 According to the communication method and the network system of the present invention, when the client-side proxy agent detects a state in which the client repeatedly transmits the same request command at regular intervals, the request command is transmitted to the server-side proxy agent. And the subsequent proxy request on the server is stopped, and the server side proxy agent sends a response response to the client at every point of time according to the cached request command, apparently reducing the response delay. can do. In addition, since the same request command is not repeatedly transmitted to the network at regular intervals, it is possible to reduce the traffic amount in the network.
特にサーバからクライアントに向けて応答レスポンスを送信するに際して、ネットワークでの応答遅れ時間を見込んで時間的に遡って応答レスポンスを返送するようにすれば、クライアントにおいては要求コマンドの送信タイミングにてリアルタイムに応答レスポンスを得ることができるので、実質的に応答遅れ時間を零(0)としてリアルタイム性を確保することが可能となる。従って低速のネットワークを介して要求コマンド/応答レスポンス方式によりデータ通信を行う場合であっても、そのリアルタイム性を簡易にして効果的に確保することが可能となる。 In particular, when sending a response response from the server to the client, if the response response is sent back in time in anticipation of the response delay time in the network, the client will send the request command in real time at the transmission timing of the request command. Since a response response can be obtained, real-time performance can be ensured with the response delay time substantially zero (0). Therefore, even when data communication is performed by a request command / response response method via a low-speed network, the real-time property can be simply and effectively ensured.
以下、図面を参照して本発明の一実施形態に係る通信方法およびこの通信方法を採用したネットワークシステムについて説明する。
図1は本発明に係るネットワークシステムの概略構成図で、1はクライアント(クライアント側の情報処理装置;コンピュータ)、2はサーバ(サーバ用の情報処理装置;コンピュータ)、そして3は広域通信回線やインターネット回線等のネットワークである。本発明に係るネットワークシステムは、中継機能を備えた代理応答用の代理エージェント(代理応答エージェント)4を介して前記クライアント1をネットワーク3に接続すると共に、中継機能を備えた代理要求用の代理エージェント(代理要求エージェント)5を介して前記サーバ2をネットワーク3に接続して構築される。そして前記クライアント1およびサーバ2は、上記代理応答エージェント4および代理要求エージェント5をそれぞれ介してデータ通信を行うように設定される。尚、上記各代理エージェント4,5とは、クライアント1またはサーバ2と前記ネットワーク3との間で要求コマンドおよび応答レスポンスをそれぞれ中継する中継機能、並びに後述する代理応答機能および代理要求機能を備えた情報処理装置(コンピュータ)を指す。
Hereinafter, a communication method according to an embodiment of the present invention and a network system employing the communication method will be described with reference to the drawings.
FIG. 1 is a schematic configuration diagram of a network system according to the present invention. 1 is a client (information processing apparatus on the client side; computer), 2 is a server (information processing apparatus for server; computer), and 3 is a wide area communication line or A network such as an Internet line. The network system according to the present invention connects the
このような代理応答エージェント4および代理要求エージェント5をそれぞれ介する前述したクライアント1とサーバ2との間の間接的なデータ通信は、クライアント1が代理応答エージェント4をサーバ3と看做し得るように、またサーバ2が代理要求エージェント5をクライアント1と看做し得るように、上記各代理エージェント4,5に仮想のネットワークアドレスを割り当てることにより実現される。
The above-described indirect data communication between the
そしてこれらの代理エージェント4,5間でのネットワーク3を介するデータ通信は、例えば図2に示すようにクライアント1から送信された要求コマンド(通信データ)またはサーバ2から返送される応答レスポンス(通信データ)に、これらの通信データの中継を制御する為のエージェント中継制御ヘッダを付し、更に通信プロトコルヘッダを付すことで、所定のフォーマットの通信パケットを構成して行われる。好ましくは前記エージェント4,5間でのデータ通信は、要求コマンド/応答レスポンス(通信データ)とエージェント中継制御ヘッダとからなる通信データ内容(パケットデータ)を暗号化して行われる。
The data communication between the
さて前記代理応答エージェント4は前述した中継機能に加えて、クライアント1からサーバ2に向けて送信される要求コマンドを監視して、同一の要求コマンドが繰り返し送信されるか否かを判定し、また同一の要求コマンドが一定の周期Tで繰り返し送信される場合には、その周期Tを検出する機能を備える。そして同一の要求コマンドが所定の期間に亘って、或いは所定の回数に亘って一定の周期Tで繰り返し送信されることが検出された場合には該要求コマンドの中継処理を停止し、サーバ2側に該要求コマンドのキャッシュを指示する機能を備える。
In addition to the relay function described above, the
一方、前記代理要求エージェント5は前述した中継機能に加えて前記要求コマンドのキャッシュ機能を備える。このキャッシュ機能は、前記代理応答エージェント4から要求コマンドのキャッシュの指示を受けたとき、前記クライアント1から一定の周期Tで繰り返し送信されていた要求コマンドと該要求コマンドの送信周期Tの情報とを図示しないメモリ(キャッシュ・メモリ)に書き込んで保存する役割を担う。そして更に代理要求エージェント5は上述した如く要求コマンドをキャッシュしたとき、キャッシュした要求コマンドに従って前記周期T毎に前述したクライアント1に代わって前記要求コマンドを繰り返しサーバ2に通知する機能を備える。
On the other hand, the
このようにしてキャッシュした要求コマンドを前記サーバ2に向けて出力する際、前記代理要求エージェント5は、後述するように前記ネットワーク3での通信データの伝送遅れ(遅延時間D)に基づいて、その遅延時間に相当する時間Dだけ遡ったタイミングで同一の要求コマンドを一定の周期Tで繰り返し出力する。するとサーバ2は代理要求エージェント5が発した要求コマンドを、前記クライアント1から送信された要求コマンドであると看做して取り込み、クライアント1に向けて応答レスポンスを返信する。
When the request command cached in this way is output to the
このようにしてサーバ2から返信された応答レスポンスは代理要求エージェント5から前記ネットワーク3を介して、更には前記代理応答エージェント4を介して中継されてクライアント1に送信される。従ってクライアント1は、自らが送信した要求コマンドに対して、あたかも代理応答エージェント4からリアルタイムに応答レスポンスがあったかの如く、その応答レスポンスを受信することが可能となる。
The response response returned from the
このように構築されたネットワークシステムにおいては、代理応答エージェント4および代理要求エージェント5の各中継機能を用いることで、基本的には図3(a)に示すようにクライアント1とサーバ2との間で要求コマンド/応答レスポンス方式によるデータ通信を間接的に行い得る。しかしこの場合、代理応答エージェント4と代理要求エージェント5とを結ぶネットワーク3の伝送特性に起因してクライアント1から送信された要求コマンドがサーバ2に届くまでに時間(遅れ時間)が掛かることが否めない。また同様にサーバ2が返信した応答レスポンスがクライアント1に届くまでに時間(遅れ時間)が掛かることが否めない。
In the network system constructed in this way, the relay functions of the
しかし代理応答エージェント4による同一要求コマンドの検出機能と代理要求エージェント5による要求コマンドのキャッシュ機能とを用い、クライアント1から発せられた要求コマンドのサーバ2側への中継を中止し、これに代わって前記代理要求エージェント5からキャッシュした要求コマンドをサーバ2に与えることで、図3(b)に示すようにネットワーク3を介して要求コマンドをデータ通信する必要がなくなるので、見掛け上、該要求コマンドの伝送遅れをなくすことができる。
However, using the same request command detection function by the
またサーバ2から返信される応答レスポンスについては、ネットワーク3を介してデータ通信することが必要なので、それ自体の伝送遅れを回避することはできない。しかし前述したようにネットワーク3での伝送遅れを見込み、その伝送遅れ時間分だけ遡ったタイミングで前記サーバ2から応答レスポンスを出力するようにすれば、クライアント1は見掛け上、応答遅れなく応答レスポンスを受信することが可能となる。但し、このようにして応答レスポンスの出力タイミングを早めるには、その分、前記代理要求エージェント5からキャッシュした要求コマンドを、前述した伝送遅れ時間を見込んで遡ったタイミングで発するようにすることは言うまでもない。
In addition, since it is necessary to perform data communication via the
従ってこのように構築されたネットワークシステムによれば、ネットワーク3での伝送遅れが無視できない環境下においても、クライアント1は要求コマンドを発したタイミングから時間遅れなく、つまりリアルタイムにその応答レスポンスを受け取ることが可能となり、そのリアルタイム性を十分に高めることが可能となる。しかもクライアント1が同一の要求コマンドを一定の周期Tで繰り返し発することが多いことに着目し、所定の周期Tで繰り返し発せられる要求コマンドをサーバ2側の代理要求エージェント5にてキャッシュし、しかる後、ネットワークを介する要求コマンドのデータ通信を行うことなく、キャッシュした要求コマンドに従って応答レスポンスを繰り返し返信すると言う簡易な制御だけで、要求コマンド/応答レスポンス方式によるクライアント1でのデータ収集をリアルタイムに行うことができる。従ってその実用的利点が絶大である。
Therefore, according to the network system constructed in this way, even in an environment where transmission delays in the
ここで前述した代理応答エージェント4が有する同一の要求コマンドの検出処理と、前記代理要求エージェント5における要求コマンドのキャッシュ処理について今少し詳しく説明する。クライアント1が送信された要求コマンドの前記代理応答エージェント4における監視は、要求コマンドの内容をシグニチャ値として取り扱い、繰り返し送信される要求コマンドのシグニチャ値が等しいか否かを判定することによって行われる。特に本発明においては、要求コマンドの内容をハッシュ計算し、その計算結果をシグニチャ値として求めることで要求コマンドの内容の一意性を保証しながら、小容量で固定長のデータとして取り扱うものとなっている。
Here, the detection process of the same request command included in the
尚、クライアント1から送信される要求コマンドに一連のシーケンス番号(連番)等の付属情報が付されるような場合には、図4に例示するように付属情報を除いた要求コマンドそのものだけを抽出して、換言すれば付属情報をマスクしてハッシュ計算が行われる。このようにして求められたシグニチャ値(ハッシュ計算値)をキーとして前記要求コマンドに付されているタイムスタンプを管理し、例えば現在の要求コマンドのタイムスタンプと前回の要求コマンドのタイムスタンプとの時間差として、その繰り返し周期Tを計測する。
In the case where attached information such as a series of sequence numbers (serial numbers) is attached to the request command transmitted from the
より具体的には代理応答エージェント4は、例えば図5に示す処理手順に従って要求コマンドの監視処理等を実行する。即ち、代理応答エージェント4はクライアント1からの要求コマンドを受信すると〈ステップS1〉、先ず前述したように要求コマンドの内容をハッシュ計算し、その計算結果をシグニチャ値とする〈ステップS2〉。そして予め準備されているシグニチャテーブル4aを検索し〈ステップS3〉、該シグニチャテーブル4aに同じシグニチャ値が登録されているか否かを判定する〈ステップS4〉。
More specifically, the
尚、シグニチャテーブル4aとは、シグニチャ値をキーとして要求コマンドのタイムスタンプ、その繰り返し周期、同一要求コマンドの測定回数、同一要求コマンドの測定完了フラグ等を記憶する為のメモリ領域からなる。そして前述したステップS2において求められたシグニチャ値がシグニチャテーブル4aに登録されていない場合には、そのシグニチャ値をシグニチャテーブル4aに新規登録する〈ステップS5〉。シグニチャテーブル4aへの新規登録は、シグニチャ値をキーとし、タイムスタンプの項目に前記要求コマンドに付されているタイムスタンプの値を書き込むと共に、周期の項目および測定回数の項目をそれぞれ零(0)にリセットすることによって行われる。 The signature table 4a includes a memory area for storing a time stamp of a request command, a repetition period thereof, the number of times of measurement of the same request command, a measurement completion flag of the same request command, etc. using the signature value as a key. If the signature value obtained in step S2 described above is not registered in the signature table 4a, the signature value is newly registered in the signature table 4a <step S5>. The new registration to the signature table 4a uses the signature value as a key, writes the time stamp value attached to the request command in the time stamp item, and sets the period item and the number of measurement times to zero (0). Is done by resetting to
そしてこの場合には、次に前述した要求コマンドをサーバ2側(代理要求エージェント4)に向けて中継送信する〈ステップS6〉。そしてサーバ2側(代理要求エージェント4)からの応答レスポンスを待ち受け〈ステップS7〉、応答レスポンスを受信したときには該応答レスポンスをクライアント1に向けて中継送信する〈ステップS8〉。これによって要求コマンド/応答レスポンス方式によるクライアント1とサーバ2との間のデータ通信の中継を完了する。
In this case, the request command described above is then relay-transmitted toward the
これに対して要求コマンドから求めたシグニチャ値が、前述したシグニチャテーブル4aに既に登録されている場合には〈ステップS4〉、当該要求コマンドに対する同一性の判定(繰り返し周期の測定)が既に完了したか否かが判定される〈ステップS9〉。そして同一の要求コマンドが一定の周期でクライアント1から繰り返し送信されていることが既に検出されている場合には、該要求コマンドをサーバ4側に向けて中継送信することなく、換言すれば要求コマンドの中継を停止し、前述したようにサーバ4側からの応答レスポンスを待ち受ける〈ステップS7〉。そして受信した応答レスポンスをクライアント1に向けて中継送信する〈ステップS8〉。
On the other hand, if the signature value obtained from the request command is already registered in the signature table 4a described above (step S4), the identity determination (repetition cycle measurement) for the request command has already been completed. Is determined <step S9>. If it is already detected that the same request command has been repeatedly transmitted from the
一方、要求コマンドから求めたシグニチャ値が、前述したシグニチャテーブル4aに既に登録されているが、その要求コマンドの繰り返し送信周期Tが求められていない場合には、前述したシグニチャテーブル4aから前回の同じ要求コマンドに付されていたタイムスタンプを求めると共に、今回の要求コマンドに付されていたタイムスタンプを求め、これらのタイムスタンプの時間差として要求コマンドの繰り返し送信周期Tを求める〈ステップS10〉。そしてシグニチャテーブル4aに、要求コマンドの繰り返し送信周期Tが登録されているか否かを判定し〈ステップS11〉、送信周期Tが登録されていない場合には、前述した如く求めた送信周期Tをシグニチャテーブル4aに書き込んでその登録内容を更新する〈ステップS12〉。この際、シグニチャテーブル4aに登録している測定回数Nをインクリメントする。 On the other hand, if the signature value obtained from the request command has already been registered in the signature table 4a, but the repeated transmission period T of the request command has not been obtained, the same as the previous one from the signature table 4a. The time stamp attached to the request command is obtained, the time stamp attached to the current request command is obtained, and the request command repeated transmission cycle T is obtained as a time difference between these time stamps (step S10). Then, it is determined whether or not the repetition cycle T of the request command is registered in the signature table 4a <step S11>. If the transmission cycle T is not registered, the transmission cycle T obtained as described above is used as the signature. The registered contents are updated by writing in the table 4a <step S12>. At this time, the number of measurements N registered in the signature table 4a is incremented.
しかる後、クライアント1から受け取った要求コマンドをサーバ2側(代理要求エージェント4)に向けて中継送信する〈ステップS6〉。そしてサーバ2側(代理要求エージェント4)からの応答レスポンスを待ち受け〈ステップS7〉、応答レスポンスを受信したときには該応答レスポンスをクライアント1に向けて中継送信する〈ステップS8〉。これによって要求コマンド/応答レスポンス方式によるクライアント1とサーバ2との間のデータ通信の中継を完了する。
Thereafter, the request command received from the
これに対してシグニチャテーブル4aに送信周期Tが登録されている場合には〈ステップS11〉、シグニチャテーブル4aに登録されている送信周期Tと、今回新たに求めたタイムスタンプの時間差(送信周期T)との差が、許容された誤差範囲内であるか否かを判定する〈ステップS13〉。この誤差判定は、例えば今回求めたタイムスタンプの時間差(送信周期T)とシグニチャテーブル4aに登録されている送信周期Tとの比を求め、その比が所定の判定閾値以上であるか否かを調べることによって実行される。 On the other hand, when the transmission cycle T is registered in the signature table 4a (step S11), the time difference between the transmission cycle T registered in the signature table 4a and the newly obtained time stamp (transmission cycle T). It is determined whether or not the difference from) is within an allowable error range (step S13). For this error determination, for example, a ratio between the time difference (transmission period T) of the time stamp obtained this time and the transmission period T registered in the signature table 4a is obtained, and whether or not the ratio is equal to or greater than a predetermined determination threshold value. Performed by examining.
そして送信周期Tのずれが許容誤差範囲を超える場合には前記シグニチャテーブル4aの内容を初期化し、新たに今回求められたタイムスタンプを登録し、周期Tおよび測定回数Nをそれぞれ零(0)にリセットする〈ステップS14〉。この場合にも、クライアント1から受け取った要求コマンドをサーバ2側(代理要求エージェント4)に向けて中継送信し〈ステップS6〉、サーバ2側(代理要求エージェント4)からの応答レスポンスを待ち受けて〈ステップS7〉、受信した応答レスポンスをクライアント1に向けて中継送信する〈ステップS8〉。
If the deviation of the transmission period T exceeds the allowable error range, the contents of the signature table 4a are initialized, the time stamp newly obtained this time is registered, and the period T and the number of measurements N are set to zero (0). Reset (step S14). Also in this case, the request command received from the
さてシグニチャテーブル4aに登録されている送信周期Tと、新たに求められた送信周期Tとの差が許容された誤差範囲内である場合には〈ステップS13〉、例えば上記シグニチャテーブル4aに登録されている送信周期Tと、今回新たに求めた送信周期(タイムスタンプの時間差)Tとの平均を求め、これを現時点で計測されている同一の要求コマンドの送信周期Tとして求める〈ステップS15〉。そしてシグニチャテーブル4aに登録されている測定回数Nが所定回数以上であるか否かを判定することで同じ要求コマンドの繰り返し性を判断する〈ステップS16〉。そして上記測定回数Nが所定回数に満たず、同じ要求コマンドの繰り返し性が保証されない場合には、今回のタイムスタンプや、新たに求めた周期Tをシグニチャテーブル4aに登録し、また測定回数Nをインクリメントとしてシグニチャテーブル4aを更新する〈ステップS17〉。 If the difference between the transmission cycle T registered in the signature table 4a and the newly determined transmission cycle T is within an allowable error range, <step S13>, for example, registered in the signature table 4a. The average of the transmission cycle T currently obtained and the transmission cycle (time difference between time stamps) T newly obtained this time is obtained, and this is obtained as the transmission cycle T of the same request command currently measured <step S15>. Then, the repeatability of the same request command is determined by determining whether or not the number of times of measurement N registered in the signature table 4a is equal to or greater than a predetermined number <step S16>. If the measurement number N is less than the predetermined number and repeatability of the same request command is not guaranteed, the current time stamp and the newly obtained period T are registered in the signature table 4a, and the measurement number N is The signature table 4a is updated as an increment <step S17>.
この場合にも、クライアント1から受け取った要求コマンドをサーバ2側(代理要求エージェント4)に向けて中継送信し〈ステップS6〉、サーバ2側(代理要求エージェント4)からの応答レスポンスを待ち受けて〈ステップS7〉、受信した応答レスポンスをクライアント1に向けて中継送信する〈ステップS8〉。そして前記クライアント1からの次の要求コマンドの送信を待ち受ける。
Also in this case, the request command received from the
さて上述した如くしてクライアント1が送信した要求コマンドのシグニチャ値を求め、シグニチャテーブル4aを参照して該要求コマンドの同一性と、その繰り返し周期性とが確認されたならば〈ステップS16〉、前記代理要求エージェント5に対して当該要求コマンドのキャッシュを指示する〈ステップS18〉。そしてシグニチャテーブル4aを更新した後〈ステップS17〉、前述したようにクライアント1から受け取った要求コマンドをサーバ2側(代理要求エージェント4)に向けて中継送信する〈ステップS6〉。そしてサーバ2側(代理要求エージェント4)からの応答レスポンスを待ち受けて〈ステップS7〉、受信した応答レスポンスをクライアント1に向けて中継送信する〈ステップS8〉。
Now, as described above, the signature value of the request command transmitted by the
このようにして代理要求エージェント5に対して要求コマンドのキャッシュを指示した後、クライアント1からの新たな要求コマンドを受信すると、代理応答エージェント4においては前述したシグニチャテーブル4aを参照することで、その要求コマンドが所定の周期で繰り返し送信されている要求コマンドと同一であるか否かを判定する〈ステップS4〉。そして所定回数に亘って要求コマンドの繰り返し周期が求められ、その繰り返し周期性が保証されている場合には〈ステップS9〉、代理応答エージェント4は、クライアント1から受け取った要求コマンドをサーバ2側(代理要求エージェント4)に向けて中継送信することなく、つまり要求コマンドの中継を行うことなくサーバ2側(代理要求エージェント4)からの応答レスポンスを待ち受ける〈ステップS7〉。そして受信した応答レスポンスをクライアント1に向けて中継送信する〈ステップS8〉。
After instructing the
代理応答エージェント4は、クライアント1から発せられた要求コマンドを受信する都度、上述した処理手順により要求コマンドの同一性を判断し、更には一定周期での繰り返し性を判断することで、代理要求エージェント5に対して要求コマンドのキャッシュを指示する。そしてその後の要求コマンドの中継を停止し、代理要求エージェント5による管理の下でサーバ2から一定周期で返信される応答レスポンスをクライアント1に中継することになる。従ってクライアント1は、一定の周期Tでサーバ2に向けて送信した要求コマンドに対する応答レスポンスをサーバ2から確実に受け取ることが可能となる。この際、代理応答エージェント4において要求コマンドに付されたシーケンス番号に従って応答レスポンスの中継を管理すれば、常に要求コマンドとその応答レスポンスとを対応付けることが可能となるので、要求コマンド/応答レスポンス方式によるクライアント1とサーバ2との間でのデータ通信に何等の支障を招く虞もない。
Each time the
さて前述したように代理応答エージェント4から要求コマンドのキャッシュの指示を受ける代理要求エージェント5は、例えば図6に示す処理手順に従ってその処理機能を実行する。即ち、代理要求エージェント5は、基本的には代理応答エージェント4からの要求コマンドを受信し〈ステップS21〉、その要求コマンドにキャッシュ指示の情報が含まれているか否かを判断する〈ステップS22〉。そしてキャッシュ指示がない場合には、代理応答エージェント4から受信した要求コマンドをサーバ2に向けて中継送信する〈ステップS23〉。そしてこの要求コマンドに対してサーバ2が返信する応答レスポンスを受信し〈ステップS24〉、受信した応答レスポンスを前記代理応答エージェント4に対して中継送信する〈ステップS25〉。即ち、代理応答エージェント4とサーバ2との間のデータ通信を中継する。
As described above, the
これに対して代理応答エージェント4から通知された要求コマンドにキャッシュ指示の情報が含まれる場合には〈ステップS22〉、その指示に従って当該要求コマンドをキャッシュメモリ5aにキャッシュする〈ステップS26〉。同時に前記代理応答エージェント4にて求められた要求コマンドの繰り返し周期Tの情報を取得する。そしてこの繰り返し周期Tから前記ネットワーク3でのデータの伝送遅れ時間(伝送遅延時間)を差し引くことで、前記クライアント1が次回に要求コマンドを送信すると見込まれるタイミングから一定時間だけ遡ったタイミングを設定する〈ステップS27〉。この場合、前述したように前記代理応答エージェント4にて要求コマンドの中継が停止されることから、上記タイミングにて前記クライアント1からの要求コマンドに代えて、先にキャッシュした要求コマンドを読み込み〈ステップS28〉、この要求コマンドをサーバ2に対して送信する〈ステップS29〉。この場合、要求コマンドに負荷するシーケンス番号を順次インクリメントする。そして送信した要求コマンドに対して前記サーバ2が返信する応答レスポンスを受信し〈ステップS30〉、この応答レスポンスを前記代理応答エージェント4に対して中継送信する〈ステップS31〉。
On the other hand, if the request command notified from the
その後、前述した要求コマンドの繰り返し周期Tをタイマ管理し、上記周期Tが経過する都度〈ステップS32〉、前述したステップS28からの処理を繰り返し実行する。即ち、一定の周期毎にキャッシュした要求コマンドをサーバ2に与えることで、該サーバ2から一定周期T毎にその応答レスポンスを引き出し、これをクライアント1側に向けて中継送信する。
Thereafter, the repetition period T of the request command described above is managed by a timer, and each time the period T elapses <step S32>, the processing from step S28 described above is repeatedly executed. That is, by giving a request command cached at regular intervals to the
このように機能する代理要求エージェント5と前述した代理応答エージェント4とにより、クライアント1から一定の周期で繰り返し送信される同一の要求コマンドが検出されたとき、その要求コマンドを代理要求エージェント5にてキャッシュし、ネットワーク3を介してクライアント1が送信した要求コマンドを伝送することなく、キャッシュした要求コマンドに基づいてサーバ2から一定の周期で応答レスポンスをクライアント1に与えることが可能となる。特にキャッシュした要求コマンドに基づく応答レスポンスの返送タイミングを、ネットワーク3での伝送遅れを見込んで早めに設定することで、クライアント1における要求コマンドの送信タイミングからの応答レスポンスの受信タイミングまでの応答遅れを実質的(見掛け上)になくすことができる。従ってそのリアルタイム性を十分に高くすることが可能となる。
When the
尚、前述した代理応答エージェント4および代理要求エージェント5がそれぞれ有する機能については、図7に例示するようにクライアント1側のコンピュータおよびサーバ2がのコンピュータにそれぞれソフトウェアプログラムとして組み込むようにすれば十分である。この場合、代理応答エージェント4および代理要求エージェント5がそれぞれ有する機能を実行するソフトウェアプログラムをCD-ROM等の記録媒体に書き込んで、適宜、各種のネットワークシステムに組み込みうるようにしておくことが好ましい。
As for the functions of the
また或いは図8に示すように代理応答エージェント4の機能を備えたネットワーク接続機器、および代理要求エージェント5の機能を備えたネットワーク接続機器としてそれぞれ実現し、これらのネットワーク接続機器をクライアントコンピュータとネットワーク3の間、およびサーバコンピュータとネットワーク3の間にそれぞれ介挿するようにしても良い。要はその実施の形態については種々変形可能である。
Alternatively, as shown in FIG. 8, the network connection device having the function of the
尚、本発明は上述した実施形態に限定されるものではない。例えば要求コマンドの同一性の判定やその周期性の判定については、種々の判定アルゴリズを適宜採用可能である。またここではクライアント1とサーバ2との1対1のデータ通信を例に説明したが、複数のサーバ2との間で並列的に要求コマンド/応答レスポンス方式にてそれぞれデータ通信を行う場合でも同様に適用することができる。その他、本発明はその要旨を逸脱しない範囲で種々変形して実施することができる。
The present invention is not limited to the embodiment described above. For example, various determination algorithms can be appropriately employed for determining the identity of request commands and determining the periodicity thereof. In addition, here, the one-to-one data communication between the
1 クライアント
2 サーバ
3 ネットワーク
4 代理応答エージェント
5 代理要求エージェント
1
Claims (9)
前記クライアントから同一の要求コマンドが一定の周期で送信されるとき、前記サーバ側において前記要求コマンドをキャッシュし、キャッシュした要求コマンドに従って前記サーバから一定の周期で応答レスポンスを返信することを特徴とするネットワークシステム。 A system for sending a request command from a client to a server via a network and returning a response response from the server that has received the request command to the client via the network,
When the same request command is transmitted from the client at a fixed cycle, the request command is cached on the server side, and a response response is returned from the server at a fixed cycle according to the cached request command. Network system.
前記クライアント側の代理エージェントは、前記クライアントから同一の要求コマンドが一定の周期で通知されるとき、前記サーバ側の代理エージェントに該要求コマンドのキャッシュを指示すると共に、その後の前記クライアントからの要求コマンドの中継を停止する機能を備え、
前記サーバ側の代理エージェントは、キャッシュした要求コマンドに従って前記クライアントに代わって前記一定の周期で前記サーバに要求コマンドを発する機能を備えることを特徴とする請求項2に記載のネットワークシステム。 The client and the server are each connected to the network via a proxy agent having a relay function,
The client-side proxy agent instructs the server-side proxy agent to cache the request command when the same request command is notified from the client in a certain cycle, and the subsequent request command from the client. Has a function to stop
3. The network system according to claim 2, wherein the server-side proxy agent has a function of issuing a request command to the server at the fixed period on behalf of the client in accordance with a cached request command.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007209404A JP4927661B2 (en) | 2007-08-10 | 2007-08-10 | Communication method, network system, storage medium, and network connection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007209404A JP4927661B2 (en) | 2007-08-10 | 2007-08-10 | Communication method, network system, storage medium, and network connection device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009044619A true JP2009044619A (en) | 2009-02-26 |
JP4927661B2 JP4927661B2 (en) | 2012-05-09 |
Family
ID=40444833
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007209404A Expired - Fee Related JP4927661B2 (en) | 2007-08-10 | 2007-08-10 | Communication method, network system, storage medium, and network connection device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4927661B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009071753A (en) * | 2007-09-18 | 2009-04-02 | Fujitsu Ltd | Communication suppressing method, communication suppressing apparatus, communication suppressing program, service providing server and service utilizing terminal |
JP2012156852A (en) * | 2011-01-27 | 2012-08-16 | Nippon Telegr & Teleph Corp <Ntt> | Communication device and operation method therefor |
US9294652B2 (en) | 2014-01-20 | 2016-03-22 | Konica Minolta, Inc. | Technique of relaying communication between image forming apparatus and server |
JP2016539818A (en) * | 2014-01-20 | 2016-12-22 | 珠海艾派克微▲電▼子有限公司 | Imaging cartridge storage chip parameter transmission method, storage chip, and imaging cartridge |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH086898A (en) * | 1994-06-21 | 1996-01-12 | Fujitsu Ltd | Polling substitute device |
JPH11122244A (en) * | 1997-10-20 | 1999-04-30 | Fujitsu Ltd | Managing device for large scaled network |
-
2007
- 2007-08-10 JP JP2007209404A patent/JP4927661B2/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH086898A (en) * | 1994-06-21 | 1996-01-12 | Fujitsu Ltd | Polling substitute device |
JPH11122244A (en) * | 1997-10-20 | 1999-04-30 | Fujitsu Ltd | Managing device for large scaled network |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009071753A (en) * | 2007-09-18 | 2009-04-02 | Fujitsu Ltd | Communication suppressing method, communication suppressing apparatus, communication suppressing program, service providing server and service utilizing terminal |
JP2012156852A (en) * | 2011-01-27 | 2012-08-16 | Nippon Telegr & Teleph Corp <Ntt> | Communication device and operation method therefor |
US9294652B2 (en) | 2014-01-20 | 2016-03-22 | Konica Minolta, Inc. | Technique of relaying communication between image forming apparatus and server |
JP2016539818A (en) * | 2014-01-20 | 2016-12-22 | 珠海艾派克微▲電▼子有限公司 | Imaging cartridge storage chip parameter transmission method, storage chip, and imaging cartridge |
Also Published As
Publication number | Publication date |
---|---|
JP4927661B2 (en) | 2012-05-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9781215B2 (en) | Migration of network connection under mobility | |
JP5935622B2 (en) | Information processing apparatus, monitoring apparatus, information processing method, and monitoring program | |
JPWO2016006520A1 (en) | Detection device, detection method, and detection program | |
JP4758362B2 (en) | Relay device, program, and relay method | |
JP2005044353A (en) | State migration in multiple nic rdma enabled devices | |
JP2017505473A5 (en) | ||
CN102833337A (en) | FTP (File Transfer Protocol) file uploading, downloading method and device | |
US10609151B2 (en) | Communicating with a constrained internet device | |
RU2007148416A (en) | UNITED ARCHITECTURE FOR REMOTE NETWORK ACCESS | |
WO2018107387A1 (en) | Data transmission method, device, system, electronic device, and computer program product | |
JP4927661B2 (en) | Communication method, network system, storage medium, and network connection device | |
CN103685213A (en) | Device, system and method for reducing attacks on DNS | |
CN107995233B (en) | Method for establishing connection and corresponding equipment | |
WO2018040793A1 (en) | Method and apparatus for defending distributed reflection denial of service, and switch | |
US10536560B2 (en) | System and method for implementing augmented object members for remote procedure call | |
CN111245831B (en) | FTP data transmission method and device, and information interaction system of server and client | |
US20080170498A1 (en) | Method and system for a distributed platform solution for supporting cim over web services based management | |
US20130080501A1 (en) | Method for transmitting real-time video data over network | |
JP2006330783A (en) | Device and method for specifying overlay network generation application starting node | |
JP2014513351A (en) | Authentication information processing | |
WO2016184079A1 (en) | Method and device for processing system log message | |
JP2008108116A (en) | Two-way communication system, server device, relay device, two-way communication method, and program | |
JP2008003645A (en) | Request control method by timer link | |
US11310191B2 (en) | Receiving device, receiving device control method, network system, network system control method, and medium | |
CN110365778B (en) | Communication control method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100707 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111014 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111130 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120116 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20120201 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120209 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150217 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |