JP3088412B2 - Polling method - Google Patents

Polling method

Info

Publication number
JP3088412B2
JP3088412B2 JP11056399A JP5639999A JP3088412B2 JP 3088412 B2 JP3088412 B2 JP 3088412B2 JP 11056399 A JP11056399 A JP 11056399A JP 5639999 A JP5639999 A JP 5639999A JP 3088412 B2 JP3088412 B2 JP 3088412B2
Authority
JP
Japan
Prior art keywords
polling
target data
priority
procedure
start time
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
Application number
JP11056399A
Other languages
Japanese (ja)
Other versions
JP2000253032A (en
Inventor
隆広 木村
Original Assignee
中国日本電気ソフトウェア株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国日本電気ソフトウェア株式会社 filed Critical 中国日本電気ソフトウェア株式会社
Priority to JP11056399A priority Critical patent/JP3088412B2/en
Publication of JP2000253032A publication Critical patent/JP2000253032A/en
Application granted granted Critical
Publication of JP3088412B2 publication Critical patent/JP3088412B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ポーリング機能を
有するプログラム(ポーリング処理を行うアプリケーシ
ョンプログラム等)が多数のポーリング対象(ネットワ
ーク上の機器やプログラム等)に対してポーリングを行
うコンピュータシステムにおいて、ポーリングタイミン
グの最適化を図るためのアルゴリズムを実現するポーリ
ング方法に関する。
The present invention relates to a computer system in which a program having a polling function (such as an application program for performing a polling process) polls a large number of polling targets (such as devices and programs on a network). The present invention relates to a polling method for realizing an algorithm for optimizing timing.

【0002】[0002]

【従来の技術】従来、ポーリング機能を有するプログラ
ムが多数のポーリング対象に対してポーリングを行うコ
ンピュータシステムにおいては、当該プログラム(ポー
リング処理プログラム)はポーリング開始時刻順に各ポ
ーリング対象へのポーリングを遂行していた(後述する
本発明のように、ポーリングインターバルやレスポンス
時間が考慮されたポーリングは行われていなかった)。
2. Description of the Related Art Conventionally, in a computer system in which a program having a polling function polls a large number of polling targets, the program (polling processing program) performs polling of each polling target in the order of polling start time. (Polling in consideration of a polling interval and a response time is not performed as in the present invention described later).

【0003】図14に示すように、従来のポーリング方
法は、ポーリング対象データ読込み手順(ステップ)2
01と、ポーリング対象データリスト初期ソート手順2
02と、ポーリング手順203と、情報取得手順204
と、次回ポーリング開始時刻算出手順205と、ポーリ
ング対象データリストソート手順206とを含んで構成
されている。
As shown in FIG. 14, a conventional polling method uses a polling target data reading procedure (step) 2.
01, initial sorting procedure 2 for polling target data list
02, polling procedure 203, and information acquisition procedure 204
And a next polling start time calculating procedure 205 and a polling target data list sorting procedure 206.

【0004】以下に、図14を参照して、従来のポーリ
ング方法の動作について詳細に説明する。
The operation of the conventional polling method will be described below in detail with reference to FIG.

【0005】まず、ポーリング対象データ読込み手順2
01では、ポーリング対象データ(各ポーリング対象に
対してどのようにポーリングを行うかを示すデータ)が
データベースから読み込まれる。各ポーリング対象デー
タの必須要素としては、ポーリングインターバル,ポー
リング開始時刻,およびポーリング対象情報という要素
が挙げられる(このような必須要素を含んだポーリング
対象データのそれぞれを、ポーリング対象データエント
リと呼ぶ)。
First, polling target data reading procedure 2
At 01, polling target data (data indicating how to perform polling for each polling target) is read from the database. Indispensable elements of each polling target data include a polling interval, a polling start time, and polling target information (each of the polling target data including such essential elements is called a polling target data entry).

【0006】ポーリング処理プログラムは、内部的な情
報として、各ポーリング対象データエントリをリスト
(キューリスト)形式で保持する(このような情報が格
納されたリストをポーリング対象データリストと呼
ぶ)。
[0006] The polling processing program holds each polling target data entry in a list (queue list) format as internal information (a list storing such information is called a polling target data list).

【0007】ポーリング対象データリスト初期ソート手
順202では、上記のようなポーリング対象データリス
トの各ポーリング対象データエントリがポーリング開始
時刻の昇順にソートされる。
In the polling target data list initial sorting procedure 202, the respective polling target data entries in the polling target data list are sorted in ascending order of the polling start time.

【0008】ポーリング手順203では、ポーリング開
始時刻に達した、あるいはポーリング開始時刻を過ぎた
ポーリング対象データエントリ(両者を含む意味で「ポ
ーリング開始時刻に到達/経過したポーリング対象デー
タエントリ」と表現する)に関するポーリングが行われ
る。なお、ポーリングされたポーリング対象データエン
トリは、ポーリング対象データリストから取り外され
る。
In the polling procedure 203, the polling target data entry that has reached the polling start time or has passed the polling start time (expressed as “polling target data entry that has reached / elapsed the polling start time” in a sense including both). Polling is performed. The polled data entry that has been polled is removed from the polled data list.

【0009】情報取得手順204では、手順203で行
われたポーリングに対するポーリング対象からの応答が
受信される。
In the information acquisition procedure 204, a response from the polling target to the polling performed in the procedure 203 is received.

【0010】次回ポーリング開始時刻算出手順205で
は、ポーリング結果(ポーリングに対するポーリング対
象からの応答)を取得した時刻に、当該ポーリングに係
るポーリング対象データエントリのポーリングインター
バルが加算された値が、当該ポーリング対象データエン
トリの次回のポーリング開始時刻として算出される。
In the next polling start time calculation procedure 205, the value obtained by adding the polling interval of the polling target data entry related to the polling to the time when the polling result (response from the polling target to the polling) is obtained is calculated. It is calculated as the next polling start time of the data entry.

【0011】ポーリング対象データリストソート手順2
06では、ポーリング開始時刻に手順205で算出され
たポーリング開始時刻が設定されたポーリング対象デー
タエントリ(手順203でポーリング対象データリスト
から取り外されているポーリング対象データエントリ)
が、ポーリング対象データリストにつながれる。その上
で、手順202と同様に、ポーリング対象データリスト
の各ポーリング対象データエントリがポーリング開始時
刻の昇順にソートされ、手順203に制御が戻される。
[0011] Polling target data list sorting procedure 2
In step 06, the polling target data entry in which the polling start time calculated in step 205 is set as the polling start time (the polling target data entry removed from the polling target data list in step 203)
Is connected to the polling target data list. Then, similarly to the procedure 202, the respective polling target data entries of the polling target data list are sorted in ascending order of the polling start time, and the control is returned to the step 203.

【0012】以下、手順203〜手順206の処理が繰
り返されていく。
Thereafter, the processing of steps 203 to 206 is repeated.

【0013】[0013]

【発明が解決しようとする課題】上述したように、従来
のポーリング方法では、通常、ポーリング機能を有する
プログラム(ポーリング処理プログラム)が、任意のプ
ロトコルを使用し、ある一定のポーリングインターバル
で各ポーリング対象に対してポーリングを行い、各ポー
リング対象からの情報を取得している。また、かかる従
来技術では、通常、ポーリングの遂行に際して、最大ポ
ーリング数や最大応答待ち状態数といった最大数による
制限(上限)は設定されていなかった。
As described above, in the conventional polling method, usually, a program having a polling function (polling processing program) uses an arbitrary protocol, and sets a polling target at a certain polling interval. Is polled, and information from each polling target is obtained. Further, in the related art, when performing polling, a limit (upper limit) based on a maximum number such as a maximum polling number or a maximum response waiting state is not normally set.

【0014】このような従来技術では、ポーリング対象
が多い場合に、各ポーリング対象へのポーリングのタイ
ミングがある特定時刻に集中すると、以下のような問題
点が発生する可能性があった。
In the prior art, when there are many polling targets, if the polling timing of each polling target is concentrated at a specific time, the following problems may occur.

【0015】第1の問題点は、上限の設定がなかったの
で、ネットワークの処理速度を上回ったポーリングが行
われ、パケットの取りこぼしが発生し、ポーリング対象
からの情報を正しく取得できないおそれがあるというこ
とである。
The first problem is that since no upper limit is set, polling exceeding the processing speed of the network is performed, packets may be dropped, and information from the polling target may not be correctly obtained. That is.

【0016】第2の問題点は、ポーリング機能を有する
プログラムのポーリング処理自体が、長時間CPU(C
entral Processing Unit)を独
占したり、メモリ不足状態を引き起こすおそれがあると
いうことである。
The second problem is that the polling process itself of the program having the polling function takes a long time by the CPU (C
This may monopolize the central processing unit or cause an out-of-memory condition.

【0017】第3の問題点は、限られた環境(ポーリン
グ処理プログラムが実行されるコンピュータにおけるC
PUやメモリの制限がある環境)でポーリングを行う場
合に、ポーリングインターバルの長いポーリングが多く
存在すると、ポーリングインターバルの短いポーリング
が当該ポーリングインターバル通りに行われ難くなると
いうことである。
The third problem is that a limited environment (C in a computer on which a polling processing program is executed)
When polling is performed in a PU or memory limitation environment), if there are many pollings with a long polling interval, it is difficult to perform a polling with a short polling interval according to the polling interval.

【0018】第4の問題点は、限られた環境でポーリン
グを行う場合に、レスポンス時間の長いポーリングが多
く存在すると、レスポンス時間の短いポーリングがポー
リングインターバル通りに行われ難くなるということで
ある。
A fourth problem is that when polling is performed in a limited environment, if there are many polls having a long response time, it is difficult to perform polling having a short response time at a polling interval.

【0019】本発明の目的は、上述の点に鑑み、一定時
間内にポーリングを行う数の上限(回線の伝送速度等に
基づく制限)およびポーリングに対する応答待ち状態の
数の上限(通常はすぐに応答があるべき環境にあるにも
かかわらず回線障害等の障害により応答がない状態にな
ることが生じないようにし余計なポーリングを行わない
ようにするための制限)を設定し、この上限(最大ポー
リング数および最大応答待ち状態数)の範囲内でポーリ
ングインターバルおよび/またはレスポンス時間を基準
にした優先度を設定することにより、ポーリングタイミ
ングの最適化(各ポーリング対象へのポーリングの均衡
化)を図ることができ、ポーリング機能を有するプログ
ラム自体がシステムやネットワークに及ぼす負荷を軽減
すると同時に、情報の取りこぼしを回避することができ
るポーリング方法を提供することにある。
SUMMARY OF THE INVENTION In view of the above, an object of the present invention is to limit the number of polling operations within a certain period of time (limitation based on the transmission speed of a line) and the number of polling response waiting states (usually immediately). An upper limit (maximum) is set by setting a limit to prevent a situation where there is no response due to a failure such as a line failure even in an environment where a response should be made, and to prevent unnecessary polling. By setting the priority based on the polling interval and / or the response time within the range of the number of polls and the maximum number of response wait states, optimization of polling timing (balancing of polling to each polling target) is achieved. Program that has a polling function can reduce the load on the system and network, and It is to provide a polling method that can avoid missed of.

【0020】すなわち、本発明のポーリング方法による
と、一定時間内に行えるポーリングが限られた環境のも
とで、複数のポーリングを複数のポーリングインターバ
ルで遂行する場合に、優先度算出用のパラメータを操作
することにより、ポーリングの最適化を図ることができ
る。
That is, according to the polling method of the present invention, when a plurality of polls are performed at a plurality of polling intervals in an environment in which polling that can be performed within a fixed time is limited, a parameter for calculating a priority is set. Through the operation, the polling can be optimized.

【0021】[0021]

【課題を解決するための手段】本発明のポーリング方法
は、ポーリング機能を有するプログラムが複数のポーリ
ング対象に対してポーリングを行うコンピュータシステ
ムにおいて、データベースからポーリング対象データを
読み込み、複数のポーリング対象データエントリからな
るポーリング対象データリストを生成するポーリング対
象データ読込み手順と、初回読込み時の優先度の値を設
定する優先度初期設定手順と、ポーリング対象データリ
ストを前記優先度初期設定手順で設定された優先度を加
味してポーリング開始時刻の昇順にソートするポーリン
グ対象データリスト初期ソート手順と、前記ポーリング
対象データリスト初期ソート手順でソートされたポーリ
ング対象データリストに基づき、最大ポーリング数およ
び最大応答待ち状態数の範囲内でポーリング開始時刻に
到達/経過したポーリング対象データエントリに関する
ポーリングを行い、当該ポーリングに係るポーリング対
象データエントリをポーリング対象データリストから取
り外し、最大数の範囲を超えたためにポーリングを行え
なかったポーリング対象データエントリについては優先
度の値の減算およびポーリング開始時刻の最低値への設
定を行うポーリング手順と、前記ポーリング手順で行わ
れたポーリングに対するポーリング対象からの応答の受
信およびタイムアウトの認識を「ポーリング結果の取
得」として行う情報取得手順と、前記情報取得手順にお
けるポーリング結果の取得が行われたポーリング対象デ
ータエントリについて、ポーリングインターバルおよび
レスポンス時間を基準にして優先度を算出する優先度算
出手順(ポーリングインターバルおよびレスポンス時間
を基準にして優先度を算出する代わりに、ポーリングイ
ンターバルおよびレスポンス時間のいずれかを基準にし
て優先度を算出することも可能である)と、前記情報取
得手順におけるポーリング結果の取得が行われたポーリ
ング対象データエントリについて、ポーリング結果の取
得時刻にポーリングインターバルを加算した値を次回の
ポーリング開始時刻として算出する次回ポーリング開始
時刻算出手順と、前記優先度算出手順で算出された優先
度および前記次回ポーリング開始時刻算出手順で算出さ
れたポーリング開始時刻が設定されたポーリング対象デ
ータエントリをポーリング対象データリストにつなぎ、
当該ポーリング対象データリストを優先度を加味してポ
ーリング開始時刻の昇順にソートするポーリング対象デ
ータリストソート手順とを有する。
According to a polling method of the present invention, in a computer system in which a program having a polling function polls a plurality of polling targets, a polling target data is read from a database and a plurality of polling target data entries are read. A polling target data list for generating a polling target data list, a priority initial setting procedure for setting a priority value at the time of first reading, and a priority set for the polling target data list in the priority initial setting procedure. A polling target data list that is sorted in ascending order of the polling start time in consideration of the degree of polling, and a maximum polling number and a maximum response waiting state based on the polling target data list sorted in the polling data list initial sorting procedure. Polling is performed on the polling target data entry that has reached / elapsed the polling start time within the number range, the polling target data entry related to the polling is removed from the polling target data list, and polling cannot be performed because the maximum number range has been exceeded. For the polled data entry, a polling procedure for subtracting the priority value and setting the polling start time to the lowest value, and receiving a response from the polling subject to the polling performed in the polling procedure and recognizing a timeout are performed. The information acquisition procedure performed as “acquisition of polling result” and the priority of the polling target data entry for which the polling result was acquired in the information acquisition procedure are set based on the polling interval and the response time. The priority calculation procedure to be issued (instead of calculating the priority based on the polling interval and the response time, it is also possible to calculate the priority based on one of the polling interval and the response time) and A next polling start time calculating step of calculating, as the next polling start time, a value obtained by adding a polling interval to the polling result obtaining time for the polling target data entry for which the polling result has been obtained in the information obtaining step; Connect the polling target data entry in which the priority calculated in the calculation procedure and the polling start time calculated in the next polling start time calculation procedure are set to the polling data list,
A polling target data list sorting procedure for sorting the polling target data list in ascending order of polling start time in consideration of priority.

【0022】また、本発明のポーリング方法は、ポーリ
ング機能を有するプログラムが複数のポーリング対象に
対してポーリングを行うコンピュータシステムを、デー
タベースからポーリング対象データを読み込み、複数の
ポーリング対象データエントリからなるポーリング対象
データリストを生成するポーリング対象データ読込み手
順,初回読込み時の優先度の値を設定する優先度初期設
定手順,ポーリング対象データリストを前記優先度初期
設定手順で設定された優先度を加味してポーリング開始
時刻の昇順にソートするポーリング対象データリスト初
期ソート手順,前記ポーリング対象データリスト初期ソ
ート手順でソートされたポーリング対象データリストに
基づき、最大ポーリング数および最大応答待ち状態数の
範囲内でポーリング開始時刻に到達/経過したポーリン
グ対象データエントリに関するポーリングを行い、当該
ポーリングに係るポーリング対象データエントリをポー
リング対象データリストから取り外し、最大数の範囲を
超えたためにポーリングを行えなかったポーリング対象
データエントリについては優先度の値の減算およびポー
リング開始時刻の最低値への設定を行うポーリング手
順,前記ポーリング手順で行われたポーリングに対する
ポーリング対象からの応答の受信およびタイムアウトの
認識を「ポーリング結果の取得」として行う情報取得手
順,前記情報取得手順におけるポーリング結果の取得が
行われたポーリング対象データエントリについて、ポー
リングインターバルおよびレスポンス時間を基準にして
優先度を算出する優先度算出手順,前記情報取得手順に
おけるポーリング結果の取得が行われたポーリング対象
データエントリについて、ポーリング結果の取得時刻に
ポーリングインターバルを加算した値を次回のポーリン
グ開始時刻として算出する次回ポーリング開始時刻算出
手順,ならびに前記優先度算出手順で算出された優先度
および前記次回ポーリング開始時刻算出手順で算出され
たポーリング開始時刻が設定されたポーリング対象デー
タエントリをポーリング対象データリストにつなぎ、当
該ポーリング対象データリストを優先度を加味してポー
リング開始時刻の昇順にソートするポーリング対象デー
タリストソート手順として機能させるための当該プログ
ラムを記録した記録媒体としても実現することができ
る。
Further, the polling method according to the present invention comprises a computer system in which a program having a polling function performs polling for a plurality of polling targets by reading polling target data from a database and polling a plurality of polling data entries. A polling target data reading procedure for generating a data list, a priority initial setting procedure for setting a priority value at the time of first reading, and a polling of the polling target data list in consideration of the priority set in the priority initial setting procedure. The polling target data list initially sorted in ascending order of the start time, and the polling target data list sorted in the polling target data list initial sorting procedure is used to poll within the range of the maximum number of polls and the maximum number of response wait states. Polling is performed on the polling target data entry that has reached / elapsed the start time, the polling target data entry related to the polling is removed from the polling target data list, and the polling target data entry that could not be polled because it exceeded the maximum number range Is a polling procedure for subtracting the priority value and setting the polling start time to the lowest value, and receiving the response from the polling target and recognizing the timeout for the polling performed in the polling procedure as “acquiring the polling result”. An information acquisition procedure to be performed; a priority calculation procedure for calculating a priority based on a polling interval and a response time for a polling target data entry for which a polling result has been acquired in the information acquisition procedure; A next polling start time calculating step of calculating, as the next polling start time, a value obtained by adding a polling interval to the polling result obtaining time for the polling target data entry for which the polling result has been obtained in the information obtaining procedure; The polling target data entry in which the priority calculated in the calculation procedure and the polling start time calculated in the next polling start time calculation step are set is connected to the polling target data list, and the priority is added to the polling target data list. It can also be realized as a recording medium that records the program for functioning as a polling target data list sorting procedure that sorts in ascending polling start time.

【0023】[0023]

【発明の実施の形態】次に、本発明について図面を参照
して詳細に説明する。
Next, the present invention will be described in detail with reference to the drawings.

【0024】(1) 第1の実施の形態 図1は、本発明の第1の実施の形態に係るポーリング方
法の処理手順を示す流れ図である。
(1) First Embodiment FIG. 1 is a flowchart showing a processing procedure of a polling method according to a first embodiment of the present invention.

【0025】図1を参照すると、本実施の形態に係るポ
ーリング方法は、ポーリング対象データ読込み手順(ス
テップ)101と、優先度初期設定手順102と、ポー
リング対象データリスト初期ソート手順103と、ポー
リング手順104と、情報取得手順105と、優先度算
出手順106と、次回ポーリング開始時刻算出手順10
7と、ポーリング対象データリストソート手順108と
を含んで構成されている。
Referring to FIG. 1, the polling method according to the present embodiment includes a polling target data reading procedure (step) 101, a priority initial setting procedure 102, a polling target data list initial sorting procedure 103, a polling procedure. 104, information acquisition procedure 105, priority calculation procedure 106, and next polling start time calculation procedure 10
7 and a polling target data list sorting procedure 108.

【0026】図2は、本実施の形態に係るポーリング方
法が適用されるコンピュータシステムの具体例を示す図
である。
FIG. 2 is a diagram showing a specific example of a computer system to which the polling method according to the present embodiment is applied.

【0027】図3〜図7は、本実施の形態に係るポーリ
ング方法の具体的な動作を説明するための図である。
FIGS. 3 to 7 are diagrams for explaining specific operations of the polling method according to the present embodiment.

【0028】次に、このように構成された本実施の形態
に係るポーリング方法の全体の動作について詳細に説明
する。
Next, the overall operation of the polling method thus configured according to the present embodiment will be described in detail.

【0029】本実施の形態に係るポーリング方法は、ポ
ーリング機能を有するプログラム(ポーリング処理を行
うアプリケーションプログラム等)において、ポーリン
グ順序の最適化を行うためのアルゴリズムを提供するも
のである。このようなプログラム(ポーリング処理プロ
グラム)は、例えば、図2に示すようなコンピュータシ
ステムに適用される。
The polling method according to the present embodiment provides an algorithm for optimizing the polling order in a program having a polling function (such as an application program for performing a polling process). Such a program (polling processing program) is applied to, for example, a computer system as shown in FIG.

【0030】図2に示すように、かかるコンピュータシ
ステムは、ポーリング処理プログラムが実行されるコン
ピュータ(CPUおよびメモリ等を有する制御局)21
と、ネットワーク22と、複数のポーリング対象23と
を含んで構成されている。
As shown in FIG. 2, the computer system includes a computer (a control station having a CPU and a memory) 21 on which a polling processing program is executed.
, A network 22, and a plurality of polling targets 23.

【0031】本実施の形態に係るポーリング方法は、こ
のようなコンピュータシステムにおいて、以下に示すよ
うに動作する(図1参照)。
The polling method according to the present embodiment operates as follows in such a computer system (see FIG. 1).

【0032】まず、ここで使用する変数の説明を行う。
以下のa〜gに、「変数名:説明」の記述形式で、各変
数の説明を行う。
First, the variables used here will be described.
In the following a to g, each variable is described in a description format of “variable name: description”.

【0033】a.優先度(P):各ポーリング対象デー
タエントリに関するポーリングを行う際の優先度。この
値が小さいものほど優先度が高くなる。 b.ポーリングインターバル(I):各ポーリング対象
データエントリに関して設定されているポーリングを行
うインターバル。 c.レスポンス時間(T):各ポーリングにおいて情報
取得要求を行ってから実際に応答があるまでの時間。 d.インターバル操作優先度算出用重み(α):ポーリ
ングインターバルの短いポーリング対象データエントリ
の優先度を上げ、ポーリングインターバルの短いポーリ
ング対象データエントリの優先度を下げるように操作す
るための重み。 e.レスポンス時間操作優先度算出用重み(β):レス
ポンス時間の短いポーリングに係るポーリング対象デー
タエントリの優先度を上げ、レスポンス時間の長いポー
リングに係るポーリング対象データエントリのポーリン
グの優先度を下げるように操作するための重み。 f.最大ポーリング数:一定時間内に行うことができる
ポーリングの最大数。 g.最大応答待ち状態数:ポーリングに対する応答待ち
状態の最大数。
A. Priority (P): Priority when polling is performed for each polled data entry. The smaller the value, the higher the priority. b. Polling interval (I): Interval for performing polling set for each polled data entry. c. Response time (T): Time from when an information acquisition request is made in each polling until when there is actually a response. d. Interval operation priority calculation weight (α): A weight for performing an operation to increase the priority of a polling target data entry with a short polling interval and decrease the priority of the polling target data entry with a short polling interval. e. Response time operation priority calculation weight (β): Operation to increase the priority of polling target data entry related to polling with short response time and decrease the priority of polling of polling target data entry related to polling with long response time Weight to do. f. Maximum number of polls: The maximum number of polls that can be performed in a certain period of time. g. Maximum number of response wait states: The maximum number of response wait states for polling.

【0034】次に、図1中の各手順における処理を、順
次説明する。
Next, the processing in each procedure in FIG. 1 will be sequentially described.

【0035】ポーリング対象データ読込み手順101で
は、ポーリング対象データ(各ポーリング対象に対して
どのようにポーリングを行うかを示すデータ)が、デー
タベースから読み込まれる。各ポーリング対象データの
必須要素としては、ポーリングインターバル,ポーリン
グ開始時刻,およびポーリング対象情報という要素が挙
げられる(上記の必須要素に優先度を追加したものを、
ポーリング対象データエントリと呼ぶ)。
In the polling target data reading procedure 101, polling target data (data indicating how to perform polling for each polling target) is read from a database. The essential elements of each polling target data include a polling interval, a polling start time, and a polling target information.
Polling target data entry).

【0036】ポーリング処理プログラム(ポーリング機
能を有するプログラム。図2参照)では、内部的な情報
として、各ポーリング対象データエントリがリスト(キ
ューリスト)形式で保持される(このような情報が格納
されたリストを「ポーリング対象データリスト」と呼
ぶ)。
In a polling processing program (a program having a polling function; see FIG. 2), each polling target data entry is held in a list (queue list) format as internal information (such information is stored). The list is called “polling target data list”).

【0037】優先度初期設定手順102では、初回読込
み時の優先度として、ポーリングインターバルの値が設
定される。なお,初回読込み時の優先度として、このよ
うにポーリングインターバルの値を設定することは一般
的と考えられるが、特にこのように限定されるものでは
ない(他の値を優先度の初期値として設定することも可
能である)。
In the priority initial setting procedure 102, the value of the polling interval is set as the priority at the time of the first reading. It is generally considered to set the polling interval value as the priority at the time of the first reading, but it is not particularly limited in this way (other values are set as the initial values of the priority. Can also be set).

【0038】ポーリング対象データリスト初期ソート手
順103では、ポーリング対象データリストの各ポーリ
ング対象データエントリがポーリング開始時刻の昇順に
ソートされる。この時に、ポーリング開始時刻が等しい
部分(ポーリング対象データエントリ群)については、
優先度の昇順にソートされる。
In the polling target data list initial sort procedure 103, each polling target data entry in the polling target data list is sorted in ascending order of the polling start time. At this time, for the portion where the polling start times are equal (polling target data entry group),
Sorted in ascending order of priority.

【0039】ポーリング手順104では、ポーリング開
始時刻になったポーリング対象データエントリ、あるい
はポーリング開始時刻を過ぎたポーリング対象データエ
ントリ(両者を含む意味で「ポーリング開始時刻に到達
/経過したポーリング対象データエントリ」と表現す
る)のポーリングが行われる。この時に、最大ポーリン
グ数および最大応答待ち状態数の範囲内でポーリングが
行われる。また、ポーリング開始時刻になっているにも
かかわらず、これらの最大数(最大ポーリング数または
最大応答待ち状態数)を超えてしまうためにポーリング
ができなかった場合には、そのようなポーリングができ
なかったポーリング対象データエントリについて、その
優先度が一定の数値(例えば、1)だけ減算され、その
ポーリング開始時刻が時刻基準値の最低値(現在時刻よ
りも小さくなるような一定の数値。例えば0)に設定さ
れる。一方、ポーリングが行われたポーリング対象デー
タエントリは、ポーリング対象データリストから取り外
される。
In the polling procedure 104, the polling target data entry that has reached the polling start time or the polling target data entry that has passed the polling start time (“polling target data entry that has reached / elapsed the polling start time” in a sense including both) Polling) is performed. At this time, polling is performed within the range of the maximum polling number and the maximum response waiting state number. If polling cannot be performed because the maximum number (the maximum number of polls or the maximum number of response wait states) is exceeded even though the polling start time has been reached, such polling is possible. For the polling target data entry that did not exist, its priority is subtracted by a certain numerical value (for example, 1), and the polling start time is the lowest value of the time reference value (a certain numerical value that is smaller than the current time. For example, 0. ). On the other hand, the polled data entry that has been polled is removed from the polled data list.

【0040】情報取得手順105では、手順104で行
われたポーリングに対する応答が受信される。また、あ
らかじめ設定されているタイムアウト時間に達したポー
リングを認識する処理(タイムアウトの認識)も行われ
る(タイムアウト時間もレスポンス時間とみなされ
る)。なお、このような応答の受信とタイムアウトの認
識とを共に含む用語として、「ポーリング結果の取得」
という表現を用いる。
In the information acquisition procedure 105, a response to the polling performed in the procedure 104 is received. In addition, a process for recognizing polling that has reached a preset timeout period (recognition of timeout) is also performed (the timeout period is also regarded as a response time). Note that the term “acquisition of polling results” includes both the reception of such a response and the recognition of a timeout.
Is used.

【0041】優先度算出手順106では、ポーリング結
果を取得したポーリングに係るポーリング対象データエ
ントリに関して、ポーリングインターバルおよびレスポ
ンス時間を用いて、以下の計算式により、優先度が算出
される。なお、当該計算式は、あくまでも一例であっ
て、ポーリングインターバルおよびレスポンス時間を考
慮するものであれば、他の計算式を使用する態様も考え
られる。また,各記号は上記の変数の説明で記述したも
のである(P:優先度,T:レスポンス時間,α:イン
ターバル操作優先度算出用重み,β:レスポンス時間操
作優先度算出用重み,I:ポーリングインターバル)。
ここで、αおよびβはある一定の定数値とする。
In the priority calculating step 106, the priority is calculated by the following formula using the polling interval and the response time with respect to the polling target data entry related to the polling that obtained the polling result. Note that the calculation formula is merely an example, and another calculation formula may be used as long as the polling interval and the response time are taken into consideration. Further, each symbol is described in the above description of the variables (P: priority, T: response time, α: weight for calculating interval operation priority, β: weight for calculating response time operation priority, I: Polling interval).
Here, α and β are certain constant values.

【0042】P=(α+βT)IP = (α + βT) I

【0043】次回ポーリング開始時刻算出手順107で
は、ポーリング結果を取得した時刻にポーリングインタ
ーバルの値(時間)を加算した値が、次回のポーリング
開始時刻として算出される。
In the next polling start time calculation step 107, a value obtained by adding the value (time) of the polling interval to the time at which the polling result was obtained is calculated as the next polling start time.

【0044】ポーリング対象データリストソート手順1
08では、手順104で取り外されたポーリング対象デ
ータエントリの優先度およびポーリング開始時刻に、手
順106および手順107で算出された値がそれぞれ再
設定され、当該ポーリング対象データエントリがポーリ
ング対象データリストにつながれる。その上で、手順1
03と同様に、ポーリング対象データリストがポーリン
グ開始時刻の昇順にソートされ、手順104に制御が戻
される。この時、ポーリング開始時刻が等しい部分につ
いては、優先度の昇順にソートされる。
Polling target data list sorting procedure 1
In step 08, the values calculated in steps 106 and 107 are reset to the priority and polling start time of the polling target data entry removed in step 104, and the polling target data entry is linked to the polling data list. You. Then, Step 1
As in step 03, the polling target data list is sorted in ascending order of the polling start time, and control is returned to step 104. At this time, portions having the same polling start time are sorted in ascending priority order.

【0045】以下、手順104〜手順108の処理が繰
り返されていく。
Thereafter, the processing of steps 104 to 108 is repeated.

【0046】なお、手順106における優先度の算出で
は、ポーリングインターバルおよびレスポンス時間のい
ずれかだけを考慮して優先度を算出することも可能であ
る。この場合にも、一定の効果を得ることができ、発明
として成立しうることはいうまでもない。
In the calculation of the priority in the step 106, the priority can be calculated in consideration of only one of the polling interval and the response time. Also in this case, it is needless to say that a certain effect can be obtained and the invention can be realized.

【0047】次に、図3〜図7を参照し、具体的な例に
基づき、本実施の形態に係るポーリング方法の動作や当
該動作によって得られる効果について検証する。
Next, the operation of the polling method according to the present embodiment and the effect obtained by the operation will be verified based on a specific example with reference to FIGS.

【0048】これらの例は、コンピュータを使用したシ
ミュレーションによりモデル計算を行って得られた結果
に基づくものであり、本実施の形態のもたらす具体的な
効果を説明するものである。
These examples are based on the results obtained by performing a model calculation by a simulation using a computer, and illustrate the specific effects of the present embodiment.

【0049】すなわち、図3〜図7に示す例では、ポー
リングインターバルが5秒,10秒,15秒,20秒,
および25秒のポーリング対象(図2中のポーリング対
象23)がそれぞれ200個用意され、ポーリング処理
プログラムがそれら合計1000個のポーリング対象に
対して1時間ポーリングを行った場合のポーリング遂行
結果(実際のポーリングのインターバルの時間(秒)で
ある「実インターバル」)を表すものである。ここで、
各ポーリングインターバルの200個のポーリング対象
が20個づつの10個のグループに分割され、各グルー
プのポーリング対象に対するレスポンス時間が0秒,1
秒,2秒,3秒,4秒,5秒,6秒,7秒,8秒,およ
び9秒に設定されている。また、1秒間に行うことがで
きる最大ポーリング数が100個に設定され、ポーリン
グの応答待ちの最大数(最大応答待ち状態数)が100
個に設定されている。
That is, in the examples shown in FIGS. 3 to 7, the polling intervals are 5 seconds, 10 seconds, 15 seconds, 20 seconds,
And 200 polling targets of 25 seconds each (polling target 23 in FIG. 2) are prepared, and the polling processing result when the polling processing program polls 1000 polling targets in total for one hour (actual polling result). The “real interval”, which is the polling interval time (seconds). here,
The 200 polling targets in each polling interval are divided into ten groups of 20, each having a response time of 0 seconds, 1
Seconds, 2 seconds, 3 seconds, 4 seconds, 5 seconds, 6 seconds, 7 seconds, 8 seconds, and 9 seconds are set. The maximum number of polls that can be performed per second is set to 100, and the maximum number of polling response waits (maximum number of response wait states) is 100.
Is set to

【0050】図3に示す例1は、ポーリング開始時刻の
みを考慮しポーリング開始時刻の早い順にポーリングを
行った場合(α=0,β=0)のポーリング遂行結果で
ある。
Example 1 shown in FIG. 3 is the result of polling performed when polling is performed in the order of earliest polling start time (α = 0, β = 0) taking only the polling start time into account.

【0051】図4に示す例2は、ポーリング開始時刻の
考慮に加えて、ポーリングインターバルを優先度として
考慮した場合(α=3,β=0)のポーリング遂行結果
である。
Example 2 shown in FIG. 4 is a result of polling performed when the polling interval is considered as a priority (α = 3, β = 0) in addition to the polling start time.

【0052】例1では、ポーリングインターバルが5秒
のものはその約7. 8倍の実インターバルで実際のポー
リングが遂行されているのに対し、ポーリングインター
バルが25秒のものはその約2. 4倍の実インターバル
でポーリングが遂行されている。一方、例2では、ポー
リングインターバルが5秒のものはその約4. 4倍の実
インターバルで実際のポーリングが遂行され、ポーリン
グインターバルが25秒のものはその約4. 1倍の実イ
ンターバルでポーリングが遂行されている。これらの結
果から、ポーリングインターバルを基準に優先度を算出
した場合のポーリング処理は、ポーリングインターバル
の短いポーリングの優先度を上げ、ポーリングの均衡化
を図る効果があることが分かる。
In Example 1, when the polling interval is 5 seconds, the actual polling is performed at about 7.8 times the actual interval, whereas when the polling interval is 25 seconds, the actual polling is about 2.4 times. Polling is performed at twice the real interval. On the other hand, in Example 2, when the polling interval is 5 seconds, actual polling is performed at about 4.4 times the actual interval, and when the polling interval is 25 seconds, polling is performed at about 4.1 times the actual interval. Has been carried out. From these results, it can be seen that the polling process in the case where the priority is calculated based on the polling interval has the effect of increasing the priority of the polling having a short polling interval and balancing the polling.

【0053】図5に示す例3はα=2,β=0. 22と
した場合のポーリング遂行結果であり、図6に示す例4
はα=1,β=0. 44とした場合のポーリング遂行結
果であり、図7に示す例5はα=0,β=0. 67とし
た場合のポーリング遂行結果である。
Example 3 shown in FIG. 5 shows the result of polling performed when α = 2 and β = 0.22, and Example 4 shown in FIG.
Is the polling result when α = 1, β = 0.44, and Example 5 shown in FIG. 7 is the polling result when α = 0, β = 0.67.

【0054】例2,例3,例4,および例5のポーリン
グ遂行結果から、レスポンス時間を優先度として考慮し
たポーリング処理は、レスポンス時間が短いものの優先
度を上げ、レスポンス時間が長いものの優先度を下げる
効果をもたらし、またβを大きくすることにより、この
効果をより一層顕著なものとできることが分かる。
Based on the results of the polling performed in Examples 2, 3, 4, and 5, the polling process in which the response time is considered as a priority raises the priority for those with a short response time and raises the priority for those with a long response time. It can be understood that this effect can be made more remarkable by bringing about the effect of lowering the value and increasing β.

【0055】以上のように、ポーリングインターバルお
よびレスポンス時間を優先度として考慮した本実施の形
態のポーリング方法は、インターバルの長いポーリング
のためにインターバルの短いポーリングが時刻通りに遂
行されなくなる傾向を回避すると同時に、レスポンス時
間が長いポーリングのためにレスポンス時間が短いポー
リングが時刻通りに遂行されなくなる傾向を回避する効
果をもたらす。
As described above, the polling method according to the present embodiment in which the polling interval and the response time are considered as priorities avoids the tendency that polling with a short interval is not performed on time due to polling with a long interval. At the same time, there is an effect of avoiding a tendency that polling having a short response time is not performed on time due to polling having a long response time.

【0056】(2)第2の実施の形態 多くのネットワーク管理アプリケーションプログラム
は、SNMP(Simple Network Man
agement Protocol)を使用し、ネット
ワーク機器からMIB(Management Inf
ormationBase)情報を定期的に収集してい
る。通常、同一のLAN(Local Area Ne
twork)上のネットワーク機器から、ある1つのM
IB情報を取得するのに要する時間は、1秒以内と考え
られる。また、ネットワーク管理アプリケーションプロ
グラムがネットワーク機器に対してSNMPでポーリン
グを行う場合には、通常、タイムアウト時間が設定さ
れ、当該タイムアウト時間以内に応答が得られない場合
には、応答が得られなかったネットワーク機器のSNM
Pエージェント機能は「実装されていない、もしくはダ
ウンしている」とみなされている。
(2) Second Embodiment Many network management application programs use SNMP (Simple Network Man).
Management Protocol (MIB) from the network device using the Management Protocol (MIB).
operationBase) information is periodically collected. Usually, the same LAN (Local Area Ne)
network) on one of the M
The time required to acquire the IB information is considered to be within one second. In addition, when the network management application program polls the network device by SNMP, a timeout time is usually set, and if no response is obtained within the timeout time, the network in which no response is obtained is set. Device SNM
The P-agent function is considered "not implemented or down".

【0057】上記のようなMIB情報を取得するのに要
する時間やタイムアウト時間をレスポンス時間とみなす
ことで、このようなネットワーク管理アプリケーション
プログラム(当該ネットワーク管理アプリケーションプ
ログラムが実行されるコンピュータシステム)に本発明
のポーリング方法を適用することが可能となる。
By regarding the time required for acquiring the MIB information and the timeout time as the response time, the present invention is applied to such a network management application program (a computer system on which the network management application program is executed). Polling method can be applied.

【0058】すなわち、本発明の第2の実施の形態に係
るポーリング方法は、SNMPを使用してLAN上のネ
ットワーク機器からMIB情報を定期的に収集している
ネットワーク管理アプリケーションプログラムが複数の
ネットワーク機器に対してMIB情報の取得のためのポ
ーリングを行うコンピュータシステムに適用されること
を特徴とする。
That is, in the polling method according to the second embodiment of the present invention, a network management application program that periodically collects MIB information from a network device on a LAN using SNMP is used by a plurality of network devices. Is applied to a computer system that performs polling for obtaining MIB information.

【0059】図8は、本実施の形態に係るポーリング方
法が適用されるコンピュータシステムの具体例を示す図
である。
FIG. 8 is a diagram showing a specific example of a computer system to which the polling method according to the present embodiment is applied.

【0060】本実施の形態に係るポーリング方法が適用
されるコンピュータシステムでは、図2中のポーリング
処理プログラムがネットワーク管理アプリケーションプ
ログラムに該当し、コンピュータ21がコンピュータ8
1に該当し、ネットワーク22がLAN82に該当し、
ポーリング対象23が管理対象のネットワーク機器83
に該当する。
In the computer system to which the polling method according to the present embodiment is applied, the polling processing program in FIG. 2 corresponds to the network management application program, and the computer 21
1, the network 22 corresponds to the LAN 82,
The polling target 23 is a network device 83 to be managed.
Corresponds to.

【0061】本実施の形態に係るポーリング方法では、
上記のようなコンピュータシステムにおいて、図1に示
す各手順が実行される。なお、各手順における処理は、
上述した第1の実施の形態における処理と全く同様であ
るので、ここでは詳しい説明を割愛する。
In the polling method according to this embodiment,
In the computer system as described above, each procedure shown in FIG. 1 is executed. The processing in each procedure is as follows:
Since the processing is exactly the same as the processing in the first embodiment described above, detailed description is omitted here.

【0062】図9〜図12は、本実施の形態に係るポー
リング方法の具体的な動作を説明するための図である。
FIGS. 9 to 12 are diagrams for explaining the specific operation of the polling method according to the present embodiment.

【0063】ここで、以下に、図9〜図12を参照し、
具体例としてのいくつかのモデル計算例(コンピュータ
を使用したシミュレーション例)を示し、本発明の有効
性を検証する。
Here, referring to FIGS. 9 to 12,
Several model calculation examples (simulation examples using a computer) will be shown as specific examples to verify the effectiveness of the present invention.

【0064】当該具体例では、以下のa〜gに示すよう
な状態を想定してモデル計算が行われている。
In this specific example, model calculations are performed assuming the following states a to g.

【0065】a.管理対象のネットワーク機器(図8中
のネットワーク機器83)は1000台とし、1時間ポ
ーリングを行う。 b.ポーリングインターバルは5秒,10秒,15秒,
20秒,および25秒とする。 c.各ポーリングインターバルでポーリングが行われる
ネットワーク機器は各々200台とする。 d.各ポーリングインターバルでMIB情報が取得でき
るネットワーク機器は160台(全体の8割)とし、応
答のない(タイムアウトする)ネットワーク機器は40
台(全体の2割)とする。 e.情報の取得には1秒かかるものとする。 f.タイムアウト時間は10秒とする。 g.1秒間に行うことができる最大ポーリング数を10
0個とし、ポーリングの応答待ちの最大数(最大応答待
ち状態数)を100個とする。
A. The number of network devices to be managed (the network devices 83 in FIG. 8) is 1000, and polling is performed for one hour. b. Polling intervals are 5 seconds, 10 seconds, 15 seconds,
20 seconds and 25 seconds. c. The number of network devices to be polled at each polling interval is 200 each. d. The number of network devices from which MIB information can be acquired at each polling interval is 160 (80% of the total), and the number of network devices that do not respond (time out) is 40
Stand (20% of the whole). e. It takes one second to acquire information. f. The timeout period is 10 seconds. g. The maximum number of polls that can be performed per second is 10
It is assumed that the number is 0, and the maximum number of polling response waits (maximum number of response wait states) is 100.

【0066】図9に示す例6はα=0,β=0とした場
合のポーリング遂行結果であり、図10に示す例7はα
=1. 7,β=0とした場合のポーリング遂行結果であ
り、図11に示す例8はα=0. 85,β=0. 30と
した場合のポーリング遂行結果であり、図12に示す例
9はα=0,β=0. 61とした場合のポーリング遂行
結果である。
Example 6 shown in FIG. 9 is the result of polling performed when α = 0 and β = 0, and Example 7 shown in FIG.
= 1.7, β = 0, and the result of polling performed when Example = 0 shown in FIG. 11 is α = 0.85, β = 0.30. FIG. 12 shows the result of polling performed when α = 0.85, β = 0.30. Example 9 shows the result of performing polling when α = 0 and β = 0.61.

【0067】ポーリング開始時刻のみを考慮したポーリ
ング遂行結果である例6から分かるように、ポーリング
インターバルの短いポーリング対象データエントリはポ
ーリングインターバルの長いポーリング対象データエン
トリと比べて、ポーリングの割合(ポーリングインター
バルの実インターバルに対する割合)が低くなってい
る。
As can be seen from Example 6, which is the result of polling in consideration of only the polling start time, the polling data entry having a short polling interval has a higher polling ratio (polling interval) than the polling data entry having a longer polling interval. Ratio to the actual interval) is low.

【0068】これに対して、ポーリング開始時刻に加え
てポーリングインターバルに基づく優先度を考慮したポ
ーリング遂行結果である例7では、ポーリングの均衡化
が図られていることが分かる。
On the other hand, in Example 7, which is the result of performing polling in consideration of the priority based on the polling interval in addition to the polling start time, it can be seen that the polling is balanced.

【0069】さらに、優先度としてレスポンス時間を考
慮したポーリング遂行結果である例8および例9では、
情報取得できるポーリング対象データエントリ(タイム
アウトとならないポーリング対象(管理対象のネットワ
ーク機器)に対するポーリング対象データエントリ)が
ポーリングインターバルに近い実インターバルでポーリ
ングされるようにする効果をもたらしていることが分か
る。
Further, in Examples 8 and 9 which are results of polling in consideration of response time as a priority,
It can be seen that the polling target data entry from which information can be obtained (the polling target data entry for the polling target (management target network device) that does not time out) is polled at the actual interval close to the polling interval.

【0070】(3) 第3の実施の形態 図13は、本発明の第3の実施の形態に係るポーリング
方法の構成を示すブロック図である。
(3) Third Embodiment FIG. 13 is a block diagram showing a configuration of a polling method according to a third embodiment of the present invention.

【0071】図13を参照すると、本発明の第3の実施
の形態に係るポーリング方法は、図1に示した第1の実
施の形態に係るポーリング方法に対して、当該ポーリン
グ方法を実現するプログラム(ポーリング処理プログラ
ム)を記録した記録媒体1000を備える点が異なって
いる。この記録媒体1000は、磁気ディスク,半導体
メモリ,その他の記録媒体であってよい。
Referring to FIG. 13, the polling method according to the third embodiment of the present invention is different from the polling method according to the first embodiment shown in FIG. The difference is that a recording medium 1000 that records (polling processing program) is provided. This recording medium 1000 may be a magnetic disk, a semiconductor memory, or another recording medium.

【0072】ポーリング処理プログラムは、記録媒体1
000からコンピュータ21(ネットワーク22を介し
て複数のポーリング対象23と接続しているコンピュー
タ)に読み込まれ、当該コンピュータ21の動作をポー
リング対象データ読込み手順101,優先度初期設定手
順102,ポーリング対象データリスト初期ソート手順
103,ポーリング手順104,情報取得手順105,
優先度算出手順106,次回ポーリング開始時刻算出手
順107,およびポーリング対象データリストソート手
順108として制御する。コンピュータ21上のポーリ
ング処理プログラムによって実現されるポーリング方法
の動作は、第1の実施の形態に係るポーリング方法の動
作と全く同様になるので、その詳しい説明を割愛する。
The polling processing program is executed on the recording medium 1
000 to a computer 21 (a computer connected to a plurality of polling targets 23 via the network 22), and the operation of the computer 21 is described as a polling target data reading procedure 101, a priority initial setting procedure 102, a polling target data list. Initial sort procedure 103, polling procedure 104, information acquisition procedure 105,
Control is performed as a priority calculation procedure 106, a next polling start time calculation procedure 107, and a polling target data list sorting procedure 108. The operation of the polling method realized by the polling processing program on the computer 21 is exactly the same as the operation of the polling method according to the first embodiment, and thus the detailed description is omitted.

【0073】なお、このような記録媒体1000を第2
の実施の形態における「SNMPを使用してLAN上の
ネットワーク機器からMIB情報を定期的に収集してい
るネットワーク管理アプリケーションプログラムが複数
のネットワーク機器に対してMIB情報の取得のための
ポーリングを行うコンピュータシステム」に適用できる
ことはいうまでもない。
Note that such a recording medium 1000 is
"A computer which performs a polling of a plurality of network devices for acquiring MIB information by a network management application program which periodically collects MIB information from network devices on a LAN using SNMP" It is needless to say that the present invention can be applied to a “system”.

【0074】[0074]

【発明の効果】以上説明したように、本発明では、以下
に示すような効果が生じる。
As described above, the present invention has the following effects.

【0075】第1の効果は、一定時間内にポーリングを
行う数の上限(最大ポーリング数)およびポーリングに
対する応答待ち状態の数の上限(最大応答待ち状態数)
を設定し、この上限の範囲内でポーリングインターバル
を基準にして優先度を設定することにより、ポーリング
インターバルの長いポーリング対象データエントリに係
るポーリングのために、ポーリングインターバルの短い
ポーリング対象データエントリに係るポーリングが時刻
通りに遂行されなくなる傾向を回避できることである。
The first effect is that the upper limit of the number of polls performed within a fixed time (maximum number of polls) and the upper limit of the number of states waiting for polling (maximum number of states waiting for response)
By setting the priority and setting the priority based on the polling interval within the upper limit, the polling for the polled data entry with a short polling interval can be performed for the polling for the polled data entry with a long polling interval. Is not likely to be performed on time.

【0076】第2の効果は、最大ポーリング数および最
大応答待ち状態数を設定し、この上限の範囲内でレスポ
ンス時間を考慮した優先度を設定することにより、レス
ポンス時間が長いポーリングのために、レスポンス時間
が短いポーリングが時刻通りに遂行されなくなる傾向を
回避できることである。
The second effect is that, by setting the maximum number of polls and the maximum number of response wait states, and setting the priority in consideration of the response time within the upper limit, polling for a long response time is achieved. It is possible to avoid a tendency that polling having a short response time is not performed on time.

【0077】なお、ポーリングインターバルを考慮して
優先度を設定し、かつレスポンス時間をも考慮して優先
度を設定する方法によると、上記の効果を共に達成でき
るようになることはいうまでもない。
According to the method of setting the priority in consideration of the polling interval and also setting the priority in consideration of the response time, it goes without saying that both of the above effects can be achieved. .

【0078】上述のように、本発明によると、ポーリン
グタイミングの最適化(各ポーリング対象へのポーリン
グの均衡化)を図ることができ、ポーリング機能を有す
るプログラム自体がシステムやネットワークに及ぼす負
荷を軽減すると同時に、情報の取りこぼしを回避するこ
とができるという効果が生じる。
As described above, according to the present invention, it is possible to optimize the polling timing (equalize the polling of each polling target), and reduce the load on the system or network by the program having the polling function itself. At the same time, there is an effect that information can be prevented from being missed.

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

【図1】本発明の第1の実施の形態に係るポーリング方
法の処理手順を示す流れ図である。
FIG. 1 is a flowchart showing a processing procedure of a polling method according to a first embodiment of the present invention.

【図2】図1に示すポーリング方法が適用されるコンピ
ュータシステムの一例を示すブロック図である。
FIG. 2 is a block diagram showing an example of a computer system to which the polling method shown in FIG. 1 is applied.

【図3】図1に示すポーリング方法の具体的な動作を説
明するための図である。
FIG. 3 is a diagram for explaining a specific operation of the polling method shown in FIG. 1;

【図4】図1に示すポーリング方法の具体的な動作を説
明するための図である。
FIG. 4 is a diagram for explaining a specific operation of the polling method shown in FIG. 1;

【図5】図1に示すポーリング方法の具体的な動作を説
明するための図である。
FIG. 5 is a diagram for explaining a specific operation of the polling method shown in FIG. 1;

【図6】図1に示すポーリング方法の具体的な動作を説
明するための図である。
FIG. 6 is a diagram for explaining a specific operation of the polling method shown in FIG. 1;

【図7】図1に示すポーリング方法の具体的な動作を説
明するための図である。
FIG. 7 is a diagram for explaining a specific operation of the polling method shown in FIG. 1;

【図8】本発明の第2の実施の形態に係るポーリング方
法が適用されるコンピュータシステムの一例を示すブロ
ック図である。
FIG. 8 is a block diagram illustrating an example of a computer system to which a polling method according to a second embodiment of the present invention is applied.

【図9】本発明の第2の実施の形態に係るポーリング方
法の具体的な動作を説明するための図である。
FIG. 9 is a diagram illustrating a specific operation of the polling method according to the second embodiment of the present invention.

【図10】本発明の第2の実施の形態に係るポーリング
方法の具体的な動作を説明するための図である。
FIG. 10 is a diagram for explaining a specific operation of the polling method according to the second embodiment of the present invention.

【図11】本発明の第2の実施の形態に係るポーリング
方法の具体的な動作を説明するための図である。
FIG. 11 is a diagram for explaining a specific operation of the polling method according to the second embodiment of the present invention.

【図12】本発明の第2の実施の形態に係るポーリング
方法の具体的な動作を説明するための図である。
FIG. 12 is a diagram for explaining a specific operation of the polling method according to the second embodiment of the present invention.

【図13】本発明の第3の実施の形態に係るポーリング
方法を実現するための構成を示すブロック図である。
FIG. 13 is a block diagram showing a configuration for realizing a polling method according to a third embodiment of the present invention.

【図14】従来のポーリング方法の処理手順を示す流れ
図である。
FIG. 14 is a flowchart showing a processing procedure of a conventional polling method.

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

21,81 コンピュータ 22 ネットワーク 23 ポーリング対象 82 LAN 83 ネットワーク機器 101 ポーリング対象データ読込み手順 102 優先度初期設定手順 103 ポーリング対象データリスト初期ソート手順 104 ポーリング手順 105 情報取得手順 106 優先度算出手順 107 次回ポーリング開始時刻算出手順 108 ポーリング対象データリストソート手順 1000 記録媒体 21, 81 Computer 22 Network 23 Polling Target 82 LAN 83 Network Device 101 Polling Target Data Reading Procedure 102 Priority Initial Setting Procedure 103 Polling Target Data List Initial Sorting Procedure 104 Polling Procedure 105 Information Acquisition Procedure 106 Priority Calculation Procedure 107 Next Polling Start Time calculation procedure 108 Polling target data list sorting procedure 1000 Recording medium

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ポーリング機能を有するプログラムが複
数のポーリング対象に対してポーリングを行うコンピュ
ータシステムにおいて、データベースからポーリング対
象データを読み込み、複数のポーリング対象データエン
トリからなるポーリング対象データリストを生成するポ
ーリング対象データ読込み手順と、初回読込み時の優先
度の値を設定する優先度初期設定手順と、ポーリング対
象データリストを前記優先度初期設定手順で設定された
優先度を加味してポーリング開始時刻の昇順にソートす
るポーリング対象データリスト初期ソート手順と、前記
ポーリング対象データリスト初期ソート手順でソートさ
れたポーリング対象データリストに基づき、最大ポーリ
ング数および最大応答待ち状態数の範囲内でポーリング
開始時刻に到達/経過したポーリング対象データエント
リに関するポーリングを行い、当該ポーリングに係るポ
ーリング対象データエントリをポーリング対象データリ
ストから取り外し、最大数の範囲を超えたためにポーリ
ングを行えなかったポーリング対象データエントリにつ
いては優先度の値の減算およびポーリング開始時刻の最
低値への設定を行うポーリング手順と、前記ポーリング
手順で行われたポーリングに対するポーリング対象から
の応答の受信およびタイムアウトの認識を「ポーリング
結果の取得」として行う情報取得手順と、前記情報取得
手順におけるポーリング結果の取得が行われたポーリン
グ対象データエントリについて、ポーリングインターバ
ルおよびレスポンス時間を基準にして優先度を算出する
優先度算出手順と、前記情報取得手順におけるポーリン
グ結果の取得が行われたポーリング対象データエントリ
について、ポーリング結果の取得時刻にポーリングイン
ターバルを加算した値を次回のポーリング開始時刻とし
て算出する次回ポーリング開始時刻算出手順と、前記優
先度算出手順で算出された優先度および前記次回ポーリ
ング開始時刻算出手順で算出されたポーリング開始時刻
が設定されたポーリング対象データエントリをポーリン
グ対象データリストにつなぎ、当該ポーリング対象デー
タリストを優先度を加味してポーリング開始時刻の昇順
にソートするポーリング対象データリストソート手順と
を有することを特徴とするポーリング方法。
In a computer system in which a program having a polling function polls a plurality of polling targets, a polling target reads a polling target data from a database and generates a polling target data list including a plurality of polling target data entries. A data reading procedure, a priority initial setting procedure for setting a priority value at the time of initial reading, and a polling target data list in ascending order of the polling start time in consideration of the priority set in the priority initial setting procedure. The polling start time is reached / processed within the range of the maximum number of polls and the maximum number of response wait states based on the polling target data list initial sorting procedure to be sorted and the polling target data list sorted by the polling target data list initial sorting procedure. Polling is performed for the polled data entries that have passed, the polled data entries related to the polling are removed from the polled data list, and the priority value is set for the polled data entries that could not be polled because the maximum number was exceeded. A polling procedure for subtracting a value and setting a polling start time to a minimum value, and an information acquisition procedure for receiving a response from a polling target and recognizing a timeout with respect to the polling performed in the polling procedure as “acquiring a polling result” A priority calculating step of calculating a priority based on a polling interval and a response time for a polling target data entry for which a polling result has been obtained in the information obtaining step; and the information obtaining step. The polling target data entry for which the polling result was obtained in the next polling start time calculating step of calculating a value obtained by adding a polling interval to the polling result obtaining time as the next polling start time, and the priority calculating step The polling target data entry in which the calculated priority and the polling start time calculated in the next polling start time calculation step are set is connected to the polling target data list, and the polling start is performed in consideration of the priority of the polling target data list. A polling target data list sorting procedure for sorting in ascending time order.
【請求項2】 ポーリングインターバルおよびレスポン
ス時間を基準にして優先度を算出する代わりに、ポーリ
ングインターバルを基準にして優先度を算出する優先度
算出手順を有することを特徴とする請求項1記載のポー
リング方法。
2. The polling method according to claim 1, further comprising a priority calculation procedure for calculating the priority based on the polling interval instead of calculating the priority based on the polling interval and the response time. Method.
【請求項3】 ポーリングインターバルおよびレスポン
ス時間を基準にして優先度を算出する代わりに、レスポ
ンス時間を基準にして優先度を算出する優先度算出手順
を有することを特徴とする請求項1記載のポーリング方
法。
3. The polling method according to claim 1, further comprising a priority calculation procedure for calculating the priority based on the response time instead of calculating the priority based on the polling interval and the response time. Method.
【請求項4】 「(インターバル操作優先度算出用重み
+レスポンス時間操作優先度算出用重み×レスポンス時
間)×ポーリングインターバル」という計算式によって
優先度を算出する優先度算出手順を有することを特徴と
する請求項1記載のポーリング方法。
4. A priority calculation procedure for calculating a priority by a calculation formula “(interval operation priority calculation weight + response time operation priority calculation weight × response time) × polling interval”. The polling method according to claim 1, wherein
【請求項5】 SNMPを使用してLAN上のネットワ
ーク機器からMIB情報を定期的に収集しているネット
ワーク管理アプリケーションプログラムが複数のネット
ワーク機器に対してMIB情報の取得のためのポーリン
グを行うコンピュータシステムに適用されることを特徴
とする請求項1記載のポーリング方法。
5. A computer system in which a network management application program that periodically collects MIB information from network devices on a LAN using SNMP performs polling of a plurality of network devices for acquisition of MIB information. 2. The polling method according to claim 1, wherein the polling method is applied to:
【請求項6】 「(インターバル操作優先度算出用重み
+レスポンス時間操作優先度算出用重み×レスポンス時
間)×ポーリングインターバル」という計算式によって
優先度を算出する優先度算出手順を有することを特徴と
する請求項5記載のポーリング方法。
6. A priority calculation procedure for calculating a priority by a formula of “(interval operation priority calculation weight + response time operation priority calculation weight × response time) × polling interval”. The polling method according to claim 5, wherein
【請求項7】 ポーリング機能を有するプログラムが複
数のポーリング対象に対してポーリングを行うコンピュ
ータシステムを、データベースからポーリング対象デー
タを読み込み、複数のポーリング対象データエントリか
らなるポーリング対象データリストを生成するポーリン
グ対象データ読込み手順,初回読込み時の優先度の値を
設定する優先度初期設定手順,ポーリング対象データリ
ストを前記優先度初期設定手順で設定された優先度を加
味してポーリング開始時刻の昇順にソートするポーリン
グ対象データリスト初期ソート手順,前記ポーリング対
象データリスト初期ソート手順でソートされたポーリン
グ対象データリストに基づき、最大ポーリング数および
最大応答待ち状態数の範囲内でポーリング開始時刻に到
達/経過したポーリング対象データエントリに関するポ
ーリングを行い、当該ポーリングに係るポーリング対象
データエントリをポーリング対象データリストから取り
外し、最大数の範囲を超えたためにポーリングを行えな
かったポーリング対象データエントリについては優先度
の値の減算およびポーリング開始時刻の最低値への設定
を行うポーリング手順,前記ポーリング手順で行われた
ポーリングに対するポーリング対象からの応答の受信お
よびタイムアウトの認識を「ポーリング結果の取得」と
して行う情報取得手順,前記情報取得手順におけるポー
リング結果の取得が行われたポーリング対象データエン
トリについて、ポーリングインターバルおよびレスポン
ス時間を基準にして優先度を算出する優先度算出手順,
前記情報取得手順におけるポーリング結果の取得が行わ
れたポーリング対象データエントリについて、ポーリン
グ結果の取得時刻にポーリングインターバルを加算した
値を次回のポーリング開始時刻として算出する次回ポー
リング開始時刻算出手順,ならびに前記優先度算出手順
で算出された優先度および前記次回ポーリング開始時刻
算出手順で算出されたポーリング開始時刻が設定された
ポーリング対象データエントリをポーリング対象データ
リストにつなぎ、当該ポーリング対象データリストを優
先度を加味してポーリング開始時刻の昇順にソートする
ポーリング対象データリストソート手順として機能させ
るための当該プログラムを記録した記録媒体。
7. A computer system in which a program having a polling function performs polling for a plurality of polling targets. A polling target for reading polling data from a database and generating a polling data list including a plurality of polling data entries. The data reading procedure, the priority initial setting procedure for setting the priority value at the time of the first reading, and the polling target data list are sorted in ascending order of the polling start time in consideration of the priority set in the priority initial setting procedure. Polling target data list initial sort procedure, based on the polling target data list sorted by the polling target data list initial sort procedure, polls that have reached / elapsed the polling start time within the range of the maximum number of polls and the maximum number of response wait states. Polling for the polling target data entry, remove the polling target data entry related to the polling from the polling target data list, and subtract the priority value for the polling target data entry that could not be polled because it exceeded the maximum number range And a polling procedure for setting the polling start time to the lowest value, an information acquisition procedure for receiving a response from a polling target for polling performed in the polling procedure and recognizing a timeout as “acquiring a polling result”, A priority calculation procedure for calculating a priority based on the polling interval and the response time for the polling target data entry for which the polling result has been obtained in the obtaining procedure;
A next polling start time calculating step of calculating, as the next polling start time, a value obtained by adding a polling interval to the polling result obtaining time for the polling target data entry for which the polling result has been obtained in the information obtaining step; The polling target data entry in which the priority calculated in the degree calculation procedure and the polling start time calculated in the next polling start time calculation step are set is connected to the polling target data list, and the priority is added to the polling target data list. A recording medium on which the program is recorded to function as a polling target data list sorting procedure that sorts data in ascending order of polling start time.
【請求項8】 SNMPを使用してLAN上のネットワ
ーク機器からMIB情報を定期的に収集しているネット
ワーク管理アプリケーションプログラムが複数のネット
ワーク機器に対してMIB情報の取得のためのポーリン
グを行うコンピュータシステムを、データベースからポ
ーリング対象データを読み込み、複数のポーリング対象
データエントリからなるポーリング対象データリストを
生成するポーリング対象データ読込み手順,初回読込み
時の優先度の値を設定する優先度初期設定手順,ポーリ
ング対象データリストを前記優先度初期設定手順で設定
された優先度を加味してポーリング開始時刻の昇順にソ
ートするポーリング対象データリスト初期ソート手順,
前記ポーリング対象データリスト初期ソート手順でソー
トされたポーリング対象データリストに基づき、最大ポ
ーリング数および最大応答待ち状態数の範囲内でポーリ
ング開始時刻に到達/経過したポーリング対象データエ
ントリに関するポーリングを行い、当該ポーリングに係
るポーリング対象データエントリをポーリング対象デー
タリストから取り外し、最大数の範囲を超えたためにポ
ーリングを行えなかったポーリング対象データエントリ
については優先度の値の減算およびポーリング開始時刻
の最低値への設定を行うポーリング手順,前記ポーリン
グ手順で行われたポーリングに対するポーリング対象か
らの応答の受信およびタイムアウトの認識を「ポーリン
グ結果の取得」として行う情報取得手順,前記情報取得
手順におけるポーリング結果の取得が行われたポーリン
グ対象データエントリについて、ポーリングインターバ
ルおよびレスポンス時間を基準にして優先度を算出する
優先度算出手順,前記情報取得手順におけるポーリング
結果の取得が行われたポーリング対象データエントリに
ついて、ポーリング結果の取得時刻にポーリングインタ
ーバルを加算した値を次回のポーリング開始時刻として
算出する次回ポーリング開始時刻算出手順,ならびに前
記優先度算出手順で算出された優先度および前記次回ポ
ーリング開始時刻算出手順で算出されたポーリング開始
時刻が設定されたポーリング対象データエントリをポー
リング対象データリストにつなぎ、当該ポーリング対象
データリストを優先度を加味してポーリング開始時刻の
昇順にソートするポーリング対象データリストソート手
順として機能させるための当該ネットワーク管理アプリ
ケーションプログラムを記録した記録媒体。
8. A computer system in which a network management application program that periodically collects MIB information from network devices on a LAN using SNMP polls a plurality of network devices for obtaining MIB information. To read the polling target data from the database and generate a polling target data list consisting of a plurality of polling target data entries, the priority setting procedure to set the priority value at the time of the first reading, the polling target A polling target data list initial sorting procedure for sorting the data list in ascending polling start time in consideration of the priority set in the priority initial setting procedure,
Based on the polling target data list sorted by the polling target data list initial sorting procedure, polling is performed on the polling target data entry that has reached / elapsed the polling start time within the range of the maximum polling number and the maximum response waiting state number. Remove the polling target data entry related to polling from the polling target data list, and subtract the priority value and set the polling start time to the lowest value for polling target data entries that could not be polled because they exceeded the maximum number range A polling procedure for performing the polling, an information acquisition procedure for receiving a response from the polling target to the polling performed in the polling procedure and recognizing a timeout as “acquiring a polling result”, and a polling procedure in the information acquisition procedure. Priority calculation procedure for calculating a priority based on a polling interval and a response time for a polling target data entry for which a polling result has been obtained, and a polling target data entry for which a polling result has been obtained in the information obtaining procedure , A next polling start time calculating procedure for calculating a value obtained by adding a polling interval to a polling result acquisition time as a next polling start time, and the priority calculated in the priority calculating procedure and the next polling start time calculating procedure The polling target data entry in which the polling start time calculated in Step 3 is set is connected to the polling target data list, and the polling target data list is sorted in ascending order of the polling start time in consideration of the priority. Recording medium recording the network management application program for functioning as a data list sorting procedure.
JP11056399A 1999-03-04 1999-03-04 Polling method Expired - Lifetime JP3088412B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11056399A JP3088412B2 (en) 1999-03-04 1999-03-04 Polling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11056399A JP3088412B2 (en) 1999-03-04 1999-03-04 Polling method

Publications (2)

Publication Number Publication Date
JP2000253032A JP2000253032A (en) 2000-09-14
JP3088412B2 true JP3088412B2 (en) 2000-09-18

Family

ID=13026135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11056399A Expired - Lifetime JP3088412B2 (en) 1999-03-04 1999-03-04 Polling method

Country Status (1)

Country Link
JP (1) JP3088412B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019198169A1 (en) * 2018-04-11 2019-10-17 三菱電機株式会社 Computer system and computer program

Also Published As

Publication number Publication date
JP2000253032A (en) 2000-09-14

Similar Documents

Publication Publication Date Title
Zhao et al. A window protocol for transmission of time-constrained messages
Lin et al. A dynamic load-balancing policy with a central job dispatcher (LBC)
US6748413B1 (en) Method and apparatus for load balancing of parallel servers in a network environment
US7712103B2 (en) Method and system for managing load balancing in data processing system
CN112260889B (en) Linux-based process flow monitoring method, system and equipment
JP2009059273A (en) Stream data control system, stream data control method and steam data control program
CN111405531A (en) Method, medium, terminal and device for improving communication quality
JP3088412B2 (en) Polling method
US7890958B2 (en) Automatic adjustment of time a consumer waits to access data from queue during a waiting phase and transmission phase at the queue
CN114422412B (en) Equipment detection method and device and communication equipment
CN109150819B (en) A kind of attack recognition method and its identifying system
JP3104221B2 (en) Polling delay avoidance method
JP3221538B2 (en) Network operation information collection system
CN110213196A (en) Equipment and its method, electronic equipment and the storage medium for preventing Replay Attack
CN112799921A (en) Multi-device and multi-network environment operation and maintenance monitoring method and device and storage medium
CN117240903B (en) Internet of things offline message dynamic management configuration system
CN114327841B (en) Resource scheduling method and device, storage medium and electronic device
CN111711650B (en) Network request scheduling method, device, equipment and storage medium
CN112511277B (en) Data processing method and device
CN114697319B (en) Tenant service management method and device for public cloud
US20230418676A1 (en) Priority-based load shedding for computing systems
JP2000267923A (en) Method for exclusively controlling shared file processing by plural devices connected to network
JP2007316719A (en) Message communication method, device and program
EP1220511A2 (en) Memory management for packet storage
CN117614797A (en) Data acquisition system and method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070714

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080714

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090714

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100714

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110714

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110714

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120714

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120714

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130714

Year of fee payment: 13

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term