JP2009171193A - Communication device, communication method, and communication control program - Google Patents
Communication device, communication method, and communication control program Download PDFInfo
- Publication number
- JP2009171193A JP2009171193A JP2008006697A JP2008006697A JP2009171193A JP 2009171193 A JP2009171193 A JP 2009171193A JP 2008006697 A JP2008006697 A JP 2008006697A JP 2008006697 A JP2008006697 A JP 2008006697A JP 2009171193 A JP2009171193 A JP 2009171193A
- Authority
- JP
- Japan
- Prior art keywords
- time
- communication
- request
- processing
- type
- 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
Links
Images
Abstract
Description
本発明は、ネットワークを介して接続されたプリンタシステムなど、通信機器の要求により他の通信機器を動作させる環境で使用される通信装置、通信方法及び通信制御プログラムに関する。 The present invention relates to a communication apparatus, a communication method, and a communication control program used in an environment in which another communication device is operated in response to a request from the communication device such as a printer system connected via a network.
近年、コンピュータネットワークが普及し、多くのオフィスではコンピュータ、プリンタ等の複数台の情報機器を接続したLANを構築している。コンピュータおよびプリンタ、スキャナ、デジタルカメラなどの周辺機器が普及すると共に、LAN等のネットワークも普及しており、ネットワーク上で印刷装置、モデム、画像読取り装置を共有することによって、ネットワーク上のあらゆる装置を使用できる環境になってきた。 In recent years, computer networks have become widespread, and many offices have constructed LANs connecting a plurality of information devices such as computers and printers. Peripheral devices such as computers and printers, scanners, and digital cameras are prevalent, and networks such as LANs are also prevalent. By sharing printing devices, modems, and image reading devices on the network, all devices on the network can be used. The environment has become usable.
そして、このようにネットワーク上で印刷装置等が他人と共有されている環境では、自分の座席から離れた場所に印刷装置が設置されている場合が多い。そのような印刷装置に対してホストPCから印刷を行う場合、印刷装置がすでに印刷処理中であったり、何らかの障害、例えば用紙詰まりや用紙切れ、予期せぬエラーなど、が発生していることがある。このようなことに起因する印刷の遅延や失敗などは、あらかじめユーザが経験や勘などによって予測しWebブラウザやホストPCアプリケーションのような監視ツールによって印刷装置の状態を確認しておき、状況に応じて他の印刷装置を指定して印刷を行う必要があった。 In such an environment where a printing device or the like is shared with others on the network, the printing device is often installed at a location away from his / her seat. When printing to such a printing device from the host PC, the printing device may already be in the printing process, or some kind of trouble, such as a paper jam or out of paper, an unexpected error, etc. may have occurred. is there. Printing delays and failures due to such factors are predicted in advance by the user based on experience and intuition, and the status of the printing apparatus is confirmed by a monitoring tool such as a Web browser or host PC application. It was necessary to print by specifying another printing device.
ネットワークプリンタが普及してきた今日では、複数のプリンタを管理者が集中的に管理したいという要求が高まっており、ネットワーク経由でプリンタのステータスを取得し監視できるシステムが市場に供給され初めている。大規模なネットワークの場合、管理者の隣にあるプリンタから、500km離れたプリンタまで、監視しなければならないが、これらすべてを同じ扱いで監視していると、管理者からプリンタの物理的な距離,ネットワークの混雑度などが異なるため、破綻を来してしまう。 Now that network printers have become widespread, there is an increasing demand for administrators to centrally manage a plurality of printers, and systems that can acquire and monitor the status of printers via the network are beginning to be supplied to the market. For large networks, the printer next to the administrator must be monitored from the printer 500km away, but if all of these are monitored in the same way, the physical distance between the administrator and the printer Because of the different levels of network congestion, the bankruptcy will occur.
そこで、例えば、複数のプリンタをセンターで集中管理して、使い勝手のよいプリンタ管理を可能にしたものとして、タイムアウト時間をプリンタ1台毎に管理し、かつ、実際の機器との通信時間を計測した結果を元に自動設定するようにしたプリンタ管理システムが提案されている(例えば特許文献1参照)。しかし、処理毎にまでタイムアウト時間を管理するものではないため、実行する処理によっては実際のタイムアウト時間にそぐわないという問題点があった。 Therefore, for example, assuming that multiple printers are centrally managed at the center to enable easy-to-use printer management, the timeout time is managed for each printer and the communication time with the actual device is measured. There has been proposed a printer management system that automatically sets based on the result (see, for example, Patent Document 1). However, since the timeout period is not managed for each process, there is a problem that the actual timeout period does not match depending on the process to be executed.
また、ネットワークを介してホスト装置から供給される受信データを印字するプリンタ装置においては、受信データ、または通信プロトコルによって受信データの終端を検知できない場合、この受信データの出力が未完了のまま、停止してしまうという問題があった。 Also, in the printer device that prints the received data supplied from the host device via the network, if the end of the received data cannot be detected by the received data or the communication protocol, the output of the received data is not completed and is stopped. There was a problem of doing.
そこで、例えば、ネットワークまたはホスト装置の負荷状態が変動しても、受信タイムアウト時間をマニュアルで設定することなしに自動的に好適な値に設定できるプリンタ装置として、少なくとも1つのホスト装置からの受信データが受信タイムアウト時間以上受信されないと、受信データの終端と判断するプリンタ装置において、1パケットごと受信時間を計測しログに残し、1パケットごとに最適なタイムアウト時間を求めるようにしたものが提案されている(例えば特許文献2参照)。しかし、基準となるタイムアウト時間が存在しないため、受信側の処理によっては時間が極端にかかる場合がある場合には最適なタイムアウトとはならないという問題点があった。 Therefore, for example, even if the load state of the network or the host device fluctuates, received data from at least one host device can be automatically set to a suitable value without manually setting the reception timeout time. Is received at the end of the received data, a printer device that determines that the end of the received data measures the reception time for each packet, leaves it in the log, and finds the optimum timeout time for each packet. (For example, refer to Patent Document 2). However, since there is no standard time-out time, there is a problem that the time-out is not optimal when there is a case where the time is extremely long depending on the processing on the receiving side.
さらに、パケット往復時間の変動の最大値と最小値に基づいて、タイムアウト時間を計算することにより、スループットの向上及び通信利用率の最適化を図ることができるという効果が得られる無線通信システムが提案されている(例えば特許文献3参照)。 Furthermore, a wireless communication system is proposed in which the timeout time is calculated based on the maximum and minimum packet round-trip time fluctuations, thereby improving the throughput and optimizing the communication utilization rate. (For example, refer to Patent Document 3).
上述の如く、ネットワークを介して接続されたプリンタシステムなど、情報機器でのネットワーク接続による通信処理においては、送信側の機器が受信側の機器の応答を待つのだが、受信側の機器がなんらかのトラブルによって応答が返せない場合などに、長時間待機することが無いように、応答までのタイムアウト時間が設けられる。 As described above, in communication processing by network connection with an information device such as a printer system connected via a network, the sending device waits for the response of the receiving device, but the receiving device has some trouble. When a response cannot be returned due to the above, a time-out time until the response is provided so as not to wait for a long time.
こうしたタイムアウト時間は、従来技術のように、実際の通信時間を計測して最適な値を算出するものなどが存在する。 As such a timeout time, there is one that measures an actual communication time and calculates an optimum value as in the prior art.
しかしながら、通信処理において送信側が受信側に要求した内容によっては、応答までの時間が異なる場合があるため、計測した時間が全てに適用できるとは限らない。 However, depending on the content requested by the transmission side to the reception side in the communication process, the time until the response may differ, and thus the measured time is not necessarily applicable to all.
このため、受信側にとって最も早く済む要求にて計測した時間で最適化された場合には、もっとも長くかかる要求では、タイムアウトしてしまう可能性もある。 For this reason, when the optimization is performed with the time measured by the request that is the earliest for the receiving side, the request that takes the longest may time out.
そこで、本発明の目的は、上述の如き従来の実情に鑑み、要求内容に対応した最適なタイムアウト時間にて通信を行うことのできる通信装置、通信方法及び通信制御プログラムを提供することにある。 Accordingly, an object of the present invention is to provide a communication device, a communication method, and a communication control program capable of performing communication with an optimum timeout time corresponding to the requested content in view of the conventional situation as described above.
本発明の更に他の目的、本発明によって得られる具体的な利点は、以下に説明される実施の形態の説明から一層明らかにされる。 Other objects of the present invention and specific advantages obtained by the present invention will become more apparent from the description of embodiments described below.
本発明では、1回の通信処理で複数の要求がある場合に、要求の種類毎に基準となるタイムアウト時間を予め設け、実際の通信時には要求毎に応答までの時間を計測し、基準時間と計測結果を演算して、1回の通信処理での最適なタイムアウト時間にて通信を行う。 In the present invention, when there are a plurality of requests in one communication process, a time-out time serving as a reference is set in advance for each type of request, and the time until response is measured for each request during actual communication. The measurement result is calculated, and communication is performed with an optimal timeout time in one communication process.
すなわち、本発明は、他の通信装置とネットワーク接続により通信処理を行う通信装置であって、通信を行う通信部と、上記通信部による通信時間を計測する通信時間計測部と、通信処理内での要求を判断する要求判断部と、通信処理を制御する通信処理制御部と、上記通信時間計測部より得られた計測時間と予め得ている基準のタイムアウト時間から、現在の通信処理での最適なタイムアウト時間を算出する処理時間計算部と、上記処理時間計算部で算出したタイムアウト時間を記憶しておくタイムアウト時間記憶部とを備え、1回の通信処理で複数の要求がある場合に、要求の種類毎に基準となるタイムアウト時間を予め設け、上記通信部による実際の通信時に上記要求判断部により要求の種類を判断して要求毎に1回の要求を送信してから応答を受信するまでの時間を上記通信時間計測部により計測し、上記通信時間計測部より得られた計測時間と予め得ている基準のタイムアウト時間から、現在の通信処理での最適なタイムアウト時間を処理時間計算部により要求の種類毎に算出し、上記処理時間計算部で要求の種類毎に算出したタイムアウト時間をタイムアウト時間記憶部に記憶しておき、後の通信処理において、1回の通信処理内にて、上記タイムアウト時間記憶部に記憶した要求の種類毎のタイムアウト時間を使用して、上記通信部により通信を行うことを特徴とする。 That is, the present invention is a communication device that performs communication processing with another communication device through a network connection, and includes a communication unit that performs communication, a communication time measurement unit that measures communication time by the communication unit, and communication processing. From the measurement time obtained from the communication time measurement unit and the reference time-out time obtained in advance from the request judgment unit for judging the request, the communication processing control unit for controlling the communication processing, and the optimum in the current communication processing A processing time calculation unit that calculates a time-out time and a time-out time storage unit that stores the time-out time calculated by the processing time calculation unit, and when there are a plurality of requests in one communication process, A time-out period that is a reference for each type is set in advance, and the type of request is determined by the request determination unit during actual communication by the communication unit, and one request is transmitted for each request. The time until the response is received is measured by the communication time measurement unit, and the optimum time-out time in the current communication processing is calculated from the measurement time obtained from the communication time measurement unit and the reference time-out time obtained in advance. Is calculated for each type of request by the processing time calculation unit, the timeout time calculated for each type of request by the processing time calculation unit is stored in the timeout time storage unit, and one communication is performed in the subsequent communication processing. Within the processing, communication is performed by the communication unit using a timeout time for each type of request stored in the timeout time storage unit.
本発明に係る通信装置は、通信処理を行う毎に上記処理時間計算部で要求の種類毎のタイムアウト時間を算出して上記タイムアウト時間記憶部に記憶するものとすることができる。 The communication apparatus according to the present invention may calculate a time-out time for each request type by the processing time calculation unit every time communication processing is performed, and store the time-out time in the time-out time storage unit.
また、本発明は、他の通信装置とネットワーク接続により通信処理を行う通信装置における通信方法であって、1回の通信処理で複数の要求がある場合に、要求の種類毎に基準となるタイムアウト時間を予め設け、実際の通信時に要求の種類を判断して、1回の要求を送信してから応答を受信するまでの時間を要求の種類毎に計測し、上記計測により得られた計測時間と予め得ている基準のタイムアウト時間から、現在の通信処理での最適なタイムアウト時間を要求の種類毎に算出し、要求の種類毎に算出したタイムアウト時間を記憶しておき、後の通信処理において、1回の通信処理内にて、記憶した要求の種類毎のタイムアウト時間を使用して、通信を行うことを特徴とする。 In addition, the present invention is a communication method in a communication device that performs communication processing with other communication devices by network connection, and when there are a plurality of requests in one communication processing, a time-out that is a reference for each type of request Time is determined in advance, the type of request is determined during actual communication, the time from when a request is sent to when a response is received is measured for each type of request, and the measurement time obtained by the above measurement From the standard timeout time obtained in advance, the optimal timeout time in the current communication process is calculated for each request type, and the calculated timeout time is stored for each request type. Communication is performed using a time-out time for each type of stored request within one communication process.
さらに、本発明は、他の通信装置とネットワーク接続により通信処理を行う通信装置に備えられたコンピュータにより実行される通信プログラムであって、1回の通信処理で複数の要求がある場合に、要求の種類毎に基準となるタイムアウト時間を予め設け、実際の通信時に要求の種類を判断して、要求毎に応答までの時間を計測する通信時間計測処理と、上記通信時間計測処理より得られた計測時間と予め得ている基準のタイムアウト時間から、現在の通信処理での最適なタイムアウト時間を要求の種類毎に算出する処理時間計算処理と、上記処理時間計算処理により要求の種類毎に算出したタイムアウト時間を記憶するタイムアウト時間記憶処理と、後の通信処理において、1回の通信処理内にて、上記タイムアウト時間記憶処理により記憶した要求の種類毎のタイムアウト時間を使用して通信を行う通信処理とを上記コンピュータに実行させることを特徴とする。 Furthermore, the present invention is a communication program executed by a computer provided in a communication device that performs communication processing with another communication device through a network connection, and is requested when there are a plurality of requests in one communication processing. A reference time-out time is provided in advance for each type of communication, the type of request is determined at the time of actual communication, and the time until response is measured for each request, and obtained from the above communication time measurement process Calculated for each request type by the processing time calculation process that calculates the optimal timeout time for the current communication process for each request type from the measurement time and the standard timeout time obtained in advance, and the above processing time calculation process In the time-out time storing process for storing the time-out time and the subsequent communication process, the time-out time storing process is performed within one communication process. A communication process that communicates using the timeout time for each type of 憶 the request, characterized in that to be executed by the computer.
本発明では、実際の処理内容に応じて基準となるタイムアウト時間を設けることで、応答に時間がかからない処理とかかる処理とで区別することができ、かつ、計測した結果についても基準時間から最適値を求めることで、その通信処理での妥当なタイムアウト時間を得ることができるため、より効果的なタイムアウトにより、不必要に待機する必要がなくなる他、逆にタイムアウト時間が早すぎることで、タイムアウトすることを防ぐことができる。 In the present invention, by providing a reference time-out time according to the actual processing content, it is possible to distinguish between a process that does not take a long time for a response and such a process, and the measured result is also an optimum value from the reference time. By requesting, it is possible to obtain a reasonable timeout time in the communication processing, so there is no need to wait unnecessarily due to more effective timeout, and conversely, timeout occurs because the timeout time is too early. Can be prevented.
したがって、本発明よれば、要求内容に対応した最適なタイムアウト時間にて通信を行うことのできる通信装置、通信方法及び通信制御プログラムを提供することができる。 Therefore, according to the present invention, it is possible to provide a communication device, a communication method, and a communication control program capable of performing communication with an optimal timeout time corresponding to the requested content.
以下、本発明の実施の形態について、図面を参照して詳細に説明する。なお、本発明は以下の例に限定されるものではなく、本発明の要旨を逸脱しない範囲で、任意に変更可能であることは言うまでもない。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Needless to say, the present invention is not limited to the following examples, and can be arbitrarily changed without departing from the gist of the present invention.
本発明は、例えば図1に示すようにホスト装置10と複数の画像形成装置20(20A、20B、20C・・・)がLANなどのネットワーク30を介して相互に通信可能に接続されてなる画像形成システム100に適用される。
In the present invention, for example, as shown in FIG. 1, a
この画像形成システム100において、ホスト装置10は、例えば、アプリケーションプログラム10A、オペレーティングシステム10B、プリンタドライバ10Cなどで構成される所謂パーソナルコンピュータからなり、図2に示すように、装置全体の制御および各種演算処理を行うCPUからなる制御部11、制御プログラムやデータを格納するためのROM(Read Only Memory)12、作業領域として一時的にプログラムやデータを記憶するためのRAM(Random Access Memory)13、更新可能な各種設定データなどを保管するEEPROM(Electrically Erasable Programmable ROM)14、各種のプログラムやデータを保存するための外部記憶装置としてのハードディスク15、各種情報の表示のための液晶ディスプレイなどの表示部16、各種指示の入力のためのキーボードやマウスなどからなる入力部17、上記ネットワーク30に接続するためのLANカードなどのネットワークインターフェースからなる通信部18等がバス19を介して相互に接続されている。
In this
また、上記画像形成装置20は、例えばコピー、プリント、スキャン、ファクシミリ送信及びファクシミリ受信機能を有する所謂複合機であって、図3に示すように、装置全体の動作制御を司るCPUを中心とする制御部21を備え、この制御部21に印刷部22、原稿読取部23、操作表示部24、ジョブ保存部25、ジョブ情報管理部26、上記ネットワーク30に接続するためのLANカードなどのネットワークインターフェースからなる通信部27等が接続されている。
The
この画像形成システム100において、上記ホスト装置10は、ネットワーク30上の他の機器である画像形成装置20あるいは他のホスト装置と通信する本発明に係る通信装置であって、上記CPUからなる制御部11が、上記ROM12から読み出される通信制御プログラムにしたがって、図4のフローチャートに示すように、1回の通信処理で複数の要求がある場合に、要求の種類毎に基準となるタイムアウト時間を予め設け、実際の通信時に要求の種類を判断して、要求毎に応答までの時間を計測する通信時間計測処理(ステップS1)と、上記通信時間計測処理より得られた計測時間と予め得ている基準のタイムアウト時間から、現在の通信処理での最適なタイムアウト時間を要求の種類毎に算出する処理時間計算処理(ステップS2)と、上記処理時間計算処理により要求の種類毎に算出されたタイムアウト時間を記憶するタイムアウト時間記憶処理(ステップS3)と、後の通信処理において、1回の通信処理内にて、上記タイムアウト時間記憶処理により記憶された要求の種類毎のタイムアウト時間を使用して通信を行う通信処理(ステップS4)を実行する。
In the
このホスト装置10における制御部11は、図5のブロック図に示すように、通信を行う通信部18による通信時間を計測する通信時間計測部11Aと、通信処理内での要求を判断する要求判断部11Bと、通信処理を制御する通信処理制御部11Cと、上記通信時間計測部11Cより得た計測時間と予め得ている基準のタイムアウト時間から、現在の通信処理での最適なタイムアウト時間を算出する処理時間計算部11Dとして機能し、1回の通信処理で複数の要求がある場合に、要求の種類毎に基準となるタイムアウト時間を予め設け、上記通信部18による実際の通信時に上記要求判断部11Bにより要求の種類を判断して要求毎に1回の要求を送信してから応答を受信するまでの時間を上記通信時間計測部11Cにより計測し、上記通信時間計測部11Cより得られた計測時間と予め得ている基準のタイムアウト時間から、現在の通信処理での最適なタイムアウト時間を処理時間計算部11Dにより要求の種類毎に算出し、上記処理時間計算部11Dで要求の種類毎に算出したタイムアウト時間を上記EEPROM14上のタイムアウト時間記憶部14Aに記憶しておき、後の通信処理において、1回の通信処理内にて、上記タイムアウト時間記憶部14Aに記憶した要求の種類毎のタイムアウト時間を使用して、上記通信部18により通信を行う通信装置50を構成している。
As shown in the block diagram of FIG. 5, the
そして、上記ホスト装置10における制御部11は、図6のフローチャートに示すように、通信部18による1つの通信処理を開始すると、通信処理を制御する通信処理制御部11Cにより1つの通信処理内の要求を全て完了したか否かを判定し(ステップS11)、その判定結果が「NO」、すなわち、未処理の要求がある場合には、次に処理する要求の種別を要求判断部11Bにより判別して(ステップS12)、その種別の要求における基準となるタイムアウト時間又は最適化されたタイムアウト時間を上記タイムアウト時間記憶部14Aから取得する(ステップS13)。
Then, as illustrated in the flowchart of FIG. 6, the
ここで、上記基準となるタイムアウト時間には、過去の通信処理において得られたタイムアウト時間の平均値、又は統計処理により得られた値が用いられる。 Here, an average value of timeout times obtained in past communication processing or a value obtained by statistical processing is used as the above-mentioned reference timeout time.
次に、上記制御部11は、上記通信時間計測部11Aによる計測を開始し(ステップS14)、次に処理する要求を通信部18から送信して(ステップS15)、上記通信時間計測部11Cより得られる計測時間がタイムアウト時間を経過したか否かを判定し(ステップS16)、その判定結果が「NO」、すなわち、上記通信時間計測部11Cより得られる計測時間がタイムアウト時間を経過していない場合には、送信した要求に対する応答を上記通信部18により受信したか否かを判定する(ステップS17)。
Next, the
そして、上記制御部11は、上記ステップS17における判定結果が「NO」、すなわち、送信した要求に対する応答を受信していない場合には、上記ステップS16に戻って、上記ステップS16、S17の各判定処理を繰り返し行い、上記ステップS16における判定結果が「YES」、すなわち、上記通信時間計測部11Cより得られる計測時間がタイムアウト時間を経過した場合には上記通信処理制御部11Cによる通信処理の制御を終了し、また、上記ステップS17における判定結果が「YES」、すなわち、送信した要求に対する応答を受信した場合には、上記通信時間計測部11Aによる計測を完了し(ステップS18)、上記通信時間計測部11Cより得られた計測時間と予め得ている基準のタイムアウト時間から、現在の通信処理での最適なタイムアウト時間を処理時間計算部11Dにより算出し(ステップS19)、上記処理時間計算部11Dで算出した要求種別に対するタイムアウト時間を上記EEPROM14上のタイムアウト時間記憶部14Aに記憶して(ステップS20)、上記ステップS11の判定処理に戻る。
If the determination result in step S17 is “NO”, that is, if a response to the transmitted request has not been received, the
ここで、図7は、1回の要求についての処理の様子を模式的に示している。 Here, FIG. 7 schematically shows a state of processing for one request.
上記制御部11は、上記ステップS11〜ステップS20の処理を繰り返し行うことにより、1つの通信処理における複数の要求を順次送信して、送信した要求種別毎に、その要求種別に対する最適タイムアウト時間を上記EEPROM14上のタイムアウト時間記憶部14Aに記憶し、上記ステップS11における判定結果が「YES」、すなわち、上記通信処理を制御する通信処理制御部11Cにより1つの通信処理内の要求を全て完了すると、上記通信処理制御部11Cによる通信処理の制御を終了する。
The
上記画像形成システム100において、ホスト装置10が複合機20Aからアドレス帳の情報を取得する場合の通信処理の一例について説明する。
In the
ここでは、アドレス帳のデータの内、メールアドレスだけを取得し、1回のパケットで10件を取得できものとし、55件のデータが存在するものとする。 Here, it is assumed that only e-mail addresses are acquired from the address book data, 10 can be acquired in one packet, and 55 data exist.
この通信処理は、アドレス帳から全てのメールアドレスを取得する処理であり、例えば、次の表1に示すように、要求内容毎に要求種別が定義され、図8のフローチャートに示す手順にしたがって実行される。 This communication process is a process for acquiring all mail addresses from the address book. For example, as shown in the following Table 1, a request type is defined for each request content, and is executed according to the procedure shown in the flowchart of FIG. Is done.
すなわち、この通信処理の場合、ホスト装置10は、複合機20Aからステータスを取得し(ステップS31)、さらに、アドレス帳の件数を取得してから(ステップS32)、メールアドレスを10件ずつ取得し(ステップS33)、上記ステップS32で取得したアドレス帳の件数分のメールアドレスを取得したか否かを判定して(ステップS33)、上記ステップS32で取得したアドレス帳の件数分のメールアドレスを取得したら通信処理を終了する。
That is, in the case of this communication process, the
この例でのメールアドレスの取得は、1件当たりにある程度固定的な時間を必要とし、件数が多いほど応答までの時間がかかるため、メールアドレスの取得についての応答時間は(応答時間/件数)×10としてある。 In this example, obtaining a mail address requires a certain amount of time per case, and the larger the number of cases, the longer it takes to respond, so the response time for obtaining an email address is (response time / number of cases) X10.
そして、最適化するタイムアウト時間は、要求種別別に応答時間の平均をとり、その値とデフォルトタイムアウトとの差異をさらに計上して判断する。デフォルトタイムアウトとの差異の判断は、差異の大きさにより、予め定義した値を計上する事とする。 The timeout time to be optimized is determined by taking an average of response times for each request type and further counting the difference between the value and the default timeout. Judgment of the difference from the default timeout is based on a pre-defined value depending on the size of the difference.
ここでは、次の表2に実際のパケットの応答例を示すように、差異が1秒以内であれば+11秒とし、差異が1〜5秒ならば+3秒とし、 差異が5秒〜10秒ならば+5秒とし、さらに、差異が11秒〜20秒ならば8秒としてある。 Here, as shown in Table 2 below, if the difference is within 1 second, it will be +11 seconds, if the difference is 1 to 5 seconds, it will be +3 seconds, and the difference will be 5 seconds to 10 seconds. If the difference is 11 to 20 seconds, then it is 8 seconds.
すなわち、この例では、上記ステップS31の複合機20Aからステータスを取得する処理における応答時間は0.5秒であり、平均値+3秒の3.50秒が最適タイムアウト時間として算出されており、また、上記ステップS32のアドレス帳の件数を取得する処理における応答時間は0.7秒であり、平均値+3秒の3.60秒が最適タイムアウト時間として算出されており、さらに、上記ステップS33のメールアドレスを10件ずつ取得する処理では、1〜10件目を取得した場合の応答時間は3.8秒であり、平均値+8秒の11.80秒が最適タイムアウト時間として算出され、11〜20件目を取得した場合の応答時間は2.5秒であり、平均値+8秒の11.15秒が最適タイムアウト時間として算出され、21〜30件目を取得した場合の応答時間は2.8秒であり、平均値+8秒の11.03秒が最適タイムアウト時間として算出され、31〜40件目を取得した場合の応答時間は3.2秒であり、平均値+8秒の11.08秒が最適タイムアウト時間として算出され、41〜50件目を取得した場合の応答時間は3.5秒であり、平均値+8秒の11.16秒が最適タイムアウト時間として算出され、51〜55件目を取得した場合の応答時間は1.6秒であり、平均値+8秒の11.17秒が最適タイムアウト時間として算出されている。
That is, in this example, the response time in the process of acquiring the status from the
このように、実際の処理内容に応じて基準となるタイムアウト時間を設けることで、応答に時間がかからない処理とかかる処理とで区別することができ、かつ、計測した結果についても基準時間から最適値を求めることで、その通信処理での妥当なタイムアウト時間を得ることができるため、より効果的なタイムアウトにより、不必要に待機する必要がなくなる他、逆にタイムアウト時間が早すぎることで、タイムアウトすることを防ぐことができる。 In this way, by providing a reference time-out time according to the actual processing content, it is possible to distinguish between a process that does not take a long time to respond and a process that takes a long time, and the measured result is also an optimum value from the reference time. By requesting, it is possible to obtain a reasonable timeout time in the communication processing, so there is no need to wait unnecessarily due to more effective timeout, and conversely, timeout occurs because the timeout time is too early. Can be prevented.
10 ホスト装置、10A アプリケーションプログラム、10B オペレーティングシステム、10C プリンタドライバ、11 制御部、11A 通信時間計測部、11B 要求判断部、11C 通信処理制御部、11D 処理時間計算部、12 ROM、13 RAM、14 EEPROM、14A タイムアウト時間記憶部、15 ハードディスク、16 表示部、17 入力部、18 通信部、19 バス、20(20A、20B、20C・・・) 画像形成装置、21 制御部、22 印刷部、23 原稿読取部、24 操作表示部、25 ジョブ保存部、26 ジョブ情報管理部、27 通信部、30 ネットワーク、50 通信装置、100 画像形成システム 10 host device, 10A application program, 10B operating system, 10C printer driver, 11 control unit, 11A communication time measurement unit, 11B request determination unit, 11C communication processing control unit, 11D processing time calculation unit, 12 ROM, 13 RAM, 14 EEPROM, 14A timeout time storage unit, 15 hard disk, 16 display unit, 17 input unit, 18 communication unit, 19 bus, 20 (20A, 20B, 20C...) Image forming apparatus, 21 control unit, 22 printing unit, 23 Document reading unit, 24 operation display unit, 25 job storage unit, 26 job information management unit, 27 communication unit, 30 network, 50 communication device, 100 image forming system
Claims (4)
通信を行う通信部と、
上記通信部による通信時間を計測する通信時間計測部と、
通信処理内での要求を判断する要求判断部と、
通信処理を制御する通信処理制御部と、
上記通信時間計測部より得た計測時間と予め得ている基準のタイムアウト時間から、現在の通信処理での最適なタイムアウト時間を算出する処理時間計算部と、
上記処理時間計算部で算出したタイムアウト時間を記憶しておくタイムアウト時間記憶部とを備え、
1回の通信処理で複数の要求がある場合に、要求の種類毎に基準となるタイムアウト時間を予め設け、上記通信部による実際の通信時に上記要求判断部により要求の種類を判断して要求毎に1回の要求を送信してから応答を受信するまでの時間を上記通信時間計測部により計測し、
上記通信時間計測部より得られた計測時間と予め得ている基準のタイムアウト時間から、現在の通信処理での最適なタイムアウト時間を処理時間計算部により要求の種類毎に算出し、
上記処理時間計算部で要求の種類毎に算出したタイムアウト時間をタイムアウト時間記憶部に記憶しておき、
後の通信処理において、1回の通信処理内にて、上記タイムアウト時間記憶部に記憶した要求の種類毎のタイムアウト時間を使用して、上記通信部により通信を行うことを特徴とする通信装置。 A communication device that performs communication processing with other communication devices through a network connection,
A communication unit for communication;
A communication time measuring unit for measuring communication time by the communication unit;
A request determination unit for determining a request in communication processing;
A communication processing control unit for controlling communication processing;
A processing time calculation unit that calculates the optimal timeout time in the current communication process from the measurement time obtained from the communication time measurement unit and the reference timeout time obtained in advance,
A timeout time storage unit for storing the timeout time calculated by the processing time calculation unit,
When there are a plurality of requests in one communication process, a reference time-out time is provided for each request type in advance, and the request determination unit determines the request type during actual communication by the communication unit, and each request Measure the time from sending one request to receiving a response until the response time is received,
From the measurement time obtained from the communication time measurement unit and the reference timeout time obtained in advance, the optimal time-out time in the current communication processing is calculated for each type of request by the processing time calculation unit,
Store the timeout time calculated for each type of request in the processing time calculation unit in the timeout time storage unit,
In a subsequent communication process, the communication unit performs communication by using the time-out time for each type of request stored in the time-out time storage unit in one communication process.
1回の通信処理で複数の要求がある場合に、要求の種類毎に基準となるタイムアウト時間を予め設け、実際の通信時に要求の種類を判断して、1回の要求を送信してから応答を受信するまでの時間を要求の種類毎に計測し、
上記計測により得られた計測時間と予め得ている基準のタイムアウト時間から、現在の通信処理での最適なタイムアウト時間を要求の種類毎に算出し、
要求の種類毎に算出したタイムアウト時間を記憶しておき、
後の通信処理において、1回の通信処理内にて、記憶した要求の種類毎のタイムアウト時間を使用して、通信を行うことを特徴とする通信方法。 A communication method in a communication device that performs communication processing with another communication device by network connection,
When there are multiple requests in one communication process, a reference timeout time is provided for each request type in advance, the type of request is judged during actual communication, and a response is sent after sending one request. Measure the time to receive for each request type,
From the measurement time obtained by the above measurement and the reference timeout time obtained in advance, the optimal timeout time in the current communication processing is calculated for each request type,
Remember the timeout time calculated for each request type,
In a later communication process, communication is performed using a time-out time for each type of request stored in one communication process.
1回の通信処理で複数の要求がある場合に、要求の種類毎に基準となるタイムアウト時間を予め設け、実際の通信時に要求の種類を判断して、要求毎に応答までの時間を計測する通信時間計測処理と、
上記通信時間計測処理より得られた計測時間と予め得ている基準のタイムアウト時間から、現在の通信処理での最適なタイムアウト時間を要求の種類毎に算出する処理時間計算処理と、
上記処理時間計算処理により要求の種類毎に算出したタイムアウト時間を記憶するタイムアウト時間記憶処理と、
後の通信処理において、1回の通信処理内にて、上記タイムアウト時間記憶処理により記憶した要求の種類毎のタイムアウト時間を使用して通信を行う通信処理とを
上記コンピュータに実行させることを特徴とする通信プログラム。 A communication program executed by a computer provided in a communication device that performs communication processing with another communication device by network connection,
When there are multiple requests in a single communication process, a reference time-out period is set in advance for each request type, the type of request is determined during actual communication, and the time until response is measured for each request. Communication time measurement processing,
A processing time calculation process for calculating the optimum timeout time for the current communication process for each type of request from the measurement time obtained from the communication time measurement process and the reference timeout time obtained in advance,
Timeout time storage processing for storing the timeout time calculated for each request type by the above processing time calculation processing;
In the subsequent communication process, the communication process for performing communication using a timeout time for each type of request stored by the timeout time storage process in one communication process is executed by the computer. Communication program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008006697A JP2009171193A (en) | 2008-01-16 | 2008-01-16 | Communication device, communication method, and communication control program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008006697A JP2009171193A (en) | 2008-01-16 | 2008-01-16 | Communication device, communication method, and communication control program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009171193A true JP2009171193A (en) | 2009-07-30 |
Family
ID=40971891
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008006697A Pending JP2009171193A (en) | 2008-01-16 | 2008-01-16 | Communication device, communication method, and communication control program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009171193A (en) |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011124914A (en) * | 2009-12-14 | 2011-06-23 | Sharp Corp | Information device, image processing apparatus, information processing apparatus communicable with information device, and information processing system including them |
JP2013042466A (en) * | 2011-08-19 | 2013-02-28 | Canon Inc | Information processing apparatus, information processing method, and program |
WO2013080983A1 (en) * | 2011-11-28 | 2013-06-06 | 京セラ株式会社 | Energy controller, energy control system and energy control method |
JP2014191816A (en) * | 2013-03-28 | 2014-10-06 | Fujitsu Ltd | Information processing device, control method, program, and information processing system |
JP2016503216A (en) * | 2013-01-15 | 2016-02-01 | オラクル・インターナショナル・コーポレイション | Pattern matching without variable duration event |
US9886486B2 (en) | 2014-09-24 | 2018-02-06 | Oracle International Corporation | Enriching events with dynamically typed big data for event processing |
US9934279B2 (en) | 2013-12-05 | 2018-04-03 | Oracle International Corporation | Pattern matching across multiple input data streams |
US9946756B2 (en) | 2012-09-28 | 2018-04-17 | Oracle International Corporation | Mechanism to chain continuous queries |
WO2018070243A1 (en) * | 2016-10-13 | 2018-04-19 | アルプス電気株式会社 | Communcation device |
US9953059B2 (en) | 2012-09-28 | 2018-04-24 | Oracle International Corporation | Generation of archiver queries for continuous queries over archived relations |
US9972103B2 (en) | 2015-07-24 | 2018-05-15 | Oracle International Corporation | Visually exploring and analyzing event streams |
US10083210B2 (en) | 2013-02-19 | 2018-09-25 | Oracle International Corporation | Executing continuous event processing (CEP) queries in parallel |
US10120907B2 (en) | 2014-09-24 | 2018-11-06 | Oracle International Corporation | Scaling event processing using distributed flows and map-reduce operations |
US10298444B2 (en) | 2013-01-15 | 2019-05-21 | Oracle International Corporation | Variable duration windows on continuous data streams |
CN110175450A (en) * | 2019-05-30 | 2019-08-27 | 阿里巴巴集团控股有限公司 | A kind of processing method of information, device and equipment |
US10469705B2 (en) | 2017-01-05 | 2019-11-05 | Konica Minolta, Inc. | Management device, communication system, and recording medium |
US10593076B2 (en) | 2016-02-01 | 2020-03-17 | Oracle International Corporation | Level of detail control for geostreaming |
US10705944B2 (en) | 2016-02-01 | 2020-07-07 | Oracle International Corporation | Pattern-based automated test data generation |
US10956422B2 (en) | 2012-12-05 | 2021-03-23 | Oracle International Corporation | Integrating event processing with map-reduce |
-
2008
- 2008-01-16 JP JP2008006697A patent/JP2009171193A/en active Pending
Cited By (29)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011124914A (en) * | 2009-12-14 | 2011-06-23 | Sharp Corp | Information device, image processing apparatus, information processing apparatus communicable with information device, and information processing system including them |
US9729656B2 (en) | 2011-08-19 | 2017-08-08 | Canon Kabushiki Kaisha | Information processing apparatus, information processing method, and storage medium storing program |
JP2013042466A (en) * | 2011-08-19 | 2013-02-28 | Canon Inc | Information processing apparatus, information processing method, and program |
WO2013080983A1 (en) * | 2011-11-28 | 2013-06-06 | 京セラ株式会社 | Energy controller, energy control system and energy control method |
JPWO2013080983A1 (en) * | 2011-11-28 | 2015-04-27 | 京セラ株式会社 | Power control apparatus, power control system, and power control method |
US11093505B2 (en) | 2012-09-28 | 2021-08-17 | Oracle International Corporation | Real-time business event analysis and monitoring |
US10025825B2 (en) | 2012-09-28 | 2018-07-17 | Oracle International Corporation | Configurable data windows for archived relations |
US10042890B2 (en) | 2012-09-28 | 2018-08-07 | Oracle International Corporation | Parameterized continuous query templates |
US9990401B2 (en) | 2012-09-28 | 2018-06-05 | Oracle International Corporation | Processing events for continuous queries on archived relations |
US9946756B2 (en) | 2012-09-28 | 2018-04-17 | Oracle International Corporation | Mechanism to chain continuous queries |
US11288277B2 (en) | 2012-09-28 | 2022-03-29 | Oracle International Corporation | Operator sharing for continuous queries over archived relations |
US9953059B2 (en) | 2012-09-28 | 2018-04-24 | Oracle International Corporation | Generation of archiver queries for continuous queries over archived relations |
US9990402B2 (en) | 2012-09-28 | 2018-06-05 | Oracle International Corporation | Managing continuous queries in the presence of subqueries |
US10956422B2 (en) | 2012-12-05 | 2021-03-23 | Oracle International Corporation | Integrating event processing with map-reduce |
US10298444B2 (en) | 2013-01-15 | 2019-05-21 | Oracle International Corporation | Variable duration windows on continuous data streams |
JP2016503216A (en) * | 2013-01-15 | 2016-02-01 | オラクル・インターナショナル・コーポレイション | Pattern matching without variable duration event |
US10083210B2 (en) | 2013-02-19 | 2018-09-25 | Oracle International Corporation | Executing continuous event processing (CEP) queries in parallel |
JP2014191816A (en) * | 2013-03-28 | 2014-10-06 | Fujitsu Ltd | Information processing device, control method, program, and information processing system |
US9934279B2 (en) | 2013-12-05 | 2018-04-03 | Oracle International Corporation | Pattern matching across multiple input data streams |
US9886486B2 (en) | 2014-09-24 | 2018-02-06 | Oracle International Corporation | Enriching events with dynamically typed big data for event processing |
US10120907B2 (en) | 2014-09-24 | 2018-11-06 | Oracle International Corporation | Scaling event processing using distributed flows and map-reduce operations |
US9972103B2 (en) | 2015-07-24 | 2018-05-15 | Oracle International Corporation | Visually exploring and analyzing event streams |
US10593076B2 (en) | 2016-02-01 | 2020-03-17 | Oracle International Corporation | Level of detail control for geostreaming |
US10705944B2 (en) | 2016-02-01 | 2020-07-07 | Oracle International Corporation | Pattern-based automated test data generation |
US10991134B2 (en) | 2016-02-01 | 2021-04-27 | Oracle International Corporation | Level of detail control for geostreaming |
WO2018070243A1 (en) * | 2016-10-13 | 2018-04-19 | アルプス電気株式会社 | Communcation device |
US10469705B2 (en) | 2017-01-05 | 2019-11-05 | Konica Minolta, Inc. | Management device, communication system, and recording medium |
CN110175450A (en) * | 2019-05-30 | 2019-08-27 | 阿里巴巴集团控股有限公司 | A kind of processing method of information, device and equipment |
CN110175450B (en) * | 2019-05-30 | 2023-11-21 | 创新先进技术有限公司 | Information processing method, device and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2009171193A (en) | Communication device, communication method, and communication control program | |
US7978360B2 (en) | Print system | |
US7844704B2 (en) | Event notification device and event notification method | |
JP6065542B2 (en) | Image processing apparatus and communication program | |
JP4189469B2 (en) | Information processing apparatus, information processing system, and information processing method | |
JP2006302290A (en) | Method for selecting image output device and image output system | |
US20150277810A1 (en) | Network system and image forming method | |
US20060227376A1 (en) | Secure image data system and method | |
US20110299122A1 (en) | Image forming apparatus and system | |
JP2010081011A (en) | Electronic apparatus, management system and management program | |
US20140198342A1 (en) | Information apparatus and information processing system | |
US8593674B2 (en) | Method and apparatus for estimating file size before transmission of image data | |
US10560590B2 (en) | Information processing apparatus equipped with communication functions, control method therefor, and storage medium | |
JP4045800B2 (en) | Printing system and method | |
US8520235B2 (en) | System and method for storing image and image processing apparatus, wherein each of a plurality of the image processing apparatuses engaged in the collaborative image processing terminates its own respective portion of the collaborative image processing, and wherein a master one of the information processing apparatus controls which of the image processing apparatuses transmits the collaborative result data of the collaborative image processing to the storage unit | |
US10750045B2 (en) | Electronic device and method for controlling memory thereof | |
US8488162B2 (en) | Communication apparatus using reconnection request, method of controlling the same, and storage medium | |
US20090180137A1 (en) | Device setting system, device setting method, and computer-readable recording medium saving device setting program | |
US10382638B2 (en) | Electronic device, service execution system, and log acquisition method | |
JP6107795B2 (en) | Image processing apparatus, control method thereof, information processing apparatus, control method thereof, and program | |
US20170061263A1 (en) | Image Forming System That Reduces Load for Processing Regarding Correction of Print Position Displacement, and Method for Correcting Print Position Displacement | |
JP4334547B2 (en) | Image forming apparatus | |
KR101831785B1 (en) | Image forming apparatus connectable to multiple hosts and method for controlling image forming job thereof | |
US10178153B2 (en) | Image transmission apparatus and storage medium | |
US20190066053A1 (en) | Mail-Format Confirmation System and Recording Medium |